【修改】按钮权限
This commit is contained in:
@@ -90,7 +90,7 @@ import tabs from '../userCenter/processCenter/tabs.vue'
|
|||||||
},
|
},
|
||||||
checkList:[],
|
checkList:[],
|
||||||
flag:'',//是不是同意
|
flag:'',//是不是同意
|
||||||
isShowbtn:this.$store.getters.activeTab =='' || this.$store.getters.activeTab =='first'
|
isShowbtn:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
@@ -110,8 +110,19 @@ import tabs from '../userCenter/processCenter/tabs.vue'
|
|||||||
console.log(data)
|
console.log(data)
|
||||||
this.checkList=data
|
this.checkList=data
|
||||||
});
|
});
|
||||||
|
let name=this.controlNode('RXXTU4A5YN')?'first':''
|
||||||
|
|
||||||
|
this.isShowbtn= name =='first'?true:false
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
controlNode(node) {
|
||||||
|
const permissionId = this.$store.getters.btnPerssion.map(item=>{
|
||||||
|
return item.id
|
||||||
|
})
|
||||||
|
|
||||||
|
let result = permissionId.includes(node)
|
||||||
|
return result
|
||||||
|
},
|
||||||
cancel(){
|
cancel(){
|
||||||
this.dialogVisible=false
|
this.dialogVisible=false
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -55,8 +55,8 @@ export default {
|
|||||||
this.form = JSON.parse(JSON.stringify(data))
|
this.form = JSON.parse(JSON.stringify(data))
|
||||||
console.log(this.form,"hhh")
|
console.log(this.form,"hhh")
|
||||||
})
|
})
|
||||||
let name=this.controlNode('RXXTU4A5YN')?'first':'five'
|
let name=this.controlNode('RXXTU4A5YN')?'first':(this.controlNode('NXQ54Q9QP4')?'fourth':'five')
|
||||||
this.$store.commit('setActiveTabIndex',this.activeName)
|
this.$store.commit('setActiveTabIndex',name)
|
||||||
this.activeName=this.$store.getters.activeTab ?this.$store.getters.activeTab:name
|
this.activeName=this.$store.getters.activeTab ?this.$store.getters.activeTab:name
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user