style:闯关模式选择项目和路径图不一致调整

This commit is contained in:
wyx
2023-02-16 17:33:16 +08:00
parent 5591a98e33
commit 8602518cb1
2 changed files with 7 additions and 2 deletions

View File

@@ -52,7 +52,7 @@
>逐个任务解锁完成一个任务后解锁下一个</a-radio >逐个任务解锁完成一个任务后解锁下一个</a-radio
> >
</div> </div>
<div style="margin-top: 24px"> <div v-if="types!==1" style="margin-top: 24px">
<a-radio :value="3" <a-radio :value="3"
>完成当前阶段所有必修任务解锁下一阶段</a-radio >完成当前阶段所有必修任务解锁下一阶段</a-radio
> >
@@ -78,6 +78,10 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
types: {
type: Number,
default: null,
},
objData:{ objData:{
type: Object type: Object
} }

View File

@@ -131,7 +131,7 @@
<a-button type="primary" size="large" style="border-radius: 8px;margin-left: 24px;" <a-button type="primary" size="large" style="border-radius: 8px;margin-left: 24px;"
@click="showModeVisible">切换模式 @click="showModeVisible">切换模式
</a-button> </a-button>
<unlock-mode ref="unlockModeModal" v-model:unlockModeVisible="unlockModeVisible" <unlock-mode ref="unlockModeModal" v-model:unlockModeVisible="unlockModeVisible" v-model:types="types"
:objData="routerInfo" @saveUnlock="saveUnlock" @closeUnlockModal="closeUnlockModal"/> :objData="routerInfo" @saveUnlock="saveUnlock" @closeUnlockModal="closeUnlockModal"/>
</div> </div>
<div class="line"></div> <div class="line"></div>
@@ -476,6 +476,7 @@ const unlockModeVisible = ref(false)
const cancleLoading = ref(false) const cancleLoading = ref(false)
const templateLoading = ref(false) const templateLoading = ref(false)
const confirmLoading = ref(false) const confirmLoading = ref(false)
const types = ref(1) // 1 路径图 2 项目
const activeIndex = ref(0) const activeIndex = ref(0)
const courseRef = ref({}) const courseRef = ref({})
const routerInfo = ref({chapterList: [{name: '关卡一', taskList: []}], routerInfo: {}}) const routerInfo = ref({chapterList: [{name: '关卡一', taskList: []}], routerInfo: {}})