权限控制

master
Caps 6 years ago
parent b1e069499b
commit 98c1b5fb04

@ -223,7 +223,6 @@
id:"0", id:"0",
name:"全部" name:"全部"
}); });
that.changeRoleId = "0";
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
let row = data[i]; let row = data[i];
that.roleList.push(row); that.roleList.push(row);
@ -231,7 +230,13 @@
if (that.$route.query != null) { if (that.$route.query != null) {
that.item = that.$route.query; that.item = that.$route.query;
// //
that.changeRoleId = that.item.id; if(that.item.id === undefined){
that.changeRoleId = "0";
}else {
that.changeRoleId = that.item.id;
}
}else {
that.changeRoleId = "0";
} }
that.listAccountInfoFunction(); that.listAccountInfoFunction();
} }

Loading…
Cancel
Save