module-menu-vue 0.1.9 → 0.2.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.9",
3
+ "version": "0.2.1",
4
4
  "description": "城市大数据平台菜单--Vue版",
5
5
  "main": "/index.js",
6
6
  "scripts": {
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -44,7 +44,7 @@
44
44
  </template>
45
45
 
46
46
  <script>
47
- import { menuList as menuListInit, menuList_PANWEI, menuIconSrc, sysNameMap, lnrdMenuList, lnrdSysNameMap } from './constant.js'
47
+ import { menuList as menuListInit, menuList_PANWEI, menuIconSrc, sysNameMap, lnrdMenuList, lnrdSysNameMap, menuList_HBJK} from './constant.js'
48
48
  import './menu.css'
49
49
  import { getMenuList, isLogoutThird, getInfoByName, getUrlByInfo } from './service.js'
50
50
  export default {
@@ -191,7 +191,7 @@ export default {
191
191
  thirdPartyServiceJumpPath = '/dataadmin/#/overview'
192
192
  return;
193
193
  case '知识图谱':
194
- thirdPartyServiceJumpPath = 'http://192.168.113.235:8088'
194
+ thirdPartyServiceJumpPath = await this.getUrl('knowledge')
195
195
  break;
196
196
  case '数据可视化':
197
197
  thirdPartyServiceJumpPath = await this.getUrl('dataview')
@@ -256,6 +256,9 @@ export default {
256
256
  default:
257
257
  break;
258
258
  }
259
+ if (['公共卫生监测人口库', '电子传染病档案库', '应急资源库', '传染病防控知识库', '主题库'].includes(nameStr)) {
260
+ console.log(nameStr)
261
+ }
259
262
  if (['平台运行总览', '知识图谱', '数据可视化', '数据填报'].includes(nameStr)) {
260
263
  window.open(thirdPartyServiceJumpPath, '_blank')
261
264
  } else {
@@ -296,6 +299,9 @@ export default {
296
299
  }
297
300
  }
298
301
  }
302
+ if (this.stash === 'HBJK') {
303
+ newMenuList = [...newMenuList, ...menuList_HBJK]
304
+ }
299
305
  this.menuList = [...newMenuList];
300
306
  },
301
307
  }
@@ -208,6 +208,38 @@ export const menuList_PANWEI = [{
208
208
  ]
209
209
  }];
210
210
 
211
+ export const menuList_HBJK = [{
212
+ name: '数据资源中心',
213
+ url: require('../../assets/sjzyzx.png'),
214
+ children: [
215
+ {
216
+ childName: '公共卫生监测人口库',
217
+ path: '/datamanage',
218
+ url:require('../../assets/ggws.png'),
219
+ },
220
+ {
221
+ childName: '电子传染病档案库',
222
+ path: '/datamanage',
223
+ url:require('../../assets/dzcrb.png'),
224
+ },
225
+ {
226
+ childName: '应急资源库',
227
+ path: '/datamanage',
228
+ url:require('../../assets/yjzyk.png'),
229
+ },
230
+ {
231
+ childName: '传染病防控知识库',
232
+ path: '/datamanage',
233
+ url:require('../../assets/crbd.png'),
234
+ },
235
+ {
236
+ childName: '主题库',
237
+ path: '/datamanage',
238
+ url:require('../../assets/ztk.png'),
239
+ },
240
+ ]
241
+ }]
242
+
211
243
  export const menuIconSrc = require('../../assets/menuIcon.svg');
212
244
 
213
245
  // 左上角各项目图标和名称 数组
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <el-dropdown @command="handleCommand" :style="{color: color, marginRight: '30px'}">
3
- <span class="el-dropdown-link" :style="{color: color1}">
4
- {{tenantName}}<i class="el-icon-arrow-down el-icon--right" :style="{color: color1, 'important': true }"></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>
@@ -21,12 +21,12 @@ export default {
21
21
  props: {
22
22
  color: {
23
23
  type: String,
24
- default: '#ffffff'
24
+ default: '#606266'
25
25
  },
26
- color1: {
26
+ stash: {
27
27
  type: String,
28
- default: '#606368'
29
- },
28
+ default: ''
29
+ }
30
30
  },
31
31
  created () {
32
32
  // 每次都获取最新的租户列表
@@ -67,7 +67,7 @@ export default {
67
67
  }
68
68
  </script>
69
69
  <style scoped>
70
- /deep/.el-input__inner{
70
+ ::v-deep .el-input__inner{
71
71
  height: 35px;
72
72
  line-height: 30px;
73
73
  }
@@ -4,7 +4,7 @@
4
4
  <span class="el-dropdown-link">
5
5
  <img src="../../assets/userLogo.svg" style="vertical-align:middle;padding-right:10px"/>
6
6
  <span :style="{color: stash === 'LNRD' || stash === 'HBJK' ? '#fff' : '#000000d9'}">{{getName()}}</span>
7
- <i :style="{color: stash === 'LNRD' || stash === 'HBJK' ? '#fff' : '#000000d9'}" class="el-icon-arrow-down el-icon--right"></i>
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">