From 0a8e7c3651bcddf4be9f17a4ee2b880df6351358 Mon Sep 17 00:00:00 2001 From: wyx Date: Sat, 10 Dec 2022 19:05:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=AE=A1=E6=A0=B8=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=BE=85=E5=AE=A1=E6=A0=B8=E5=92=8C=E5=B7=B2=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E8=AF=BE=E7=A8=8B=E5=88=86=E7=B1=BB=E5=9B=9E?= =?UTF-8?q?=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/examine/CourseReviewed.vue | 147 +++++++++++++++++++++++++- src/views/examine/CourseReviewedN.vue | 145 ++++++++++++++++++++++++- 2 files changed, 283 insertions(+), 9 deletions(-) diff --git a/src/views/examine/CourseReviewed.vue b/src/views/examine/CourseReviewed.vue index c02641d4..d00350d1 100644 --- a/src/views/examine/CourseReviewed.vue +++ b/src/views/examine/CourseReviewed.vue @@ -203,9 +203,7 @@ export default { title: "内容分类", dataIndex: "content", key: "content", - align: "center", - customRender: ({ text }) => - state.calssifyList.find((e) => e.value == text)?.label, + align: "center" }, { title: "审核状态", @@ -269,8 +267,147 @@ export default { //审核记录的数据 tableDataAudit: [], projAuditModal: false, - loading:false + loading:false, + // 课程三级分类 + options2222:[ + { + title: '领导力', + value: '100', + selectable:false, + children: [ + { + title: '领导业务', + value: '1001', + }, + { + title: '领导团队', + value: '1002', + }, + { + title: '领导自我', + value: '1003', + }, + ], + }, + { + title: '专业力', + value: '200', + selectable:false, + children: [ + { + title: '研发', + value: '2001', + }, + { + title: '产品和解决方案', + value: '2002', + }, + { + title: '生产技术与制造', + value: '2003', + }, + { + title: '供应链', + value: '2004', + }, + { + title: '营销', + value: '2005', + }, + { + title: '品质', + value: '2006', + }, + { + title: '战略与企划', + value: '2007', + }, + { + title: '流程管理', + value: '2008', + }, + { + title: '业绩管理', + value: '2009', + }, + { + title: '项目管理', + value: '20010', + }, + { + title: '信息技术', + value: '20011', + }, + { + title: '环境与安全', + value: '20012', + }, + { + title: '人力资源', + value: '20013', + }, + { + title: '企业文化', + value: '20014', + }, + { + title: '品牌', + value: '20015', + }, + { + title: '财务', + value: '20016', + }, + { + title: '法务', + value: '20017', + }, + { + title: '行政', + value: '20018', + }, + { + title: '医工', + value: '20019', + } + ], + }, + { + title: '通用力', + value: '300', + selectable:false, + children: [ + { + title: '职业操守与道德', + value: '3001', + }, + { + title: '职业素养与技能', + value: '3002', + }, + { + title: '规章制度', + value: '3003', + }, + ], + } + ], }); + + // 课程三级分类回显 + const sHX = (data) => { + let str = '-' + let sdata = state.options2222 + for(let i =0; i { state.loading=true let objn = { @@ -305,7 +442,7 @@ export default { number: n + 1 + (state.currentPage - 1) * 10, name: item.name || "- ", type: item.type == 1 ? "线上" : "线下", - content: item.categoryId, + content: sHX(item.categoryId), status: item.auditStatus == 0 ? "未提交" diff --git a/src/views/examine/CourseReviewedN.vue b/src/views/examine/CourseReviewedN.vue index 977b1c58..ea83ffca 100644 --- a/src/views/examine/CourseReviewedN.vue +++ b/src/views/examine/CourseReviewedN.vue @@ -232,9 +232,7 @@ export default { title: "内容分类", dataIndex: "content", key: "content", - align: "center", - customRender: ({ text }) => - state.calssifyList.find((e) => e.value == text)?.label, + align: "center" }, { title: "状态", @@ -302,8 +300,146 @@ export default { //审核在线课嵌套页面 onlineClassesVisible: false, iframeUrl: iframeUrl, + // 课程三级分类 + options2222:[ + { + title: '领导力', + value: '100', + selectable:false, + children: [ + { + title: '领导业务', + value: '1001', + }, + { + title: '领导团队', + value: '1002', + }, + { + title: '领导自我', + value: '1003', + }, + ], + }, + { + title: '专业力', + value: '200', + selectable:false, + children: [ + { + title: '研发', + value: '2001', + }, + { + title: '产品和解决方案', + value: '2002', + }, + { + title: '生产技术与制造', + value: '2003', + }, + { + title: '供应链', + value: '2004', + }, + { + title: '营销', + value: '2005', + }, + { + title: '品质', + value: '2006', + }, + { + title: '战略与企划', + value: '2007', + }, + { + title: '流程管理', + value: '2008', + }, + { + title: '业绩管理', + value: '2009', + }, + { + title: '项目管理', + value: '20010', + }, + { + title: '信息技术', + value: '20011', + }, + { + title: '环境与安全', + value: '20012', + }, + { + title: '人力资源', + value: '20013', + }, + { + title: '企业文化', + value: '20014', + }, + { + title: '品牌', + value: '20015', + }, + { + title: '财务', + value: '20016', + }, + { + title: '法务', + value: '20017', + }, + { + title: '行政', + value: '20018', + }, + { + title: '医工', + value: '20019', + } + ], + }, + { + title: '通用力', + value: '300', + selectable:false, + children: [ + { + title: '职业操守与道德', + value: '3001', + }, + { + title: '职业素养与技能', + value: '3002', + }, + { + title: '规章制度', + value: '3003', + }, + ], + } + ], }); + // 课程三级分类回显 + const sHX = (data) => { + let str = '-' + let sdata = state.options2222 + for(let i =0; i