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 @@
-
-
- {{ row.responseTime }}
- 未测试
-
-
{{ row.rate }}
@@ -36,6 +30,7 @@
未测试
+
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 @@
/>
- {{ row.status == 0 ? "已执行" : "未执行" }}
+ {{ row.status == '0' ? "未执行" : row.status == '1' ? "执行中" : "已完成" }}
执行
修改
@@ -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 ? '单词对话场景' : '连续对话场景' }}
-
+
-
-
-
-
+
+
+
- {{ row.responseTime }}
- 未测试
+ {{ statusTypeContext[row.status] }}
-
-
- {{ row.rate }}
- 未测试
-
-
-
-
- {{ row.result ? '通过' : '分析中' }}
-
-
-
-
- {{ row.can }}
- 未测试
-
-
-
+
+
+
+
@@ -57,8 +40,7 @@