mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-06 17:36:46 +08:00
提交
This commit is contained in:
@@ -108,19 +108,30 @@
|
|||||||
<el-progress
|
<el-progress
|
||||||
:percentage="parseInt(value.progress)"
|
:percentage="parseInt(value.progress)"
|
||||||
:show-text="false"
|
:show-text="false"
|
||||||
:stroke-width="4"
|
:stroke-width="6"
|
||||||
:color="value.progress == 100 ? '#0077EC' : '#F2903D'"
|
:color="value.progress == 100 ? '#8BC34A' : '#F2903D'"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-time">
|
<div class="item-time">
|
||||||
<template v-if="value.completionStatus === '0'">
|
<template v-if="value.completionStatus === '0'">
|
||||||
<div style="color: #999999">未开始</div>
|
<div style="color: #999999">未开始</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else-if="value.completionStatus === '1'">
|
||||||
<div>
|
<div style="color: #8bc34a">
|
||||||
{{ `已完成 ${value.progress}%` }}
|
{{ `已完成 ${value.progress}%` }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-else-if="value.completionStatus === '2'">
|
||||||
|
<div style="color: #f2903d">
|
||||||
|
{{ `进行中 ${value.progress}%` }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template v-if="value.completionStatus === '3'">
|
||||||
|
<div style="color: #999999">已结束</div>
|
||||||
|
</template>
|
||||||
|
<template v-if="value.completionStatus === '10'">
|
||||||
|
<div style="color: #999999">未解锁</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
<div style="color: #999999">
|
<div style="color: #999999">
|
||||||
{{ `${value.createTime} 更新` }}
|
{{ `${value.createTime} 更新` }}
|
||||||
@@ -129,34 +140,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-button">
|
<div class="item-button">
|
||||||
<template v-if="value.completionStatus === '10'">
|
<template
|
||||||
<div @click="toFinish(value)" style="background: #999">
|
v-if="
|
||||||
未解锁
|
value.completionStatus === '2' ||
|
||||||
</div>
|
(value.completionStatus === '0' && value.canLearn)
|
||||||
</template>
|
"
|
||||||
<template v-if="value.completionStatus === '0'">
|
>
|
||||||
<div
|
|
||||||
@click="toFinish(value)"
|
|
||||||
:style="{
|
|
||||||
background: value.canLearn ? '#f2903d' : '#999',
|
|
||||||
}"
|
|
||||||
>
|
|
||||||
未开始
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<template v-if="value.completionStatus === '2'">
|
|
||||||
<div @click="toFinish(value)" style="background: #f2903d">
|
<div @click="toFinish(value)" style="background: #f2903d">
|
||||||
{{ TASK_TYPES.toName[value.courseType] }}
|
{{ TASK_TYPES.toName[value.courseType] }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="value.completionStatus === '1'">
|
<template v-if="value.completionStatus === '1'">
|
||||||
<div @click="toFinish(value)" style="background: #2478ff">
|
<div @click="toFinish(value)" style="background: #f2903d">
|
||||||
已完成
|
继续学习
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<template v-if="value.completionStatus === '3'">
|
|
||||||
<div @click="toFinish(value)" style="background: #999">
|
|
||||||
已结束
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
@@ -226,7 +222,7 @@
|
|||||||
:percentage="totalProgress"
|
:percentage="totalProgress"
|
||||||
:show-text="false"
|
:show-text="false"
|
||||||
:stroke-width="8"
|
:stroke-width="8"
|
||||||
:color="totalProgress == 100 ? '#0077EC' : '#F2903D'"
|
:color="totalProgress == 100 ? '#8BC34A' : '#EB5D00'"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@@ -251,16 +247,13 @@
|
|||||||
:percentage="requiredProgress"
|
:percentage="requiredProgress"
|
||||||
:show-text="false"
|
:show-text="false"
|
||||||
:stroke-width="8"
|
:stroke-width="8"
|
||||||
:color="
|
color="#FE9100"
|
||||||
requiredProgress == 100 ? '#0077EC' : '#F2903D'
|
|
||||||
"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
style="
|
style="
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #277aff;
|
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
color: #677d86;
|
color: #677d86;
|
||||||
"
|
"
|
||||||
@@ -279,16 +272,13 @@
|
|||||||
:percentage="electiveProgress"
|
:percentage="electiveProgress"
|
||||||
:show-text="false"
|
:show-text="false"
|
||||||
:stroke-width="8"
|
:stroke-width="8"
|
||||||
:color="
|
color="#FEC200"
|
||||||
electiveProgress == 100 ? '#0077EC' : '#F2903D'
|
|
||||||
"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
style="
|
style="
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #277aff;
|
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
color: #677d86;
|
color: #677d86;
|
||||||
"
|
"
|
||||||
@@ -634,14 +624,6 @@ async function toFinish(d) {
|
|||||||
openCourseList.value = d.offcoursePlanList;
|
openCourseList.value = d.offcoursePlanList;
|
||||||
openCourseVisible.value = true;
|
openCourseVisible.value = true;
|
||||||
return;
|
return;
|
||||||
} else if (d.offcoursePlanList && d.offcoursePlanList.length == 1) {
|
|
||||||
let date1 = new Date(d.offcoursePlanList[0].endTime).getTime();
|
|
||||||
let date2 = new Date().getTime();
|
|
||||||
if (date1 < date2) {
|
|
||||||
dialogVisibleTip.value = "当前课程已结束";
|
|
||||||
dialogVisible.value = true;
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -652,7 +634,7 @@ async function toFinish(d) {
|
|||||||
if (date1 < date2) {
|
if (date1 < date2) {
|
||||||
dialogVisibleTip.value = "当前作业已结束";
|
dialogVisibleTip.value = "当前作业已结束";
|
||||||
dialogVisible.value = true;
|
dialogVisible.value = true;
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 直播结束时间
|
// 直播结束时间
|
||||||
@@ -662,7 +644,7 @@ async function toFinish(d) {
|
|||||||
if (date1 < date2) {
|
if (date1 < date2) {
|
||||||
dialogVisibleTip.value = "当前直播已结束";
|
dialogVisibleTip.value = "当前直播已结束";
|
||||||
dialogVisible.value = true;
|
dialogVisible.value = true;
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 考试 停用
|
// 考试 停用
|
||||||
@@ -709,7 +691,7 @@ async function toFinish(d) {
|
|||||||
if (date1 < date2) {
|
if (date1 < date2) {
|
||||||
dialogVisibleTip.value = "当前活动已结束";
|
dialogVisibleTip.value = "当前活动已结束";
|
||||||
dialogVisible.value = true;
|
dialogVisible.value = true;
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -857,6 +839,12 @@ async function toFinish(d) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function toOffcoursePlanPage(item) {
|
function toOffcoursePlanPage(item) {
|
||||||
|
let date1 = new Date(item.endTime).getTime();
|
||||||
|
let date2 = new Date().getTime();
|
||||||
|
if (date1 < date2) {
|
||||||
|
ElMessage.warning(`当前开课已结束`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
window.open(
|
window.open(
|
||||||
`${location.protocol}//${location.host}${
|
`${location.protocol}//${location.host}${
|
||||||
import.meta.env.VITE_BASE_API
|
import.meta.env.VITE_BASE_API
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export default defineConfig(({ command, mode }) =>
|
|||||||
"/professional": {
|
"/professional": {
|
||||||
// target: 'http://192.168.16.195:32002',
|
// target: 'http://192.168.16.195:32002',
|
||||||
// target: 'http://192.168.150.97:32002',
|
// target: 'http://192.168.150.97:32002',
|
||||||
target: 'http://192.168.31.211:32002',
|
target: 'http://192.168.38.211:32002',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
// '/growth': {
|
// '/growth': {
|
||||||
|
|||||||
Reference in New Issue
Block a user