|
@@ -109,9 +109,13 @@
|
|
scope.row.unexposedPaperType | defaultFieldFilter
|
|
scope.row.unexposedPaperType | defaultFieldFilter
|
|
}}</span>
|
|
}}</span>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="enable" label="启用/禁用" width="90">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="examTaskDetailEnable"
|
|
|
|
+ label="启用/禁用"
|
|
|
|
+ width="90"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{ scope.row.enable | enableFilter }}
|
|
|
|
|
|
+ {{ scope.row.examTaskDetailEnable | enableFilter }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -130,10 +134,12 @@
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
v-if="checkPrivilege('link', 'enable')"
|
|
v-if="checkPrivilege('link', 'enable')"
|
|
- :class="scope.row.enable ? 'btn-danger' : 'btn-primary'"
|
|
|
|
|
|
+ :class="
|
|
|
|
+ scope.row.examTaskDetailEnable ? 'btn-danger' : 'btn-primary'
|
|
|
|
+ "
|
|
type="text"
|
|
type="text"
|
|
@click="toEnable(scope.row)"
|
|
@click="toEnable(scope.row)"
|
|
- >{{ scope.row.enable ? "禁用" : "启用" }}</el-button
|
|
|
|
|
|
+ >{{ scope.row.examTaskDetailEnable ? "禁用" : "启用" }}</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
v-if="checkPrivilege('link', 'download')"
|
|
v-if="checkPrivilege('link', 'download')"
|
|
@@ -314,7 +320,7 @@ export default {
|
|
"命题任务启用后,触发试卷关联校验,若能匹配则自动关联试卷,您确定要启用命题任务吗?",
|
|
"命题任务启用后,触发试卷关联校验,若能匹配则自动关联试卷,您确定要启用命题任务吗?",
|
|
],
|
|
],
|
|
];
|
|
];
|
|
- const msg = row.enable ? msgs[0] : msgs[1];
|
|
|
|
|
|
+ const msg = row.examTaskDetailEnable ? msgs[0] : msgs[1];
|
|
const msgHtml = msg
|
|
const msgHtml = msg
|
|
.map((item) => `<p class="text-left">${item}</p>`)
|
|
.map((item) => `<p class="text-left">${item}</p>`)
|
|
.join("");
|
|
.join("");
|
|
@@ -323,12 +329,12 @@ export default {
|
|
type: "warning",
|
|
type: "warning",
|
|
})
|
|
})
|
|
.then(async () => {
|
|
.then(async () => {
|
|
- const enable = !row.enable;
|
|
|
|
|
|
+ const examTaskDetailEnable = !row.examTaskDetailEnable;
|
|
await ableTaskPaper({
|
|
await ableTaskPaper({
|
|
id: row.id,
|
|
id: row.id,
|
|
- enable,
|
|
|
|
|
|
+ examTaskDetailEnable,
|
|
});
|
|
});
|
|
- row.enable = enable;
|
|
|
|
|
|
+ row.examTaskDetailEnable = examTaskDetailEnable;
|
|
this.$message.success("操作成功!");
|
|
this.$message.success("操作成功!");
|
|
})
|
|
})
|
|
.catch(() => {});
|
|
.catch(() => {});
|