Browse Source

bug 修复

lilei 3 years ago
parent
commit
a75c56d388
2 changed files with 45 additions and 42 deletions
  1. 23 23
      src/config/router.config.js
  2. 22 19
      src/views/bnSetting/menu/adminMenus.vue

+ 23 - 23
src/config/router.config.js

@@ -79,33 +79,33 @@ export const asyncRouterMap = [
                   icon: 'bell'
                 },
                 hidden: true
-              }
+              },
+              // 新品列表
+              {
+                path: '/newProduct/list/:onlineFalg',
+                name: 'newProductList',
+                component: () => import(/* webpackChunkName: "home" */ '@/views/productManagement/newProduct/list'),
+                meta: {
+                  title: '新品信息',
+                  icon: 'home'
+                },
+                hidden: true
+              },
+              // 产品详情
+              {
+                path: '/viewProduct/:sn',
+                name: 'viewProduct',
+                component: () => import(/* webpackChunkName: "home" */ '@/views/productManagement/newProduct/detail'),
+                meta: {
+                  title: '产品详情',
+                  icon: 'home'
+                },
+                hidden: true
+              },
             ]
           }
         ]
       },
-      // 新品列表
-      {
-        path: '/newProduct/list/:onlineFalg',
-        name: 'newProductList',
-        component: () => import(/* webpackChunkName: "home" */ '@/views/productManagement/newProduct/list'),
-        meta: {
-          title: '新品信息',
-          icon: 'home'
-        },
-        hidden: true
-      },
-      // 产品详情
-      {
-        path: '/viewProduct/:sn',
-        name: 'viewProduct',
-        component: () => import(/* webpackChunkName: "home" */ '@/views/productManagement/newProduct/detail'),
-        meta: {
-          title: '产品详情',
-          icon: 'home'
-        },
-        hidden: true
-      },
       // 销售管理
       {
         path: '/salesManagement',

+ 22 - 19
src/views/bnSetting/menu/adminMenus.vue

@@ -14,25 +14,28 @@
         </a-row>
         <a-row :gutter="24" >
           <a-input-search placeholder="输入搜索菜单名搜索" style="width: 100%" @change="onChange" />
-          <a-tree
-            @expand="onExpand"
-            :treeData="getMenus"
-            :expandedKeys="expandedKeys"
-            :autoExpandParent="autoExpandParent"
-            @select="onSelect"
-            :selectedKeys="selectedKeys"
-          >
-            <template slot="title" slot-scope="{title}">
-              <span v-if="title.indexOf(searchValue) > -1">
-                {{ title.substr(0, title.indexOf(searchValue)) }}
-                <span style="color: #f50">{{ searchValue }}</span>
-                {{ title.substr(title.indexOf(searchValue) + searchValue.length) }}
-              </span>
-              <span v-else>{{ title }}</span>
-            </template>
-            <a-icon slot="file" type="file" />
-            <a-icon slot="pushpin" type="pushpin" />
-          </a-tree>
+          <div style="max-height: 600px;overflow: auto;">
+            <a-tree
+              @expand="onExpand"
+              :treeData="getMenus"
+              :expandedKeys="expandedKeys"
+              :autoExpandParent="autoExpandParent"
+              @select="onSelect"
+              :selectedKeys="selectedKeys"
+              showIcon
+            >
+              <template slot="title" slot-scope="{title}">
+                <span v-if="title.indexOf(searchValue) > -1">
+                  {{ title.substr(0, title.indexOf(searchValue)) }}
+                  <span style="color: #f50">{{ searchValue }}</span>
+                  {{ title.substr(title.indexOf(searchValue) + searchValue.length) }}
+                </span>
+                <span v-else>{{ title }}</span>
+              </template>
+              <a-icon slot="file" type="file" />
+              <a-icon slot="pushpin" type="pushpin" />
+            </a-tree>
+          </div>
         </a-row>
       </a-col>
       <!-- 右侧 -->