From f24d47e8d25d167258f4c51de29326afca86b775 Mon Sep 17 00:00:00 2001 From: wyx Date: Thu, 22 Dec 2022 15:45:57 +0800 Subject: [PATCH] =?UTF-8?q?style:=E4=BB=BB=E5=8A=A1=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E6=8F=90=E7=A4=BA=E6=A1=86=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/project/ProjectDetails.vue | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/views/project/ProjectDetails.vue b/src/views/project/ProjectDetails.vue index 10b31db..2806a8a 100644 --- a/src/views/project/ProjectDetails.vue +++ b/src/views/project/ProjectDetails.vue @@ -232,7 +232,7 @@ :show-close="false" style="display:flex;justify-content:center;align-items:center;height: 283px;padding:0;border-radius: 4px;" width="502px"> -
该任务无法学习,请联系管理员进行替换!
+
{{ dialogVisibleTip }}
取消 确定 @@ -335,6 +335,7 @@ const types = ref({ }); const dialogVisible = ref(false); +const dialogVisibleTip = ref('该任务无法学习,请联系管理员进行替换!'); // function dialogVisible(){ // return true; @@ -347,7 +348,9 @@ function toFinish(d, sName, chapterId) { let date1 = new Date(d.endTime).getTime(); let date2 = new Date().getTime(); if (date1 < date2) { - ElMessage.error("当前作业已结束") + dialogVisibleTip.value ='当前作业已结束'; + dialogVisible.value = true; + // ElMessage.error("当前作业已结束") return } } @@ -356,7 +359,8 @@ function toFinish(d, sName, chapterId) { let date1 = new Date(d.endTime).getTime(); let date2 = new Date().getTime(); if (date1 < date2) { - ElMessage.error("当前直播已结束") + dialogVisibleTip.value ='当前直播已结束'; + dialogVisible.value = true; return } } @@ -364,6 +368,7 @@ function toFinish(d, sName, chapterId) { if (d.type == 5) { if (d.taskStatus == 1 || d.taskStatus == 2) { // ElMessage.error("该任务无法学习,请联系管理员进行替换。") + dialogVisibleTip.value ='该任务无法学习,请联系管理员进行替换!'; dialogVisible.value = true; return } @@ -372,6 +377,7 @@ function toFinish(d, sName, chapterId) { if (d.type == 11) { if (d.taskStatus == 1 || d.taskStatus == 2) { // ElMessage.error("该任务无法学习,请联系管理员进行替换。") + dialogVisibleTip.value ='该任务无法学习,请联系管理员进行替换!'; dialogVisible.value = true; return } @@ -381,7 +387,8 @@ function toFinish(d, sName, chapterId) { let date1 = new Date(d.endTime).getTime(); let date2 = new Date().getTime(); if (date1 < date2) { - ElMessage.error("当前活动已结束") + dialogVisibleTip.value ='当前活动已结束'; + dialogVisible.value = true; return } } @@ -389,6 +396,7 @@ function toFinish(d, sName, chapterId) { if (d.type == 1) { if (d.taskStatus == 1 || d.taskStatus == 2) { // ElMessage.error("该任务无法学习,请联系管理员进行替换。") + dialogVisibleTip.value ='该任务无法学习,请联系管理员进行替换!'; dialogVisible.value = true; return } @@ -397,6 +405,7 @@ function toFinish(d, sName, chapterId) { if (d.type == 2) { if (d.taskStatus == 1 || d.taskStatus == 2) { // ElMessage.error("该任务无法学习,请联系管理员进行替换。") + dialogVisibleTip.value ='该任务无法学习,请联系管理员进行替换!'; dialogVisible.value = true; return }