module-menu-vue 0.0.79 → 0.0.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "module-menu-vue",
3
- "version": "0.0.79",
3
+ "version": "0.0.81",
4
4
  "description": "城市大数据平台菜单--Vue版",
5
5
  "main": "/index.js",
6
6
  "scripts": {
@@ -81,7 +81,8 @@ export default {
81
81
  menuListInit: menuListInit,
82
82
  sysNameMap: sysNameMap,
83
83
  showCollapse: true,
84
- isExist: false
84
+ isExist: false,
85
+ systemPath: ''
85
86
  }
86
87
  },
87
88
  created () {
@@ -103,7 +104,7 @@ export default {
103
104
  },
104
105
  toHref () {
105
106
  if (this.sysName === 'admin' && this.stash !== "integration") {
106
- location.href = '/#/admin/user/index'
107
+ location.href = `/#${this.systemPath}`
107
108
  }
108
109
  },
109
110
  async getSessionMenu () {
@@ -141,6 +142,9 @@ export default {
141
142
  this.sessionMenu = [...menuObj.content]
142
143
  // 判断是否展示 政务共享平台 菜单(烟台需求)
143
144
  this.isExist = this.sessionMenu.some(obj => {
145
+ if (obj.name === '权限管理' && obj.children.length > 0) {
146
+ this.systemPath = obj.children[0].path
147
+ }
144
148
  return obj.path === '/exchange'
145
149
  })
146
150
  }
@@ -202,7 +206,7 @@ export default {
202
206
  thirdPartyServiceJumpPath = "/datasecurity/";
203
207
  break;
204
208
  case "目录管理":
205
- thirdPartyServiceJumpPath = "/admin-ui/catalog/menuClassify/list";
209
+ thirdPartyServiceJumpPath = "/admin-ui/catalog";
206
210
  break;
207
211
  case "资源管理":
208
212
  thirdPartyServiceJumpPath = "/admin-ui/resource/tableResource/list";
@@ -99,7 +99,16 @@ export default {
99
99
  console.error('getSysUrl 接口异常: ', e)
100
100
  })
101
101
  } else {
102
- location.href = '/#/admin/user/index'
102
+ const menuObj = JSON.parse(sessionStorage.getItem('bigdata-menu'));
103
+ let systemPath = ''
104
+ if (menuObj) {
105
+ menuObj.content.forEach(obj => {
106
+ if (obj.name === '权限管理' && obj.children.length > 0) {
107
+ systemPath = obj.children[0].path
108
+ }
109
+ })
110
+ }
111
+ location.href = `/#${systemPath}`
103
112
  }
104
113
  } else if (flag === 'app') {
105
114
  url = '/dataadmin/#/appSystem/index'