From 874992b594bd74349ed669c02a4714edc8d2aa92 Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Thu, 23 Mar 2023 22:12:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E9=9D=A2=E6=8E=88?= =?UTF-8?q?=E8=AF=BE=E5=BC=80=E8=AF=BE=E5=8E=BB=E4=B8=8A=E8=AF=BE=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pathmap/PathmapPage.vue | 37 +++++++++++++++++++-- src/views/projectdetails/projectDetails.vue | 37 +++++++++++++++++++-- 2 files changed, 70 insertions(+), 4 deletions(-) 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) {