-

+
-

+
-

+
创建任务
@@ -286,9 +287,9 @@
关闭
@@ -314,10 +315,10 @@
编辑公告:
@@ -341,13 +342,13 @@
获取规则
-
+
规则
-

+
编辑
@@ -362,7 +363,7 @@
当前设计下,学员可以获得 {{ scoresum }}积分
+ >积分
完成【必修/选修】获得
完成作业成绩不低于 {{ done2 }}分获得 {{ done3 }}积分
+ >分获得 {{ done3 }}积分
前{{ four1 }}名学完在线课程获得
+ >名学完在线课程获得
{{ four2 }}积分 前{{ four3 }}名提交作业且成绩不低于
+ >{{ four3 }}名提交作业且成绩不低于
{{ four4 }}分获得 {{ four5 }}积分
+ >积分
考试成绩高于{{ five1 }}分获得 {{ five2 }}积分
+ >分获得 {{ five2 }}积分
考勤正常学员获得 {{ six1 }}积分
+ >积分
成为小组长获得{{ seven1 }}积分
+ >
积分
优秀学员可获得
{{ seven2 }}积分
@@ -409,97 +410,64 @@
当前设计下,学员可以获得 {{ scoresum }}积分
+ >积分
-
完成作业成绩不低于
-
-
分获得
-
-
积分
+
完成作业成绩不低于
+
+
分获得
+
+
积分
-
前
-
-
名学完在线课程获得
-
-
积分
-
前
-
-
名提交作业且成绩不低于
-
-
分获得
-
-
积分
+
前
+
+
名学完在线课程获得
+
+
积分
+
前
+
+
名提交作业且成绩不低于
+
+
分获得
+
+
积分
-
考试成绩高于
-
-
分获得
-
-
积分
+
考试成绩高于
+
+
分获得
+
+
积分
-
考勤正常学员获得
-
-
积分
+
考勤正常学员获得
+
+
积分
-
成为小组长获得
-
-
积分
+
成为小组长获得
+
+
积分
优秀学员可获得
-
-
积分
+
+
积分
-
@@ -529,9 +497,9 @@
封面图:
@@ -539,7 +507,7 @@
项目时间:
{{ projectInfo.beginTime }} ~
+ >{{ projectInfo.beginTime }} ~
{{ projectInfo.endTime }}
@@ -548,54 +516,65 @@
项目经理:
{{
- projectInfo.manager
- }}
+ projectInfo.manager
+ }}
资源归属:
{{
- (projectInfo.sourceBelongFullName || '') + projectInfo.sourceBelongName
- }}
+ (projectInfo.sourceBelongFullName || "") +
+ projectInfo.sourceBelongName
+ }}
同步学习记录:
-
同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)
-
+
项目说明:
{{
- projectInfo.remark
- }}
+ projectInfo.remark
+ }}
@@ -612,45 +591,51 @@
上传共享文档
上传上传
支持:pdf.ppt.pptx.doc.docx.xls.xlsx.jpeg.png.gif.zip
-

+
-

+
-

+
@@ -698,17 +722,30 @@
{{
- item.name
- }}
+ style="
+ font: oblique bold 16px Sans-serif;
+ width: 300px;
+ display: block;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ "
+ >{{ item.name }}
下载
+ href="javascript:void(0);"
+ @click="
+ downloadFile(
+ item.response ? item.response.data : ''
+ )
+ "
+ style="margin-left: 5px"
+ >下载
删除删除
@@ -716,17 +753,15 @@
-
-
-
+
@@ -771,10 +805,10 @@ import {
onMounted,
computed,
} from "vue";
-import {message} from "ant-design-vue";
+import { message } from "ant-design-vue";
import * as api from "@/api/indexTemplate";
-import {useRoute, useRouter} from "vue-router";
-import {scoreRule, setScoreRule} from "@/api/indexTaskadd";
+import { useRoute, useRouter } from "vue-router";
+import { scoreRule, setScoreRule } from "@/api/indexTaskadd";
import ProjectLevel from "@/components/project/ProjectLevel";
import TrainClass from "@/components/project/TrainClass";
@@ -786,7 +820,7 @@ export default defineComponent({
},
setup() {
const state = reactive({
- templateInfo:{},
+ templateInfo: {},
//任务大纲列表
taskSyllabus: [
// {
@@ -869,26 +903,26 @@ export default defineComponent({
],
// 模板编辑列表
managerOptions: [
- {value: "李俊国"},
- {value: "将小米"},
- {value: "刘孟君"},
+ { value: "李俊国" },
+ { value: "将小米" },
+ { value: "刘孟君" },
],
sourceBelongOptions: [
- {value: "项目一"},
- {value: "项目二"},
- {value: "项目三"},
+ { value: "项目一" },
+ { value: "项目二" },
+ { value: "项目三" },
],
levelOptions: [
- {value: "集团级"},
- {value: "组织级"},
- {value: "现地级"},
- {value: "部门级"},
+ { value: "集团级" },
+ { value: "组织级" },
+ { value: "现地级" },
+ { value: "部门级" },
],
systemOptions: [
- {value: "集团级"},
- {value: "组织级"},
- {value: "现地级"},
- {value: "部门级"},
+ { value: "集团级" },
+ { value: "组织级" },
+ { value: "现地级" },
+ { value: "部门级" },
],
taskSyllabusActive: 0,
//在线管理等页面传递参数
@@ -944,17 +978,19 @@ export default defineComponent({
const value = ref("");
const textnum = "150";
const routered = useRouter();
- const {query: {projectTemplateId}} = useRoute();
+ const {
+ query: { projectTemplateId },
+ } = useRoute();
const changeopclo = () => {
state.projectInfo.noticeFlag = state.checked ? 1 : 0;
api
- .templateEdit(state.projectInfo)
- .then((res) => {
- console.log(res);
- })
- .catch((err) => {
- console.log(err);
- });
+ .templateEdit(state.projectInfo)
+ .then((res) => {
+ console.log(res);
+ })
+ .catch((err) => {
+ console.log(err);
+ });
};
const changecheck2 = () => {
@@ -967,14 +1003,14 @@ export default defineComponent({
// return message.warning("请输入合法数字");
// }
return (
- Number(state.score1) +
- Number(state.done3) +
- Number(state.four2) +
- Number(state.four5) +
- Number(state.five2) +
- Number(state.six1) +
- Number(state.seven1) +
- Number(state.seven2)
+ Number(state.score1) +
+ Number(state.done3) +
+ Number(state.four2) +
+ Number(state.four5) +
+ Number(state.five2) +
+ Number(state.six1) +
+ Number(state.seven1) +
+ Number(state.seven2)
);
});
const changecheck3 = () => {
@@ -1017,50 +1053,49 @@ export default defineComponent({
// 获取详情
const getDetail = () => {
api.templateEditDetail(projectTemplateId).then((res) => {
- state.templateInfo = res.data.data
- state.taskSyllabus = [];
- state.projectInfo = res.data.data.projectTemplateInfo;
- state.noticeContent = state.projectInfo.notice;
- state.checked = state.projectInfo.noticeFlag == 1;
- console.log(
- "res.data.data.projectTemplateInfo",
- res.data.data.projectTemplateInfo
- );
- try {
- state.fileList = JSON.parse(
- res.data.data.projectTemplateInfo.attach
- );
- } catch {
- state.fileList = [];
- }
- state.attachSwitch = res.data.data.projectTemplateInfo.attachSwitch == 1;
- let data = res.data.data.stageList;
- console.log("data=====", data);
- for (let i in data) {
- console.log("what ------ > ", i, data);
- // if (data[i].taskTemplateList.length !== 0) {
- if (!data[i].name) {
- continue;
- }
- state.taskSyllabus.push({
- text: data[i].name ? data[i].name : "无阶段任务",
- children: [],
- });
- // }
+ state.templateInfo = res.data.data;
+ state.taskSyllabus = [];
+ state.projectInfo = res.data.data.projectTemplateInfo;
+ state.noticeContent = state.projectInfo.notice;
+ state.checked = state.projectInfo.noticeFlag == 1;
+ console.log(
+ "res.data.data.projectTemplateInfo",
+ res.data.data.projectTemplateInfo
+ );
+ try {
+ state.fileList = JSON.parse(res.data.data.projectTemplateInfo.attach);
+ } catch {
+ state.fileList = [];
+ }
+ state.attachSwitch =
+ res.data.data.projectTemplateInfo.attachSwitch == 1;
+ let data = res.data.data.stageList;
+ console.log("data=====", data);
+ for (let i in data) {
+ console.log("what ------ > ", i, data);
+ // if (data[i].taskTemplateList.length !== 0) {
+ if (!data[i].name) {
+ continue;
+ }
+ state.taskSyllabus.push({
+ text: data[i].name ? data[i].name : "无阶段任务",
+ children: [],
+ });
+ // }
- for (let j in data[i].taskTemplateList) {
- state.taskSyllabus[i].children.push({
- course: checkType(data[i].taskTemplateList[j].type),
- name: data[i].taskTemplateList[j].name,
- classify: data[i].taskTemplateList[j].flag,
- beginTime: "",
- total: 0, //总人数
- complete: 0, //完成人数
- percent: 0,
- });
- }
- }
- })
+ for (let j in data[i].taskTemplateList) {
+ state.taskSyllabus[i].children.push({
+ course: checkType(data[i].taskTemplateList[j].type),
+ name: data[i].taskTemplateList[j].name,
+ classify: data[i].taskTemplateList[j].flag,
+ beginTime: "",
+ total: 0, //总人数
+ complete: 0, //完成人数
+ percent: 0,
+ });
+ }
+ }
+ });
};
// 发布公告
@@ -1070,45 +1105,45 @@ export default defineComponent({
return message.warning("请输入公告内容");
}
api
- .templateEdit(state.projectInfo)
- .then((res) => {
- state.noticeContent = state.projectInfo.notice;
- message.success("公告发布成功");
- console.log(res);
- })
- .catch((err) => {
- message.error("公告发布失败" + err);
- console.log(err);
- });
+ .templateEdit(state.projectInfo)
+ .then((res) => {
+ state.noticeContent = state.projectInfo.notice;
+ message.success("公告发布成功");
+ console.log(res);
+ })
+ .catch((err) => {
+ message.error("公告发布失败" + err);
+ console.log(err);
+ });
state.editFlag = false;
};
// 删除阶段
const stateDel = (id) => {
api
- .deleteStage(id)
- .then((res) => {
- message.success("删除阶段成功");
- console.log(res);
- })
- .catch((err) => {
- message.error("删除阶段失败" + err);
- console.log(err);
- });
+ .deleteStage(id)
+ .then((res) => {
+ message.success("删除阶段成功");
+ console.log(res);
+ })
+ .catch((err) => {
+ message.error("删除阶段失败" + err);
+ console.log(err);
+ });
};
// 删除任务
const taskDel = (id) => {
api
- .deleteTask(id)
- .then((res) => {
- message.success("删除任务成功");
- console.log(res);
- })
- .catch((err) => {
- message.error("删除任务失败" + err);
- console.log(err);
- });
+ .deleteTask(id)
+ .then((res) => {
+ message.success("删除任务成功");
+ console.log(res);
+ })
+ .catch((err) => {
+ message.error("删除任务失败" + err);
+ console.log(err);
+ });
};
const toEdit = () => {
routered.push({
@@ -1128,15 +1163,15 @@ export default defineComponent({
stageId: 0,
};
api
- .editStagek(obj)
- .then((res) => {
- message.success("编辑阶段成功");
- console.log(res);
- })
- .catch((err) => {
- message.error("编辑阶段失败" + err);
- console.log(err);
- });
+ .editStagek(obj)
+ .then((res) => {
+ message.success("编辑阶段成功");
+ console.log(res);
+ })
+ .catch((err) => {
+ message.error("编辑阶段失败" + err);
+ console.log(err);
+ });
};
//新建或编辑阶段任务
const taskEdit = () => {
@@ -1148,56 +1183,68 @@ export default defineComponent({
projectTaskId: 0,
projectTemplateId: localStorage.getItem("projectTemplateId"),
stageId: 0,
- type: 0
+ type: 0,
};
api
- .editTask(obj)
- .then((res) => {
- message.success("编辑任务成功");
- console.log(res);
- })
- .catch((err) => {
- message.error("编辑任务失败" + err);
- console.log(err);
- });
+ .editTask(obj)
+ .then((res) => {
+ message.success("编辑任务成功");
+ console.log(res);
+ })
+ .catch((err) => {
+ message.error("编辑任务失败" + err);
+ console.log(err);
+ });
};
const getScoreRule = () => {
scoreRule({
projectId: projectTemplateId,
})
- .then((res) => {
- let result = res.data.data;
- //Write operation failed: computed value is readonly 总积分
+ .then((res) => {
+ let result = res.data.data;
+ //Write operation failed: computed value is readonly 总积分
- state.scoresum = Number(result[0].pointsCount) + Number(result[1].pointsCount) + Number(result[2].pointsCount) + Number(result[3].pointsCount) + Number(result[4].pointsCount) + Number(result[5].pointsCount) + Number(result[6].pointsCount) + Number(result[7].pointsCount)
+ state.scoresum =
+ Number(result[0].pointsCount) +
+ Number(result[1].pointsCount) +
+ Number(result[2].pointsCount) +
+ Number(result[3].pointsCount) +
+ Number(result[4].pointsCount) +
+ Number(result[5].pointsCount) +
+ Number(result[6].pointsCount) +
+ Number(result[7].pointsCount);
- state.score1 = result[0].pointsCount;
+ state.score1 = result[0].pointsCount;
- state.done2 = result[1].typeDescConfig;
- state.done3 = result[1].pointsCount;
+ state.done2 = result[1].typeDescConfig;
+ state.done3 = result[1].pointsCount;
- state.four1 = result[2].typeDescConfig;
- state.four2 = result[2].pointsCount;
+ state.four1 = result[2].typeDescConfig;
+ state.four2 = result[2].pointsCount;
- state.four3 = result[3].typeDescConfig.slice(0,result[3].typeDescConfig.indexOf(';'));
- state.four4 = result[3].typeDescConfig.slice(result[3].typeDescConfig.indexOf(';')+1);
- state.four5 = result[3].pointsCount;
+ state.four3 = result[3].typeDescConfig.slice(
+ 0,
+ result[3].typeDescConfig.indexOf(";")
+ );
+ state.four4 = result[3].typeDescConfig.slice(
+ result[3].typeDescConfig.indexOf(";") + 1
+ );
+ state.four5 = result[3].pointsCount;
- state.five1 = result[4].typeDescConfig;
- state.five2 = result[4].pointsCount;
+ state.five1 = result[4].typeDescConfig;
+ state.five2 = result[4].pointsCount;
- state.six1 = result[5].pointsCount;
+ state.six1 = result[5].pointsCount;
- state.seven1 = result[6].pointsCount;
+ state.seven1 = result[6].pointsCount;
- state.seven2 = result[7].pointsCount;
-
- })
- .catch((err) => {
- console.log("获取项目积分规则失败了", err);
- });
+ state.seven2 = result[7].pointsCount;
+ })
+ .catch((err) => {
+ console.log("获取项目积分规则失败了", err);
+ });
};
- const handleChange2 = ({file, fileList}) => {
+ const handleChange2 = ({ file, fileList }) => {
console.log(fileList);
let list = [];
if (file.status !== "uploading") {
@@ -1227,30 +1274,30 @@ export default defineComponent({
});
//要编辑项目
api
- .templateEdit({
- name: state.projectInfo.name,
- category: state.projectInfo.category,
- picUrl: state.projectInfo.picUrl,
- manager: state.projectInfo.manager,
- managerId: state.projectInfo.managerId || 0,
- sourceBelongId: state.projectInfo.sourceBelongId,
- level: state.projectInfo.level,
- systemId: state.projectInfo.systemId,
- boeFlag: state.projectInfo.boeFlag ? 1 : 0,
- courseSyncFlag: state.projectInfo.courseSyncFlag ? 1 : 0,
- notice: state.projectInfo.notice,
- noticeFlag: state.projectInfo.noticeFlag,
- projectTemplateId: localStorage.getItem("projectTemplateId"),
- remark: state.projectInfo.remark,
- status: state.projectInfo.status,
- attach: str,
- })
- .then((res) => {
- console.log("上传成功", res);
- })
- .catch((err) => {
- console.log("上传失败了", err);
- });
+ .templateEdit({
+ name: state.projectInfo.name,
+ category: state.projectInfo.category,
+ picUrl: state.projectInfo.picUrl,
+ manager: state.projectInfo.manager,
+ managerId: state.projectInfo.managerId || 0,
+ sourceBelongId: state.projectInfo.sourceBelongId,
+ level: state.projectInfo.level,
+ systemId: state.projectInfo.systemId,
+ boeFlag: state.projectInfo.boeFlag ? 1 : 0,
+ courseSyncFlag: state.projectInfo.courseSyncFlag ? 1 : 0,
+ notice: state.projectInfo.notice,
+ noticeFlag: state.projectInfo.noticeFlag,
+ projectTemplateId: localStorage.getItem("projectTemplateId"),
+ remark: state.projectInfo.remark,
+ status: state.projectInfo.status,
+ attach: str,
+ })
+ .then((res) => {
+ console.log("上传成功", res);
+ })
+ .catch((err) => {
+ console.log("上传失败了", err);
+ });
}
if (file.status === "done") {
@@ -1270,114 +1317,116 @@ export default defineComponent({
let str = JSON.stringify(state.fileList);
api
- .templateEdit({
- sourceBelongId: state.projectInfo.sourceBelongId,
- projectTemplateId: localStorage.getItem("projectTemplateId"),
- attach: str,
- })
- .then((res) => {
- console.log(res)
- message.destroy();
- message.success("删除成功");
- return
- })
- .catch((err) => {
- console.log(err)
- message.destroy();
- message.warning("删除失败");
- return
- });
+ .templateEdit({
+ sourceBelongId: state.projectInfo.sourceBelongId,
+ projectTemplateId: localStorage.getItem("projectTemplateId"),
+ attach: str,
+ })
+ .then((res) => {
+ console.log(res);
+ message.destroy();
+ message.success("删除成功");
+ return;
+ })
+ .catch((err) => {
+ console.log(err);
+ message.destroy();
+ message.warning("删除失败");
+ return;
+ });
};
// 设置上传图片开关
const checkedClose = (data, a) => {
console.log(data, a);
console.log("模板id:" + projectTemplateId);
- console.log("开关数据:" + JSON.stringify(data) + "====" + JSON.stringify(a))
+ console.log(
+ "开关数据:" + JSON.stringify(data) + "====" + JSON.stringify(a)
+ );
state.attachSwitch = data;
// 更新开关状态
api
- .templateEdit({
- sourceBelongId: state.projectInfo.sourceBelongId,
- projectTemplateId: projectTemplateId,
- attachSwitch: state.attachSwitch ? 1 : -1,
- })
- .then((res) => {
- console.log("开关更新成功", res);
- })
- .catch((err) => {
- console.log("开关更新失败", err);
- });
+ .templateEdit({
+ sourceBelongId: state.projectInfo.sourceBelongId,
+ projectTemplateId: projectTemplateId,
+ attachSwitch: state.attachSwitch ? 1 : -1,
+ })
+ .then((res) => {
+ console.log("开关更新成功", res);
+ })
+ .catch((err) => {
+ console.log("开关更新失败", err);
+ });
};
//设置积分规则
const editRule = () => {
let obj = {
projectId: projectTemplateId,
- datas:[
+ datas: [
{
- "type": 1,
- "pointsCount": Number(state.score1),
- "typeDesc": "完成【必修/选修】获得%p积分",
- "typeDescConfig": ""
+ type: 1,
+ pointsCount: Number(state.score1),
+ typeDesc: "完成【必修/选修】获得%p积分",
+ typeDescConfig: "",
},
{
- "type": 2,
- "pointsCount": Number(state.done3),
- "typeDesc": "完成作业成绩不低于%d分获得%p积分",
- "typeDescConfig": state.done2
+ type: 2,
+ pointsCount: Number(state.done3),
+ typeDesc: "完成作业成绩不低于%d分获得%p积分",
+ typeDescConfig: state.done2,
},
{
- "type": 3,
- "pointsCount": Number(state.four2),
- "typeDesc": "前%d名学完在线课程获得%p积分",
- "typeDescConfig": state.four1
+ type: 3,
+ pointsCount: Number(state.four2),
+ typeDesc: "前%d名学完在线课程获得%p积分",
+ typeDescConfig: state.four1,
},
{
- "type": 4,
- "pointsCount": Number(state.four5),
- "typeDesc": "前%d名提交作业且成绩不低于%d分获得%p积分",
- "typeDescConfig": state.four3 + ';' + state.four4
+ type: 4,
+ pointsCount: Number(state.four5),
+ typeDesc: "前%d名提交作业且成绩不低于%d分获得%p积分",
+ typeDescConfig: state.four3 + ";" + state.four4,
},
{
- "type": 5,
- "pointsCount": Number(state.five2),
- "typeDesc": "考试成绩高于%d分获得%p积分",
- "typeDescConfig": state.five1
+ type: 5,
+ pointsCount: Number(state.five2),
+ typeDesc: "考试成绩高于%d分获得%p积分",
+ typeDescConfig: state.five1,
},
{
- "type": 6,
- "pointsCount": Number(state.six1),
- "typeDesc": "考勤正常学员获得%p积分",
- "typeDescConfig": ""
+ type: 6,
+ pointsCount: Number(state.six1),
+ typeDesc: "考勤正常学员获得%p积分",
+ typeDescConfig: "",
},
{
- "type": 7,
- "pointsCount": Number(state.seven1),
- "typeDesc": "成为小组长获得%p积分",
- "typeDescConfig": ""
+ type: 7,
+ pointsCount: Number(state.seven1),
+ typeDesc: "成为小组长获得%p积分",
+ typeDescConfig: "",
},
{
- "type": 8,
- "pointsCount": Number(state.seven2),
- "typeDesc": "优秀学员可获得%p积分",
- "typeDescConfig": ""
- }
- ]
+ type: 8,
+ pointsCount: Number(state.seven2),
+ typeDesc: "优秀学员可获得%p积分",
+ typeDescConfig: "",
+ },
+ ],
};
console.log(obj);
setScoreRule(obj)
- .then((res) => {
- console.log(res.data, "修改成功");
- message.destroy();
- return message.success("修改积分规则成功");
- })
- .catch((err) => {
- console.log(err.data);
- message.destroy();
- return message.warning("修改积分规则失败");
- });
+ .then((res) => {
+ console.log(res.data, "修改成功");
+ message.destroy();
+ return message.success("修改积分规则成功");
+ })
+ .catch((err) => {
+ console.log(err.data);
+ message.destroy();
+ return message.warning("修改积分规则失败");
+ });
// scoreRule({
// projectId: props.projectId,
// });
@@ -1387,10 +1436,19 @@ export default defineComponent({
// 共享文档文件下载
const downloadFile = (url) => {
- console.log(url)
- if (url) {
- window.open(url)
+ console.log(url);
+ let urlNew = url.slice(1);
+ if (urlNew) {
+ window.open(
+ window.location.protocol +
+ process.env.VUE_APP_BOE_API_URL +
+ process.env.VUE_APP_FILE_PATH +
+ urlNew
+ );
}
+ // if (url) {
+ // window.open(url)
+ // }
// if(url){
// const filename = '操作指南'
// const x = new XMLHttpRequest()
@@ -1406,7 +1464,7 @@ export default defineComponent({
// }
// x.send()
// }
- }
+ };
return {
...toRefs(state),
@@ -1431,7 +1489,7 @@ export default defineComponent({
checkedClose,
editNotice,
deFile,
- downloadFile
+ downloadFile,
};
},
});
diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue
index 5996e071..0d079455 100644
--- a/src/views/projectcenter/TaskPage.vue
+++ b/src/views/projectcenter/TaskPage.vue
@@ -3925,7 +3925,7 @@ export default {
};
//创建小组
const createGroup = async () => {
- debugger
+ debugger;
console.log("state.groupPageList" + state.groupPageList);
const id = state.groupInfo.id;
const d = state.groupPageList
@@ -4513,7 +4513,7 @@ export default {
codeUrl =
window.location.protocol +
process.env.VUE_APP_H5 +
- "/faceteach?type=2&courseId=" +
+ "/faceteach?type=1&courseId=" +
item.courseId +
"&id=" +
item.id;
@@ -4540,7 +4540,7 @@ export default {
codeUrl =
window.location.protocol +
process.env.VUE_APP_H5 +
- "/externalexam?courseId=" +
+ "/externalexam?type=1&courseId=" +
item.courseId;
} else {
codeUrl =
@@ -4607,7 +4607,7 @@ export default {
process.env.VUE_APP_H5 +
"/evaluation?courseId=" +
item.courseId +
- "&evaType=" +
+ "&type=1&evaType=" +
item.evaType +
"&targetId=" +
item.targetId;
@@ -4638,7 +4638,7 @@ export default {
process.env.VUE_APP_H5 +
"/ballotpage?courseId=" +
item.courseId +
- "&btype=2&id=" +
+ "&type=1&btype=2&id=" +
item.id +
"&chapterOrStageId=" +
item.stageId +
@@ -4663,7 +4663,7 @@ export default {
url:
window.location.protocol +
process.env.VUE_APP_H5 +
- "/projectdetails?projectId=" +
+ "/projectdetails?type=1&projectId=" +
state.projectId,
};
state.codeInfo = obj;
@@ -4678,7 +4678,17 @@ export default {
}
// 共享文档文件下载
const downloadFile = (url) => {
- url && window.open(url);
+ console.log(url);
+ let urlNew = url.slice(1);
+ if (urlNew) {
+ window.open(
+ window.location.protocol +
+ process.env.VUE_APP_BOE_API_URL +
+ process.env.VUE_APP_FILE_PATH +
+ urlNew
+ );
+ }
+ // url && window.open(url);
};
function stageChange(item, index) {
state.choosedStageName = item.name;