module-menu-vue 0.1.0 → 0.1.1

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.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "城市大数据平台菜单--Vue版",
5
5
  "main": "/index.js",
6
6
  "scripts": {
@@ -185,15 +185,14 @@ export default {
185
185
  },
186
186
  // 跳转各个模块
187
187
  async toModulePage (nameStr) {
188
- if (nameStr === '知识图谱') {
189
- window.open('http://192.168.113.246:4001', '_blank')
190
- return
191
- }
192
188
  let thirdPartyServiceJumpPath = ""; // 第三方服务跳转路径
193
189
  switch (nameStr) {
194
190
  case '平台运行总览':
195
- window.open('/dataadmin/#/overview', '_blank');
191
+ thirdPartyServiceJumpPath = '/dataadmin/#/overview'
196
192
  return;
193
+ case '知识图谱':
194
+ thirdPartyServiceJumpPath = 'http://192.168.113.235:8088'
195
+ break;
197
196
  case '数据可视化':
198
197
  thirdPartyServiceJumpPath = await this.getUrl('dataview')
199
198
  break;
@@ -257,7 +256,11 @@ export default {
257
256
  default:
258
257
  break;
259
258
  }
260
- location.href = thirdPartyServiceJumpPath
259
+ if (['平台运行总览', '知识图谱', '数据可视化', '数据填报'].includes(nameStr)) {
260
+ window.open(thirdPartyServiceJumpPath, '_blank')
261
+ } else {
262
+ location.href = thirdPartyServiceJumpPath
263
+ }
261
264
  },
262
265
  // 跳转首页
263
266
  toHomePage (index) {