mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 03:16:44 +08:00
Merge remote-tracking branch 'origin/develop' into develop
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 = () => {
|
||||||
|
|||||||
@@ -117,13 +117,17 @@
|
|||||||
<div class="rightt">
|
<div class="rightt">
|
||||||
<div class="select" style="margin-right:90px;">
|
<div class="select" style="margin-right:90px;">
|
||||||
<span>学习模式:</span>
|
<span>学习模式:</span>
|
||||||
<a-select v-model:value="routerInfo.routerInfo.unlockMode" ref="select" size="small"
|
<span
|
||||||
|
style="border: 1px solid rgba(0, 0, 0, 0.25);width: 120px;height: 38px; border-radius: 10px;text-align: center;line-height: 38px;">
|
||||||
|
{{ routerInfo.routerInfo.unlockMode == 1 ? '自由学习模式': routerInfo.routerInfo.unlockMode == 2 || routerInfo.routerInfo.unlockMode == 3 ? '闯关模式': '' }}
|
||||||
|
</span>
|
||||||
|
<!-- <a-select v-model:value="routerInfo.routerInfo.unlockMode" ref="select" size="small"
|
||||||
style="width: 150px" disabled>
|
style="width: 150px" disabled>
|
||||||
<a-select-option :value="1">自由学习模式</a-select-option>
|
<a-select-option :value="1">自由学习模式</a-select-option>
|
||||||
<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 +466,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: []})
|
||||||
|
|||||||
@@ -108,14 +108,18 @@
|
|||||||
<!-- 2022-11-30注释 后面放开 -->
|
<!-- 2022-11-30注释 后面放开 -->
|
||||||
<div class="select" style="margin-right:90px;">
|
<div class="select" style="margin-right:90px;">
|
||||||
<span>学习模式:</span>
|
<span>学习模式:</span>
|
||||||
|
<span
|
||||||
|
style="border: 1px solid rgba(0, 0, 0, 0.25);width: 120px;height: 38px; border-radius: 10px;text-align: center;line-height: 38px;">
|
||||||
|
{{ unlockMode == 1 ? '自由学习模式': unlockMode == 2 || unlockMode == 3 ? '闯关模式': '' }}
|
||||||
|
</span>
|
||||||
<!-- <div class="inputbox"> -->
|
<!-- <div class="inputbox"> -->
|
||||||
<!-- <input type="text" placeholder="按学习时间解锁" style="padding-left:12px;" /> -->
|
<!-- <input type="text" placeholder="按学习时间解锁" style="padding-left:12px;" /> -->
|
||||||
<a-select v-model:value="unlockMode" ref="select" size="small" style="width: 150px"
|
<!-- <a-select v-model:value="unlockMode" ref="select" size="small" style="width: 150px"
|
||||||
disabled>
|
disabled>
|
||||||
<a-select-option :value="1">自由学习模式</a-select-option>
|
<a-select-option :value="1">自由学习模式</a-select-option>
|
||||||
<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> -->
|
||||||
<a-button type="primary" size="large" style="margin-left:10px;border-radius: 10px;" @click="showModeVisible">切换模式</a-button>
|
<a-button type="primary" size="large" style="margin-left:10px;border-radius: 10px;" @click="showModeVisible">切换模式</a-button>
|
||||||
<!-- <div class="bottonbox" @click="showModeVisible">
|
<!-- <div class="bottonbox" @click="showModeVisible">
|
||||||
<div class="btnText">切换模式</div>
|
<div class="btnText">切换模式</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user