module-menu-vue 0.0.58 → 0.0.60

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.58",
3
+ "version": "0.0.60",
4
4
  "description": "城市大数据平台菜单--Vue版",
5
5
  "main": "/index.js",
6
6
  "scripts": {
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1706754879161" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4232" width="16" height="16" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M511.8 155.1l313.9 126.7-314.9 128.1-313.9-126.7 314.9-128.1m0-86.2c-3.7 0-7.3 0.7-10.8 2.1L49.8 254.6c-25.2 10.2-25.2 47.3-0.1 57.5L500.2 494c3.4 1.4 7 2.1 10.7 2.1 3.7 0 7.3-0.7 10.8-2.1l451.2-183.6c25.2-10.2 25.2-47.3 0.1-57.5L522.4 71c-3.4-1.4-7-2.1-10.6-2.1z" p-id="4233" fill="#515151"></path><path d="M510.5 715.7c-8.6 0-17.3-1.7-25.5-5L54.3 536.9c-21-8.5-31.1-32.3-22.6-53.3S64.1 452.5 85 461l425.6 171.8 426.3-173.4c20.9-8.6 44.8 1.5 53.4 22.5 8.5 21-1.5 44.9-22.5 53.4L536.3 710.7c-8.3 3.3-17 5-25.8 5z" p-id="4234" fill="#515151"></path><path d="M512.7 955.1c-8.7 0-17.3-1.7-25.5-5L56.4 776.2c-21-8.5-31.1-32.3-22.6-53.3s32.4-31.1 53.3-22.7L512.7 872 939 698.6c20.9-8.5 44.8 1.5 53.4 22.5 8.5 21-1.6 44.8-22.5 53.4L538.4 950c-8.2 3.4-17 5.1-25.7 5.1z" p-id="4235" fill="#515151"></path></svg>
@@ -123,15 +123,7 @@ export default {
123
123
  let logoAndTitle = { logoSrc: "", title: "" };
124
124
  if (sysInfo) {
125
125
  logoAndTitle.logoSrc = sysInfo.logoSrc;
126
- if (this.sysName === 'admin') {
127
- if (this.stash === "integration") {
128
- // logoAndTitle.title = location.href.indexOf('/appSystem/index') !== -1 ? '应用系统管理' : '数据源管理'
129
- } else {
130
- logoAndTitle.title = sysInfo.title;
131
- }
132
- } else {
133
- logoAndTitle.title = sysInfo.title;
134
- }
126
+ logoAndTitle.title = sysInfo.title;
135
127
  }
136
128
  return logoAndTitle;
137
129
  },
@@ -177,7 +177,7 @@ export const sysNameMap = [
177
177
  },
178
178
  {
179
179
  sysName: 'admin',
180
- title: token ? '' : '系统管理',
180
+ title: token ? '应用系统配置' : '系统管理',
181
181
  logoSrc: require('../../assets/admin_logo.svg'),
182
182
  },
183
183
  // {
@@ -40,7 +40,7 @@
40
40
  color: #4091f7;
41
41
  }
42
42
  .childMenu {
43
- width: 27%;
43
+ width: 30%;
44
44
  display: inline-block;
45
45
  font-size: 14px;
46
46
  }
@@ -15,6 +15,10 @@
15
15
  <img :src="SystemManageSrc" alt="" class="menuItem" />
16
16
  <span>系统管理</span>
17
17
  </el-dropdown-item>
18
+ <el-dropdown-item v-show="isShowApp" command="app">
19
+ <img :src="appSystemSrc" alt="" class="menuItem" />
20
+ <span>应用系统配置</span>
21
+ </el-dropdown-item>
18
22
  <el-dropdown-item command="logout">
19
23
  <img :src="LogoutSrc" alt="" class="menuItem" />
20
24
  <span>退出登录</span>
@@ -36,6 +40,7 @@ export default {
36
40
  PersonalCenterSrc: userMenuIcon.PersonalCenterSrc,
37
41
  MessageCenterSrc: userMenuIcon.MessageCenterSrc,
38
42
  SystemManageSrc: userMenuIcon.SystemManageSrc,
43
+ appSystemSrc: userMenuIcon.appSystemSrc,
39
44
  LogoutSrc: userMenuIcon.LogoutSrc,
40
45
  }
41
46
  },
@@ -43,7 +48,10 @@ export default {
43
48
  // 是否显示系统管理菜单项
44
49
  isShowSys () {
45
50
  return this.stash === "integration" ? true : this.sysName !== 'admin' && this.isHaveSystemManagementPermission
46
- }
51
+ },
52
+ isShowApp() {
53
+ return this.stash === 'integration' ? true : false
54
+ },
47
55
  },
48
56
  props: {
49
57
  sysName: {
@@ -64,6 +72,9 @@ export default {
64
72
  } else if (flag === 'systerm') {
65
73
  url = this.stash === "integration" ? '/admin-ui/bpm/manager/user-group' : '/#/admin/user/index'
66
74
  location.href = url;
75
+ } else if (flag === 'app') {
76
+ url = '/dataadmin/#/appSystem/index'
77
+ location.href = url;
67
78
  } else if (flag === 'logout') {
68
79
  this.logoutFunc()
69
80
  }
@@ -99,10 +110,11 @@ export default {
99
110
  <style scoped>
100
111
  .menuItem {
101
112
  margin-right: 10px;
102
- margin-top: -3px;
113
+ margin-top: 10px;
114
+ vertical-align: sub;
103
115
  }
104
116
  .el-dropdown-menu{
105
- width: 135px;
117
+ width: 145px;
106
118
  height: auto;
107
119
  padding: 3px 0;
108
120
  }
@@ -3,6 +3,7 @@ export const userMenuIcon = {
3
3
  PersonalCenterSrc:require('../../assets/personalCenter.svg'),
4
4
  MessageCenterSrc:require('../../assets/messageCenter.svg'),
5
5
  SystemManageSrc:require('../../assets/systemManage.svg'),
6
+ appSystemSrc:require('../../assets/appSystem.svg'),
6
7
  LogoutSrc:require('../../assets/logout.png'),
7
8
  }
8
9
  export const PersonalCenterSrc = require('../../assets/personalCenter.svg');
@@ -1,7 +1,7 @@
1
1
  import axios from 'axios';
2
2
  import getStore from './userInfo';
3
3
  import { checkToken } from './permessionUtils';
4
- let tokenValue = '39e212bf726b439180dadb352a57a8c9';
4
+ let tokenValue = 'c184d664eaff40928b80b70f67600780';
5
5
  axios.interceptors.response.use(
6
6
  (response) => {
7
7
  if (response.status === 200) {