n20-common-lib 2.7.0-beta.19 → 2.7.0-beta.20

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": "n20-common-lib",
3
- "version": "2.7.0-beta.19",
3
+ "version": "2.7.0-beta.20",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -117,4 +117,4 @@
117
117
  "last 2 versions",
118
118
  "not dead"
119
119
  ]
120
- }
120
+ }
@@ -306,6 +306,11 @@ $--header-color: #3d4a57;
306
306
  width: 992px;
307
307
  }
308
308
 
309
+ &_drawer_layout {
310
+ display: flex;
311
+ flex-wrap: wrap;
312
+ }
313
+
309
314
  &-system-item {
310
315
  flex: 0 0 33.33%;
311
316
  padding-top: 32px;
@@ -513,7 +513,6 @@ export default {
513
513
  methods: {
514
514
  async handleChangeSystem() {
515
515
  let menuTree = JSON.parse(sessionStorage.getItem('allMenuTree'))
516
- console.log(menuTree)
517
516
  this.setMenuData(menuTree)
518
517
  },
519
518
  setMenuData(menuTree) {
@@ -533,26 +532,13 @@ export default {
533
532
 
534
533
  system.icon = icon
535
534
  system.menuTree = menuTree?.filter(
536
- (menu) => menu.systemNo === system.NO && menu.isBackmenu === '0' && menu.children?.length > 0
535
+ (menu) =>
536
+ menu.systemNo === system.NO &&
537
+ menu.isBackmenu === '0' &&
538
+ (!menu.children || (menu.children && menu.children?.length > 0))
537
539
  )
538
- // .map((menu) => ({
539
- // ...menu,
540
- // icon:
541
- // {
542
- // CSZHYW: '#n20-icon-zhcsyw',
543
- // CSYWGL: '#n20-icon-bianzu',
544
- // CSFZJC: '#n20-icon-a-bianzu70',
545
- // CSWY: '#n20-icon-a-bianzu69',
546
- // JTZL: '#n20-icon-a-bianzu3',
547
- // JRWG: '#n20-icon-a-bianzu1',
548
- // JTSKYWGK: '#n20-icon-a-bianzu701',
549
- // JTSKSJFX: '#n20-icon-a-bianzu2'
550
- // }[menu.NO] || ''
551
- // }))
552
- console.log(system)
553
540
  return system
554
541
  }).filter((item) => item.menuTree?.length > 0)
555
- console.log(this.headerSystem)
556
542
  } catch (error) {
557
543
  console.log(error)
558
544
  }
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="pointer menu">
3
- <div class="flex-box flex-wrap menu_drawer_box">
3
+ <div class="menu_drawer_layout menu_drawer_box">
4
4
  <div v-for="(item, i) in menus" :key="i" class="menu-system-item">
5
5
  <div class="flex-box flex-v" @click="clickSystem(item)">
6
6
  <svg
@@ -11,7 +11,7 @@
11
11
  </svg>
12
12
  <span class="m-l-s menu-system-item_title">{{ item.NAME }}</span>
13
13
  </div>
14
- <div v-if="item.menuTree.length" class="flex-box flex-wrap menu-system-child">
14
+ <div v-if="item.menuTree.length" class="menu_drawer_layout menu-system-child">
15
15
  <div
16
16
  v-for="(row, i) in item.menuTree"
17
17
  :key="i"