|
|
@@ -163,28 +163,25 @@
|
|
|
</el-row>
|
|
|
</div> -->
|
|
|
</div>
|
|
|
- <template v-if="false">
|
|
|
+ <template v-if="gotype.gotype == 'bjs'">
|
|
|
<div style="margin-top: 20px;">
|
|
|
- <span class="grandTitle2" v-if="gotype.gotype == 'bjs'">人工智能竞赛课</span>
|
|
|
- <span class="grandTitle2" v-else>竞赛主题课程</span>
|
|
|
+ <span class="grandTitle2">人工智能竞赛课</span>
|
|
|
</div>
|
|
|
<div class="course_select">
|
|
|
<span class="grandTitle">课程类型:</span>
|
|
|
<el-button @click="cutmod(0)" :class="[cutmodpage == 0 ? 'el_button_active' :'']">
|
|
|
- <span v-if="gotype.gotype == 'bjs'">智能体课程</span>
|
|
|
- <span v-else>智能体设计与应用课程</span>
|
|
|
+ <span>智能体课程</span>
|
|
|
</el-button>
|
|
|
<el-button @click="cutmod(1)" :class="[cutmodpage == 1 ? 'el_button_active' :'']">
|
|
|
<span>创意智造课程</span>
|
|
|
</el-button>
|
|
|
- <!-- <el-button :class="!courseTypeShow ? 'el_button_active' : ''" @click="SwitchCourseType(false)">AI通识课2024版</el-button> -->
|
|
|
</div>
|
|
|
<div class="course_select">
|
|
|
<span class="grandTitle">模块:</span>
|
|
|
<el-button :class="selectmod == '模块一' ? 'el_button_active' : ''" @click="clickmod('模块一')">模块一</el-button>
|
|
|
<el-button v-if="cutmodpage == 0" :class="selectmod == '模块二' ? 'el_button_active' : ''" @click="clickmod('模块二')">模块二</el-button>
|
|
|
<el-button v-if="cutmodpage == 0" :class="selectmod == '模块三' ? 'el_button_active' : ''" @click="clickmod('模块三')">模块三</el-button>
|
|
|
- <el-button v-if="gotype.gotype == 'bjs' && cutmodpage == 0" :class="selectmod == '模块四' ? 'el_button_active' : ''" @click="clickmod('模块四')">模块四</el-button>
|
|
|
+ <el-button v-if="cutmodpage == 0" :class="selectmod == '模块四' ? 'el_button_active' : ''" @click="clickmod('模块四')">模块四</el-button>
|
|
|
</div>
|
|
|
<div class="course_select" v-if="gotype.gotype == 'bjs' && cutmodpage == 0">
|
|
|
<div v-if="currentmodData && currentmodData.shang.length > 0">
|
|
|
@@ -419,6 +416,7 @@ const handleClose =(done)=>{
|
|
|
}
|
|
|
const cutmod = (val) => {
|
|
|
cutmodpage.value = val
|
|
|
+ selectmod.value = '模块一'
|
|
|
clickmod(selectmod.value)
|
|
|
}
|
|
|
const clickmod = val => {
|
|
|
@@ -427,8 +425,6 @@ const clickmod = val => {
|
|
|
currentmodData.value = modData.value[val]
|
|
|
} else if (cutmodpage.value == 1) {
|
|
|
currentAI6TwoData.value = AI6TwoData.value[val]
|
|
|
- } else if (gotype.gotype != 'bjs' && cutmodpage.value == 0){
|
|
|
- currentAI6Data.value = AI6Data.value[val]
|
|
|
}
|
|
|
}
|
|
|
// const SwitchCourseType = (val) => {
|
|
|
@@ -668,7 +664,7 @@ watch(
|
|
|
if (hasInitTimeCourse.value) return
|
|
|
if (!val?.userid) return
|
|
|
hasInitTimeCourse.value = true
|
|
|
- getTimeCourse(1, { title: 'AI课程' })
|
|
|
+ // getTimeCourse(1, { title: 'AI课程' })
|
|
|
},
|
|
|
{ immediate: true, deep: true }
|
|
|
)
|