同步
This commit is contained in:
@@ -49,6 +49,18 @@ export default {
|
||||
created() {
|
||||
this.init();
|
||||
},
|
||||
watch: {
|
||||
selectionRole:{
|
||||
handler(val, oldVal){
|
||||
if(val.length==1)
|
||||
{
|
||||
////
|
||||
this.selectionMenu=[{id:38},{id:39}]
|
||||
}
|
||||
},
|
||||
deep:true
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
setMenu(){
|
||||
var roleIds=[];
|
||||
|
||||
@@ -36,14 +36,13 @@ export default {
|
||||
methods: {
|
||||
async showItem(item) {
|
||||
var strInfo = "";
|
||||
|
||||
roleApi.GetRolesByUser().then(resp=>{
|
||||
|
||||
})
|
||||
|
||||
Object.keys(item).forEach(function (key) {
|
||||
strInfo += key + ":" + item[key] + "<br>";
|
||||
});
|
||||
userApi.GetRolesByUserId(item.id).then(resp=>{
|
||||
const roleData=resp.data;
|
||||
roleData.forEach(u=>{strInfo+="角色名:"+u.role_name})
|
||||
})
|
||||
await this.$dialog.confirm({
|
||||
text: strInfo,
|
||||
title: "信息详情",
|
||||
|
||||
Reference in New Issue
Block a user