From 171ad0af18b27715f0eff4945e4e35fc7dbbd4b9 Mon Sep 17 00:00:00 2001 From: zhangyc Date: Tue, 13 Dec 2022 14:14:19 +0800 Subject: [PATCH 01/35] =?UTF-8?q?=E8=80=83=E8=AF=95=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E8=AF=95=E5=8D=B7=E5=88=97=E8=A1=A8=EF=BC=8C?= =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=88=86=E7=B1=BB=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/SelectTest.vue | 36 +++++++++++--------- src/components/project/NameInput.vue | 2 +- src/views/courselibrary/CoursewareManage.vue | 6 +++- src/views/examine/CourseReviewed.vue | 25 ++++++++++++-- src/views/examine/CourseReviewedN.vue | 15 ++++---- src/views/learningpath/LearningPath.vue | 25 +++++++++----- src/views/projectcenter/ProjectManage.vue | 2 +- src/views/research/ResearchManage.vue | 2 ++ 8 files changed, 77 insertions(+), 36 deletions(-) diff --git a/src/components/drawers/SelectTest.vue b/src/components/drawers/SelectTest.vue index fcdeffe6..b12a379e 100644 --- a/src/components/drawers/SelectTest.vue +++ b/src/components/drawers/SelectTest.vue @@ -162,43 +162,47 @@ export default { const tableDataFunc = () => { { const columns = [ - { - title: "序号", - dataIndex: "paperId", - key: "paperId", - width: 90, - align: "center", - className: "h head", - }, + // { + // title: "序号", + // dataIndex: "paperId", + // key: "paperId", + // width: 90, + // align: "center", + // className: "h head", + // }, { title: "试卷名称", dataIndex: "testName", key: "testName", - width: 110, + width: "40%", align: "center", className: "h head", + ellipsis: true, }, { title: "随机模式", dataIndex: "paperMode", key: "paperMode", - width: 110, + width: "20%", align: "center", className: "h", + ellipsis: true, }, { title: "创建人", dataIndex: "sysCreateBy", key: "sysCreateBy", - width: 90, + width: "20%", align: "center", className: "h", + ellipsis: true, }, { title: "最近更新时间", dataIndex: "sysUpdateTime", key: "sysUpdateTime", - width: 150, + ellipsis: true, + width: "20%", align: "center", className: "h", }, @@ -248,7 +252,7 @@ export default { published: true, }; api - .queryExaminationList(obj) + .queryExaminationPaperList(obj) .then((data) => { // getTableDate(res.data.data); //** 表格repaint */ @@ -257,10 +261,10 @@ export default { let obj = { key: index + 1, sysCreateBy: value.sysCreateBy, - paperId: index + 1, + paperId:value.id, testName: value.testName, - paperMode: value.randomMode ? "是" : "否", - sysUpdateTime: value.sysUpdateTime, + paperMode: value.paperMode==1?"固定试卷":"随机", + sysUpdateTime:value.sysUpdateTime, id:value.id, }; array.push(obj); diff --git a/src/components/project/NameInput.vue b/src/components/project/NameInput.vue index 6f92741c..d898b85a 100644 --- a/src/components/project/NameInput.vue +++ b/src/components/project/NameInput.vue @@ -73,7 +73,7 @@ function validateProName() { display: inline-block; width: 99%; min-width: 0; - padding: 0px 17px; + padding: 0px 8px; color: rgba(0, 0, 0, 0.85); font-size: 14px; line-height: 1.5715; diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 930dc096..6a1db8f9 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -1967,6 +1967,7 @@ +
签到设置 @@ -1978,12 +1979,15 @@ 是否允许未报名的学员签到 +
+ +
评估设置 diff --git a/src/views/examine/CourseReviewed.vue b/src/views/examine/CourseReviewed.vue index b5d214fc..9babe163 100644 --- a/src/views/examine/CourseReviewed.vue +++ b/src/views/examine/CourseReviewed.vue @@ -14,6 +14,7 @@
+ + + +
+
--> +
{ state.pathName = ""; state.pathBg = ""; - state.pathBgId = ""; + state.pathBgId =1; state.organizationSelectName = null; state.organizationSelectId = null; state.pathIntro = ""; @@ -1620,14 +1622,21 @@ export default { state.organizationSelectId = detail.organizationId; state.pathIntro = detail.remark; state.editPathId = id; - // console.log("state.imgData", state.imgData); - let arr = imgData; - for (let i = 0; i < arr.length; i++) { - // console.log("arr[i].dictValue", arr[i].dictValue, state.pathBg); - if (arr[i].dictValue === state.pathBg) { - state.pathBgId = arr[i].dictCode; + let arr = imgData.value; + arr.forEach((item) => { + if (item.dictValue === state.pathBg) { + state.pathBgId = item.dictCode; + } - } + }); + + //for (let i = 0; i < arr.length; i++) { + // console.log("arr[i].dictValue", arr[i].dictValue, state.pathBg); + // if (arr[i].dictValue === state.pathBg) { + // state.pathBgId = arr[i].dictCode; + + // } + // } } }) .catch((err) => { diff --git a/src/views/projectcenter/ProjectManage.vue b/src/views/projectcenter/ProjectManage.vue index f641a035..aaab9c1e 100644 --- a/src/views/projectcenter/ProjectManage.vue +++ b/src/views/projectcenter/ProjectManage.vue @@ -44,7 +44,7 @@ >
-
创建时间:
+
项目起止时间:
{value.state === "2" ? (
+ { /**
{ handleToManagepage(value, "/managepage"); @@ -433,6 +434,7 @@ export default { > 管理
+ */ }
{ From d9608d69e37f32bd53d60a8176c88784f6356716 Mon Sep 17 00:00:00 2001 From: zhangyc Date: Tue, 13 Dec 2022 17:56:18 +0800 Subject: [PATCH 02/35] =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/components/BreadCrumb.vue | 2 +- src/views/courselibrary/courseModal.vue | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5e297b87..92a8e40b 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ package-lock.json src/api/config.js src/api/config.js src/api/config.js +src/api/config.js diff --git a/src/components/BreadCrumb.vue b/src/components/BreadCrumb.vue index 65dbfae8..b5e57c20 100644 --- a/src/components/BreadCrumb.vue +++ b/src/components/BreadCrumb.vue @@ -70,7 +70,7 @@ export default { href: "/leveladd", }, { - name: "管理", + name: "关卡", }, ]; } diff --git a/src/views/courselibrary/courseModal.vue b/src/views/courselibrary/courseModal.vue index 104673b8..adf79a38 100644 --- a/src/views/courselibrary/courseModal.vue +++ b/src/views/courselibrary/courseModal.vue @@ -426,7 +426,7 @@ export default defineComponent({ hideshow: true, ft_eidt: false, attach: "", - validate:false, + validate:true, ft_hs: false, addLoading: false, statusJuJue: 0, From 68f5a4957e353e87cfd733560bd00db0ce40f655 Mon Sep 17 00:00:00 2001 From: lixg Date: Tue, 13 Dec 2022 21:49:54 +0800 Subject: [PATCH 03/35] =?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/api/config.js | 2 +- src/components/NavTop.vue | 2 +- src/views/projectcenter/templateAdd.vue | 220 +++++++++++++----------- 3 files changed, 119 insertions(+), 105 deletions(-) diff --git a/src/api/config.js b/src/api/config.js index b726a884..8e180c47 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-12-13 09:24:16 + * @LastEditTime: 2022-12-13 15:30:27 * @FilePath: /fe-manage/src/api/config.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ diff --git a/src/components/NavTop.vue b/src/components/NavTop.vue index 306d7b78..797a6847 100644 --- a/src/components/NavTop.vue +++ b/src/components/NavTop.vue @@ -76,7 +76,7 @@ export default { { id: 1, name: "管理员", - go: "/manage/learningpath", + go: "/learningpath", }, { id: 2, diff --git a/src/views/projectcenter/templateAdd.vue b/src/views/projectcenter/templateAdd.vue index 6d7ae89d..839f41b3 100644 --- a/src/views/projectcenter/templateAdd.vue +++ b/src/views/projectcenter/templateAdd.vue @@ -4,10 +4,10 @@
创建/编辑单层模板
返回
@@ -17,25 +17,25 @@
模板名称
分类
@@ -43,92 +43,97 @@
-
+
封面图
-
+
avatar
- - 高宽比为16:9 (如:800*450) png或jpg图片 - + + 高宽比为16:9 (如:800*450) png或jpg图片 +
项目时间
项目经理
资源归属
@@ -138,11 +143,11 @@
@@ -151,24 +156,23 @@
同步学习记录
- 同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)
项目级别
@@ -179,8 +183,8 @@
培训体系
@@ -191,15 +195,13 @@
是否BOEU实施
- + @@ -210,20 +212,18 @@
diff --git a/src/views/projectcenter/ProjectAdd.vue b/src/views/projectcenter/ProjectAdd.vue index d34bef73..a27b84b0 100644 --- a/src/views/projectcenter/ProjectAdd.vue +++ b/src/views/projectcenter/ProjectAdd.vue @@ -3,13 +3,13 @@
{{ projectInfo.parentId ? "编辑" : "创建" }}项目{{ projectInfo.parentId ? "编辑" : "创建" }}项目
返回
@@ -19,8 +19,8 @@
项目归属
@@ -33,29 +33,36 @@
-
项目名称
+
+ {{ ptojectType == 3 ? "班级名称" : "项目名称" }} +
- +
封面图
avatar
@@ -83,63 +90,63 @@
项目时间
项目经理
资源归属
项目级别
@@ -150,8 +157,8 @@
培训分类
@@ -162,15 +169,15 @@
是否BOEU实施
@@ -183,16 +190,16 @@
同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)
@@ -202,12 +209,12 @@
@@ -217,7 +224,7 @@
审核意见
- {{auditDescription}} + {{ auditDescription }}
@@ -226,18 +233,18 @@
模版
{ return triggerNode.parentNode || document.body; } " - placeholder="请选择模版" - :size="size" - style="width: 100%" - :options="classifyList5" - @change="classificationChange5" - @popupScroll="templateScroll" - :fieldNames="{ + placeholder="请选择模版" + :size="size" + style="width: 100%" + :options="classifyList5" + @change="classificationChange5" + @popupScroll="templateScroll" + :fieldNames="{ label: 'name', value: 'projectTemplateId', }" @@ -251,33 +258,32 @@
取消 确定 - + v-on:click="createProject" + type="primary" + class="btn1" + style="margin-left: 20px" + >确定 +