module-menu-vue 0.0.59 → 0.0.61
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
|
@@ -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>
|
|
@@ -100,6 +100,9 @@ export default {
|
|
|
100
100
|
const routesList = rspData[0].routes
|
|
101
101
|
if (rsp.data.data) {
|
|
102
102
|
const pathList = routesList.map(item => {
|
|
103
|
+
if (item.path.indexOf('appSystem') !== -1) {
|
|
104
|
+
localStorage.setItem('isShowApp', true)
|
|
105
|
+
}
|
|
103
106
|
return {
|
|
104
107
|
...item,
|
|
105
108
|
path: item.path.indexOf('/') === -1 ? '/' + item.path : item.path
|
|
@@ -123,15 +126,7 @@ export default {
|
|
|
123
126
|
let logoAndTitle = { logoSrc: "", title: "" };
|
|
124
127
|
if (sysInfo) {
|
|
125
128
|
logoAndTitle.logoSrc = sysInfo.logoSrc;
|
|
126
|
-
|
|
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
|
-
}
|
|
129
|
+
logoAndTitle.title = sysInfo.title;
|
|
135
130
|
}
|
|
136
131
|
return logoAndTitle;
|
|
137
132
|
},
|
|
@@ -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,11 @@ export default {
|
|
|
43
48
|
// 是否显示系统管理菜单项
|
|
44
49
|
isShowSys () {
|
|
45
50
|
return this.stash === "integration" ? true : this.sysName !== 'admin' && this.isHaveSystemManagementPermission
|
|
46
|
-
}
|
|
51
|
+
},
|
|
52
|
+
isShowApp() {
|
|
53
|
+
const flag = localStorage.getItem('isShowApp') === 'true'
|
|
54
|
+
return this.stash === 'integration' ? flag : false
|
|
55
|
+
},
|
|
47
56
|
},
|
|
48
57
|
props: {
|
|
49
58
|
sysName: {
|
|
@@ -64,6 +73,9 @@ export default {
|
|
|
64
73
|
} else if (flag === 'systerm') {
|
|
65
74
|
url = this.stash === "integration" ? '/admin-ui/bpm/manager/user-group' : '/#/admin/user/index'
|
|
66
75
|
location.href = url;
|
|
76
|
+
} else if (flag === 'app') {
|
|
77
|
+
url = '/dataadmin/#/appSystem/index'
|
|
78
|
+
location.href = url;
|
|
67
79
|
} else if (flag === 'logout') {
|
|
68
80
|
this.logoutFunc()
|
|
69
81
|
}
|
|
@@ -99,10 +111,11 @@ export default {
|
|
|
99
111
|
<style scoped>
|
|
100
112
|
.menuItem {
|
|
101
113
|
margin-right: 10px;
|
|
102
|
-
margin-top:
|
|
114
|
+
margin-top: 10px;
|
|
115
|
+
vertical-align: sub;
|
|
103
116
|
}
|
|
104
117
|
.el-dropdown-menu{
|
|
105
|
-
width:
|
|
118
|
+
width: 145px;
|
|
106
119
|
height: auto;
|
|
107
120
|
padding: 3px 0;
|
|
108
121
|
}
|
|
@@ -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 = '
|
|
4
|
+
let tokenValue = 'be1f9416ecb34c8492944618834514c2';
|
|
5
5
|
axios.interceptors.response.use(
|
|
6
6
|
(response) => {
|
|
7
7
|
if (response.status === 200) {
|