前端提交我的消息跳转

This commit is contained in:
zzyuan 2024-10-17 16:33:24 +08:00
parent b621dcfc59
commit a31b89d2ae
9 changed files with 53 additions and 11 deletions

View File

@ -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(){

View File

@ -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: {

View File

@ -238,6 +238,9 @@ export default {
};
},
created() {
if(this.$route.query.param){
this.queryParams.userName=this.$route.query.param
}
this.getList();
},
methods: {

View File

@ -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: {

View File

@ -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: {

View File

@ -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: {

View File

@ -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();
},

View File

@ -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(){

View File

@ -13,14 +13,14 @@
</el-table-column>
<el-table-column label="标题" align="center" prop="title" :show-overflow-tooltip="true" >
<template slot-scope="scope">
<div v-if="scope.row.addressErrorNum!=0" @click="goJump(scope.row.title)" style="color: #02a7f0; cursor: pointer">
<div v-if="scope.row.addressErrorNum!=0" @click="goJump(scope.row.type,scope.row.value)" style="color: #02a7f0; cursor: pointer">
{{ scope.row.title}}
</div>
</template>
</el-table-column>
<el-table-column label="消息内容" align="center" prop="content" :show-overflow-tooltip="true" >
<template slot-scope="scope">
<div v-if="scope.row.addressErrorNum!=0" @click="goJump(scope.row.title)" style="color: #02a7f0; cursor: pointer">
<div v-if="scope.row.addressErrorNum!=0" @click="goJump(scope.row.type,scope.row.value)" style="color: #02a7f0; cursor: pointer">
{{ scope.row.content}}
</div>
</template>
@ -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}})
}
}