module-menu-vue 0.3.28 → 0.3.30

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.3.28",
3
+ "version": "0.3.30",
4
4
  "description": "城市大数据平台菜单--Vue版",
5
5
  "main": "/index.js",
6
6
  "scripts": {
@@ -350,7 +350,7 @@ export const sysNameMap = [
350
350
  },
351
351
  {
352
352
  sysName: 'admin',
353
- title: token ? '应用系统配置' : '系统管理',
353
+ title: token ? '数据源管理' : '系统管理',
354
354
  logoSrc: require('../../assets/admin_logo.svg'),
355
355
  },
356
356
  // {
@@ -569,7 +569,7 @@ export const lnrdSysNameMap = [
569
569
  },
570
570
  {
571
571
  sysName: 'admin',
572
- title: token ? '应用系统配置' : '系统管理',
572
+ title: token ? '数据源管理' : '系统管理',
573
573
  logoSrc: require('../../assets/LNRD_sys_img/xitongguanli_sys.png'),
574
574
  },
575
575
  // {
@@ -17,7 +17,7 @@
17
17
  </el-dropdown-item>
18
18
  <el-dropdown-item v-show="isShowAppFinal" command="app">
19
19
  <img :src="appSystemSrc" alt="" class="menuItem" />
20
- <span>应用系统配置</span>
20
+ <span>数据源管理</span>
21
21
  </el-dropdown-item>
22
22
  <el-dropdown-item command="logout">
23
23
  <img :src="LogoutSrc" alt="" class="menuItem" />
@@ -31,7 +31,7 @@
31
31
  import Axios from '../Util/axios.js'
32
32
  import { userMenuIcon } from './constant.js'
33
33
  import { getUserName, getIsHaveSystemManagementPermissionFlag } from './../Util/userInfo.js'
34
- import { integrationLogout, getSysUrl } from './service.js'
34
+ import { integrationLogout, getSysUrl, getStandardSysUrl } from './service.js'
35
35
  import { getLoginUrl } from '../Util/permessionUtils.js';
36
36
  import {getMenuList, getAuthListMenus} from '../Menu/service.js'
37
37
 
@@ -133,7 +133,7 @@ export default {
133
133
  const rsp = await getMenuList()
134
134
  const menuList = rsp.data.data[0].routes || []
135
135
  console.log("menuList===", menuList)
136
- this.isShowAppIntegration = this.hasMenu(menuList, 7500, '应用系统配置')
136
+ this.isShowAppIntegration = this.hasMenu(menuList, 7500, '数据源管理')
137
137
  } catch (e) {
138
138
  console.error('获取用户菜单失败:', e)
139
139
  this.isShowAppIntegration = false
@@ -180,7 +180,15 @@ export default {
180
180
  console.error('getSysUrl 接口异常: ', e)
181
181
  })
182
182
  } else if (this.stash === 'integration'){
183
- location.href = '/admin-ui/system/menu'
183
+ // 查询 标准版系统管理 需要跳转的页面
184
+ getStandardSysUrl().then(rsp => {
185
+ const data = rsp.data.data
186
+ if (data) {
187
+ location.href = '/admin-ui' + data.path
188
+ }
189
+ }).catch(e => {
190
+ console.error('getSysUrl 接口异常: ', e)
191
+ })
184
192
  } else {
185
193
  const menuObj = JSON.parse(sessionStorage.getItem('bigdata-menu'));
186
194
  let systemPath = ''
@@ -12,3 +12,10 @@ export const getSysUrl = () => {
12
12
  method: 'get'
13
13
  })
14
14
  }
15
+
16
+ // 获取标准版到要跳转的系统管理路径
17
+ export const getStandardSysUrl = () => {
18
+ return request('/admin-api/system/auth/systemPage', {
19
+ method: 'get'
20
+ })
21
+ }