Commit 0841452d authored by 黄奎's avatar 黄奎

页面修改

parent c3fa7ef6
...@@ -395,13 +395,24 @@ ...@@ -395,13 +395,24 @@
showTwo: false, showTwo: false,
defaultActive: '1-1', defaultActive: '1-1',
currentUser: {}, currentUser: {},
MenuList: [], //菜单列表
}; };
}, },
created() { created() {
this.currentUser = this.getLocalStorage(); this.currentUser = this.getLocalStorage();
console.log(" this.currentUser", this.currentUser);
}, },
methods: { methods: {
//获取菜单列表
getMenuList() {
this.apipost("/api/Tenant/GetMenuList", {}, res => {
console.log(res);
if (res.data.resultCode == 1) {
this.MenuList = res.data.data;
} else {
this.Info(res.data.message);
}
})
},
//点击关闭二级窗口 //点击关闭二级窗口
hideTwo() { hideTwo() {
this.showTwo = false; this.showTwo = false;
...@@ -418,7 +429,9 @@ ...@@ -418,7 +429,9 @@
}); });
} }
}, },
mounted() {} mounted() {
this.getMenuList();
}
}; };
</script> </script>
...@@ -215,7 +215,7 @@ ...@@ -215,7 +215,7 @@
}, },
//恢复菜单 //恢复菜单
getChildMenuList(MenuLevel) { getChildMenuList(MenuLevel) {
this.apipost("/api/Tenant/SetMenuStatus", { this.apipost("/api/Tenant/GetMenuChildList", {
MenuLevel: MenuLevel, MenuLevel: MenuLevel,
}, res => { }, res => {
console.log(res); console.log(res);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment