【修改】管理员增加取消关联权限
This commit is contained in:
@@ -463,8 +463,10 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
canEdit() {
|
||||
// 待存档、草稿不限制
|
||||
if (this.model.status === 3 || this.model.status === 1) {
|
||||
// 当前登陆人 角色id
|
||||
const roleIds = this.$store.getters.userInfo.roleIds
|
||||
// 待存档、草稿、管理员不限制
|
||||
if (this.model.status === 3 || this.model.status === 1 || roleIds.includes('f6817f48af4fb3af11b9e8bf182f618b')) {
|
||||
return false
|
||||
}
|
||||
// 已存档
|
||||
@@ -475,6 +477,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.$store.getters.userInfo,'this.$store.getters.userInfo')
|
||||
// 判断是编辑还是新增
|
||||
if (this.$route.query.hasOwnProperty.call(this.$route.query, 'revenueId')) {
|
||||
this.contractId = this.$route.query.revenueId
|
||||
@@ -935,6 +938,7 @@ export default {
|
||||
}
|
||||
getAccessToken(params).then(res => {
|
||||
if(res.success) {
|
||||
console.log(res)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user