From 0325817f0754012b90bc6496c0b688e8d112f519 Mon Sep 17 00:00:00 2001 From: Pengxiansen <2422914688@qq.com> Date: Fri, 28 Feb 2025 14:48:08 +0800 Subject: [PATCH 1/5] =?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/components/BreadCrumb.vue | 13 + src/components/NavLeft.vue | 16 + src/components/growthpath/GrowthVote.vue | 2 +- src/views/report/Overvoew.vue | 335 ++++++---- src/views/report/growthpathmap.vue | 761 +++++++++++++++++++++++ 5 files changed, 1012 insertions(+), 115 deletions(-) create mode 100644 src/views/report/growthpathmap.vue diff --git a/src/components/BreadCrumb.vue b/src/components/BreadCrumb.vue index 06c610e2..2f7dbdb5 100644 --- a/src/components/BreadCrumb.vue +++ b/src/components/BreadCrumb.vue @@ -760,6 +760,19 @@ } ]; } + if (n.indexOf("/growthpathmap") !== -1 || n.indexOf("/growthPathMap") !== -1) { + state.list = [ + { + name: "报表中心", + }, + { + name:'板块详细数据' + }, + { + name:'专业力必修' + } + ]; + } if (n.indexOf("/reportproject") !== -1 || n.indexOf("/ReportProject") !== -1) { state.list = [ { diff --git a/src/components/NavLeft.vue b/src/components/NavLeft.vue index b50be88c..d3c2bb85 100644 --- a/src/components/NavLeft.vue +++ b/src/components/NavLeft.vue @@ -668,6 +668,15 @@
+ { if (step.value == 1) { - return formData.value.info ? "编辑投票任务" : "添加投票"; + return formData.value.id ? "编辑投票任务" : "添加投票"; } else if (step.value == 2) { return "创建投票题干"; } diff --git a/src/views/report/Overvoew.vue b/src/views/report/Overvoew.vue index 5061be14..c673753b 100644 --- a/src/views/report/Overvoew.vue +++ b/src/views/report/Overvoew.vue @@ -3,55 +3,78 @@
-
- - - -
-
- - -
-
- - -
+ + +
+
+ + +
+
+ + +
+ +
@@ -75,7 +98,7 @@ :class="currentTab === index ? 'tabActive' : 'tabItem'" @click="tabClick(index)" > - + @@ -306,7 +329,7 @@ import axios from "axios"; import dayjs from "dayjs"; import { message } from "ant-design-vue"; import Cookies from "vue-cookies"; -import {useStore} from "vuex"; +import { useStore } from "vuex"; export default { name: "OvervoeW", setup() { @@ -323,17 +346,19 @@ export default { selectedRowKeys: [], // 选中的列 option: [], resetOrgId: [], + stdPositionDesr: null, // 标准岗位 + qualsLevelDesr: "", //任职资格 allowClear: true, type: null, publishTime: [], // 创建时间 }); // 获取tab数据 const getTabData = async () => { - console.log("getTabData 111111:",state.type); - console.log("getTabData 222222:",store.state.userInfo.roleList); + console.log("getTabData 111111:", state.type); + console.log("getTabData 222222:", store.state.userInfo.roleList); var manageFlag = false; - for(let i=0;i { var manageFlag = false; - for(let i=0;i { return { @@ -721,8 +813,14 @@ export default { teachingName: state.name, orgId: state.orgId ? state.orgId[state.orgId.length - 1] : null, createName: state.creator, - startTime: typeof state.publishTime[0] === 'undefined' ? null : state.publishTime[0] +" 00:00:01", - endTime: typeof state.publishTime[1] === 'undefined' ? null : state.publishTime[1]+" 23:59:59", + startTime: + typeof state.publishTime[0] === "undefined" + ? null + : state.publishTime[0] + " 00:00:01", + endTime: + typeof state.publishTime[1] === "undefined" + ? null + : state.publishTime[1] + " 23:59:59", }); const list = res.data.result.rows?.map((item) => { return { @@ -740,8 +838,14 @@ export default { routerName: state.name, orgId: state.orgId ? state.orgId[state.orgId.length - 1] : null, createName: state.creator, - startTime: typeof state.publishTime[0] === 'undefined' ? null : state.publishTime[0] +" 00:00:01", - endTime: typeof state.publishTime[1] === 'undefined' ? null : state.publishTime[1]+" 23:59:59", + startTime: + typeof state.publishTime[0] === "undefined" + ? null + : state.publishTime[0] + " 00:00:01", + endTime: + typeof state.publishTime[1] === "undefined" + ? null + : state.publishTime[1] + " 23:59:59", }); const list = res.data.result.rows?.map((item) => { return { @@ -759,8 +863,14 @@ export default { orgId: state.orgId ? state.orgId[state.orgId.length - 1] : null, createName: state.creator, projectName: state.name, - startCreateTime: typeof state.publishTime[0] === 'undefined' ? null : state.publishTime[0] +" 00:00:01", - endCreateTime: typeof state.publishTime[1] === 'undefined' ? null : state.publishTime[1]+" 23:59:59", + startCreateTime: + typeof state.publishTime[0] === "undefined" + ? null + : state.publishTime[0] + " 00:00:01", + endCreateTime: + typeof state.publishTime[1] === "undefined" + ? null + : state.publishTime[1] + " 23:59:59", }); if (res) { const fun = (arr) => { @@ -1086,7 +1196,7 @@ export default { width: 120, align: "center", }, - + { title: "通过人数", dataIndex: "numOfPass", @@ -1561,12 +1671,12 @@ export default { } else if (index === 6) { columns.value = [ { - title: "专业力必修名称", + title: "专业力必修", dataIndex: "growthName", key: "growthName", - width: 120, + width: 200, ellipsis: true, - align: "left", + align: "center", fixed: "left", }, { @@ -1637,14 +1747,6 @@ export default { width: 120, align: "center", }, - { - title: "归属人名称", - dataIndex: "attrPersonName", - ellipsis: true, - key: "attrPersonName", - width: 120, - align: "center", - }, { title: "状态", dataIndex: "publishedStatus", @@ -1652,6 +1754,11 @@ export default { key: "publishedStatus", width: 120, align: "center", + customRender: ({ record: { publishedStatus } }) => + ({ + 1: "已发布", + 0: "未发布", + }[publishedStatus]), }, ]; } diff --git a/src/views/report/growthpathmap.vue b/src/views/report/growthpathmap.vue new file mode 100644 index 00000000..d63c8ced --- /dev/null +++ b/src/views/report/growthpathmap.vue @@ -0,0 +1,761 @@ + + + + \ No newline at end of file From ebc420faa8203f2f67f50c07bf05fbaadf0dc6b7 Mon Sep 17 00:00:00 2001 From: Pengxiansen <2422914688@qq.com> Date: Fri, 28 Feb 2025 15:50:29 +0800 Subject: [PATCH 2/5] =?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/report/growthpathmap.vue | 1363 +++++++++++++--------------- 1 file changed, 648 insertions(+), 715 deletions(-) diff --git a/src/views/report/growthpathmap.vue b/src/views/report/growthpathmap.vue index d63c8ced..91aa65e9 100644 --- a/src/views/report/growthpathmap.vue +++ b/src/views/report/growthpathmap.vue @@ -1,761 +1,694 @@ - +
diff --git a/src/views/report/Overvoew.vue b/src/views/report/Overvoew.vue index c673753b..b6bd7ba6 100644 --- a/src/views/report/Overvoew.vue +++ b/src/views/report/Overvoew.vue @@ -392,7 +392,7 @@ export default { { text: "课程", num: res.data.result?.courseTotal }, { text: "考试", num: res.data.result?.examTotal }, { text: "案例", num: res.data.result?.caseTotal }, - // { text: "专业力", num: res.data.result?.growthTotal }, + { text: "专业力", num: res.data.result?.growthTotal }, ]; tabData.value = list; }); @@ -1009,7 +1009,7 @@ export default { { text: "课程", num: "11" }, { text: "考试", num: "10" }, { text: "案例", num: "10" }, - // { text: "专业力必修", num: "10" }, + { text: "专业力必修", num: "10" }, ]); const tabClick = (index) => { state.selectedRowKeys = []; diff --git a/vue.config.js b/vue.config.js index fb18ed6d..b59f76d7 100644 --- a/vue.config.js +++ b/vue.config.js @@ -46,11 +46,18 @@ module.exports = defineConfig({ target: 'https:' + process.env.VUE_APP_BOE_API_URL, changeOrigin: true, //表示是否改变原域名 }, + // "/report": { + // target: 'https:' + process.env.VUE_APP_BOE_API_URL, + // changeOrigin: true, //表示是否改变原域名 + // pathRewrite: { + // // "^/manageApi": "", + // }, + // }, "/report": { - target: 'https:' + process.env.VUE_APP_BOE_API_URL, + target: 'http://192.168.31.211:18878', changeOrigin: true, //表示是否改变原域名 pathRewrite: { - // "^/manageApi": "", + "^/report": "", }, }, "/activityApi": { From 403f234c7edebff02ae2e66bb492eacd84f941ef Mon Sep 17 00:00:00 2001 From: Pengxiansen <2422914688@qq.com> Date: Fri, 28 Feb 2025 18:37:21 +0800 Subject: [PATCH 4/5] =?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/components/NavLeft.vue | 4 ++-- src/components/growthpath/CommonHomework.vue | 2 +- src/components/growthpath/CommonTest.vue | 2 +- src/components/growthpath/CreateVote.vue | 2 +- src/components/growthpath/GrowthActive.vue | 2 +- src/components/growthpath/GrowthDiscuss.vue | 6 +++++- src/components/growthpath/GrowthEval.vue | 9 +++++++-- src/components/growthpath/GrowthExa.vue | 2 +- src/components/growthpath/GrowthHomework.vue | 8 ++++++-- src/components/growthpath/GrowthLive.vue | 2 +- src/components/growthpath/GrowthRef.vue | 6 +++++- src/components/growthpath/GrowthVote.vue | 9 +++++++-- src/views/growthpath/PathManage.vue | 2 +- src/views/report/Employeelearning.vue | 16 ++++++++-------- src/views/report/Operational.vue | 8 ++++---- src/views/report/Overvoew.vue | 4 ++-- 16 files changed, 53 insertions(+), 31 deletions(-) diff --git a/src/components/NavLeft.vue b/src/components/NavLeft.vue index aa4fe5c2..d3c2bb85 100644 --- a/src/components/NavLeft.vue +++ b/src/components/NavLeft.vue @@ -668,7 +668,7 @@
- + { if (res.data.code == 200) { @@ -238,6 +238,10 @@ defineExpose({ openDrawer }); } .growth-homework { + .ant-spin-container, + .ant-spin-nested-loading { + height: 100%; + } .drawerMain { .header { height: 73px; @@ -262,7 +266,7 @@ defineExpose({ openDrawer }); .main_left { flex: 1; - border-right: 1px solid #e8e8e8; + // border-right: 1px solid #e8e8e8; margin-top: 0px; padding-right: 0px; diff --git a/src/components/growthpath/GrowthLive.vue b/src/components/growthpath/GrowthLive.vue index 63d5e9cb..b35e77ea 100644 --- a/src/components/growthpath/GrowthLive.vue +++ b/src/components/growthpath/GrowthLive.vue @@ -612,7 +612,7 @@ const beforeUpload = (file) => { .contentMain { .main_left { flex: 1; - border-right: 1px solid #e8e8e8; + // border-right: 1px solid #e8e8e8; margin-top: 0px; .main_item { diff --git a/src/components/growthpath/GrowthRef.vue b/src/components/growthpath/GrowthRef.vue index 85994915..8cecbebe 100644 --- a/src/components/growthpath/GrowthRef.vue +++ b/src/components/growthpath/GrowthRef.vue @@ -191,6 +191,10 @@ defineExpose({ openDrawer }); } .growth-ref { + .ant-spin-container, + .ant-spin-nested-loading { + height: 100%; + } .drawerMain { .header { height: 73px; @@ -216,7 +220,7 @@ defineExpose({ openDrawer }); .main_left { padding-right: 30px; flex: 1; - border-right: 1px solid #e8e8e8; + // border-right: 1px solid #e8e8e8; margin-top: 0px; .main_item { diff --git a/src/components/growthpath/GrowthVote.vue b/src/components/growthpath/GrowthVote.vue index 80607a37..d0c75772 100644 --- a/src/components/growthpath/GrowthVote.vue +++ b/src/components/growthpath/GrowthVote.vue @@ -277,7 +277,12 @@ defineExpose({ openDrawer }); .ant-table-striped :deep(.table-striped) td { background-color: #fafafa !important; } - +::v-deep.ant-spin-nested-loading { + height: 100%; + .ant-spin-container { + height: 100%; + } +} .growth-vote { .drawerMain { .header { @@ -304,7 +309,7 @@ defineExpose({ openDrawer }); .main_left { padding-right: 30px; flex: 1; - border-right: 1px solid #e8e8e8; + // border-right: 1px solid #e8e8e8; margin-top: 0px; .main_item { diff --git a/src/views/growthpath/PathManage.vue b/src/views/growthpath/PathManage.vue index 12e7b20b..441919eb 100644 --- a/src/views/growthpath/PathManage.vue +++ b/src/views/growthpath/PathManage.vue @@ -1131,7 +1131,7 @@ export default { codeUrl = window.location.protocol + process.env.VUE_APP_EXAM_DETAIL_URL + - item.info.examinationPaperId; + item.info.examinationTestId; } } // 直播结束时间 diff --git a/src/views/report/Employeelearning.vue b/src/views/report/Employeelearning.vue index 63d25a5e..5818f2e5 100644 --- a/src/views/report/Employeelearning.vue +++ b/src/views/report/Employeelearning.vue @@ -363,14 +363,14 @@ export default { width: 120, align: "center", }, - { - title: "专业力学习", - dataIndex: "growthStudy", - ellipsis: true, - key: "growthStudy", - width: 120, - align: "center", - }, + // { + // title: "专业力学习", + // dataIndex: "growthStudy", + // ellipsis: true, + // key: "growthStudy", + // width: 120, + // align: "center", + // }, { title: "学习时长", dataIndex: "learningDuration", diff --git a/src/views/report/Operational.vue b/src/views/report/Operational.vue index aedf7211..6ac95365 100644 --- a/src/views/report/Operational.vue +++ b/src/views/report/Operational.vue @@ -106,10 +106,10 @@ label: '学习路径图', value: 6, }, - { - label: '专业力必修', - value: 7, - }, + // { + // label: '专业力必修', + // value: 7, + // }, ]" > diff --git a/src/views/report/Overvoew.vue b/src/views/report/Overvoew.vue index b6bd7ba6..c673753b 100644 --- a/src/views/report/Overvoew.vue +++ b/src/views/report/Overvoew.vue @@ -392,7 +392,7 @@ export default { { text: "课程", num: res.data.result?.courseTotal }, { text: "考试", num: res.data.result?.examTotal }, { text: "案例", num: res.data.result?.caseTotal }, - { text: "专业力", num: res.data.result?.growthTotal }, + // { text: "专业力", num: res.data.result?.growthTotal }, ]; tabData.value = list; }); @@ -1009,7 +1009,7 @@ export default { { text: "课程", num: "11" }, { text: "考试", num: "10" }, { text: "案例", num: "10" }, - { text: "专业力必修", num: "10" }, + // { text: "专业力必修", num: "10" }, ]); const tabClick = (index) => { state.selectedRowKeys = []; From f6f4196bb222469f2bbfa918f229eae90083278c Mon Sep 17 00:00:00 2001 From: Pengxiansen <2422914688@qq.com> Date: Fri, 28 Feb 2025 20:26:30 +0800 Subject: [PATCH 5/5] =?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/api/configGrowth.js | 4 ++-- vue.config.js | 34 +++++++++++++++++----------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/api/configGrowth.js b/src/api/configGrowth.js index 2f010b28..ab3fedbe 100644 --- a/src/api/configGrowth.js +++ b/src/api/configGrowth.js @@ -18,8 +18,8 @@ import { boeRequest } from "@/api/request"; // "application/x-www-form-urlencoded"; axios.defaults.withCredentials = true; const http = axios.create({ - baseURL: '/growth', - // baseURL: process.env.VUE_APP_BASE_API_GROWTH, + // baseURL: '/growth', + baseURL: process.env.VUE_APP_BASE_API_GROWTH, timeout: 1000 * 15, // headers: { "Content-Type": "multipart/form-data" }, headers: { "Content-Type": "application/json" }, diff --git a/vue.config.js b/vue.config.js index b59f76d7..326395b2 100644 --- a/vue.config.js +++ b/vue.config.js @@ -18,16 +18,16 @@ module.exports = defineConfig({ overlay: false,// 解决代码抛出异常 }, proxy: { - // "/professional": { - // target: 'http://192.168.31.211:32002', - // // target: 'http://192.168.50.195:32002', - // // target: 'http://192.168.86.195:32002', - // changeOrigin: true, - // }, - "/growth": { - target: 'https:' + process.env.VUE_APP_BOE_API_URL, + "/professional": { + target: 'http://192.168.31.211:32002', + // target: 'http://192.168.50.195:32002', + // target: 'http://192.168.86.195:32002', changeOrigin: true, }, + // "/growth": { + // target: 'https:' + process.env.VUE_APP_BOE_API_URL, + // changeOrigin: true, + // }, "/manageApi": { target: 'https:' + process.env.VUE_APP_PROXY_URL, changeOrigin: true, //表示是否改变原域名 @@ -46,20 +46,20 @@ module.exports = defineConfig({ target: 'https:' + process.env.VUE_APP_BOE_API_URL, changeOrigin: true, //表示是否改变原域名 }, - // "/report": { - // target: 'https:' + process.env.VUE_APP_BOE_API_URL, - // changeOrigin: true, //表示是否改变原域名 - // pathRewrite: { - // // "^/manageApi": "", - // }, - // }, "/report": { - target: 'http://192.168.31.211:18878', + target: 'https:' + process.env.VUE_APP_BOE_API_URL, changeOrigin: true, //表示是否改变原域名 pathRewrite: { - "^/report": "", + // "^/manageApi": "", }, }, + // "/report": { + // target: 'http://192.168.31.211:18878', + // changeOrigin: true, //表示是否改变原域名 + // pathRewrite: { + // "^/report": "", + // }, + // }, "/activityApi": { target: 'https:' + process.env.VUE_APP_BOE_API_URL, changeOrigin: true,