From 17121c94f1cc4287815a7ce8f60dabe4ca5ea397 Mon Sep 17 00:00:00 2001 From: lz-ui Date: Mon, 13 Oct 2025 16:36:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=B7=BB=E5=8A=A0=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tc/model.js | 28 +++ src/utils/request.js | 2 +- src/views/operation/configModels/index.vue | 238 +++++++----------- .../tc/videoScript/components/basketball.vue | 6 +- .../tc/videoScript/components/soccer.vue | 7 +- 5 files changed, 127 insertions(+), 154 deletions(-) create mode 100644 src/api/tc/model.js 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 @@