From 7cb23822ce3bf66759545c006697253f9f034312 Mon Sep 17 00:00:00 2001 From: zhanghao <774378400@qq.com> Date: Tue, 10 Feb 2026 09:27:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BD=AE=E8=AF=A2=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/vi/project.js | 12 ++ src/views/is/project/evaluate/index.vue | 9 +- src/views/is/project/index.vue | 21 +++- src/views/vi/testProject/evaluate/index.vue | 131 ++++++-------------- src/views/vi/testProject/index.vue | 26 +++- 5 files changed, 91 insertions(+), 108 deletions(-) diff --git a/src/api/vi/project.js b/src/api/vi/project.js index be5dba4..0b0397b 100644 --- a/src/api/vi/project.js +++ b/src/api/vi/project.js @@ -69,3 +69,15 @@ export function queryExecuteInstId(projectId) { }) } + +/** + * 获取评估 + * @param {*} projectId + * @returns + */ +export function getValuationProject(projectId) { + return request({ + url: '/vi/project/evaluation/' + projectId, + method: 'get' + }) +} diff --git a/src/views/is/project/evaluate/index.vue b/src/views/is/project/evaluate/index.vue index 1a278da..d4ef805 100644 --- a/src/views/is/project/evaluate/index.vue +++ b/src/views/is/project/evaluate/index.vue @@ -4,7 +4,7 @@
测试结果
- 生成报告 + 生成报告 导出结果
@@ -13,12 +13,6 @@ - - - + diff --git a/src/views/is/project/index.vue b/src/views/is/project/index.vue index daf7206..0c33da8 100644 --- a/src/views/is/project/index.vue +++ b/src/views/is/project/index.vue @@ -107,7 +107,7 @@ /> 执行 修改 @@ -143,6 +144,7 @@ size="mini" type="text" @click="handleDelete(row)" + v-if="row.status != '1'" v-hasPermi="['system:project:remove']" >删除 @@ -424,6 +426,19 @@ function getList() { if (res.code === 200) { projectList.value = res.rows; total.value = res.total; + let status = 0; + for (let i = 0; i < projectList.value.length; i++) { + if (projectList.value[i].status == '1') { + status = 1; + break; + } + } + if (status == 1) { + // 如果有正在执行的项目,则每5秒刷新一次列表 + setTimeout(() => { + getList(); + }, 5000); + } } else { ElMessage.error(res.msg || "查询项目列表失败"); } diff --git a/src/views/vi/testProject/evaluate/index.vue b/src/views/vi/testProject/evaluate/index.vue index 3c1a961..9399138 100644 --- a/src/views/vi/testProject/evaluate/index.vue +++ b/src/views/vi/testProject/evaluate/index.vue @@ -13,41 +13,24 @@
方案选择
-
+
{{ item.schemeName }}
-
{{ item.sceneType === 1 ? '唤醒场景' : item.sceneType === 2 ? '单词对话场景' : '连续对话场景' }}
-
+
- - - - + + + - - - - - - - - - - + + + +
@@ -57,8 +40,7 @@