mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-09 02:46:48 +08:00
评估显示
This commit is contained in:
@@ -65,6 +65,22 @@
|
|||||||
@click="signClick"
|
@click="signClick"
|
||||||
>{{ data.signFlag ? "已签到" : "签到" }}
|
>{{ data.signFlag ? "已签到" : "签到" }}
|
||||||
</botton>
|
</botton>
|
||||||
|
<botton
|
||||||
|
v-if="data.planDto?.evalFlag !== 0"
|
||||||
|
:style="{
|
||||||
|
background: `${
|
||||||
|
new Date(data.planDto?.beginTime).getTime() >
|
||||||
|
new Date().getTime()
|
||||||
|
? '#999'
|
||||||
|
: data.isSurvery
|
||||||
|
? '#999'
|
||||||
|
: 'rgb(57, 146, 249)'
|
||||||
|
}`,
|
||||||
|
}"
|
||||||
|
class="btn"
|
||||||
|
@click="toSurvery"
|
||||||
|
>{{ data.isSurvery ? "已评估" : "评估" }}
|
||||||
|
</botton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -175,7 +191,6 @@ watch(data, (newVal) => {
|
|||||||
const teacherItem = ref([])
|
const teacherItem = ref([])
|
||||||
const teacherInfos = async (id) => {
|
const teacherInfos = async (id) => {
|
||||||
const res = await boeRequest(GET_USER_INFO_OLDURL, { userId: id });
|
const res = await boeRequest(GET_USER_INFO_OLDURL, { userId: id });
|
||||||
console.log(res.result, 'rea');
|
|
||||||
const userInfo = res.result;
|
const userInfo = res.result;
|
||||||
userInfo.avatar = userInfo.avatar
|
userInfo.avatar = userInfo.avatar
|
||||||
? userInfo.avatar.includes('upload')
|
? userInfo.avatar.includes('upload')
|
||||||
@@ -215,6 +230,28 @@ const signClick = () => {
|
|||||||
ElMessage.warning("签到成功");
|
ElMessage.warning("签到成功");
|
||||||
request(TASK_OFFCOURSE_NOTASK_SIGN, { courseId: courseId, taskId: courseId, type: 3 });
|
request(TASK_OFFCOURSE_NOTASK_SIGN, { courseId: courseId, taskId: courseId, type: 3 });
|
||||||
};
|
};
|
||||||
|
function toSurvery() {
|
||||||
|
if (dayjs().isBefore(data.value.planDto.beginTime)) {
|
||||||
|
ElMessage.warning("课程未开始,请耐心等待!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!data.value.planDto.evalFlag) {
|
||||||
|
ElMessage.warning("此课程无评估");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
router.push({
|
||||||
|
path: "/surveydetail",
|
||||||
|
query:{
|
||||||
|
id: data.value.planDto.id,
|
||||||
|
courseId: data.value.planDto.assessmentId,
|
||||||
|
pName: "面授课",
|
||||||
|
infoId: data.value.planDto.id,
|
||||||
|
chapterOrStageId: 0,
|
||||||
|
sName: data.value.planDto.name,
|
||||||
|
type: 3,
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
Reference in New Issue
Block a user