mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 05:46:45 +08:00
fix -- bug
This commit is contained in:
@@ -266,7 +266,7 @@
|
||||
<div class="opat">
|
||||
<div class="opacationt clearfix">
|
||||
<a-switch style="margin-left: -50px; margin-top: 3px" v-model:checked="element.flag"
|
||||
size="small" active-color="red" @click="changeCourseType(element)"/>
|
||||
size="small" active-color="red"/>
|
||||
<div class="showt clearfix">
|
||||
<div class="bi" :style="{
|
||||
'z-index': element.checked1 ? 999 : 998,
|
||||
@@ -451,7 +451,6 @@
|
||||
import {computed, onMounted, onUnmounted, ref, watch} from "vue";
|
||||
import {GetRouterDraftDetail, releaseRouter} from "@/api/indexTask";
|
||||
import {message} from "ant-design-vue";
|
||||
import {editTask} from "@/api/indexTaskadd";
|
||||
import {useRoute} from "vue-router";
|
||||
import UnlockMode from "@/components/drawers/UnlockMode.vue";
|
||||
import {TASK_TYPE} from "@/utils/const";
|
||||
@@ -597,11 +596,6 @@ const editTaskForType = (ele, index) => {
|
||||
courseRef.value['el' + ele.type].openDrawer(index, ele)
|
||||
};
|
||||
|
||||
const changeCourseType = (ele) => {
|
||||
editTask(ele);
|
||||
message.destroy();
|
||||
message.success("修改成功");
|
||||
};
|
||||
const showChangeModal = () => {
|
||||
if (routerInfo.value?.chapterList?.length <= 1) {
|
||||
message.warning("请添加关卡!");
|
||||
|
||||
Reference in New Issue
Block a user