mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
feat:增加总积分
This commit is contained in:
@@ -326,7 +326,11 @@
|
||||
<div class="onerow">
|
||||
<div class="taskmain">任务大纲</div>
|
||||
|
||||
<router-link to="/leveladddetail" class="editright" v-if="checkPer(permissions)">
|
||||
<router-link
|
||||
to="/leveladddetail"
|
||||
class="editright"
|
||||
v-if="checkPer(permissions)"
|
||||
>
|
||||
<img
|
||||
class="editimg"
|
||||
src="../../assets/images/leveladd/edit.png"
|
||||
@@ -563,7 +567,12 @@
|
||||
>
|
||||
<template #extension="{ data: { record } }">
|
||||
<a-button type="link" @click="showStudent(record)">查看</a-button>
|
||||
<a-button type="link" @click="setLevels(record)" v-if="checkPer(permissions)">调整</a-button>
|
||||
<a-button
|
||||
type="link"
|
||||
@click="setLevels(record)"
|
||||
v-if="checkPer(permissions)"
|
||||
>调整</a-button
|
||||
>
|
||||
</template>
|
||||
</TableStudent>
|
||||
<TableStudent
|
||||
@@ -575,7 +584,12 @@
|
||||
>
|
||||
<template #extension="{ data: { record } }">
|
||||
<a-button type="link" @click="showStudent(record)">查看</a-button>
|
||||
<a-button type="link" @click="setLevels(record)" v-if="checkPer(permissions)">调整</a-button>
|
||||
<a-button
|
||||
type="link"
|
||||
@click="setLevels(record)"
|
||||
v-if="checkPer(permissions)"
|
||||
>调整</a-button
|
||||
>
|
||||
</template>
|
||||
</TableStudent>
|
||||
</a-tab-pane>
|
||||
@@ -592,7 +606,12 @@
|
||||
<div class="headone">
|
||||
<div class="box"></div>
|
||||
<div class="onetitle">关卡内容可见可学设置</div>
|
||||
<div class="oneedi" @click="showbtn" v-show="twobtn" v-if="checkPer(permissions)">
|
||||
<div
|
||||
class="oneedi"
|
||||
@click="showbtn"
|
||||
v-show="twobtn"
|
||||
v-if="checkPer(permissions)"
|
||||
>
|
||||
编辑
|
||||
</div>
|
||||
<div v-show="twobtnn" class="twobtn">
|
||||
@@ -1354,7 +1373,7 @@ import { handleLearnPath } from "../../api/index1";
|
||||
import { GetRouterDetail } from "@/api/indexTask";
|
||||
import * as api from "../../api/index1";
|
||||
import { editRoutered } from "../../api/indexLearningPath";
|
||||
import { codeUrl } from "../../api/method";
|
||||
// import { codeUrl } from "../../api/method";
|
||||
import TwoDimensionalCode from "../../components/TwoDimensionalCode.vue";
|
||||
import TableStudent from "@/components/student/TableStudent";
|
||||
// import * as student from "@/api/student";
|
||||
@@ -1368,7 +1387,7 @@ import RouterHomeworkManage from "../../components/drawers/router/RouterHomework
|
||||
import RouterCommonManage from "../../components/drawers/router/RouterCommonManage";
|
||||
import RouterVoteManage from "../../components/drawers/router/RouterVoteManage";
|
||||
import RouterProjectManage from "../../components/drawers/router/RouterProjectManage";
|
||||
import {checkPer} from "@/utils/utils";
|
||||
import { checkPer } from "@/utils/utils";
|
||||
|
||||
export default {
|
||||
name: "LevelAdd",
|
||||
@@ -1889,10 +1908,10 @@ export default {
|
||||
// 考试点击管理弹框
|
||||
const examinationModel = (data, levelname) => {
|
||||
console.log(data);
|
||||
if(data.startTime==null && data.endTime==null){
|
||||
if (data.startTime == null && data.endTime == null) {
|
||||
// 外部考试
|
||||
state.examinationExaminaModelVisible = true;
|
||||
}else{
|
||||
} else {
|
||||
// 系统考试
|
||||
state.examinationModelVisible = true;
|
||||
}
|
||||
@@ -2555,6 +2574,179 @@ export default {
|
||||
|
||||
//显示二维码弹窗
|
||||
const showCodeModel = (item) => {
|
||||
console.log("二维码任务信息", item);
|
||||
|
||||
let codeUrl = "";
|
||||
// 在线课 停用 -- 暂时没有在线课停用标记
|
||||
if (item.type == 1) {
|
||||
if (item.taskStatus == 1 || item.taskStatus == 2)
|
||||
return message.error("该任务无法学习,请联系管理员进行替换。");
|
||||
window.open(
|
||||
window.location.protocol +
|
||||
import.meta.env.VITE_BOE_ONLINE_CLASS_URL +
|
||||
item.targetId,
|
||||
"_top"
|
||||
);
|
||||
}
|
||||
if (item.type == 2) {
|
||||
let date1 = new Date(item.endTime).getTime();
|
||||
let date2 = new Date().getTime();
|
||||
if (date1 < date2) return message.warning("当前面授课已结束");
|
||||
if (item.taskStatus == 1 || item.taskStatus == 2)
|
||||
return message.error("该任务无法学习,请联系管理员进行替换。");
|
||||
codeUrl =
|
||||
window.location.protocol +
|
||||
process.env.VUE_APP_H5 +
|
||||
"/externalexam?courseId=" +
|
||||
item.courseId;
|
||||
}
|
||||
|
||||
if (item.type == 4) {
|
||||
let date1 = new Date(item.endTime).getTime();
|
||||
let date2 = new Date().getTime();
|
||||
if (date1 < date2) return message.warning("当前作业已结束");
|
||||
codeUrl =
|
||||
window.location.protocol +
|
||||
process.env.VUE_APP_H5 +
|
||||
"/homeworkpage?courseId=" +
|
||||
item.courseId +
|
||||
"&type=2&id=" +
|
||||
item.routerTaskId;
|
||||
}
|
||||
// 考试 停用
|
||||
if (item.type == 5) {
|
||||
if (item.taskStatus == 1 || item.taskStatus == 2)
|
||||
return message.error("该任务无法学习,请联系管理员进行替换。");
|
||||
// 此处判断外部考试跳转
|
||||
if (item.startTime == null || item.endTime == null) {
|
||||
codeUrl =
|
||||
window.location.protocol +
|
||||
process.env.VUE_APP_H5 +
|
||||
"/externalexam?courseId=" +
|
||||
item.courseId;
|
||||
}
|
||||
}
|
||||
// 直播结束时间
|
||||
if (item.type == 6) {
|
||||
let date1 = new Date(item.endTime).getTime();
|
||||
let date2 = new Date().getTime();
|
||||
if (date1 < date2) return message.warning("当前直播已结束");
|
||||
codeUrl =
|
||||
window.location.protocol +
|
||||
process.env.VUE_APP_H5 +
|
||||
"/livebroadcast?courseId=" +
|
||||
item.courseId +
|
||||
"&type=2&id=" +
|
||||
item.routerTaskId;
|
||||
}
|
||||
// 外链
|
||||
if (item.type == 7) {
|
||||
codeUrl =
|
||||
window.location.protocol +
|
||||
process.env.VUE_APP_H5 +
|
||||
"/outerchain?courseId=" +
|
||||
item.courseId +
|
||||
"&type=2&id=" +
|
||||
item.routerTaskId +
|
||||
"&status=" +
|
||||
item.status +
|
||||
"&chapterOrStageId=" +
|
||||
item.chapterId +
|
||||
"&infoId=" +
|
||||
state.routerId;
|
||||
}
|
||||
//讨论
|
||||
if (item.type == 8) {
|
||||
codeUrl =
|
||||
window.location.protocol +
|
||||
process.env.VUE_APP_H5 +
|
||||
"/discusspage?courseId=" +
|
||||
item.courseId +
|
||||
"&type=2&id=" +
|
||||
item.routerTaskId;
|
||||
}
|
||||
//活动
|
||||
if (item.type == 9) {
|
||||
let date1 = new Date(item.endTime).getTime();
|
||||
let date2 = new Date().getTime();
|
||||
if (date1 < date2) return message.warning("当前活动已结束");
|
||||
codeUrl =
|
||||
window.location.protocol +
|
||||
process.env.VUE_APP_H5 +
|
||||
"/activitiespage?courseId=" +
|
||||
item.courseId +
|
||||
"&type=2&id=" +
|
||||
item.routerTaskId;
|
||||
}
|
||||
//活动
|
||||
if (item.type == 10) {
|
||||
codeUrl =
|
||||
window.location.protocol +
|
||||
process.env.VUE_APP_H5 +
|
||||
"/evaluation?courseId=" +
|
||||
item.courseId +
|
||||
"&evaType=" +
|
||||
item.evaType +
|
||||
"&targetId=" +
|
||||
item.targetId;
|
||||
}
|
||||
|
||||
// 评估 停用
|
||||
if (item.type == 11) {
|
||||
if (item.taskStatus == 1 || item.taskStatus == 2)
|
||||
return message.error("该任务无法学习,请联系管理员进行替换。");
|
||||
codeUrl =
|
||||
window.location.protocol +
|
||||
process.env.VUE_APP_H5 +
|
||||
"/investigatage?courseId=" +
|
||||
item.courseId +
|
||||
"&type=2&id=" +
|
||||
item.routerTaskId +
|
||||
"&chapterOrStageId=" +
|
||||
item.chapterId +
|
||||
"&infoId=" +
|
||||
state.routerId;
|
||||
}
|
||||
// 投票
|
||||
if (item.type == 12) {
|
||||
codeUrl =
|
||||
window.location.protocol +
|
||||
process.env.VUE_APP_H5 +
|
||||
"/ballotpage?courseId=" +
|
||||
item.courseId +
|
||||
"&btype=2&id=" +
|
||||
item.routerTaskId +
|
||||
"&chapterOrStageId=" +
|
||||
item.chapterId +
|
||||
"&infoId=" +
|
||||
state.routerId;
|
||||
}
|
||||
// 项目
|
||||
if (item.type == 13) {
|
||||
codeUrl =
|
||||
window.location.protocol +
|
||||
process.env.VUE_APP_H5 +
|
||||
"/projectdetails?courseId=" +
|
||||
item.courseId
|
||||
}
|
||||
|
||||
|
||||
// let path = {
|
||||
// 1: window.location.protocol + import.meta.env.VITE_BOE_ONLINE_CLASS_URL, //在线
|
||||
// 2: "/faceteach",
|
||||
// 3: window.location.protocol + import.meta.env.VITE_BOE_CASS_DETAIL_URL, //案例
|
||||
// 4: "/homeworkpage",
|
||||
// 5: window.location.protocol + import.meta.env.VITE_BOE_EXAM_DETAIL_URL, //考试
|
||||
// 6: "/livebroadcast",
|
||||
// 7: "/outerchain", //外联
|
||||
// 8: "/discusspage",
|
||||
// 9: "/moreactive",
|
||||
// 10: "/evaluation", //测评
|
||||
// 11: "/surveydetail",
|
||||
// 12: "/ballotpage",
|
||||
// 13: "/projectdetails",
|
||||
// };
|
||||
|
||||
state.codevisible = true;
|
||||
let obj = {
|
||||
title: "[" + checkType(item.type) + "]二维码",
|
||||
@@ -2569,7 +2761,7 @@ export default {
|
||||
let obj = {
|
||||
title: "[学习路径]二维码",
|
||||
name: state.styTitle,
|
||||
url: codeUrl,
|
||||
// url: codeUrl,
|
||||
};
|
||||
state.codeInfo = obj;
|
||||
};
|
||||
@@ -2733,7 +2925,7 @@ export default {
|
||||
setLevels,
|
||||
selectProjectName4,
|
||||
changeLevel,
|
||||
checkPer
|
||||
checkPer,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user