mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-11 03:46:48 +08:00
style:任务无法学习提示框修改样式
This commit is contained in:
@@ -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">
|
||||
<div style="width:288px;color:#333333;font-size: 22px;font-weight: 600;">该任务无法学习,请联系管理员进行替换!</div>
|
||||
<div style="width:288px;color:#333333;font-size: 22px;font-weight: 600;">{{ dialogVisibleTip }}</div>
|
||||
<span slot="footer" style="display:inline-block;margin-top:60px;">
|
||||
<el-button @click="dialogVisible = false" style="width:140px;height:40px;margin-right: 22px;">取消</el-button>
|
||||
<el-button type="primary" @click="dialogVisible = false" style="width:140px;height:40px;">确定</el-button>
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user