From 41618e737e3eab65737ee5182af757b72e54669c Mon Sep 17 00:00:00 2001 From: Rain_ <904416525@qq.com> Date: Mon, 20 Oct 2025 17:33:44 +0800 Subject: [PATCH] =?UTF-8?q?flx=EF=BC=9A=E6=8F=90=E4=BA=A4=E5=85=8D?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=88=B0=E4=BA=BA=E5=91=98=E8=80=83=E5=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/login_v3.vue | 11 ++++ src/views/projectAdmin/projectIndex.vue | 64 ++++++++++++++++++- .../attendanceManage/attendanceManageOld.vue | 4 +- 3 files changed, 75 insertions(+), 4 deletions(-) diff --git a/src/views/home/login_v3.vue b/src/views/home/login_v3.vue index 2d3c24ae..127598bf 100644 --- a/src/views/home/login_v3.vue +++ b/src/views/home/login_v3.vue @@ -1404,6 +1404,17 @@ export default { this.$store.commit("setProjectSn", projectSn); return this.$router.push("/project/dataBoard/index"); } + if (window.location.href.indexOf("AttendanceType") != -1) { + let attendanceType = this.GetParam("AttendanceType"); + console.log(11122333, attendanceType, data) + this.$store.commit("setProjectSn", data.sn); + this.$router.push("/projectIndex?attendanceType=" + attendanceType); + return + // if(attendanceType == 1) { + // this.$router.push("/project/labor/attendanceManage"); + // return + // } + } var companyModule = []; var projectModule = []; if ( diff --git a/src/views/projectAdmin/projectIndex.vue b/src/views/projectAdmin/projectIndex.vue index cebd8225..66550c7f 100644 --- a/src/views/projectAdmin/projectIndex.vue +++ b/src/views/projectAdmin/projectIndex.vue @@ -144,13 +144,66 @@ export default { var arr = this.$store.state.userInfo.menuAuthority.moduleList; this.getAllModule(arr); this.getProjectNumber(); - // } }, activated() { this.$refs.artList.scrollTop = this.selfScrollTop; }, methods: { + toAssignRouter(router, routerPlugin){ + const find = this.list.find(item => item.plugin == routerPlugin); + console.log(111111, this.list, find) + if(find) { + var arr = find.menuList, + arr2 = []; + arr.forEach((element) => { + if (element.menuEquipment == 0) { + arr2.push(element); + } + }); + this.$store.commit("setMenuList", arr2); + this.$store.commit("setIsShowBackIndex", true); + this.$store.commit("setMoudle", find); + const findRouter = arr2.find(item => item.path == router) + if (findRouter.target == "_blank") { + let routeUrl = ""; + if (findRouter.path.indexOf("http") != -1) { + routeUrl = findRouter.path; + } else { + let url = this.$router.resolve({ + path: findRouter.path, + }); + routeUrl = url.href; + } + window.open(routeUrl, "_blank"); + } else { + if (findRouter.path == "" || findRouter.path.indexOf("/") == -1) { + this.$router.push(findRouter.menuList[0].path); + } else { + this.$router.push(findRouter.path); + } + } + } + + }, + GetParam(paraName) { + var url = document.location.toString(); + console.log(url); + var arrObj = url.split("?"); + if (arrObj.length > 1) { + var arrPara = arrObj[1].split("&"); + var arr; + for (var i = 0; i < arrPara.length; i++) { + arr = arrPara[i].split("="); + if (arr != null && arr[0] == paraName) { + return arr[1]; + } + } + return ""; + } else { + return ""; + } + }, scrollGet(e) { // console.log("滚动触发的事件", e.srcElement.scrollTop, e.target.scrollTop); this.selfScrollTop = this.$refs.artList.scrollTop; @@ -267,6 +320,7 @@ export default { item.menuList.length > 0 && item.moduleName != "全景成像测距" ) { + console.log("3334444, 进入11", item.menuList) var arr = item.menuList, arr2 = []; arr.forEach((element) => { @@ -396,7 +450,13 @@ export default { } return prev },[]) - + if (window.location.href.indexOf("attendanceType") != -1) { + let attendanceType = this.GetParam("attendanceType"); + console.log(11122333, attendanceType,) + if(attendanceType == 1) { + this.toAssignRouter("/project/labor/attendanceManage", "laborManage") + } + } console.log(this.list, 222) } }); diff --git a/src/views/projectFront/laborManage/attendanceManage/attendanceManageOld.vue b/src/views/projectFront/laborManage/attendanceManage/attendanceManageOld.vue index f09b4003..1b3eed20 100644 --- a/src/views/projectFront/laborManage/attendanceManage/attendanceManageOld.vue +++ b/src/views/projectFront/laborManage/attendanceManage/attendanceManageOld.vue @@ -309,7 +309,7 @@ :label="$t('message.laborMange.compellation')" align="center" > - {{ vaccinationFrequencyltsList[scope.row.vaccinateState] || "无" }} - + -->