From 12b19d4fbb6cc935bdc0b5f210e792923ed57d41 Mon Sep 17 00:00:00 2001 From: daihh Date: Fri, 3 Mar 2023 14:57:42 +0800 Subject: [PATCH 01/22] =?UTF-8?q?=E6=88=91=E7=9A=84=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/study/TaskList.vue | 66 ++++++++++++++++++------------------ vue.config.js | 2 +- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/src/views/study/TaskList.vue b/src/views/study/TaskList.vue index c5ad1982..b98f50f3 100644 --- a/src/views/study/TaskList.vue +++ b/src/views/study/TaskList.vue @@ -122,17 +122,17 @@ export default { methods: { jumpRouter(item) { - //window.open(`${this.webBaseUrl}/course/boeframe?id=${item.cmtask_id}`,'_self') - location.href=`${this.webBaseUrl}/course/boeframe?id=${item.cmtask_id}`; - - let urlPre=window.location.protocol+'//'+window.location.host; - // if(item.cmtask_type==1){ //学习路径图 - // //let params=encodeURIComponent('projectId='+courseId); - // //this.$router.push('/forward?to='+studentPath+'/projectdetails¶ms='+params); - // location.href=urlPre+'/fe-student/pathdetails?routerId='+item.cmtask_code - // }else if(item.cmtask_type==2){ //学习项目 - // location.href=urlPre+'/fe-student/projectdetails?projectId='+item.cmtask_code - // } + //location.href=`${this.webBaseUrl}/course/boeframe?id=${item.cmtask_id}`; + + //let urlPre=window.location.protocol+'//'+window.location.host; + let studentPath=process.env.VUE_APP_STUDENT_PATH; + if(item.cmtask_type==1){ //学习路径图 + let params=encodeURIComponent('projectId='+item.cmtask_id); + this.$router.push('/forward?to='+studentPath+'/pathdetails¶ms='+params); + }else if(item.cmtask_type==2){ //学习项目 + let params=encodeURIComponent('routerId='+item.cmtask_id); + this.$router.push('/forward?to='+studentPath+'/projectdetails¶ms='+params); + } }, loadBoeData() { @@ -146,29 +146,29 @@ export default { cmtask_name:this.params.cmtask_name, } this.loading=true; - // apiManage.userTaskList(params).then(res=>{ - // if(res.code==200){ - // this.total = 10; - // this.couresList = res.data.records; - // }else{ - // this.$message.error('查询数据失败:'+res.msg); - // } - // this.loading=false; - // }).catch(()=>{ - // this.loading=false; - // }) - apiBoeCourse.cmtaskList(params).then(res=>{ - if(res.status==200){ - this.total = res.result.count - this.couresList = res.result.list; - }else{ - this.$message.error('查询数据失败:'+res.message); - } - this.loading=false; + apiManage.userTaskList(params).then(res=>{ + if(res.code==200){ + this.total =parseInt(res.data.total); + this.couresList = res.data.records; + }else{ + this.$message.error('查询数据失败:'+res.msg); + } + this.loading=false; + }).catch(()=>{ + this.loading=false; + }) + // apiBoeCourse.cmtaskList(params).then(res=>{ + // if(res.status==200){ + // this.total = res.result.count + // this.couresList = res.result.list; + // }else{ + // this.$message.error('查询数据失败:'+res.message); + // } + // this.loading=false; - }).catch(()=>{ - this.loading=false; - }) + // }).catch(()=>{ + // this.loading=false; + // }) }, search(){ this.loadBoeData() diff --git a/vue.config.js b/vue.config.js index 7523fae1..941ef445 100644 --- a/vue.config.js +++ b/vue.config.js @@ -138,7 +138,7 @@ module.exports = { }, '/uboeApi': { // 目标代理服务器地址 - target: 'https://u-pre.boe.comww', + target: 'https://u-pre.boe.com', changeOrigin: true, secure: false, pathRewrite: { From f4227cc6c0e6d6a1c983e38583aa9b6e1423c9d4 Mon Sep 17 00:00:00 2001 From: daihh Date: Fri, 3 Mar 2023 17:47:45 +0800 Subject: [PATCH 02/22] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/study/TaskList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/study/TaskList.vue b/src/views/study/TaskList.vue index b98f50f3..ad6311b4 100644 --- a/src/views/study/TaskList.vue +++ b/src/views/study/TaskList.vue @@ -127,10 +127,10 @@ export default { //let urlPre=window.location.protocol+'//'+window.location.host; let studentPath=process.env.VUE_APP_STUDENT_PATH; if(item.cmtask_type==1){ //学习路径图 - let params=encodeURIComponent('projectId='+item.cmtask_id); + let params=encodeURIComponent('routerId='+item.cmtask_id); this.$router.push('/forward?to='+studentPath+'/pathdetails¶ms='+params); }else if(item.cmtask_type==2){ //学习项目 - let params=encodeURIComponent('routerId='+item.cmtask_id); + let params=encodeURIComponent('projectId='+item.cmtask_id); this.$router.push('/forward?to='+studentPath+'/projectdetails¶ms='+params); } }, From c33f71f64f28f73711c939d497e3ab153e6e821e Mon Sep 17 00:00:00 2001 From: daihh Date: Fri, 3 Mar 2023 18:28:24 +0800 Subject: [PATCH 03/22] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=AD=A6=E4=B9=A0?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=87=AA=E5=8A=A8=E4=BC=9A=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E7=AE=A1=E7=90=86=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UcHeader/Index.vue | 5 ++++- src/store/modules/user.js | 36 +++++++++++++++---------------- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/src/components/UcHeader/Index.vue b/src/components/UcHeader/Index.vue index 1fd0ebef..896aad04 100644 --- a/src/components/UcHeader/Index.vue +++ b/src/components/UcHeader/Index.vue @@ -162,7 +162,10 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js"; setCurIdentity(iden){ this.$store.dispatch('SetCurIdentity',iden); - this.$router.push('/manager/index'); + if(iden>2){ + this.$router.push('/manager/index'); + } + // // if(this.isTest){ // //this.$router.push('/manage/learningpath'); // location.href='/manage/learningpath'; diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 99909eb5..cb1fb17b 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -80,24 +80,24 @@ const user = { }) }, refrashStudyTaskCount({ commit }) { - // apiManage.getTaskNum().then(res=>{ - // if(res.code==200){ - // commit('SET_StudyTaskCount',res.data.todoTaskCounts); - // }else{ - // console.log("获取学习任务数失败:"+res.msg); - // } - // }) - apiBoeCourse.cmtaskList({page:1,size:1,get_count:1}).then(res=>{ - if(res.status==200){ - let count = 0; - if(res.result.count > 0){ - count = res.result.count; - } - commit('SET_StudyTaskCount',count); - }else{ - console.log("读取学习任务数失败:"+res.message); - } - }) + apiManage.getTaskNum().then(res=>{ + if(res.code==200){ + commit('SET_StudyTaskCount',res.data.todoTaskCounts); + }else{ + console.log("获取学习任务数失败:"+res.msg); + } + }) + // apiBoeCourse.cmtaskList({page:1,size:1,get_count:1}).then(res=>{ + // if(res.status==200){ + // let count = 0; + // if(res.result.count > 0){ + // count = res.result.count; + // } + // commit('SET_StudyTaskCount',count); + // }else{ + // console.log("读取学习任务数失败:"+res.message); + // } + // }) }, //设置用户身份 SetIdentity({ commit }, iden) { From 9778a7f7ee26db75324f8c1fd67a7271e5a3e466 Mon Sep 17 00:00:00 2001 From: daihh Date: Sat, 4 Mar 2023 14:39:16 +0800 Subject: [PATCH 04/22] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=80=82=E5=BA=94=E7=AE=A1=E7=90=86=E7=AB=AF?= =?UTF-8?q?=E7=9A=84=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/course.js | 6 ++--- src/components/Course/courseForm.vue | 34 ++++++++++++++++++++++++++-- src/views/course/ManageList.vue | 21 +++++++++++++++-- 3 files changed, 54 insertions(+), 7 deletions(-) diff --git a/src/api/modules/course.js b/src/api/modules/course.js index 8403a614..2637ad9d 100644 --- a/src/api/modules/course.js +++ b/src/api/modules/course.js @@ -68,10 +68,10 @@ const revokeSubmit = function(id) { /** * 复制课程 - * @param {Object} id + * @param {Object} */ -const copyCourse = function(id) { - return ajax.post('/xboe/m/course/manage/copy', {id}); +const copyCourse = function(data) { + return ajax.post('/xboe/m/course/manage/copy',data); } /* 查询课程是否有重复名称 diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index 994919a4..907a27da 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -108,6 +108,9 @@ + + + @@ -256,7 +259,14 @@ - + + + + + + + + @@ -463,7 +473,13 @@ export default { status: 1, summary: '', overview: '', + visible:true, + refId:'', + refType:'' }, + visibleShow:false, + extendRefId:'', + extendRefType:'', courseTeachers: [], //课程的老师 courseCrowds:[],//课程的用户受众 curContent: { id: '', contentType: 0, csectionId: '', contentName: '', contentRefId: '' }, //当前编辑的内容 @@ -534,6 +550,12 @@ export default { } }, mounted() { + let extendFlag=this.$route.query.f; //是否是管理端过来的 + this.extendRefId=this.$route.query.refId; + this.extendRefType=this.$route.query.refId; + if(extendFlag && extendFlag=='choose'){ + this.visibleShow=true; + } this.curStepIndex = 1; //回到第一步 this.btnLoading = false; this.getResOwnerTree().then(rs => { @@ -705,8 +727,13 @@ export default { status: 1, summary: '', overview: '', - // checked:false, + visible:true, + refId:this.extendRefId, + refType:this.extendRefType }; + if(this.extendRefId){ + this.courseInfo.visible=false; + } this.contentInfo.list = []; this.sectionInfo.list = []; this.courseTeachers = []; @@ -842,6 +869,9 @@ export default { const { result, status } = await apiCourse.detail(id); if (status === 200) { //把数据附给三个对象 + if(result.course.visible==''){ + result.course.visible=true; + } this.courseInfo = result.course; this.checked = false; this.contentInfo.list = result.contents; diff --git a/src/views/course/ManageList.vue b/src/views/course/ManageList.vue index fbef3cc6..4cbac115 100644 --- a/src/views/course/ManageList.vue +++ b/src/views/course/ManageList.vue @@ -374,14 +374,19 @@ export default { catalogs: { addNewZhang: false, addNewCell: false, - } + }, + extendRefId:'', + extendRefType:'', }; }, mounted() { let chooseFlag=this.$route.query.f; + this.extendRefId=this.$route.query.refId; + this.extendRefType=this.$route.query.refId; if(chooseFlag && chooseFlag=='choose'){ this.forChoose=true; } + if(this.$route.query && this.$route.query.page && this.$route.query.page == 'manage') { this.pageManage=true; } @@ -484,12 +489,18 @@ export default { }, // 复制 copyCourse(item) { + let $this=this; this.$confirm('您确定要复制此课程吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { - apiCourse.copyCourse(item.id).then(rs=>{ + let reqdata={ + id:item.id, + refId:$this.extendRefId, + refType:$this.extendRefType, + } + apiCourse.copyCourse(reqdata).then(rs=>{ if(rs.status==200){ this.$message.success("复制课程成功"); this.searchData(); @@ -614,6 +625,12 @@ export default { if(pageReset){ this.page.pageIndex=1; } + if(this.extendRefId){ + this.params.refId=this.extendRefId; + } + if(this.extendRefType){ + this.params.refType=this.extendRefType; + } this.params.resOwner1 = this.resOwner[0]; this.params.resOwner2 = this.resOwner[1]; this.params.resOwner3 = this.resOwner[2]; From 4e6057cb524db1b8add86244b62648c573e8b7ee Mon Sep 17 00:00:00 2001 From: daihh Date: Sun, 5 Mar 2023 16:53:44 +0800 Subject: [PATCH 05/22] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=B8=AD=E5=B5=8C=E5=85=A5=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=B1=BB=E5=9E=8B=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/courseForm.vue | 3 ++- src/views/course/ManageList.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index 907a27da..faa60ab8 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -552,10 +552,11 @@ export default { mounted() { let extendFlag=this.$route.query.f; //是否是管理端过来的 this.extendRefId=this.$route.query.refId; - this.extendRefType=this.$route.query.refId; + this.extendRefType=this.$route.query.refType; if(extendFlag && extendFlag=='choose'){ this.visibleShow=true; } + //console.log("url参数",extendFlag,this.extendRefId,this.extendRefType) this.curStepIndex = 1; //回到第一步 this.btnLoading = false; this.getResOwnerTree().then(rs => { diff --git a/src/views/course/ManageList.vue b/src/views/course/ManageList.vue index 4cbac115..c5297fc9 100644 --- a/src/views/course/ManageList.vue +++ b/src/views/course/ManageList.vue @@ -382,7 +382,7 @@ export default { mounted() { let chooseFlag=this.$route.query.f; this.extendRefId=this.$route.query.refId; - this.extendRefType=this.$route.query.refId; + this.extendRefType=this.$route.query.refType; if(chooseFlag && chooseFlag=='choose'){ this.forChoose=true; } From 8fcc3f8b0149a413d2f4df141720fa2f1df7179a Mon Sep 17 00:00:00 2001 From: daihh Date: Sun, 5 Mar 2023 18:04:50 +0800 Subject: [PATCH 06/22] =?UTF-8?q?=E5=BC=B9=E5=87=BA=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E5=90=8E=EF=BC=8C=E5=90=8C=E6=97=B6=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E6=92=AD=E6=94=BE=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/courseForm.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index faa60ab8..db592bff 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -42,7 +42,7 @@ --> - + @@ -191,7 +191,7 @@ - + From 6985c580103c4d6ae50c710d1771956b78a115fb Mon Sep 17 00:00:00 2001 From: daihh Date: Sun, 5 Mar 2023 18:05:26 +0800 Subject: [PATCH 07/22] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=AF=BE=E4=BB=B6?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E5=85=B3=E9=97=AD=E7=AA=97=E5=8F=A3=E8=BF=98?= =?UTF-8?q?=E5=9C=A8=E6=92=AD=E6=94=BE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/Courseware.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/course/Courseware.vue b/src/views/course/Courseware.vue index b8832dea..b41acd18 100644 --- a/src/views/course/Courseware.vue +++ b/src/views/course/Courseware.vue @@ -197,7 +197,7 @@ 保存 - +
{{ fileInfo.name }}
@@ -233,7 +233,7 @@
关闭 - +
-
搜索
+
搜索
重置
-
+
@@ -40,7 +40,7 @@
- +
@@ -74,7 +74,7 @@
-
+
+ :total="page.count">
-
- 正在加载数据... - 查询中... -
+
加载中...
- - -

您还没有报名课程哦~

-

未找到您要搜索的内容

+
+
+

未找到您要搜索的内容

+
+
+ +

您还没有报名课程哦~

+
+
@@ -104,8 +105,9 @@ + + diff --git a/src/views/manage/AudienceList.vue b/src/views/manage/AudienceList.vue new file mode 100644 index 00000000..0c9eaa14 --- /dev/null +++ b/src/views/manage/AudienceList.vue @@ -0,0 +1,396 @@ + + + + + diff --git a/src/views/manage/AudienceView.vue b/src/views/manage/AudienceView.vue new file mode 100644 index 00000000..b814cbf1 --- /dev/null +++ b/src/views/manage/AudienceView.vue @@ -0,0 +1,205 @@ + + + + + From 5ef2e4f901724e7edbb4ce8e0523ae70161a7fa3 Mon Sep 17 00:00:00 2001 From: daihh Date: Wed, 8 Mar 2023 21:47:46 +0800 Subject: [PATCH 18/22] =?UTF-8?q?=E4=B8=BA=E7=AE=A1=E7=90=86=E7=AB=AF?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E8=B0=83=E7=94=A8=E6=AD=A4=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=EF=BC=8C=E8=BF=9B=E8=A1=8C=E8=BA=AB=E4=BB=BD=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/WaitAudit.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/course/WaitAudit.vue b/src/views/course/WaitAudit.vue index 31f704ca..6efa1f1d 100644 --- a/src/views/course/WaitAudit.vue +++ b/src/views/course/WaitAudit.vue @@ -197,6 +197,9 @@ export default { }; }, mounted() { + //为管理端,直接调用此页面时,设置当前人的身份 + this.$store.dispatch('SetCurIdentity',2); + this.searchData(); this.getResOwnerTree().then(rs=>{ this.resOwnerListMap=rs; From 4583cee471ea346f9b82774d41bb682a2138923a Mon Sep 17 00:00:00 2001 From: daihh Date: Thu, 9 Mar 2023 09:45:29 +0800 Subject: [PATCH 19/22] =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=AB=AF=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=B8=8D=E5=90=8C=E7=8E=AF=E5=A2=83=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/manage/manage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/manage/manage.js b/src/api/manage/manage.js index c30a1f29..52166cad 100644 --- a/src/api/manage/manage.js +++ b/src/api/manage/manage.js @@ -1,6 +1,6 @@ /** 管理端接口 **/ import ajax from '../unionAjax.js'; -const baseURL ="/manageApi"; +const baseURL = process.env.VUE_APP_MANAGER_API_PATH; /**用户的待办任务数量*/ const getTaskNum = function(){ From d0701f29bbdc5bd343bf67aadcfcfcdd6c390812 Mon Sep 17 00:00:00 2001 From: daihh Date: Thu, 9 Mar 2023 18:06:15 +0800 Subject: [PATCH 20/22] =?UTF-8?q?=E6=88=91=E6=8A=A5=E5=90=8D=E7=9A=84?= =?UTF-8?q?=EF=BC=8C=E5=8E=BB=E6=8E=89=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/study/Courses.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/study/Courses.vue b/src/views/study/Courses.vue index 3b4e40b9..26873945 100644 --- a/src/views/study/Courses.vue +++ b/src/views/study/Courses.vue @@ -53,7 +53,7 @@
-
+