【修改】 试卷软件环境根据试卷方案中试题自动获取

This commit is contained in:
dlaren
2025-08-07 15:11:31 +08:00
parent 5ca909ba9f
commit f04f37c504
9 changed files with 85 additions and 119 deletions

View File

@@ -335,7 +335,7 @@
</el-tab-pane>
<el-tab-pane label="考试环境配置" name="tab5">
<div class="block" @blur.capture="handleFormChange">
<el-button @click="openAddForm">新增</el-button>
<el-button @click="asyncApp">同步软件环境</el-button>
<el-table v-if="isAppTrue" :data="tableData" style="width: 100%">
<el-table-column prop="appName" label="名称" align="center" />
<el-table-column label="操作" align="center" width="100px">
@@ -398,13 +398,14 @@ const showAdd = ref(false)
const taskAddRef = ref()
const message = useMessage() // 消息弹窗
const isAppTrue = ref(true)
// 打开新增表单
const openAddForm = () => {
showAdd.value = true
nextTick(() => {
taskAddRef.value?.open()
// 同步软件环境
const asyncApp = () => {
AppApi.createAppCheckList(props.taskId).then(() => {
getList()
})
}
const reload = () => {
getList()
}
@@ -427,7 +428,6 @@ const openAppForm = async () => {
setTimeout(() => {
isAppTrue.value = true
}, 0)
}
}