bug提交3
This commit is contained in:
parent
400b591cd4
commit
6e68ffd4b9
|
|
@ -9,3 +9,11 @@ export function listNotice(query) {
|
|||
})
|
||||
}
|
||||
|
||||
// 阅读消息
|
||||
export function updateStatus(data) {
|
||||
return request({
|
||||
url: '/system/notice/updateStatus',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.type,scope.row.value)" style="color: #02a7f0; cursor: pointer">
|
||||
<div v-if="scope.row.addressErrorNum!=0" @click="goJump(scope.row,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.type,scope.row.value)" style="color: #02a7f0; cursor: pointer">
|
||||
<div v-if="scope.row.addressErrorNum!=0" @click="goJump(scope.row,scope.row.value)" style="color: #02a7f0; cursor: pointer">
|
||||
{{ scope.row.content}}
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -47,7 +47,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { listNotice } from "@/api/system/messages";
|
||||
import { listNotice,updateStatus } from "@/api/system/messages";
|
||||
export default {
|
||||
name: "Dict",
|
||||
dicts: ['sys_normal_disable'],
|
||||
|
|
@ -110,28 +110,33 @@
|
|||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
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){//项目经理
|
||||
this.$router.replace({ path: '/process/pro/rolesRemind',query:{param:value}})
|
||||
}else if(type.indexOf('项目部角色人员变更')>-1){//userName
|
||||
this.$router.replace({ path: '/process/pro/rolesExamine',query:{param:value}})
|
||||
}else if(type.indexOf('轮休申请')>-1){//userName
|
||||
this.$router.replace({ path: '/process/restApply',query:{param:value}})
|
||||
}else if(type.indexOf('临时外出申请')>-1){//userName
|
||||
this.$router.replace({ path: '/process/outApply',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/org/branchProExamine',query:{param:value}})
|
||||
}else if(type.indexOf('考勤明细修改申请')>-1){//userName
|
||||
this.$router.replace({ path: '/process/record',query:{param:value}})
|
||||
goJump(row,value){
|
||||
let param = {
|
||||
noticeId:row.noticeId
|
||||
}
|
||||
updateStatus(param).then(response => {
|
||||
if(row.type.indexOf('月异常考勤统计')>-1){//month
|
||||
this.$router.replace({ path: '/attendanceReport/monthlyError',query:{param:value}})
|
||||
}else if(row.type.indexOf('月轮休外出办事异常统计')>-1){//month
|
||||
this.$router.replace({ path: '/exceptionHandle/errorData',query:{param:value} })
|
||||
}else if(row.type.indexOf('项目部角色未配置')>-1){//项目经理
|
||||
this.$router.replace({ path: '/process/pro/rolesRemind',query:{param:value}})
|
||||
}else if(row.type.indexOf('项目部角色人员变更')>-1){//userName
|
||||
this.$router.replace({ path: '/process/pro/rolesExamine',query:{param:value}})
|
||||
}else if(row.type.indexOf('轮休申请')>-1){//userName
|
||||
this.$router.replace({ path: '/process/restApply',query:{param:value}})
|
||||
}else if(row.type.indexOf('临时外出申请')>-1){//userName
|
||||
this.$router.replace({ path: '/process/outApply',query:{param:value}})
|
||||
}else if(row.type.indexOf('轮休审批提醒')>-1){//userName
|
||||
this.$router.replace({ path: '/process/restExam',query:{param:value}})
|
||||
}else if(row.type.indexOf('临时外出审批提醒')>-1){//userName
|
||||
this.$router.replace({ path: '/process/outExam',query:{param:value}})
|
||||
}else if(row.type.indexOf('分公司项目部新增')>-1){//userName
|
||||
this.$router.replace({ path: '/process/org/branchProExamine',query:{param:value}})
|
||||
}else if(row.type.indexOf('考勤明细修改申请')>-1){//userName
|
||||
this.$router.replace({ path: '/process/record',query:{param:value}})
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue