module-menu-vue 0.3.30 → 0.3.32

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.30",
3
+ "version": "0.3.32",
4
4
  "description": "城市大数据平台菜单--Vue版",
5
5
  "main": "/index.js",
6
6
  "scripts": {
@@ -61,6 +61,10 @@ export default {
61
61
  stash: {
62
62
  type: String,
63
63
  default: ''
64
+ },
65
+ xiangtan: {
66
+ type: Boolean,
67
+ default: false,
64
68
  }
65
69
  },
66
70
  watch: {
@@ -115,7 +119,11 @@ export default {
115
119
  } else if (!["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
116
120
  url = `/#${this.systemPath}`
117
121
  }
118
- location.href = url
122
+ if (this.xiangtan) {
123
+ window.open(url, '_blank')
124
+ } else {
125
+ location.href = url
126
+ }
119
127
  }
120
128
  },
121
129
  async getSessionMenu () {
@@ -288,6 +296,8 @@ export default {
288
296
  }
289
297
  if (['平台运行总览', '知识图谱', '数据可视化', '数据填报', '标签分析', '数据直报', '机器学习组件'].includes(nameStr)) {
290
298
  window.open(thirdPartyServiceJumpPath, '_blank')
299
+ } else if (this.xiangtan) {
300
+ window.open(thirdPartyServiceJumpPath, '_blank')
291
301
  } else {
292
302
  location.href = thirdPartyServiceJumpPath
293
303
  }
@@ -305,7 +315,11 @@ export default {
305
315
  } else {
306
316
  url = '/#/index'
307
317
  }
308
- location.href = url
318
+ if (this.xiangtan) {
319
+ window.open(url, '_blank')
320
+ } else {
321
+ location.href = url
322
+ }
309
323
  }
310
324
  },
311
325
  getNewMenuList () {
@@ -9,7 +9,7 @@
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', 'HBJK'].includes(stash) ? '用户中心' : '个人中心'}}</span>
12
+ <span>{{["integration", 'LNRD', 'HBJK'].includes(stash) || xiangtan ? '用户中心' : '个人中心'}}</span>
13
13
  </el-dropdown-item>
14
14
  <el-dropdown-item v-show="isShowSys" command="systerm">
15
15
  <img :src="SystemManageSrc" alt="" class="menuItem" />
@@ -84,7 +84,11 @@ export default {
84
84
  PZCS: {
85
85
  type: Boolean,
86
86
  default: false,
87
- }
87
+ },
88
+ xiangtan: {
89
+ type: Boolean,
90
+ default: false,
91
+ },
88
92
  },
89
93
  created() {
90
94
  if (["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
@@ -158,7 +162,7 @@ export default {
158
162
  if (flag === 'single') {
159
163
  if (this.isBigDataFoundationPlatform) {
160
164
  url = '/admin-ui/user/profile'
161
- } else if (["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
165
+ } else if (["integration", 'LNRD', 'HBJK'].includes(this.stash) || this.xiangtan) {
162
166
  url = '/admin-ui/data-share-portal/personal/info'
163
167
  } else if (this.stash === "GZW") {
164
168
  url = '/data-platform/#/info/index'