diff --git a/src/api/tc/model.js b/src/api/tc/model.js new file mode 100644 index 0000000..f5acf2d --- /dev/null +++ b/src/api/tc/model.js @@ -0,0 +1,28 @@ +import request from '@/utils/request' + +/** 模型列表*/ +export function modelList() { + return request({ + url: `/model/config/modelList`, + method: 'get' + }) +} + +/** 模型配置列表*/ +export function modelConfigList(data) { + return request({ + url: '/model/config/list', + method: 'post', + data: data + }) +} + + +/** 模型配置保存*/ +export function modelConfigUpdate(data) { + return request({ + url: '/model/config/update', + method: 'post', + data: data + }) +} \ No newline at end of file diff --git a/src/utils/request.js b/src/utils/request.js index 4f1c485..f17d02c 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -84,7 +84,7 @@ service.interceptors.response.use(res => { if (code === 401) { if (!isRelogin.show) { isRelogin.show = true - ElMessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => { + ElMessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning', closeOnClickModal: false }).then(() => { isRelogin.show = false useUserStore().logOut().then(() => { location.href = '/' diff --git a/src/views/operation/configModels/index.vue b/src/views/operation/configModels/index.vue index c665883..29e9f45 100644 --- a/src/views/operation/configModels/index.vue +++ b/src/views/operation/configModels/index.vue @@ -2,8 +2,8 @@
- - + @@ -12,36 +12,21 @@ - - - 新增 - - - -
- - - - - - + + + + @@ -57,51 +42,38 @@ - + - - + + - - - - - - - - - - - - - - - - -
- - {{ model.name }} -
-
+ + +
- - + + + + + + + + + @@ -117,74 +89,86 @@