diff --git a/src/App.vue b/src/App.vue index bc766a13..393238b7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -33,7 +33,7 @@ import {USER_PERMISSION} from "@/api/ThirdApi"; const store = useStore(); const isLogin = ref(false); -console.log("版本2.1.6------------"); +console.log("版本1.4.5------------"); // 监听关闭浏览器 let time1 = ref(0); diff --git a/src/api/confign.js b/src/api/confign.js index 3d8d3766..dcb886c6 100644 --- a/src/api/confign.js +++ b/src/api/confign.js @@ -24,7 +24,6 @@ http.interceptors.request.use( config.headers.token = token; //测试1111 } else{ message.error('未获取到登录信息,请先登录') - return window.location.href='https://u-pre.boe.com/web/'; } return config; }, @@ -48,7 +47,6 @@ http.interceptors.response.use( } if(code==601){ message.error('token过期请重新登陆'); - return window.location.href='https://u-pre.boe.com/web/'; } if (code === 1000) { (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'alpine') ? router.push({path: 'login'}) : (window.location.href = process.env.VUE_APP_LOGIN_URL) diff --git a/src/api/configz.js b/src/api/configz.js index c8aec5ad..165fb064 100644 --- a/src/api/configz.js +++ b/src/api/configz.js @@ -25,7 +25,6 @@ http.interceptors.request.use( config.headers.token = token; //测试1111 } else{ message.error('未获取到登录信息,请先登录') - return window.location.href='https://u-pre.boe.com/web/'; } return config; }, @@ -50,7 +49,6 @@ http.interceptors.response.use( } if(code==601){ message.error('token过期请重新登陆'); - return window.location.href='https://u-pre.boe.com/web/'; } if (code === 1000) { (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'alpine') ? router.push({path: 'login'}) : (window.location.href = process.env.VUE_APP_LOGIN_URL) diff --git a/src/views/report/Employeelearning.vue b/src/views/report/Employeelearning.vue index a2febd14..66b757e3 100644 --- a/src/views/report/Employeelearning.vue +++ b/src/views/report/Employeelearning.vue @@ -4,13 +4,26 @@
- + > --> + +
-
+
+ +
导出全部
-
+
+ +
导出
@@ -117,23 +134,28 @@ export default { userNo: "", //工号 option: [], //组织列表 selectedRowKeys: [], // 选中的列 + ids: [], + allowClear:true, + resetOrgId:[] }); // table选中 - const onSelectChange = (selectedRowKeys) => { + const onSelectChange = (selectedRowKeys, record) => { state.selectedRowKeys = selectedRowKeys; + state.ids = record?.map((item) => { + return item.basicBoeUserId; + }); }; - //请求组织接口 + //请求组织接口 const getOrgList = async () => { const res = await api.userGetUserOrg({}); if (res) { - const list = res.data?.result?.map((item) => { - return { - label: item.orgName, - value: item.orgId, - }; - }); - state.option = list; - getOrgId(); + state.option = res.data?.result?.list; + state.orgId = res.data?.result?.treeNodeList; + state.resetOrgId = res.data?.result?.treeNodeList; + res.data?.result?.userType === 1 + ? (state.allowClear = true) + : (state.allowClear = false); + getTableData(); } }; //导出 @@ -144,7 +166,7 @@ export default { axios({ method: "get", url: "/report/boeu/studyData/export", - params: { ids: `${state.selectedRowKeys}` }, + params: { ids: `${state.ids}` }, responseType: "blob", headers: { token: Cookies.get("token"), @@ -280,7 +302,7 @@ export default { axios({ method: "get", url: "/report/boeu/studyData/export", - params: { ids: `${record.record.id}` }, + params: { ids: `${record.record.basicBoeUserId}` }, responseType: "blob", headers: { token: Cookies.get("token"), @@ -302,7 +324,7 @@ export default { size: state.pageSize, userNo: state.userNo, name: state.name, - departmentId: state.orgId, + departmentId: state.orgId ? state.orgId[state.orgId.length - 1] : null, bandCode: state.band, }); if (res) { @@ -323,16 +345,10 @@ export default { state.name = ""; state.band = ""; state.userNo = ""; - getOrgId(); - }; - // 获取登录人员组织 - const getOrgId = async () => { - const res = await api.userInfo({}); - if (res) { - state.orgId = res.data.result.departId; - getTableData(); - } + state.orgId = state.resetOrgId; + getTableData(); }; + // 导出全部按钮 const exportAllBtn = async () => { axios({ @@ -341,7 +357,7 @@ export default { data: { userNo: state.userNo, name: state.name, - departmentId: state.orgId, + departmentId: state.orgId ? state.orgId[state.orgId.length - 1] : null, bandCode: state.band, }, responseType: "blob", @@ -449,10 +465,14 @@ export default { } .btn2 { + background: #4ea6ff; .search { width: 16px; height: 18px; - background-image: url("../../assets/images/courseManage/reset1.png"); + background-image: url("../../assets/images/courseManage/reset0.png"); + } + .btnText { + color: #ffffff; } } @@ -473,11 +493,11 @@ export default { } .btn2:hover { - background: rgba(64, 158, 255, 0.1); + background: rgba(64, 158, 255, 0.76); } .btn2:active { - background: rgba(64, 158, 255, 0.2); + background: #0982ff; } } .tableBox { @@ -519,22 +539,25 @@ export default { .btn3 { margin-right: 0px; - + background: #4ea6ff; .search { width: 17px; height: 18px; background-image: url("../../assets/images/courseManage/add0.png"); } + .btnText { + color: #ffffff; + } } .btn3:hover { // background: rgba(64, 158, 255, 0.76); - background: rgba(64, 158, 255, 0.2); + background: rgba(64, 158, 255, 0.76); } - // .btn3:active { - // background: #0982ff; - // } + .btn3:active { + background: #0982ff; + } } .tableBox { diff --git a/src/views/report/Learningpathmap.vue b/src/views/report/Learningpathmap.vue index 5bb10d79..97f70a64 100644 --- a/src/views/report/Learningpathmap.vue +++ b/src/views/report/Learningpathmap.vue @@ -51,11 +51,11 @@
-
+
导出列表信息
-
+
导出详细信息
@@ -369,12 +369,15 @@ export default { .btn3 { margin-right: 0px; - + background: #4ea6ff; .search { width: 17px; height: 18px; background-image: url("../../assets/images/courseManage/add0.png"); } + .btnText { + color: #ffffff; + } } .btn3:hover { diff --git a/src/views/report/Overvoew.vue b/src/views/report/Overvoew.vue index 07355a4d..6faf2d6d 100644 --- a/src/views/report/Overvoew.vue +++ b/src/views/report/Overvoew.vue @@ -4,13 +4,25 @@
- + > --> +
- +
全部导出
- +
导出
@@ -281,6 +299,8 @@ export default { name: "", //名称 selectedRowKeys: [], // 选中的列 option: [], + resetOrgId: [], + allowClear: true, }); // 获取tab数据 const getTabData = async () => { @@ -302,21 +322,20 @@ export default { state.tableLoading = true; state.creator = ""; state.name = ""; - getOrgId(); - // getTableData(); + state.orgId = state.resetOrgId; + getTableData(); }; //请求组织接口 const getOrgList = async () => { const res = await api.userGetUserOrg({}); if (res) { - const list = res.data?.result?.map((item) => { - return { - label: item.orgName, - value: item.orgId, - }; - }); - state.option = list; - getOrgId(); + state.option = res.data?.result?.list; + state.orgId = res.data?.result?.treeNodeList; + state.resetOrgId = res.data?.result?.treeNodeList; + res.data?.result?.userType === 1 + ? (state.allowClear = true) + : (state.allowClear = false); + getTableData(); } }; // 导出按钮 @@ -407,7 +426,7 @@ export default { url: "/report/boeu/case/exportAll", data: { name: state.name, - organizationId: state.orgId, + organizationId: state.orgId ? state.orgId[state.orgId.length - 1] : null, createName: state.creator, }, responseType: "blob", @@ -423,7 +442,7 @@ export default { url: "/report/boeu/exam/exportAll", data: { name: state.name, - organizationId: state.orgId, + organizationId: state.orgId ? state.orgId[state.orgId.length - 1] : null, createName: state.creator, }, responseType: "blob", @@ -439,7 +458,7 @@ export default { url: "/report/boeu/course/exportAll", data: { name: state.name, - organizationId: state.orgId, + organizationId: state.orgId ? state.orgId[state.orgId.length - 1] : null, createName: state.creator, }, responseType: "blob", @@ -455,7 +474,7 @@ export default { url: "/report/boeu/teaching/exportAll", data: { name: state.name, - organizationId: state.orgId, + organizationId: state.orgId ? state.orgId[state.orgId.length - 1] : null, createName: state.creator, }, responseType: "blob", @@ -471,7 +490,7 @@ export default { url: "/report/boeu/router/exportAll", data: { name: state.name, - organizationId: state.orgId, + organizationId: state.orgId ? state.orgId[state.orgId.length - 1] : null, createName: state.creator, }, responseType: "blob", @@ -485,9 +504,9 @@ export default { axios({ method: "post", url: "/report/boeu/project/exportAll", - data:{ + data: { name: state.name, - organizationId: state.orgId, + orgId: state.orgId ? state.orgId[state.orgId.length - 1] : null, createName: state.creator, }, responseType: "blob", @@ -511,7 +530,7 @@ export default { //考试列表 const res = await api.boeuExamPageList({ creator: state.creator, - orgId: state.orgId, + orgId: state.orgId ? state.orgId[state.orgId.length - 1] : null, testName: state.name, page: state.pageNo, size: state.pageSize, @@ -531,7 +550,7 @@ export default { //案例列表 const res = await api.boeuCasePageList({ author: state.creator, - orgId: state.orgId, + orgId: state.orgId ? state.orgId[state.orgId.length - 1] : null, title: state.name, page: state.pageNo, size: state.pageSize, @@ -552,7 +571,9 @@ export default { page: state.pageNo, size: state.pageSize, name: state.name, - organizationId: state.orgId, + organizationId: state.orgId + ? state.orgId[state.orgId.length - 1] + : null, createName: state.creator, }); const list = res.data.rows.map((item) => { @@ -569,7 +590,7 @@ export default { page: state.pageNo, size: state.pageSize, teachingName: state.name, - orgId: state.orgId, + orgId: state.orgId ? state.orgId[state.orgId.length - 1] : null, createName: state.creator, }); const list = res.data.rows?.map((item) => { @@ -586,7 +607,7 @@ export default { page: state.pageNo, size: state.pageSize, routerName: state.name, - orgId: state.orgId, + orgId: state.orgId ? state.orgId[state.orgId.length - 1] : null, createName: state.creator, }); const list = res.data.rows?.map((item) => { @@ -602,7 +623,7 @@ export default { const res = await api.boeuProjectPageList({ page: state.pageNo, size: state.pageSize, - orgId: state.orgId, + orgId: state.orgId ? state.orgId[state.orgId.length - 1] : null, createName: state.creator, projectName: state.name, }); @@ -1307,14 +1328,7 @@ export default { } getTableData(); }; - // 获取登录人员组织 - const getOrgId = async () => { - const res = await api.userInfo({}); - if (res) { - state.orgId = res.data.result.departId; - getTableData(); - } - }; + //table 分页事件 const changePagination = (page) => { state.selectedRowKeys = []; @@ -1430,10 +1444,15 @@ export default { .btn2 { margin-right: 0px !important; + background: #4ea6ff; .search { width: 16px; height: 18px; - background-image: url("../../assets/images/courseManage/reset1.png"); + + background-image: url("../../assets/images/courseManage/reset0.png"); + } + .btnText { + color: white; } } @@ -1448,18 +1467,29 @@ export default { color: #ffffff; } } + .btn2:hover { + background: rgba(64, 158, 255, 0.76); - .btn1:active { + .search { + background-image: url("../../assets/images/courseManage/reset0.png"); + } + + .btnText { + color: #ffffff; + } + } + .btn1:active, + .btn2:active { background: #0982ff; } - .btn2:hover { - background: rgba(64, 158, 255, 0.1); - } + // .btn2:hover { + // background: rgba(64, 158, 255, 0.1); + // } - .btn2:active { - background: rgba(64, 158, 255, 0.2); - } + // .btn2:active { + // background: rgba(64, 158, 255, 0.2); + // } } .tabBtn { width: 100%; @@ -1519,16 +1549,20 @@ export default { .btn3 { margin-right: 0px; + background: #4ea6ff; .search { width: 17px; height: 18px; background-image: url("../../assets/images/courseManage/add0.png"); } + .btnText { + color: #ffffff; + } } .btn3:hover { // background: rgba(64, 158, 255, 0.76); - background: rgba(64, 158, 255, 0.2); + background: rgba(64, 158, 255, 0.76); } } }