前端提交我的消息跳转

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(); const lastMonth = new Date();
lastMonth.setMonth(lastMonth.getMonth() - 1) lastMonth.setMonth(lastMonth.getMonth() - 1)
this.searchAttCurrentMonth = lastMonth; this.searchAttCurrentMonth = lastMonth;
if(this.$route.query.param){
console.log(this.$route.query.param)
this.queryParams.attCurrentMonth=this.$route.query.param
}
this.getList(); this.getList();
}, },
mounted(){ mounted(){

View File

@ -381,6 +381,10 @@ export default {
}; };
}, },
created() { created() {
if(this.$route.query.param){
console.log(this.$route.query.param)
this.queryParams.applyName=this.$route.query.param
}
this.getList(); this.getList();
}, },
methods: { methods: {

View File

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

View File

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

View File

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

View File

@ -140,6 +140,10 @@
}; };
}, },
created() { created() {
if(this.$route.query.param){
console.log(this.$route.query.param)
this.queryParams.userName=this.$route.query.param
}
this.getList(); this.getList();
}, },
methods: { methods: {

View File

@ -225,6 +225,10 @@ export default {
}; };
}, },
created() { created() {
if(this.$route.query.param){
console.log(this.$route.query.param)
this.queryParams.userName=this.$route.query.param
}
this.getDeptList(); this.getDeptList();
this.getList(); this.getList();
}, },

View File

@ -278,8 +278,13 @@
computed: { computed: {
}, },
created() { 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(); this.getList();
}, },
mounted(){ mounted(){

View File

@ -13,14 +13,14 @@
</el-table-column> </el-table-column>
<el-table-column label="标题" align="center" prop="title" :show-overflow-tooltip="true" > <el-table-column label="标题" align="center" prop="title" :show-overflow-tooltip="true" >
<template slot-scope="scope"> <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}} {{ scope.row.title}}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="消息内容" align="center" prop="content" :show-overflow-tooltip="true" > <el-table-column label="消息内容" align="center" prop="content" :show-overflow-tooltip="true" >
<template slot-scope="scope"> <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}} {{ scope.row.content}}
</div> </div>
</template> </template>
@ -110,13 +110,23 @@
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
this.getList(); this.getList();
}, },
goJump(title){ goJump(type,value){
if(title.indexOf('异常考勤统计')>-1){ if(type.indexOf('异常考勤统计')>-1){//month
this.$router.replace({ path: '/attendanceReport/monthlyError' }) this.$router.replace({ path: '/attendanceReport/monthlyError',query:{param:value}})
}else if(title.indexOf('轮休外出办事异常统计')>-1){ }else if(type.indexOf('轮休外出办事异常统计')>-1){//month
this.$router.replace({ path: '/exceptionHandle/errorData' }) this.$router.replace({ path: '/exceptionHandle/errorData',query:{param:value} })
}else if(title.indexOf('角色未配置')>-1){ }else if(type.indexOf('项目部角色未配置')>-1){//userName
this.$router.replace({ path: '/process/roles'}) 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}})
} }
} }