From a31b89d2aeed944188aedde087994dc6efa43fdb Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Thu, 17 Oct 2024 16:33:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=8F=90=E4=BA=A4=E6=88=91?= =?UTF-8?q?=E7=9A=84=E6=B6=88=E6=81=AF=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/exceptionHandle/errorData/index.vue | 4 +++ src/views/process/branchProExamine/index.vue | 4 +++ src/views/process/outExam/index.vue | 3 ++ src/views/process/restExam/index.vue | 4 +++ src/views/process/roles/index.vue | 4 +++ src/views/process/rolesExamine/index.vue | 4 +++ src/views/report/attReport/record.vue | 4 +++ src/views/report/monthlyError/index.vue | 9 ++++-- src/views/system/messages/index.vue | 28 +++++++++++++------ 9 files changed, 53 insertions(+), 11 deletions(-) diff --git a/src/views/exceptionHandle/errorData/index.vue b/src/views/exceptionHandle/errorData/index.vue index f0b3793..fa7f094 100644 --- a/src/views/exceptionHandle/errorData/index.vue +++ b/src/views/exceptionHandle/errorData/index.vue @@ -201,6 +201,10 @@ const lastMonth = new Date(); lastMonth.setMonth(lastMonth.getMonth() - 1) this.searchAttCurrentMonth = lastMonth; + if(this.$route.query.param){ + console.log(this.$route.query.param) + this.queryParams.attCurrentMonth=this.$route.query.param + } this.getList(); }, mounted(){ diff --git a/src/views/process/branchProExamine/index.vue b/src/views/process/branchProExamine/index.vue index decd3b0..2eabff9 100644 --- a/src/views/process/branchProExamine/index.vue +++ b/src/views/process/branchProExamine/index.vue @@ -381,6 +381,10 @@ export default { }; }, created() { + if(this.$route.query.param){ + console.log(this.$route.query.param) + this.queryParams.applyName=this.$route.query.param + } this.getList(); }, methods: { diff --git a/src/views/process/outExam/index.vue b/src/views/process/outExam/index.vue index 175c5f6..b56a981 100644 --- a/src/views/process/outExam/index.vue +++ b/src/views/process/outExam/index.vue @@ -238,6 +238,9 @@ export default { }; }, created() { + if(this.$route.query.param){ + this.queryParams.userName=this.$route.query.param + } this.getList(); }, methods: { diff --git a/src/views/process/restExam/index.vue b/src/views/process/restExam/index.vue index e916a41..7241661 100644 --- a/src/views/process/restExam/index.vue +++ b/src/views/process/restExam/index.vue @@ -240,6 +240,10 @@ export default { }; }, created() { + if(this.$route.query.param){ + console.log(this.$route.query.param) + this.queryParams.userName=this.$route.query.param + } this.getList(); }, methods: { diff --git a/src/views/process/roles/index.vue b/src/views/process/roles/index.vue index 25d90e8..c3a20e5 100644 --- a/src/views/process/roles/index.vue +++ b/src/views/process/roles/index.vue @@ -171,6 +171,10 @@ export default { }; }, created() { + if(this.$route.query.param){ + console.log(this.$route.query.param) + this.queryParams.userName=this.$route.query.param + } this.getList(); }, methods: { diff --git a/src/views/process/rolesExamine/index.vue b/src/views/process/rolesExamine/index.vue index 3b87a05..46d3b20 100644 --- a/src/views/process/rolesExamine/index.vue +++ b/src/views/process/rolesExamine/index.vue @@ -140,6 +140,10 @@ }; }, created() { + if(this.$route.query.param){ + console.log(this.$route.query.param) + this.queryParams.userName=this.$route.query.param + } this.getList(); }, methods: { diff --git a/src/views/report/attReport/record.vue b/src/views/report/attReport/record.vue index 41d3aa4..46ae5ea 100644 --- a/src/views/report/attReport/record.vue +++ b/src/views/report/attReport/record.vue @@ -225,6 +225,10 @@ export default { }; }, created() { + if(this.$route.query.param){ + console.log(this.$route.query.param) + this.queryParams.userName=this.$route.query.param + } this.getDeptList(); this.getList(); }, diff --git a/src/views/report/monthlyError/index.vue b/src/views/report/monthlyError/index.vue index 2414e25..969c638 100644 --- a/src/views/report/monthlyError/index.vue +++ b/src/views/report/monthlyError/index.vue @@ -278,8 +278,13 @@ computed: { }, created() { - this.getMonth() - this.getDeptList(), + + this.getMonth(); + this.getDeptList(); + if(this.$route.query.param){ + console.log(this.$route.query.param) + this.queryParams.attCurrentMonth=this.$route.query.param + } this.getList(); }, mounted(){ diff --git a/src/views/system/messages/index.vue b/src/views/system/messages/index.vue index 0d29381..9b04f36 100644 --- a/src/views/system/messages/index.vue +++ b/src/views/system/messages/index.vue @@ -13,14 +13,14 @@ @@ -110,13 +110,23 @@ this.queryParams.pageNum = 1; this.getList(); }, - goJump(title){ - if(title.indexOf('异常考勤统计')>-1){ - this.$router.replace({ path: '/attendanceReport/monthlyError' }) - }else if(title.indexOf('轮休外出办事异常统计')>-1){ - this.$router.replace({ path: '/exceptionHandle/errorData' }) - }else if(title.indexOf('角色未配置')>-1){ - this.$router.replace({ path: '/process/roles'}) + goJump(type,value){ + if(type.indexOf('异常考勤统计')>-1){//month + this.$router.replace({ path: '/attendanceReport/monthlyError',query:{param:value}}) + }else if(type.indexOf('轮休外出办事异常统计')>-1){//month + this.$router.replace({ path: '/exceptionHandle/errorData',query:{param:value} }) + }else if(type.indexOf('项目部角色未配置')>-1){//userName + this.$router.replace({ path: '/process/roles',query:{param:value}}) + }else if(type.indexOf('轮休审批提醒')>-1){//userName + this.$router.replace({ path: '/process/restExam',query:{param:value}}) + }else if(type.indexOf('临时外出审批提醒')>-1){//userName + this.$router.replace({ path: '/process/outExam',query:{param:value}}) + }else if(type.indexOf('项目部角色人员变更')>-1){//userName + this.$router.replace({ path: '/process/rolesExamine',query:{param:value}}) + }else if(type.indexOf('分公司项目部新增')>-1){ + this.$router.replace({ path: '/process/branchProExamine',query:{param:value}}) + }else if(type.indexOf('考勤明细修改申请')>-1){//userName + this.$router.replace({ path: '/process/record',query:{param:value}}) } }