mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-11 03:46:48 +08:00
未到点的任务提示未到时间
This commit is contained in:
@@ -286,9 +286,7 @@ const {
|
|||||||
query: { courseId, projectId },
|
query: { courseId, projectId },
|
||||||
} = useRoute();
|
} = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const returnclick = () => {
|
|
||||||
router.back();
|
|
||||||
};
|
|
||||||
const { data } = useRequest(PROJECT_PROCESS, {
|
const { data } = useRequest(PROJECT_PROCESS, {
|
||||||
projectId: projectId || courseId,
|
projectId: projectId || courseId,
|
||||||
});
|
});
|
||||||
@@ -387,7 +385,7 @@ function toFinish(d, sName, chapterOrStageId) {
|
|||||||
if (date1 < date2) {
|
if (date1 < date2) {
|
||||||
dialogVisibleTip.value = '当前作业已结束';
|
dialogVisibleTip.value = '当前作业已结束';
|
||||||
dialogVisible.value = true;
|
dialogVisible.value = true;
|
||||||
// ElMessage.error("当前作业已结束")
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -490,6 +488,9 @@ function whiteTypes(type) {
|
|||||||
</script>
|
</script>
|
||||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.example-showcase .el-loading-mask {
|
||||||
|
z-index: 9;
|
||||||
|
}
|
||||||
.pathdetails {
|
.pathdetails {
|
||||||
.el-dialog__header {
|
.el-dialog__header {
|
||||||
display: none;
|
display: none;
|
||||||
|
|||||||
@@ -31,8 +31,8 @@
|
|||||||
<el-input v-model="projectname" placeholder="请输入项目名称" />
|
<el-input v-model="projectname" placeholder="请输入项目名称" />
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 420px">
|
<div style="width: 420px">
|
||||||
<el-date-picker v-model="searchTime" type="datetimerange" start-placeholder="开始时间" end-placeholder="结束时间"
|
<el-date-picker v-model="searchTime" type="daterange" range-separator="To" start-placeholder="开始时间" end-placeholder="结束时间" :size="size" @change="selectTime"/>
|
||||||
@change="selectTime" />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="searchBtn" @click="searchClick" style="margin-left: 20px">
|
<button class="searchBtn" @click="searchClick" style="margin-left: 20px">
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
<button class="searchBtn" @click="resetClick">重置</button>
|
<button class="searchBtn" @click="resetClick">重置</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="projectList" v-if="!projectList.length" style="display:flex;color:#909399;">
|
<div class="projectList" v-if="!projectList.length" style="display:flex;color:#909399;">
|
||||||
<img class="img2" style="margin-left: 675px;margin-top: 165px;width:148px;height:220px;"
|
<img class="img2" style="margin-left:359px;margin-top:100px;width:148px;height:220px;"
|
||||||
src="../../assets/image/notask.png" />
|
src="../../assets/image/notask.png" />
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="projectList" v-for="(i, k) in projectList" :key="k">
|
<div v-else class="projectList" v-for="(i, k) in projectList" :key="k">
|
||||||
|
|||||||
@@ -393,6 +393,72 @@ function toFinish(d) {
|
|||||||
ElMessage.error("暂时未开放");
|
ElMessage.error("暂时未开放");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (d.type == 4) {
|
||||||
|
let date1 = new Date(d.endTime).getTime();
|
||||||
|
let date2 = new Date().getTime();
|
||||||
|
if (date1 < date2) {
|
||||||
|
dialogVisibleTip.value = '当前作业已结束';
|
||||||
|
dialogVisible.value = true;
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 直播结束时间
|
||||||
|
if (d.type == 6) {
|
||||||
|
let date1 = new Date(d.endTime).getTime();
|
||||||
|
let date2 = new Date().getTime();
|
||||||
|
if (date1 < date2) {
|
||||||
|
dialogVisibleTip.value = '当前直播已结束';
|
||||||
|
dialogVisible.value = true;
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 考试 停用
|
||||||
|
if (d.type == 5) {
|
||||||
|
if (d.taskStatus == 1 || d.taskStatus == 2) {
|
||||||
|
// ElMessage.error("该任务无法学习,请联系管理员进行替换。")
|
||||||
|
dialogVisibleTip.value = '该任务无法学习,请联系管理员进行替换!';
|
||||||
|
dialogVisible.value = true;
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 评估 停用
|
||||||
|
if (d.type == 11) {
|
||||||
|
if (d.taskStatus == 1 || d.taskStatus == 2) {
|
||||||
|
// ElMessage.error("该任务无法学习,请联系管理员进行替换。")
|
||||||
|
dialogVisibleTip.value = '该任务无法学习,请联系管理员进行替换!';
|
||||||
|
dialogVisible.value = true;
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 其他活动 结束时间
|
||||||
|
if (d.type == 9) {
|
||||||
|
let date1 = new Date(d.endTime).getTime();
|
||||||
|
let date2 = new Date().getTime();
|
||||||
|
if (date1 < date2) {
|
||||||
|
dialogVisibleTip.value = '当前活动已结束';
|
||||||
|
dialogVisible.value = true;
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 在线课 停用 -- 暂时没有在线课停用标记
|
||||||
|
if (d.type == 1) {
|
||||||
|
if (d.taskStatus == 1 || d.taskStatus == 2) {
|
||||||
|
// ElMessage.error("该任务无法学习,请联系管理员进行替换。")
|
||||||
|
dialogVisibleTip.value = '该任务无法学习,请联系管理员进行替换!';
|
||||||
|
dialogVisible.value = true;
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 面授课 停用
|
||||||
|
if (d.type == 2) {
|
||||||
|
if (d.taskStatus == 1 || d.taskStatus == 2) {
|
||||||
|
// ElMessage.error("该任务无法学习,请联系管理员进行替换。")
|
||||||
|
dialogVisibleTip.value = '该任务无法学习,请联系管理员进行替换!';
|
||||||
|
dialogVisible.value = true;
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
if (d.type === 3 || d.type === 7) {
|
if (d.type === 3 || d.type === 7) {
|
||||||
request(STUDY_RECORD, {
|
request(STUDY_RECORD, {
|
||||||
studentId: userInfo.value.id,
|
studentId: userInfo.value.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user