diff --git a/src/views/pathmap/PathmapPage.vue b/src/views/pathmap/PathmapPage.vue
index 03bd1bc..d40234d 100644
--- a/src/views/pathmap/PathmapPage.vue
+++ b/src/views/pathmap/PathmapPage.vue
@@ -142,17 +142,38 @@
:style="{ background: el.statusName !== '已结束' && (el.statusName || data.unlockMode === 1) ? '#2478ff' : '#999' }" @click="toFinish(el)">
{{el.statusName || (data.unlockMode === 1 ? TASK_TYPES.toName[el.type] : "未解锁")}}
-
+
+
+
+
+
+
@@ -307,6 +328,9 @@ function judgeTaskIsEnd(type, endTimes, status) {
}
return isEnd;
}
+const openCourseVisible = ref(false);
+const openCourseList = ref([]);
+const openCourseIdList = ref([]);
function toFinish(d) {
if (data.value.unlockMode !== 1 && !d.statusName) {
ElMessage.warning("当前未解锁");
@@ -317,6 +341,9 @@ function toFinish(d) {
return ElMessage.error("还未添加开课,请联系管理员!")
}
if(d.targetId.split(',').length>1){
+ openCourseList.value = d.targetName?.split(',');
+ openCourseIdList.value = d.targetId?.split(',');
+ openCourseVisible.value = true;
return
}
}
@@ -512,6 +539,12 @@ function whiteTypes(type) {