dashboardgrid
This commit is contained in:
parent
26aa074a9e
commit
d6e5504c8f
@ -69,7 +69,7 @@ router.beforeEach(async (to, from, next) => {
|
|||||||
tool.data.set("MENU", response.data.menu)
|
tool.data.set("MENU", response.data.menu)
|
||||||
tool.data.set("userinfo", response.data.user)
|
tool.data.set("userinfo", response.data.user)
|
||||||
tool.data.set("PERMISSIONS", response.data.permissions)
|
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 menu = router.sc_getMenu();
|
||||||
var menuRouter = filterAsyncRouter(menu)
|
var menuRouter = filterAsyncRouter(menu)
|
||||||
menuRouter = flatAsyncRoutes(menuRouter)
|
menuRouter = flatAsyncRoutes(menuRouter)
|
||||||
|
@ -133,7 +133,7 @@
|
|||||||
return allCompsList
|
return allCompsList
|
||||||
},
|
},
|
||||||
myCompsList(){
|
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))
|
return this.allCompsList.filter(item => !item.disabled && myGrid.includes(item.key))
|
||||||
},
|
},
|
||||||
nowCompsList(){
|
nowCompsList(){
|
||||||
|
@ -98,7 +98,7 @@
|
|||||||
this.$tool.data.set("MENU", menu.data.menu)
|
this.$tool.data.set("MENU", menu.data.menu)
|
||||||
this.$tool.data.set("userinfo", menu.data.user)
|
this.$tool.data.set("userinfo", menu.data.user)
|
||||||
this.$tool.data.set("PERMISSIONS", menu.data.permissions)
|
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{
|
}else{
|
||||||
this.islogin = false
|
this.islogin = false
|
||||||
this.$message.warning(menu.message)
|
this.$message.warning(menu.message)
|
||||||
|
@ -110,7 +110,7 @@
|
|||||||
this.$tool.data.remove("userinfo")
|
this.$tool.data.remove("userinfo")
|
||||||
this.$tool.data.remove("MENU")
|
this.$tool.data.remove("MENU")
|
||||||
this.$tool.data.remove("PERMISSIONS")
|
this.$tool.data.remove("PERMISSIONS")
|
||||||
this.$tool.data.remove("DASHBOARDGRID")
|
this.$tool.data.remove("dashboardgrid")
|
||||||
this.$tool.data.remove("grid")
|
this.$tool.data.remove("grid")
|
||||||
this.$store.commit("clearViewTags")
|
this.$store.commit("clearViewTags")
|
||||||
this.$store.commit("clearKeepLive")
|
this.$store.commit("clearKeepLive")
|
||||||
|
Loading…
Reference in New Issue
Block a user