|
@@ -47,6 +47,42 @@
|
|
|
<a-button @click="handleDeleteProjects([record.id])">
|
|
|
删除
|
|
|
</a-button>
|
|
|
+ <a-button
|
|
|
+ v-if="record.status === 'PROCESSING'"
|
|
|
+ @click="handleCancelProject(record.id)"
|
|
|
+ >
|
|
|
+ 取消计算
|
|
|
+ </a-button>
|
|
|
+ <a-button
|
|
|
+ v-if="record.status === 'FINISH'"
|
|
|
+ @click="handleRestartProject(record.id)"
|
|
|
+ >
|
|
|
+ 重新计算
|
|
|
+ </a-button>
|
|
|
+ <a-button @click="handleLogsOfProject(record.id)">
|
|
|
+ 错误报告
|
|
|
+ </a-button>
|
|
|
+ <a-button
|
|
|
+ v-if="record.status === 'PROCESSING'"
|
|
|
+ @click="handleDeleteProjects([record.id])"
|
|
|
+ >
|
|
|
+ 数据管理
|
|
|
+ </a-button>
|
|
|
+ <a-button
|
|
|
+ v-if="record.status === 'PROCESSING'"
|
|
|
+ @click="handleDeleteProjects([record.id])"
|
|
|
+ >
|
|
|
+ 参数配置
|
|
|
+ </a-button>
|
|
|
+ <a-button @click="handleDeleteProjects([record.id])">
|
|
|
+ 试卷列表
|
|
|
+ </a-button>
|
|
|
+ <a-button @click="handleDeleteProjects([record.id])">
|
|
|
+ 整体分析
|
|
|
+ </a-button>
|
|
|
+ <a-button @click="handleDeleteProjects([record.id])">
|
|
|
+ 报告说明
|
|
|
+ </a-button>
|
|
|
</span>
|
|
|
</template>
|
|
|
</a-table>
|
|
@@ -76,6 +112,7 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import {
|
|
|
+ cancelProject,
|
|
|
deleteProjects,
|
|
|
getProjectList,
|
|
|
updateProject,
|
|
@@ -210,4 +247,19 @@ const rowSelection = {
|
|
|
selectIds = selectedRowKeys as number[];
|
|
|
},
|
|
|
};
|
|
|
+
|
|
|
+async function handleCancelProject(id: number) {
|
|
|
+ await cancelProject(id);
|
|
|
+ message.success({ content: "操作成功" });
|
|
|
+}
|
|
|
+
|
|
|
+async function handleRestartProject(id: number) {
|
|
|
+ await cancelProject(id);
|
|
|
+ message.success({ content: "操作成功" });
|
|
|
+}
|
|
|
+
|
|
|
+async function handleLogsOfProject(id: number) {
|
|
|
+ await cancelProject(id);
|
|
|
+ message.success({ content: "操作成功" });
|
|
|
+}
|
|
|
</script>
|