module-menu-vue 0.1.3 → 0.1.5
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,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
2
|
+
<div :style = "{ background: stash === 'HBJK' ? '#1890ff' : '#fff' }">
|
|
3
3
|
<div class='menuPopupAndTitle' :style="{height: stash === 'LNRD' ? '75px': 'auto'}">
|
|
4
4
|
<div class='menuIcon' :style="{background: stash === 'LNRD' ? '#EA1A1A' : '#4091f7',height: stash === 'LNRD' ? '75px' : '50px', width: stash === 'LNRD' ? '75px' : '60px'}" @mouseenter="showMenuList = true" @mouseleave="showMenuList = false">
|
|
5
5
|
<img class="menuIcon_img" :src="menuIconSrc" :style="{verticalAlign: stash === 'LNRD' ? 'bottom': 'middle'}"/>
|
|
6
6
|
</div>
|
|
7
|
-
<div :class="'menu_title_content'" v-show="showCollapse" @click="toHref()" :style="{lineHeight: stash === 'LNRD' ? '53px' : '49px'}">
|
|
8
|
-
<img class="menu_title_content_img" :src="getLogoAndTitle().logoSrc" alt="logo" :style="{verticalAlign: stash === 'LNRD' ? 'bottom': 'middle'}"/>
|
|
9
|
-
<span class='menu_title' :style="{color: stash === 'LNRD' ? '#fff' : '#1890ff',verticalAlign: stash === 'LNRD' ? 'bottom': 'middle'}">{{getLogoAndTitle().title}}</span>
|
|
7
|
+
<div :class="'menu_title_content'" v-show="showCollapse" @click="toHref()" :style="{lineHeight: stash === 'LNRD' ? '53px' : '49px' }">
|
|
8
|
+
<img v-if="stash !== 'HBJK'" class="menu_title_content_img" :src="getLogoAndTitle().logoSrc" alt="logo" :style="{verticalAlign: stash === 'LNRD' ? 'bottom': 'middle'}"/>
|
|
9
|
+
<span class='menu_title' :style="{color: stash === 'LNRD' || stash === 'HBJK'? '#fff' : '#1890ff',verticalAlign: stash === 'LNRD' ? 'bottom': 'middle'}">{{getLogoAndTitle().title}}</span>
|
|
10
10
|
</div>
|
|
11
11
|
</div>
|
|
12
12
|
<div class='menu_list_content' :style="{ display: showMenuList ? 'block' : 'none', top: stash === 'LNRD' ? '75px' : '50px'}" @mouseenter="showMenuList = true" @mouseleave="showMenuList = false">
|
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
},
|
|
91
91
|
created () {
|
|
92
92
|
this.getSessionMenu();
|
|
93
|
-
if (!["integration", 'LNRD'].includes(this.stash)) {
|
|
93
|
+
if (!["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
|
|
94
94
|
this.getNewMenuList();
|
|
95
95
|
}
|
|
96
96
|
},
|
|
@@ -112,7 +112,7 @@ export default {
|
|
|
112
112
|
url = `/data-platform/#${this.systemPath}`
|
|
113
113
|
} else if (this.stash === 'PANWEI') {
|
|
114
114
|
url = `/bigdata-portal/#${this.systemPath}`
|
|
115
|
-
} else if (!["integration", 'LNRD'].includes(this.stash)) {
|
|
115
|
+
} else if (!["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
|
|
116
116
|
url = `/#${this.systemPath}`
|
|
117
117
|
}
|
|
118
118
|
location.href = url
|
|
@@ -120,7 +120,7 @@ export default {
|
|
|
120
120
|
},
|
|
121
121
|
async getSessionMenu () {
|
|
122
122
|
// 一体化
|
|
123
|
-
if (["integration", 'LNRD'].includes(this.stash)) {
|
|
123
|
+
if (["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
|
|
124
124
|
const rsp = await getMenuList()
|
|
125
125
|
const rspData = rsp.data.data
|
|
126
126
|
if (rspData && rspData.length > 0) {
|
|
@@ -191,7 +191,7 @@ export default {
|
|
|
191
191
|
thirdPartyServiceJumpPath = '/dataadmin/#/overview'
|
|
192
192
|
return;
|
|
193
193
|
case '知识图谱':
|
|
194
|
-
thirdPartyServiceJumpPath =
|
|
194
|
+
thirdPartyServiceJumpPath = 'http://192.168.113.235:8088'
|
|
195
195
|
break;
|
|
196
196
|
case '数据可视化':
|
|
197
197
|
thirdPartyServiceJumpPath = await this.getUrl('dataview')
|
|
@@ -256,7 +256,7 @@ export default {
|
|
|
256
256
|
default:
|
|
257
257
|
break;
|
|
258
258
|
}
|
|
259
|
-
if (['平台运行总览', '知识图谱', '数据可视化', '数据填报'
|
|
259
|
+
if (['平台运行总览', '知识图谱', '数据可视化', '数据填报'].includes(nameStr)) {
|
|
260
260
|
window.open(thirdPartyServiceJumpPath, '_blank')
|
|
261
261
|
} else {
|
|
262
262
|
location.href = thirdPartyServiceJumpPath
|
|
@@ -266,7 +266,7 @@ export default {
|
|
|
266
266
|
toHomePage (index) {
|
|
267
267
|
if (index === 0) {
|
|
268
268
|
let url = ''
|
|
269
|
-
if (["integration", 'LNRD'].includes(this.stash)) {
|
|
269
|
+
if (["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
|
|
270
270
|
url = '/dataadmin/#/index'
|
|
271
271
|
} else if (this.stash === "GZW") {
|
|
272
272
|
url = '/data-platform/#/index'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-dropdown @command="handleCommand" :style="{color: color, marginRight: '30px'}">
|
|
3
|
-
<span class="el-dropdown-link">
|
|
4
|
-
{{tenantName}}<i class="el-icon-arrow-down el-icon--right"></i>
|
|
3
|
+
<span class="el-dropdown-link" :style="{color: stash === 'HBJK' ? '#ffffff' : '#646669'}">
|
|
4
|
+
{{tenantName}}<i class="el-icon-arrow-down el-icon--right" :style="{color: stash === 'HBJK' ? '#ffffff' : '#646669'}"></i>
|
|
5
5
|
</span>
|
|
6
6
|
<el-dropdown-menu slot="dropdown">
|
|
7
7
|
<el-dropdown-item :command="item.id" v-for="item in options" :key="item.value">{{item.name}}</el-dropdown-item>
|
|
@@ -22,7 +22,11 @@ export default {
|
|
|
22
22
|
color: {
|
|
23
23
|
type: String,
|
|
24
24
|
default: '#606266'
|
|
25
|
-
}
|
|
25
|
+
},
|
|
26
|
+
stash: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: ''
|
|
29
|
+
|
|
26
30
|
},
|
|
27
31
|
created () {
|
|
28
32
|
// 每次都获取最新的租户列表
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
<el-dropdown v-show="getName()" @command="handleClickmenu">
|
|
4
4
|
<span class="el-dropdown-link">
|
|
5
5
|
<img src="../../assets/userLogo.svg" style="vertical-align:middle;padding-right:10px"/>
|
|
6
|
-
<span :style="{color: stash === 'LNRD' ? '#fff' : '#000000d9'}">{{getName()}}</span>
|
|
7
|
-
<i class="el-icon-arrow-down el-icon--right"></i>
|
|
6
|
+
<span :style="{color: stash === 'LNRD' || stash === 'HBJK' ? '#fff' : '#000000d9'}">{{getName()}}</span>
|
|
7
|
+
<i :style="{color: stash === 'HBJK' ? '#fff' : '#000000d9'}" class="el-icon-arrow-down el-icon--right"></i>
|
|
8
8
|
</span>
|
|
9
9
|
<el-dropdown-menu slot="dropdown">
|
|
10
10
|
<el-dropdown-item command="single">
|
|
11
11
|
<img :src="PersonalCenterSrc" alt="" class="menuItem" />
|
|
12
|
-
<span>{{["integration", 'LNRD'].includes(stash) ? '用户中心' : '个人中心'}}</span>
|
|
12
|
+
<span>{{["integration", 'LNRD', 'HBJK'].includes(stash) ? '用户中心' : '个人中心'}}</span>
|
|
13
13
|
</el-dropdown-item>
|
|
14
14
|
<el-dropdown-item v-show="isShowSys" command="systerm">
|
|
15
15
|
<img :src="SystemManageSrc" alt="" class="menuItem" />
|
|
@@ -49,7 +49,7 @@ export default {
|
|
|
49
49
|
computed: {
|
|
50
50
|
// 是否显示系统管理菜单项
|
|
51
51
|
isShowSys () {
|
|
52
|
-
return ["integration", 'LNRD'].includes(this.stash) ? true : this.sysName !== 'admin' && this.isHaveSystemManagementPermission
|
|
52
|
+
return ["integration", 'LNRD', 'HBJK'].includes(this.stash) ? true : this.sysName !== 'admin' && this.isHaveSystemManagementPermission
|
|
53
53
|
},
|
|
54
54
|
},
|
|
55
55
|
props: {
|
|
@@ -63,7 +63,7 @@ export default {
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
created() {
|
|
66
|
-
if (["integration", 'LNRD'].includes(this.stash)) {
|
|
66
|
+
if (["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
|
|
67
67
|
this.isShowAppFunc()
|
|
68
68
|
}
|
|
69
69
|
if (this.stash === 'GZW') {
|
|
@@ -92,7 +92,7 @@ export default {
|
|
|
92
92
|
handleClickmenu (flag){
|
|
93
93
|
let url = ''
|
|
94
94
|
if (flag === 'single') {
|
|
95
|
-
if (["integration", 'LNRD'].includes(this.stash)) {
|
|
95
|
+
if (["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
|
|
96
96
|
url = '/admin-ui/data-share-portal/personal/info'
|
|
97
97
|
} else if (this.stash === "GZW") {
|
|
98
98
|
url = '/data-platform/#/info/index'
|
|
@@ -103,7 +103,7 @@ export default {
|
|
|
103
103
|
}
|
|
104
104
|
location.href = url;
|
|
105
105
|
} else if (flag === 'systerm') {
|
|
106
|
-
if (["integration", 'LNRD'].includes(this.stash)) {
|
|
106
|
+
if (["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
|
|
107
107
|
// 查询 系统管理 需要跳转的页面
|
|
108
108
|
getSysUrl().then(rsp => {
|
|
109
109
|
const data = rsp.data.data
|
|
@@ -144,19 +144,19 @@ export default {
|
|
|
144
144
|
},
|
|
145
145
|
async logoutFunc () {
|
|
146
146
|
console.log('开始调用退出接口...')
|
|
147
|
-
if (["integration", 'LNRD'].includes(this.stash)) {
|
|
147
|
+
if (["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
|
|
148
148
|
await integrationLogout();
|
|
149
149
|
this.logoutUrl()
|
|
150
150
|
} else {
|
|
151
151
|
let url = ''
|
|
152
|
-
if (["integration", 'LNRD'].includes(this.stash)) {
|
|
152
|
+
if (["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
|
|
153
153
|
url = '/admin-ui/system/auth/logout'
|
|
154
154
|
} else if (this.stash === 'GZW') {
|
|
155
155
|
url = '/data-platform/auth/token/logout'
|
|
156
156
|
} else {
|
|
157
157
|
url = '/auth/token/logout'
|
|
158
158
|
}
|
|
159
|
-
const method = ["integration", 'LNRD'].includes(this.stash) ? 'post' : 'delete'
|
|
159
|
+
const method = ["integration", 'LNRD', 'HBJK'].includes(this.stash) ? 'post' : 'delete'
|
|
160
160
|
Axios(url, method).then(() => {
|
|
161
161
|
this.logoutUrl();
|
|
162
162
|
})
|
|
@@ -169,7 +169,7 @@ export default {
|
|
|
169
169
|
localStorage.clear();
|
|
170
170
|
sessionStorage.clear();
|
|
171
171
|
let url = ''
|
|
172
|
-
if (["integration", 'LNRD'].includes(this.stash)) {
|
|
172
|
+
if (["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
|
|
173
173
|
url = '/admin-ui/login'
|
|
174
174
|
} else if (this.stash === 'GZW') {
|
|
175
175
|
url = '/data-platform/#/login'
|