账户登陆权限控制

master
Caps 6 years ago
parent a62439a22c
commit 6f978b9dfa

@ -191,18 +191,6 @@
let row = data[i]; let row = data[i];
that.threePermissionList.push(row); that.threePermissionList.push(row);
} }
//
if (data && data.length > 0 && that.refreshFlag) {
let resource = '';
if (that.threePermissionList[0].resource) {
resource = that.threePermissionList[0].resource;
}
that.subMenuClick(0);
that.$router.push({path: resource});
//
that.refreshFlag = false;
}
that.twoPermissionList.forEach(function (two) { that.twoPermissionList.forEach(function (two) {
// //
let three = that.threePermissionList.filter(function (data) { let three = that.threePermissionList.filter(function (data) {
@ -226,20 +214,15 @@
menuInit: function () { menuInit: function () {
let that = this; let that = this;
that.selectedItemName = that.onePermissionList[0].subMenuList[0].id; that.selectedItemName = that.onePermissionList[0].subMenuList[0].id;
that.openName = "['1']"; that.openName = [that.onePermissionList[0].id];
this.$nextTick(()=>{ this.$nextTick(()=>{
this.$refs.menu.updateOpened(); this.$refs.menu.updateOpened();
this.$refs.menu.updateActiveName(); this.$refs.menu.updateActiveName();
}) })
debugger this.selectedMenu = this.onePermissionList[0].name;
this.selectedSubMenu = this.onePermissionList[0].subMenuList[0].name;
this.$router.push({path:that.onePermissionList[0].subMenuList[0].resource}); this.$router.push({path:that.onePermissionList[0].subMenuList[0].resource});
}, },
//-id
subMenuUnfold: function (twoPermissionId) {
},
//-
subMenuClick: function (index) {
},
} }
} }
</script> </script>

Loading…
Cancel
Save