diff --git a/src/api/indexProjStu.js b/src/api/indexProjStu.js index 392664b7..b8dfc793 100644 --- a/src/api/indexProjStu.js +++ b/src/api/indexProjStu.js @@ -22,4 +22,7 @@ export const studentProcess = (obj) => http.get('/admin/project/studentProcess', export const topStudent = (obj) => http.post('/admin/project/topStudent', obj) //项目概览 -export const overview = (obj) => http.get('/admin/project/overview', { params: obj }) \ No newline at end of file +export const overview = (obj) => http.get('/admin/project/overview', { params: obj }) + +//设置项目积分规则 +export const setScoreRule = (obj) => http.post('/admin/project/setScoreRule', obj) \ No newline at end of file diff --git a/src/components/drawers/ProjectScore.vue b/src/components/drawers/ProjectScore.vue index 0ba76354..9a590d99 100644 --- a/src/components/drawers/ProjectScore.vue +++ b/src/components/drawers/ProjectScore.vue @@ -164,8 +164,50 @@ >{{ score1 }} 积分
- 优秀学员可获得 {{ score2 }}完成在线课程获得 {{ done }}积分 + 完成面授课程获得 {{ done1 }}积分 + 完成作业成绩不低于 {{ done2 }}分获得 + {{ done3 }}积分 +
+
+ {{ four1}}名学完在线课程获得 + {{ four2}}积分 + {{ four3}}名提交作业且成绩不低于 + {{ four4}}分获得 + {{ four5}}积分 +
+
+ 考试成绩高于{{ five1 }}分获得 + {{ five2 }}积分 +
+
+ 考勤正常学员获得 {{ six1}}积分 +
+
+ 成为小组长获得{{ seven1 }}积分 + 优秀学员可获得 + {{ seven2 }}积分
@@ -186,11 +228,82 @@ >积分
- 优秀学员可获得 完成在线课程获得 积分 + >积分 + 完成面授课程获得 + 积分 + 完成作业成绩不低于 分获得 + 积分
+
+ 名学完在线课程获得 + 积分 + 名提交作业且成绩不低于 + 分获得 + 积分 + +
+
+ 考试成绩高于分获得 + 积分 +
+
+ 考勤正常学员获得 积分 +
+
+ 成为小组长获得积分 + 优秀学员可获得 + 积分 +
+ -
收起 + 收起 +
+ /> +
@@ -409,10 +412,13 @@ v-if="showHidden1" @click="morePeopleHidden1" > -
收起 + 收起 +
+ /> +
@@ -469,10 +475,13 @@ v-if="showHidden2" @click="morePeopleHidden2" > -
收起 + 收起 +
+ /> + @@ -1051,6 +1060,7 @@ export default { // console.log("selectedRowKeys changed: ", selectedRowKeys,item); state.selectedRowKeys = selectedRowKeys; state.choosepeople = item.reverse(); + console.log(item, "选中你了!", state.choosepeople); selectedsHeight(); }; //单个删除选中的人 diff --git a/src/views/projectcenter/ProjectManage.vue b/src/views/projectcenter/ProjectManage.vue index 00a53bf2..2f1873f2 100644 --- a/src/views/projectcenter/ProjectManage.vue +++ b/src/views/projectcenter/ProjectManage.vue @@ -1161,7 +1161,6 @@ export default { getTableDate(); }; - const searchSubmit = () => { console.log("点击了搜索"); state.currentPage = 1; @@ -2921,6 +2920,9 @@ export default { data.subList.map((data2) => { data2.paraentName = value.name + "/" + data.name; data2.isbj = "class"; + storage.set("isbj", data.projectId); + // console.log(data2.paraentName, "conme"); + storage.set("pN", data2.paraentName); }); // console.log("lalallalaa", data); } else { diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue index 293616e0..97ecea72 100644 --- a/src/views/projectcenter/TaskAdd.vue +++ b/src/views/projectcenter/TaskAdd.vue @@ -303,7 +303,7 @@ v-model:projectId="projectId" v-model:chooseStageId="chooseStageId" v-model:projectTaskId="projectTaskId" - v-model:EditInvistId = "EditInvistId" + v-model:EditInvistId="EditInvistId" /> @@ -325,7 +325,7 @@ v-model:projectId="projectId" v-model:chooseStageId="chooseStageId" v-model:projectTaskId="projectTaskId" - v-model:EditVoteId = "EditVoteId" + v-model:EditVoteId="EditVoteId" /> @@ -337,7 +337,7 @@
任务列表
-
+
+ +
+
+
+
+
+ 提示 +
+
+
+ 您确定要批量删除任务吗 +
+
+
+
取消
+
+
+
确定
+
+
+
+
+
0) { - let arr = res.data.data.stageList[0].taskList; console.log("任务列表", arr); getTableData(arr); @@ -1351,8 +1379,6 @@ export default { }); }; - - //获取删除id(投票) const changeVData = (data) => { console.log("8989", data); @@ -1363,7 +1389,7 @@ export default { console.log("添加数据", data); getTask(data); }; - + //删除任务 const deleteTask = () => { let obj = { projectTaskIds: state.deleteID }; @@ -1420,8 +1446,11 @@ export default { }) .catch((err) => { console.log(err); + message.destroy(); + message.warning("批量删除失败"); }); }); + state.deAll = false; }; const onSelectChange = (selectedRowKeys) => { console.log("selectedRowKeys changed: ", selectedRowKeys); @@ -1502,12 +1531,12 @@ export default { state.projectTaskId = eleId; state.adddiscussvisible = true; }; - + const showDrawerAddActive = (id, eleId) => { state.addactivevisible = true; state.EditActiveId = id; state.projectTaskId = eleId; - console.log("active=======",id); + console.log("active=======", id); }; const showDrawerAddEval = (id, eleId) => { state.addevalvisible = true; @@ -1566,6 +1595,8 @@ export default { }); } state.selectRow = arr; + console.log(state.selectRow, "xuanzhong"); + console.log(Object.prototype.toString.call(state.selectRow)); //判断是否是全部选择或者是全部未选择来修改selectAll框的样式 if (arr.length !== 0) { if (arr.length === state.tableData.length) { @@ -1607,8 +1638,7 @@ export default { const changeCourseType = (id) => { console.log("任务id", id); }; - - + //打开测评的弹窗 const showEditEvalDrawer = (id, eleId) => { console.log("222222222222222222222", id); @@ -1641,6 +1671,17 @@ export default { showDrawerAddTest(id, eleId); } }; + const showdeAll = () => { + if(state.selectRow.length==0){ + message.destroy() + return message.warning("请选择要删除的任务") + }else{ + state.deAll = true; + } + }; + const closeDeAll = () => { + state.deAll = false; + }; return { ...toRefs(state), selectProjectName, @@ -1688,8 +1729,8 @@ export default { moveTask, deleteTaskAll, decideType, - - + showdeAll, + closeDeAll, }; }, }; diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index 223c22a9..78918d7c 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -175,11 +175,17 @@
阶段2
-->
-
- {{item.stage}} -
+
+ {{ item.stage }} +
@@ -216,20 +222,35 @@
作业完成率
-
{{stageOverviewList.totalTaskCnt}}
+
+ {{ stageOverviewList.totalTaskCnt }} +
阶段任务总数 - + +
+
+ {{ stageOverviewList.totalReqCnt }}
-
{{stageOverviewList.totalReqCnt}}
必修课 - + +
+
+ {{ stageOverviewList.totalOptCnt }}
-
{{stageOverviewList.totalOptCnt}}
选修课 - +
@@ -454,7 +475,6 @@ background: linear-gradient(180deg, #ddeaff, #f0f8fe); display: block; " - >
@@ -857,140 +877,159 @@
- + - -
- - - -
- +
+ -
-
-
编辑
-
-
-
项目名称:
-
- {{ name }} -
-
-
-
封面图:
-
- -
-
-
-
项目时间:
-
- {{ startTime }} ~ {{ endTime }} -
-
-
-
项目经理:
-
- {{ manager }} -
-
-
-
资源归属:
-
- {{ sourceBelong }} -
-
-
-
项目说明:
-
- {{ remark }} -
-
-
-
同步学习记录:
-
- 同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程) -
-
-
-
项目级别:
-
- {{ level }} -
-
-
-
培训体系:
-
- {{ systemId }} -
-
-
-
是否BOEU实施:
-
- BOEU实施 -
-
-
-
- - -
-
-
-
-
-
-
上传共享文档
-
- +
+
+
编辑
+
+
+
项目名称:
+
+ {{ name }} +
+
+
+
封面图:
+
+ +
+
+
+
项目时间:
+
+ {{ startTime }} ~ {{ endTime }} +
+
+
+
项目经理:
+
+ {{ manager }} +
+
+
+
资源归属:
+
+ {{ sourceBelong }} +
+
+
+
项目说明:
+
+ {{ remark }} +
+
+
+
同步学习记录:
+
+ 同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程) +
+
+
+
项目级别:
+
+ {{ level }} +
+
+
+
培训体系:
+
+ {{ systemId }} +
+
+
+
是否BOEU实施:
+
+ BOEU实施
-
- - 上传 - - -
- - 支持:pdf.ppt.pptx.doc.docx.xls.xlsx.jpeg.png.gif.zip - -
-
- - {{item.name}} - 删除 -
-
-
- + + +
+
+
+
+
+
+
上传共享文档
+
+ +
+
+
+ + 上传 + + +
+ + 支持:pdf.ppt.pptx.doc.docx.xls.xlsx.jpeg.png.gif.zip + +
+
+ + {{ + item.name + }} + 删除 +
+
+
+
+
+
@@ -1455,6 +1494,7 @@