mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 05:46:45 +08:00
fix:修改学习路径学习模式切换
This commit is contained in:
@@ -55,7 +55,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
|
||||||
@@ -90,7 +90,8 @@ const classify = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
routerInfo: {}
|
routerInfo: {},
|
||||||
|
types: Number
|
||||||
})
|
})
|
||||||
const routerInfoData = ref({})
|
const routerInfoData = ref({})
|
||||||
const classifyActive = computed(() => routerInfoData.value.unlockMode === 1 ? 1 : 2)
|
const classifyActive = computed(() => routerInfoData.value.unlockMode === 1 ? 1 : 2)
|
||||||
@@ -101,8 +102,16 @@ const closeDrawer = () => {
|
|||||||
visible.value = false
|
visible.value = false
|
||||||
};
|
};
|
||||||
|
|
||||||
function selectClassify({type}) {
|
function selectClassify(e) {
|
||||||
routerInfoData.value.unlockMode = type
|
|
||||||
|
if(e.type === 1){
|
||||||
|
routerInfoData.value.unlockMode = e.type
|
||||||
|
}
|
||||||
|
// 当为学习路径图时候 直接默认第一个选项 不用选中
|
||||||
|
if(e.type==2 && props.types==1){
|
||||||
|
routerInfoData.value.unlockMode = e.type
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const saveUnlock = () => {
|
const saveUnlock = () => {
|
||||||
|
|||||||
@@ -123,7 +123,7 @@
|
|||||||
<a-select-option :value="2">闯关模式</a-select-option>
|
<a-select-option :value="2">闯关模式</a-select-option>
|
||||||
<a-select-option :value="3">闯关模式</a-select-option>
|
<a-select-option :value="3">闯关模式</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
<unlock-mode :routerInfo="routerInfo.routerInfo">
|
<unlock-mode :routerInfo="routerInfo.routerInfo" :types="types">
|
||||||
<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;">切换模式
|
||||||
</a-button>
|
</a-button>
|
||||||
</unlock-mode>
|
</unlock-mode>
|
||||||
@@ -462,6 +462,7 @@ const confirmLoading = ref(false)
|
|||||||
const moveChapterIndex = ref('')
|
const moveChapterIndex = ref('')
|
||||||
const activeIndex = ref(0)
|
const activeIndex = ref(0)
|
||||||
const deleteIndex = ref(0)
|
const deleteIndex = ref(0)
|
||||||
|
const types = 1 // 1 路径图 2 项目
|
||||||
|
|
||||||
const courseRef = ref({})
|
const courseRef = ref({})
|
||||||
const formValue = ref({draftTaskList: []})
|
const formValue = ref({draftTaskList: []})
|
||||||
|
|||||||
Reference in New Issue
Block a user