From 880838e8b1bfd37ae77a887105930f342d2ed6ac Mon Sep 17 00:00:00 2001 From: zhangyc Date: Tue, 8 Nov 2022 16:12:42 +0800 Subject: [PATCH 01/90] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A8=E8=AE=BA?= =?UTF-8?q?=E4=BC=A0=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/projectcenter/TaskAdd.vue | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue index 31969683..18064d82 100644 --- a/src/views/projectcenter/TaskAdd.vue +++ b/src/views/projectcenter/TaskAdd.vue @@ -1716,22 +1716,23 @@ export default { }; const showDrawerAddDiscuss = () => { state.adddiscussvisible = true; - }; + };s //打开编辑讨论的弹窗 - const showEditAddDiscuss = (id)=>{ + const showEditAddDiscuss = (id,eleId)=>{ state.editDiscussId = id + state.projectTaskId = eleId; state.adddiscussvisible = true; } - const showDrawerAddActive = () => { + const showDrawerAddActive = (id,eleId) => { state.addactivevisible = true; }; - const showDrawerAddEval = () => { + const showDrawerAddEval = (id,eleId) => { state.addevalvisible = true; }; - const showDrawerAddInvist = () => { + const showDrawerAddInvist = (id,eleId) => { state.addinvistvisible = true; }; - const showDrawerAddVote = () => { + const showDrawerAddVote = (id,eleId) => { state.addvotevisible = true; }; const showConfirm = () => { @@ -1831,7 +1832,7 @@ export default { state.EditLiveId = id; }; //打开测评的弹窗 - const showEditEvalDrawer = (id) => { + const showEditEvalDrawer = (id,eleId) => { console.log('222222222222222222222',id); state.addevalvisible = true; state.EditRefId = id; @@ -1845,17 +1846,17 @@ export default { showEditRefDrawer(id); } else if (type == "直播") { - showEditLiveDrawer(id); + showEditLiveDrawer(id,eleId),; } else if (type == "测评") { - showEditEvalDrawer(id) + showEditEvalDrawer(id,eleId) } else if (type == "评估") { - showDrawerAddInvist(id); + showDrawerAddInvist(id,eleId); } else if (type == "投票") { - showDrawerAddVote(id); + showDrawerAddVote(id,eleIdd); } else if (type == "讨论") { - showEditAddDiscuss(id); + showEditAddDiscuss(id,eleId); } else if (type == "活动") { - showDrawerAddActive(id); + showDrawerAddActive(id,eleId); }else if (type == "作业") { showDrawerAddHomework(id,eleId); }else if (type == "考试") { From ac807d9dc67abaaab842d9072335045d98c8b942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B2=B3=E4=BD=B3=E9=91=AB?= Date: Tue, 8 Nov 2022 16:13:40 +0800 Subject: [PATCH 02/90] =?UTF-8?q?feat:=E8=AE=A8=E8=AE=BA=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexDiscuss.js | 7 +- src/components/drawers/AddDiscuss.vue | 78 +++++++++---- src/views/projectcenter/TaskAdd.vue | 159 +++++++++++++++++++++++++- 3 files changed, 215 insertions(+), 29 deletions(-) diff --git a/src/api/indexDiscuss.js b/src/api/indexDiscuss.js index 5167f69c..7141214c 100644 --- a/src/api/indexDiscuss.js +++ b/src/api/indexDiscuss.js @@ -1,13 +1,16 @@ import http from "./config"; +//import qs from 'qs'; //创建讨论 export const createDiscuss = (obj) => http.post('/discuss/createDiscuss', obj); //获取讨论信息接口 -export const getDiscussDetail = (obj) => http.post('/discuss/getDiscussDetail', { params: obj }); +export const getDiscussDetail = (obj) => http.post('/discuss/getDiscussDetail', obj); //删除讨论接口 export const deleteDiscuss = (obj) => http.post('/discuss/deleteDiscuss', { params: obj }); //修改讨论接口 -export const updateDiscuss = (obj) => http.post('/discuss/updateDiscuss', obj ); \ No newline at end of file +export const updateDiscuss = (obj) => http.post('/discuss/updateDiscuss', obj ); +//修改阶段任务信息 +export const updateTask=(obj)=>http.post('/admin/project/editTask',obj) \ No newline at end of file diff --git a/src/components/drawers/AddDiscuss.vue b/src/components/drawers/AddDiscuss.vue index e13afc92..5005158b 100644 --- a/src/components/drawers/AddDiscuss.vue +++ b/src/components/drawers/AddDiscuss.vue @@ -144,13 +144,34 @@ export default { const closeDrawer = () => { ctx.emit("update:adddiscussVisible", false); ctx.emit("update:edit", false); + console.log("编辑状态",props.edit); state.inputV1 = ""; state.textV1 = ""; }; const afterVisibleChange = (bool) => { console.log("state", bool); + if(bool){ + if(props.isStudiscuss == false){ + if(props.edit){ + //编辑讨论 + console.log("props.editDiscussId",props.editDiscussId) + let formData = new FormData(); + formData.append('discussId',props.editDiscussId); + api.getDiscussDetail(formData).then(res => { + console.log('获取讨论信息成功',res.data.data) + //更新讨论信息 + state.inputV1 = res.data.data.discussName; + state.textV1 = res.data.data.discussExplain; + state.checkedC1 = res.data.data.discussSettings; + }).catch(err=>{ + console.log('获取讨论信息失败',err) + }) + + } + } + } }; - + //console.log("编辑状态",props.edit); //创建讨论(项目任务列表) const createDiscuss = () => { if (!state.inputV1) { @@ -169,26 +190,9 @@ export default { discussTag: "", //是否必修的标识 updateTime: "", //更新时间 updateUser: 0, //更新人 - projectId: 0, //项目id + projectId: props.projectId, //项目id }; - if(props.edit){ - //console.log("编辑"); - console.log("props.editDiscussId",props.editDiscussId) - - let obj = { - discussId: props.editDiscussId, - } - console.log(obj) - api - .getDiscussDetail(obj) - .then((res) => { - console.log("获取成功",res.data); - }) - .catch((err) => { - console.log("获取失败",err.data); - }) - - }else{ + if(props.edit == false){ api .createDiscuss(obj) .then((res) => { @@ -213,8 +217,7 @@ export default { console.log("新增关卡任务成功",res); setTimeout(()=>{ message.success("创建成功"); - ctx.emit("update:adddiscussVisible", false); - closeDrawer(); + ctx.emit("update:adddiscussVisible", false); state.addLoading=false },1000) }).catch(err => { @@ -229,7 +232,7 @@ export default { flag: true, name: obj.discussName, projectId: props.projectId, - projectTaskId: 0, + projectTaskId: "", stageId: props.chooseStageId, type: 8, }) @@ -248,10 +251,35 @@ export default { }) .catch((err) => { console.log("创建失败", err); - }); + }); + }else{ + api + .updateDiscuss(obj) + .then((res)=> { + console.log("更新成功",res) + let taskObj={ + courseId: res.data.data.discussId, + name: obj.discussName, + projectId: props.projectId, + projectTaskId: "", + stageId: props.stageId, + type: 8, + + } + api.updateTask(taskObj).then(taskRes=>{ + console.log('更新阶段任务成功',taskRes) + }).catch(taskErr=>{ + console.log('更新阶段任务失败',taskErr) + }) + }) + .catch((err) => { + console.log("更新失败",err) + }) } - + + }; + return { ...toRefs(state), afterVisibleChange, diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue index 78618837..448471d9 100644 --- a/src/views/projectcenter/TaskAdd.vue +++ b/src/views/projectcenter/TaskAdd.vue @@ -306,7 +306,7 @@
任务列表
- +
+ + +
+
+
+
+
选择任务移动到阶段
+
+
+
+
+
已选中{{selectRow.length}}个任务
+
+ +
+
+ + +
+
+
+
@@ -993,6 +1031,7 @@ export default { selectedRowKeys: [], valuesname: "", valuesnotice: "", + visiblene: false,//移动任务弹窗 confirmModal: false, //确认添加阶段弹窗 cC: false, cancelModal: false, //确认取消阶段弹窗 @@ -1006,6 +1045,7 @@ export default { deleteActivityID: null, //删除活动id deleteID: "", selectRow: [], //选择行 + curLevel: [], //阶段名称 selectAll: 0, //0:未选择,1:全选,2:部分选择 }); console.log("projectId", state.projectId); @@ -1251,13 +1291,19 @@ export default { if (leng > 0) { //获取任务列表 let arr = res.data.data.stageList[0].taskList; + console.log('任务列表',arr) getTableData(arr); } let stagearr = res.data.data.stageList; - console.log(stagearr, 111111); + let arrlist = state.curLevel; + //console.log(stagearr, 111111); if (stagearr.length > 0) { getStageData(stagearr); + stagearr.map(value => { + console.log(value); + arrlist.push(); + }) } //给阶段id赋初始值 state.chooseStageId = leng > 0 ? stagearr[0].stageId : null; @@ -1638,6 +1684,12 @@ export default { getTask(); }); }; + const showChangeModal = () => { + state.visiblene = true; + } + const closeChangeModal = () => { + state.visiblene = false; + }; //移动任务到阶段 const moveTask = () => { let obj = { @@ -1917,6 +1969,8 @@ export default { closeCancel, showDelete, closeDelete, + showChangeModal, + closeChangeModal, changebgc, getTask, deleteLiveBroadcast, @@ -2095,6 +2149,107 @@ export default { } } } +.changeModal { + .ant-modal { + width: 549px !important; + height: 245px !important; + .ant-modal-content { + width: 549px !important; + height: 245px !important; + .ant-modal-body { + padding: 0 !important; + width: 549px !important; + height: 245px !important; + .con { + // background-color: #bfa; + width: 100%; + height: 100%; + + .header { + width: 100%; + display: flex; + height: 68px; + position: relative; + justify-content: center; + + background: linear-gradient( + rgba(78, 166, 255, 0.2) 0%, + rgba(78, 166, 255, 0) 100% + ); + .inhe { + width: 80%; + height: 100%; + display: flex; + justify-content: space-between; + align-items: center; + .mod { + left: 30px; + top: 27px; + position: absolute; + width: 18px; + height: 17px; + background-image: url(../../assets/images/leveladd/mod.png); + } + .tz { + color: #000000; + font-weight: 400; + font-size: 16px; + } + .mg { + width: 20px; + height: 20px; + background-image: url(../../assets/images/basicinfo/close22.png); + background-size: 100% 100%; + cursor: pointer; + } + } + } + .mid { + width: 100%; + display: flex; + height: 100%; + justify-content: center; + .inher { + width: 80%; + height: 100%; + .cur { + color: #6f6f6f; + font-size: 14px; + } + .select { + margin-top: 10px; + } + .btn { + width: 100%; + display: flex; + justify-content: center; + margin-top: 30px; + .sameb { + width: 100px; + height: 40px; + font-size: 14px; + + border-radius: 8px; + } + .btn1 { + color: #4ea6ff; + background: #ffffff; + border: 1px solid #4ea6ff; + } + .btn2 { + margin-left: 16px; + border: 0; + color: #ffffff; + background: #4ea6ff; + } + } + } + } + } + } + } + } +} .info { width: 78%; // background-color: lightcoral; From e14b5a2bce29be34378b0382bd5fab91fa1c74a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=86=99=E4=B8=9C?= <2195178163@qq.com> Date: Tue, 8 Nov 2022 16:56:03 +0800 Subject: [PATCH 03/90] =?UTF-8?q?feat=EF=BC=9A=E6=96=B0=E5=A2=9E=E5=85=B3?= =?UTF-8?q?=E5=8D=A1=E8=B7=AF=E5=BE=84=E4=B8=8B=20=E8=80=83=E8=AF=95?= =?UTF-8?q?=E5=92=8C=E4=BD=9C=E4=B8=9A=E7=9A=84=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E3=80=81=E4=BF=AE=E6=94=B9=E3=80=81=E6=B7=BB=E5=8A=A0=EF=BC=8C?= =?UTF-8?q?=20=E5=A2=9E=E5=8A=A0loading=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/AddHomework.vue | 70 ++++++++++++------ src/components/drawers/AddTest.vue | 89 +++++++++++++++++------ src/views/learningpath/LevelAddDetail.vue | 82 ++++++++++++++------- 3 files changed, 168 insertions(+), 73 deletions(-) diff --git a/src/components/drawers/AddHomework.vue b/src/components/drawers/AddHomework.vue index a571428d..fa3a1fe9 100644 --- a/src/components/drawers/AddHomework.vue +++ b/src/components/drawers/AddHomework.vue @@ -3,7 +3,7 @@ @after-visible-change="afterVisibleChange">
-
{{ EditWorkId ? '编辑' : '添加' }}作业
+
{{ edit ? '编辑' : '添加' }}作业
@@ -62,16 +62,20 @@ 确定
+
+ +
+ +
+ + \ No newline at end of file diff --git a/src/components/drawers/StuAdd.vue b/src/components/drawers/StuAdd.vue index cdb761cf..735d851f 100644 --- a/src/components/drawers/StuAdd.vue +++ b/src/components/drawers/StuAdd.vue @@ -65,32 +65,50 @@
清空
--> -
- -
- +
+ + + +
+
+ +
+ +
@@ -101,36 +119,14 @@ style="overflow-y: auto" >
-
-
选择组织:
-
- - -
-
-
-
姓名:
+
+
组织:
-
- -
@@ -149,6 +145,34 @@
重置
+ +
+
+ + + +
+ +
@@ -284,204 +308,19 @@ 全部清除
-
-
- 李明 -
-
-
- 李大明 -
-
-
- 李二明 -
-
-
- 李明 -
-
-
- 李大明 -
-
-
- 李二明 -
-
-
- 李明 -
-
-
- 李大明 -
-
-
- 李二明 -
-
-
- 李明 -
-
-
- 李大明 -
-
-
- 李二明 -
-
-
- 李明 -
-
-
- 李大明 -
-
-
- 李二明 -
-
-
- 李明 -
-
-
- 李大明 -
-
-
- 李二明 -
-
-
- 李明 -
-
-
- 李大明 -
-
-
- 李二明 -
-
-
- 李明 -
-
-
- 李大明 -
-
-
- 李二明 -
-
-
- 李明 -
-
-
- 李大明 -
-
-
- 李二明 -
-
-
- 李明 -
-
-
- 李大明 -
-
-
- 李二明 -
-
-
- 李明 -
-
-
- 李大明 -
-
-
- 李二明 -
-
-
- 李明 -
-
-
- 李大明 -
-
-
- 李二明 -
-
-
- 李明 -
-
-
- 李大明 -
-
-
- 李二明 -
-
-
- 李明 -
-
-
- 李大明 -
-
-
- 李二明 -
-
-
- 李明 -
-
-
- 李大明 -
-
-
- 李二明 -
-
-
- 李明 -
-
-
- 李大明 -
-
-
- 李二明 +
+
快速选人
+
+ +
+ {{ item.name }}
+
+
添加组织
+
+
受众关联
@@ -521,9 +360,12 @@ export default { value: [], //级联选择框 choosevalue: null, //受众选择 valueSelect: null, //树形选择 + valueSelectboe: null, //boe树形选择 + valueSelectboe2: null, //boe树形选择 name: "", nameadd: "", nameaddd: "", + com: "", treeData: [ { title: "京东方", @@ -691,69 +533,236 @@ export default { ], }, ], + treeData2: [ + { + title: "京东方", + value: "京东方", + children: [ + { + title: "产研部", + value: "产研部", + children: [ + { + title: "产品部", + value: "产品部", + }, + { + title: "研究部", + value: "研究部", + }, + ], + }, + { + title: "二级标题", + value: "二级标题", + children: [ + { + title: "三级标题", + value: "三级标题", + children: [ + { + title: "四级标题", + value: "四级标题", + children: [ + { + title: "五级标题", + value: "五级标题", + children: [ + { + title: "六级标题", + value: "六级标题", + children: [ + { + title: "七级标题", + value: "七级标题", + children: [ + { + title: "八级标题", + value: "八级标题", + children: [ + { + title: "九级标题", + value: "九级标题", + children: [ + { + title: "十级标题", + value: "十级标题", + children: [ + { + title: "十一级标题", + value: "十一级标题", + children: [ + { + title: "十二级标题", + value: "十二级标题", + children: [ + { + title: + "十三级标题十三级标题十三级标题十三级标题", + value: "十三级标题", + children: [ + { + title: + "十四级标题", + value: + "十四级标题", + children: [ + { + title: + "十五级标题", + value: + "十五级标题", + children: [ + { + title: + "十六级标题", + value: + "十六级标题", + children: + [ + { + title: + "十七级标题", + value: + "十七级标题", + children: + [ + { + title: + "十八级标题", + value: + "十八级标题", + children: + [ + { + title: + "十九级标题", + value: + "十九级标题", + children: + [ + { + title: + "二十级标题二十级标题", + value: + "二十级标题二十级标题", + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + { + title: "人力资源部", + value: "人力资源部", + children: [ + { + title: "人事部", + value: "人事部", + }, + { + title: "行政部", + value: "行政部", + }, + ], + }, + ], + }, + ], tabledata: [ { key: 1, name: "小李", bum: "产研部", numb: "000000", - guishu: "", + guishu: "产品部", }, { key: 2, name: "小刘", bum: "产研部", numb: "000000", - guishu: "", + guishu: "产品部", }, { key: 3, name: "小李", bum: "产研部", numb: "000000", - guishu: "", + guishu: "产品部", }, { key: 4, name: "小李", bum: "产研部", numb: "000000", - guishu: "", + guishu: "产品部", }, { key: 5, name: "小李", bum: "产研部", numb: "000000", - guishu: "", + guishu: "产品部", }, { key: 6, name: "小李", bum: "产研部", numb: "000000", - guishu: "", + guishu: "产品部", }, { key: 7, name: "小李", bum: "产研部", numb: "000000", - guishu: "", + guishu: "产品部", }, { key: 8, name: "小李", bum: "产研部", numb: "000000", - guishu: "", + guishu: "产品部", }, { key: 9, name: "小李", bum: "产研部", numb: "000000", - guishu: "", + guishu: "产品部", }, ], tablecolumns: [ @@ -761,7 +770,7 @@ export default { title: "姓名", dataIndex: "name", key: "name", - width: 30, + // width: 30, align: "left", className: "h", }, @@ -769,7 +778,7 @@ export default { title: "工号", dataIndex: "numb", key: "numb", - width: 35, + // width: 30, align: "center", className: "h", }, @@ -777,7 +786,7 @@ export default { title: "归属组织", dataIndex: "guishu", key: "guishu", - width: 30, + // width: 30, align: "center", className: "h", }, @@ -785,7 +794,7 @@ export default { title: "部门", dataIndex: "bum", key: "bum", - width: 40, + // width: 30, align: "center", className: "h", }, @@ -998,6 +1007,52 @@ export default { label: "人力资源hrbp", }, ], + choosepeople: [ + { + id: 1, + name: "李明", + }, + { + id: 1, + name: "李明", + }, + { + id: 1, + name: "李明", + }, + { + id: 1, + name: "李明", + }, + { + id: 1, + name: "李明", + }, + { + id: 1, + name: "李明", + }, + { + id: 1, + name: "李明", + }, + { + id: 1, + name: "李明", + }, + { + id: 1, + name: "李明", + }, + { + id: 1, + name: "李明", + }, + { + id: 1, + name: "李明", + }, + ], }); const closeDrawer = () => { state.activeKey = "1"; @@ -1234,49 +1289,70 @@ export default { } } } - .tabb { - .ant-table-thead > tr > th { - background-color: rgba(240, 246, 252, 1); - color: rgba(0, 0, 0, 0.85); - } - .ant-table-tbody > tr > td { - border-bottom: 1px solid #f0f6fc; - color: rgba(0, 0, 0, 0.65); - } - th.h { - background-color: #eff4fc !important; + .chooseLeft { + display: flex; + justify-content: space-between; + .boeTree { + margin-top: 20px; + width: 300px; + height: 40px; + margin-right: 10px; + .ant-select { + .ant-select-selector { + border-radius: 8px; + height: 40px; + .ant-select-selection-placeholder { + color: #409eff; + margin-left: 72px !important; + margin-top: 4px !important; + } + } + } } + .tabb { + .ant-table-thead > tr > th { + background-color: rgba(240, 246, 252, 1); + color: rgba(0, 0, 0, 0.85); + } + .ant-table-tbody > tr > td { + border-bottom: 1px solid #f0f6fc; + color: rgba(0, 0, 0, 0.65); + } + th.h { + background-color: #eff4fc !important; + } - .ant-table-tbody - > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) - > td { - background: rgba(250, 250, 250, 1); - } - .ant-table-selection-column { - padding: 0 !important; - } - // table tr td.ant-table-selection-column { - // text-align: right; - // } - // .ant-checkbox-wrapper { - // align-items: center; - // margin-top: -2px; - // } - .pa { - // left: 0; - margin-top: 15px; - width: 100%; - // height: 20px; - // background-color: red; - display: flex; - justify-content: center; - // position: absolute; - // bottom: 20px; - .ant-pagination-item, - .ant-pagination-prev, - .ant-pagination-next, - .ant-pagination-options { - margin-bottom: 10px; + .ant-table-tbody + > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) + > td { + background: rgba(250, 250, 250, 1); + } + .ant-table-selection-column { + padding: 0 !important; + } + // table tr td.ant-table-selection-column { + // text-align: right; + // } + // .ant-checkbox-wrapper { + // align-items: center; + // margin-top: -2px; + // } + .pa { + // left: 0; + margin-top: 15px; + width: 100%; + // height: 20px; + // background-color: red; + display: flex; + justify-content: center; + // position: absolute; + // bottom: 20px; + .ant-pagination-item, + .ant-pagination-prev, + .ant-pagination-next, + .ant-pagination-options { + margin-bottom: 10px; + } } } } @@ -1284,45 +1360,27 @@ export default { .tab2 { display: flex; align-items: center; - margin-top: 10px; + // margin-top: 10px; flex-wrap: wrap; justify-content: space-between; + .nameinp { + display: flex; + align-items: center; + margin-top: 10px; + .namee { + color: rgba(0, 0, 0, 0.85); + font-size: 14px; + } + } .t1 { display: flex; align-items: center; margin-bottom: 5px; } - .organize { - color: rgba(0, 0, 0, 0.85); - font-size: 14px; - white-space: nowrap; - } - - .ant-select-dropdown { - min-width: 800px !important; - } - .ant-select { - border-radius: 8px !important; - // background-color: red; - } - .ant-cascader { - width: 264px; - height: 40px; - border-radius: 8px !important; - .ant-select-selector { - height: 100%; - } - .ant-select-selection-search-input { - height: 40px; - } - } - } - - .searchdown { .btns { display: flex; - margin-top: 10px; + // margin-top: -10px; .btn1 { width: 100px; height: 40px; @@ -1357,6 +1415,47 @@ export default { } } } + .organize { + color: rgba(0, 0, 0, 0.85); + font-size: 14px; + white-space: nowrap; + } + + .ant-select-dropdown { + min-width: 800px !important; + } + .ant-select { + border-radius: 8px !important; + // background-color: red; + } + .ant-cascader { + width: 264px; + height: 40px; + border-radius: 8px !important; + .ant-select-selector { + height: 100%; + } + .ant-select-selection-search-input { + height: 40px; + } + } + } + .boeTree { + margin-top: 20px; + width: 300px; + height: 40px; + margin-right: 10px; + .ant-select { + .ant-select-selector { + border-radius: 8px; + height: 40px; + .ant-select-selection-placeholder { + color: #409eff; + margin-left: 72px !important; + margin-top: 4px !important; + } + } + } } } } @@ -1416,10 +1515,25 @@ export default { } } } + .line { + width: 90%; + height: 1px; + background-color: #e8e8e8; + margin-left: 12px; + margin-top: 20px; + } + .tit { + font-size: 14px; + font-weight: 500; + margin-top: 12px; + margin-left: 32px; + } .selecteds { display: flex; flex-wrap: wrap; margin-left: 32px; + height: 200px; + overflow-y: hidden; .chose { width: 64px; height: 24px; @@ -1490,4 +1604,18 @@ export default { width: 7px !important; } } +.changetreedropdownboe { + width: 240px !important; + border-radius: 5px; + min-height: 600px !important; + .ant-select-tree-list-scrollbar { + width: 5px !important; + .ant-select-tree-list-scrollbar-thumb { + background-color: #4ea6ff !important; + } + } + .ant-select-tree-indent-unit { + width: 7px !important; + } +} diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue index eeb9619d..c9510c07 100644 --- a/src/views/projectcenter/TaskAdd.vue +++ b/src/views/projectcenter/TaskAdd.vue @@ -1326,7 +1326,16 @@ export default { // console.log("22222", res.data.data.stageList); let leng = res.data.data.stageList.length; if (leng > 0) { - //获取任务列表 + //后加选择了阶段id + // if(state.chooseStageId!==null){ + // let final = res.data.data.stageList.find((item)=>item.id==state.chooseStageId) + // getTableData(final) + // }else{ + // //获取任务列表 + // let arr = res.data.data.stageList[0].taskList; + // console.log("任务列表", arr); + // getTableData(arr); + // } let arr = res.data.data.stageList[0].taskList; console.log("任务列表", arr); getTableData(arr); diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index ebaf0cb1..f83efd1b 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -597,11 +597,11 @@ />
-
+
搜索
-
+
重置
@@ -617,11 +617,16 @@ 随机分组
+
-
+
-
好好学习小组
+
{{ item.groupName }}
编辑
-
删除
+
+ 删除 +
-
组长:小李
+
组长:{{ item.leaderName }}
进度
- -
-
-
组员名单 >
-
-
- -
-
- -
-
- -
-
- -
-
-
-
-
-
-
-
-
全能小组
-
- . . . -
-
编辑
-
删除
-
-
-
-
组长:小李
-
-
进度
- -
-
-
组员名单 >
-
-
- -
-
- -
-
- -
-
- -
-
-
-
-
-
-
-
-
宇宙第一最强小组
-
- . . . -
-
编辑
-
删除
-
-
-
-
组长:小李
-
-
进度
- -
-
-
组员名单 >
-
-
- -
-
- -
-
- -
-
- -
-
-
-
-
-
-
-
-
天天向上小组
-
- . . . -
-
编辑
-
删除
-
-
-
-
组长:小李
-
-
进度
- +
组员名单 >
@@ -954,7 +823,7 @@ -->
-
+
编辑
@@ -968,7 +837,7 @@
封面图:
@@ -1206,7 +1075,7 @@
取消 - 确定 + 确定
@@ -1309,232 +1178,7 @@
- -
- -
-
- - 编辑 -
-
- -
-
-
-
基本信息
-
-
-
-
- -
- 项目名称: -
-
- -
-
-
-
- 直播封面: -
-
-
- + - 添加图片 -
-
-
-
-
-
- -
- 项目时间: -
-
- -
-
-
-
-
- -
- 项目经理: -
-
- -
-
-
-
-
- -
- 资源归属: -
-
- -
-
-
-
- 项目说明: -
-
- -
-
-
-
- 同步学习记录: -
-
- - 同步课程学习记录(如学员在课程库中拥有课程的学习记录,自由免修改课程) - - -
-
-
-
-
- -
- 项目级别: -
-
- -
-
-
-
-
- -
- 培训体系: -
-
- -
-
-
-
-
- -
- 是否BOEU实施: -
-
- - BOEU实施 - -
-
-
-
- 取消 - 发布 -
-
-
-
-
+ +
- \ No newline at end of file diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index dbd5e4b6..75e3e4c5 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -220,14 +220,16 @@
任务大纲
- - + + + +
- + - + @@ -1056,9 +1066,16 @@ - + - + @@ -1812,7 +1829,7 @@ export default { selectedRowKeys: [], //选择的学员 selectedRows: [], //选择的学员的id值 chooseDeleteOne: [], //删除的单个学员id - projectTaskId:"", //项目任务id + projectTaskId: "", //项目任务id //进度排行学员 rankjindu: [{ value: "学员", label: "学员" }], valuestu1: "学员", @@ -1874,7 +1891,7 @@ export default { noticeChecked: true, noticeContent: "", TaskFaceImpStuvisible: false, //批量面授报名 - + morFaceT:true, //批量面授报名按钮 //进度排行表 jindutabledata: [ { @@ -2342,7 +2359,6 @@ export default { level: null, //项目级别 systemId: null, //培训体系 picUrl: null, - }); // 输入接入 -- start -- @@ -2363,15 +2379,20 @@ export default { if (res.status == 200) { console.log("res", res); console.log("阶段列表", res.data.data.stageList); - console.log('任务id',res.data.data.stageList[0].taskList[0].projectTaskId) - //taskList[num] num应该是点那个就是那个数 - state.projectTaskId = res.data.data.stageList[0].taskList[0].projectTaskId + console.log( + "任务id", + res.data.data.stageList[0].taskList[0].projectTaskId + ); + //taskList[num] num应该是点那个就是那个数 + state.projectTaskId = + res.data.data.stageList[0].taskList[0].projectTaskId; let leng = res.data.data.stageList.length; if (leng > 0) { //获取任务列表 阶段 let taskarr = res.data.data.stageList; state.taskSyllabus = taskarr; - // console.log(res.data.data.stageList[0].taskList[0].type, "ggg"); + console.log("123456789", state.taskSyllabus); + // console.log(res.data.data.stageList[0].taskList[0].name, "ggg"); } } }) @@ -3046,7 +3067,14 @@ export default { state.checkedSty = info.courseSyncFlag == 1 ? true : false; state.checkedBOEU = info.boeFlag == 1 ? true : false; state.picUrl = info.picUrl; - state.sourceBelong = info.sourceBelongId==1?"项目一":info.sourceBelongId==2?"项目二":info.sourceBelongId==3?"项目三":"-" + state.sourceBelong = + info.sourceBelongId == 1 + ? "项目一" + : info.sourceBelongId == 2 + ? "项目二" + : info.sourceBelongId == 3 + ? "项目三" + : "-"; }); }); return { From b5f3c234c95ab2259e9e2b6157a8604ab03503b6 Mon Sep 17 00:00:00 2001 From: dongwug Date: Fri, 11 Nov 2022 14:36:54 +0800 Subject: [PATCH 24/90] =?UTF-8?q?feat:=E9=A1=B9=E7=9B=AE=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=A4=A7=E7=BA=B2=E6=89=B9=E9=87=8F=E5=85=8D=E5=8F=97=E5=88=A4?= =?UTF-8?q?=E6=96=AD=20=E6=93=8D=E4=BD=9C=E7=AE=A1=E7=90=86=E7=9A=84?= =?UTF-8?q?=E5=85=A8=E9=83=A8=E5=88=97=E8=A1=A8=E6=B8=B2=E6=9F=93=E5=92=8C?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=20=E9=87=8D=E7=BD=AE=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/CreVote.vue | 2 +- src/components/drawers/FaceManage.vue | 175 +++++++++---------- src/components/drawers/TestManage.vue | 215 ++++++++++------------- src/components/drawers/TimeManage.vue | 206 +++++++++++----------- src/components/drawers/WorkManage.vue | 235 +++++++++++--------------- src/views/projectcenter/TaskPage.vue | 78 ++++----- 6 files changed, 413 insertions(+), 498 deletions(-) diff --git a/src/components/drawers/CreVote.vue b/src/components/drawers/CreVote.vue index 56cf411d..29c1fe21 100644 --- a/src/components/drawers/CreVote.vue +++ b/src/components/drawers/CreVote.vue @@ -38,7 +38,7 @@
-
删除题干
+
删除题干
diff --git a/src/components/drawers/FaceManage.vue b/src/components/drawers/FaceManage.vue index cdb61889..d159102b 100644 --- a/src/components/drawers/FaceManage.vue +++ b/src/components/drawers/FaceManage.vue @@ -41,11 +41,15 @@
-
+
搜索
-
+
重置
@@ -158,7 +162,7 @@ export default { type: Boolean, default: false, }, - ProjectTaskId: { + projectTaskId: { type: Number, default: null, }, @@ -176,6 +180,7 @@ export default { showdonemodal: false, open: false, selectedRowKeys: [], + projectName: "", projectNameList: [ { id: 1, @@ -199,108 +204,36 @@ export default { }, ], tabledata: [ - { - key: 1, - name: "哈哈", - bum: "产品部", - gangw: "产品经理", - score: "-", - state: "未完成", - }, - { - key: 2, - name: "哈哈", - bum: "产品部", - gangw: "产品经理", - score: "-", - state: "未完成", - }, - { - key: 3, - name: "哈哈", - bum: "产品部", - gangw: "产品经理", - score: "合格", - state: "完成", - }, - { - key: 4, - name: "哈哈", - bum: "产品部", - gangw: "产品经理", - score: "合格", - state: "完成", - }, - { - key: 5, - name: "哈哈", - bum: "产品部", - gangw: "产品经理", - score: "合格", - state: "完成", - }, - { - key: 6, - name: "哈哈", - bum: "产品部", - gangw: "产品经理", - score: "合格", - state: "完成", - }, - { - key: 7, - name: "哈哈", - bum: "产品部", - gangw: "产品经理", - score: "合格", - state: "完成", - }, - { - key: 8, - name: "哈哈", - bum: "产品部", - gangw: "产品经理", - score: "不合格", - state: "完成", - }, - { - key: 9, - name: "哈哈", - bum: "产品部", - gangw: "产品经理", - score: "不合格", - state: "完成", - }, - { - key: 10, - name: "哈哈", - bum: "产品部", - gangw: "产品经理", - score: "不合格", - state: "完成", - }, + // { + // key: 1, + // name: "哈哈", + // bum: "产品部", + // gangw: "产品经理", + // score: "-", + // state: "未完成", + // }, ], tablecolumns: [ { title: "姓名", - dataIndex: "name", - key: "name", + dataIndex: "userName", + key: "userName", width: 50, align: "left", className: "h head", }, { title: "所在部门", - dataIndex: "bum", - key: "bum", + dataIndex: "deptName", + key: "userName", width: 60, align: "center", className: "h", }, { title: "所在岗位", - dataIndex: "gangw", - key: "gangw", + dataIndex: "jobName", + key: "jobName", width: 60, align: "center", className: "h", @@ -315,8 +248,8 @@ export default { }, { title: "任务状态", - dataIndex: "state", - key: "state", + dataIndex: "status", + key: "status", width: 60, align: "center", className: "h", @@ -325,6 +258,7 @@ export default { }); const selectProjectName = (value, index) => { console.log("value", value, index); + state.projectName = value }; const closeDrawer = () => { ctx.emit("update:Fvisible", false); @@ -371,26 +305,67 @@ export default { name: "", pageNo: 0, pageSize: 0, - projectTaskId: props.ProjectTaskId, + projectTaskId: props.projectTaskId, status: 0, }; - console.log('9999999999999',obj.projectTaskId); api .taskStudentList(obj) .then((res) => { - console.log('获取任务管理列表成功', res); - + console.log("获取面授任务管理列表成功", res); + // state.pageNo = res.data.data.pageNo + state.pageSize = res.data.data.pageSize; + state.pageSize = res.data.data.pageSize; + // for (let i = 0; i < res.data.data.rows.length; i++) { + // state.tabledata.push(res.data.data.rows[i].userInfoBo); + // } + for (let i = 0; i < res.data.data.rows.length; i++) { + state.tabledata.push(res.data.data.rows[i]); + //需要确认值 赋给tablecolumns + console.log('state.tabledata',state.tabledata); + } }) .catch((err) => { - console.log("获取任务列表失败",err) - }) + console.log("获取面授任务列表失败", err); + }); }; + + //搜索任务列表 + const searchTaskList = () => { + let objser = { + name: state.name, + pageNo: 0, + pageSize: 0, + projectTaskId: props.projectTaskId, + status: state.projectName, + }; + api + .taskStudentList(objser) + .then((res) => { + console.log("获取任务管理列表成功", res); + // state.pageNo = res.data.data.pageNo + state.pageSize = res.data.data.pageSize; + state.pageSize = res.data.data.pageSize; + for (let i = 0; i < res.data.data.rows.length; i++) { + state.tabledata.push(res.data.data.rows[i].userInfoBo); + } + }) + .catch((err) => { + console.log("获取任务列表失败", err); + }); + }; + + //重置任务列表 + const resetTaskList = () => { + state.name = "", + state.projectName=""; + getManageList(); + }; let timer; onMounted(() => { setTimeout(() => { - getManageList() - },1000) + getManageList(); + }, 1000); timer = setInterval(() => { state.open = false; }, 3000); @@ -411,6 +386,8 @@ export default { closedoneModal, showopen, getManageList, + searchTaskList, + resetTaskList, }; }, }; diff --git a/src/components/drawers/TestManage.vue b/src/components/drawers/TestManage.vue index 072f1b21..f8619fbd 100644 --- a/src/components/drawers/TestManage.vue +++ b/src/components/drawers/TestManage.vue @@ -8,7 +8,7 @@ >
-
{{ title }}
+
【{{ title }}】管理
-
+
搜索
-
+
重置
@@ -108,6 +108,7 @@ + \ No newline at end of file diff --git a/src/components/drawers/NoticePub.vue b/src/components/drawers/NoticePub.vue index d36f32b6..4ecf4e49 100644 --- a/src/components/drawers/NoticePub.vue +++ b/src/components/drawers/NoticePub.vue @@ -1,85 +1,159 @@ s \ No newline at end of file diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index 163d1cae..69247d7f 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -571,18 +571,23 @@ onChange: onSelectChange, }" /> -
+
@@ -648,7 +653,10 @@
进度
-
+
组员名单 >
@@ -681,7 +689,13 @@
- +
+ + + +
@@ -922,11 +936,22 @@ - + - + - + @@ -1117,7 +1142,7 @@
-
取消
+
取消
确定
@@ -1149,7 +1174,7 @@
-
取消
+
取消
确定
@@ -1363,6 +1388,7 @@ import ImportStu from "../../components/drawers/ImportStu"; import SeeStu from "../../components/drawers/SeeStu"; import ChangeGroup from "../../components/drawers/ChangeGroup"; import NoticePub from "../../components/drawers/NoticePub"; +import NoticeHis from "../../components/drawers/NoticeHis"; import ProjectScore from "../../components/drawers/ProjectScore"; import TaskImpStu from "../../components/drawers/TaskFaceIn"; import { storage } from "../../api/storage"; @@ -1373,6 +1399,7 @@ import { getGroupList, deleteGroup, editGroup, + topStudent, } from "../../api/indexProjStu"; import { message } from "ant-design-vue"; import * as apitl from "../../api/index"; @@ -1399,6 +1426,7 @@ export default { ProjectScore, TaskImpStu, projSet, + NoticeHis, }, setup() { const state = reactive({ @@ -1429,6 +1457,7 @@ export default { label: "", }, ], + changeGoods: [], //更改是否优秀的id数组 //学员信息列表 tabledata: [ // { @@ -1477,7 +1506,9 @@ export default { // stuGroup: "", //搜索的学员小组名称 // stuBum: "", //搜索的学员小组部门 // stuGood: "", //搜索的学员是否优秀 - total: null, //学员列表数据总条数 + total: 0, //学员列表数据总条数 + stupageSize: 10, + currentPageStu: 1, //当前页 choosed: 0, //勾选的学员总数 selectedRowKeys: [], //选择的学员 selectedRows: [], //选择的学员的id值 @@ -1527,9 +1558,10 @@ export default { checkedBOEU: false, //是否BOEU实施 radioV1: "", radioV2: "", - activeKey: "5", //1:概览 2.任务... + activeKey: "4", //1:概览 2.任务... activeKey1: "8", //8:学员管理 9:小组管理 activeKey2: "3", + activeKeyNotice: "11", inputValue: 5, inputValue2: 5, inputValue3: 5, @@ -1546,6 +1578,7 @@ export default { TaskFaceImpStuvisible: false, //批量面授报名 valuestugn: "", //小组管理的输入的小组名称 checkStuId: null, //要查看的学员id + chooseGroupId: null, //进度排行表 jindutabledata: [ { @@ -2055,77 +2088,77 @@ export default { }; //学员学员管理渲染 - const getTableDate = () => { - let datas = state.tabledata; - datas.map((value) => { - { - //单层项目 - value.operations = ( -
-
-
-
{ - // state.QR_hs = true; - // state.ftsQR_hs = true; - state.canclestu = true; - }} - > - 优秀学员 -
-
{ - state.Seevisible = true; - }} - > - 查看 -
-
- - -
{ - // state.copy_hs = true; - }} - > - 复制 -
-
- -
{ - state.delete_hs = true; - }} - > - 删除 -
-
-
-
-
-
-
- ); - } - }); - state.tableData = datas; - }; - getTableDate(); + // const getTableDate = () => { + // let datas = state.tabledata; + // datas.map((value) => { + // { + // //单层项目 + // value.operations = ( + //
+ //
+ //
+ //
{ + // // state.QR_hs = true; + // // state.ftsQR_hs = true; + // state.canclestu = true; + // }} + // > + // 优秀学员 + //
+ //
{ + // state.Seevisible = true; + // }} + // > + // 查看 + //
+ //
+ // + // + //
{ + // // state.copy_hs = true; + // }} + // > + // 复制 + //
+ //
+ // + //
{ + // state.delete_hs = true; + // }} + // > + // 删除 + //
+ //
+ //
+ //
+ //
+ //
+ //
+ // ); + // } + // }); + // state.tableData = datas; + // }; + // getTableDate(); const totask = () => { state.activeKey = "2"; @@ -2143,13 +2176,59 @@ export default { const showModal1 = () => { state.canclestu = true; }; + //点击确定授予优秀学员后 const closeModal1 = () => { + let obj = { + projectId: state.projectId, + studentIds: state.changeGoods, + topFlag: 1, + }; + topStudent(obj) + .then((res) => { + console.log(`优秀学员授予成功${res.data}`); + message.success("优秀学员称号授予成功"); + + getStu(); + }) + .catch((err) => { + console.log(`优秀学员授予成功${err}`); + message.warning("优秀学员称号授予失败"); + }); + state.changeGoods = []; + state.canclestu = false; + }; + //点击取消授予优秀学员后 + const cancelyou = () => { + state.changeGoods = []; state.canclestu = false; }; const showModal3 = () => { state.canclestu1 = true; }; + //点击确定取消优秀学员称号 const closeModal3 = () => { + let obj = { + projectId: state.projectId, + studentIds: state.changeGoods, + topFlag: 0, + }; + topStudent(obj) + .then((res) => { + console.log(`取消优秀学员称号成功${res}`); + message.success("优秀学员称号取消成功"); + + getStu(); + }) + .catch((err) => { + console.log(`取消优秀学员称号失败${err}`); + message.warning("优秀学员称号取消失败"); + }); + state.changeGoods = []; + state.canclestu1 = false; + }; + //点击取消取消授予优秀学员后 + const cancelcanyou = () => { + state.changeGoods = []; state.canclestu1 = false; }; @@ -2192,8 +2271,7 @@ export default { state.FaceVisivle = true; }; const showSubset = () => { - //面授管理的抽屉 - // console.log("点击管理"); + // 随机分组 state.subsetVisivle = true; }; //面授学员的弹窗 @@ -2201,8 +2279,10 @@ export default { state.FSvisible = true; }; //面授学员的弹窗 - const showMemberList = () => { + const showMemberList = (id) => { state.Lvisible = true; + console.log("ssdsdsdsd", id); + state.chooseGroupId = id; }; //活动考勤的抽屉 const showAA = (course) => { @@ -2283,8 +2363,12 @@ export default { onClick={() => { if (value.excellent === false) { state.canclestu = true; + console.log("youxiu", value.studentId); + state.changeGoods.push(value.studentId); } else if (value.excellent === true) { state.canclestu1 = true; + console.log("youxiu", value.studentId); + state.changeGoods.push(value.studentId); } }} > @@ -2334,7 +2418,7 @@ export default { }); state.tabledata = arr; }; - // studentData(); + studentData(); const studentColumns = () => { const tablecolumns = [ { @@ -2522,6 +2606,7 @@ export default { //点击取消删除单个学员 const closeDeleteOne = () => { state.deleteOneStu = false; + state.chooseDeleteOne = []; }; //点击确认删除单个学员 const closeDeleteOneConfirm = () => { @@ -2563,6 +2648,7 @@ export default { .then((res) => { console.log(res, "删除成功"); message.success("删除成功"); + state.selectedRows = []; getStu(); }) .catch((err) => { @@ -2606,7 +2692,7 @@ export default { : value.source == 3 ? "受众添加" : "-", //加入方式 - beginStudyTime: value.beginStudyTime, //开始学习时间 + stutime: toDate(value.beginStudyTime / 1000, "Y-M-D"), //开始学习时间 }; array.push(obj); }); @@ -2638,7 +2724,7 @@ export default { deptIds: [], //部门 groupName: state.valuestugroup, name: state.valuestun, - pageNo: 1, + pageNo: state.currentPageStu, pageSize: 10, projectId: state.projectId, topFlag: @@ -2646,19 +2732,12 @@ export default { ? 1 : state.valuegood == "普通学员" ? 0 - : null, + : state.valuegood == "全部" + ? "" + : "", }; //重新获取列表 getStu(obj); - // getProjStu(obj).then((res) => { - // console.log("搜索成功", res); - //重新获取列表 - // let leng = res.data.data.rows; - // if (leng > 0) { - // let arr = res.data.data.rows; - // getTableDataList(arr); - // } - // }); }; //勾选学员 const onSelectChange = (selectedRowKeys, selectedRows) => { @@ -2702,10 +2781,10 @@ export default { deptIds: [], //部门 groupName: "", name: "", - pageNo: 1, + pageNo: state.currentPageStu, pageSize: 10, projectId: state.projectId, - topFlag: 0, + topFlag: "", }; getProjStu(objf).then((res) => { console.log(res.data.data, "获取学员列表"); @@ -2770,7 +2849,7 @@ export default { const getGroup = (obj) => { let objf = obj || { name: "", - pageNo: 1, + pageNo: state.currentPageStu, pageSize: 10, projectId: state.projectId, }; @@ -2832,6 +2911,11 @@ export default { }; getGroup(obj); }; + //分页 + const changePaginationStu = (page) => { + state.currentPageStu = page; + getStu(); + }; //end---------学员------ onMounted(() => { getStu(); @@ -2909,6 +2993,10 @@ export default { createG, resetGroupName, searchGroup, + studentData, + cancelyou, + cancelcanyou, + changePaginationStu, }; }, }; From d08bd5e10e114ce55a8be051a9ef5680b63ca9cf Mon Sep 17 00:00:00 2001 From: Ggysh-7 <102372376+Ggysh-7@users.noreply.github.com> Date: Sun, 13 Nov 2022 14:56:16 +0800 Subject: [PATCH 28/90] =?UTF-8?q?feaet:=E6=8A=95=E7=A5=A8=E9=A2=98?= =?UTF-8?q?=E5=B9=B2=E5=88=A0=E9=99=A4=E3=80=81=E9=80=89=E9=A1=B9=E5=88=A0?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/CreVote.vue | 35 ++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/src/components/drawers/CreVote.vue b/src/components/drawers/CreVote.vue index cdcd309d..0158a5ed 100644 --- a/src/components/drawers/CreVote.vue +++ b/src/components/drawers/CreVote.vue @@ -36,7 +36,7 @@
-
+
删除题干
@@ -77,10 +77,18 @@ v-model:value="o.opvalue" style="width: 424px; height: 32px" /> -
+ + 上传图片
@@ -154,7 +162,11 @@ export default { }, ], }); - }; + }; + const delQue = (value,index)=>{ + console.log('gyd',value,index); + value.splice(value[index],1) + } const addOpt = (value) => { console.log(value); value.push({ @@ -163,10 +175,10 @@ export default { opvalue: "", }); }; - const delOpt = (value) => { - console.log('gys', value); - // delete value[0] - value.pop() + const delOpt = (value,index) => { + console.log('gys', value,index); + // delete value + value.splice(value[index],1) } const closeDrawer = () => { @@ -186,10 +198,10 @@ export default { // message.destroy(); // return message.info("请输入题干"); // } - // if (!state.questions.optins.opvalue) { - // message.destroy(); - // return message.info("请输入选项"); - // } + if (!state.questions.optins.opvalue) { + message.destroy(); + return message.info("请输入选项"); + } console.log("111111", state.questions); // console.log('22222',state.questions.inputV); // console.log('333333',state.questions.options); @@ -258,6 +270,7 @@ export default { afterVisibleChange, closeDrawer, addQue, + delQue, addOpt, delOpt, createQueTit, From 307e53dbf0d84cae7d94bf3312b5455e63387754 Mon Sep 17 00:00:00 2001 From: zhangyc Date: Sun, 13 Nov 2022 22:28:23 +0800 Subject: [PATCH 29/90] =?UTF-8?q?style:=E6=8A=95=E7=A5=A8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexEval.js | 15 +- src/components/drawers/AddEval.vue | 354 ++++------ src/components/drawers/AddInvist.vue | 305 +++------ src/components/drawers/AddLive.vue | 102 +-- src/components/drawers/CreVote.vue | 488 -------------- src/components/drawers/EvList.vue | 529 +++++++++++++++ src/components/{drawers => vote}/AddVote.vue | 259 ++++---- src/components/vote/CreateVote.vue | 652 +++++++++++++++++++ src/components/vote/VoteQuestion.vue | 454 +++++++++++++ src/components/vote/VoteQuestionItem.vue | 439 +++++++++++++ src/views/learningpath/LevelAddDetail.vue | 10 +- src/views/projectcenter/TaskAdd.vue | 210 +----- src/views/projectcenter/TaskPage.vue | 4 +- src/views/system/SystemManage.vue | 2 +- 14 files changed, 2462 insertions(+), 1361 deletions(-) delete mode 100644 src/components/drawers/CreVote.vue create mode 100644 src/components/drawers/EvList.vue rename src/components/{drawers => vote}/AddVote.vue (76%) create mode 100644 src/components/vote/CreateVote.vue create mode 100644 src/components/vote/VoteQuestion.vue create mode 100644 src/components/vote/VoteQuestionItem.vue diff --git a/src/api/indexEval.js b/src/api/indexEval.js index 01f7794f..692a416d 100644 --- a/src/api/indexEval.js +++ b/src/api/indexEval.js @@ -55,7 +55,12 @@ export const deleteEvaluationById = (obj) => http.post('/evaluation/deleteEvalua //根据ID获取测评信息详情 export const queryEvaluationDetailById = (obj) => - http.post("/evaluation/queryEvaluationDetailById", { params: obj }); + http.post("/evaluation/queryEvaluationDetailById", obj,{ + headers: { + 'token': '123', + 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', + } +}); //修改测评信息 export const updateEvaluation = (obj) => @@ -68,3 +73,11 @@ export const updateEvaluation = (obj) => // }).catch(err => { // console.log(err) // }) +//根据name获取测评信息详情 +export const getEvalListByName = (obj) => + http.post("/evaluation/queryEvaluationDetailById", obj,{ + headers: { + 'token': '123', + 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', + } +}); \ No newline at end of file diff --git a/src/components/drawers/AddEval.vue b/src/components/drawers/AddEval.vue index 2f3ea0c4..06daaada 100644 --- a/src/components/drawers/AddEval.vue +++ b/src/components/drawers/AddEval.vue @@ -9,8 +9,7 @@ >
-
编辑测评
-
添加测评
+
{{edit?'编辑':'添加'}}测评
选择测评:
- 选择测评 +
+
+
+
+
@@ -71,29 +75,11 @@
- 图片: + 测评说明:
- - avatar -
- - -
Upload
-
-
- 图片格式为JPG/PNG 图片大小不可超过1MB + +
@@ -109,30 +95,32 @@ - - \ No newline at end of file diff --git a/src/components/drawers/EvList.vue b/src/components/drawers/EvList.vue new file mode 100644 index 00000000..da3b6361 --- /dev/null +++ b/src/components/drawers/EvList.vue @@ -0,0 +1,529 @@ + + + \ No newline at end of file diff --git a/src/components/drawers/AddVote.vue b/src/components/vote/AddVote.vue similarity index 76% rename from src/components/drawers/AddVote.vue rename to src/components/vote/AddVote.vue index 57195b43..cac42791 100644 --- a/src/components/drawers/AddVote.vue +++ b/src/components/vote/AddVote.vue @@ -9,8 +9,7 @@ >
-
编辑投票
-
添加投票
+
添加投票任务
@@ -52,14 +51,14 @@ @@ -72,9 +71,9 @@
-
@@ -86,6 +85,7 @@
@@ -127,54 +127,33 @@ + diff --git a/src/components/vote/VoteQuestion.vue b/src/components/vote/VoteQuestion.vue new file mode 100644 index 00000000..d63e2b07 --- /dev/null +++ b/src/components/vote/VoteQuestion.vue @@ -0,0 +1,454 @@ + + + + diff --git a/src/components/vote/VoteQuestionItem.vue b/src/components/vote/VoteQuestionItem.vue new file mode 100644 index 00000000..97776f69 --- /dev/null +++ b/src/components/vote/VoteQuestionItem.vue @@ -0,0 +1,439 @@ + + + + diff --git a/src/views/learningpath/LevelAddDetail.vue b/src/views/learningpath/LevelAddDetail.vue index 5da3bc3b..e20b8b05 100644 --- a/src/views/learningpath/LevelAddDetail.vue +++ b/src/views/learningpath/LevelAddDetail.vue @@ -909,7 +909,7 @@ import AddDiscuss from "../../components/drawers/AddDiscuss.vue"; import AddActive from "../../components/drawers/AddActive.vue"; import AddEval from "../../components/drawers/AddEval.vue"; import AddInvist from "../../components/drawers/AddInvist.vue"; -import AddVote from "../../components/drawers/AddVote.vue"; +import AddVote from "../../components/vote/AddVote.vue"; import AddLive from "../../components/drawers/AddLive.vue"; import AddRef from "../../components/drawers/AddRef.vue"; import * as api from "../../api/indexLevel"; @@ -1241,15 +1241,15 @@ export default { }; //测试评估投票抽屉 const showDrawerAddEval = (id, eleId) => { - - state.addhomeworkvisible = true; + state.addevalVisible = true; state.EditEvalId = id; state.routerTaskId = eleId; }; const showDrawerAddInvist = (id, eleId) => { - state.addhomeworkvisible = true; - state.EditInvistId = id; + state.addinvistVisible = true; state.routerTaskId = eleId; + state.EditInvistId =id; + }; const showDrawerAddVote = (id, eleId) => { state.addhomeworkvisible = true; diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue index 360f5a35..fa2842b9 100644 --- a/src/views/projectcenter/TaskAdd.vue +++ b/src/views/projectcenter/TaskAdd.vue @@ -280,6 +280,7 @@ v-model:edit="edit" v-model:projectId="projectId" v-model:chooseStageId="chooseStageId" + v-model:projectTaskId="projectTaskId" v-model:EditEvalId="EditEvalId" />
@@ -301,6 +302,8 @@ v-model:edit="edit" v-model:projectId="projectId" v-model:chooseStageId="chooseStageId" + v-model:projectTaskId="projectTaskId" + v-model:EditInvistId = "EditInvistId" />
@@ -321,6 +324,8 @@ v-model:edit="edit" v-model:projectId="projectId" v-model:chooseStageId="chooseStageId" + v-model:projectTaskId="projectTaskId" + v-model:EditVoteId = "EditVoteId" />
@@ -837,22 +842,14 @@ import AddDiscuss from "../../components/drawers/AddDiscuss.vue"; import AddActive from "../../components/drawers/AddActive.vue"; import AddEval from "../../components/drawers/AddEval.vue"; import AddInvist from "../../components/drawers/AddInvist.vue"; -import AddVote from "../../components/drawers/AddVote.vue"; +import AddVote from "../../components/vote/AddVote.vue"; import { message } from "ant-design-vue"; import * as api from "../../api/indexTaskadd"; -import * as apilive from "../../api/indexLiveBroadcast"; -import * as apiExternal from "../../api/indexExternalChain"; -import * as apidiscuss from "../../api/indexDiscuss"; -import * as apiactivity from "../../api/indexActivity"; -import * as apieval from "../../api/indexEval"; -import * as apiinvist from "../../api/indexInvist"; -import * as apivote from "../../api/indexVote"; import * as apistage from "../../api/indexStage"; import * as apimove from "../../api/indexMovetask"; import draggable from "vuedraggable"; import { storage } from "../../api/storage"; -import { deleteExaminationById } from "@/api/indexExam"; -import { deleteWorkTask } from "@/api/indexWork"; + const drawercolumns = [ { @@ -928,6 +925,8 @@ export default { EditWorkId:null, // 要编辑的作业id EditTestId: null,// 要编辑的考试id EditEvalId:null, + EditInvistId:null, + EditVoteId:null, projectTaskId:null, // 要编辑的具体任务id projectNameList: [ { @@ -1352,13 +1351,7 @@ export default { }); }; - //获取阶段 - // const getStage = () =>{ - // let obj = { - // projectId:state.projectId - // } - // } //获取删除id(投票) const changeVData = (data) => { @@ -1370,150 +1363,7 @@ export default { console.log("添加数据", data); getTask(data); }; - // 删除考试 - const deleteTest = () => { - let obj = { - examinationId: state.deleteID, - }; - deleteExaminationById(obj) - .then((res) => { - console.log("删除成功", res); - message.success("删除成功"); - //重新获取列表 - getTask(); - }) - .catch((err) => { - console.log(err); - }); - }; - - // 删除作业 - const deleteWork = () => { - let obj = { - workId: state.deleteID, - }; - deleteWorkTask(obj) - .then((res) => { - console.log("删除成功", res); - message.success("删除成功"); - //重新获取列表 - getTask(); - }) - .catch((err) => { - console.log(err); - }); - }; - - //删除直播 - const deleteLiveBroadcast = () => { - let obj = { - liveId: state.deleteLiveID, - }; - apilive - .deleteLiveBroadcast(obj) - .then((res) => { - console.log("删除成功", res); - message.success("删除成功"); - //重新获取列表 - getTask(); - }) - .catch((err) => { - console.log(err); - }); - }; - - //删除外链 - const deleteExternalChain = () => { - let obj = { - linkId: state.deleteExternalID, - // linkId: 11, - }; - apiExternal - .deleteLink(obj) - .then((res) => { - console.log(res); - //重新获取列表 - getTask(); - }) - .catch((err) => { - console.log(err); - }); - }; - //删除讨论 - const deleteDiscuss = () => { - let obj = { - discussId: state.deleteDiscussID, - }; - apidiscuss - .deleteDiscuss(obj) - .then((res) => { - console.log("删除成功", res); - message.success("删除成功"); - state.deleteModal = false; - //重新获取列表 - getTask(); - }) - .catch((err) => { - console.log("删除失败", err); - }); - }; - //删除活动 - const deleteActivity = () => { - let obj = { - activityId: state.deleteActivityID, - }; - apiactivity - .deleteActivity(obj) - .then((res) => { - console.log("删除成功", res); - message.success("删除成功"); - state.deleteModal = false; - //重新获取列表 - getTask(); - }) - .catch((err) => { - console.log("删除失败", err); - }); - }; - - //删除测评测试 - const deleteEvalText = () => { - let obj = { - evaluationId: "", - token: 123, - }; - apieval - .deleteEvaluationById(obj) - .then((res) => { - console.log("删除成功", res); - message.success("删除成功"); - //重新获取列表 - getTask(); - }) - .catch((err) => { - console.log("删除失败", err); - }); - }; - - //删除评估测试 - const deleteInvistText = () => { - let obj = { - 评估信息Id: "", - token: "", - }; - apiinvist - .deleteAppraise(obj) - .then((res) => { - console.log("删除成功", res); - message.success("删除成功"); - //重新获取列表 - getTask(); - }) - .catch((err) => { - console.log("删除失败", err); - }); - }; - + //删除任务 const deleteTask = () => { let obj = { projectTaskIds: state.deleteID }; @@ -1528,25 +1378,6 @@ export default { }); }; - //删除投票信息 - const deleteVoteText = () => { - let obj = { - voteId: state.voteId, - }; - apivote - .deleteVoteMessage(obj) - .then((res) => { - console.log("删除成功", res); - message.success("删除成功"); - //重新获取列表 - getTask(); - }) - .catch((err) => { - console.log("删除失败", err); - }); - }; - - const showChangeModal = () => { state.visiblene = true; }; @@ -1678,14 +1509,19 @@ export default { state.projectTaskId = eleId; console.log("active=======",id); }; - const showDrawerAddEval = () => { + const showDrawerAddEval = (id, eleId) => { state.addevalvisible = true; + state.evaluationId = id; + state.projectTaskId = eleId; }; - const showDrawerAddInvist = () => { + const showDrawerAddInvist = (id, eleId) => { state.addinvistvisible = true; + state.projectTaskId = eleId; }; - const showDrawerAddVote = () => { + const showDrawerAddVote = (id, eleId) => { state.addvotevisible = true; + state.EditVoteId = id; + state.projectTaskId = eleId; }; const showConfirm = () => { state.confirmModal = true; @@ -1840,14 +1676,6 @@ export default { closeChangeModal, changebgc, getTask, - deleteLiveBroadcast, - deleteDiscuss, - - deleteEvalText, - deleteExternalChain, - deleteActivity, - deleteVoteText, - deleteInvistText, getTableData, deleteTask, editStage, @@ -1859,8 +1687,6 @@ export default { getStageData, moveTask, deleteTaskAll, - deleteTest, - deleteWork, decideType, diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index b1f03ad5..2b331d6f 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -425,7 +425,7 @@
- +
diff --git a/src/views/system/SystemManage.vue b/src/views/system/SystemManage.vue index 1c024efb..8b9ad42a 100644 --- a/src/views/system/SystemManage.vue +++ b/src/views/system/SystemManage.vue @@ -92,7 +92,7 @@ - diff --git a/src/components/drawers/StuAdd.vue b/src/components/drawers/StuAdd.vue index 735d851f..89507bf4 100644 --- a/src/components/drawers/StuAdd.vue +++ b/src/components/drawers/StuAdd.vue @@ -3,7 +3,7 @@ :visible="Stuvisible" class="drawerStyle stuadd" placement="right" - width="70%" + width="85%" @after-visible-change="afterVisibleChange" >
@@ -67,23 +67,28 @@
-->
- BOE组织树
+ + - +
-
+
@@ -155,53 +163,34 @@
-->
- BOE组织树
+ + - -
- - +
@@ -211,7 +200,7 @@ >
-
+
-
姓名:
+
受众名称:
-
-
-
-
- +
+
+
+ +
+
搜索
-
搜索
-
-
-
- +
+
+ +
+
重置
-
重置
+ -
+
-
+
@@ -300,27 +291,190 @@
已选
-
6
-
+
-
+
全部清除
快速选人
-
- -
- {{ item.name }} -
+
+
+
+ +
+
{{ item.name }}
+
+
+
+
+
+
+ 查看更多 + +
+
+
+
收起
添加组织
+
+
+
+ +
+
{{ item.value }}
+
+
+
+
+
+
+ 查看更多 + +
+
+
+
收起
+
+
受众关联
+
+
+
+ +
+
{{ item.name }}
+
+
+
+
+
+
+ 查看更多 + +
+
+
+
收起
+
+
@@ -328,11 +482,44 @@
+ + + +
+
+
+
+
+ 提示 +
+
+
+ 您确定要添加此组织吗 +
+
+
+
取消
+
+
+
确定
+
+
+
+
+
+ + diff --git a/src/components/drawers/CreVote.vue b/src/components/drawers/CreVote.vue new file mode 100644 index 00000000..eb05cc62 --- /dev/null +++ b/src/components/drawers/CreVote.vue @@ -0,0 +1,509 @@ + + + + \ No newline at end of file diff --git a/src/views/learningpath/LevelAddDetail.vue b/src/views/learningpath/LevelAddDetail.vue index e20b8b05..d3cc68ef 100644 --- a/src/views/learningpath/LevelAddDetail.vue +++ b/src/views/learningpath/LevelAddDetail.vue @@ -909,7 +909,7 @@ import AddDiscuss from "../../components/drawers/AddDiscuss.vue"; import AddActive from "../../components/drawers/AddActive.vue"; import AddEval from "../../components/drawers/AddEval.vue"; import AddInvist from "../../components/drawers/AddInvist.vue"; -import AddVote from "../../components/vote/AddVote.vue"; +import AddVote from "../../components/drawers/AddVote.vue"; import AddLive from "../../components/drawers/AddLive.vue"; import AddRef from "../../components/drawers/AddRef.vue"; import * as api from "../../api/indexLevel"; diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue index fa2842b9..293616e0 100644 --- a/src/views/projectcenter/TaskAdd.vue +++ b/src/views/projectcenter/TaskAdd.vue @@ -842,7 +842,7 @@ import AddDiscuss from "../../components/drawers/AddDiscuss.vue"; import AddActive from "../../components/drawers/AddActive.vue"; import AddEval from "../../components/drawers/AddEval.vue"; import AddInvist from "../../components/drawers/AddInvist.vue"; -import AddVote from "../../components/vote/AddVote.vue"; +import AddVote from "../../components/drawers/AddVote.vue"; import { message } from "ant-design-vue"; import * as api from "../../api/indexTaskadd"; import * as apistage from "../../api/indexStage"; diff --git a/src/views/system/SystemManage.vue b/src/views/system/SystemManage.vue index 8b9ad42a..1c024efb 100644 --- a/src/views/system/SystemManage.vue +++ b/src/views/system/SystemManage.vue @@ -92,7 +92,7 @@ + + + \ No newline at end of file diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue index 8948c276..b0cef46f 100644 --- a/src/views/learningpath/LevelAdd.vue +++ b/src/views/learningpath/LevelAdd.vue @@ -749,7 +749,7 @@ - {{item.name}} + {{item.name}} 删除
@@ -915,7 +915,7 @@
- + @@ -945,7 +945,7 @@ + diff --git a/src/components/drawers/CorPowerlist.vue b/src/components/drawers/CorPowerlist.vue index e972af16..5f442929 100644 --- a/src/components/drawers/CorPowerlist.vue +++ b/src/components/drawers/CorPowerlist.vue @@ -8,135 +8,126 @@ @after-visible-change="afterVisibleChange" >
-
-
授权名单
- +
授权名单
+ +
+
+ + +
+
-
-
-
-
-
姓名:
-
- -
-
-
-
-
- -
搜索
-
-
- -
重置
-
-
-
- -
- - - -
-
- -
-
+ +
+
+
-
- - + +
+ + +
+
+
+
+
+ 提示 +
+
+
+ 您确定要取消该用户的授权吗 +
+
+
+
取消
+
+
+
确定
+
+
+
+ +
+
+ + +
+
+ + diff --git a/src/components/drawers/CourseView.vue b/src/components/drawers/CourseView.vue new file mode 100644 index 00000000..198d192a --- /dev/null +++ b/src/components/drawers/CourseView.vue @@ -0,0 +1,2157 @@ + + + + + diff --git a/src/components/drawers/OwnPower.vue b/src/components/drawers/OwnPower.vue index f2de47ca..e52e83a2 100644 --- a/src/components/drawers/OwnPower.vue +++ b/src/components/drawers/OwnPower.vue @@ -3,10 +3,10 @@ :visible="ownpowervisible" class="drawerStyle ownpower" placement="right" - width="60%" + width="85%" @after-visible-change="afterVisibleChange" > -
+
归属权
-
-
-
姓名:
- -
-
-
-
- -
-
搜索
+
+
+
+
姓名:
+
-
-
- +
+
+
+ +
+
搜索
+
+
+
+ +
+
重置
-
重置
-
- -
- -
-
- -
-
-
- - -
-
-
选择组织:
-
- +
+
BOE组织树
+ + - + +
-
-
-
姓名:
- -
-
- -
-
-
-
- -
-
搜索
-
-
-
- -
-
重置
-
-
-
- -
+
+
- -
-
+ +
+
-
选择受众:
-
- +
组织:
+ +
+
+
+
+ +
+
搜索
+
+
+
+ +
+
重置
+
+
+ +
+
+
BOE组织树
+ + + + +
+ 确认添加 +
+
+
+ + +
+
+
+ +
+
+
受众名称:
+ +
+
+
+
+ +
+
搜索
+
+
+
+ +
+
重置
-
-
姓名:
- -
-
-
-
-
- -
-
搜索
-
-
-
- -
-
重置
-
-
- -
- -
-
+
+ +
@@ -263,38 +291,197 @@
已选
-
6
-
+
-
+
全部清除
-
-
- 李明 -
+
+
快速选人
+
+
+
+ +
+
{{ item.name }}
+
+
+
-
- 李大明 -
+
+
+ 查看更多 + +
-
- 李二明 -
+
+
+ 收起 + +
-
- 李明 -
+
+
+
添加组织
+
+
+
+ +
+
{{ item.value }}
+
+
+
-
- 李大明 -
+
+
+ 查看更多 + +
-
- 李二明 -
+
+
+ 收起 + +
+
+
+
+
受众关联
+
+
+
+ +
+
{{ item.name }}
+
+
+
+
+
+
+ 查看更多 + +
+
+
+
+ 收起 + +
@@ -304,11 +491,45 @@
+ + + +
+
+
+
+
+ 提示 +
+
+
+ 您确定要添加此组织吗 +
+
+
+
取消
+
+
+
确定
+
+
+
+
+
+ diff --git a/src/components/drawers/ProjManagePower.vue b/src/components/drawers/ProjManagePower.vue index 949ad4e5..47921661 100644 --- a/src/components/drawers/ProjManagePower.vue +++ b/src/components/drawers/ProjManagePower.vue @@ -4,11 +4,11 @@ :visible="ProjManagevisible" class="drawerStyle ProjManageship" placement="right" - width="60%" + width="85%" @after-visible-change="afterVisibleChange" > -
-
+
+
管理权
-
-
-
姓名:
- -
-
-
-
- -
-
搜索
+
+
+
+
姓名:
+
-
-
- +
+
+
+ +
+
搜索
+
+
+
+ +
+
重置
-
重置
-
- -
- -
-
- -
-
-
- - -
-
-
选择组织:
-
- +
+
BOE组织树
+ + - + +
-
-
-
姓名:
- -
-
- -
-
-
-
- -
-
搜索
-
-
-
- -
-
重置
-
-
-
- -
+
+
- -
-
+ +
+
-
选择受众:
-
- +
组织:
+ +
+
+
+
+ +
+
搜索
+
+
+
+ +
+
重置
+
+
+ +
+
+
BOE组织树
+ + + + +
+ 确认添加 +
+
+
+ + +
+
+
+ +
+
+
受众名称:
+ +
+
+
+
+ +
+
搜索
+
+
+
+ +
+
重置
-
-
姓名:
- -
-
-
-
-
- -
-
搜索
-
-
-
- -
-
重置
-
-
- -
- -
-
+
+ +
@@ -264,38 +292,197 @@
已选
-
6
-
+
-
+
全部清除
-
-
- 李明 -
+
+
快速选人
+
+
+
+ +
+
{{ item.name }}
+
+
+
-
- 李大明 -
+
+
+ 查看更多 + +
-
- 李二明 -
+
+
+ 收起 + +
-
- 李明 -
+
+
+
添加组织
+
+
+
+ +
+
{{ item.value }}
+
+
+
-
- 李大明 -
+
+
+ 查看更多 + +
-
- 李二明 -
+
+
+ 收起 + +
+
+
+
+
受众关联
+
+
+
+ +
+
{{ item.name }}
+
+
+
+
+
+
+ 查看更多 + +
+
+
+
+ 收起 + +
@@ -305,11 +492,45 @@
+ + + +
+
+
+
+
+ 提示 +
+
+
+ 您确定要添加此组织吗 +
+
+
+
取消
+
+
+
确定
+
+
+
+
+
+ \ No newline at end of file diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 2e46199b..4887d1a8 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -1673,6 +1673,13 @@ + + + + + + +
\ No newline at end of file + \ No newline at end of file diff --git a/src/components/drawers/AddDiscuss.vue b/src/components/drawers/AddDiscuss.vue index b2166686..357bd86f 100644 --- a/src/components/drawers/AddDiscuss.vue +++ b/src/components/drawers/AddDiscuss.vue @@ -300,6 +300,7 @@ export default { .main_item { display: flex; align-items: center; + margin-top: 32px; margin-bottom: 32px; .signbox { width: 120px; diff --git a/src/components/drawers/AddEval.vue b/src/components/drawers/AddEval.vue index 06daaada..9221e473 100644 --- a/src/components/drawers/AddEval.vue +++ b/src/components/drawers/AddEval.vue @@ -322,6 +322,7 @@ export default { .main_item { display: flex; align-items: center; + margin-top: 32px; margin-bottom: 32px; .signbox { width: 120px; diff --git a/src/components/drawers/AddFaceteach.vue b/src/components/drawers/AddFaceteach.vue index cd42ca90..e8687d52 100644 --- a/src/components/drawers/AddFaceteach.vue +++ b/src/components/drawers/AddFaceteach.vue @@ -400,99 +400,116 @@ export default { .main_item { display: flex; align-items: center; - margin-bottom: 32px; - .signbox { - width: 120px; - display: flex; - justify-content: end; - align-items: center; - .sign { - margin-right: 5px; - } - } - .btnbox { - display: flex; - flex: 1; - align-items: center; - .xkbtn { - cursor: pointer; - width: 130px; - height: 40px; - background: #388be1; - border-radius: 8px; - border: 0; - margin-right: 8px; - color: #fff; - } - } - } - .main_item2 { - display: flex; - align-items: flex-start; - margin-bottom: 32px; - .signbox { - width: 120px; - display: flex; - justify-content: end; - align-items: center; - } - .kqszbox { - .qdqtbox { - margin-left: 5px; - cursor: pointer; - } - .qdbtn, - .qtbtn { - width: 75px; - height: 24px; - background: rgba(56, 139, 225, 0.16); - border-radius: 2px; - border: 1px solid #387df7; + margin-top: 32px; + margin-bottom: 32px; + + .signbox { + width: 120px; display: flex; + justify-content: end; align-items: center; - justify-content: center; - .btntext { - color: #387df7; + + .sign { + margin-right: 5px; } } - .setbox { + + .btnbox { display: flex; - flex-wrap: wrap; - margin-top: 10px; - margin-bottom: 24px; - .timerbox { - margin-top: 6px; - margin-right: 32px; + flex: 1; + align-items: center; + + .xkbtn { + cursor: pointer; + width: 130px; + height: 40px; + background: #388be1; + border-radius: 8px; + border: 0; + margin-right: 8px; + color: #fff; + } + } + } + + .main_item2 { + display: flex; + align-items: flex-start; + margin-bottom: 32px; + + .signbox { + width: 120px; + display: flex; + justify-content: end; + align-items: center; + } + + .kqszbox { + .qdqtbox { + margin-left: 5px; + cursor: pointer; + } + + .qdbtn, + .qtbtn { + width: 75px; + height: 24px; + background: rgba(56, 139, 225, 0.16); + border-radius: 2px; + border: 1px solid #387df7; display: flex; align-items: center; - flex-wrap: nowrap; + justify-content: center; + + .btntext { + color: #387df7; + } + } + + .setbox { + display: flex; + flex-wrap: wrap; + margin-top: 10px; + margin-bottom: 24px; + + .timerbox { + margin-top: 6px; + margin-right: 32px; + display: flex; + align-items: center; + flex-wrap: nowrap; + } + } + } + + .btnbox2 { + display: flex; + flex-direction: column; + justify-content: flex-start; + + .xkbtn { + cursor: pointer; + width: 130px; + height: 40px; + background: #388be1; + border-radius: 8px; + border: 0; + margin-right: 16px 8px 32px 0; + color: #fff; + margin-top: 16px; + margin-bottom: 60px; } } } - .btnbox2 { - display: flex; - flex-direction: column; - justify-content: flex-start; - .xkbtn { - cursor: pointer; - width: 130px; - height: 40px; - background: #388be1; - border-radius: 8px; - border: 0; - margin-right: 16px 8px 32px 0; - color: #fff; - margin-top: 16px; - margin-bottom: 60px; - } } - } - } - .main_right { - width: 337px; - .main_item { - display: flex; - align-items: center; + + .main_right { + width: 337px; + + .main_item { + display: flex; + align-items: center; + margin-top: 32px; margin-bottom: 32px; .signbox { width: 120px; diff --git a/src/components/drawers/AddHomework.vue b/src/components/drawers/AddHomework.vue index c3c75f15..71990ad7 100644 --- a/src/components/drawers/AddHomework.vue +++ b/src/components/drawers/AddHomework.vue @@ -488,6 +488,7 @@ export default { .main_item { display: flex; align-items: center; + margin-top: 32px; margin-bottom: 32px; .signbox { diff --git a/src/components/drawers/AddInvist.vue b/src/components/drawers/AddInvist.vue index dc7e3929..9d64ac8b 100644 --- a/src/components/drawers/AddInvist.vue +++ b/src/components/drawers/AddInvist.vue @@ -333,6 +333,7 @@ export default { .main_item { display: flex; align-items: center; + margin-top: 32px; margin-bottom: 32px; .fi_input { margin-right: 20px; diff --git a/src/components/drawers/AddLive.vue b/src/components/drawers/AddLive.vue index 43904a80..22c24f58 100644 --- a/src/components/drawers/AddLive.vue +++ b/src/components/drawers/AddLive.vue @@ -701,6 +701,7 @@ export default { .main_item { display: flex; align-items: center; + margin-top: 32px; margin-bottom: 32px; .signbox { width: 120px; diff --git a/src/components/drawers/AddOnline.vue b/src/components/drawers/AddOnline.vue index ec1fa777..34b6b274 100644 --- a/src/components/drawers/AddOnline.vue +++ b/src/components/drawers/AddOnline.vue @@ -49,7 +49,7 @@
搜索
-
+
重置
@@ -241,7 +241,7 @@ export default { const handelChangePage = (page, pageSize) => { state.currentPage = page; state.pageSize = pageSize; - getAllInvistText(); + getAllOnlineText(); }; const getTableDate = (tableData) => { let data = tableData; @@ -260,7 +260,7 @@ export default { state.tableData = array; }; //获取全部在线信息接口 - const getAllInvistText = () => { + const getAllOnlineText = () => { api .queryAssessmentDetailList({ assessmentName: "", @@ -323,13 +323,13 @@ export default { } } //重置在线信息 - const resetInvist = () => { + const resetOnline = () => { state.inputV1 = ""; - getAllInvistText(); + getAllOnlineText(); }; onMounted(() => { - // createInvist(); - getAllInvistText(); + // createOnline(); + getAllOnlineText(); }); return { ...toRefs(state), @@ -338,9 +338,10 @@ export default { tableDataFunc, rowSelection, handelChangePage, + getAllOnlineText, getTableDate, updateTask, - resetInvist, + resetOnline, }; }, }; @@ -371,6 +372,7 @@ export default { .main_items { display: flex; justify-content: space-between; + margin-top: 32px; margin-bottom: 12px; flex-wrap: wrap; .mi_ipts { diff --git a/src/components/drawers/AddTest.vue b/src/components/drawers/AddTest.vue index a56544a7..536a3db6 100644 --- a/src/components/drawers/AddTest.vue +++ b/src/components/drawers/AddTest.vue @@ -200,7 +200,7 @@
- - diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index 6a7c4608..cd27de75 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -419,23 +419,7 @@
二维码
@@ -1373,6 +1357,7 @@
+ + + + +
+ diff --git a/src/components/drawers/AddActive.vue b/src/components/drawers/AddActive.vue index fb0719f1..0a265904 100644 --- a/src/components/drawers/AddActive.vue +++ b/src/components/drawers/AddActive.vue @@ -503,6 +503,7 @@ export default { border-radius: 8px; } .main_left { + margin-top:32px; padding-right: 30px; flex: 1; border-right: 1px solid #e8e8e8; diff --git a/src/components/drawers/AddCase.vue b/src/components/drawers/AddCase.vue index 93ad2825..86b9849b 100644 --- a/src/components/drawers/AddCase.vue +++ b/src/components/drawers/AddCase.vue @@ -227,6 +227,7 @@ } .contentMain { .main_items { + margin-top:32px; display: flex; justify-content: space-between; margin-bottom: 12px; diff --git a/src/components/drawers/AddDiscuss.vue b/src/components/drawers/AddDiscuss.vue index b2166686..e30307f1 100644 --- a/src/components/drawers/AddDiscuss.vue +++ b/src/components/drawers/AddDiscuss.vue @@ -294,6 +294,7 @@ export default { display: flex; justify-content: space-between; .main_left { + margin-top:32px; padding-right: 30px; flex: 1; border-right: 1px solid #e8e8e8; diff --git a/src/components/drawers/AddEval.vue b/src/components/drawers/AddEval.vue index 06daaada..3f894f99 100644 --- a/src/components/drawers/AddEval.vue +++ b/src/components/drawers/AddEval.vue @@ -316,6 +316,7 @@ export default { display: flex; justify-content: space-between; .main_left { + margin-top:32px; padding-right: 30px; flex: 1; border-right: 1px solid #e8e8e8; diff --git a/src/components/drawers/AddHomework.vue b/src/components/drawers/AddHomework.vue index c3c75f15..dbc751ac 100644 --- a/src/components/drawers/AddHomework.vue +++ b/src/components/drawers/AddHomework.vue @@ -245,7 +245,7 @@ export default { // }; const handleFinish = (values) => { console.log(values); - updateWork(props.workId); + updteHomeWork(); }; const handleFinishFailed = (errors) => { @@ -288,77 +288,40 @@ export default { console.log("state", bool); }; - const updateWork = () => { - state.addLoading = true; - if (props.edit) { - // 编辑任务 - myUpdateWorkTaskUsing(); - } else { - // 创建任务 - console.log("创建任务***************"); - myCreateWorkTask(); - } - }; + // 新增任务 - const myCreateWorkTask = () => { + const updteHomeWork = () => { let obj = { - createTime: "", - createUser: 0, submitEndTime: dayjs(formState.choosedTime[1]).format("YYYY-MM-DD"), submitStartTime: dayjs(formState.choosedTime[0]).format("YYYY-MM-DD"), - updateTime: "", - updateUser: 0, workEnclosureAddress: "", - workFlag: "", - workId: 0, + workId: props.edit?props.EditWorkId:0, workName: formState.workName, workRequirement: formState.workRequirement, - workTag: "", }; - createWorkTask(obj) + if(props.edit){ + updateWorkTaskUsing(obj) .then((res) => { - if (props.isLevel) { - // 如果是关卡页面进入 --------------------------------- - myRouterEditTask(res.data.data.workId); - } else { - myProjectEditTask(res.data.data.workId); - } + updateTask(res); + closeDrawer(); }) .catch((err) => { message.error(`添加失败${err}`); }); - }; - // 编辑任务 - const myUpdateWorkTaskUsing = () => { - let editObj = { - createTime: "", - createUser: 0, - submitEndTime: dayjs(formState.choosedTime[1]).format("YYYY-MM-DD"), - submitStartTime: dayjs(formState.choosedTime[0]).format("YYYY-MM-DD"), - updateTime: "", - updateUser: 0, - workEnclosureAddress: "", - workFlag: "", - workId: props.EditWorkId, - workName: formState.workName, - workRequirement: formState.workRequirement, - workTag: "", - }; - updateWorkTaskUsing(editObj) + }else{ + createWorkTask(obj) .then((res) => { - console.log(res); - if (props.isLevel) { - // 如果是关卡页面进入 --------------------------------- - myRouterEditTask(res.data.data.workId); - } else { - myProjectEditTask(res.data.data.workId); - } + updateTask(res); + closeDrawer(); }) .catch((err) => { - message.error(`编辑失败${err}`); + message.error(`添加失败${err}`); }); + } + }; + // 查询任务 const queryWork = () => { state.addLoading = true; @@ -381,57 +344,49 @@ export default { }); }; // 新增编辑或新增项目任务 - const myProjectEditTask = (workId) => { - let editObj = { - courseId: workId, - duration: 60, - flag: true, - name: formState.workName, - projectId: props.projectId, - projectTaskId: props.projectTaskId || 0, - stageId: props.chooseStageId, - type: 4, - }; - ProjectEditTask(editObj) - .then((res) => { - console.log(` 编辑项目成功的打印 ${res}`); - message.success(`${props.edit ? "编辑" : "新增"}阶段任务成功`); - ctx.emit("changeData", false); - state.addLoading = false; - closeDrawer(); - }) - .catch((err) => { - message.error(`${props.edit ? "编辑" : "新增"}阶段任务失败`); - console.log(` 编辑项目失败的打印 ${err}`); - }); - }; - // 新增编辑或新增关卡任务 - const myRouterEditTask = (testId) => { - let editObj1 = { + const updateTask = (res) => { + if(props.isLevel){ + let editObj1 = { chapterId: props.isactive, - courseId: testId, - duration: 30, - flag: true, - name: formState.workName, + courseId: res.data.data.workId, + name: res.data.data.workName, routerId: props.routerId, routerTaskId: props.routerTaskId || 0, type: 4, }; RouterEditTask(editObj1) - .then((res) => { - console.log(` 编辑关卡成功的打印 ${res}`); + .then(() => { message.success(`${props.edit ? "编辑" : "新增"}关卡任务成功`); ctx.emit("changeData", false); state.addLoading = false; - closeDrawer(); }) - .catch((err) => { + .catch(() => { message.error(`${props.edit ? "编辑" : "新增"}关卡任务失败`); - console.log(` 编辑关卡失败的打印 ${err}`); }); + }else{ + let editObj = { + courseId: res.data.data.workId, + name:res.data.data.workName, + projectId: props.edit?props.projectId:0, + projectTaskId: props.projectTaskId || 0, + stageId: props.chooseStageId, + type: 4, + }; + ProjectEditTask(editObj) + .then(() => { + message.success(`${props.edit ? "编辑" : "新增"}阶段任务成功`); + ctx.emit("changeData", false); + state.addLoading = false; + }) + .catch(() => { + message.error(`${props.edit ? "编辑" : "新增"}阶段任务失败`); + }); + } + }; + return { afterVisibleChange, closeDrawer, @@ -446,7 +401,6 @@ export default { formRef, // layout, rules, - updateWork, ...toRefs(state), }; }, @@ -484,6 +438,7 @@ export default { padding-right: 30px; flex: 1; border-right: 1px solid #e8e8e8; + margin-top:32px; .main_item { display: flex; diff --git a/src/components/drawers/AddInvist.vue b/src/components/drawers/AddInvist.vue index dc7e3929..31374fc8 100644 --- a/src/components/drawers/AddInvist.vue +++ b/src/components/drawers/AddInvist.vue @@ -18,51 +18,38 @@ />
+
+
+
+
+
+ 已选择 0 +
+
+ 已选择 1 条; + 名称: {{assessment.name}} + 题数: {{assessment.num}} + 创建人: {{assessment.creator}} + 创建时间: {{assessment.time}} +
+
+ +
- -
-
+ +
-
搜索
+
选择评估
+
+
-
- -
重置
-
-
-
- - -
-
+
@@ -70,19 +57,21 @@
+
+
diff --git a/src/views/learningpath/LevelAddDetail.vue b/src/views/learningpath/LevelAddDetail.vue index aea37d17..47e89683 100644 --- a/src/views/learningpath/LevelAddDetail.vue +++ b/src/views/learningpath/LevelAddDetail.vue @@ -908,7 +908,7 @@ import AddDiscuss from "../../components/drawers/AddDiscuss.vue"; import AddActive from "../../components/drawers/AddActive.vue"; import AddEval from "../../components/drawers/AddEval.vue"; import AddInvist from "../../components/drawers/AddInvist.vue"; -import AddVote from "../../components/drawers/AddVote.vue"; +import AddVote from "../../components/vote/AddVote.vue"; import AddLive from "../../components/drawers/AddLive.vue"; import AddRef from "../../components/drawers/AddRef.vue"; import * as api from "../../api/indexLevel"; diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue index bfa79cc6..2ed5f715 100644 --- a/src/views/projectcenter/TaskAdd.vue +++ b/src/views/projectcenter/TaskAdd.vue @@ -877,10 +877,10 @@ import AddTest from "../../components/drawers/AddTest.vue"; import AddLive from "../../components/drawers/AddLive.vue"; import AddRef from "../../components/drawers/AddRef.vue"; import AddDiscuss from "../../components/drawers/AddDiscuss.vue"; -import AddActive from "../../components/drawers/AddActive.vue"; +import AddActive from "../../components/drawers/AddActive.vue";s import AddEval from "../../components/drawers/AddEval.vue"; import AddInvist from "../../components/drawers/AddInvist.vue"; -import AddVote from "../../components/drawers/AddVote.vue"; +import AddVote from "../../components/vote/AddVote.vue"; import { message } from "ant-design-vue"; import * as api from "../../api/indexTaskadd"; import * as apistage from "../../api/indexStage"; diff --git a/src/views/system/SystemManage.vue b/src/views/system/SystemManage.vue index 215b48f6..6c7271f8 100644 --- a/src/views/system/SystemManage.vue +++ b/src/views/system/SystemManage.vue @@ -98,7 +98,7 @@ diff --git a/src/views/projectcenter/ProjectAdd.vue b/src/views/projectcenter/ProjectAdd.vue index 9d48e5f9..deb832c8 100644 --- a/src/views/projectcenter/ProjectAdd.vue +++ b/src/views/projectcenter/ProjectAdd.vue @@ -28,6 +28,7 @@ placeholder="请输入项目名称" show-count :maxlength="30" + :disabled="viewDetail ? true : false" />
@@ -53,6 +54,7 @@ @change="classificationChange" allowClear showSearch + :disabled="viewDetail ? true : false" >
@@ -86,6 +88,7 @@ action="/api/file/upload" :before-upload="beforeUpload" @change="handleChange" + :disabled="viewDetail ? true : false" >
@@ -150,6 +154,7 @@ @change="classificationChange1" allowClear showSearch + :disabled="viewDetail ? true : false" >
@@ -174,6 +179,7 @@ placeholder="自动带出 可修改" :options="classifyList2" @change="classificationChange2" + :disabled="viewDetail ? true : false" />
@@ -188,6 +194,7 @@ placeholder="请输入说明" show-count :maxlength="200" + :disabled="viewDetail ? true : false" />
@@ -196,7 +203,10 @@
同步学习记录
-
@@ -249,6 +260,7 @@ :options="classifyList4" @change="classificationChange4" placeholder="集团级/组织级/现地级/部门级" + :disabled="viewDetail ? true : false" />
@@ -261,7 +273,10 @@
是否BOEU实施
- 您确定要复制此路径吗
-
+
取消
-
+
确定
@@ -1093,6 +1093,7 @@ export default { finishProjectId: null, //结束的项目id deleteProjectId: null, //删除的项目id templateProjectId: null, //存为模版的项目id + copyProjectId: null, //复制项目id }); // 数据接入 - start - const router = useRouter(); @@ -1922,6 +1923,34 @@ export default { const closeStartModal = () => { state.startModal = false; }; + //打开确认复制弹窗 + const showCopyModal = (projectId) => { + state.copyModal = true; + state.copyProjectId = projectId; + }; + //关闭确认复制弹窗 + const closeCopyModal = () => { + state.copyModal = false; + }; + //确认复制 + const copyProject = () => { + let obj = { + projectId: state.copyProjectId, + type: 2, + }; + api + .handleProject(obj) + .then((res) => { + console.log("复制成功", res); + message.destroy(); + message.success("复制成功"); + state.copyModal = false; + getTableDate(); + }) + .catch((err) => { + console.log("复制失败", err); + }); + }; // 数据接入 - end - @@ -2119,7 +2148,7 @@ export default {
{ - showCopyModal(); + showCopyModal(value.record.projectId); }} > 复制 @@ -2190,7 +2219,7 @@ export default { { - // showCopyModal(); + // showCopyModal(value.record.projectId); // }} > @@ -2217,7 +2246,7 @@ export default {
{ - showCopyModal(); + showCopyModal(value.record.projectId); }} > 复制 @@ -2279,7 +2308,7 @@ export default { { - // showCopyModal(); + // showCopyModal(value.record.projectId); // }} >
@@ -2305,7 +2334,7 @@ export default {
{ - showCopyModal(); + showCopyModal(value.record.projectId); }} > 复制 @@ -2420,7 +2449,7 @@ export default {
{ - showCopyModal(); + showCopyModal(value.record.projectId); }} > 复制 @@ -2502,7 +2531,7 @@ export default {
{ - showCopyModal(); + showCopyModal(value.record.projectId); }} > 复制 @@ -2572,7 +2601,7 @@ export default {
{ - showCopyModal(); + showCopyModal(value.record.projectId); }} > 复制 @@ -2640,7 +2669,52 @@ export default { 编辑 ) : ( - + { + console.log("单层子项目的编辑"); + console.log(value); + + { + /* 判断是班级\单层项目\单层子项目 */ + } + if (value.record.parentId == "0") { + router.push({ + path: "/projectadd", + query: { + projectId: value.record.projectId, + name: value.record.name, + viewDetail:1, + }, + }); + } else { + if (value.record.isbj) { + router.push({ + path: "/classadd", + query: { + projectId: value.record.projectId, + name: value.record.paraentName, + edit: 0, + viewDetail:1, + }, + }); + } else { + router.push({ + path: "/sonproject", + query: { + projectId: value.record.projectId, + name: value.record.paraentName, + edit: 0, + viewDetail:1, + }, + }); + } + } + }} + style="cursor:pointer;" + class="operation1" + > + 查看 + )}
{ - showCopyModal(); + showCopyModal(value.record.projectId); }} > 复制 @@ -2774,16 +2848,16 @@ export default { // options={state.projectNameList} dropdownClassName="tabledropdown" > + +
{ + showCopyModal(value.record.projectId); + }} + > + 复制 +
+
- -
{ - showCopyModal(); - }} - > - 复制 -
-
{ showStartModal(value.record.projectId); @@ -2842,7 +2916,7 @@ export default {
{ - showCopyModal(); + showCopyModal(value.record.projectId); }} > 复制 @@ -2978,12 +3052,6 @@ export default { state.doublesonpro = true; state.sonproject = false; }; - const showCopyModal = () => { - state.copyModal = true; - }; - const closeCopyModal = () => { - state.copyModal = false; - }; const showProjOwner = () => { state.ProjOwnervisible = true; @@ -3098,6 +3166,7 @@ export default { finishProject, deleteProject, templateProject, + copyProject, }; }, }; diff --git a/src/views/projectcenter/SonProject.vue b/src/views/projectcenter/SonProject.vue index 040370df..be713def 100644 --- a/src/views/projectcenter/SonProject.vue +++ b/src/views/projectcenter/SonProject.vue @@ -26,7 +26,7 @@
子项目名称
- +
@@ -40,7 +40,7 @@ return triggerNode.parentNode || document.body; } " v-model:value="classifySelect" placeholder="四个养成" style="width: 100%" :options="classifyList" - @change="classificationChange" allowClear showSearch> + @change="classificationChange" allowClear showSearch :disabled="viewDetail ? true : false">
@@ -59,7 +59,7 @@ overflow: hidden; "> + :show-upload-list="false" action="/api/file/upload" :before-upload="beforeUpload" @change="handleChange" :disabled="viewDetail ? true : false"> + style="width: 100%; height: 40px; border-radius: 5px" @change="onRangeChange" :disabled="viewDetail ? true : false" />
@@ -98,7 +98,7 @@ return triggerNode.parentNode || document.body; } " :value="classifySelect1" mode="multiple" placeholder="请选择项目经理" style="width: 100%" :options="classifyList1" - @change="classificationChange1" allowClear showSearch> + @change="classificationChange1" allowClear showSearch :disabled="viewDetail ? true : false">
@@ -114,7 +114,7 @@ return triggerNode.parentNode || document.body; } " v-model:value="classifySelect2" placeholder="自动带出 可修改" :options="classifyList2" - @change="classificationChange2" /> + @change="classificationChange2" :disabled="viewDetail ? true : false" />
@@ -122,7 +122,7 @@
项目说明
- +
@@ -130,11 +130,11 @@
同步学习记录
- 同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程) + " >同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)
@@ -148,7 +148,7 @@ return triggerNode.parentNode || document.body; } " v-model:value="classifySelect3" :options="classifyList3" @change="classificationChange3" - placeholder="集团级/组织级/现地级/部门级" /> + placeholder="集团级/组织级/现地级/部门级" :disabled="viewDetail ? true : false" />
@@ -162,7 +162,7 @@ return triggerNode.parentNode || document.body; } " v-model:value="classifySelect4" :options="classifyList4" @change="classificationChange4" - placeholder="集团级/组织级/现地级/部门级" /> + placeholder="集团级/组织级/现地级/部门级" :disabled="viewDetail ? true : false" />
@@ -171,7 +171,7 @@
是否BOEU实施
- + @change="classificationChange5" > Date: Wed, 16 Nov 2022 13:09:30 +0800 Subject: [PATCH 52/90] =?UTF-8?q?feat:taskoage=E6=89=80=E6=9C=89=E4=BA=8C?= =?UTF-8?q?=E7=BB=B4=E7=A0=81=E6=95=B4=E7=90=86=E6=88=90=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=EF=BC=8C=E5=9C=A8=E7=BA=BF=E6=8A=BD=E5=B1=89?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E8=8E=B7=E5=8F=96=E9=80=89=E9=A1=B9=E6=95=B0?= =?UTF-8?q?=EF=BC=8C=E5=AD=A6=E4=B9=A0=E8=B7=AF=E5=BE=84=E5=85=B3=E8=81=94?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=8A=BD=E5=B1=89=E6=8E=A5=E5=8F=A3=E8=BF=98?= =?UTF-8?q?=E6=B2=A1=E8=B0=83=E8=AF=95=E5=A5=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/AddOnline.vue | 23 +- src/components/drawers/CreVote.vue | 7 +- src/components/drawers/FaceManage.vue | 6 +- src/components/drawers/TimeManage.vue | 7 +- src/components/drawers/WorkManage.vue | 5 +- src/views/learningpath/LevelAddDetail.vue | 1119 +++++++++++---------- src/views/projectcenter/TaskPage.vue | 543 ++++------ 7 files changed, 808 insertions(+), 902 deletions(-) diff --git a/src/components/drawers/AddOnline.vue b/src/components/drawers/AddOnline.vue index 34b6b274..6bdd58aa 100644 --- a/src/components/drawers/AddOnline.vue +++ b/src/components/drawers/AddOnline.vue @@ -59,10 +59,10 @@
已选择 4已选择 {{RowsNum}}列表选项总计:14列表选项总计:{{tableDataTotal}}
@@ -169,7 +169,8 @@ export default { time: undefined, assessmentId:null, assessmentName:"", - tableData: [ ], + RowsNum: 0, + tableData: [], currentPage: 1, tableDataTotal: 0, pageSize: 10, @@ -183,7 +184,7 @@ export default { }; const tableDataFunc = () => { const columns = [ - { + { title: "课程编号", dataIndex: "num", key: "num", @@ -230,10 +231,24 @@ export default { return columns; }; const rowSelection = { + checkStrictly: false, + onSelectAll: (selected) => { + console.log(selected); + if (selected == true) { + state.RowsNum = state.tableDataTotal + } else { + state.RowsNum = 0 + } + }, onSelect: (selectedRows, selected, selectedRowKeys) => { console.log( "selectedRowKeys", selectedRowKeys, "selectedRows", selectedRows, "selected", selected); console.log(selectedRows.assessmentId); + if (selected == true) { + state.RowsNum++ + } else { + state.RowsNum-- + } state.assessmentId = selectedRows.assessmentId; state.assessmentName = selectedRows.name; }, diff --git a/src/components/drawers/CreVote.vue b/src/components/drawers/CreVote.vue index 38298648..5209a904 100644 --- a/src/components/drawers/CreVote.vue +++ b/src/components/drawers/CreVote.vue @@ -239,9 +239,10 @@ export default { } // for (let i = 0; i < state.questions.length; i++) { // for (let k = 0; k < state.questions[i].options.length; k++) { - // // console.log('1111111111111111', state.questions); - // // console.log('2222222222222222', state.questions[i].options); - + // console.log('1111111111111111', state.questions); + // console.log('2222222222222222', state.questions[i]); + // console.log(' state.questions[i].inputV', state.questions[i].inputV,); + // console.log('state.questions[i].options[k].opvalue',state.questions[i].options[k].opvalue) // } // } let obj = { diff --git a/src/components/drawers/FaceManage.vue b/src/components/drawers/FaceManage.vue index 68a3273d..028d1c6c 100644 --- a/src/components/drawers/FaceManage.vue +++ b/src/components/drawers/FaceManage.vue @@ -70,6 +70,10 @@
导出数据
+
+
+
导出作业
+
@@ -362,7 +366,7 @@ export default { let timer; onMounted(() => { setTimeout(() => { - // getManageList(); + getManageList(); }, 1000); timer = setInterval(() => { state.open = false; diff --git a/src/components/drawers/TimeManage.vue b/src/components/drawers/TimeManage.vue index ef802882..8b8789ef 100644 --- a/src/components/drawers/TimeManage.vue +++ b/src/components/drawers/TimeManage.vue @@ -219,10 +219,6 @@ export default { const onChange = (pageNumber) => { console.log("Page: ", pageNumber); }; - - // watch(props.visible, ()=>{ - // getManageList() - // },{immediate:true}); //获取任务管理列表 const getManageList = () => { let obj = { @@ -237,7 +233,6 @@ export default { api .taskStudentList(obj) .then((res) => { - console.log("csscas成功"); state.pageNo = res.data.data.pageNo; state.pageSize = res.data.data.pageSize; state.pageSize = res.data.data.pageSize; @@ -291,7 +286,7 @@ export default { let timer; onMounted(() => { setTimeout(() => { - // getManageList(); + getManageList(); }, 500); timer = setInterval(() => { state.open = false; diff --git a/src/components/drawers/WorkManage.vue b/src/components/drawers/WorkManage.vue index 0962b1f4..bfb1bea4 100644 --- a/src/components/drawers/WorkManage.vue +++ b/src/components/drawers/WorkManage.vue @@ -65,6 +65,9 @@
导出作业
+
+
导入成绩
+
{ setTimeout(() => { - // getManageList(); + getManageList(); }, 1000); }); return { diff --git a/src/views/learningpath/LevelAddDetail.vue b/src/views/learningpath/LevelAddDetail.vue index aea37d17..1621d781 100644 --- a/src/views/learningpath/LevelAddDetail.vue +++ b/src/views/learningpath/LevelAddDetail.vue @@ -212,495 +212,378 @@
在线
-
-
-
-
-
- -
-
面授
-
-
-
-
-
-
- -
-
案例
-
-
-
-
-
-
- -
-
作业
-
- +
- +
+
-
-
-
-
- -
-
考试
- -
- -
-
-
-
-
-
- -
-
直播
-
-
- -
-
-
-
-
-
- -
-
外链
-
-
- -
-
-
-
-
-
- -
-
讨论
-
-
- -
-
-
-
-
-
- -
-
活动
-
-
- -
-
-
-
-
-
- -
-
测评
- -
- -
- -
-
-
-
-
-
- -
-
评估
- -
- -
- -
-
-
-
-
-
- -
-
投票
- -
- -
- -
-
-
-
-
-
- -
-
项目
-
-
-
-
-
-
-
- 任务列表 -
-
-
-
移动到任务阶段
+
+
+
+
-
-
-
批量删除
+
面授
+
+
+
+
+
+
+
+
案例
+
+ +
+ +
+ +
+
+
+
+
+ +
+
作业
+
+ +
+ +
+
+
+
+
+
+ +
+
考试
+
+ +
+ +
+
+
+
+
+
+ +
+
直播
+
+
+ +
+
+
+
+
+
+ +
+
外链
+
+
+ +
+
+
+
+
+
+ +
+
讨论
+
+
+ +
+
+
+
+
+
+ +
+
活动
+
+
+ +
+
+
+
+
+
+ +
+
测评
+ +
+ +
+ +
+
+
+
+
+
+ +
+
评估
+ +
+ +
+ +
+
+
+
+
+
+ +
+
投票
+ +
+ +
+ +
+
+
+
+
+
+ +
+
项目
-
-
-
+
+
+
+ 任务列表 +
+
+
+
移动到任务阶段
+
+
+
+
批量删除
+
+
+
+
+
- - -
类型
-
-
任务名称
-
必修/选修
-
时长
-
- 操作 -
-
- - - -
- -
-
-
-
-
- 无任务 -
-
- 请点击上方,创建任务 +
+
-
-
+
- -
-
-
-
-
-
暂存
-
-
-
确定
-
-
-
下一步
-
-
-
-
- -
-
-
关联项目
- +
+
+
+
暂存
+
+
+
确定
+
+
+
下一步
+
-
- - -
-
- - +
+
+ +
+
+
关联项目
+ +
+
+ + +
+
+ +
@@ -918,6 +801,10 @@ import { storage } from "../../api/storage"; import { deleteStudyTask } from "../../api/indexStudy"; import draggable from "vuedraggable"; import { editTask } from "../../api/indexTaskadd"; +import * as apiProj from "../../api/indexInvist.js"; +import * as apiTask from "../../api/indexTaskadd"; +import { RouterEditTask } from "@/api/indexTask"; +import dayjs from "dayjs"; export default { name: "LevelAddDetail", components: { @@ -1035,104 +922,108 @@ export default { time: "2022-07-15 14:00", }, ], - drawertableData: [ - { - key: 1, - projectName: "管理者进阶", - manager: "黄华 刘俊", - creater: "毛继禹", - time: "2022-07-20 14:00:03", - children: [ - { - key: "1-1", - projectName: "管理者进阶-腾飞班", - manager: "黄华 刘俊", - creater: "毛继禹", - time: "2022-07-20 14:00:03", - children: [ - { - key: "1-1-1", - projectName: "管理者进阶-腾飞班K1", - manager: "黄华 刘俊", - creater: "毛继禹", - time: "2022-07-20 14:00:03", - }, - ], - }, - ], - }, - { - key: 2, - projectName: "管理者进阶", - manager: "黄华 刘俊", - creater: "毛继禹", - time: "2022-07-20 14:00:03", - children: [ - { - key: "2-1", - projectName: "管理者进阶-腾飞班", - manager: "黄华 刘俊", + drawertableData: [], + // drawertableData: [ + // { + // key: 1, + // projectName: "管理者进阶", + // manager: "黄华 刘俊", + // creater: "毛继禹", + // time: "2022-07-20 14:00:03", + // children: [ + // { + // key: "1-1", + // projectName: "管理者进阶-腾飞班", + // manager: "黄华 刘俊", + // creater: "毛继禹", + // time: "2022-07-20 14:00:03", + // children: [ + // { + // key: "1-1-1", + // projectName: "管理者进阶-腾飞班K1", + // manager: "黄华 刘俊", + // creater: "毛继禹", + // time: "2022-07-20 14:00:03", + // }, + // ], + // }, + // ], + // }, + // { + // key: 2, + // projectName: "管理者进阶", + // manager: "黄华 刘俊", + // creater: "毛继禹", + // time: "2022-07-20 14:00:03", + // children: [ + // { + // key: "2-1", + // projectName: "管理者进阶-腾飞班", + // manager: "黄华 刘俊", - creater: "毛继禹", - time: "2022-07-20 14:00:03", - children: [ - { - key: "2-1-1", - projectName: "管理者进阶-腾飞班K1", - manager: "黄华 刘俊", - creater: "毛继禹", - time: "2022-07-20 14:00:03", - }, - ], - }, - ], - }, + // creater: "毛继禹", + // time: "2022-07-20 14:00:03", + // children: [ + // { + // key: "2-1-1", + // projectName: "管理者进阶-腾飞班K1", + // manager: "黄华 刘俊", + // creater: "毛继禹", + // time: "2022-07-20 14:00:03", + // }, + // ], + // }, + // ], + // }, - { - key: 3, - projectName: "管理者进阶-腾飞班K1", - manager: "黄华 刘俊", + // { + // key: 3, + // projectName: "管理者进阶-腾飞班K1", + // manager: "黄华 刘俊", - creater: "毛继禹", - time: "2022-07-20 14:00:03", - }, - { - key: 4, - projectName: "管理者进阶-腾飞班K1", - manager: "黄华 刘俊", + // creater: "毛继禹", + // time: "2022-07-20 14:00:03", + // }, + // { + // key: 4, + // projectName: "管理者进阶-腾飞班K1", + // manager: "黄华 刘俊", - creater: "毛继禹", - time: "2022-07-20 14:00:03", - }, - { - key: 5, - projectName: "管理者进阶-腾飞班K1", - manager: "黄华 刘俊", + // creater: "毛继禹", + // time: "2022-07-20 14:00:03", + // }, + // { + // key: 5, + // projectName: "管理者进阶-腾飞班K1", + // manager: "黄华 刘俊", - creater: "毛继禹", - time: "2022-07-20 14:00:03", - }, - { - key: 6, - projectName: "管理者进阶-腾飞班K1", - manager: "黄华 刘俊", + // creater: "毛继禹", + // time: "2022-07-20 14:00:03", + // }, + // { + // key: 6, + // projectName: "管理者进阶-腾飞班K1", + // manager: "黄华 刘俊", - creater: "毛继禹", - time: "2022-07-20 14:00:03", - }, - { - key: 7, - projectName: "管理者进阶-腾飞班K1", - manager: "黄华 刘俊", + // creater: "毛继禹", + // time: "2022-07-20 14:00:03", + // }, + // { + // key: 7, + // projectName: "管理者进阶-腾飞班K1", + // manager: "黄华 刘俊", - creater: "毛继禹", - time: "2022-07-20 14:00:03", - }, - ], + // creater: "毛继禹", + // time: "2022-07-20 14:00:03", + // }, + // ], currentPage: 1, tableDataTotal: 100, pageSize: 10, visible: false, + //项目 + editproj: false, + addprojvisible: false, AddSvisible: false, //添加学员抽屉 AddImpStuvisible: false, //导入学员抽屉 addlivevisible: false, //添加直播抽屉 @@ -1154,6 +1045,8 @@ export default { EditEvalId: "", EditInvistId: "", EditVoteId: "", + //项目 + EditProjId: "", routerTaskId: "", chapterId: "", stageId: "", @@ -1177,6 +1070,14 @@ export default { ListChoosedId: 0, selectRow: [], //选择行 selectAll: 0, //0:未选择,1:全选,2:部分选择 + //项目抽屉参数 + time: undefined, + assessmentId: null, + assessmentName: "", + isLevel: false, + projectId: null, + projectTaskId: null, + chooseStageId: null, }); //新建关卡 @@ -1227,6 +1128,11 @@ export default { const showDrawer = () => { state.visible = true; }; + //关闭项目抽屉 + const leaveProjDrawer = () => { + state.addprojvisible = false; + state.isLevel = false; + }; // 作业和考试的抽屉 const showDrawerAddHomework = (id, eleId) => { console.log("homework==============", id, state.isactive); @@ -1279,6 +1185,13 @@ export default { state.EditActiveId = id; state.routerTaskId = eleId; }; + //打开项目抽屉 + const showDrawerAddProj = (id, eleId) => { + state.addprojvisible = true; + state.isLevel = true; + state.EditActiveId = id; + state.routerTaskId = eleId; + }; // tableData数据赋值方法 const dataAssignment = (id) => { @@ -1713,6 +1626,8 @@ export default { showDrawerAddEval(id, eleId); } else if (type == "投票") { showDrawerAddVote(id, eleId); + } else if (type == "项目") { + showDrawerAddVote(id, eleId); } }; //删除关卡 @@ -1756,6 +1671,98 @@ export default { message.warning("修改失败"); }); }; + + //项目抽屉用的 + const rowSelection = { + onSelect: (selectedRows, selected, selectedRowKeys) => { + console.log( + "selectedRowKeys", selectedRowKeys, "selectedRows", selectedRows, "selected", selected); + console.log(selectedRows.assessmentId); + state.assessmentId = selectedRows.assessmentId; + state.assessmentName = selectedRows.name; + }, + }; + const getTableDate = (drawertableData) => { + let data = drawertableData; + let array = []; + data.map((value, index) => { + let obj = { + key: index, + assessmentId: value.assessmentId, + num: value.essayQuestionVoList.length, + name: value.assessmentName ? value.assessmentName : "-", + creator: value.createUser ? value.createUser : "-", + time: dayjs(value.createTime).format("YYYY-MM-DD"), + }; + array.push(obj); + }); + state.tableData = array; + }; + //获取全部项目信息接口 + const getAllProjText = () => { + apiProj + .queryAssessmentDetailList({ + assessmentName: "", + // pageNo: state.currentPage, + // pageSize: state.pageSize, + }) + .then((res) => { + let arr = res.data.data.rows; + if (res.status === 200) { + getTableDate(arr); + } + }) + .catch((err) => { + console.log("获取全部在线信息接口失败", err); + // state.createLoading = false; + }); + }; + const updateTask = () => { + console.log("jinlaile=================", state.assessmentName) + if (state.isLevel) { + RouterEditTask({ + chapterId: state.isactive, + courseId: state.assessmentId, + name: state.assessmentName, + routerId: state.routerId, + routerTaskId: state.routerTaskId || 0, + type: 13, + }) + .then((res) => { + console.log(res, 11111); + message.success(`${state.editproj ? '编辑' : '新增'}关卡任务成功`) + // ctx.emit("changeData", false); + closeDrawer(); + state.addLoading = false; + }) + .catch((err) => { + console.log(err, 1111); + }); + } else { + console.log("=========projectTaskId", state.projectTaskId); + apiTask + .addTask({ + courseId: state.assessmentId, + name: state.assessmentName, + projectId: state.projectId, + projectTaskId: state.projectTaskId || 0, + stageId: state.chooseStageId, + type: 13, + }) + .then((res) => { + console.log("调用项目添加接口后111", res.data, 11111); + // ctx.emit("changeData", false); + closeDrawer(); + }) + .catch((err) => { + console.log(err, 111111); + }); + } + } + onMounted(() => { + // createCase(); + getAllProjText(); + }); return { ...toRefs(state), // tableDataFunc, @@ -1785,6 +1792,8 @@ export default { deleteLevelTask, showDrawerAddLive, showDrawerAddRef, + showDrawerAddProj, + leaveProjDrawer, closeDeleteModel, clearEditData, showDrawerAddDiscuss, @@ -1798,6 +1807,10 @@ export default { updateTableData, deleteChapter, changeCourseType, + rowSelection, + getTableDate, + getAllProjText, + updateTask, }; }, }; diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index 6a7c4608..4da39841 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -419,23 +419,7 @@
二维码
@@ -1082,60 +1066,33 @@ :projectTaskId="projectTaskId" /> - + - +
- -
+ +
- - 项目发布 + + 项目发布
- +
管理者进阶-腾飞班1
- 项目时间:2022/08/01-2022/08/30 + 项目时间:2022/08/01-2022/08/30
@@ -1152,12 +1109,8 @@ 发送项目通知
- 发给老师 - 发给学员 + 发给老师 + 发给学员
取消 @@ -1165,228 +1118,181 @@
-
- - -
- -
-
- 创建小组 -
-
- -
-
-
-
-
- +
+ + +
+ +
+
+ 创建小组
-
小组名称:
-
- +
+
-
-
- +
+
+
+ +
+
小组名称:
+
+ +
-
小组长:
-
- +
+
+ +
+
小组长:
+
+ +
+
+
+ 取消 + 确定
-
- 取消 - 确定 + +
+ + +
+ +
+
+
+
+
+ 提示 +
+
+ 您是否授予此学员优秀学员称号? +
+
+
+
取消
+
+
+
确定
+
+
+
-
- -
- - -
- + +
+ + +
+ +
+
+
+
+
+ 提示 +
+
+ 您是否取消此学员优学员称号? +
+
+
+
取消
+
+
+
确定
+
+
+
+
+
+
+ + +
+ +
+
+
+
+
+ 提示 +
+
+ 您确定要删除此学员吗 +
+
+
+
取消
+
+
+
确定
+
+
+
+
+
+
+ + + +
+ +
+
+
+
+
+ 提示 +
+
+
+ 您确定要删除此课程吗 +
+
+
+
取消
+
+
+
确定
+
+
+
+
+
+
+ + +
-
- 提示 -
-
- 您是否授予此学员优秀学员称号? -
-
-
-
取消
-
-
-
确定
-
-
-
-
-
-
- - -
- -
-
-
-
-
- 提示 -
-
- 您是否取消此学员优学员称号? -
-
-
-
取消
-
-
-
确定
-
-
-
-
-
-
- - -
- -
-
-
-
-
- 提示 -
-
- 您确定要删除此学员吗 -
-
-
-
取消
-
-
-
确定
-
-
-
-
-
-
- - - -
- -
-
-
-
-
- 提示 -
-
-
- 您确定要删除此课程吗 -
-
-
-
取消
-
-
-
确定
-
-
-
-
-
-
- - - -
-
-
-
-
- 面授管理 +
+ 在线管理 + 面授管理 + 案例管理 + 作业管理 + 考试管理 + 直播管理 + 外链管理 + 讨论管理 + 活动管理 + 测评管理 + 评估管理 + 投票管理
@@ -1401,62 +1307,6 @@
- - -
-
-
-
-
- 直播管理 -
-
-
-
-
-
-
下载二维码
-
200*200
-
400*400
-
800*800
-
-
-
-
- - -
-
-
-
-
- 活动管理 -
-
-
-
-
-
-
下载二维码
-
200*200
-
400*400
-
800*800
-
-
-
-
{ + const showCopyModal = (itemtype) => { state.copyModal = true; + if (itemtype == "1") { + state.QRtype = "1" + } else if (itemtype == "2") { + state.QRtype = "2" + } else if (itemtype == "3") { + state.QRtype = "3" + } else if (itemtype == "4") { + state.QRtype = "4" + } else if (itemtype == "5") { + state.QRtype = "5" + } else if (itemtype == "6") { + state.QRtype = "6" + } else if (itemtype == "7") { + state.QRtype = "7" + } else if (itemtype == "8") { + state.QRtype = "8" + } else if (itemtype == "9") { + state.QRtype = "9" + } else if (itemtype == "10") { + state.QRtype = "10" + } else if (itemtype == "11") { + state.QRtype = "11" + } else if (itemtype == "12") { + state.QRtype = "12" + } }; const closeCopyModal = () => { state.copyModal = false; From 8a57944e3a3f24324ea5bca602c8f950324c1f83 Mon Sep 17 00:00:00 2001 From: Ggysh-7 <102372376+Ggysh-7@users.noreply.github.com> Date: Wed, 16 Nov 2022 19:32:22 +0800 Subject: [PATCH 53/90] =?UTF-8?q?feat:=E5=AD=A6=E4=B9=A0=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=9C=A8=E7=BA=BF=20=E6=A1=88=E4=BE=8B?= =?UTF-8?q?=E6=8A=BD=E5=B1=89=20=20=E9=A1=B9=E7=9B=AE=E6=8A=BD=E5=B1=89?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BB=BF=E5=86=99=EF=BC=88=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E6=9C=89=E9=97=AE=E9=A2=98=EF=BC=89=E9=9D=A2?= =?UTF-8?q?=E6=8E=88=E7=AE=A1=E7=90=86=E6=94=B9=E4=BA=86=E4=B8=80=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/FaceManage.vue | 64 +++++++++++++--- src/components/drawers/WorkManage.vue | 6 +- src/views/learningpath/LevelAddDetail.vue | 92 +++++++++++------------ src/views/projectcenter/TaskPage.vue | 53 +++++++------ 4 files changed, 129 insertions(+), 86 deletions(-) diff --git a/src/components/drawers/FaceManage.vue b/src/components/drawers/FaceManage.vue index 028d1c6c..317856a2 100644 --- a/src/components/drawers/FaceManage.vue +++ b/src/components/drawers/FaceManage.vue @@ -8,7 +8,7 @@ >
-
【面授】管理
+
【{{title}}】管理
导出数据
-
导出作业
@@ -166,6 +165,10 @@ export default { type: Boolean, default: false, }, + title: { + type: String, + default: "", + }, projectTaskId: { type: Number, default: null, @@ -203,16 +206,7 @@ export default { label: "已完成", }, ], - tabledata: [ - // { - // key: 1, - // name: "哈哈", - // bum: "产品部", - // gangw: "产品经理", - // score: "-", - // state: "未完成", - // }, - ], + tabledata: [], tablecolumns: [ { title: "姓名", @@ -254,8 +248,53 @@ export default { align: "center", className: "h", }, + { + title: "操作", + dataIndex: "operation", + key: "operation", + width: 100, + align: "center", + className: "h", + }, ], }); + //面授直播管理列表操作 + const ListOpera = () => { + let arr = state.tabledata; + console.log(arr,'-=-=-=-=-=-=-=-=--=-==----=-=-=-'); + arr.map((value) => { + value.operation = ( +
+
{ + console.log('---------') + }} + > + 查看作业 +
+ +
{ + console.log( "--------"); + }} + > + 查看答卷 +
+
+ ); + }); + state.tabledata = arr; + console.log(state.tabledata,'++++++++++++-------------+++++++++-----------+++++++++++++++'); + }; + ListOpera(); const selectProjectName = (value, index) => { console.log("value", value, index); state.projectName = value; @@ -383,6 +422,7 @@ export default { onSelectChange, showModal, closeModal, + ListOpera, //渲染列表操作 showEntryScore, showdoneModal, closedoneModal, diff --git a/src/components/drawers/WorkManage.vue b/src/components/drawers/WorkManage.vue index bfb1bea4..a448ac2a 100644 --- a/src/components/drawers/WorkManage.vue +++ b/src/components/drawers/WorkManage.vue @@ -8,7 +8,7 @@ >
-
【作业】管理
+
【{{title}}】管理
{{ item.name }}
-
-->
@@ -206,7 +205,7 @@
-
+
@@ -231,7 +230,7 @@
-
+
@@ -566,7 +565,7 @@
-
@@ -785,6 +784,8 @@ import { reactive, toRefs, onMounted, onUnmounted } from "vue"; import AddStu from "../../components/drawers/AddLevelAddStu"; import ImpStu from "../../components/drawers/AddLevelImportStu"; +import AddOnline from "../../components/drawers/AddOnline.vue" +import AddCase from "../../components/drawers/AddCase.vue" import AddHomework from "../../components/drawers/AddHomework.vue"; import AddTest from "../../components/drawers/AddTest.vue"; import AddDiscuss from "../../components/drawers/AddDiscuss.vue"; @@ -802,7 +803,6 @@ import { deleteStudyTask } from "../../api/indexStudy"; import draggable from "vuedraggable"; import { editTask } from "../../api/indexTaskadd"; import * as apiProj from "../../api/indexInvist.js"; -import * as apiTask from "../../api/indexTaskadd"; import { RouterEditTask } from "@/api/indexTask"; import dayjs from "dayjs"; export default { @@ -810,6 +810,8 @@ export default { components: { AddStu, ImpStu, + AddOnline, + AddCase, AddHomework, AddDiscuss, AddActive, @@ -1018,7 +1020,7 @@ export default { // }, // ], currentPage: 1, - tableDataTotal: 100, + tableDataTotal: 0, pageSize: 10, visible: false, //项目 @@ -1036,7 +1038,9 @@ export default { deleteModal: false, // 删除弹窗 deleteID: "", // 要删除的任务的id editID: "", // 要编辑的任务id - EditWorkId: "", // 要编辑的 workid + EditOnlineId:"", // 要编辑的 workid + EditCaseId:"", + EditWorkId: "", EditTestId: "", EditRefId: "", EditLiveId: "", @@ -1061,6 +1065,8 @@ export default { adddiscussvisible: false, //讨论抽屉 isStudiscuss: false, addactivevisible: false, //活动抽屉 + addonlinevisible:false, + addcasevisible:false, addhomeworkvisible: false, addtestvisible: false, addevalvisible: false, @@ -1133,6 +1139,18 @@ export default { state.addprojvisible = false; state.isLevel = false; }; + //在线抽屉 + const showDrawerAddOnline = (id,eleId)=>{ + state.addonlinevisible = true; + state.EditWorkId = id; + state.routerTaskId = eleId; + } + //案例抽屉 + const showDrawerAddCase = (id,eleId)=>{ + state.addcasevisible = true; + state.EditWorkId = id; + state.routerTaskId = eleId; + } // 作业和考试的抽屉 const showDrawerAddHomework = (id, eleId) => { console.log("homework==============", id, state.isactive); @@ -1188,7 +1206,6 @@ export default { //打开项目抽屉 const showDrawerAddProj = (id, eleId) => { state.addprojvisible = true; - state.isLevel = true; state.EditActiveId = id; state.routerTaskId = eleId; }; @@ -1368,23 +1385,11 @@ export default { }; const drawertableColumns = () => { - // let arr = state.drawertableData; - // function traverse(arr) { - // for (var a in arr) { - // // console.log(arr[a]); - // if (arr[a].children) { - // traverse(arr[a].children); //递归遍历 - // } else { - // console.log(arr[a].children); //如果是值就显示 - - // } - // } - // } - // traverse(arr); const drawercolumns = [ { title: "项目名称", - dataIndex: "projectName", + dataIndex: "name", + // dataIndex: "projectName", key: "projectName", width: 200, // align: "center", @@ -1427,7 +1432,7 @@ export default { { title: "创建人", - dataIndex: "creater", + dataIndex: "creator", // width: "30%", key: "creater", width: 100, @@ -1457,6 +1462,7 @@ export default { "rgb(245, 247, 250,1)"; document.getElementsByTagName("main")[0].style.boxShadow = "none"; getDetail(); + getAllProjText(); }); onUnmounted(() => { document.getElementsByTagName("main")[0].style.background = "#ffffff"; @@ -1627,7 +1633,11 @@ export default { } else if (type == "投票") { showDrawerAddVote(id, eleId); } else if (type == "项目") { - showDrawerAddVote(id, eleId); + showDrawerAddProj(id, eleId); + } else if (type == "在线") { + showDrawerAddOnline(id, eleId); + } else if (type == "案例") { + showDrawerAddCase(id, eleId); } }; //删除关卡 @@ -1696,30 +1706,30 @@ export default { }; array.push(obj); }); - state.tableData = array; + state.drawertableData = array; }; //获取全部项目信息接口 const getAllProjText = () => { apiProj .queryAssessmentDetailList({ assessmentName: "", - // pageNo: state.currentPage, - // pageSize: state.pageSize, + pageNo: state.currentPage, + pageSize: state.pageSize, }) .then((res) => { let arr = res.data.data.rows; if (res.status === 200) { getTableDate(arr); + console.log('---------------项目信息---------------------------'); } }) .catch((err) => { - console.log("获取全部在线信息接口失败", err); + console.log("获取全部项目信息接口失败", err); + console.log('+++++++++++++++++++++++++++++++++++++++++++++++'); // state.createLoading = false; }); }; const updateTask = () => { - console.log("jinlaile=================", state.assessmentName) - if (state.isLevel) { RouterEditTask({ chapterId: state.isactive, courseId: state.assessmentId, @@ -1738,26 +1748,6 @@ export default { .catch((err) => { console.log(err, 1111); }); - } else { - console.log("=========projectTaskId", state.projectTaskId); - apiTask - .addTask({ - courseId: state.assessmentId, - name: state.assessmentName, - projectId: state.projectId, - projectTaskId: state.projectTaskId || 0, - stageId: state.chooseStageId, - type: 13, - }) - .then((res) => { - console.log("调用项目添加接口后111", res.data, 11111); - // ctx.emit("changeData", false); - closeDrawer(); - }) - .catch((err) => { - console.log(err, 111111); - }); - } } onMounted(() => { // createCase(); @@ -1784,6 +1774,8 @@ export default { drawertableColumns, editChapter, // updateChapter, + showDrawerAddOnline, + showDrawerAddCase, showDrawerAddHomework, showDrawerAddTest, showDrawerAddEval, diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index 4da39841..b8cb21c0 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -431,17 +431,15 @@ item.type == '3' || item.type == '7' || item.type == '8' || - item.type == '6' || - item.type == '11' || - item.type == '12' || - item.type == '9' + item.type == '9' || + item.type == '11' ? showTime(item.name, item.projectTaskId) : item.type == '5' || item.type == '10' ? showTest(item.name, item.projectTaskId) - : item.type == '2' - ? showFace(item.projectTaskId) + : item.type == '2' || item.type == '6' + ? showFace(item.name,item.projectTaskId) : item.type == '4' - ? showWork(item.projectTaskId) + ? showWork(item.name,item.projectTaskId) : null " > @@ -1031,6 +1029,7 @@ v-model:Fvisible.sync="FaceVisivle" v-if="FaceVisivle" :projectTaskId="projectTaskId" + :title="showFaceText" /> @@ -1064,6 +1063,7 @@ v-model:Wvisible.sync="Wvisible" v-if="Wvisible" :projectTaskId="projectTaskId" + :title="showWorkText" /> @@ -1075,12 +1075,12 @@
+ width: 100%; + height: 68px; + display: flex; + align-items: center; + justify-content: space-between; + ">
项目发布 @@ -1125,12 +1125,12 @@
+ width: 100%; + height: 68px; + display: flex; + align-items: center; + justify-content: space-between; + ">
创建小组
@@ -1994,13 +1994,18 @@ export default { ], taskSyllabusActive: 0, - //在线管理等页面传递参数 + //在线管理等页面传递参数title showTimeText: "", - //考试、测评页面传递参数 + //考试、测评页面传递参数title showTestText: "", + //直播、面授传递title + showFaceText:"", + //直播、面授传递title + showWorkText:"", //直播、活动页面传递参数 showkaoqinText: "", + //排行榜时间 rankStartTime: null, rankEndTime: null, @@ -2298,10 +2303,11 @@ export default { state.projectTaskId = id; }; //新增 - const showFace = (id) => { + const showFace = (name, id) => { //面授管理的抽屉 // console.log("点击管理"); state.FaceVisivle = true; + state.showFaceText = name; state.projectTaskId = id; }; const showSubset = () => { @@ -2324,8 +2330,9 @@ export default { state.showkaoqinText = "【" + course + "】" + "考勤"; }; //作业管理的抽屉 - const showWork = (id) => { + const showWork = (name,id) => { state.Wvisible = true; + state.showWorkText = name; state.projectTaskId = id; }; //考试管理的抽屉 From aa317a24398daf3696ed45108477ba3441eb3234 Mon Sep 17 00:00:00 2001 From: Ggysh-7 <102372376+Ggysh-7@users.noreply.github.com> Date: Wed, 16 Nov 2022 19:57:26 +0800 Subject: [PATCH 54/90] =?UTF-8?q?fix:state=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/learningpath/LevelAddDetail.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/views/learningpath/LevelAddDetail.vue b/src/views/learningpath/LevelAddDetail.vue index b21e5f26..918c39d7 100644 --- a/src/views/learningpath/LevelAddDetail.vue +++ b/src/views/learningpath/LevelAddDetail.vue @@ -1269,7 +1269,6 @@ export default { time: undefined, assessmentId: null, assessmentName: "", - isLevel: false, projectId: null, projectTaskId: null, chooseStageId: null, From 427a9fb83fc29d388c23411b08c9755b57ea452b Mon Sep 17 00:00:00 2001 From: lixg Date: Wed, 16 Nov 2022 21:29:54 +0800 Subject: [PATCH 55/90] =?UTF-8?q?style:=E5=A2=9E=E5=8A=A0=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NavLeft.vue | 72 ++++++++++++++++++ src/views/examine/CourseReviewed.vue | 39 ++++++++++ src/views/examine/CourseReviewedN.vue | 39 ++++++++++ src/views/examine/ProjectReviewed.vue | 39 ++++++++++ src/views/examine/ProjectReviewedN.vue | 38 ++++++++++ src/views/learningpath/LearningPath.vue | 6 ++ src/views/projectcenter/ProjectManage.vue | 91 ++++++++++++----------- 7 files changed, 279 insertions(+), 45 deletions(-) create mode 100644 src/views/examine/CourseReviewed.vue create mode 100644 src/views/examine/CourseReviewedN.vue create mode 100644 src/views/examine/ProjectReviewed.vue create mode 100644 src/views/examine/ProjectReviewedN.vue diff --git a/src/components/NavLeft.vue b/src/components/NavLeft.vue index 4de7d2e9..b5dbbaeb 100644 --- a/src/components/NavLeft.vue +++ b/src/components/NavLeft.vue @@ -27,6 +27,54 @@ @openChange="onOpenChange" @select="selectItem" > + + + + + + 待审核课程 + + + + 已审核课程 + + + + 待审核项目 + + + + 已审核项目 + + +
+ + + + diff --git a/src/views/examine/CourseReviewedN.vue b/src/views/examine/CourseReviewedN.vue new file mode 100644 index 00000000..d0635b09 --- /dev/null +++ b/src/views/examine/CourseReviewedN.vue @@ -0,0 +1,39 @@ + + + + + \ No newline at end of file diff --git a/src/views/examine/ProjectReviewed.vue b/src/views/examine/ProjectReviewed.vue new file mode 100644 index 00000000..845fdde4 --- /dev/null +++ b/src/views/examine/ProjectReviewed.vue @@ -0,0 +1,39 @@ + + + + + \ No newline at end of file diff --git a/src/views/examine/ProjectReviewedN.vue b/src/views/examine/ProjectReviewedN.vue new file mode 100644 index 00000000..823c1640 --- /dev/null +++ b/src/views/examine/ProjectReviewedN.vue @@ -0,0 +1,38 @@ + + + + \ No newline at end of file diff --git a/src/views/learningpath/LearningPath.vue b/src/views/learningpath/LearningPath.vue index 6246c580..facaf22e 100644 --- a/src/views/learningpath/LearningPath.vue +++ b/src/views/learningpath/LearningPath.vue @@ -323,6 +323,12 @@ >
+
+ +
diff --git a/src/views/projectcenter/ProjectManage.vue b/src/views/projectcenter/ProjectManage.vue index b08b5620..51607e06 100644 --- a/src/views/projectcenter/ProjectManage.vue +++ b/src/views/projectcenter/ProjectManage.vue @@ -2669,52 +2669,53 @@ export default { 编辑 ) : ( - { - console.log("单层子项目的编辑"); - console.log(value); + + // { + // console.log("单层子项目的编辑"); + // console.log(value); - { - /* 判断是班级\单层项目\单层子项目 */ - } - if (value.record.parentId == "0") { - router.push({ - path: "/projectadd", - query: { - projectId: value.record.projectId, - name: value.record.name, - viewDetail:1, - }, - }); - } else { - if (value.record.isbj) { - router.push({ - path: "/classadd", - query: { - projectId: value.record.projectId, - name: value.record.paraentName, - edit: 0, - viewDetail:1, - }, - }); - } else { - router.push({ - path: "/sonproject", - query: { - projectId: value.record.projectId, - name: value.record.paraentName, - edit: 0, - viewDetail:1, - }, - }); - } - } - }} - style="cursor:pointer;" - class="operation1" - > - 查看 - + // { + // /* 判断是班级\单层项目\单层子项目 */ + // } + // if (value.record.parentId == "0") { + // router.push({ + // path: "/projectadd", + // query: { + // projectId: value.record.projectId, + // name: value.record.name, + // viewDetail:1, + // }, + // }); + // } else { + // if (value.record.isbj) { + // router.push({ + // path: "/classadd", + // query: { + // projectId: value.record.projectId, + // name: value.record.paraentName, + // edit: 0, + // viewDetail:1, + // }, + // }); + // } else { + // router.push({ + // path: "/sonproject", + // query: { + // projectId: value.record.projectId, + // name: value.record.paraentName, + // edit: 0, + // viewDetail:1, + // }, + // }); + // } + // } + // }} + // style="cursor:pointer;" + // class="operation1" + // > + // 查看 + // )}
Date: Thu, 17 Nov 2022 09:26:30 +0800 Subject: [PATCH 56/90] =?UTF-8?q?feat:=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/ AssessmentList.vue | 1 - src/components/drawers/AddInvist.vue | 3 + src/components/drawers/AddTest.vue | 9 +- src/components/drawers/AddVote1.vue | 25 +- src/components/vote/AddVote.vue | 6 +- src/components/vote/CreateVote.vue | 788 ++++++++++----------- 6 files changed, 418 insertions(+), 414 deletions(-) diff --git a/src/components/drawers/ AssessmentList.vue b/src/components/drawers/ AssessmentList.vue index 3669d29c..ab7d1fff 100644 --- a/src/components/drawers/ AssessmentList.vue +++ b/src/components/drawers/ AssessmentList.vue @@ -97,7 +97,6 @@ export default { }); const closeDrawer = () => { ctx.emit("update:assessmentVisible", false); - }; const afterVisibleChange = (bool) => { console.log("state getAllInvistText", bool); diff --git a/src/components/drawers/AddInvist.vue b/src/components/drawers/AddInvist.vue index 57fa3d0e..f7140bef 100644 --- a/src/components/drawers/AddInvist.vue +++ b/src/components/drawers/AddInvist.vue @@ -145,6 +145,9 @@ export default { } const afterVisibleChange = (bool) => { console.log("state", bool); + state.assessmentId=null; + state.assessmentName=""; + state.assessment=null; }; const updateTask =()=>{ diff --git a/src/components/drawers/AddTest.vue b/src/components/drawers/AddTest.vue index fbd6c832..2f7d1ff7 100644 --- a/src/components/drawers/AddTest.vue +++ b/src/components/drawers/AddTest.vue @@ -17,9 +17,9 @@
系统考试 - 外部考试
{ + console.log(value) + state.isOuter = value + } return { formState, afterVisibleChange, @@ -569,6 +573,7 @@ export default { rules, updateTest, queryTest, + changeOuter, ...toRefs(state) }; }, diff --git a/src/components/drawers/AddVote1.vue b/src/components/drawers/AddVote1.vue index f91322d2..1521159a 100644 --- a/src/components/drawers/AddVote1.vue +++ b/src/components/drawers/AddVote1.vue @@ -40,7 +40,7 @@ />
创建投票:
-
创建投票
+
创建投票
@@ -135,6 +135,17 @@
+ +

Some contents...

+

Some contents...

+

Some contents...

+
\ No newline at end of file diff --git a/src/views/learningpath/LevelAddDetail.vue b/src/views/learningpath/LevelAddDetail.vue index 918c39d7..9e40f8f7 100644 --- a/src/views/learningpath/LevelAddDetail.vue +++ b/src/views/learningpath/LevelAddDetail.vue @@ -213,9 +213,15 @@
- +
@@ -238,11 +244,17 @@
- -
- + +
+
@@ -966,8 +978,8 @@ import { reactive, toRefs, onMounted, onUnmounted } from "vue"; import AddStu from "../../components/drawers/AddLevelAddStu"; import ImpStu from "../../components/drawers/AddLevelImportStu"; -import AddOnline from "../../components/drawers/AddOnline.vue" -import AddCase from "../../components/drawers/AddCase.vue" +import AddOnline from "../../components/drawers/AddOnline.vue"; +import AddCase from "../../components/drawers/AddCase.vue"; import AddHomework from "../../components/drawers/AddHomework.vue"; import AddTest from "../../components/drawers/AddTest.vue"; import AddDiscuss from "../../components/drawers/AddDiscuss.vue"; @@ -1221,8 +1233,8 @@ export default { deleteModal: false, // 删除弹窗 deleteID: "", // 要删除的任务的id editID: "", // 要编辑的任务id - EditOnlineId:"", // 要编辑的 workid - EditCaseId:"", + EditOnlineId: "", // 要编辑的 workid + EditCaseId: "", EditWorkId: "", EditTestId: "", EditRefId: "", @@ -1249,8 +1261,8 @@ export default { adddiscussvisible: false, //讨论抽屉 isStudiscuss: false, addactivevisible: false, //活动抽屉 - addonlinevisible:false, - addcasevisible:false, + addonlinevisible: false, + addcasevisible: false, addhomeworkvisible: false, addtestvisible: false, addevalvisible: false, @@ -1272,6 +1284,7 @@ export default { projectId: null, projectTaskId: null, chooseStageId: null, + chooseChapterId: null, }); //新建关卡 @@ -1328,17 +1341,17 @@ export default { state.isLevel = false; }; //在线抽屉 - const showDrawerAddOnline = (id,eleId)=>{ + const showDrawerAddOnline = (id, eleId) => { state.addonlinevisible = true; state.EditWorkId = id; state.routerTaskId = eleId; - } + }; //案例抽屉 - const showDrawerAddCase = (id,eleId)=>{ + const showDrawerAddCase = (id, eleId) => { state.addcasevisible = true; state.EditWorkId = id; state.routerTaskId = eleId; - } + }; // 作业和考试的抽屉 const showDrawerAddHomework = (id, eleId) => { console.log("homework==============", id, state.isactive); @@ -1434,6 +1447,7 @@ export default { GetRouterDetail(state.routerId) .then((res) => { console.log("res.data.data.chapterList", res.data.data.chapterList); + //给level赋初始值 state.level = res.data.data.chapterList; state.styTitle = res.data.data.routerInfo.name; state.creTime = toDate( @@ -1448,8 +1462,14 @@ export default { item["label"] = item.name; }); if (state.level.length > 0) { - dataAssignment(state.level[0].chapterId); - state.isactive = state.level[0].chapterId; + let chapter = localStorage.getItem("chapterId"); + if (chapter !== null) { + dataAssignment(chapter);//用哪个的任务表 + state.isactive = chapter;//哪个亮 + } else { + dataAssignment(state.level[0].chapterId); + state.isactive = state.level[0].chapterId; + } } state.deleteModal = false; }) @@ -1674,6 +1694,7 @@ export default { state.selectRow = []; //选择行 state.selectAll = 0; //0:未选择,1:全选,2:部分选择 dataAssignment(chapterId); + state.chooseChapterId = chapterId; }; const gqxy_hShow = () => { state.gqxy_hs = !state.gqxy_hs; @@ -1811,6 +1832,8 @@ export default { console.log("移动成功", res); message.destroy(); message.success("移动成功"); + localStorage.setItem("chapterId", state.chooseChapterId); + getDetail(); }) .catch((err) => { console.log("移动失败", err); @@ -1910,7 +1933,13 @@ export default { const rowSelection = { onSelect: (selectedRows, selected, selectedRowKeys) => { console.log( - "selectedRowKeys", selectedRowKeys, "selectedRows", selectedRows, "selected", selected); + "selectedRowKeys", + selectedRowKeys, + "selectedRows", + selectedRows, + "selected", + selected + ); console.log(selectedRows.assessmentId); state.assessmentId = selectedRows.assessmentId; state.assessmentName = selectedRows.name; @@ -1944,35 +1973,35 @@ export default { let arr = res.data.data.rows; if (res.status === 200) { getTableDate(arr); - console.log('---------------项目信息---------------------------'); + console.log("---------------项目信息---------------------------"); } }) .catch((err) => { console.log("获取全部项目信息接口失败", err); - console.log('+++++++++++++++++++++++++++++++++++++++++++++++'); + console.log("+++++++++++++++++++++++++++++++++++++++++++++++"); // state.createLoading = false; }); }; const updateTask = () => { - RouterEditTask({ - chapterId: state.isactive, - courseId: state.assessmentId, - name: state.assessmentName, - routerId: state.routerId, - routerTaskId: state.routerTaskId || 0, - type: 13, + RouterEditTask({ + chapterId: state.isactive, + courseId: state.assessmentId, + name: state.assessmentName, + routerId: state.routerId, + routerTaskId: state.routerTaskId || 0, + type: 13, + }) + .then((res) => { + console.log(res, 11111); + message.success(`${state.editproj ? "编辑" : "新增"}关卡任务成功`); + // ctx.emit("changeData", false); + closeDrawer(); + state.addLoading = false; }) - .then((res) => { - console.log(res, 11111); - message.success(`${state.editproj ? '编辑' : '新增'}关卡任务成功`) - // ctx.emit("changeData", false); - closeDrawer(); - state.addLoading = false; - }) - .catch((err) => { - console.log(err, 1111); - }); - } + .catch((err) => { + console.log(err, 1111); + }); + }; onMounted(() => { // createCase(); getAllProjText(); diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue index 8a83b195..48725a2e 100644 --- a/src/views/projectcenter/TaskAdd.vue +++ b/src/views/projectcenter/TaskAdd.vue @@ -1395,6 +1395,7 @@ export default { //获取任务列表 const getTask = () => { + // console.log("state.projectId", state.projectId); let obj = { projectId: state.projectId, // projectId: 28, @@ -1409,28 +1410,30 @@ export default { state.picUrl = res.data.data.projectInfo.picUrl; let leng = res.data.data.stageList.length; if (leng > 0) { - // let stage = localStorage.getItem("stageId") - // ? localStorage.getItem("stageId") - // : null; - // if (stage !== null) { - // // console.log("找到了origin", originStageList); - // let originStageList = res.data.data.stageList.find((item) => { - // item.stageId == stage; - // }); - // getTableData(originStageList.taskList); - // console.log("找到了origin", originStageList); - // } else { - // let arr = res.data.data.stageList[0].taskList; - // console.log("任务列表", arr); - // getTableData(arr); - // } - let stage = localStorage.getItem("stageId") ? localStorage.getItem("stageId") : null; - let arr = res.data.data.stageList[0].taskList; - console.log("任务列表", stage, arr); - getTableData(arr); + console.log("zhaodaole", stage); + + if (stage !== null) { + let stageList = res.data.data.stageList; //阶段数组 + let result = stageList.find((item) => item.stageId == stage); + console.log("又找到了", result); + getTableData(result.taskList); + } else { + let arr = res.data.data.stageList[0].taskList; + console.log("任务列表", arr); + getTableData(arr); + } + // let stageList = res.data.data.stageList; //阶段数组 + // let result = stageList.find((item) => item.stageId == stage); + // console.log("又找到了", result); + // getTableData(result.taskList); + + // 每次都获取了第一条taskList + // let arr = res.data.data.stageList[0].taskList; + // console.log("任务列表", stage, arr); + // getTableData(arr); } let stagearr = res.data.data.stageList; From 5bd067c4d0a9599741c9c385bad0e374bf13ecb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E8=B6=85?= Date: Thu, 17 Nov 2022 16:26:17 +0800 Subject: [PATCH 61/90] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BC=A0=E5=8F=82?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/AddActive.vue | 212 +++--- src/components/drawers/AddCase.vue | 411 ++++++----- src/components/drawers/AddDiscuss.vue | 1 + src/components/drawers/AddEval.vue | 196 ++--- src/components/drawers/AddFaceteach.vue | 2 + src/components/drawers/AddHomework.vue | 114 ++- src/components/drawers/AddInvist.vue | 381 +++++----- src/components/drawers/AddLive.vue | 3 + src/components/drawers/AddOnline.vue | 523 +++++++------- src/components/drawers/AddRef.vue | 277 +++---- src/components/drawers/AddTest.vue | 920 ++++++++++++++---------- src/components/drawers/AddVote1.vue | 33 +- src/components/drawers/AddVotebak.vue | 142 ++-- 13 files changed, 1724 insertions(+), 1491 deletions(-) diff --git a/src/components/drawers/AddActive.vue b/src/components/drawers/AddActive.vue index 30b44ff3..7b0db77d 100644 --- a/src/components/drawers/AddActive.vue +++ b/src/components/drawers/AddActive.vue @@ -9,15 +9,14 @@ >
- -
{{edit?'编辑':'添加'}}活动
+
{{ edit ? "编辑" : "添加" }}活动
-
+
@@ -72,7 +71,7 @@
-
+
-
+
- - -
+ + +
@@ -226,9 +225,9 @@ import { reactive, toRefs, ref } from "vue"; import * as api from "../../api/indexActivity"; import * as apiTask from "../../api/indexTaskadd"; -import { RouterEditTask } from "@/api/indexTask" +import { RouterEditTask } from "@/api/indexTask"; import { message } from "ant-design-vue"; -import dayjs from 'dayjs'; +import dayjs from "dayjs"; const rowSelection = ref({ checkStrictly: false, onChange: (selectedRowKeys, selectedRows) => { @@ -258,7 +257,8 @@ export default { type: Number, default: null, }, - edit: { // 是否为编辑 + edit: { + // 是否为编辑 type: Boolean, default: null, }, @@ -274,15 +274,18 @@ export default { type: Number, default: 0, }, - isLevel: { // 是否是关卡页面触发 + isLevel: { + // 是否是关卡页面触发 type: Number, default: null, }, - EditWorkId: { // 要编辑的workId + EditWorkId: { + // 要编辑的workId type: Number, default: null, }, - projectTaskId: { // 要编辑的projectId + projectTaskId: { + // 要编辑的projectId type: Number, default: null, }, @@ -293,7 +296,7 @@ export default { isactive: { type: Number, default: null, - } + }, }, setup(props, ctx) { //console.log("学习路径",props.isStudiscuss); @@ -322,35 +325,46 @@ export default { state.textV1 = ""; state.textV2 = ""; state.time = ""; - message.success(`${props.edit ? '编辑' : '新增'}关卡任务成功`) - + message.success(`${props.edit ? "编辑" : "新增"}关卡任务成功`); + localStorage.setItem("stageId", props.chooseStageId); + localStorage.setItem("chapterId", props.isactive); }; const queryActive = () => { - console.log("props.EditActiveId======",props.EditActiveId,props.chooseStageId,props.routerTaskId); - api.getActivity(props.EditActiveId).then(res => { - console.log('获取讨论信息成功',res.data.data.standardSettings) - + console.log( + "props.EditActiveId======", + props.EditActiveId, + props.chooseStageId, + props.routerTaskId + ); + api + .getActivity(props.EditActiveId) + .then((res) => { + console.log("获取讨论信息成功", res.data.data.standardSettings); + //更新讨论信息 - state.inputV1 = res.data.data.activityName; + state.inputV1 = res.data.data.activityName; state.textV1 = res.data.data.activityNotice; state.textV2 = res.data.data.activityExplain; state.inputV2 = res.data.data.activityDuration; state.inputV3 = res.data.data.activityAddress; state.inputV5 = res.data.data.afterSignIn; - state.inputV6 =res.data.data.signOutTime; + state.inputV6 = res.data.data.signOutTime; state.inputV4 = res.data.data.beforeSignIn; state.radioV1 = Number(res.data.data.standardSettings); - - state.time = [dayjs(res.data.data.activityStartTime, "YYYY-MM-DD"), dayjs(res.data.data.activityEndTime, "YYYY-MM-DD")] - }).catch(err=>{ - console.log('获取讨论信息失败',err) + + state.time = [ + dayjs(res.data.data.activityStartTime, "YYYY-MM-DD"), + dayjs(res.data.data.activityEndTime, "YYYY-MM-DD"), + ]; }) - } + .catch((err) => { + console.log("获取讨论信息失败", err); + }); + }; const afterVisibleChange = (bool) => { - if(bool && props.edit){ + if (bool && props.edit) { queryActive(); } - }; const cloradio1 = (value) => { if (value != "") { @@ -358,109 +372,109 @@ export default { } }; const updateTask = (res) => { - if(props.isLevel == 1 ){ + if (props.isLevel == 1) { RouterEditTask({ - chapterId:props.isactive, - courseId: res.data.data.activityId, - duration: res.data.data.activityDuration, - name: res.data.data.activityName, - routerId: props.routerId, - routerTaskId: props.routerTaskId ||0, - type: 9, - }).then(res => { - console.log("新增关卡任务成功",res); - - }).catch(err => { - console.log("新增关卡任务失败",err); + chapterId: props.isactive, + courseId: res.data.data.activityId, + duration: res.data.data.activityDuration, + name: res.data.data.activityName, + routerId: props.routerId, + routerTaskId: props.routerTaskId || 0, + type: 9, + }) + .then((res) => { + console.log("新增关卡任务成功", res); }) - }else if(props.isLevel==2){ - apiTask.addTask({ + .catch((err) => { + console.log("新增关卡任务失败", err); + }); + } else if (props.isLevel == 2) { + apiTask + .addTask({ courseId: res.data.data.activityId, duration: res.data.data.activityDuration, name: res.data.data.activityName, projectId: props.projectId, - projectTaskId: props.projectTaskId ||0, - stageId:props.chooseStageId, + projectTaskId: props.projectTaskId || 0, + stageId: props.chooseStageId, type: 9, - }).then((res)=> { - console.log("更新任务列表成功",res); - }) - .catch((err)=> { - console.log("更新任务列表失败",err); + .then((res) => { + console.log("更新任务列表成功", res); }) - }else if(props.isLevel == 3){ + .catch((err) => { + console.log("更新任务列表失败", err); + }); + } else if (props.isLevel == 3) { console.log("模板库更新更新任务列表"); } - } + }; //创建活动 const updateActivityInfo = () => { - if(!state.inputV1){ + if (!state.inputV1) { message.destroy(); return message.warning("请输入活动名称"); - } - if(!state.textV1){ + } + if (!state.textV1) { message.destroy(); return message.warning("请输入活动公告"); - } - if(!state.time){ + } + if (!state.time) { message.destroy(); return message.warning("请输入活动时间"); - } - if(!state.inputV2){ + } + if (!state.inputV2) { message.destroy(); return message.warning("请输入活动时长"); - } - if(!state.inputV3){ + } + if (!state.inputV3) { message.destroy(); return message.warning("请输入活动地址"); - } - + } + let obj = { - activityAddress: state.inputV3, //活动地址 - activityDuration: state.inputV2, //活动时长 - activityExplain: state.textV2, //活动说明 - activityEndTime: dayjs(state.time[1]).format("YYYY-MM-DD"), //活动结束时间 - activityId: props.edit?props.EditActiveId:0, //活动ID - activityName: state.inputV1, //活动名称 - activityNotice: state.textV1, //活动公告 - activityStartTime:dayjs(state.time[0]).format("YYYY-MM-DD"),//活动开始时间 - activityTag: "", //活动逻辑删除标识 - afterSignIn: state.inputV5, //活动开始后多少分钟签到 - beforeSignIn: state.inputV4, //活动开始前多少分钟签到 - signOutTime: state.inputV6, //签退开始时间 - standardSettings: state.radioV1, //标准设置 - + activityAddress: state.inputV3, //活动地址 + activityDuration: state.inputV2, //活动时长 + activityExplain: state.textV2, //活动说明 + activityEndTime: dayjs(state.time[1]).format("YYYY-MM-DD"), //活动结束时间 + activityId: props.edit ? props.EditActiveId : 0, //活动ID + activityName: state.inputV1, //活动名称 + activityNotice: state.textV1, //活动公告 + activityStartTime: dayjs(state.time[0]).format("YYYY-MM-DD"), //活动开始时间 + activityTag: "", //活动逻辑删除标识 + afterSignIn: state.inputV5, //活动开始后多少分钟签到 + beforeSignIn: state.inputV4, //活动开始前多少分钟签到 + signOutTime: state.inputV6, //签退开始时间 + standardSettings: state.radioV1, //标准设置 }; - if(props.edit){ + if (props.edit) { //更新编辑活动信息 api - .updateActivity(obj) - .then((res) => { - closeDrawer(); - updateTask(res); - ctx.emit("changeData", false); - }) - .catch((err) => { - console.log("更新失败",err); - }) - }else{ + .updateActivity(obj) + .then((res) => { + closeDrawer(); + updateTask(res); + ctx.emit("changeData", false); + }) + .catch((err) => { + console.log("更新失败", err); + }); + } else { //新建活动信息 api - .createActivity(obj) - .then((res) => { + .createActivity(obj) + .then((res) => { message.success("创建成功"); closeDrawer(); updateTask(res); ctx.emit("changeData", false); - }) - .catch((err) => { - console.log("创建失败",err); - }) + }) + .catch((err) => { + console.log("创建失败", err); + }); } - }; - + return { ...toRefs(state), afterVisibleChange, @@ -505,7 +519,7 @@ export default { border-radius: 8px; } .main_left { - margin-top:32px; + margin-top: 32px; padding-right: 30px; flex: 1; border-right: 1px solid #e8e8e8; diff --git a/src/components/drawers/AddCase.vue b/src/components/drawers/AddCase.vue index de4d8c9d..ba1475b3 100644 --- a/src/components/drawers/AddCase.vue +++ b/src/components/drawers/AddCase.vue @@ -8,7 +8,7 @@ @after-visible-change="afterVisibleChange" >
-
+
编辑案例
添加案例
重置
-
-
- -
- +
+ +
+
- -
+ +
@@ -90,7 +99,8 @@ export default { type: Number, default: null, }, - edit: { // 是否为编辑 + edit: { + // 是否为编辑 type: Boolean, default: null, }, @@ -106,11 +116,13 @@ export default { type: Number, default: 0, }, - isLevel: { // 是否是关卡页面触发 + isLevel: { + // 是否是关卡页面触发 type: Number, default: null, }, - projectTaskId: { // 要编辑的projectId + projectTaskId: { + // 要编辑的projectId type: Number, default: null, }, @@ -121,14 +133,15 @@ export default { isactive: { type: Number, default: null, - } + }, }, setup(props, ctx) { const state = reactive({ tableData: [ { key: "1", - title: "基于BOE显示PNL工厂的工序平1111112222222221111111111111122222333335555", + title: + "基于BOE显示PNL工厂的工序平1111112222222221111111111111122222333335555", name: "李玉冰", time: "2022-10-31 23:12:00", }, @@ -136,7 +149,7 @@ export default { currentPage: 1, tableDataTotal: 0, pageSize: 10, - inputV1: '', + inputV1: "", time: undefined, assessmentId: null, assessmentName: "", @@ -144,6 +157,8 @@ export default { const closeDrawer = () => { ctx.emit("update:addcaseVisible", false); ctx.emit("update:edit", false); + localStorage.setItem("stageId", props.chooseStageId); + localStorage.setItem("chapterId", props.isactive); }; const afterVisibleChange = (bool) => { console.log("state", bool); @@ -179,7 +194,13 @@ export default { const rowSelection = { onSelect: (selectedRows, selected, selectedRowKeys) => { console.log( - "selectedRowKeys", selectedRowKeys, "selectedRows", selectedRows, "selected", selected); + "selectedRowKeys", + selectedRowKeys, + "selectedRows", + selectedRows, + "selected", + selected + ); console.log(selectedRows.assessmentId); state.assessmentId = selectedRows.assessmentId; state.assessmentName = selectedRows.name; @@ -228,8 +249,8 @@ export default { }); }; const updateTask = () => { - console.log("jinlaile=================", state.assessmentName) - if (props.isLevel==1) { + console.log("jinlaile=================", state.assessmentName); + if (props.isLevel == 1) { RouterEditTask({ chapterId: props.isactive, courseId: state.assessmentId, @@ -240,7 +261,7 @@ export default { }) .then((res) => { console.log(res, 11111); - message.success(`${props.edit ? '编辑' : '新增'}关卡任务成功`) + message.success(`${props.edit ? "编辑" : "新增"}关卡任务成功`); ctx.emit("changeData", false); closeDrawer(); state.addLoading = false; @@ -248,7 +269,7 @@ export default { .catch((err) => { console.log(err, 1111); }); - } else if(props.isLevel==2){ + } else if (props.isLevel == 2) { console.log("=========projectTaskId", props.projectTaskId); apiTask .addTask({ @@ -267,10 +288,10 @@ export default { .catch((err) => { console.log(err, 111111); }); - }else if(props.isLevel==3){ + } else if (props.isLevel == 3) { console.log("模板库"); } - } + }; //重置案例信息 const resetCase = () => { state.inputV1 = ""; @@ -297,181 +318,181 @@ export default { \ No newline at end of file diff --git a/src/components/drawers/AddDiscuss.vue b/src/components/drawers/AddDiscuss.vue index 82c753f3..7cd9a3c9 100644 --- a/src/components/drawers/AddDiscuss.vue +++ b/src/components/drawers/AddDiscuss.vue @@ -174,6 +174,7 @@ export default { state.inputV1 = ""; state.textV1 = ""; message.success(`${props.edit ? "编辑" : "新增"}关卡任务成功`); + // ctx.emit("changeData", false); localStorage.setItem("stageId", props.chooseStageId); localStorage.setItem("chapterId", props.isactive); }; diff --git a/src/components/drawers/AddEval.vue b/src/components/drawers/AddEval.vue index daf6e24b..b934924f 100644 --- a/src/components/drawers/AddEval.vue +++ b/src/components/drawers/AddEval.vue @@ -9,7 +9,7 @@ >
-
{{edit?'编辑':'添加'}}测评
+
{{ edit ? "编辑" : "添加" }}测评
选择测评:
- +
-
-
- +
+ +
@@ -78,8 +80,12 @@ 测评说明:
- - +
@@ -102,11 +108,11 @@ import * as api from "../../api/indexEval"; import * as apitaskadd from "../../api/indexTaskadd"; import { message } from "ant-design-vue"; import { RouterEditTask } from "@/api/indexTask"; -import dayjs from 'dayjs'; +import dayjs from "dayjs"; // const router = useRouter(); export default { name: "AddEval", - components: { + components: { EvList, }, props: { @@ -118,7 +124,8 @@ export default { type: Number, default: null, }, - edit: { // 是否为编辑 + edit: { + // 是否为编辑 type: Boolean, default: null, }, @@ -134,11 +141,13 @@ export default { type: Number, default: 0, }, - isLevel: { // 是否是关卡页面触发 + isLevel: { + // 是否是关卡页面触发 type: Number, default: null, }, - projectTaskId: { // 要编辑的projectId + projectTaskId: { + // 要编辑的projectId type: Number, default: null, }, @@ -157,10 +166,10 @@ export default { inputV2: "", time: undefined, EvalId: null, - evaluationTypeId:null, - evaluationTypeName:"", - description:"", - EvalListVisible:false, + evaluationTypeId: null, + evaluationTypeName: "", + description: "", + EvalListVisible: false, // addLoading:false, }); @@ -169,67 +178,72 @@ export default { ctx.emit("update:edit", false); state.inputV1 = ""; state.inputV2 = ""; + localStorage.setItem("stageId", props.chooseStageId); + localStorage.setItem("chapterId", props.isactive); }; const afterVisibleChange = (bool) => { - if(props.edit && bool){ + if (props.edit && bool) { queryEval(); } }; - const showEvalDrawer = () =>{ + const showEvalDrawer = () => { state.EvalListVisible = true; console.log("进来了吗"); }; - const queryEval = () =>{ + const queryEval = () => { api - .queryEvaluationDetailById({evaluationId:props.evaluationId}) - .then((res) => { - console.log("调用项目添加接口后", res.data.data); - state.inputV1 = res.data.data.evaluationName; - state.time = [dayjs(res.data.data.evaluationStartTime, "YYYY-MM-DD"), dayjs(res.data.data.evaluationEndTime, "YYYY-MM-DD")]; - state.evaluationTypeId = res.data.data.evaluationTypeId; - state.evaluationTypeName =res.data.data.evaluationTypeName; - //state.description = + .queryEvaluationDetailById({ evaluationId: props.evaluationId }) + .then((res) => { + console.log("调用项目添加接口后", res.data.data); + state.inputV1 = res.data.data.evaluationName; + state.time = [ + dayjs(res.data.data.evaluationStartTime, "YYYY-MM-DD"), + dayjs(res.data.data.evaluationEndTime, "YYYY-MM-DD"), + ]; + state.evaluationTypeId = res.data.data.evaluationTypeId; + state.evaluationTypeName = res.data.data.evaluationTypeName; + //state.description = }) .catch((err) => { console.log(err); }); - } - const updateTask = (res)=>{ - if(props.isLevel ==1){ + }; + const updateTask = (res) => { + if (props.isLevel == 1) { apitaskadd - .addTask({ - courseId: res.data.data.evaluationId, - name: res.data.data.evaluationName, - projectId: props.projectId, - projectTaskId: props.projectTaskId || 0, - stageId: props.chooseStageId, - type: 10, - }) - .then((res) => { - console.log("调用项目添加接口后", res.data); - - }) - .catch((err) => { - console.log(err); - }); - }else if(props.isLevel ==2){ + .addTask({ + courseId: res.data.data.evaluationId, + name: res.data.data.evaluationName, + projectId: props.projectId, + projectTaskId: props.projectTaskId || 0, + stageId: props.chooseStageId, + type: 10, + }) + .then((res) => { + console.log("调用项目添加接口后", res.data); + }) + .catch((err) => { + console.log(err); + }); + } else if (props.isLevel == 2) { RouterEditTask({ - chapterId: props.isactive, - courseId: res.data.data.evaluationId, - name: res.data.data.evaluationName, - routerId: props.routerId, - routerTaskId: props.routerTaskId || 0, - type: 10, - }).then((res) => { - console.log("调用项目添加接口后", res.data); - - }).catch((err) => { - console.log(err); - }); - }else if(props.isLevel ==3){ - console.log("模板库任务") + chapterId: props.isactive, + courseId: res.data.data.evaluationId, + name: res.data.data.evaluationName, + routerId: props.routerId, + routerTaskId: props.routerTaskId || 0, + type: 10, + }) + .then((res) => { + console.log("调用项目添加接口后", res.data); + }) + .catch((err) => { + console.log(err); + }); + } else if (props.isLevel == 3) { + console.log("模板库任务"); } - } + }; //创建或编辑测评信息 const createEvalText = () => { if (!state.inputV1) { @@ -248,36 +262,36 @@ export default { let obj = { evaluationName: state.inputV1, evaluationEndTime: dayjs(state.time[1]).format("YYYY-MM-DD"), - evaluationId: props.edit?props.evaluationId:0, + evaluationId: props.edit ? props.evaluationId : 0, evaluationStartTime: dayjs(state.time[0]).format("YYYY-MM-DD"), - evaluationTypeId:state.evaluationTypeId, - evaluationTypeName:state.evaluationTypeName, + evaluationTypeId: state.evaluationTypeId, + evaluationTypeName: state.evaluationTypeName, //state.description }; - if(props.edit){ + if (props.edit) { api - .createEvaluation(obj) - .then((res) => { - updateTask(res); - message.success("创建成功"); - closeDrawer(); - ctx.emit("changeData", false); - }) - .catch((err) => { - console.log(err); - }); - }else{ + .createEvaluation(obj) + .then((res) => { + updateTask(res); + message.success("创建成功"); + closeDrawer(); + ctx.emit("changeData", false); + }) + .catch((err) => { + console.log(err); + }); + } else { api - .updateEvaluation(obj) - .then((res) => { - updateTask(res); - message.success("创建成功"); - closeDrawer(); - ctx.emit("changeData", false); - }) - .catch((err) => { - console.log(err); - }); + .updateEvaluation(obj) + .then((res) => { + updateTask(res); + message.success("创建成功"); + closeDrawer(); + ctx.emit("changeData", false); + }) + .catch((err) => { + console.log(err); + }); } }; @@ -318,7 +332,7 @@ export default { display: flex; justify-content: space-between; .main_left { - margin-top:32px; + margin-top: 32px; padding-right: 30px; flex: 1; border-right: 1px solid #e8e8e8; diff --git a/src/components/drawers/AddFaceteach.vue b/src/components/drawers/AddFaceteach.vue index 25a37258..a6b099c3 100644 --- a/src/components/drawers/AddFaceteach.vue +++ b/src/components/drawers/AddFaceteach.vue @@ -384,6 +384,8 @@ export default { ctx.emit("update:addfaceteachVisible", false); state.radioV1 = ""; state.radioV2 = ""; + localStorage.setItem("stageId", props.chooseStageId); + localStorage.setItem("chapterId", props.isactive); }; const afterVisibleChange = (bool) => { console.log("state", bool); diff --git a/src/components/drawers/AddHomework.vue b/src/components/drawers/AddHomework.vue index 8c0dbe82..e1149ca0 100644 --- a/src/components/drawers/AddHomework.vue +++ b/src/components/drawers/AddHomework.vue @@ -279,6 +279,9 @@ export default { formState.choosedTime = ""; ctx.emit("update:addhomeworkVisible", false); ctx.emit("update:edit", false); + ctx.emit("changeData", false); + localStorage.setItem("stageId", props.chooseStageId); + localStorage.setItem("chapterId", props.isactive); }; const afterVisibleChange = (bool) => { if (props.addhomeworkVisible && props.edit) { @@ -288,38 +291,35 @@ export default { console.log("state", bool); }; - - // 新增任务 const updteHomeWork = () => { let obj = { submitEndTime: dayjs(formState.choosedTime[1]).format("YYYY-MM-DD"), submitStartTime: dayjs(formState.choosedTime[0]).format("YYYY-MM-DD"), workEnclosureAddress: "", - workId: props.edit?props.EditWorkId:0, + workId: props.edit ? props.EditWorkId : 0, workName: formState.workName, workRequirement: formState.workRequirement, }; - if(props.edit){ + if (props.edit) { updateWorkTaskUsing(obj) - .then((res) => { - updateTask(res); - closeDrawer(); - }) - .catch((err) => { - message.error(`添加失败${err}`); - }); - }else{ + .then((res) => { + updateTask(res); + closeDrawer(); + }) + .catch((err) => { + message.error(`添加失败${err}`); + }); + } else { createWorkTask(obj) - .then((res) => { - updateTask(res); - closeDrawer(); - }) - .catch((err) => { - message.error(`添加失败${err}`); - }); + .then((res) => { + updateTask(res); + closeDrawer(); + }) + .catch((err) => { + message.error(`添加失败${err}`); + }); } - }; // 查询任务 @@ -345,50 +345,48 @@ export default { }; // 新增编辑或新增项目任务 const updateTask = (res) => { - if(props.isLevel==1 ){ + if (props.isLevel == 1) { let editObj1 = { - chapterId: props.isactive, - courseId: res.data.data.workId, - name: res.data.data.workName, - routerId: props.routerId, - routerTaskId: props.routerTaskId || 0, - type: 4, - }; + chapterId: props.isactive, + courseId: res.data.data.workId, + name: res.data.data.workName, + routerId: props.routerId, + routerTaskId: props.routerTaskId || 0, + type: 4, + }; - RouterEditTask(editObj1) - .then(() => { - message.success(`${props.edit ? "编辑" : "新增"}关卡任务成功`); - ctx.emit("changeData", false); - state.addLoading = false; - }) - .catch(() => { - message.error(`${props.edit ? "编辑" : "新增"}关卡任务失败`); - }); - }else if(props.isLevel==2){ + RouterEditTask(editObj1) + .then(() => { + message.success(`${props.edit ? "编辑" : "新增"}关卡任务成功`); + ctx.emit("changeData", false); + state.addLoading = false; + }) + .catch(() => { + message.error(`${props.edit ? "编辑" : "新增"}关卡任务失败`); + }); + } else if (props.isLevel == 2) { let editObj = { - courseId: res.data.data.workId, - name:res.data.data.workName, - projectId: props.edit?props.projectId:0, - projectTaskId: props.projectTaskId || 0, - stageId: props.chooseStageId, - type: 4, - }; - ProjectEditTask(editObj) - .then(() => { - message.success(`${props.edit ? "编辑" : "新增"}阶段任务成功`); - ctx.emit("changeData", false); - state.addLoading = false; - }) - .catch(() => { - message.error(`${props.edit ? "编辑" : "新增"}阶段任务失败`); - }); - }else if(props.isLevel==3){ + courseId: res.data.data.workId, + name: res.data.data.workName, + projectId: props.edit ? props.projectId : 0, + projectTaskId: props.projectTaskId || 0, + stageId: props.chooseStageId, + type: 4, + }; + ProjectEditTask(editObj) + .then(() => { + message.success(`${props.edit ? "编辑" : "新增"}阶段任务成功`); + ctx.emit("changeData", false); + state.addLoading = false; + }) + .catch(() => { + message.error(`${props.edit ? "编辑" : "新增"}阶段任务失败`); + }); + } else if (props.isLevel == 3) { console.log("模板库更新更新任务列表"); } - }; - return { afterVisibleChange, closeDrawer, @@ -440,7 +438,7 @@ export default { padding-right: 30px; flex: 1; border-right: 1px solid #e8e8e8; - margin-top:32px; + margin-top: 32px; .main_item { display: flex; diff --git a/src/components/drawers/AddInvist.vue b/src/components/drawers/AddInvist.vue index f7140bef..e6d9fa53 100644 --- a/src/components/drawers/AddInvist.vue +++ b/src/components/drawers/AddInvist.vue @@ -18,51 +18,61 @@ />
-
-
-
-
-
-
- 已选择 0 -
-
- 已选择 1 条; - 名称: {{assessment.name}} - 题数: {{assessment.num}} - 创建人: {{assessment.creator}} - 创建时间: {{assessment.time}} -
-
- -
-
-
- -
- -
选择评估
-
- +
+
+
+
+
+
+ 已选择 0 +
+
+ 已选择 1 条; + 名称: {{ assessment.name }} + + 题数: {{ assessment.num }} + + 创建人: {{ assessment.creator }} + + 创建时间: {{ assessment.time }} + +
+
+
+
+
+ +
选择评估
+
+ +
+
+
- +
+ + +
-
- - -
-
-
+ \ No newline at end of file diff --git a/src/components/drawers/CheckWork.vue b/src/components/drawers/CheckWork.vue new file mode 100644 index 00000000..1dcf08c7 --- /dev/null +++ b/src/components/drawers/CheckWork.vue @@ -0,0 +1,154 @@ + + + + \ No newline at end of file diff --git a/src/components/drawers/ExportHWork.vue b/src/components/drawers/ExportHWork.vue new file mode 100644 index 00000000..f3ca86f8 --- /dev/null +++ b/src/components/drawers/ExportHWork.vue @@ -0,0 +1,243 @@ + + + + \ No newline at end of file diff --git a/src/components/drawers/ExportScore.vue b/src/components/drawers/ExportScore.vue new file mode 100644 index 00000000..b1c4f91e --- /dev/null +++ b/src/components/drawers/ExportScore.vue @@ -0,0 +1,356 @@ + + + + + + \ No newline at end of file diff --git a/src/components/drawers/FaceManage.vue b/src/components/drawers/FaceManage.vue index 317856a2..32bd2e00 100644 --- a/src/components/drawers/FaceManage.vue +++ b/src/components/drawers/FaceManage.vue @@ -117,10 +117,9 @@
- +
- + + + \ No newline at end of file diff --git a/src/components/drawers/TestManage.vue b/src/components/drawers/TestManage.vue index ca76fd5a..6cafdba1 100644 --- a/src/components/drawers/TestManage.vue +++ b/src/components/drawers/TestManage.vue @@ -74,7 +74,7 @@
{ + if(props.itemsType == 10){ + const columns = [ + { + title: "工号", + dataIndex: "workNum", + key: "workNum", + width: 50, + align: "center", + className: "h", + }, + { + title: "姓名", + dataIndex: "name", + key: "name", + width: 50, + align: "center", + className: "h", + }, + { + title: "所在部门", + dataIndex: "deptName", + key: "deptName", + width: 50, + align: "center", + className: "h", + }, + { + title: "所在岗位", + dataIndex: "jobName", + key: "jobName", + width: 50, + align: "center", + className: "h", + }, + { + title: "提交时间", + dataIndex: "cur", + key: "cur", + width: 110, + align: "center", + className: "h", + }, + { + title: "任务状态", + dataIndex: "state", + key: "state", + width: 50, + align: "center", + className: "h", + }, + { + title: "PDF状态", + dataIndex: "pdfstate", + key: "pdfstate", + width: 50, + align: "center", + className: "h", + }, + ]; + return columns; + } else if(props.itemsType == 5){ + const columns = [ + { + title: "工号", + dataIndex: "workNum", + key: "workNum", + width: 50, + align: "center", + className: "h head", + }, + { + title: "姓名", + dataIndex: "userName", + key: "userName", + width: 50, + align: "left", + className: "h head", + }, + { + title: "所在部门", + dataIndex: "deptName", + key: "deptName", + width: 60, + align: "center", + className: "h", + }, + { + title: "所在岗位", + dataIndex: "jobName", + key: "jobName", + width: 60, + align: "center", + className: "h", + }, + { + title: "考试次数", + dataIndex: "testNum", + key: "testNum", + width: 60, + align: "center", + className: "h", + }, + { + title: "成绩", + dataIndex: "score", + key: "score", + width: 60, + align: "center", + className: "h", + }, + { + title: "完成时间", + dataIndex: "time", + key: "time", + width: 100, + align: "center", + className: "h", + }, + { + title: "任务状态", + dataIndex: "status", + key: "status", + width: 60, + align: "center", + className: "h", + }, + { + title: "操作", + dataIndex: "operation", + key: "operation", + width: 60, + align: "center", + className: "h", + }, + ] + return columns; + } + + + }; + //考试、测评管理列表操作 + const ListOpera = () => { + let arr = state.tabledata; + console.log(arr,'-=-=-=-=-=-=-=-=--=-==----=-=-=-'); + arr.map((value) => { + value.operation = ( +
+
{ + console.log(state.tabledata,'++++++++++++'); + }} + > + 查看 +
+
+ ); + }); + state.tabledata = arr; + console.log(state.tabledata,'-----------'); + }; + ListOpera(); const selectProjectName = (value, index) => { console.log("value", value, index); state.projectName = value; @@ -291,8 +411,9 @@ export default { let timer; onMounted(() => { setTimeout(() => { - // getManageList(); + getManageList(); }, 1000); + timer = setInterval(() => { state.open = false; }, 3000); @@ -304,6 +425,7 @@ export default { ...toRefs(state), selectProjectName, closeDrawer, + tableDataFunc, showopen, onMounted, onUnmounted, @@ -317,26 +439,10 @@ export default { + diff --git a/src/views/learningpath/LevelAddDetail.vue b/src/views/learningpath/LevelAddDetail.vue index 918c39d7..8670cacd 100644 --- a/src/views/learningpath/LevelAddDetail.vue +++ b/src/views/learningpath/LevelAddDetail.vue @@ -67,9 +67,6 @@ {{ element.name }}
-
{{ element.name }}
@@ -450,7 +447,7 @@
-
+
@@ -712,8 +709,8 @@
- - + +
@@ -984,7 +981,7 @@ import { storage } from "../../api/storage"; import { deleteStudyTask } from "../../api/indexStudy"; import draggable from "vuedraggable"; import { editTask } from "../../api/indexTaskadd"; -import * as apiProj from "../../api/indexInvist.js"; +import * as apiProj from "../../api/index.js"; import { RouterEditTask } from "@/api/indexTask"; import dayjs from "dayjs"; import { toDate } from "../../api/method"; @@ -1325,7 +1322,6 @@ export default { //关闭项目抽屉 const leaveProjDrawer = () => { state.addprojvisible = false; - state.isLevel = false; }; //在线抽屉 const showDrawerAddOnline = (id,eleId)=>{ @@ -1935,22 +1931,25 @@ export default { //获取全部项目信息接口 const getAllProjText = () => { apiProj - .queryAssessmentDetailList({ - assessmentName: "", - pageNo: state.currentPage, - pageSize: state.pageSize, + .getProjectList({ + "beginTime": 0, + "createName": "", + "endTime": 0, + "manager": "", + "name": "", + "pageNo": 0, + "pageSize": 0, + "status": 0 }) .then((res) => { - let arr = res.data.data.rows; if (res.status === 200) { - getTableDate(arr); - console.log('---------------项目信息---------------------------'); + let arr = res.data.data.rows; + console.log(arr,'-------------------------------'); } }) .catch((err) => { console.log("获取全部项目信息接口失败", err); console.log('+++++++++++++++++++++++++++++++++++++++++++++++'); - // state.createLoading = false; }); }; const updateTask = () => { @@ -2054,10 +2053,6 @@ export default { background: #ffffff; box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21); border-radius: 4px; - // position: absolute; - // left: 50%; - // top: 10%; - // transform: translate(-50%, -50%); .del_header { position: absolute; width: calc(100%); @@ -2100,7 +2095,6 @@ export default { justify-content: center; align-items: center; flex-direction: column; - // background-color: red; position: relative; .back { position: absolute; @@ -2159,7 +2153,6 @@ export default { width: 549px !important; height: 245px !important; .con { - // background-color: #bfa; width: 100%; height: 100%; @@ -2263,7 +2256,6 @@ export default { height: 388px !important; border-radius: 4px !important; .ant-modal-body { - // background-color: blue; width: 100% !important; height: 100% !important; padding: 0 !important; @@ -2300,13 +2292,11 @@ export default { .main { width: 100%; height: calc(100% - 68px); - // background-color: #bfa; display: flex; justify-content: center; .inma { width: 75%; height: 100%; - // background-color: lightblue; .name { display: flex; position: relative; @@ -2392,19 +2382,9 @@ export default { } } .ProjectDrawer { - // .ant-drawer-content-wrapper { - - // .ant-drawer-header { - // display: none !important; - // } - // .ant-drawer-body { - // padding: 0; - // } - // } .drawerMain { min-width: 600px; margin: 0px 32px 0px 32px; - overflow-x: scroll; display: flex; flex-direction: column; .header { @@ -2413,7 +2393,6 @@ export default { display: flex; justify-content: space-between; align-items: center; - // background-color: red; margin-bottom: 20px; flex-shrink: 0; .headerTitle { @@ -2421,11 +2400,10 @@ export default { font-weight: 600; color: #333333; line-height: 25px; - // margin-left: 24px; } } .drawerbox { - margin: 20px 38px 30px; + overflow-y: auto; th { background-color: #eff4fc !important; } diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index 38f4eb9c..3d6746ec 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -406,7 +406,7 @@
- + @@ -2019,7 +2021,8 @@ export default { showWorkText:"", //直播、活动页面传递参数 showkaoqinText: "", - + //所有抽屉的传过去的type + itemstype:null, //排行榜时间 rankStartTime: null, @@ -2311,11 +2314,12 @@ export default { state.TaskFaceImpStuvisible = true; }; //新增 - const showTime = (name, id) => { + const showTime = (name, id, type) => { console.log("点击管理并传了id"); state.visible = true; state.showTimeText = name; state.projectTaskId = id; + state.itemstype = Number(type); }; //新增 const showFace = (name, id) => { @@ -2340,9 +2344,9 @@ export default { state.chooseGroupId = id; }; //活动考勤的抽屉 - const showAA = (course) => { + const showAA = (title) => { state.AAvisible = true; - state.showkaoqinText = "【" + course + "】" + "考勤"; + state.showkaoqinText = title; }; //作业管理的抽屉 const showWork = (name,id) => { @@ -2350,11 +2354,12 @@ export default { state.showWorkText = name; state.projectTaskId = id; }; - //考试管理的抽屉 - const showTest = (name, id) => { + //考试、测评管理的抽屉 + const showTest = (name, id, type) => { state.TMvisible = true; state.showTestText = name; state.projectTaskId = id; + state.itemstype = Number(type); }; const showStuAdd = () => { state.Stuvisible = true; diff --git a/vue.config.js b/vue.config.js index 83ff56c7..3b7a83cb 100644 --- a/vue.config.js +++ b/vue.config.js @@ -5,7 +5,8 @@ module.exports = defineConfig({ port:8080, proxy: { "/api": { - target: "http://111.231.196.214:30001/", //这里后台的地址模拟的;应该填写你们真实的后台接口 + target: "http://192.168.100.208:30019/", + // target: "http://111.231.196.214:30001/", //这里后台的地址模拟的;应该填写你们真实的后台接口 changeOrigin: true, //表示是否改变原域名 // secure: false, // ws: false, //表示WebSocket协议 From 0acb1f027d68863ce2926d906ac49cebed4affa3 Mon Sep 17 00:00:00 2001 From: Ggysh-7 <102372376+Ggysh-7@users.noreply.github.com> Date: Thu, 17 Nov 2022 18:50:05 +0800 Subject: [PATCH 63/90] =?UTF-8?q?fix=EF=BC=9Aconfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vue.config.js b/vue.config.js index 3b7a83cb..278c0e97 100644 --- a/vue.config.js +++ b/vue.config.js @@ -5,8 +5,8 @@ module.exports = defineConfig({ port:8080, proxy: { "/api": { - target: "http://192.168.100.208:30019/", - // target: "http://111.231.196.214:30001/", //这里后台的地址模拟的;应该填写你们真实的后台接口 + // target: "http://192.168.100.208:30019/", + target: "http://111.231.196.214:30001/", //这里后台的地址模拟的;应该填写你们真实的后台接口 changeOrigin: true, //表示是否改变原域名 // secure: false, // ws: false, //表示WebSocket协议 From 132381cc881c0bf62bd6a4684e63db93f69091c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=86=99=E4=B8=9C?= <2195178163@qq.com> Date: Thu, 17 Nov 2022 18:53:50 +0800 Subject: [PATCH 64/90] =?UTF-8?q?feat:=20=E6=8A=95=E7=A5=A8=E9=A2=98?= =?UTF-8?q?=E5=B9=B2=E8=8E=B7=E5=8F=96=EF=BC=8C=E6=88=90=E5=91=98=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4=EF=BC=8C=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=EF=BC=8C=E6=90=9C=E7=B4=A2=EF=BC=8C=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexVote.js | 4 +- src/components/vote/AddVote.vue | 21 +- src/components/vote/queryStem.vue | 86 ++ src/views/learningpath/LevelAdd.vue | 94 +- src/views/projectcenter/LibraryAdd.vue | 21 +- src/views/projectcenter/templateAdd.vue | 1359 +++++++++++++++++++++++ 6 files changed, 1557 insertions(+), 28 deletions(-) create mode 100644 src/components/vote/queryStem.vue create mode 100644 src/views/projectcenter/templateAdd.vue diff --git a/src/api/indexVote.js b/src/api/indexVote.js index fd1a7437..11b05e52 100644 --- a/src/api/indexVote.js +++ b/src/api/indexVote.js @@ -63,7 +63,9 @@ export const deleteVoteStemOption = (obj) => http.post('/vote/deleteVoteStemOpti export const editVote = (obj) => http.post('/vote/editVote', obj) //根据题干ID获取题干信息 -export const queryStemByStemId = (obj) => http.post('/vote/queryStemByStemId', { params: obj }) +export const queryStemByStemId = (obj) => http.post('/vote/queryStemByStemId', obj,{ + headers: {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'} +}) //修改题干信息接口 export const updateStemMessage = (obj) => http.post('/vote/updateStemMessage', obj); diff --git a/src/components/vote/AddVote.vue b/src/components/vote/AddVote.vue index ed6c398f..2b187118 100644 --- a/src/components/vote/AddVote.vue +++ b/src/components/vote/AddVote.vue @@ -56,6 +56,7 @@ > 创建投票 + 查看投票
+ + + + + +
{ @@ -366,6 +376,12 @@ export default { } } + const queryStem = () => { + state.addStemVisible = true; + }; + const closeStem = () => { + state.addStemVisible = false; + }; return { ...toRefs(state), showDrawerCreVote, @@ -376,7 +392,8 @@ export default { dleVoteStem, updateVoteInfo, delBox, - + queryStem, + closeStem, }; }, }; diff --git a/src/components/vote/queryStem.vue b/src/components/vote/queryStem.vue new file mode 100644 index 00000000..e3be6c23 --- /dev/null +++ b/src/components/vote/queryStem.vue @@ -0,0 +1,86 @@ + + + + + \ No newline at end of file diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue index b363e8c2..83c1647d 100644 --- a/src/views/learningpath/LevelAdd.vue +++ b/src/views/learningpath/LevelAdd.vue @@ -98,10 +98,12 @@
快速创建项目详情
+
+
@@ -116,8 +118,9 @@
快速添加任务/关卡
+
@@ -129,7 +132,9 @@
-
+
添加学员
快速添加学员
@@ -155,7 +160,6 @@
-
关卡概览
@@ -215,16 +219,16 @@ stage2: item.stageId != choosedStageId, }" :key="item.stageId" - @click="choosedStageId = item.stageId" + @click="stageChange(item.name,item.stageId)" > - {{ item.stage }} + 关卡{{ item.stageId }}
关卡名称:
-
管理者进阶-腾飞班1第一关卡
+
{{stateName}}
@@ -578,8 +582,8 @@
@@ -588,12 +592,12 @@
已选择
- 3 + {{selectedRowKeys.length}}
列表选项总数: - 5 - + {{tableData.length}} +
@@ -1203,6 +1207,7 @@ export default { CheckStuvisible: false, //学员管理的查看抽屉 addLoading: false, // 加载动画 choosedStageId: 1, // 选择的阶段id + selectedRowKeys:[], twobtn: true, number: true, twobtnn: false, @@ -1214,6 +1219,20 @@ export default { styTitle: null, cretime: null, picUrl: null, + projectNameList:[ + { + value: '1', + label: '导出信息', + }, + { + value: '2', + label: '批量调整关卡', + }, + { + value: '3', + label: '批量删除', + } + ], // 共享文档列表 docList: [ { @@ -1262,7 +1281,7 @@ export default { pageSize: 10, visiblene: false, sh: false, - nodata: false, + nodata: true, closeDeleteAll: false, curLevel: "", taskSyllabusActive: 0, @@ -1279,6 +1298,7 @@ export default { visible: false, //时间管理 TMvisible: false, //考试管理 FaceVisivle: false, //面授管理 + stateName:null, // 关卡名称 //关卡的数据 level: [ // { @@ -1330,11 +1350,11 @@ export default { // 阶段列表 { stageId: 1, - stage: "关卡一", + name: "关卡一xx", }, { stageId: 2, - stage: "关卡二", + name: "关卡二xx", }, ], }); @@ -1542,7 +1562,10 @@ export default { const closehuodModal = () => { state.huodModal = false; }; - + const stageChange = (name,id) => { + state.choosedStageId = id; + state.stateName = name; + } const changeTabs = (e) => { console.log("切换tabs", e, state.routerId); if (e == 2) { @@ -1567,12 +1590,12 @@ export default { .then((res) => { console.log("获取学员列表", res); let data = res.data.data.rows || null; - state.tableData = []; + // state.tableData = []; if (data.length) { for (let i in data) { let _time = new Date(data[i].beginStudyTime * 1000); state.tableData.push({ - key: i + 1, + key: data[i].studentId, com: data[i].userInfoBo.deptName, name: data[i].userInfoBo.userName, gang: data[i].userInfoBo.jobName, @@ -1620,6 +1643,7 @@ export default { onMounted(() => { state.addLoading = true; getOverview(); + myGetRouterDetail(); reget(); }); const closePub = () => { @@ -1807,8 +1831,10 @@ export default { const myGetRouterDetail = () => { GetRouterDetail(state.routerId) .then((res) => { + if(res.data.data.routerInfo.status == 1) { + state.nodata = false; + } let data = res.data.data.chapterList; - state.taskSyllabus = data; // for(let i in data) { // state.taskSyllabus[i].name = data[i].name @@ -1819,8 +1845,13 @@ export default { // }) // } // } - - // } + levelList.stageList = []; + for(let i in data) { + if(i==0) {state.stateName = data[0].name} + levelList.stageList.push({ + stageId:Number(i)+1, + name:data[i].name + }) } }) .catch((err) => { console.log(err); @@ -1869,6 +1900,27 @@ export default { state.gatenamee = ''; getStudent(); }; + const handleStuChange = (value) => { + console.log(value); + if(value == 2) {state.visiblene = true} + if(value == 3 ) { deleteStu() } + }; + const deleteStu = () => { + if(state.selectedRowKeys.length == 0) { + message.warning("请选择成员"); + return } + let obj = { + routerId:100, + studentIds:state.selectedRowKeys, + } + api.delStudent(obj).then((res) => { + console.log(res); + message.success("批量删除成功") + }).catch(err => { + message.error("批量删除失败"+err); + console.log(err) + }) + }; return { ...toRefs(state), ...toRefs(levelList), @@ -1898,6 +1950,7 @@ export default { changeTabs, checkType, handleChange, + handleStuChange, delConfirm, searchLevel, resetLevel, @@ -1914,6 +1967,7 @@ export default { stopLearnPath, showStop, reget, + stageChange, }; }, }; diff --git a/src/views/projectcenter/LibraryAdd.vue b/src/views/projectcenter/LibraryAdd.vue index 87f27829..d2738cac 100644 --- a/src/views/projectcenter/LibraryAdd.vue +++ b/src/views/projectcenter/LibraryAdd.vue @@ -200,7 +200,7 @@ : 'none', }" > - 考勤 +
- 二维码 +
- 管理 +
@@ -388,7 +388,7 @@
基本信息 - 编辑 + 编辑

@@ -593,6 +593,7 @@ import { ref, reactive, defineComponent, toRefs, onMounted} from "vue"; import { message } from "ant-design-vue"; import * as api from "@/api/indexTemplate" +import { useRouter } from "vue-router"; export default defineComponent({ name: "LibraryAdd", setup() { @@ -790,6 +791,7 @@ export default defineComponent({ const value = ref(""); const value2 = ref(""); const textnum = "150"; + const routered = useRouter(); const changeopclo = () => { state.hideshow = !state.hideshow; }; @@ -907,7 +909,15 @@ export default defineComponent({ console.log(err) }) } - + const toEdit = () => { + routered.push({ + path: "/templateAdd", + query: { + projectId: state.projectId, + name: state.name, + }, + }); + } // 新建或编辑阶段 const stateEdit = () => { let obj={ @@ -959,6 +969,7 @@ export default defineComponent({ taskDel, stateEdit, taskEdit, + toEdit, }; }, computed: { diff --git a/src/views/projectcenter/templateAdd.vue b/src/views/projectcenter/templateAdd.vue new file mode 100644 index 00000000..a5cc20ae --- /dev/null +++ b/src/views/projectcenter/templateAdd.vue @@ -0,0 +1,1359 @@ + + + + + \ No newline at end of file From 97a8e6f4c681821df1ad4e4ce83074977609ae67 Mon Sep 17 00:00:00 2001 From: lixg Date: Thu, 17 Nov 2022 21:25:09 +0800 Subject: [PATCH 65/90] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=B3=E5=8D=A1=E5=8F=8A=E9=98=B6=E6=AE=B5?= =?UTF-8?q?=E5=B9=B6=E8=87=AA=E5=8A=A8=E5=88=B7=E6=96=B0=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index1.js | 2 +- src/api/indexStage.js | 12 +- src/assets/images/leveladd/edit1.png | Bin 0 -> 410 bytes src/assets/scss/common.scss | 11 + src/components/BreadCrumb.vue | 52 + src/components/Modals/projSet.vue | 2 +- src/components/NavLeft.vue | 8 +- src/views/courselibrary/CourseManage.vue | 551 +------ src/views/courselibrary/CoursewareManage.vue | 8 +- src/views/learningpath/LevelAddDetail.vue | 1548 ++++++++++-------- src/views/projectcenter/ClassAdd.vue | 6 +- src/views/projectcenter/LibraryAdd.vue | 4 +- src/views/projectcenter/ProjectAdd.vue | 9 +- src/views/projectcenter/ProjectManage.vue | 46 +- src/views/projectcenter/SonProject.vue | 6 +- src/views/projectcenter/TaskAdd.vue | 1501 ++++++++++------- src/views/projectcenter/TaskPage.vue | 159 +- 17 files changed, 1977 insertions(+), 1948 deletions(-) create mode 100644 src/assets/images/leveladd/edit1.png diff --git a/src/api/index1.js b/src/api/index1.js index b8f120f7..d7517673 100644 --- a/src/api/index1.js +++ b/src/api/index1.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-04 22:45:31 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-11-10 11:41:52 + * @LastEditTime: 2022-11-17 15:41:45 * @FilePath: /fe-manage/src/api/index1.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ diff --git a/src/api/indexStage.js b/src/api/indexStage.js index 1e6a2587..a39355b9 100644 --- a/src/api/indexStage.js +++ b/src/api/indexStage.js @@ -1,4 +1,14 @@ +/* + * @Author: lixg lixg@dongwu-inc.com + * @Date: 2022-11-09 09:26:26 + * @LastEditors: lixg lixg@dongwu-inc.com + * @LastEditTime: 2022-11-17 21:20:05 + * @FilePath: /fe-manage/src/api/indexStage.js + * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + */ import http from "./config"; //添加阶段 -export const editStage = (obj) => http.post('/admin/project/editStage', obj); \ No newline at end of file +export const editStage = (obj) => http.post('/admin/project/editStage', obj); +// 删除阶段 +export const deleteStage = (obj) => http.delete('/admin/project/deleteStage',{params:obj}); \ No newline at end of file diff --git a/src/assets/images/leveladd/edit1.png b/src/assets/images/leveladd/edit1.png new file mode 100644 index 0000000000000000000000000000000000000000..e319e324dc5f650105a482cb7eb0825a02335f3b GIT binary patch literal 410 zcmV;L0cHM)P)Px$R7pfZR5(wilD$d;Q4odCvG5HP3tzy_!crf=U3UW_f}K_h7AlE~f6-tf{$Pl~ zLeq$yV0Tw{t$h(IOAE0K=14X%*({q7$W)hm?|gI4%n$-qAX9KdV>>l>qEBb=&K zqi+h_TL|m444VK~06qae0=4?N5ghu$&v2QG&%ggy3fyA|Cjg#knWZQoL(5$Ea@0yD zikvm+utvi|sNj^ANwN_#<)^ZMasX~pC^W-DHxCqRL_4dF6gS;5>iG_+8+(iI@z*#}sNdv5mQ9MEoTjBN{gOU(^b literal 0 HcmV?d00001 diff --git a/src/assets/scss/common.scss b/src/assets/scss/common.scss index 09f462c8..a8adc8b1 100644 --- a/src/assets/scss/common.scss +++ b/src/assets/scss/common.scss @@ -437,6 +437,17 @@ textarea { } } +.ant-modal{ + .modalHeader{ + background: linear-gradient(180deg, rgba(103,64,255,0.2) 0%, rgba(166,168,255,0) 100%) !important; + } + .top{ + background: linear-gradient(180deg, rgba(103,64,255,0.2) 0%, rgba(166,168,255,0) 100%) !important; + } + .del_header{ + background: linear-gradient(180deg, rgba(103,64,255,0.2) 0%, rgba(166,168,255,0) 100%) !important; + } +} //弹窗-------------------------------------------------------- //loading-------------------------------------------------------- diff --git a/src/components/BreadCrumb.vue b/src/components/BreadCrumb.vue index 2abfc972..c4cb108c 100644 --- a/src/components/BreadCrumb.vue +++ b/src/components/BreadCrumb.vue @@ -273,6 +273,58 @@ export default { }, ]; } + if ( + n.indexOf("/coursereviewed") !== -1 || + n.indexOf("/CourseReiewed") !== -1 + ) { + state.list = [ + { + name: "审核管理", + }, + { + name: "已审核课程", + }, + ]; + } + if ( + n.indexOf("/coursereviewedn") !== -1 || + n.indexOf("/CourseReiewedN") !== -1 + ) { + state.list = [ + { + name: "审核管理", + }, + { + name: "待审核课程", + }, + ]; + } + if ( + n.indexOf("/projectreviewed") !== -1 || + n.indexOf("/ProjectReviewed") !== -1 + ) { + state.list = [ + { + name: "审核管理", + }, + { + name: "已审核项目", + }, + ]; + } + if ( + n.indexOf("/projectreviewedn") !== -1 || + n.indexOf("/ProjectReviewedN") !== -1 + ) { + state.list = [ + { + name: "审核管理", + }, + { + name: "待审核项目", + }, + ]; + } } ); diff --git a/src/components/Modals/projSet.vue b/src/components/Modals/projSet.vue index d41a38c6..92306df8 100644 --- a/src/components/Modals/projSet.vue +++ b/src/components/Modals/projSet.vue @@ -180,7 +180,7 @@ alt="" />
- 培训体系: + 培训分类:
- 待审核项目 + 待审核项目 - 已审核项目 + 已审核项目 @@ -307,13 +307,13 @@ export default { pagename: "已审核课程", }, { - href: "/projectviewedn", + href: "/projectreviewedn", openKeys: "sub10", selectedKeys: "sub10-3", pagename: "待审核项目", }, { - href: "/projectviewed", + href: "/projectrrviewed", openKeys: "sub10", selectedKeys: "sub10-4", pagename: "已审核项目", diff --git a/src/views/courselibrary/CourseManage.vue b/src/views/courselibrary/CourseManage.vue index 2a5bf0bc..fb6beea2 100644 --- a/src/views/courselibrary/CourseManage.vue +++ b/src/views/courselibrary/CourseManage.vue @@ -1,458 +1,40 @@ + + + + \ No newline at end of file From c1eda5e1b3886dee0bafed92454e0a6811ede919 Mon Sep 17 00:00:00 2001 From: lixg Date: Fri, 18 Nov 2022 14:09:39 +0800 Subject: [PATCH 70/90] =?UTF-8?q?style:=E4=BF=AE=E6=94=B9=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E5=85=B3=E5=8D=A1=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/learningpath/LevelAddDetail.vue | 169 ++++++++++++++-------- 1 file changed, 112 insertions(+), 57 deletions(-) diff --git a/src/views/learningpath/LevelAddDetail.vue b/src/views/learningpath/LevelAddDetail.vue index 381f5d86..e785af5b 100644 --- a/src/views/learningpath/LevelAddDetail.vue +++ b/src/views/learningpath/LevelAddDetail.vue @@ -1,6 +1,7 @@ + \ No newline at end of file diff --git a/src/components/drawers/CheckQue.vue b/src/components/drawers/CheckQue.vue new file mode 100644 index 00000000..dcfafaa4 --- /dev/null +++ b/src/components/drawers/CheckQue.vue @@ -0,0 +1,287 @@ + + + + \ No newline at end of file diff --git a/src/components/drawers/CheckVote.vue b/src/components/drawers/CheckVote.vue index 527ff43c..5e8b862a 100644 --- a/src/components/drawers/CheckVote.vue +++ b/src/components/drawers/CheckVote.vue @@ -7,26 +7,34 @@ @after-visible-change="afterVisibleChange" >
-
+
查看投票
-
+
评估名称:管理者进阶投票
-
基础信息
-
作业名称:{{"管理者进阶作业"}}
-
作业要求:{{"写一篇观后感,字数600字"}}
-
- 作业信息: -
- -
{{"京东方商业模型.jpeg"}}
-
查看
-
下载
+
投票说明
+
+
+
{{ index+1 +"."+ item.quename }}
+
+ +
+
+ + {{items.answercontent}} + +
+
+
+
@@ -50,8 +58,41 @@ export default { }, setup(props,ctx){ const state = reactive({ - + valueE1:"", + queData:[ + { + quetype:false, + quename:"当前项目对您是否有帮助?", + value:1, + answer:[ + { + value:1, + answercontent:"有帮助" + }, + { + value:2, + answercontent:"mei帮助" + } + ] + }, + { + quetype:true, + quename:"当前项目对您是否有帮助memememememeemme?", + value:2, + answer:[ + { + value:1, + answercontent:"有帮助" + }, + { + value:2, + answercontent:"mei帮助" + } + ] + } + ], }) + const closeDrawer = ()=> { ctx.emit("update:CVvisible",false) } @@ -73,13 +114,12 @@ export default { margin: 0px 32px 0px 32px; display: flex; flex-direction: column; - .header { + .headersub { height: 73px; - border-bottom: 1px solid #e8e8e8; display: flex; justify-content: space-between; align-items: center; - margin-bottom: 20px; + .headerTitle { font-size: 18px; font-weight: 600; @@ -87,34 +127,32 @@ export default { line-height: 25px; } } + .headersup{ + border-bottom: 1px solid #e8e8e8; + padding-bottom: 20px; + } .main { width: 100%; overflow-y: auto; margin-bottom: 70px; .basetext{ - font-size: 16px; - font-weight: 600; color: #333333; line-height: 25px; + margin-top: 27px ; margin-bottom: 27px ; } - .HW{ - margin-bottom: 20px; - } - .hwText{ - display: flex; - align-items: center; - margin: 15px auto; - img{ - background-size: 100% 100%; - } - .hwName{ - margin:auto 10px; - } - .op{ - color:#388be1; - margin: auto 20px; - cursor: pointer; + .basequestion{ + .ques{ + .quename{ + margin: 10px auto ; + font-weight: bold; + } + .queanswer{ + padding-left: 20px; + .queabox{ + margin-bottom: 10px; + } + } } } } diff --git a/src/components/drawers/EvList.vue b/src/components/drawers/EvList.vue index d0bd45ba..5bb04782 100644 --- a/src/components/drawers/EvList.vue +++ b/src/components/drawers/EvList.vue @@ -47,16 +47,10 @@
diff --git a/src/router/config.js b/src/router/config.js index 0265e054..27b6f975 100644 --- a/src/router/config.js +++ b/src/router/config.js @@ -1,16 +1,25 @@ +/* + * @Author: lixg lixg@dongwu-inc.com + * @Date: 2022-11-09 09:26:26 + * @LastEditors: lixg lixg@dongwu-inc.com + * @LastEditTime: 2022-11-21 15:06:51 + * @FilePath: /fe-manage/src/router/config.js + * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + */ const routes = []; const context = require.context("@/views", true, /\.vue$/, "lazy"); context.keys().forEach((path) => { // console.log('path', path) const componentName = path.replace(/.*\/([^\\.\\/]*)\.vue$/, "$1"); routes.push({ - path: `/${componentName.toLowerCase()}/:id?`, + path: `/manage/${componentName.toLowerCase()}/:id?`, name: componentName, component: () => context(path), meta: { isLink: true, }, }); + // console.log('routes', routes) }); export default routes; diff --git a/src/router/index.js b/src/router/index.js index c2134c99..06d1632f 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2,26 +2,24 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-09 09:26:26 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-11-16 09:56:16 + * @LastEditTime: 2022-11-21 14:55:13 * @FilePath: /fe-manage/src/router/index.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ -import { createRouter,createWebHistory } from 'vue-router'; +import { createRouter, createWebHistory } from 'vue-router'; import routesConfig from './config'; -console.log('routesConfig', routesConfig) - const routes = [ { path: '/', name: '首页', - redirect: '/learningpath' + redirect: '/manage/learningpath' }, ...routesConfig ] - const router = createRouter({ history: createWebHistory(), - routes -}) + base: '/manage', + routes, +}) export default router \ No newline at end of file diff --git a/src/store/index.js b/src/store/index.js index fbdb9ea0..2e92cedb 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-09 09:26:26 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-11-20 16:06:52 + * @LastEditTime: 2022-11-21 14:50:47 * @FilePath: /fe-manage/src/store/index.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -15,7 +15,7 @@ export default createStore({ : [ { pagename: "学习路径", - href: "/learningpath", + href: "/manage/learningpath", active: true, }, ], diff --git a/src/views/projectcenter/ProjectAdd.vue b/src/views/projectcenter/ProjectAdd.vue index ec3bd787..72b3903d 100644 --- a/src/views/projectcenter/ProjectAdd.vue +++ b/src/views/projectcenter/ProjectAdd.vue @@ -785,14 +785,14 @@ export default { console.log(`selected ${key}`, classifyList5.value); //获取模版信息 let obj = { - projectId: Number(key), + projectTemplateId: Number(key), }; api - .getProjectDetail(obj) + .getTemplateDetail(obj) .then((res) => { - console.log("获取项目详情", res); + console.log("获取模版详情", res); if (res.status === 200) { - let info = res.data.data.projectInfo; + let info = res.data.data.projectTemplateInfo; console.log(info); // projectName classifySelect imageUrl * classifySelect1 * remark checked classifySelect3 classifySelect4 changeChecked1 * projectName.value = info.name; @@ -852,7 +852,7 @@ export default { // projectId:id?id:'' }; api - .getProjectList(obj) + .getTemplate(obj) .then((res) => { console.log("获取模版列表", res); state.totalPages = Number(res.data.data.pages); @@ -861,7 +861,7 @@ export default { let array = classifyList5.value; arr.map((value) => { let obj = { - value: value.projectId, + value: value.projectTemplateId, label: value.name, }; array.push(obj); diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue index b1172c7f..29c15a0a 100644 --- a/src/views/projectcenter/TaskAdd.vue +++ b/src/views/projectcenter/TaskAdd.vue @@ -1047,6 +1047,8 @@ import * as apimove from "../../api/indexMovetask"; import draggable from "vuedraggable"; import { storage } from "../../api/storage"; import UnlockMode from "../../components/drawers/UnlockMode.vue"; +// import * as api1 from "../../api/index1"; + const drawercolumns = [ { title: "项目名称", From 8dd1053fb4d0a769d86f4ff4dc1ba12aebced8e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E8=B6=85?= Date: Mon, 21 Nov 2022 15:12:23 +0800 Subject: [PATCH 77/90] =?UTF-8?q?feat=EF=BC=9A=E9=94=81=E5=AE=9A=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E9=98=B6=E6=AE=B5=20=E9=9D=A2=E6=8E=88=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=20=E5=85=AC=E5=91=8A=20=E5=8E=86=E5=8F=B2=E5=85=AC?= =?UTF-8?q?=E5=91=8A=20=E9=A1=B9=E7=9B=AE=E7=A7=AF=E5=88=86=E8=A7=84?= =?UTF-8?q?=E5=88=99=20=E9=A1=B9=E7=9B=AE=E5=85=B1=E4=BA=AB=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexFace.js | 4 + src/api/indexNotice.js | 13 + src/api/method.js | 707 ++++++++++++------------ src/components/drawers/AddFaceteach.vue | 127 ++++- src/components/drawers/NoticeHis.vue | 37 +- src/components/drawers/NoticePub.vue | 34 +- src/components/drawers/ProjectScore.vue | 95 +++- src/views/projectcenter/TaskAdd.vue | 69 ++- src/views/projectcenter/TaskPage.vue | 179 +++++- 9 files changed, 790 insertions(+), 475 deletions(-) create mode 100644 src/api/indexFace.js create mode 100644 src/api/indexNotice.js diff --git a/src/api/indexFace.js b/src/api/indexFace.js new file mode 100644 index 00000000..731e8fc1 --- /dev/null +++ b/src/api/indexFace.js @@ -0,0 +1,4 @@ +import http from "./config"; + +//获取面授课开课详情 +export const queryFaceDetailById = (offcoursePlanId) => http.post(`http://localhost:8080/api/admin/offcourse/detailPlan?offcoursePlanId=` + offcoursePlanId + ``) \ No newline at end of file diff --git a/src/api/indexNotice.js b/src/api/indexNotice.js new file mode 100644 index 00000000..c6eb8fa7 --- /dev/null +++ b/src/api/indexNotice.js @@ -0,0 +1,13 @@ +import http from "./config"; + +//获取公告列表 +// export const noticeList = (projectId) => http.post('/admin/project/noticeList', { +// params: { +// projectId: projectId, +// } +// }); +export const noticeList = (projectId) => http.post(`http://localhost:8080/api/admin/project/noticeList?projectId=` + projectId + ``) + +//发布项目公告 +export const publishNotice = (obj) => http.post('/admin/project/publishNotice', obj) + diff --git a/src/api/method.js b/src/api/method.js index 4fb3d4ff..80dcd101 100644 --- a/src/api/method.js +++ b/src/api/method.js @@ -1,376 +1,377 @@ function formatNumber(n) { - n = n.toString(); - return n[1] ? n : "0" + n; + n = n.toString(); + return n[1] ? n : "0" + n; } function toDate(number, format) { - var formateArr = ["Y", "M", "D", "h", "m", "s"]; - var returnArr = []; + var formateArr = ["Y", "M", "D", "h", "m", "s"]; + var returnArr = []; - if (number === 0) { - return 0; - } else { - var date = new Date(number * 1000); - } - returnArr.push(date.getFullYear()); - returnArr.push(formatNumber(date.getMonth() + 1)); - returnArr.push(formatNumber(date.getDate())); + if (number === 0) { + return 0; + } else { + var date = new Date(number * 1000); + } + returnArr.push(date.getFullYear()); + returnArr.push(formatNumber(date.getMonth() + 1)); + returnArr.push(formatNumber(date.getDate())); - returnArr.push(formatNumber(date.getHours())); - returnArr.push(formatNumber(date.getMinutes())); - returnArr.push(formatNumber(date.getSeconds())); + returnArr.push(formatNumber(date.getHours())); + returnArr.push(formatNumber(date.getMinutes())); + returnArr.push(formatNumber(date.getSeconds())); - for (var i in returnArr) { - format = format.replace(formateArr[i], returnArr[i]); - } - return format; + for (var i in returnArr) { + format = format.replace(formateArr[i], returnArr[i]); + } + return format; } function getWeek(date) { - //date:'Y-M-D' - let time = new Date(date).getDay() - let week; - if (time == 0) week = "星期日" - if (time == 1) week = "星期一" - if (time == 2) week = "星期二" - if (time == 3) week = "星期三" - if (time == 4) week = "星期四" - if (time == 5) week = "星期五" - if (time == 6) week = "星期六" - return week; + //date:'Y-M-D' + let time = new Date(date).getDay() + let week; + if (time == 0) week = "星期日" + if (time == 1) week = "星期一" + if (time == 2) week = "星期二" + if (time == 3) week = "星期三" + if (time == 4) week = "星期四" + if (time == 5) week = "星期五" + if (time == 6) week = "星期六" + return week; } /************************************将数字搞成带逗号的那种*********************************************/ function autoComma(number) { - // let number = parseInt(numb) - if (number) { - let newNum = ""; //中间变量 - let arr = []; - let arr1 = []; - let num = ""; //最终结果 - let isDecimal = false; //是不是小数 - let decimal = 0; //小数点所在位置 - let decimalNum = ""; //小数点和以后的数据 - let negative = false; //是不是负数 - // 判断百万级别或者上亿级别 - let thousand = false; - let Billion = false; + // let number = parseInt(numb) + if (number) { + let newNum = ""; //中间变量 + let arr = []; + let arr1 = []; + let num = ""; //最终结果 + let isDecimal = false; //是不是小数 + let decimal = 0; //小数点所在位置 + let decimalNum = ""; //小数点和以后的数据 + let negative = false; //是不是负数 + // 判断百万级别或者上亿级别 + let thousand = false; + let Billion = false; - if ( - (number >= 10000 || number <= -10000) && - number < 100000000 && - number > -100000000 - ) { - thousand = true; - number = number / 10000; - } - if (number >= 100000000 || number <= -100000000) { - thousand = false; - Billion = true; - number = number / 100000000; - } + if ( + (number >= 10000 || number <= -10000) && + number < 100000000 && + number > -100000000 + ) { + thousand = true; + number = number / 10000; + } + if (number >= 100000000 || number <= -100000000) { + thousand = false; + Billion = true; + number = number / 100000000; + } - if (number < 0) { - number = Math.abs(number); - negative = true; - } - let numStr = JSON.stringify(number); - // 如果传入的是小数,逗号的添加位置和整数是有区别滴 - for (let i = 0; i < numStr.length; i++) { - if (numStr[i] === ".") { - isDecimal = true; - decimal = i; - decimalNum = numStr.slice(decimal, numStr.length); - // 保留两位小数 - if (decimalNum.length > 2) { - decimalNum = decimalNum.slice(0, 3); - } - numStr = numStr.slice(0, decimal); - } - } - for (let i = 0; i < numStr.length; i++) { - arr.push(numStr[numStr.length - i - 1]); - } - for (let i = 0; i < arr.length; i++) { - if ((i + 1) % 3 === 0 && i + 1 !== 0 && i + 1 < arr.length) { - newNum += arr[i]; - newNum = newNum + ","; - } else { - newNum += arr[i]; - } - } - for (let i = 0; i < newNum.length; i++) { - arr1.push(newNum[newNum.length - i - 1]); - } - for (let i = 0; i < arr1.length; i++) { - num += arr1[i]; - } - if (isDecimal) { - if (negative) { - // num = '-' + num + decimalNum - // return num - if (thousand) { - num = "-" + num + decimalNum + "万"; - return num; - } else if (Billion) { - num = "-" + num + decimalNum + "亿"; - return num; - } else { - num = "-" + num + decimalNum; - return num; - } - } else { - // num = num + decimalNum - // return num - if (thousand) { - num = num + decimalNum + "万"; - return num; - } else if (Billion) { - num = num + decimalNum + "亿"; - return num; - } else { - num = num + decimalNum; - return num; - } - } - } else { - if (negative) { - // num = '-' + num - // return num - if (thousand) { - num = "-" + num + "万"; - return num; - } else if (Billion) { - num = "-" + num + "亿"; - return num; - } else { - num = "-" + num; - return num; - } - } else { - if (thousand) { - num = num + "万"; - return num; - } else if (Billion) { - num = num + "亿"; - return num; - } else { - return num; - } - } - } - } else { - return 0; - } + if (number < 0) { + number = Math.abs(number); + negative = true; + } + let numStr = JSON.stringify(number); + // 如果传入的是小数,逗号的添加位置和整数是有区别滴 + for (let i = 0; i < numStr.length; i++) { + if (numStr[i] === ".") { + isDecimal = true; + decimal = i; + decimalNum = numStr.slice(decimal, numStr.length); + // 保留两位小数 + if (decimalNum.length > 2) { + decimalNum = decimalNum.slice(0, 3); + } + numStr = numStr.slice(0, decimal); + } + } + for (let i = 0; i < numStr.length; i++) { + arr.push(numStr[numStr.length - i - 1]); + } + for (let i = 0; i < arr.length; i++) { + if ((i + 1) % 3 === 0 && i + 1 !== 0 && i + 1 < arr.length) { + newNum += arr[i]; + newNum = newNum + ","; + } else { + newNum += arr[i]; + } + } + for (let i = 0; i < newNum.length; i++) { + arr1.push(newNum[newNum.length - i - 1]); + } + for (let i = 0; i < arr1.length; i++) { + num += arr1[i]; + } + if (isDecimal) { + if (negative) { + // num = '-' + num + decimalNum + // return num + if (thousand) { + num = "-" + num + decimalNum + "万"; + return num; + } else if (Billion) { + num = "-" + num + decimalNum + "亿"; + return num; + } else { + num = "-" + num + decimalNum; + return num; + } + } else { + // num = num + decimalNum + // return num + if (thousand) { + num = num + decimalNum + "万"; + return num; + } else if (Billion) { + num = num + decimalNum + "亿"; + return num; + } else { + num = num + decimalNum; + return num; + } + } + } else { + if (negative) { + // num = '-' + num + // return num + if (thousand) { + num = "-" + num + "万"; + return num; + } else if (Billion) { + num = "-" + num + "亿"; + return num; + } else { + num = "-" + num; + return num; + } + } else { + if (thousand) { + num = num + "万"; + return num; + } else if (Billion) { + num = num + "亿"; + return num; + } else { + return num; + } + } + } + } else { + return 0; + } } -const commonData={ - timeout:50 +const commonData = { + timeout: 50 } //组织树 -const organizationalTree= [ - { - title: "京东方", - value: "京东方", - children: [ - { - title: "产研部", - value: "产研部", - children: [ - { - title: "产品部", - value: "产品部", - }, - { - title: "研究部", - value: "研究部", - }, - { - title: "研究部2", - value: "研究部2", - }, - { - title: "研究3", - value: "研究3", - }, - { - title: "研究4", - value: "研究4", - }, - { - title: "研究部5", - value: "研究部5", - }, - { - title: "研究部6", - value: "研究部6", - }, - { - title: "研究部7", - value: "研究部7", - }, - { - title: "研究部8", - value: "研究部8", - }, - { - title: "研究部9", - value: "研究部9", - }, - ], - }, - { - title: "二级标题", - value: "二级标题", - children: [ - { - title: "三级标题", - value: "三级标题", - children: [ - { - title: "四级标题", - value: "四级标题", - children: [ - { - title: "五级标题", - value: "五级标题", - children: [ - { - title: "六级标题", - value: "六级标题", - children: [ - { - title: "七级标题", - value: "七级标题", - children: [ - { - title: "八级标题", - value: "八级标题", - children: [ - { - title: "九级标题", - value: "九级标题", - children: [ - { - title: "十级标题", - value: "十级标题", - children: [ - { - title: "十一级标题", - value: "十一级标题", - children: [ - { - title: "十二级标题", - value: "十二级标题", - children: [ - { - title: - "十三级标题十三级标题十三级标题十三级标题", - value: "十三级标题", - children: [ - { - title: - "十四级标题", - value: - "十四级标题", - children: [ - { - title: - "十五级标题", - value: - "十五级标题", - children: [ - { - title: - "十六级标题", - value: - "十六级标题", - children: - [ - { - title: - "十七级标题", - value: - "十七级标题", - children: - [ - { - title: - "十八级标题", - value: - "十八级标题", - children: - [ - { - title: - "十九级标题", - value: - "十九级标题", - children: - [ - { - title: - "二十级标题二十级标题", - value: - "二十级标题二十级标题", - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - { - title: "人力资源部", - value: "人力资源部", - children: [ - { - title: "人事部", - value: "人事部", - }, - { - title: "行政部", - value: "行政部", - }, - ], - }, - ], - }, +const organizationalTree = [ + { + title: "京东方", + value: "京东方", + children: [ + { + title: "产研部", + value: "产研部", + children: [ + { + title: "产品部", + value: "产品部", + }, + { + title: "研究部", + value: "研究部", + }, + { + title: "研究部2", + value: "研究部2", + }, + { + title: "研究3", + value: "研究3", + }, + { + title: "研究4", + value: "研究4", + }, + { + title: "研究部5", + value: "研究部5", + }, + { + title: "研究部6", + value: "研究部6", + }, + { + title: "研究部7", + value: "研究部7", + }, + { + title: "研究部8", + value: "研究部8", + }, + { + title: "研究部9", + value: "研究部9", + }, + ], + }, + { + title: "二级标题", + value: "二级标题", + children: [ + { + title: "三级标题", + value: "三级标题", + children: [ + { + title: "四级标题", + value: "四级标题", + children: [ + { + title: "五级标题", + value: "五级标题", + children: [ + { + title: "六级标题", + value: "六级标题", + children: [ + { + title: "七级标题", + value: "七级标题", + children: [ + { + title: "八级标题", + value: "八级标题", + children: [ + { + title: "九级标题", + value: "九级标题", + children: [ + { + title: "十级标题", + value: "十级标题", + children: [ + { + title: "十一级标题", + value: "十一级标题", + children: [ + { + title: "十二级标题", + value: "十二级标题", + children: [ + { + title: + "十三级标题十三级标题十三级标题十三级标题", + value: "十三级标题", + children: [ + { + title: + "十四级标题", + value: + "十四级标题", + children: [ + { + title: + "十五级标题", + value: + "十五级标题", + children: [ + { + title: + "十六级标题", + value: + "十六级标题", + children: + [ + { + title: + "十七级标题", + value: + "十七级标题", + children: + [ + { + title: + "十八级标题", + value: + "十八级标题", + children: + [ + { + title: + "十九级标题", + value: + "十九级标题", + children: + [ + { + title: + "二十级标题二十级标题", + value: + "二十级标题二十级标题", + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + { + title: "人力资源部", + value: "人力资源部", + children: [ + { + title: "人事部", + value: "人事部", + }, + { + title: "行政部", + value: "行政部", + }, + ], + }, + ], + }, ] export { - toDate, - getWeek, - autoComma, - commonData, - organizationalTree, + toDate, + getWeek, + autoComma, + formatNumber, + commonData, + organizationalTree, } \ No newline at end of file diff --git a/src/components/drawers/AddFaceteach.vue b/src/components/drawers/AddFaceteach.vue index 21258240..c366534a 100644 --- a/src/components/drawers/AddFaceteach.vue +++ b/src/components/drawers/AddFaceteach.vue @@ -102,6 +102,7 @@
@@ -185,10 +186,10 @@ 分钟
- - +
@@ -230,7 +231,7 @@ 其他设置:
- 学员请假后记为任务完成
@@ -255,7 +256,9 @@ 评估:
- 需要评估 + 需要评估
@@ -309,7 +312,11 @@ import { reactive, toRefs } from "vue"; import SelFacet from "../../components/drawers/SelFacet.vue"; import AddHomework from "../../components/drawers/AddHomework.vue"; import AddTest from "../../components/drawers/AddTest.vue"; - +import { ProjectEditTask, RouterEditTask } from "@/api/indexTask"; +// import * as method from "../../api/method" +import { message } from "ant-design-vue"; +import { queryFaceDetailById } from "../../api/indexFace"; +import dayjs from "dayjs"; export default { name: "AddFaceteach", components: { @@ -379,6 +386,10 @@ export default { testV1: "", radioV1: "", radioV2: "", + textV1: "", + checkedHolidy: false, + checkedAssessment: false, + chooseTime: [], }); const closeDrawer = () => { ctx.emit("update:addfaceteachVisible", false); @@ -388,9 +399,11 @@ export default { localStorage.setItem("chapterId", props.isactive); }; const afterVisibleChange = (bool) => { - if (bool) { + if (bool && props.edit) { + // 该页面显示同时 edit为true 时,发送查询请求, queryFaceTeach(); } + // queryFaceTeach(); }; const showDrawerSelFacet = () => { state.selfacetvisible = true; @@ -412,12 +425,102 @@ export default { } }; //查询面授 - const queryFaceTeach = () => {}; - //更新任务列表 - const updateTask = () => {}; + const queryFaceTeach = () => { + //暂时写一个假的offcoursePlanId + queryFaceDetailById(2).then((res) => { + // state.inputV1 = res.data.data.name; + // state.inputV2 = res.data.data.teacherId; + console.log("获取到了面授课开课详情", res.data.data); + let result = res.data.data; + state.inputV1 = result.name; + state.textV1 = result.description; + state.inputV2 = result.teacher; + if (result.beginTime && result.endTime) { + state.chooseTime = [ + dayjs(result.beginTime, "YYYY-MM-DD"), + dayjs(result.endTime, "YYYY-MM-DD"), + ]; + } else { + state.chooseTime = []; + } + state.inputV4 = result.address; + state.inputV5 = result.beforeStart; + state.inputV6 = result.afterStart; + state.inputV7 = result.beforeEnd; + // state.radioV1 = result. + state.checkedHolidy = + result.completeType == 1 + ? false + : result.completeType == 2 + ? false + : result.completeType == 3 + ? true + : false; + if (result.projectMember) { + state.radioV2 = "1"; + } else if (result.noProjectMember) { + state.radioV2 = "2"; + } else { + state.radioV2 = ""; + } + if (result.completeSet == 1) { + state.radioV1 = "1"; + } else { + state.radioV1 = "2"; + } + state.checkedAssessment = result.evalFlag == 1 ? true : false; + }); + }; + //新建或编辑面授 const updateFaceTeach = () => {}; - const upDateTable = () => { + const upDateTable = () => {}; + + //更新任务列表 + const updateTask = (res) => { + if (props.isLevel == 1) { + let editObj1 = { + chapterId: props.isactive, + courseId: res.data.data.offcoursePlanId, + name: res.data.data.name, + routerId: props.routerId, + routerTaskId: props.routerTaskId || 0, + type: 2, + }; + RouterEditTask(editObj1) + .then(() => { + message.success(`${props.edit ? "编辑" : "新增"}关卡任务成功`); + ctx.emit("changeData", false); + // state.addLoading = false; + closeDrawer(); + }) + .catch(() => { + message.error(`${props.edit ? "编辑" : "新增"}关卡任务失败`); + }); + } else if (props.isLevel == 2) { + let editObj = { + courseId: res.data.data.offcoursePlanId, + duration: 0, + name: res.data.data.name, + projectId: props.projectId, + projectTaskId: props.projectTaskId || 0, + stageId: props.chooseStageId, + type: 2, + }; + // 新增编辑或新增项目 + ProjectEditTask(editObj) + .then(() => { + message.success( + `${props.EditTestId ? "编辑" : "新增"}阶段任务成功` + ); + ctx.emit("changeData", false); + }) + .catch(() => { + message.error(`${props.EditTestId ? "编辑" : "新增"}阶段任务失败`); + }); + } else if (props.isLevel == 3) { + console.log(""); + } }; return { ...toRefs(state), diff --git a/src/components/drawers/NoticeHis.vue b/src/components/drawers/NoticeHis.vue index 3e0012b6..953cf8aa 100644 --- a/src/components/drawers/NoticeHis.vue +++ b/src/components/drawers/NoticeHis.vue @@ -16,6 +16,8 @@ diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue index 29c15a0a..6902fb23 100644 --- a/src/views/projectcenter/TaskAdd.vue +++ b/src/views/projectcenter/TaskAdd.vue @@ -149,7 +149,7 @@ - +
- +
返回
@@ -321,8 +321,8 @@ - -
@@ -62,7 +62,7 @@ + } + }) + .catch((err) => { + console.log(err); + message.destroy(); + message.error("创建失败,请检查当前网络状态。"); + }); + } + }; + + return { + ...toRefs(state), + projectName, + classifyList, + classificationChange, + classificationChange1, + classificationChange2, + classificationChange3, + classificationChange4, + classificationChange5, + fileList, + fileList1, + loading, + imageUrl, + handleChange, + handleChange1, + beforeUpload, + beforeUpload1, + onRangeChange, + classifyList1, + classifyList2, + classifyList3, + classifyList4, + classifyList5, + remark, + changeChecked, + changeChecked1, + uplodaFileCount, + createProject, + removeFile, + + isEdit, + backPage, + dateFormatList, + + templateScroll, + }; + }, +}; + + + // 修改 antd upload 样式 + .ant-upload { + border-width: 0px; + } + + .content { + display: flex; + + .main { + width: 50%; + display: flex; + flex-direction: column; + align-items: center; + //justify-content: center; + float: left; + border-right: 1px solid rgba(153, 155, 163, 0.3); + + .name { + width: 78%; + // background-color: lightcoral; + display: flex; + margin-top: 20px; + align-items: center; + + //height: 40px; + // border: 1px solid black; + .namebox { + width: 120px; + display: flex; + align-items: center; + justify-content: flex-end; + flex-shrink: 0; + + .nameimg { + width: 10px; + height: 10px; + } + } + + .d { + margin-top: 8px; + font-size: 25px; + color: #ff4e4e; + } + + .box { + position: relative; + margin-left: 14px; + + .box1 { + position: absolute; + left: 50%; + top: 50%; + width: 50px; + margin-left: -25px; + margin-top: -5px; + border-top: 2px solid rgba(78, 166, 255, 1); + } + + .box2 { + position: absolute; + left: 50%; + top: 50%; + height: 50px; + //margin-left: -5px; + margin-top: -25px; + border-left: 2px solid rgba(78, 166, 255, 1); + } + } + + .inname { + color: #6f6f6f; + font-size: 14px; + margin-left: 7px; + } + + .in { + margin-left: 14px; + flex: 1; + + // .ant-radio-wrapper { + // } + .ant-input-textarea-show-count { + position: relative; + height: 88px; + } + + .ant-input-textarea-show-count::after { + position: absolute; + right: 10px; + bottom: 0px; + } + + .ant-input { + border-radius: 8px; + // height: 120%; + width: 100%; + height: 40px; + } + + .ant-input-affix-wrapper { + padding: 0 11px; + border-radius: 8px; + } + + .ant-select-selector { + border-radius: 5px; + // height: 120%; + width: 100%; + // height: 40px; + } + } + + .filebox { + margin-left: 14px; + flex: 1; + + .fileimg { + width: 15px; + height: 15px; + margin-right: 6px; + } + + .filetext { + font-size: 14px; + font-weight: 400; + color: #4ea6ff; + line-height: 36px; + } + + .support { + font-size: 14px; + font-weight: 400; + color: #999ba3; + line-height: 36px; + margin-top: 8px; + word-break: break-all; + } + } + } + + .name2 { + display: flex; + align-items: flex-start; + + .ant-input-textarea { + .ant-input { + height: 88px; + } + } + } + } + + .template { + width: 50%; + display: flex; + flex-direction: column; + align-items: center; + //justify-content: center; + float: right; + + .name { + width: 78%; + // background-color: lightcoral; + display: flex; + margin-top: 20px; + align-items: center; + height: 40px; + + // border: 1px solid black; + .d { + margin-top: 8px; + font-size: 25px; + color: #ff4e4e; + } + + .inname { + color: #6f6f6f; + font-size: 14px; + margin-left: 7px; + width: 65px; + } + + .in { + margin-left: 14px; + width: 81%; + + .ant-input { + border-radius: 5px; + // height: 120%; + width: 100%; + height: 40px; + } + + .ant-select-selector { + border-radius: 5px; + // height: 120%; + width: 100%; + height: 40px; + } + } + } + } + } + + .footer { + width: 100%; + margin-top: 31px; + margin-bottom: 14px; + padding-bottom: 20px; + + .btn { + display: flex; + justify-content: center; + + .btn1 { + display: flex; + justify-content: center; + align-items: center; + width: 100px; + height: 40px; + border-radius: 8px; + background: #409eff; + color: #ffffff; + margin-right: 14px; + } + + .btn2 { + display: flex; + justify-content: center; + align-items: center; + width: 100px; + height: 40px; + border-radius: 8px; + border: 1px solid #409eff; + background: #ffffff; + color: #409eff; + } + } + + .text { + color: rgba(153, 155, 163, 1); + font-size: 14px; + margin-left: 223px; + } + } +} + \ No newline at end of file diff --git a/src/views/research/ManagePage.vue b/src/views/research/ManagePage.vue index dd7aec0e..3008b51f 100644 --- a/src/views/research/ManagePage.vue +++ b/src/views/research/ManagePage.vue @@ -10,9 +10,9 @@ 导出信息
- + - + 返回 diff --git a/src/views/research/ResearchAdd copy.vue b/src/views/research/ResearchAdd copy.vue index b2ad3d38..a8593eed 100644 --- a/src/views/research/ResearchAdd copy.vue +++ b/src/views/research/ResearchAdd copy.vue @@ -3,9 +3,9 @@
创建评估 - + - + 返回 @@ -401,7 +401,9 @@ export default { if (state.assessmentId) { resultPost = { assessmentId: state.assessmentId, - assessmentName: state.assessmentName ? state.assessmentName : "编辑测试", + assessmentName: state.assessmentName + ? state.assessmentName + : "编辑测试", assessmentMark: state.assessmentMark, ...filterData, }; diff --git a/src/views/research/ResearchAdd.vue b/src/views/research/ResearchAdd.vue index 3a97ca47..d7562fb0 100644 --- a/src/views/research/ResearchAdd.vue +++ b/src/views/research/ResearchAdd.vue @@ -3,9 +3,9 @@
创建评估 - + - + 返回 @@ -499,7 +499,7 @@ export default { if (res.data.code === 200) { message.success("编辑成功"); router.push({ - path: "/researchmanage", + path: "/manage/researchmanage", }); } }); @@ -517,7 +517,7 @@ export default { if (res.data.code === 200) { message.success("创建成功"); router.push({ - path: "/researchmanage", + path: "/manage/researchmanage", }); } }); @@ -526,7 +526,7 @@ export default { const handleAllCancel = () => { state.allFormsData = []; router.push({ - path: "/researchmanage", + path: "/manage/researchmanage", }); }; const checkVal = (filterData) => { diff --git a/src/views/research/ResearchManage.vue b/src/views/research/ResearchManage.vue index 6e56bc80..3e972ffd 100644 --- a/src/views/research/ResearchManage.vue +++ b/src/views/research/ResearchManage.vue @@ -428,7 +428,7 @@ export default {
{ - handleToManagepage(value, "/managepage"); + handleToManagepage(value, "/manage/managepage"); }} > 管理 @@ -474,7 +474,7 @@ export default {
{ - handleToResearchadd(value, "/researchadd"); + handleToResearchadd(value, "/manage/researchadd"); }} > 基础信息 diff --git a/src/views/system/SystemManage.vue b/src/views/system/SystemManage.vue index 347c9d8b..187f212b 100644 --- a/src/views/system/SystemManage.vue +++ b/src/views/system/SystemManage.vue @@ -327,7 +327,7 @@ export default { }; const router = useRouter(); const golearningpath = () => { - router.push({ path: "/learningpath", params: { id: 1 } }); + router.push({ path: "/manage/learningpath", params: { id: 1 } }); }; //下载二维码图片 diff --git a/vue.config.js b/vue.config.js index dc5c008b..d7532e53 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,17 +1,25 @@ +/* + * @Author: lixg lixg@dongwu-inc.com + * @Date: 2022-11-21 14:32:52 + * @LastEditors: lixg lixg@dongwu-inc.com + * @LastEditTime: 2022-11-21 15:15:30 + * @FilePath: /fe-manage/vue.config.js + * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + */ const { defineConfig } = require("@vue/cli-service"); module.exports = defineConfig({ // transpileDependencies: true, devServer: { - port:8080, + port: 8080, proxy: { - "/api": { + "/manageApi": { // target:"http://192.168.100.208:30001", target: "http://111.231.196.214:30001/", //这里后台的地址模拟的;应该填写你们真实的后台接口 changeOrigin: true, //表示是否改变原域名 // secure: false, // ws: false, //表示WebSocket协议 pathRewrite: { - "^/api": "", + "^/manageApi": "", }, }, }, From 170c1a6d002f3bb963f19f0acbf24506715f8434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=86=99=E4=B8=9C?= <2195178163@qq.com> Date: Mon, 21 Nov 2022 15:51:55 +0800 Subject: [PATCH 79/90] =?UTF-8?q?feat=EF=BC=9A=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/learningpath/LevelAdd.vue | 1085 +++++++++++++-------------- 1 file changed, 533 insertions(+), 552 deletions(-) diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue index def8e4c5..1d60d385 100644 --- a/src/views/learningpath/LevelAdd.vue +++ b/src/views/learningpath/LevelAdd.vue @@ -12,27 +12,13 @@
- + -
+
{{ act }}
-
+
{{ act }}
@@ -40,11 +26,7 @@ {{ act }}
-->
- +
更多 @@ -73,23 +55,18 @@
-
+ +
返回
-
+
+
- +
@@ -99,10 +76,7 @@
-
+
@@ -118,11 +92,7 @@
快速添加任务/关卡
-
+
@@ -137,11 +107,7 @@
快速添加学员
-
+
@@ -160,65 +126,61 @@
-
关卡概览
+
+
关卡概览
+
{{ - routerInfoOverview.totalStudentCnt + routerInfoOverview.totalStudentCnt }}
总人数
{{ - routerInfoOverview.studyStudentCnt + routerInfoOverview.studyStudentCnt }}
学习人数
{{ - routerInfoOverview.completeStudentCnt + routerInfoOverview.completeStudentCnt }}
完成人数
{{ - routerInfoOverview.onlineCourseCnt - }}% + routerInfoOverview.onlineCourseCnt + }}%
在线课程数
{{ - routerInfoOverview.offLineCourseCnt - }}% + routerInfoOverview.offLineCourseCnt + }}%
面授课程数
{{ - routerInfoOverview.completeRatio - }}% + routerInfoOverview.completeRatio + }}%
总完成率
-
关卡信息
+
+
关卡信息
+
-
+
关卡{{ item.stageId }}
-
+
@@ -371,72 +305,57 @@
- -
+ +
-
- + + ? require('../../assets/images/leveladd/an.png') + : item.type === 4 + ? require('../../assets/images/leveladd/zuo.png') + : item.type === 5 + ? require('../../assets/images/leveladd/kao.png') + : item.type === 6 + ? require('../../assets/images/leveladd/zhi.png') + : item.type === 7 + ? require('../../assets/images/leveladd/wai.png') + : item.type === 8 + ? require('../../assets/images/leveladd/tao.png') + : item.type === 9 + ? require('../../assets/images/leveladd/huo.png') + : item.type === 10 + ? require('../../assets/images/leveladd/ce.png') + : item.type === 11 + ? require('../../assets/images/leveladd/diao.png') + : item.type === 12 + ? require('../../assets/images/leveladd/tou.png') + : null + " />
@@ -460,69 +379,45 @@ {{ item.complete }}/{{ item.total }}人
- - {{ item.percent }}% + + {{ item.percent }}%
-
+
学员
-
+
考勤
-
+ ? 'flex' + : 'none', + }" @click=" + item.type === 2 + ? showCopyModal(item.type) + : item.type === 6 + ? showzhibModal(item.type) + : item.type === 9 + ? showhuodModal(item.type) + : null +"> 二维码
-
+ ? showFace(item.type) + : item.type === 4 + ? showWork(item.type) + : null + "> 管理
@@ -557,36 +451,18 @@
- +
- 搜索 + 搜索 +
- 重置 + 重置
@@ -594,12 +470,8 @@
- + +
@@ -616,34 +488,18 @@
- + }" />
- +
@@ -672,64 +528,32 @@
- + 预览其他关卡
学员可预览第 1 - - 关-第4 - + + 关-第4 + 关内容
- + 学习其他关卡
学员可预览第 1 - - 关-第4 - + + 关-第4 + 关内容
@@ -753,46 +577,26 @@
- - 上传 - + + 上传 +
支持:pdf.ppt.pptx.doc.docx.xls.xlsx.jpeg.png.gif.zip
-
- + + " alt="" /> {{ - item.name + item.name }} 删除
@@ -804,14 +608,8 @@ - +
@@ -824,15 +622,8 @@
当前关卡:关卡2
- +
@@ -840,24 +631,15 @@
-
+
+
- + - +
@@ -881,13 +663,8 @@
- +
@@ -909,13 +686,8 @@
- +
@@ -937,13 +709,8 @@
- +
@@ -969,17 +736,11 @@ - + - + @@ -994,40 +755,21 @@
- -
+
+ ">
- - 路径发布 + + 路径发布
- +
@@ -1065,13 +807,7 @@
- +
@@ -1096,13 +832,8 @@
- +
@@ -1126,13 +857,8 @@
- +
@@ -1196,7 +922,7 @@ export default { TestManage, FaceManage, WorkManage, - SeeStu, + SeeStu }, setup() { // const routers = useRoute(); @@ -1237,17 +963,17 @@ export default { picUrl: null, projectNameList: [ { - value: "1", - label: "导出信息", + value: '1', + label: '导出信息', }, { - value: "2", - label: "批量调整关卡", + value: '2', + label: '批量调整关卡', }, { - value: "3", - label: "批量删除", - }, + value: '3', + label: '批量删除', + } ], // 共享文档列表 docList: [ @@ -1581,7 +1307,7 @@ export default { const stageChange = (name, id) => { state.choosedStageId = id; state.stateName = name; - }; + } const changeTabs = (e) => { console.log("切换tabs", e, state.routerId); if (e == 2) { @@ -1771,6 +1497,7 @@ export default { .catch((err) => { console.log("复制失败", err); }); + }; const showStop = () => { state.stopModal = true; @@ -1812,10 +1539,10 @@ export default { state.action == 0 ? "发布" : state.action == 1 - ? "撤回" - : state.action == -1 - ? "" - : "-"; + ? "撤回" + : state.action == -1 + ? "" + : "-"; }); }; // 获取项目概览 @@ -1862,13 +1589,11 @@ export default { // } levelList.stageList = []; for (let i in data) { - if (i == 0) { - state.stateName = data[0].name; - } + if (i == 0) { state.stateName = data[0].name } levelList.stageList.push({ stageId: Number(i) + 1, - name: data[i].name, - }); + name: data[i].name + }) } }) .catch((err) => { @@ -1901,7 +1626,7 @@ export default { .delStudent({ routerId: 100, studentIds: [id] }) .then((res) => { message.success("删除成功"); - getStudent(); + getStudent() console.log(res); }) .catch((err) => { @@ -1912,74 +1637,62 @@ export default { }); }; const searchLevel = () => { - const result = state.tableData.filter( - (item) => item.cur == state.gatenamee - ); + const result = state.tableData.filter(item => item.cur == state.gatenamee) state.tableData = result; }; const resetLevel = () => { - state.gatenamee = ""; + state.gatenamee = ''; getStudent(); }; const handleStuChange = (value) => { console.log(value); - if (value == 2) { - state.visiblene = true; - } - if (value == 3) { - deleteStu(); - } + if (value == 2) { state.visiblene = true } + if (value == 3) { deleteStu() } }; const deleteStu = () => { if (state.selectedRowKeys.length == 0) { message.warning("请选择成员"); - return; + return } let obj = { routerId: 100, studentIds: state.selectedRowKeys, - }; - api - .delStudent(obj) - .then((res) => { - console.log(res); - getStudent(); - message.success("批量删除成功"); - }) - .catch((err) => { - message.error("批量删除失败" + err); - console.log(err); - }); + } + api.delStudent(obj).then((res) => { + console.log(res); + getStudent(); + message.success("批量删除成功") + }).catch(err => { + message.error("批量删除失败" + err); + console.log(err) + }) }; const pageChange = (value) => { state.currentPage = value; getStudent(); - }; + } const setconfig = () => { let obj = { - autoJoinFlag: 0, - deptBoList: [ + "autoJoinFlag": 0, + "deptBoList": [ { - deptId: 0, - deptName: "", - }, + "deptId": 0, + "deptName": "" + } ], - preLearnFlag: 0, - previewFlag: 0, - routerId: 0, - showFlag: 0, - }; - api - .setConfig(obj) - .then((res) => { - message.success("编辑成功"); - console.log(res); - }) - .catch((err) => { - console.log(err); - message.error("编辑失败"); - }); - }; + "preLearnFlag": 0, + "previewFlag": 0, + "routerId": 0, + "showFlag": 0 + } + api.setConfig(obj).then((res) => { + message.success("编辑成功") + console.log(res); + }).catch(err => { + console.log(err); + message.error("编辑失败") + }) + } return { ...toRefs(state), ...toRefs(levelList), @@ -2038,12 +1751,12 @@ export default { .ant-modal { .ant-modal-body { padding: 0; + .modalHeader { - background: linear-gradient( - rgba(78, 166, 255, 0.2) 0%, - rgba(78, 166, 255, 0) 100% - ); + background: linear-gradient(rgba(78, 166, 255, 0.2) 0%, + rgba(78, 166, 255, 0) 100%); } + .modalMain { .projectname { color: rgba(79, 81, 86, 1); @@ -2052,33 +1765,37 @@ export default { margin-left: 62px; font-weight: 500; } + .projecttime { margin-left: 221px; + .timeti { color: rgba(153, 155, 163, 1); font-size: 14px; line-height: 36px; } + .timeme { color: rgba(79, 81, 86, 1); font-size: 14px; line-height: 36px; } } + .projectbox { margin-top: 26px; display: flex; justify-content: center; + .promessage { width: 280px; height: 110px; - background: linear-gradient( - 180deg, - rgba(254, 243, 221, 1), - rgba(255, 250, 240, 1) - ); + background: linear-gradient(180deg, + rgba(254, 243, 221, 1), + rgba(255, 250, 240, 1)); border-radius: 10px; margin-right: 7px; + .messageme { color: rgba(255, 182, 78, 1); font-size: 14px; @@ -2086,21 +1803,22 @@ export default { margin-top: 17px; margin-left: 30px; } + .messagege { color: rgba(153, 155, 163, 1); font-size: 14px; margin-left: 30px; } } + .stumessage { width: 280px; height: 110px; - background: linear-gradient( - 180deg, - rgba(221, 234, 255, 1), - rgba(240, 248, 254, 1) - ); + background: linear-gradient(180deg, + rgba(221, 234, 255, 1), + rgba(240, 248, 254, 1)); border-radius: 10px; + .messageme1 { color: rgba(78, 166, 255, 1); font-size: 14px; @@ -2108,6 +1826,7 @@ export default { margin-top: 17px; margin-left: 30px; } + .messagege1 { color: rgba(153, 155, 163, 1); font-size: 14px; @@ -2115,30 +1834,37 @@ export default { } } } + .send { margin-top: 30px; margin-left: 61px; + .sendtext { margin-left: 11px; color: rgba(109, 117, 132, 1); font-size: 14px; } } + .ckb { margin-top: 20px; margin-left: 62px; + .sendpeo { color: rgba(109, 117, 132, 1); font-size: 14px; } + .ant-checkbox-inner { border-radius: 4px; } } + .pubtn { display: flex; justify-content: center; margin-top: 25px; + //margin-bottom: 29px; .pubtn1 { width: 100px; @@ -2153,6 +1879,7 @@ export default { align-items: center; background: rgba(255, 255, 255, 1); } + .pubtn2 { width: 100px; height: 40px; @@ -2170,23 +1897,28 @@ export default { } } } + .clearfix:before, .clearfix:after { content: " "; display: block; clear: both; } + .CopyModal { .ant-modal { width: 424px !important; height: 258px !important; + .ant-modal-content { width: 424px !important; height: 258px !important; + .ant-modal-body { width: 424px !important; height: 258px !important; padding: 0 !important; + .delete { z-index: 999; width: 424px; @@ -2194,6 +1926,7 @@ export default { background: #ffffff; box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21); border-radius: 4px; + // position: absolute; // left: 50%; // top: 10%; @@ -2202,20 +1935,21 @@ export default { position: absolute; width: calc(100%); height: 40px; - background: linear-gradient( - rgba(78, 166, 255, 0.2) 0%, - rgba(78, 166, 255, 0) 100% - ); + background: linear-gradient(rgba(78, 166, 255, 0.2) 0%, + rgba(78, 166, 255, 0) 100%); } + .del_main { width: 100%; position: relative; + .header { display: flex; align-items: center; padding-top: 20px; padding-left: 26px; font-size: 16px; + .icon { width: 16px; height: 16px; @@ -2223,6 +1957,7 @@ export default { background-image: url(@/assets/images/coursewareManage/QR.png); background-size: 100% 100%; } + .close_exit { position: absolute; right: 42px; @@ -2233,6 +1968,7 @@ export default { background-size: 100% 100%; } } + .body { width: 100%; margin: 34px auto 56px auto; @@ -2242,6 +1978,7 @@ export default { flex-direction: column; // background-color: red; position: relative; + .back { position: absolute; top: 30px; @@ -2250,15 +1987,18 @@ export default { color: #666666; } } + .docListStyle { display: flex; width: 300px !important; justify-content: space-around; } + .del_btnbox { display: flex; margin: 30px auto; justify-content: center; + .del_btn { width: 100px; height: 40px; @@ -2270,17 +2010,20 @@ export default { flex-shrink: 0; cursor: pointer; + .btnText { font-size: 14px; font-weight: 400; line-height: 40px; } } + .btn1 { border: 1px solid rgba(64, 158, 255, 1); color: #4ea6ff; margin-right: 14px; } + .btn2 { background-color: #4ea6ff; color: #ffffff; @@ -2292,17 +2035,21 @@ export default { } } } + .facemanageModal { .ant-modal { width: 532px !important; height: 428px !important; + .ant-modal-content { width: 532px !important; height: 428px !important; + .ant-modal-body { width: 532px !important; height: 428px !important; padding: 0 !important; + .delete { z-index: 999; width: 532px; @@ -2310,6 +2057,7 @@ export default { background: #ffffff; box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21); border-radius: 4px; + // position: absolute; // left: 50%; // top: 10%; @@ -2318,20 +2066,21 @@ export default { position: absolute; width: calc(100%); height: 68px; - background: linear-gradient( - rgba(78, 166, 255, 0.2) 0%, - rgba(78, 166, 255, 0) 100% - ); + background: linear-gradient(rgba(78, 166, 255, 0.2) 0%, + rgba(78, 166, 255, 0) 100%); } + .del_main { width: 100%; position: relative; + .header { display: flex; align-items: center; padding-top: 20px; padding-left: 26px; font-size: 16px; + .icon { width: 16px; height: 16px; @@ -2339,6 +2088,7 @@ export default { background-image: url(@/assets/images/coursewareManage/QR.png); background-size: 100% 100%; } + .close_exit { position: absolute; right: 42px; @@ -2349,6 +2099,7 @@ export default { background-size: 100% 100%; } } + .body { width: 100%; margin: 34px auto 56px auto; @@ -2358,6 +2109,7 @@ export default { flex-direction: column; // background-color: red; position: relative; + .back { position: absolute; top: 30px; @@ -2366,14 +2118,17 @@ export default { color: #666666; } } + .footerr { display: flex; justify-content: center; align-items: center; + .onload { color: rgba(51, 51, 51, 1); font-size: 14px; } + .onloadpx { width: 80px; height: 32px; @@ -2393,17 +2148,21 @@ export default { } } } + .changeModal { .ant-modal { width: 549px !important; height: 245px !important; + .ant-modal-content { width: 549px !important; height: 245px !important; + .ant-modal-body { padding: 0 !important; width: 549px !important; height: 245px !important; + .con { // background-color: #bfa; width: 100%; @@ -2416,16 +2175,16 @@ export default { position: relative; justify-content: center; - background: linear-gradient( - rgba(78, 166, 255, 0.2) 0%, - rgba(78, 166, 255, 0) 100% - ); + background: linear-gradient(rgba(78, 166, 255, 0.2) 0%, + rgba(78, 166, 255, 0) 100%); + .inhe { width: 80%; height: 100%; display: flex; justify-content: space-between; align-items: center; + .mod { left: 30px; top: 27px; @@ -2434,11 +2193,13 @@ export default { height: 17px; background-image: url(../../assets/images/leveladd/mod.png); } + .tz { color: #000000; font-weight: 400; font-size: 16px; } + .mg { width: 20px; height: 20px; @@ -2448,26 +2209,32 @@ export default { } } } + .mid { width: 100%; display: flex; height: 100%; justify-content: center; + .inher { width: 80%; height: 100%; + .cur { color: #6f6f6f; font-size: 14px; } + .select { margin-top: 10px; } + .btn { width: 100%; display: flex; justify-content: center; margin-top: 30px; + .sameb { width: 100px; height: 40px; @@ -2475,11 +2242,13 @@ export default { border-radius: 8px; } + .btn1 { color: #4ea6ff; background: #ffffff; border: 1px solid #4ea6ff; } + .btn2 { margin-left: 16px; border: 0; @@ -2498,6 +2267,7 @@ export default { .addwrapper { width: 100%; height: 100%; + .addhead { width: 100%; height: 130px; @@ -2505,34 +2275,41 @@ export default { display: flex; align-items: center; position: relative; + .leftimg { width: 151px; height: 100px; border: 10px solid #e7f2ff; border-radius: 8px; margin-left: 20px; + .img { width: 100%; height: 100%; } } + .imgfor { margin-left: 32px; + .forz { color: #363636; font-size: 16px; } + .fort { color: #878b92; font-size: 14px; margin-top: 20px; } } + @media screen and (max-width: 1030px) { .imgfor { margin-left: 20px; } } + .right { // width: 500px; height: 100%; @@ -2541,22 +2318,26 @@ export default { right: 0; display: flex; align-items: center; + .img1 { width: 24px; height: 24px; margin-right: 50px; } + .line { height: 65%; width: 1px; background-color: #e8effa; margin-right: 28px; } + .img2 { width: 42px; height: 42px; margin-right: 22px; } + .pub { color: #ffb64e; font-size: 14px; @@ -2564,18 +2345,21 @@ export default { margin-right: 30px; cursor: pointer; } + .return { color: #4ea6ff; font-size: 14px; margin-top: 10px; margin-right: 60px; } + .more { position: relative; margin-right: 30px; height: 30px; display: flex; align-items: center; + .moreArrow { width: 13px; height: 7px; @@ -2585,6 +2369,7 @@ export default { margin: 2px; margin-left: 15px; } + .moreItems { width: 110px; // height: 80px; @@ -2599,62 +2384,77 @@ export default { top: 30px; z-index: 100; cursor: pointer; + .sammo { text-align: center; margin-top: 12px; cursor: pointer; } + .sammo:hover { color: #4ea6ff; } } + .moreItems:hover { display: block; } } + @media screen and (max-width: 1240px) { .line { margin-right: 10px; } + .img1 { margin-right: 15px; } + .img2 { margin-right: 10px; } + .return { margin-right: 10px; } + .pub { margin-right: 10px; } + .more { margin-right: 10px; } } + .more:hover .moreArrow { background-image: url("../../assets/images/navtop/up.png"); } + .more:hover .moreItems { display: block; } } } + .split { width: 100%; height: 20px; background-color: #edf0f5; } + .bom { .tab { margin-top: 10px; // margin-left: 10px; } - .ant-tabs > .ant-tabs-nav, - .ant-tabs > div > .ant-tabs-nav { + + .ant-tabs>.ant-tabs-nav, + .ant-tabs>div>.ant-tabs-nav { margin-left: 0px !important; padding-left: 32px !important; } + .onerow { //width: 100%; display: flex; @@ -2662,12 +2462,14 @@ export default { position: relative; margin-top: 15px; margin-left: 38px; + //margin-right: 38px; .taskmain { font-size: 18px; padding-top: 7px; color: #000000; } + .btn { position: absolute; top: 0; @@ -2680,6 +2482,7 @@ export default { color: #ffffff; cursor: pointer; } + .editright { position: absolute; right: 38px; @@ -2696,11 +2499,13 @@ export default { width: 15px; height: 15px; } + .editextb { color: #fff; margin-left: 10px; } } + // .edit:hover { // color: #ffffff; // background-color: #409eff; @@ -2710,12 +2515,14 @@ export default { // } // } } + .second { display: flex; justify-content: left; flex-wrap: wrap; margin-top: 40px; margin-left: 20px; + .nubbox { width: 253px; height: 116px; @@ -2727,16 +2534,19 @@ export default { background: #fafbfc; border-radius: 10px; margin-left: 15px; + .nub1 { color: #ffb54a; font-size: 30px; font-weight: 700; } + .nub2 { color: #6d7584; font-size: 14px; } } + .taskbox { width: 412px; height: 160px; @@ -2745,21 +2555,25 @@ export default { margin-left: 68px; margin-bottom: 40px; cursor: pointer; + .leftt { position: absolute; top: 18px; left: 0; } + .photo { position: absolute; top: 42px; left: 37px; } + .rightt { position: absolute; top: 69px; right: 26px; } + .centerbox { position: absolute; top: 52px; @@ -2768,6 +2582,7 @@ export default { font-weight: 700; //line-height: 36px; } + .centermain { color: rgba(135, 139, 146, 1); font-size: 14px; @@ -2777,9 +2592,11 @@ export default { } } } + .stagemess { display: flex; margin-left: 38px; + .stage1 { width: 100px; height: 33px; @@ -2793,6 +2610,7 @@ export default { margin-top: 19px; cursor: pointer; } + .stage2 { width: 100px; height: 33px; @@ -2808,67 +2626,82 @@ export default { cursor: pointer; } } + .stagesecond { display: flex; margin-left: 39px; margin-top: 29px; + .staname { color: #999ba3; font-size: 14px; } + .stamess { color: #4f5156; font-size: 14px; } } + .stagelast { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 55px; + .stagepro { display: flex; flex-direction: column; align-items: center; margin-top: 55px; margin-right: 120px; + .ant-progress-circle-path { stroke: #4ea6ff; } + .ant-progress-text { color: #4ea6ff; font-weight: 700; } + .protext { color: #6d7584; font-size: 14px; margin-top: 25px; } } + .proright { width: 500px; margin-top: 55px; margin-left: 50px; + .ant-progress-bg { height: 24px !important; background: #4ea6ff; } + .ant-progress-inner { height: 24px; } + .pronub { color: #4ea6ff; font-size: 14px; margin: 5px 0; } + .proright1 { display: flex; justify-content: right; + .textpro { color: #6d7584; font-size: 14px; margin-right: 20px; } + .ant-progress-text { color: #4ea6ff; font-size: 14px; @@ -2877,17 +2710,21 @@ export default { } } } + .sametab { // margin-left: 30px; // margin-right: 30px; margin-top: 30px; width: 100%; + // background-color: green; .Lhead { display: flex; + .btns { display: flex; margin-left: 20px; + // flex-wrap: wrap; .btn { padding: 0px 26px 0px 26px; @@ -2901,9 +2738,11 @@ export default { margin-right: 14px; flex-shrink: 0; cursor: pointer; + .search { background-size: 100%; } + .btnText { font-size: 14px; font-weight: 400; @@ -2912,6 +2751,7 @@ export default { margin-left: 5px; } } + .btn1 { .search { width: 15px; @@ -2919,6 +2759,7 @@ export default { background-image: url("../../assets/images/courseManage/search1.png"); } } + .btn2 { .search { width: 16px; @@ -2926,46 +2767,59 @@ export default { background-image: url("../../assets/images/courseManage/reset1.png"); } } + .btn3 { margin-right: 0px; + .search { width: 17px; height: 18px; background-image: url("../../assets/images/courseManage/add1.png"); } } + .btn1:hover { background: rgba(64, 158, 255, 1); + .search { background-image: url("../../assets/images/courseManage/search0.png"); } + .btnText { color: #ffffff; } } + .btn2:hover { background: rgba(64, 158, 255, 1); + .search { background-image: url("../../assets/images/courseManage/reset0.png"); } + .btnText { color: #ffffff; } } + .btn3:hover { background: rgba(64, 158, 255, 1); + .search { background-image: url("../../assets/images/courseManage/add0.png"); } + .btnText { color: #ffffff; } } } } + .Lbom { position: relative; margin-bottom: 20px; + .item { width: 100%; height: 200px; @@ -2973,6 +2827,7 @@ export default { margin-top: 40px; border-radius: 8px; border: 1px solid #f0f4fe; + .itemhead { height: 50px; width: 100%; @@ -2980,6 +2835,7 @@ export default { display: flex; align-items: center; position: relative; + .lev { margin-left: 27px; margin-right: 16px; @@ -2987,64 +2843,77 @@ export default { color: #409eff; font-size: 16px; } + .lin { width: 1px; height: 35%; background-color: #c7cbd2; } + .nam { margin-left: 16px; color: #4f5156; line-height: 100%; font-size: 16px; } + .count { position: absolute; line-height: 100%; color: #4f5156; font-size: 14px; right: 40px; + span:nth-child(2) { color: #63ca8c; } } } + .itembomm { display: flex; align-items: center; height: 150px; + .it { // margin-left: 110px; // margin-right: 110px; width: 13%; text-align: center; + .on { font-size: 30px; } + .ittext { color: #4f5156; margin-top: 16px; margin-left: -5px; } } + .linee { background-color: #ecf2fb; width: 1px; height: 55%; } + .itright { position: absolute; right: 45px; display: flex; + .te { color: #4ea6ff; font-size: 14px; cursor: pointer; } + .more { position: relative; height: 30px; display: flex; + .moreArrow { width: 13px; height: 7px; @@ -3055,6 +2924,7 @@ export default { margin-left: 7px; margin-top: 6px; } + .moreItems { width: 80px; height: 70px; @@ -3067,6 +2937,7 @@ export default { left: 0px; top: 20px; z-index: 100; + .roleItem { font-size: 14px; font-weight: 400; @@ -3076,14 +2947,17 @@ export default { justify-content: center; cursor: pointer; } + .roleItem:hover { color: #4ea6ff; } } } + .more:hover .moreArrow { background-image: url("../../assets/images/navtop/up.png"); } + .more:hover .moreItems { display: block; } @@ -3093,12 +2967,15 @@ export default { .show { color: blue; } + .noshow { display: none; } } + .create { margin-top: 40px; + .taskbox { width: 412px; height: 160px; @@ -3107,21 +2984,25 @@ export default { // margin-left: 68px; margin-bottom: 40px; cursor: pointer; + .leftt { position: absolute; top: 18px; left: 0; } + .photo { position: absolute; top: 42px; left: 37px; } + .rightt { position: absolute; top: 69px; right: 26px; } + .centerbox { position: absolute; top: 52px; @@ -3130,6 +3011,7 @@ export default { font-weight: 700; //line-height: 36px; } + .centermain { color: rgba(135, 139, 146, 1); font-size: 14px; @@ -3141,6 +3023,7 @@ export default { } } } + .cont { display: flex; @@ -3158,12 +3041,14 @@ export default { position: relative; margin-top: 15px; margin-left: 38px; + //margin-right: 38px; .taskmain { font-size: 18px; padding-top: 7px; color: #000000; } + .btn { position: absolute; top: 0; @@ -3176,6 +3061,7 @@ export default { color: #ffffff; cursor: pointer; } + .edit { position: absolute; right: 38px; @@ -3185,6 +3071,7 @@ export default { height: 40px; border: 1px solid #409eff; border-radius: 8px; + .editimg { width: 15px; height: 15px; @@ -3192,19 +3079,23 @@ export default { margin-left: 25px; margin-right: 5px; } + .editext { line-height: 40px; } } + .edit:hover { color: #ffffff; background-color: #409eff; cursor: pointer; + .editimg { background-image: url("../../assets/images/projectadd/edit1.png"); } } } + .taskbox { width: 412px; height: 160px; @@ -3214,21 +3105,25 @@ export default { margin-bottom: 10px; margin-top: 10px; cursor: pointer; + .leftt { position: absolute; top: 18px; left: 0; } + .photo { position: absolute; top: 42px; left: 37px; } + .rightt { position: absolute; top: 69px; right: 26px; } + .centerbox { position: absolute; top: 52px; @@ -3237,6 +3132,7 @@ export default { font-weight: 700; //line-height: 36px; } + .centermain { color: rgba(135, 139, 146, 1); font-size: 14px; @@ -3245,6 +3141,7 @@ export default { bottom: 49px; } } + .taskSyllabus { // flex: 1; overflow-x: auto; @@ -3255,13 +3152,15 @@ export default { min-width: 1040px; } - .ant-collapse-content > .ant-collapse-content-box { + .ant-collapse-content>.ant-collapse-content-box { padding-top: 0px; padding-bottom: 0px; } - .ant-collapse > .ant-collapse-item { + + .ant-collapse>.ant-collapse-item { border: 0px; } + .ant-collapse-header { display: flex; height: 49px; @@ -3274,14 +3173,17 @@ export default { font-weight: 400; color: #409eff; line-height: 36px; + .ant-collapse-arrow { margin-left: 15px !important; } } + .ant-collapse-content { border-top: 0px; } } + .course { //width: 100%; flex-shrink: 0; @@ -3296,6 +3198,7 @@ export default { //margin: 0 12px; border: 1px solid #f2f6fc; border-top: 0px; + .first { //position: relative; display: flex; @@ -3311,6 +3214,7 @@ export default { font-size: 16px; margin-left: 4px; } + .icontext { //positipn: absolute; color: #999ba3; @@ -3319,12 +3223,14 @@ export default { width: 83px; } } + .type { //height: 71px; display: flex; flex-grow: 1; align-items: center; margin-right: 50px; + .typename { width: 63px; height: 23px; @@ -3334,6 +3240,7 @@ export default { border-radius: 4px; text-align: center; } + .typename1 { width: 63px; height: 23px; @@ -3344,28 +3251,34 @@ export default { text-align: center; } } + .time { //height: 71px; flex-grow: 1; margin-right: 50px; + .timetext { font-size: 14px; color: #999ba3; } } + .progress { width: 168px; margin-left: 10px; margin-right: 50px; flex-grow: 1; + .progresstext { color: #ffc067; font-size: 14px; } } + .operations { display: flex; width: 200px; + //flex-grow: 1; .operation { color: #4ea6ff; @@ -3384,19 +3297,24 @@ export default { margin-top: 30px; display: flex; margin-bottom: 20px; + // overflow-x: auto; .pad { height: 100%; width: 40px; flex-shrink: 0; } + .xin { width: 100%; + .xhead { display: flex; + .btns { display: flex; margin-left: 20px; + // flex-wrap: wrap; .btn { padding: 0px 26px 0px 26px; @@ -3410,9 +3328,11 @@ export default { margin-right: 14px; flex-shrink: 0; cursor: pointer; + .search { background-size: 100%; } + .btnText { font-size: 14px; font-weight: 400; @@ -3421,6 +3341,7 @@ export default { margin-left: 5px; } } + .btn1 { .search { width: 15px; @@ -3428,6 +3349,7 @@ export default { background-image: url("../../assets/images/courseManage/search1.png"); } } + .btn2 { .search { width: 16px; @@ -3435,46 +3357,59 @@ export default { background-image: url("../../assets/images/courseManage/reset1.png"); } } + .btn3 { margin-right: 0px; + .search { width: 17px; height: 18px; background-image: url("../../assets/images/courseManage/add1.png"); } } + .btn1:hover { background: rgba(64, 158, 255, 1); + .search { background-image: url("../../assets/images/courseManage/search0.png"); } + .btnText { color: #ffffff; } } + .btn2:hover { background: rgba(64, 158, 255, 1); + .search { background-image: url("../../assets/images/courseManage/reset0.png"); } + .btnText { color: #ffffff; } } + .btn3:hover { background: rgba(64, 158, 255, 1); + .search { background-image: url("../../assets/images/courseManage/add0.png"); } + .btnText { color: #ffffff; } } } } + .xheadb { display: flex; margin-top: 30px; + .addx { width: 130px; height: 40px; @@ -3485,6 +3420,7 @@ export default { cursor: pointer; margin-right: 20px; } + .addd { width: 130px; height: 40px; @@ -3495,25 +3431,30 @@ export default { cursor: pointer; margin-right: 20px; } + .select { .ant-select { // // border: 0 !important; border-radius: 11px; + .ant-select-selector { border: 1px solid #4ea6ff !important; + .ant-select-selection-placeholder { padding-left: 15px; color: #4ea6ff; } } } + .ant-select-selection-item { padding-left: 15px; color: #4ea6ff; } } } + .talk { margin-top: 24px; margin-bottom: 11px; @@ -3524,30 +3465,36 @@ export default { // opacity: 0.22; display: flex; align-items: center; + .im { width: 14px; height: 15px; margin-left: 27px; margin-top: -3px; } + .xu { height: 100%; line-height: 50px; margin-left: 13px; + .yi { color: #4f5156; font-size: 14px; } + .zon { color: #999ba3; font-size: 14px; margin-left: 34px; } + .th { color: #4ea6ff; } } } + .tableBox { margin-bottom: 80px; @@ -3555,26 +3502,29 @@ export default { margin-left: 11px !important; padding-left: 9px !important; } + .ant-checkbox-wrapper { align-items: center; margin-top: -2px; } + .ant-table-selection-column { padding: 0px !important; padding-left: 38px !important; } - .ant-table-thead > tr > th { + + .ant-table-thead>tr>th { background-color: rgba(239, 244, 252, 1); } + th.h { background-color: #eff4fc !important; } - .ant-table-tbody - > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) - > td { + .ant-table-tbody>tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)>td { background: #f6f9fd; } + .pa { left: 0; width: 100%; @@ -3588,37 +3538,46 @@ export default { } } } + .Gcon { display: flex; + .pad { height: 100%; width: 40px; } + .Gin { // background-color: #bfa; margin-top: 30px; + .headone { // background-color: red; display: flex; text-align: center; + .box { width: 4px; height: 20px; background-color: #409eff; border-radius: 2px; } + .onetitle { margin-left: 15px; color: #333333; font-size: 14px; } + .oneedi { margin-left: 15px; color: #4ea6ff; cursor: pointer; } + .twobtn { display: flex; + .btnone { width: 42px; height: 24px; @@ -3628,6 +3587,7 @@ export default { margin-left: 20px; cursor: pointer; } + .btntwo { width: 42px; height: 24px; @@ -3640,33 +3600,40 @@ export default { } } } + .onemain { margin-top: 20px; margin-left: 55px; color: #6f6f6f; font-size: 14px; + .checkcon { position: relative; + .in { position: absolute; // margin-top: 10px; left: 0; top: 3px; } + .yulan { // color: yellow; margin-left: 22px; // display: inline-block; } + .yulan2 { margin-left: 22px; } + .ant-input-number { height: 24px; width: 24px; margin: 10px; border-radius: 4px; border: 1px solid #6d7584; + .ant-input-number-input { width: 100%; height: 100%; @@ -3678,58 +3645,72 @@ export default { } } } + .twomain { margin-left: 20px; margin-top: 20px; + .ant-switch-checked { background-color: #5dc988; } + .info { margin-left: 10px; color: #6f6f6f; font-size: 14px; // margin-top: 10px; } + .infor { margin-left: 38px; margin-top: 10px; color: #c7cbd2; font-size: 14px; } + .chooseshow { // background-color: red; margin-left: 38px; margin-top: 12px; + .fane { color: #6f6f6f; font-size: 14px; } } + .choo { display: none; } + .btm { margin-left: 38px; margin-top: 20px; + .bmo { color: #6f6f6f; font-size: 14px; } + .bmt { color: #c7cbd2; font-size: 14px; margin-top: 3px; } + .chosecon { display: flex; margin-top: 6px; margin-bottom: 20px; + .chose { position: relative; + .inl { position: absolute; top: 2px; } + .sh { margin-left: 23px; color: #6f6f6f; From e60e62f1e166e4b805fbd014e7621233f5ff96aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=86=99=E4=B8=9C?= <2195178163@qq.com> Date: Mon, 21 Nov 2022 15:53:17 +0800 Subject: [PATCH 80/90] =?UTF-8?q?feat:=20=E6=A8=A1=E6=9D=BF=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E8=8E=B7=E5=8F=96=EF=BC=8C=E6=9F=A5=E7=9C=8B=E6=92=A4?= =?UTF-8?q?=E5=9B=9E=E6=93=8D=E4=BD=9C=EF=BC=8C=E6=A8=A1=E6=9D=BF=E8=AF=A6?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexLibrary.js | 10 - src/api/indexTemplate.js | 6 +- src/views/projectcenter/LibraryAdd.vue | 748 +++++++++----------- src/views/projectcenter/TemplateLibrary.vue | 229 +++--- 4 files changed, 463 insertions(+), 530 deletions(-) delete mode 100644 src/api/indexLibrary.js diff --git a/src/api/indexLibrary.js b/src/api/indexLibrary.js deleted file mode 100644 index a5f8feb2..00000000 --- a/src/api/indexLibrary.js +++ /dev/null @@ -1,10 +0,0 @@ -import http from "./config"; - -// 获取模板库列表 -export const templateList = obj => http.post('/admin/project/template/list', obj); - -// 获取模板详情 -export const templateDetail = id => http.get(`/admin/project/template/detail?projectTemplateId=${id}`); - -// 操作模板(撤回,发布,删除) -export const templateHadle = obj => http.post(`/admin/project/template/handle`,obj); \ No newline at end of file diff --git a/src/api/indexTemplate.js b/src/api/indexTemplate.js index 713e349a..a9837852 100644 --- a/src/api/indexTemplate.js +++ b/src/api/indexTemplate.js @@ -14,4 +14,8 @@ export const moveTask = (obj) => http.post('/admin/project/template/moveTask',ob // 新建或编辑阶段 export const editStage = (obj) => http.post('/admin/project/template/editStage',obj); // 新建或编辑阶段任务 -export const editTask = (obj) => http.post('/admin/project/template/editTask',obj); \ No newline at end of file +export const editTask = (obj) => http.post('/admin/project/template/editTask',obj); +// 操作模板(撤回,发布,删除) +export const handleTemplates = (obj) => http.post('/admin/project/template/handle',obj); +// 模板库列表 +export const templateList = (obj) => http.post(`/admin/project/template/list`,obj); diff --git a/src/views/projectcenter/LibraryAdd.vue b/src/views/projectcenter/LibraryAdd.vue index 851e7e8e..09657694 100644 --- a/src/views/projectcenter/LibraryAdd.vue +++ b/src/views/projectcenter/LibraryAdd.vue @@ -5,11 +5,11 @@
-
管理者进阶-腾飞班1备份
+
{{projectInfo.name || '-'}}
-
项目经理:黄华、刘俊备份
+
项目经理:{{projectInfo.manager || '-'}}
- 起止时间:2022-09-21 00:00 至 2022-10-21 00:00 + 起止时间:{{projectInfo.beginTime || '-'}} 至 {{projectInfo.endTime || '-'}}
@@ -200,7 +200,7 @@ : 'none', }" > - +
- +
-
-
- 基本信息 - 编辑 -
-
-
-
-
模板名称:
-
- -
-
-
-
封面图:
-
- - - -
-
-
-
模板时间:
-
- -
-
-
-
项目经理:
-
- -
-
-
-
资源归属:
-
- -
-
-
-
模板说明:
-
- -
-
-
-
同步学习记录:
-
- 同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程) -
-
-
-
项目级别:
-
- -
-
-
-
培训分类:
-
- -
-
-
-
是否BOEU实施:
-
- BOEU实施 -
-
-
- 取消 - 保存 -
+
+
+ 基本信息 + 编辑 +
+
+
+
+
模板名称:
+
+
+
+
封面图:
+
+ + + + +
+
+
+
模板时间:
+
+ +
+
+
+
项目经理:
+
+ +
+
+
+
资源归属:
+
+ +
+
+
+
模板说明:
+
+ +
+
+
+
同步学习记录:
+
+ 同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程) +
+
+
+
项目级别:
+
+ +
+
+
+
培训分类:
+
+ +
+
+
+
是否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}} + 删除 +
+
+
@@ -642,9 +590,9 @@ diff --git a/src/views/examine/ProjectReviewed.vue b/src/views/examine/ProjectReviewed.vue index 845fdde4..d8cf1d7b 100644 --- a/src/views/examine/ProjectReviewed.vue +++ b/src/views/examine/ProjectReviewed.vue @@ -6,34 +6,26 @@ * @FilePath: /fe-manage/src/views/examine/ProjectReviewed.vue * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE --> - + \ No newline at end of file diff --git a/src/views/examine/ProjectReviewedN.vue b/src/views/examine/ProjectReviewedN.vue index 823c1640..56931cc2 100644 --- a/src/views/examine/ProjectReviewedN.vue +++ b/src/views/examine/ProjectReviewedN.vue @@ -6,33 +6,26 @@ * @FilePath: /fe-manage/src/views/examine/ProjectReviewedN.vue * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE --> + \ No newline at end of file diff --git a/src/views/projectcenter/ProjectManage.vue b/src/views/projectcenter/ProjectManage.vue index 950929d5..afb947fb 100644 --- a/src/views/projectcenter/ProjectManage.vue +++ b/src/views/projectcenter/ProjectManage.vue @@ -2878,7 +2878,7 @@ export default {
{ router.push({ - path: "/taskpage", + path: "/manage/taskpage", }); storage.set("projectId", value.record.projectId); }} @@ -2937,7 +2937,7 @@ export default {
{ router.push({ - path: "/taskpage", + path: "/manage/taskpage", }); storage.set("projectId", value.record.projectId); }} @@ -2984,7 +2984,7 @@ export default {
{ router.push({ - path: "/taskpage", + path: "/manage/taskpage", }); storage.set("projectId", value.record.projectId); }} From f18909673de49dbb99f60a34a322f9aa0d9590ac Mon Sep 17 00:00:00 2001 From: lixg Date: Mon, 21 Nov 2022 17:48:26 +0800 Subject: [PATCH 82/90] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=AD=97=E5=85=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 5 +- src/api/index1.js | 6 +- src/components/BreadCrumb.vue | 101 ++++++++---------- src/components/NavLeft.vue | 64 +++++------ src/components/OpenPages.vue | 4 +- src/components/vote/CreateVote.vue | 2 +- src/router/config.js | 4 +- src/router/index.js | 7 +- src/store/index.js | 4 +- src/views/learningpath/LearningPath.vue | 4 +- src/views/learningpath/LevelAdd.vue | 10 +- src/views/learningpath/LevelAddDetail.vue | 4 +- src/views/learningpath/LevelCheck.vue | 2 +- src/views/projectcenter/ClassAdd.vue | 10 +- src/views/projectcenter/LibraryAdd.vue | 6 +- src/views/projectcenter/ProjectAdd.vue | 112 ++++++++++++-------- src/views/projectcenter/ProjectManage.vue | 36 +++---- src/views/projectcenter/SonProject.vue | 10 +- src/views/projectcenter/TaskAdd.vue | 2 +- src/views/projectcenter/TaskPage.vue | 104 +++++++++--------- src/views/projectcenter/TemplateLibrary.vue | 4 +- src/views/projectcenter/templateAdd.vue | 8 +- src/views/research/ManagePage.vue | 4 +- src/views/research/ResearchAdd copy.vue | 4 +- src/views/research/ResearchAdd.vue | 10 +- src/views/research/ResearchManage.vue | 4 +- src/views/system/SystemManage.vue | 2 +- 27 files changed, 280 insertions(+), 253 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 45195084..c62e1b47 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-07 17:06:45 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-11-20 18:18:11 + * @LastEditTime: 2022-11-21 16:39:00 * @FilePath: /fe-manage/src/api/index.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -73,4 +73,5 @@ export const getTemplate = (obj) => http.post('/admin/project/template/list', ob export const getTemplateDetail = (obj) => http.get('/admin/project/template/detail', { params: obj }) //获取项目统计 -export const getProjectCount = (projectId) => http.get('/admin/project/projectCount', { params: { projectId: projectId } }) \ No newline at end of file +export const getProjectCount = (projectId) => http.get('/admin/project/projectCount', { params: { projectId: projectId } }) + diff --git a/src/api/index1.js b/src/api/index1.js index 87fa03e2..6e5402e5 100644 --- a/src/api/index1.js +++ b/src/api/index1.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-04 22:45:31 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-11-21 11:51:11 + * @LastEditTime: 2022-11-21 16:39:08 * @FilePath: /fe-manage/src/api/index1.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -85,10 +85,12 @@ export const scoreRank = (obj) => http.post('/admin/project/scoreRank', obj); export const billboard = (obj) => http.post('/admin/project/billboard', obj); //项目基础信息----------------------------------- - +//获取字典信息 +export const getDict = (obj) => http.post('/dict/getList', obj) // 获取组织结构树 export const orgtree = () => http.get('/org/tree'); + //获取积分列表 export const noticeList = (projectId) => http.post(`http://localhost:8080/api/admin/project/noticeList?projectId=` + projectId + ``) diff --git a/src/components/BreadCrumb.vue b/src/components/BreadCrumb.vue index 93fa3e24..c4cb108c 100644 --- a/src/components/BreadCrumb.vue +++ b/src/components/BreadCrumb.vue @@ -34,8 +34,8 @@ export default { console.log("new:" + n + ",old:" + o); if ( - n.indexOf("/manage/learningpath") !== -1 || - n.indexOf("/manage/LearningPath") !== -1 + n.indexOf("/learningpath") !== -1 || + n.indexOf("/LearningPath") !== -1 ) { state.list = [ { @@ -45,14 +45,11 @@ export default { }, ]; } - if ( - n.indexOf("/manage/leveladd") !== -1 || - n.indexOf("/manage/LevelAdd") !== -1 - ) { + if (n.indexOf("/leveladd") !== -1 || n.indexOf("/LevelAdd") !== -1) { state.list = [ { name: "学习路径", - href: "/manage/learningpath", + href: "/learningpath", }, { name: "管理", @@ -60,17 +57,17 @@ export default { ]; } if ( - n.indexOf("/manage/leveladddetail") !== -1 || - n.indexOf("/manage/LevelAddDetail") !== -1 + n.indexOf("/leveladddetail") !== -1 || + n.indexOf("/LevelAddDetail") !== -1 ) { state.list = [ { name: "学习路径", - href: "/manage/learningpath", + href: "/learningpath", }, { name: "管理", - href: "/manage/leveladd", + href: "/leveladd", }, { name: "创建关卡", @@ -78,17 +75,17 @@ export default { ]; } if ( - n.indexOf("/manage/levelcheck") !== -1 || - n.indexOf("/manage/LevelCheck") !== -1 + n.indexOf("/levelcheck") !== -1 || + n.indexOf("/LevelCheck") !== -1 ) { state.list = [ { name: "学习路径", - href: "/manage/learningpath", + href: "/learningpath", }, { name: "管理", - href: "/manage/leveladd", + href: "/leveladd", }, { name: "查看", @@ -96,8 +93,8 @@ export default { ]; } if ( - n.indexOf("/manage/projectmanage") !== -1 || - n.indexOf("/manage/ProjectManage") !== -1 + n.indexOf("/projectmanage") !== -1 || + n.indexOf("/ProjectManage") !== -1 ) { state.list = [ { @@ -112,23 +109,20 @@ export default { ]; } if ( - n.indexOf("/manage/projectadd") !== -1 || - n.indexOf("/manage/ProjectAdd") !== -1 + n.indexOf("/projectadd") !== -1 || + n.indexOf("/ProjectAdd") !== -1 ) { state.list = [ { name: "项目", - href: "/manage/projectmanage", + href: "/projectmanage", }, { name: "创建项目", }, ]; } - if ( - n.indexOf("/manage/taskpage") !== -1 || - n.indexOf("/manage/TaskPage") !== -1 - ) { + if (n.indexOf("/taskpage") !== -1 || n.indexOf("/TaskPage") !== -1) { state.list = [ { name: "项目", @@ -139,10 +133,7 @@ export default { }, ]; } - if ( - n.indexOf("/manage/taskadd") !== -1 || - n.indexOf("/manage/TaskAdd") !== -1 - ) { + if (n.indexOf("/taskadd") !== -1 || n.indexOf("/TaskAdd") !== -1) { state.list = [ { name: "项目", @@ -160,8 +151,8 @@ export default { ]; } if ( - n.indexOf("/manage/templatelibrary") !== -1 || - n.indexOf("/manage/TemplateLibrary") !== -1 + n.indexOf("/templatelibrary") !== -1 || + n.indexOf("/TemplateLibrary") !== -1 ) { state.list = [ { @@ -173,8 +164,8 @@ export default { ]; } if ( - n.indexOf("/manage/libraryadd") !== -1 || - n.indexOf("/manage/LibraryAdd") !== -1 + n.indexOf("/libraryadd") !== -1 || + n.indexOf("/LibraryAdd") !== -1 ) { state.list = [ { @@ -185,13 +176,13 @@ export default { }, { name: "查看", - href: "/manage/libraryadd", + href: "/libraryadd", }, ]; } if ( - n.indexOf("/manage/coursemanage") !== -1 || - n.indexOf("/manage/CourseManage") !== -1 + n.indexOf("/coursemanage") !== -1 || + n.indexOf("/CourseManage") !== -1 ) { state.list = [ { @@ -206,8 +197,8 @@ export default { ]; } if ( - n.indexOf("/manage/coursewaremanage") !== -1 || - n.indexOf("/manage/CoursewareManage") !== -1 + n.indexOf("/coursewaremanage") !== -1 || + n.indexOf("/CoursewareManage") !== -1 ) { state.list = [ { @@ -219,8 +210,8 @@ export default { ]; } if ( - n.indexOf("/manage/researchmanage") !== -1 || - n.indexOf("/manage/ResearchManage") !== -1 + n.indexOf("/researchmanage") !== -1 || + n.indexOf("/ResearchManage") !== -1 ) { state.list = [ { @@ -231,8 +222,8 @@ export default { ]; } if ( - n.indexOf("/manage/managepage") !== -1 || - n.indexOf("/manage/ManagePage") !== -1 + n.indexOf("/managepage") !== -1 || + n.indexOf("/ManagePage") !== -1 ) { state.list = [ { @@ -247,8 +238,8 @@ export default { } if ( - n.indexOf("/manage/researchadd") !== -1 || - n.indexOf("/manage/ResearchAdd") !== -1 + n.indexOf("/researchadd") !== -1 || + n.indexOf("/ResearchAdd") !== -1 ) { state.list = [ { @@ -263,8 +254,8 @@ export default { } if ( - n.indexOf("/manage/certificatecenter") !== -1 || - n.indexOf("/manage/CertificateCenter") !== -1 + n.indexOf("/certificatecenter") !== -1 || + n.indexOf("/CertificateCenter") !== -1 ) { state.list = [ { @@ -273,8 +264,8 @@ export default { ]; } if ( - n.indexOf("/manage/systemmanage") !== -1 || - n.indexOf("/manage/SystemManage") !== -1 + n.indexOf("/systemmanage") !== -1 || + n.indexOf("/SystemManage") !== -1 ) { state.list = [ { @@ -283,8 +274,8 @@ export default { ]; } if ( - n.indexOf("/manage/coursereviewed") !== -1 || - n.indexOf("/manage/CourseReiewed") !== -1 + n.indexOf("/coursereviewed") !== -1 || + n.indexOf("/CourseReiewed") !== -1 ) { state.list = [ { @@ -296,8 +287,8 @@ export default { ]; } if ( - n.indexOf("/manage/coursereviewedn") !== -1 || - n.indexOf("/manage/CourseReiewedN") !== -1 + n.indexOf("/coursereviewedn") !== -1 || + n.indexOf("/CourseReiewedN") !== -1 ) { state.list = [ { @@ -309,8 +300,8 @@ export default { ]; } if ( - n.indexOf("/manage/projectreviewed") !== -1 || - n.indexOf("/manage/ProjectReviewed") !== -1 + n.indexOf("/projectreviewed") !== -1 || + n.indexOf("/ProjectReviewed") !== -1 ) { state.list = [ { @@ -322,8 +313,8 @@ export default { ]; } if ( - n.indexOf("/manage/projectreviewedn") !== -1 || - n.indexOf("/manage/ProjectReviewedN") !== -1 + n.indexOf("/projectreviewedn") !== -1 || + n.indexOf("/ProjectReviewedN") !== -1 ) { state.list = [ { diff --git a/src/components/NavLeft.vue b/src/components/NavLeft.vue index 87f64f4b..ce679c18 100644 --- a/src/components/NavLeft.vue +++ b/src/components/NavLeft.vue @@ -44,7 +44,7 @@ circle: selectedKeys[0] === 'sub10-1' ? false : true, }" > - 待审核课程 + 待审核课程 - 已审核课程 + 已审核课程 - 待审核项目 + 待审核项目 - 已审核项目 + 已审核项目 @@ -82,7 +82,7 @@ src="../assets/images/navleft/studyPath.png" />
- 学习路径 + 学习路径 @@ -102,7 +102,7 @@ circle: selectedKeys[0] === 'sub2-1' ? false : true, }" > - 项目 + 项目 - 模板库 + 模板库 @@ -132,7 +132,7 @@ circle: selectedKeys[0] === 'sub3-1' ? false : true, }" > - 课件管理 + 课件管理 - 课程管理 + 课程管理 @@ -162,7 +162,7 @@ src="../assets/images/navleft/survey.png" />
- 评估管理 + 评估管理 @@ -193,7 +193,7 @@ />
- 证书中心 + 证书中心
@@ -202,7 +202,7 @@ src="../assets/images/navleft/system.png" />
- 系统管理 + 系统管理
@@ -220,15 +220,15 @@ @click="handleClick" > - 学习 + 学习 - 项目 + 项目 - 课程 + 课程 @@ -295,104 +295,104 @@ export default { keysList: [ { - href: "/manage/coursereviewedn", + href: "/coursereviewedn", openKeys: "sub10", selectedKeys: "sub10-1", pagename: "待审核课程", }, { - href: "/manage/coursereviewed", + href: "/coursereviewed", openKeys: "sub10", selectedKeys: "sub10-2", pagename: "已审核课程", }, { - href: "/manage/projectreviewedn", + href: "/projectreviewedn", openKeys: "sub10", selectedKeys: "sub10-3", pagename: "待审核项目", }, { - href: "/manage/projectrrviewed", + href: "/projectrrviewed", openKeys: "sub10", selectedKeys: "sub10-4", pagename: "已审核项目", }, { - href: "/manage/learningpath", + href: "/learningpath", openKeys: "sub1", selectedKeys: "sub1", pagename: "学习路径", }, { - href: "/manage/leveladd", + href: "/leveladd", openKeys: "sub1", selectedKeys: "sub1", pagename: "关卡", }, { - href: "/manage/levelcheck", + href: "/levelcheck", openKeys: "sub1", selectedKeys: "sub1", pagename: "查看", }, { - href: "/manage/leveladddetail", + href: "/leveladddetail", openKeys: "sub1", selectedKeys: "sub1", pagename: "创建关卡", }, { - href: "/manage/projectmanage", + href: "/projectmanage", openKeys: "sub2", selectedKeys: "sub2-1", pagename: "项目", }, { - href: "/manage/projectadd", + href: "/projectadd", openKeys: "sub2", selectedKeys: "sub2-1", pagename: "创建项目", }, { - href: "/manage/templatelibrary", + href: "/templatelibrary", openKeys: "sub2", selectedKeys: "sub2-2", pagename: "模板库", }, { - href: "/manage/libraryadd", + href: "/libraryadd", openKeys: "sub2", selectedKeys: "sub2-2", pagename: "查看", }, { - href: "/manage/coursemanage", + href: "/coursemanage", openKeys: "sub3", selectedKeys: "sub3-1", pagename: "课件管理", }, { - href: "/manage/coursewaremanage", + href: "/coursewaremanage", openKeys: "sub3", selectedKeys: "sub3-2", pagename: "课程管理", }, { - href: "/manage/certificatecenter", + href: "/certificatecenter", openKeys: "sub8", selectedKeys: "sub8", pagename: "证书中心", }, { - href: "/manage/systemmanage", + href: "/systemmanage", openKeys: "sub9", selectedKeys: "sub9", pagename: "系统管理", }, { - href: "/manage/researchmanage", + href: "/researchmanage", openKeys: "sub5", selectedKeys: "sub5", pagename: "评估管理", diff --git a/src/components/OpenPages.vue b/src/components/OpenPages.vue index 96fd7655..721b819b 100644 --- a/src/components/OpenPages.vue +++ b/src/components/OpenPages.vue @@ -58,10 +58,10 @@ export default { state.openList.map((item, key) => { if (item.href === value.href) { if (state.openList.length === 1) { - if (state.openList[0].href !== "/manage/learningpath") { + if (state.openList[0].href !== "/learningpath") { state.openList.splice(key, 1); } - $router.push({ path: "/manage/learningpath" }); + $router.push({ path: "/learningpath" }); } else { if (value.active) { if (key === state.openList.length - 1) { diff --git a/src/components/vote/CreateVote.vue b/src/components/vote/CreateVote.vue index 3cf72955..bc862db1 100644 --- a/src/components/vote/CreateVote.vue +++ b/src/components/vote/CreateVote.vue @@ -366,7 +366,7 @@ export default { if (res.data.code === 200) { message.success("编辑成功"); router.push({ - path: "/manage/researchmanage", + path: "/researchmanage", }); } }); diff --git a/src/router/config.js b/src/router/config.js index 27b6f975..27b1e0cb 100644 --- a/src/router/config.js +++ b/src/router/config.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-09 09:26:26 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-11-21 15:06:51 + * @LastEditTime: 2022-11-21 17:42:50 * @FilePath: /fe-manage/src/router/config.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -12,7 +12,7 @@ context.keys().forEach((path) => { // console.log('path', path) const componentName = path.replace(/.*\/([^\\.\\/]*)\.vue$/, "$1"); routes.push({ - path: `/manage/${componentName.toLowerCase()}/:id?`, + path: `/${componentName.toLowerCase()}/:id?`, name: componentName, component: () => context(path), meta: { diff --git a/src/router/index.js b/src/router/index.js index 06d1632f..75da5b5a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-09 09:26:26 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-11-21 14:55:13 + * @LastEditTime: 2022-11-21 17:42:59 * @FilePath: /fe-manage/src/router/index.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -12,13 +12,12 @@ const routes = [ { path: '/', name: '首页', - redirect: '/manage/learningpath' + redirect: '/learningpath' }, ...routesConfig ] const router = createRouter({ - history: createWebHistory(), - base: '/manage', + history: createWebHistory("/manage/"), routes, }) diff --git a/src/store/index.js b/src/store/index.js index 2e92cedb..9056d61c 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-09 09:26:26 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-11-21 14:50:47 + * @LastEditTime: 2022-11-21 17:43:07 * @FilePath: /fe-manage/src/store/index.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -15,7 +15,7 @@ export default createStore({ : [ { pagename: "学习路径", - href: "/manage/learningpath", + href: "/learningpath", active: true, }, ], diff --git a/src/views/learningpath/LearningPath.vue b/src/views/learningpath/LearningPath.vue index 5cc8b378..7e7a1fed 100644 --- a/src/views/learningpath/LearningPath.vue +++ b/src/views/learningpath/LearningPath.vue @@ -49,7 +49,7 @@
-
- +
- +
- +
- +
返回
diff --git a/src/views/projectcenter/ClassAdd.vue b/src/views/projectcenter/ClassAdd.vue index 0b5c8b12..57526254 100644 --- a/src/views/projectcenter/ClassAdd.vue +++ b/src/views/projectcenter/ClassAdd.vue @@ -6,7 +6,7 @@
返回 @@ -408,7 +408,7 @@ export default { if (routers.query.name == undefined) { router.push({ - path: "/manage/projectmanage", + path: "/projectmanage", }); } @@ -481,7 +481,7 @@ export default { const backPage = () => { setTimeout(() => { router.push({ - path: "/manage/projectmanage", + path: "/projectmanage", }); }, 400); }; @@ -800,7 +800,7 @@ export default { message.success("编辑成功"); setTimeout(() => { router.push({ - path: "/manage/projectmanage", + path: "/projectmanage", }); }, 1000); } else { @@ -855,7 +855,7 @@ export default { message.success("创建成功"); setTimeout(() => { router.push({ - path: "/manage/taskpage", + path: "/taskpage", query: { id: res.data.data.projectId }, }); }, 1000); diff --git a/src/views/projectcenter/LibraryAdd.vue b/src/views/projectcenter/LibraryAdd.vue index 851e7e8e..aa9a37f3 100644 --- a/src/views/projectcenter/LibraryAdd.vue +++ b/src/views/projectcenter/LibraryAdd.vue @@ -33,7 +33,7 @@
-
返回
@@ -55,7 +55,7 @@
任务大纲
- + { routered.push({ - path: "/manage/templateAdd", + path: "/templateAdd", query: { projectId: state.projectId, name: state.name, diff --git a/src/views/projectcenter/ProjectAdd.vue b/src/views/projectcenter/ProjectAdd.vue index 900c780c..9958aeb4 100644 --- a/src/views/projectcenter/ProjectAdd.vue +++ b/src/views/projectcenter/ProjectAdd.vue @@ -6,7 +6,7 @@
返回 @@ -48,13 +48,17 @@ } " v-model:value="classifySelect" - placeholder="四个养成" + placeholder="请选择分类" style="width: 100%" :options="classifyList" @change="classificationChange" allowClear showSearch :disabled="viewDetail ? true : false" + :fieldNames="{ + label: 'dictName', + value: 'dictCode', + }" >
@@ -79,7 +83,18 @@ overflow: hidden; " > - + -
-
- + -->
@@ -263,9 +275,14 @@ " v-model:value="classifySelect3" :options="classifyList3" + style="width: 100%" @change="classificationChange3" - placeholder="集团级/组织级/现地级/部门级" + placeholder="请选择项目级别" :disabled="viewDetail ? true : false" + :fieldNames="{ + label: 'dictName', + value: 'dictCode', + }" />
@@ -286,8 +303,9 @@ " v-model:value="classifySelect4" :options="classifyList4" + style="width: 100%" @change="classificationChange4" - placeholder="集团级/组织级/现地级/部门级" + placeholder="请选择培训分类" :disabled="viewDetail ? true : false" />
@@ -392,7 +410,7 @@ import { message } from "ant-design-vue"; import { useRouter, useRoute } from "vue-router"; import dayjs from "dayjs"; import * as api from "../../api/index"; -// import * as api1 from "../../api/index1"; +import * as api1 from "../../api/index1"; import { storage } from "../../api/storage"; import { toDate } from "../../api/method"; import { useStore } from "vuex"; @@ -530,7 +548,7 @@ export default { storage.remove("projectAddId"); setTimeout(() => { router.push({ - path: "/manage/projectmanage", + path: "/projectmanage", }); }, 400); }; @@ -558,15 +576,41 @@ export default { }); const projectName = ref(""); - - const classifyList = ref([ - { value: 1, label: "管理者" }, - { value: 2, label: "领军者" }, - { value: 3, label: "产业人" }, - ]); + //分类 + const classifyList = ref([]); + const getDictList = (param) => { + let obj = { + pageNo: 1, + pageSize: 20, + setCode: param, + }; + api1 + .getDict(obj) + .then((res) => { + console.log("获取字典成功", res); + if (res.status === 200) { + if (param === "projectClass") { + classifyList.value = res.data.data.rows; + } + if (param === "projectPic") { + if (res.data.data.rows.length > 0) { + imageUrl.value = res.data.data.rows[0].dictValue; + } + } + if (param === "projectLevel") { + classifyList3.value = res.data.data.rows; + } + } + }) + .catch((err) => { + console.log("获取字典失败", err); + }); + }; + getDictList("projectClass"); + getDictList("projectPic"); + getDictList("projectLevel"); let projectType = ""; - const classificationChange = (value) => { console.log(`selected ${value}`); projectType = value; @@ -721,25 +765,9 @@ export default { // 资源归属 sourceBelongId 后续给接口 const classifyList2 = computed(() => { - return store.state.orgtreeList ? store.state.orgtreeList : ref(null); + return store.state.orgtreeList ? store.state.orgtreeList : ref([]); }); - // //获取资源归属 - // const orgTree = () => { - // api1 - // .orgtree() - // .then((res) => { - // console.log("获取集团组织成功", res); - // if (res.status === 200) { - // classifyList2.value = res.data.data; - // } - // }) - // .catch((err) => { - // console.log("获取集团组织失败", err); - // }); - // }; - // orgTree(); - let sourceBelongIdC = ""; const classificationChange2 = (key) => { console.log(`selected ${key}`, classifyList2); @@ -748,10 +776,10 @@ export default { // 项目级别 const classifyList3 = ref([ - { value: 1, label: "集团级" }, - { value: 2, label: "组织级" }, - { value: 3, label: "现地级" }, - { value: 4, label: "部门级" }, + // { value: 1, label: "集团级" }, + // { value: 2, label: "组织级" }, + // { value: 3, label: "现地级" }, + // { value: 4, label: "部门级" }, ]); let levels = ""; @@ -874,7 +902,7 @@ export default { }); }; getTemplate(); - //模版滚动加载信息 + //模版滚动加载模板信息 const templateScroll = (e) => { // console.log("滚动", e, b); const { target } = e; @@ -993,7 +1021,7 @@ export default { message.success("编辑成功"); setTimeout(() => { router.push({ - path: "/manage/projectmanage", + path: "/projectmanage", }); }, 1000); } else { @@ -1048,7 +1076,7 @@ export default { message.success("创建成功"); setTimeout(() => { router.push({ - path: "/manage/taskpage", + path: "/taskpage", query: { id: res.data.data.projectId }, }); }, 1000); diff --git a/src/views/projectcenter/ProjectManage.vue b/src/views/projectcenter/ProjectManage.vue index 2544ae97..950929d5 100644 --- a/src/views/projectcenter/ProjectManage.vue +++ b/src/views/projectcenter/ProjectManage.vue @@ -259,7 +259,7 @@
- +
{/* - 基础信息 + 基础信息
{/* - 基础信息 + 基础信息
{/* - 基础信息 + 基础信息
{ router.push({ - path: "/manage/classadd", + path: "/classadd", query: { projectId: value.record.projectId, name: value.record.name, @@ -2482,7 +2482,7 @@ export default { }); }} style={{ cursor: "pointer" }} - to="/manage/classadd" + to="/classadd" class="operation3" > 创建班级 @@ -2566,7 +2566,7 @@ export default {
- + 创建班级
@@ -2683,7 +2683,7 @@ export default { } if (value.record.parentId == "0") { router.push({ - path: "/manage/projectadd", + path: "/projectadd", query: { projectId: value.record.projectId, name: value.record.name, @@ -2692,7 +2692,7 @@ export default { } else { if (value.record.isbj) { router.push({ - path: "/manage/classadd", + path: "/classadd", query: { projectId: value.record.projectId, name: value.record.paraentName, @@ -2701,7 +2701,7 @@ export default { }); } else { router.push({ - path: "/manage/sonproject", + path: "/sonproject", query: { projectId: value.record.projectId, name: value.record.paraentName, @@ -2728,7 +2728,7 @@ export default { // } // if (value.record.parentId == "0") { // router.push({ - // path: "/manage/projectadd", + // path: "/projectadd", // query: { // projectId: value.record.projectId, // name: value.record.name, @@ -2738,7 +2738,7 @@ export default { // } else { // if (value.record.isbj) { // router.push({ - // path: "/manage/classadd", + // path: "/classadd", // query: { // projectId: value.record.projectId, // name: value.record.paraentName, @@ -2748,7 +2748,7 @@ export default { // }); // } else { // router.push({ - // path: "/manage/sonproject", + // path: "/sonproject", // query: { // projectId: value.record.projectId, // name: value.record.paraentName, @@ -2878,7 +2878,7 @@ export default {
{ router.push({ - path: "/manage/taskpage", + path: "/taskpage", }); storage.set("projectId", value.record.projectId); }} @@ -2937,7 +2937,7 @@ export default {
{ router.push({ - path: "/manage/taskpage", + path: "/taskpage", }); storage.set("projectId", value.record.projectId); }} @@ -2984,7 +2984,7 @@ export default {
{ router.push({ - path: "/manage/taskpage", + path: "/taskpage", }); storage.set("projectId", value.record.projectId); }} @@ -2992,7 +2992,7 @@ export default { 基础信息
{/** - 基础信息 + 基础信息 */} diff --git a/src/views/projectcenter/SonProject.vue b/src/views/projectcenter/SonProject.vue index 7b1dfa20..d09e7be9 100644 --- a/src/views/projectcenter/SonProject.vue +++ b/src/views/projectcenter/SonProject.vue @@ -6,7 +6,7 @@
返回 @@ -408,7 +408,7 @@ export default { if (routers.query.name == undefined) { router.push({ - path: "/manage/projectmanage", + path: "/projectmanage", }); } @@ -481,7 +481,7 @@ export default { const backPage = () => { setTimeout(() => { router.push({ - path: "/manage/projectmanage", + path: "/projectmanage", }); }, 400); }; @@ -800,7 +800,7 @@ export default { message.success("编辑成功"); setTimeout(() => { router.push({ - path: "/manage/projectmanage", + path: "/projectmanage", }); }, 1000); } else { @@ -855,7 +855,7 @@ export default { message.success("创建成功"); setTimeout(() => { router.push({ - path: "/manage/taskpage", + path: "/taskpage", query: { id: res.data.data.projectId }, }); }, 1000); diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue index 831dad0c..9ee429ee 100644 --- a/src/views/projectcenter/TaskAdd.vue +++ b/src/views/projectcenter/TaskAdd.vue @@ -149,7 +149,7 @@ - +
- +
返回
@@ -321,8 +321,8 @@ - -
@@ -3260,7 +3264,7 @@ export default { let luj = info.attach; console.log("lulj", luj); console.log("赚回来", JSON.parse(luj)); - state.fileList = JSON.parse(luj) + state.fileList = JSON.parse(luj); // state.fileList = luj } }); @@ -3379,9 +3383,9 @@ export default { // // list.push(JSON.stringify(item)) // state.fileList.push(item) // }); - - state.fileList.push(info.file) - list = state.fileList + + state.fileList.push(info.file); + list = state.fileList; console.log("list", list); // let str = list.join(","); let str = JSON.stringify(list); @@ -3431,7 +3435,7 @@ export default { const toEdit = () => { if (state.parentId == "0") { routered.push({ - path: "/manage/projectadd", + path: "/projectadd", query: { projectId: state.projectId, name: state.name, @@ -3440,7 +3444,7 @@ export default { } else { if (state.isbj !== null) { routered.push({ - path: "/manage/classadd", + path: "/classadd", query: { projectId: state.projectId, // name: state.paraentName, @@ -3450,7 +3454,7 @@ export default { }); } else { routered.push({ - path: "/manage/sonproject", + path: "/sonproject", query: { projectId: state.projectId, name: state.name, @@ -3608,45 +3612,47 @@ export default { }); }; //删除文件 - const deFile=(id)=>{ - console.log(id) - let index = state.fileList.findIndex(item=>{item.uid==id}) - state.fileList.splice(index,1) - let str = JSON.stringify(state.fileList) + const deFile = (id) => { + console.log(id); + let index = state.fileList.findIndex((item) => { + item.uid == id; + }); + state.fileList.splice(index, 1); + let str = JSON.stringify(state.fileList); editProj({ - attach: str, - beginTime: state.tstartTime.slice(0, 10), - // beginTime:1668643200, - boeFlag: state.boeFlag, - category: state.category, - courseSyncFlag: state.courseSyncFlag, - endTime: state.tendTime.slice(0, 10), - // endTime: 1668816000, - level: state.tlevel, - manager: state.manager, - managerId: state.managerId, - name: state.name, - notice: state.notice, - noticeFlag: state.noticeFlag, - parentId: state.parentId, - picUrl: state.picUrl, - projectId: state.projectId, - remark: state.remark, - sourceBelongId: Number(state.tsourceBelong), - status: state.status, - systemId: state.tsystemId, - templateId: state.templateId || 0, - type: state.type, + attach: str, + beginTime: state.tstartTime.slice(0, 10), + // beginTime:1668643200, + boeFlag: state.boeFlag, + category: state.category, + courseSyncFlag: state.courseSyncFlag, + endTime: state.tendTime.slice(0, 10), + // endTime: 1668816000, + level: state.tlevel, + manager: state.manager, + managerId: state.managerId, + name: state.name, + notice: state.notice, + noticeFlag: state.noticeFlag, + parentId: state.parentId, + picUrl: state.picUrl, + projectId: state.projectId, + remark: state.remark, + sourceBelongId: Number(state.tsourceBelong), + status: state.status, + systemId: state.tsystemId, + templateId: state.templateId || 0, + type: state.type, + }) + .then((res) => { + console.log("上传成功", res); + message.destroy(); + return message.success("删除成功"); }) - .then((res) => { - console.log("上传成功", res); - message.destroy() - return message.success("删除成功") - }) - .catch((err) => { - console.log("上传失败了", err); - }); - } + .catch((err) => { + console.log("上传失败了", err); + }); + }; onMounted(() => { getStu(); getTaskList(); diff --git a/src/views/projectcenter/TemplateLibrary.vue b/src/views/projectcenter/TemplateLibrary.vue index a809d8ee..840388e6 100644 --- a/src/views/projectcenter/TemplateLibrary.vue +++ b/src/views/projectcenter/TemplateLibrary.vue @@ -138,7 +138,7 @@ export default defineComponent({ {value.status === "已发布" ? (
- +
查看{" "} | @@ -179,7 +179,7 @@ export default defineComponent({
- +
查看 | diff --git a/src/views/projectcenter/templateAdd.vue b/src/views/projectcenter/templateAdd.vue index a7201aea..60bc59ee 100644 --- a/src/views/projectcenter/templateAdd.vue +++ b/src/views/projectcenter/templateAdd.vue @@ -6,7 +6,7 @@
返回 @@ -501,7 +501,7 @@ export default { storage.remove("projectAddId"); setTimeout(() => { router.push({ - path: "/manage/libraryAdd", + path: "/libraryAdd", }); }, 400); }; @@ -950,7 +950,7 @@ export default { message.success("编辑成功"); setTimeout(() => { router.push({ - path: "/manage/projectmanage", + path: "/projectmanage", }); }, 1000); } else { @@ -1005,7 +1005,7 @@ export default { message.success("创建成功"); setTimeout(() => { router.push({ - path: "/manage/taskpage", + path: "/taskpage", query: { id: res.data.data.projectId }, }); }, 1000); diff --git a/src/views/research/ManagePage.vue b/src/views/research/ManagePage.vue index 3008b51f..dd7aec0e 100644 --- a/src/views/research/ManagePage.vue +++ b/src/views/research/ManagePage.vue @@ -10,9 +10,9 @@ 导出信息
- + - + 返回 diff --git a/src/views/research/ResearchAdd copy.vue b/src/views/research/ResearchAdd copy.vue index a8593eed..a9a6c462 100644 --- a/src/views/research/ResearchAdd copy.vue +++ b/src/views/research/ResearchAdd copy.vue @@ -3,9 +3,9 @@
创建评估 - + - + 返回 diff --git a/src/views/research/ResearchAdd.vue b/src/views/research/ResearchAdd.vue index d7562fb0..3a97ca47 100644 --- a/src/views/research/ResearchAdd.vue +++ b/src/views/research/ResearchAdd.vue @@ -3,9 +3,9 @@
创建评估 - + - + 返回 @@ -499,7 +499,7 @@ export default { if (res.data.code === 200) { message.success("编辑成功"); router.push({ - path: "/manage/researchmanage", + path: "/researchmanage", }); } }); @@ -517,7 +517,7 @@ export default { if (res.data.code === 200) { message.success("创建成功"); router.push({ - path: "/manage/researchmanage", + path: "/researchmanage", }); } }); @@ -526,7 +526,7 @@ export default { const handleAllCancel = () => { state.allFormsData = []; router.push({ - path: "/manage/researchmanage", + path: "/researchmanage", }); }; const checkVal = (filterData) => { diff --git a/src/views/research/ResearchManage.vue b/src/views/research/ResearchManage.vue index 3e972ffd..6e56bc80 100644 --- a/src/views/research/ResearchManage.vue +++ b/src/views/research/ResearchManage.vue @@ -428,7 +428,7 @@ export default {
{ - handleToManagepage(value, "/manage/managepage"); + handleToManagepage(value, "/managepage"); }} > 管理 @@ -474,7 +474,7 @@ export default {
{ - handleToResearchadd(value, "/manage/researchadd"); + handleToResearchadd(value, "/researchadd"); }} > 基础信息 diff --git a/src/views/system/SystemManage.vue b/src/views/system/SystemManage.vue index 187f212b..347c9d8b 100644 --- a/src/views/system/SystemManage.vue +++ b/src/views/system/SystemManage.vue @@ -327,7 +327,7 @@ export default { }; const router = useRouter(); const golearningpath = () => { - router.push({ path: "/manage/learningpath", params: { id: 1 } }); + router.push({ path: "/learningpath", params: { id: 1 } }); }; //下载二维码图片 From 6bc5991774ba0d1824506ec15ded9d6e8bdd698e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=86=99=E4=B8=9C?= <2195178163@qq.com> Date: Mon, 21 Nov 2022 18:17:41 +0800 Subject: [PATCH 83/90] =?UTF-8?q?feat:=20=E6=A8=A1=E6=9D=BF=E7=BC=96?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E4=BB=BB=E5=8A=A1=E5=A4=A7=E7=BA=B2=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A8=A1=E6=9D=BF=E4=BB=BB=E5=8A=A1=E9=98=B6?= =?UTF-8?q?=E6=AE=B5=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexTemplate.js | 2 +- src/views/projectcenter/LibraryAdd.vue | 776 +++--- src/views/projectcenter/temTask.vue | 3200 +++++++++++++++++++++++ src/views/projectcenter/templateAdd.vue | 547 +--- 4 files changed, 3674 insertions(+), 851 deletions(-) create mode 100644 src/views/projectcenter/temTask.vue diff --git a/src/api/indexTemplate.js b/src/api/indexTemplate.js index a9837852..212aafee 100644 --- a/src/api/indexTemplate.js +++ b/src/api/indexTemplate.js @@ -4,7 +4,7 @@ import http from "./config"; //编辑项目模板 export const templateEdit = (obj) => http.post('/admin/project/template/edit',obj); // 模板详情 -export const templateDetail = (id) => http.get(`/admin/project/template/edit?projectTemplateId=${id}`); +export const templateDetail = (id) => http.get(`/admin/project/template/detail?projectTemplateId=${id}`); // 删除阶段 export const deleteStage = (id) => http.delete(`/admin/project/template/deleteStage`,{stageId:id}); //删除任务 diff --git a/src/views/projectcenter/LibraryAdd.vue b/src/views/projectcenter/LibraryAdd.vue index 9b6a10ff..f44e4414 100644 --- a/src/views/projectcenter/LibraryAdd.vue +++ b/src/views/projectcenter/LibraryAdd.vue @@ -5,12 +5,11 @@
-
{{ projectInfo.name || "-" }}
+
{{projectInfo.name || '-'}}
-
项目经理:{{ projectInfo.manager || "-" }}
+
项目经理:{{projectInfo.manager || '-'}}
- 起止时间:{{ projectInfo.beginTime || "-" }} 至 - {{ projectInfo.endTime || "-" }} + 起止时间:{{projectInfo.beginTime || '-'}} 至 {{projectInfo.endTime || '-'}}
@@ -34,7 +33,7 @@
-
返回
@@ -56,7 +55,7 @@
任务大纲
- + - +
- +
公告内容
+
当前设计下,学员可以获得
-
-
- 基本信息 - 编辑 -
-
+
+ + +
+ +
+
+
编辑
+
-
模板名称:
+
项目名称:
- + {{ projectInfo.name }}
封面图:
- - - +
-
模板时间:
+
项目时间:
- + {{ projectInfo.beginTime }} ~ {{ projectInfo.endTime }}
项目经理:
- + {{ projectInfo.manager }}
资源归属:
- + {{ projectInfo.sourceBelong }}
-
模板说明:
+
项目说明:
- + {{ projectInfo.remark }}
同步学习记录:
-
- + 同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)
项目级别:
- + {{ projectInfo.level }}
-
培训分类:
+
培训体系:
- + {{ projectInfo.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}} + 删除 +
+
+
@@ -640,10 +559,11 @@
+ \ No newline at end of file + diff --git a/src/views/projectcenter/temTask.vue b/src/views/projectcenter/temTask.vue new file mode 100644 index 00000000..df5be070 --- /dev/null +++ b/src/views/projectcenter/temTask.vue @@ -0,0 +1,3200 @@ + + + + + + \ No newline at end of file diff --git a/src/views/projectcenter/templateAdd.vue b/src/views/projectcenter/templateAdd.vue index 60bc59ee..05959e27 100644 --- a/src/views/projectcenter/templateAdd.vue +++ b/src/views/projectcenter/templateAdd.vue @@ -6,7 +6,7 @@
返回 @@ -24,11 +24,10 @@
@@ -47,14 +46,13 @@ return triggerNode.parentNode || document.body; } " - v-model:value="classifySelect" - placeholder="四个养成" + v-model:value="projectInfo.category" + placeholder="管理者" style="width: 100%" :options="classifyList" @change="classificationChange" allowClear showSearch - :disabled="viewDetail ? true : false" >
@@ -88,7 +86,6 @@ action="/api/file/upload" :before-upload="beforeUpload" @change="handleChange" - :disabled="viewDetail ? true : false" >
@@ -146,7 +141,7 @@ return triggerNode.parentNode || document.body; } " - :value="classifySelect1" + :value="projectInfo.manager" mode="multiple" placeholder="请选择项目经理" style="width: 100%" @@ -154,7 +149,6 @@ @change="classificationChange1" allowClear showSearch - :disabled="viewDetail ? true : false" >
@@ -175,11 +169,10 @@ return triggerNode.parentNode || document.body; } " - v-model:value="classifySelect2" - placeholder="自动带出 可修改" + v-model:value="projectInfo.sourceBelongId" + placeholder="项目一" :options="classifyList2" @change="classificationChange2" - :disabled="viewDetail ? true : false" />
@@ -189,12 +182,11 @@
@@ -205,8 +197,7 @@
-
-
模版
-
- - - - -
-
-
@@ -3260,7 +3264,7 @@ export default { let luj = info.attach; console.log("lulj", luj); console.log("赚回来", JSON.parse(luj)); - state.fileList = JSON.parse(luj) + state.fileList = JSON.parse(luj); // state.fileList = luj } }); @@ -3369,33 +3373,23 @@ export default { }; //end---------项目概览 - const handleChange = (info) => { + const handleChange = ({ file, fileList }) => { let list = []; - if (info.file.status !== "uploading") { - console.log(info.file.response.data, info.fileList); - // info.fileList.map((item) => { - // //把地址放到list里 - // // list.push(item.response.data); - // // list.push(JSON.stringify(item)) - // state.fileList.push(item) - // }); - - state.fileList.push(info.file) - list = state.fileList + if (file.status !== "uploading") { + console.log("上传的list", fileList); + console.log(file); + list = state.fileList; console.log("list", list); - // let str = list.join(","); let str = JSON.stringify(list); - console.log("str", str); + console.log("str",str) //要编辑项目 editProj({ attach: str, beginTime: state.tstartTime.slice(0, 10), - // beginTime:1668643200, boeFlag: state.boeFlag, category: state.category, courseSyncFlag: state.courseSyncFlag, endTime: state.tendTime.slice(0, 10), - // endTime: 1668816000, level: state.tlevel, manager: state.manager, managerId: state.managerId, @@ -3420,10 +3414,10 @@ export default { }); } - if (info.file.status === "done") { - message.success(`${info.file.name} 文件上传成功`); - } else if (info.file.status === "error") { - message.error(`${info.file.name} 文件上传失败.`); + if (file.status === "done") { + message.success(`${file.name} 文件上传成功`); + } else if (file.status === "error") { + message.error(`${file.name} 文件上传失败.`); } }; @@ -3608,45 +3602,47 @@ export default { }); }; //删除文件 - const deFile=(id)=>{ - console.log(id) - let index = state.fileList.findIndex(item=>{item.uid==id}) - state.fileList.splice(index,1) - let str = JSON.stringify(state.fileList) + const deFile = (id) => { + console.log(id); + let index = state.fileList.findIndex((item) => { + item.uid == id; + }); + state.fileList.splice(index, 1); + let str = JSON.stringify(state.fileList); editProj({ - attach: str, - beginTime: state.tstartTime.slice(0, 10), - // beginTime:1668643200, - boeFlag: state.boeFlag, - category: state.category, - courseSyncFlag: state.courseSyncFlag, - endTime: state.tendTime.slice(0, 10), - // endTime: 1668816000, - level: state.tlevel, - manager: state.manager, - managerId: state.managerId, - name: state.name, - notice: state.notice, - noticeFlag: state.noticeFlag, - parentId: state.parentId, - picUrl: state.picUrl, - projectId: state.projectId, - remark: state.remark, - sourceBelongId: Number(state.tsourceBelong), - status: state.status, - systemId: state.tsystemId, - templateId: state.templateId || 0, - type: state.type, + attach: str, + beginTime: state.tstartTime.slice(0, 10), + // beginTime:1668643200, + boeFlag: state.boeFlag, + category: state.category, + courseSyncFlag: state.courseSyncFlag, + endTime: state.tendTime.slice(0, 10), + // endTime: 1668816000, + level: state.tlevel, + manager: state.manager, + managerId: state.managerId, + name: state.name, + notice: state.notice, + noticeFlag: state.noticeFlag, + parentId: state.parentId, + picUrl: state.picUrl, + projectId: state.projectId, + remark: state.remark, + sourceBelongId: Number(state.tsourceBelong), + status: state.status, + systemId: state.tsystemId, + templateId: state.templateId || 0, + type: state.type, + }) + .then((res) => { + console.log("上传成功", res); + message.destroy(); + return message.success("删除成功"); }) - .then((res) => { - console.log("上传成功", res); - message.destroy() - return message.success("删除成功") - }) - .catch((err) => { - console.log("上传失败了", err); - }); - } + .catch((err) => { + console.log("上传失败了", err); + }); + }; onMounted(() => { getStu(); getTaskList(); From 6ecc8e01fdf6c5f34f6316e503e1cf016953181c Mon Sep 17 00:00:00 2001 From: Ggysh-7 <102372376+Ggysh-7@users.noreply.github.com> Date: Tue, 22 Nov 2022 18:25:24 +0800 Subject: [PATCH 87/90] =?UTF-8?q?fit:=E6=B7=BB=E5=8A=A0=E6=A1=88=E4=BE=8B?= =?UTF-8?q?=20=E9=80=89=E6=8B=A9=E6=B5=8B=E8=AF=84=E3=80=81=E8=AF=95?= =?UTF-8?q?=E5=8D=B7=20=E3=80=81=E5=9B=9B=E4=B8=AA=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=9A=84=E8=8E=B7=E5=8F=96=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=9D=A1=E4=BB=B6=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=A1=88=E4=BE=8B=E6=9C=80=E5=A4=9A=E9=80=89=E6=8B=A9=E4=B8=A4?= =?UTF-8?q?=E6=9D=A1=20=E9=80=89=E6=8B=A9=E8=AF=95=E5=8D=B7=E3=80=81?= =?UTF-8?q?=E6=B5=8B=E8=AF=84=E6=9C=80=E5=A4=9A=E9=80=89=E6=8B=A9=E4=B8=80?= =?UTF-8?q?=E6=9D=A1=E5=8F=AF=E5=8F=8D=E9=80=89=E5=88=9B=E5=BB=BA=E6=B5=8B?= =?UTF-8?q?=E8=AF=84=E4=BF=A1=E6=81=AF=E6=8E=A5=E5=8F=A3=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/AddCase.vue | 24 ++++++++---------- src/components/drawers/AddEval.vue | 4 +++ src/components/drawers/AddTest.vue | 33 ++++++++++++++---------- src/components/drawers/EvList.vue | 36 +++++++++++++++++++-------- src/components/drawers/FaceManage.vue | 28 +++++++++++++-------- src/components/drawers/SelectTest.vue | 24 ++++++++++++++---- src/components/drawers/TestManage.vue | 5 +++- src/components/drawers/TimeManage.vue | 4 ++- src/components/drawers/WorkManage.vue | 6 +++-- 9 files changed, 108 insertions(+), 56 deletions(-) diff --git a/src/components/drawers/AddCase.vue b/src/components/drawers/AddCase.vue index 293ac1e7..22c806dc 100644 --- a/src/components/drawers/AddCase.vue +++ b/src/components/drawers/AddCase.vue @@ -150,8 +150,10 @@ export default { localStorage.setItem("stageId", props.chooseStageId); localStorage.setItem("chapterId", props.isactive); }; - const afterVisibleChange = () => { - getAllCaseText() + const afterVisibleChange = (bol) => { + if ( bol == true ) { + getAllCaseText() + } }; const tableDataFunc = () => { const columns = [ @@ -182,6 +184,9 @@ export default { return columns; }; const onSelectChange = (selectedRowKeys,selectedRows)=> { + if(selectedRowKeys.length>2){ + return + } state.selectedRowKeys = selectedRowKeys; state.apiTaskList = selectedRows; }; @@ -251,18 +256,6 @@ export default { }); } else if (props.isLevel == 2) { if(state.apiTaskList.length > 1){ - // for((item,index) in state.apiTaskList){ - // apiTask - // .addTask({ - // "courseId": item.caseId, - // "duration": 0, - // "flag": true, - // "name": item.caseName, - // "projectId": props.projectId, - // "projectTaskId": props.projectTaskId, - // "stageId": props.chooseStageId, - // "type": 3, - // }) for(let i = 0;i <= state.apiTaskList.length;i++){ apiTask .addTask({ @@ -455,6 +448,9 @@ export default { .ant-table-selection-column { padding: 0px !important; padding-left: 15px !important; + .ant-table-selection{ + display: none; + } } .ant-table-thead > tr > th { background-color: rgba(239, 244, 252, 1); diff --git a/src/components/drawers/AddEval.vue b/src/components/drawers/AddEval.vue index 0a58aef2..2f3ece39 100644 --- a/src/components/drawers/AddEval.vue +++ b/src/components/drawers/AddEval.vue @@ -215,6 +215,8 @@ export default { projectId: props.projectId, projectTaskId: props.projectTaskId || 0, stageId: props.chooseStageId, + evaluationTypeId: state.evaluationTypeId, + evaluationTypeName: state.evaluationTypeName, type: 10, }) .then(( ) => { @@ -230,6 +232,8 @@ export default { name: res.data.data.evaluationName, routerId: props.routerId, routerTaskId: props.routerTaskId || 0, + evaluationTypeId: state.evaluationTypeId, + evaluationTypeName: state.evaluationTypeName, type: 10, }) .then(( ) => { diff --git a/src/components/drawers/AddTest.vue b/src/components/drawers/AddTest.vue index 82c24cf7..e16ef4d4 100644 --- a/src/components/drawers/AddTest.vue +++ b/src/components/drawers/AddTest.vue @@ -78,15 +78,16 @@
- - + + 选择试卷 + + {{ paperName }} +
@@ -709,8 +716,8 @@ export default { .catch(() => { message.error(`${props.EditTestId ? "编辑" : "新增"}阶段任务失败`); }); - } else if (props.isLevel == 3) { - console.log(""); + } else if (props.isLevel == 3) { + console.log(""); } }; diff --git a/src/components/drawers/EvList.vue b/src/components/drawers/EvList.vue index 5bb04782..257dbd95 100644 --- a/src/components/drawers/EvList.vue +++ b/src/components/drawers/EvList.vue @@ -36,7 +36,7 @@
搜索
-
+
重置
@@ -50,7 +50,7 @@ :data-source="tableData" :loading="tableDataTotal === -1 ? true : false" :pagination="false" - :row-selection="{ selectedRowKeys:selectedRowKeys,onSelect:onSelect,onChange:onSelectChange}" + :row-selection="{ selectedRowKeys:selectedRowKeys,onChange:onSelectChange}" />
{ - state.evaluationTypeName = record.title - state.evaluationTypeId = record.quiz_code - }; - const onSelectChange = (selectedRowKeys)=> { + // const onSelect = (record)=> { + // state.evaluationTypeName = record.title + // state.evaluationTypeId = record.quiz_code + // }; + const onSelectChange = (selectedRowKeys,selectedRows)=> { + if(state.selectedRowKeys.length>1){ + return + } state.selectedRowKeys = selectedRowKeys + state.evaluationTypeName = selectedRows[0].record.title + state.evaluationTypeId = selectedRows[0].quiz_code } const closeDrawer = () => { ctx.emit("update:EvalListVisible", false); }; - const afterVisibleChange = () => { - getAllEvalText(); + const afterVisibleChange = (bol) => { + if ( bol == true ) { + getAllEvalText(); + } }; const checkFinish =() =>{ let EvListDate = { @@ -204,15 +211,24 @@ .catch(()=>{ }) } + //重置测评列表 + const resetData = ()=> { + state.currentPage = 1; + state.tableData = []; + state.selectedRowKeys = []; + state.evaluationTypeId = null; + state.evaluationTypeName = ""; + getAllEvalText(); + } return { ...toRefs(state), afterVisibleChange, closeDrawer, onSelectChange, - onSelect, getTableDataList, checkFinish, changePagination, + resetData, }; }, }; diff --git a/src/components/drawers/FaceManage.vue b/src/components/drawers/FaceManage.vue index c87e5671..c9040848 100644 --- a/src/components/drawers/FaceManage.vue +++ b/src/components/drawers/FaceManage.vue @@ -98,7 +98,6 @@ :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange, - onSelect: onSelect, }" />
@@ -194,12 +193,20 @@ export default { selectedRowKeys: [], tabledata: [ { + key:1, workNum:1, status:"已完成", operation:"", }, { - workNum:1, + key:2, + workNum:2, + status:"未完成", + operation:"", + }, + { + key:3, + workNum:2, status:"未完成", operation:"", } @@ -341,18 +348,21 @@ export default { const closeDrawer = () => { ctx.emit("update:Fvisible", false); }; - const afterVisibleChange = () => { - getManageList() + const afterVisibleChange = (bol) => { + if ( bol == true ) { + getManageList() + } + }; const selectProjectName = (value) => { state.projectName = value; }; const onSelectChange = (selectedRowKeys) => { - state.selectedRowKeys = selectedRowKeys; + if(selectedRowKeys.length > 2){ + return + } + state.selectedRowKeys = selectedRowKeys; }; - const onSelect = (record) => { - console.log(record); - } const allStuOver = ()=> { state.ASOvervisible = true @@ -457,7 +467,6 @@ export default { closeDrawer, afterVisibleChange, onSelectChange, - onSelect, allStuOver, showEntryScore, godie, @@ -672,7 +681,6 @@ export default { .tableBox { .ant-table-selection-column { padding: 0px !important; - // padding-left: 45px !important; } .ant-pagination-item, .ant-pagination-prev, diff --git a/src/components/drawers/SelectTest.vue b/src/components/drawers/SelectTest.vue index 74cdee07..5141cb5b 100644 --- a/src/components/drawers/SelectTest.vue +++ b/src/components/drawers/SelectTest.vue @@ -126,8 +126,10 @@ ctx.emit("update:STvisible", false); }; - const afterVisibleChange = () => { + const afterVisibleChange = (bol) => { + if (bol == true) { getManageList() + } }; const tableDataFunc = ()=> { @@ -186,6 +188,9 @@ state.SelectTestData = record }; const onSelectChange = (selectedRowKeys) => { + if(selectedRowKeys.length>1){ + return + } state.selectedRowKeys = selectedRowKeys; } @@ -232,7 +237,7 @@ }); }; - //搜索任务列表 + //搜索任务列表 没接口 const searchTaskList = () => { let objser = { name: "", @@ -264,9 +269,12 @@ //重置任务列表 const resetTaskList = () => { - state.name = ""; - state.projectName = ""; - state.tabledata = []; + state.inputPname = ""; + state.inputCname = ""; + state.tableData = []; + state.selectedRowKeys = []; + state.SelectTestData = []; + state.currentPage = 1; getManageList(); }; return { @@ -398,6 +406,12 @@ } } .tab { + + .ant-table-selection-column { + .ant-table-selection{ + display: none; + } + } th.h { background-color: #eff4fc !important; } diff --git a/src/components/drawers/TestManage.vue b/src/components/drawers/TestManage.vue index 6d753120..54cf82fd 100644 --- a/src/components/drawers/TestManage.vue +++ b/src/components/drawers/TestManage.vue @@ -394,8 +394,11 @@ export default { const closeDrawer = () => { ctx.emit("update:TMvisible", false); }; - const afterVisibleChange = () => { + const afterVisibleChange = (bol) => { + if ( bol == true ) { getManageList(); + } + }; const selectProjectName = (value, index) => { console.log("value", value, index); diff --git a/src/components/drawers/TimeManage.vue b/src/components/drawers/TimeManage.vue index 4dfb6a1c..c4a18e21 100644 --- a/src/components/drawers/TimeManage.vue +++ b/src/components/drawers/TimeManage.vue @@ -345,8 +345,10 @@ export default { const closeDrawer = () => { ctx.emit("update:Tvisible", false); }; - const afterVisibleChange = () => { + const afterVisibleChange = (bol) => { + if ( bol == true ) { getManageList(); + } }; const selectProjectName = (value) => { state.projectName = value; diff --git a/src/components/drawers/WorkManage.vue b/src/components/drawers/WorkManage.vue index cf404496..8916b350 100644 --- a/src/components/drawers/WorkManage.vue +++ b/src/components/drawers/WorkManage.vue @@ -299,8 +299,10 @@ export default { const closeDrawer = () => { ctx.emit("update:Wvisible", false); }; - const afterVisibleChange = () => { - getManageList(); + const afterVisibleChange = (bol) => { + if ( bol == true ) { + getManageList(); + } }; const selectProjectName = (value) => { state.projectName = value; From 66fc7c8c13448850491c877973567e89e591fdfa Mon Sep 17 00:00:00 2001 From: lixg Date: Tue, 22 Nov 2022 20:43:02 +0800 Subject: [PATCH 88/90] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/config.js | 3 +- src/api/index1.js | 6 +- src/components/NavLeft.vue | 10 +- src/components/drawers/OwnPower.vue | 148 +++------ src/components/drawers/Ownership.vue | 185 +++++------ src/components/drawers/ProjectOwn.vue | 247 ++++++++------ src/views/courselibrary/CourseManage.vue | 23 +- src/views/projectcenter/ProjectAdd.vue | 374 ++++++++++++---------- src/views/projectcenter/ProjectManage.vue | 71 +++- src/views/projectcenter/TaskPage.vue | 73 +++-- 10 files changed, 600 insertions(+), 540 deletions(-) diff --git a/src/api/config.js b/src/api/config.js index f545226a..e51593fd 100644 --- a/src/api/config.js +++ b/src/api/config.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-21 14:32:52 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-11-21 15:13:50 + * @LastEditTime: 2022-11-22 20:17:22 * @FilePath: /fe-manage/src/api/config.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -29,6 +29,7 @@ http.interceptors.request.use( config.headers.token = 123456; //测试1111 } else { console.log("当前请求页面无token,请执行操作!!!"); + // 此处测试默认配置token config.headers.token = "123456"; // config.headers.token = "eyJ0eXBlIjoidG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC91LmJvZS5jb20iLCJpYXQiOjE2Njg4NjI2MTAsImV4cCI6MTY2ODg2OTgxMCwiR2l2ZW5OYW1lIjoiYm9ldSIsInVzZXJJZCI6IjZCMDQ5RkFGLUMzMTQtN0NDRi0wRDI4LTBEMjNGNEM0MjUzMSIsInVJZCI6Ijk2NTM0MjAyNzQ5NzYwNzE2OCIsInBlcm1pc3Npb24iOiIifQ==.defa91ecb2b61d9b20d858db0c2c8d7d80dea4613cb2559a22569b7df36b3f6b"; diff --git a/src/api/index1.js b/src/api/index1.js index 6e5402e5..bc2d71bd 100644 --- a/src/api/index1.js +++ b/src/api/index1.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-04 22:45:31 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-11-21 16:39:08 + * @LastEditTime: 2022-11-22 18:04:47 * @FilePath: /fe-manage/src/api/index1.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -87,6 +87,10 @@ export const billboard = (obj) => http.post('/admin/project/billboard', obj); //获取字典信息 export const getDict = (obj) => http.post('/dict/getList', obj) +//获取组织树 +export const getOrgTree = (obj) => http.post('/admin/router/orgList', obj) + + // 获取组织结构树 export const orgtree = () => http.get('/org/tree'); diff --git a/src/components/NavLeft.vue b/src/components/NavLeft.vue index ce679c18..41e7257d 100644 --- a/src/components/NavLeft.vue +++ b/src/components/NavLeft.vue @@ -192,8 +192,8 @@ src="../assets/images/navleft/certificate.png" />
- - 证书中心 + 证书中心 +
@@ -202,7 +202,8 @@ src="../assets/images/navleft/system.png" />
- 系统管理 + 系统管理 +
@@ -219,6 +220,9 @@ mode="inline" @click="handleClick" > + + 审核 + 学习 diff --git a/src/components/drawers/OwnPower.vue b/src/components/drawers/OwnPower.vue index 5ca07e8a..a91eace8 100644 --- a/src/components/drawers/OwnPower.vue +++ b/src/components/drawers/OwnPower.vue @@ -6,7 +6,7 @@ width="85%" @after-visible-change="afterVisibleChange" > -
+
归属权
@@ -121,80 +122,30 @@
-
-
已选
- -
-
-
- 全部清除 -
-
-
-
快速选人
-
-
-
- +
+
当前归属:
{{ item.name }}
-
-
-
- 查看更多 - -
-
-
-
- 收起 - -
+
+ 转移归属权
-
@@ -202,8 +153,6 @@
- - @@ -567,7 +516,6 @@ export default { }, ], - //快速选人------------------------------------- valueSelectboe: null, //快速选人的选择组织 choosepeople: [], //总的数组 @@ -576,14 +524,12 @@ export default { showHidden: false, //是否显示收回 selectedRowKeys: [], //表格选中的key //快速选人------------------------------------- - }); const closeDrawer = () => { state.activeKey = "1"; ctx.emit("update:ownpowervisible", false); }; - const afterVisibleChange = (bool) => { console.log("state", bool); }; @@ -690,8 +636,6 @@ export default { // 结束 快速选人------------------------------------------------------------------ - - //全部清除 const deleteAll = () => { //快速选人------------------------------------- @@ -701,10 +645,9 @@ export default { state.showHidden = false; //是否显示收回 state.selectedRowKeys = []; //表格选中的key //快速选人------------------------------------- - }; return { - ...toRefs(state), + ...toRefs(state), afterVisibleChange, closeDrawer, onSelectChange, @@ -715,10 +658,7 @@ export default { morePeopleShow, morePeopleHidden, - - deleteAll, - }; }, }; @@ -726,7 +666,7 @@ export default { diff --git a/src/views/projectcenter/ProjectAdd.vue b/src/views/projectcenter/ProjectAdd.vue index 9958aeb4..9979a4ce 100644 --- a/src/views/projectcenter/ProjectAdd.vue +++ b/src/views/projectcenter/ProjectAdd.vue @@ -307,6 +307,10 @@ @change="classificationChange4" placeholder="请选择培训分类" :disabled="viewDetail ? true : false" + :fieldNames="{ + label: 'dictName', + value: 'dictCode', + }" />
@@ -420,153 +424,17 @@ export default { const store = useStore(); // 编辑页面跳转过来时候,自动填充表格 const routers = useRoute(); - const isEdit = ref(false); - let peojectID = ""; - console.log("store.state.orgtreeList", store.state.orgtreeList); - if (routers.query.projectId) { - storage.set("projectAddId", routers.query.projectId); - isEdit.value = true; - peojectID = routers.query.projectId; - // 需要编辑 - api - .getProjectDetail({ projectId: routers.query.projectId }) - .then((res) => { - if (res.status == 200 && res.data.code == 200) { - let info = res.data.data.projectInfo; - console.log(info); - // projectName classifySelect imageUrl * classifySelect1 * remark checked classifySelect3 classifySelect4 changeChecked1 * - projectName.value = info.name; - state.classifySelect = classifyList.value[1]; // info.category - imageUrl.value = info.picUrl; - - let start = toDate(info.beginTime / 1000, "YYYY/MM/DD"); - let end = toDate(info.endTime / 1000, "YYYY/MM/DD"); - state.rangevalue = [ - dayjs(start, "YYYY/MM/DD"), - dayjs(end, "YYYY/MM/DD"), - ]; - - let manageName = info.manager.split(","); - let manageValue = info.managerId.split(","); - let optionsManage = []; - for (let i = 0; i < manageName.length; i++) { - let obj = { - label: manageName[i], - value: manageValue[i], - }; - optionsManage.push(obj); - } - console.log(optionsManage); - state.classifySelect1 = optionsManage; - state.classifySelect2 = - classifyList2.value[info.sourceBelongId - 1]; - remark.value = info.remark; - state.checked = info.boeFlag ? info.boeFlag : false; - state.classifySelect3 = classifyList3.value[info.level]; - state.classifySelect4 = classifyList4.value[info.systemId - 1]; - state.checked1 = info.boeFlag ? info.boeFlag : false; - // fileList1.value = info.attach.split(","); - - projectType = 1; - picUrl = info.picUrl; - beginTime = Number(info.beginTime / 1000); - endTime = Number(info.endTime / 1000); - manager = info.manager; - managerId = info.managerId; - sourceBelongIdC = Number(info.sourceBelongId); - courseSyncFlag = info.courseSyncFlag; - levels = info.level; - systemid = info.systemId; - boeFlag = info.boeFlag; - } - }) - .catch((err) => { - console.log(err); - }); - } else { - if (storage.get("projectAddId")) { - isEdit.value = true; - peojectID = storage.get("projectAddId"); - // 需要编辑 - api - .getProjectDetail({ projectId: storage.get("projectAddId") }) - .then((res) => { - if (res.status == 200 && res.data.code == 200) { - let info = res.data.data.projectInfo; - console.log("我是从本地存储获取的id", info); - projectName.value = info.name; - state.classifySelect = classifyList.value[1]; // info.category - imageUrl.value = info.picUrl; - - let start = toDate(info.beginTime / 1000, "YYYY/MM/DD"); - let end = toDate(info.endTime / 1000, "YYYY/MM/DD"); - state.rangevalue = [ - dayjs(start, "YYYY/MM/DD"), - dayjs(end, "YYYY/MM/DD"), - ]; - - let manageName = info.manager.split(","); - let manageValue = info.managerId.split(","); - let optionsManage = []; - for (let i = 0; i < manageName.length; i++) { - let obj = { - label: manageName[i], - value: manageValue[i], - }; - optionsManage.push(obj); - } - console.log(optionsManage); - state.classifySelect1 = optionsManage; - state.classifySelect2 = - classifyList2.value[info.sourceBelongId - 1]; - remark.value = info.remark; - state.checked = info.boeFlag ? info.boeFlag : false; - state.classifySelect3 = classifyList3.value[info.level]; - state.classifySelect4 = classifyList4.value[info.systemId - 1]; - state.checked1 = info.boeFlag ? info.boeFlag : false; - - projectType = 1; - picUrl = info.picUrl; - beginTime = Number(info.beginTime / 1000); - endTime = Number(info.endTime / 1000); - manager = info.manager; - managerId = info.managerId; - sourceBelongIdC = Number(info.sourceBelongId); - courseSyncFlag = info.courseSyncFlag; - levels = info.level; - systemid = info.systemId; - boeFlag = info.boeFlag; - } - }) - .catch((err) => { - console.log(err); - }); - } - } - - const backPage = () => { - storage.remove("projectAddId"); - setTimeout(() => { - router.push({ - path: "/projectmanage", - }); - }, 400); - }; - const router = useRouter(); const state = reactive({ - classifySelect: null, - classifySelectId: null, - checked: false, - checked1: false, - valueE: null, - valueE1: null, - valueE2: null, - classifySelect1: [], - classifySelect2: null, - classifySelect3: [], - classifySelect4: [], - rangevalue: [], + classifySelect: null, //分类选择信息 + projectType: null, //分类选择的id + checked: false, //同步学习记录 + checked1: false, //BOEU实施 + classifySelect1: [], //选中项目经理名称数组 + classifySelect2: null, //选中的资源归属信息 + classifySelect3: null, //选中的项目级别信息 + classifySelect4: null, //选中的培训分类信息 + rangevalue: [], //项目时间 currentPage: 1, //当前页 tableDataTotal: -1, //模版列表总数 @@ -574,10 +442,21 @@ export default { totalPages: 0, //总页数 viewDetail: routers.query.viewDetail ? routers.query.viewDetail : null, }); - - const projectName = ref(""); - //分类 + //分类列表 const classifyList = ref([]); + + //项目封面 + const imageUrl = ref(""); + // 项目级别 + const classifyList3 = ref([ + // { value: 1, label: "集团级" }, + ]); + + // 培训分类 + const classifyList4 = ref([ + // { value: 1, label: "集团级" }, + ]); + //获取分类、封面图、项目级别、培训分类-----------字典配置------------------------------- const getDictList = (param) => { let obj = { pageNo: 1, @@ -595,11 +474,15 @@ export default { if (param === "projectPic") { if (res.data.data.rows.length > 0) { imageUrl.value = res.data.data.rows[0].dictValue; + picUrl = res.data.data.rows[0].dictValue; } } if (param === "projectLevel") { classifyList3.value = res.data.data.rows; } + if (param === "projectSys") { + classifyList4.value = res.data.data.rows; + } } }) .catch((err) => { @@ -609,11 +492,164 @@ export default { getDictList("projectClass"); getDictList("projectPic"); getDictList("projectLevel"); + getDictList("projectSys"); + //获取分类、封面图、项目级别、培训分类---------------字典配置--------------------------- - let projectType = ""; + const isEdit = ref(false); + let peojectID = ""; //项目id + console.log("store.state.orgtreeList", store.state.orgtreeList); + const editProject = () => { + if (routers.query.projectId) { + storage.set("projectAddId", routers.query.projectId); + isEdit.value = true; + peojectID = routers.query.projectId; + // 需要编辑 + api + .getProjectDetail({ projectId: routers.query.projectId }) + .then((res) => { + if (res.status == 200 && res.data.code == 200) { + let info = res.data.data.projectInfo; + console.log( + "classifyList.value.find(item=>item.dictCode===info.category)", + classifyList.value.find((item) => { + if (item.dictCode == 11) { + return item.dictName; + } + // return item.dictName; + }), + classifyList.value, + info.category + ); + + console.log(info); + // projectName classifySelect imageUrl * classifySelect1 * remark checked classifySelect3 classifySelect4 changeChecked1 * + projectName.value = info.name; //项目名称 + // state.classifySelect =classifyList.value.find(item=>item.dictCode===info.category) ; // info.category 项目分类 + state.projectType = 1; //分类选择的id + + imageUrl.value = info.picUrl; //封面图 + + let start = toDate(info.beginTime / 1000, "YYYY/MM/DD"); //开始时间 + let end = toDate(info.endTime / 1000, "YYYY/MM/DD"); //结束时间 + state.rangevalue = [ + dayjs(start, "YYYY/MM/DD"), + dayjs(end, "YYYY/MM/DD"), + ]; + + let manageName = info.manager.split(","); //项目经理 + let manageValue = info.managerId.split(","); //项目经理id数组 + let optionsManage = []; + for (let i = 0; i < manageName.length; i++) { + let obj = { + label: manageName[i], + value: manageValue[i], + }; + optionsManage.push(obj); + } + console.log(optionsManage); + state.classifySelect1 = optionsManage; + state.classifySelect2 = + classifyList2.value[info.sourceBelongId - 1]; + remark.value = info.remark; + state.checked = info.boeFlag ? info.boeFlag : false; + state.classifySelect3 = classifyList3.value[info.level]; + state.classifySelect4 = classifyList4.value[info.systemId - 1]; + state.checked1 = info.boeFlag ? info.boeFlag : false; + // fileList1.value = info.attach.split(","); + + picUrl = info.picUrl; + beginTime = Number(info.beginTime / 1000); + endTime = Number(info.endTime / 1000); + manager = info.manager; + managerId = info.managerId; + sourceBelongIdC = Number(info.sourceBelongId); + courseSyncFlag = info.courseSyncFlag; + levels = info.level; + systemid = info.systemId; + boeFlag = info.boeFlag; + } + }) + .catch((err) => { + console.log(err); + }); + } else { + if (storage.get("projectAddId")) { + isEdit.value = true; + peojectID = storage.get("projectAddId"); + // 需要编辑 + api + .getProjectDetail({ projectId: storage.get("projectAddId") }) + .then((res) => { + if (res.status == 200 && res.data.code == 200) { + let info = res.data.data.projectInfo; + console.log("我是从本地存储获取的id", info); + projectName.value = info.name; + state.classifySelect = classifyList.value[1]; // info.category 分类选择的信息 + state.projectType = 1; //分类选择的id + imageUrl.value = info.picUrl; + + let start = toDate(info.beginTime / 1000, "YYYY/MM/DD"); + let end = toDate(info.endTime / 1000, "YYYY/MM/DD"); + state.rangevalue = [ + dayjs(start, "YYYY/MM/DD"), + dayjs(end, "YYYY/MM/DD"), + ]; + + let manageName = info.manager.split(","); + let manageValue = info.managerId.split(","); + let optionsManage = []; + for (let i = 0; i < manageName.length; i++) { + let obj = { + label: manageName[i], + value: manageValue[i], + }; + optionsManage.push(obj); + } + console.log(optionsManage); + state.classifySelect1 = optionsManage; + state.classifySelect2 = + classifyList2.value[info.sourceBelongId - 1]; + remark.value = info.remark; + state.checked = info.boeFlag ? info.boeFlag : false; + state.classifySelect3 = classifyList3.value[info.level]; + state.classifySelect4 = classifyList4.value[info.systemId - 1]; + state.checked1 = info.boeFlag ? info.boeFlag : false; + + picUrl = info.picUrl; + beginTime = Number(info.beginTime / 1000); + endTime = Number(info.endTime / 1000); + manager = info.manager; + managerId = info.managerId; + sourceBelongIdC = Number(info.sourceBelongId); + courseSyncFlag = info.courseSyncFlag; + levels = info.level; + systemid = info.systemId; + boeFlag = info.boeFlag; + } + }) + .catch((err) => { + console.log(err); + }); + } + } + }; + editProject(); + + const backPage = () => { + storage.remove("projectAddId"); + setTimeout(() => { + router.push({ + path: "/projectmanage", + }); + }, 400); + }; + + const projectName = ref(""); //项目名称 + + //选择分类 const classificationChange = (value) => { console.log(`selected ${value}`); - projectType = value; + state.projectType = value; //分类选择的id }; function getBase64(img, callback) { @@ -625,8 +661,8 @@ export default { const fileList = ref([]); const fileList1 = ref([]); const loading = ref(false); - const imageUrl = ref(""); - let picUrl = ""; + + let picUrl = ""; //项目封面 const handleChange = (info) => { if (info.file.status === "uploading") { @@ -727,7 +763,6 @@ export default { beginTime = new Date(dateString[0]).getTime() / 1000; endTime = new Date(dateString[1]).getTime() / 1000; }; - // 项目经理 后续接口调用 const classifyList1 = ref([ { value: 1, label: "李俊国" }, @@ -735,6 +770,7 @@ export default { { value: 3, label: "刘孟君" }, ]); + //选择处理项目经理 let manager = ""; let managerId = ""; const classificationChange1 = (key, options) => { @@ -774,28 +810,14 @@ export default { sourceBelongIdC = key; }; - // 项目级别 - const classifyList3 = ref([ - // { value: 1, label: "集团级" }, - // { value: 2, label: "组织级" }, - // { value: 3, label: "现地级" }, - // { value: 4, label: "部门级" }, - ]); - + //选择项目级别 let levels = ""; const classificationChange3 = (key) => { console.log(`selected ${key}`, classifyList3); levels = key; }; - // 培训分类 - const classifyList4 = ref([ - { value: 1, label: "集团级" }, - { value: 2, label: "组织级" }, - { value: 3, label: "现地级" }, - { value: 4, label: "部门级" }, - ]); - + //选择培训分类 let systemid = ""; const classificationChange4 = (key) => { console.log(`selected ${key}`, classifyList4); @@ -824,7 +846,9 @@ export default { console.log(info); // projectName classifySelect imageUrl * classifySelect1 * remark checked classifySelect3 classifySelect4 changeChecked1 * projectName.value = info.name; - state.classifySelect = classifyList.value[1]; // info.category + state.classifySelect = classifyList.value[1]; // info.category 分类选择的信息 + state.projectType = 1; //分类选择的id + imageUrl.value = info.picUrl; let start = toDate(info.beginTime / 1000, "YYYY/MM/DD"); @@ -855,7 +879,6 @@ export default { state.checked1 = info.boeFlag ? info.boeFlag : false; // fileList1.value = info.attach.split(","); - projectType = 1; picUrl = info.picUrl; beginTime = Number(info.beginTime / 1000); endTime = Number(info.endTime / 1000); @@ -924,19 +947,22 @@ export default { // 项目说明 const remark = ref(""); + //同步学习记录------------------------------------ let courseSyncFlag = 0; const changeChecked = () => { console.log(state.checked); state.checked ? (state.checked = false) : (state.checked = true); courseSyncFlag = state.checked ? 1 : 0; }; - + //同步学习记录------------------------------------ + //BOEU实施-------------------------------------- let boeFlag = 0; const changeChecked1 = () => { console.log(state.checked1); state.checked1 ? (state.checked1 = false) : (state.checked1 = true); boeFlag = state.checked1 ? 1 : 0; }; + //BOEU实施-------------------------------------- const removeFile = (file) => { const index = fileList1.value.indexOf(file); @@ -980,7 +1006,7 @@ export default { let obj = { projectId: Number(peojectID), name: projectName["value"], - category: projectType, + category: state.projectType, //分类选择的id picUrl: picUrl, beginTime: beginTime, endTime: endTime, @@ -1037,7 +1063,7 @@ export default { } else { let obj = { name: projectName["value"], - category: projectType, + category: state.projectType, //分类选择的id picUrl: picUrl, beginTime: beginTime, endTime: endTime, diff --git a/src/views/projectcenter/ProjectManage.vue b/src/views/projectcenter/ProjectManage.vue index 950929d5..19b9b82e 100644 --- a/src/views/projectcenter/ProjectManage.vue +++ b/src/views/projectcenter/ProjectManage.vue @@ -2047,13 +2047,16 @@ export default { customRender: (value) => { return (
- {value.record.status == 0 + {value.record.status == 0 || + value.record.status == 1 || + value.record.status == 2 || + value.record.status == -2 ? "草稿" - : value.record.status == 1 && + : value.record.status == 3 && Number(value.record.beginTime) < Math.ceil(new Date().getTime() / 1000) ? "进行中" - : value.record.status == 1 && + : value.record.status == 3 && Number(value.record.beginTime) > Math.ceil(new Date().getTime() / 1000) && value.record.type !== 1 && @@ -2074,6 +2077,36 @@ export default { width: 100, align: "center", }, + { + title: "是否审核", + dataIndex: "status", + // width: "30%", + key: "status", + width: 100, + align: "center", + customRender: (value) => { + { + console.log("获取项目", value); + } + return ( +
+ {value.record.type !== 3 + ? "-" + : value.record.status == 0 + ? "未审核" + : value.record.status == 1 + ? "审核中" + : value.record.status == 2 || + value.record.status == 3 || + value.record.status == -1 + ? "已审核" + : value.record.status == -2 + ? "未通过" + : "-"} +
+ ); + }, + }, { title: "创建时间", dataIndex: "createTime", @@ -2094,7 +2127,10 @@ export default { customRender: (value) => { // console.log("value", value.record.type, value.record.status); return value.record.type === 1 ? ( - value.record.status === 0 ? ( + value.record.status === 0 || + value.record.status === 1 || + value.record.status === 2 || + value.record.status === -2 ? (
{ @@ -2214,7 +2250,7 @@ export default {
- ) : value.record.status === 1 ? ( + ) : value.record.status === 3 ? (
查看
@@ -2404,7 +2440,10 @@ export default {
) ) : value.record.type === 2 ? ( - value.record.status === 0 ? ( + value.record.status === 0 || + value.record.status === 1 || + value.record.status === 2 || + value.record.status === -2 ? (
{ @@ -2515,7 +2554,7 @@ export default {
- ) : value.record.status === 1 ? ( + ) : value.record.status === 3 ? (
查看
@@ -2812,7 +2851,23 @@ export default {
- {value.record.status === 0 ? ( + {value.record.status === 0 || value.record.status === -2 ? ( + {}} + style="cursor:pointer" + class="operation3" + > + 提交审核 + + ) : value.record.status === 1 ? ( + {}} + style="cursor:pointer" + class="operation3" + > + 撤回审核 + + ) : value.record.status === 2 ? ( { console.log("value.record", value.record); diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index d46173ad..5e63abc7 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -794,7 +794,7 @@