mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 13:26:45 +08:00
编辑状态不允许切换考试类型
This commit is contained in:
@@ -20,7 +20,6 @@
|
|||||||
<div style="display: flex; flex-direction: row; padding-top: 0px; margin-top: 20px; margin-left: 32px;">
|
<div style="display: flex; flex-direction: row; padding-top: 0px; margin-top: 20px; margin-left: 32px;">
|
||||||
<div>
|
<div>
|
||||||
<button
|
<button
|
||||||
:disabled="taskIndex >= 0"
|
|
||||||
style="width: 100px; cursor: pointer;"
|
style="width: 100px; cursor: pointer;"
|
||||||
@click="changeOuter(1)"
|
@click="changeOuter(1)"
|
||||||
:class="formData.examType === 1 ? 'outer' : 'notOuter'"
|
:class="formData.examType === 1 ? 'outer' : 'notOuter'"
|
||||||
@@ -468,6 +467,9 @@ const delTag = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function changeOuter(v) {
|
function changeOuter(v) {
|
||||||
|
if (taskIndex.value >= 0) {
|
||||||
|
return message.warn("编辑状态不允许切换。")
|
||||||
|
}
|
||||||
formData.value.examType = v;
|
formData.value.examType = v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user