Merge branch 'zcwy-zsx0223' into dev0223

This commit is contained in:
zhangsir
2024-04-15 09:55:56 +08:00
2 changed files with 6 additions and 6 deletions

View File

@@ -542,7 +542,7 @@
<div
class="operation"
style="cursor: pointer"
@click="openCourse(item,key)"
@click="openCourse(item,key,index)"
v-if="item.type == 2"
>
开课
@@ -1568,9 +1568,9 @@ export default {
window.open(`${process.env.VUE_APP_BASE_API}/admin/assessment/manage/export?type=${2}&pid=${item.id}&courseId=${item.courseId}`)
};
const coursePlanRef = ref();
const openCourse = async (item,index) => {
const openCourse = async (item,key,index) => {
await GetRouterDraftDetail(state.routerId).then((item)=>{
coursePlanRef.value.openDrawer(item.data.data.chapterList[0].draftTaskList[index]);
coursePlanRef.value.openDrawer(item.data.data.chapterList[index].draftTaskList[key]);
})
}
const qrCodeItems = ref([]);

View File

@@ -676,7 +676,7 @@
<div
class="operation"
style="cursor: pointer"
@click="openCourse(item,key)"
@click="openCourse(item,key,index)"
v-if="item.type == 2"
>
开课
@@ -2450,9 +2450,9 @@ export default {
window.open(`${process.env.VUE_APP_BASE_API}/admin/assessment/manage/export?type=${1}&pid=${item.id}&courseId=${item.courseId}`)
};
const coursePlanRef = ref();
const openCourse = async (item,index) => {
const openCourse = async (item,key,index) => {
await apitl.getDraftTask({projectId: item.projectId}).then((item)=>{
coursePlanRef.value.openDrawer(item.data.data.stageList[0].taskDraftDtoList[index]);
coursePlanRef.value.openDrawer(item.data.data.stageList[index].taskDraftDtoList[key]);
})
}
const qrCodeItems = ref([]);