mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-12 12:26:49 +08:00
style:任务无法学习提示框修改样式
This commit is contained in:
@@ -232,7 +232,7 @@
|
|||||||
:show-close="false"
|
:show-close="false"
|
||||||
style="display:flex;justify-content:center;align-items:center;height: 283px;padding:0;border-radius: 4px;"
|
style="display:flex;justify-content:center;align-items:center;height: 283px;padding:0;border-radius: 4px;"
|
||||||
width="502px">
|
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;">
|
<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 @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>
|
<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 dialogVisible = ref(false);
|
||||||
|
const dialogVisibleTip = ref('该任务无法学习,请联系管理员进行替换!');
|
||||||
|
|
||||||
// function dialogVisible(){
|
// function dialogVisible(){
|
||||||
// return true;
|
// return true;
|
||||||
@@ -347,7 +348,9 @@ function toFinish(d, sName, chapterId) {
|
|||||||
let date1 = new Date(d.endTime).getTime();
|
let date1 = new Date(d.endTime).getTime();
|
||||||
let date2 = new Date().getTime();
|
let date2 = new Date().getTime();
|
||||||
if (date1 < date2) {
|
if (date1 < date2) {
|
||||||
ElMessage.error("当前作业已结束")
|
dialogVisibleTip.value ='当前作业已结束';
|
||||||
|
dialogVisible.value = true;
|
||||||
|
// ElMessage.error("当前作业已结束")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -356,7 +359,8 @@ function toFinish(d, sName, chapterId) {
|
|||||||
let date1 = new Date(d.endTime).getTime();
|
let date1 = new Date(d.endTime).getTime();
|
||||||
let date2 = new Date().getTime();
|
let date2 = new Date().getTime();
|
||||||
if (date1 < date2) {
|
if (date1 < date2) {
|
||||||
ElMessage.error("当前直播已结束")
|
dialogVisibleTip.value ='当前直播已结束';
|
||||||
|
dialogVisible.value = true;
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -364,6 +368,7 @@ function toFinish(d, sName, chapterId) {
|
|||||||
if (d.type == 5) {
|
if (d.type == 5) {
|
||||||
if (d.taskStatus == 1 || d.taskStatus == 2) {
|
if (d.taskStatus == 1 || d.taskStatus == 2) {
|
||||||
// ElMessage.error("该任务无法学习,请联系管理员进行替换。")
|
// ElMessage.error("该任务无法学习,请联系管理员进行替换。")
|
||||||
|
dialogVisibleTip.value ='该任务无法学习,请联系管理员进行替换!';
|
||||||
dialogVisible.value = true;
|
dialogVisible.value = true;
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -372,6 +377,7 @@ function toFinish(d, sName, chapterId) {
|
|||||||
if (d.type == 11) {
|
if (d.type == 11) {
|
||||||
if (d.taskStatus == 1 || d.taskStatus == 2) {
|
if (d.taskStatus == 1 || d.taskStatus == 2) {
|
||||||
// ElMessage.error("该任务无法学习,请联系管理员进行替换。")
|
// ElMessage.error("该任务无法学习,请联系管理员进行替换。")
|
||||||
|
dialogVisibleTip.value ='该任务无法学习,请联系管理员进行替换!';
|
||||||
dialogVisible.value = true;
|
dialogVisible.value = true;
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -381,7 +387,8 @@ function toFinish(d, sName, chapterId) {
|
|||||||
let date1 = new Date(d.endTime).getTime();
|
let date1 = new Date(d.endTime).getTime();
|
||||||
let date2 = new Date().getTime();
|
let date2 = new Date().getTime();
|
||||||
if (date1 < date2) {
|
if (date1 < date2) {
|
||||||
ElMessage.error("当前活动已结束")
|
dialogVisibleTip.value ='当前活动已结束';
|
||||||
|
dialogVisible.value = true;
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -389,6 +396,7 @@ function toFinish(d, sName, chapterId) {
|
|||||||
if (d.type == 1) {
|
if (d.type == 1) {
|
||||||
if (d.taskStatus == 1 || d.taskStatus == 2) {
|
if (d.taskStatus == 1 || d.taskStatus == 2) {
|
||||||
// ElMessage.error("该任务无法学习,请联系管理员进行替换。")
|
// ElMessage.error("该任务无法学习,请联系管理员进行替换。")
|
||||||
|
dialogVisibleTip.value ='该任务无法学习,请联系管理员进行替换!';
|
||||||
dialogVisible.value = true;
|
dialogVisible.value = true;
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -397,6 +405,7 @@ function toFinish(d, sName, chapterId) {
|
|||||||
if (d.type == 2) {
|
if (d.type == 2) {
|
||||||
if (d.taskStatus == 1 || d.taskStatus == 2) {
|
if (d.taskStatus == 1 || d.taskStatus == 2) {
|
||||||
// ElMessage.error("该任务无法学习,请联系管理员进行替换。")
|
// ElMessage.error("该任务无法学习,请联系管理员进行替换。")
|
||||||
|
dialogVisibleTip.value ='该任务无法学习,请联系管理员进行替换!';
|
||||||
dialogVisible.value = true;
|
dialogVisible.value = true;
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user