dashboardgrid

This commit is contained in:
小陌 2023-06-13 15:50:06 +08:00
parent 26aa074a9e
commit d6e5504c8f
4 changed files with 4 additions and 4 deletions

View File

@ -69,7 +69,7 @@ router.beforeEach(async (to, from, next) => {
tool.data.set("MENU", response.data.menu)
tool.data.set("userinfo", response.data.user)
tool.data.set("PERMISSIONS", response.data.permissions)
tool.data.set("DASHBOARDGRID", response.data.dashboardGrid)
tool.data.set("dashboardgrid", response.data.dashboardGrid)
var menu = router.sc_getMenu();
var menuRouter = filterAsyncRouter(menu)
menuRouter = flatAsyncRoutes(menuRouter)

View File

@ -133,7 +133,7 @@
return allCompsList
},
myCompsList(){
var myGrid = this.$tool.data.get("DASHBOARDGRID")
var myGrid = this.$tool.data.get("dashboardgrid")
return this.allCompsList.filter(item => !item.disabled && myGrid.includes(item.key))
},
nowCompsList(){

View File

@ -98,7 +98,7 @@
this.$tool.data.set("MENU", menu.data.menu)
this.$tool.data.set("userinfo", menu.data.user)
this.$tool.data.set("PERMISSIONS", menu.data.permissions)
this.$tool.data.set("DASHBOARDGRID", menu.data.dashboardGrid)
this.$tool.data.set("dashboardgrid", menu.data.dashboardGrid)
}else{
this.islogin = false
this.$message.warning(menu.message)

View File

@ -110,7 +110,7 @@
this.$tool.data.remove("userinfo")
this.$tool.data.remove("MENU")
this.$tool.data.remove("PERMISSIONS")
this.$tool.data.remove("DASHBOARDGRID")
this.$tool.data.remove("dashboardgrid")
this.$tool.data.remove("grid")
this.$store.commit("clearViewTags")
this.$store.commit("clearKeepLive")