فهرست منبع

添加左侧列表图标

zhangyu 4 سال پیش
والد
کامیت
998091f744
3فایلهای تغییر یافته به همراه26 افزوده شده و 12 حذف شده
  1. 1 1
      public/index.html
  2. 8 2
      src/layout/components/Sidebar/SidebarItem.vue
  3. 17 9
      src/router/index.ts

+ 1 - 1
public/index.html

@@ -5,7 +5,7 @@
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
   <meta name="viewport" content="width=device-width,initial-scale=1.0">
   <link rel="icon" href="<%= BASE_URL %>favicon.ico">
-  <link rel="stylesheet" href="//at.alicdn.com/t/font_2327510_l3fgpus693i.css" />
+  <link rel="stylesheet" href="//at.alicdn.com/t/font_2327510_7jj0x1gmztq.css" />
   <title><%= htmlWebpackPlugin.options.title %></title>
 </head>
 <body>

+ 8 - 2
src/layout/components/Sidebar/SidebarItem.vue

@@ -3,14 +3,16 @@
         <template v-if="theOnlyOneChild && !theOnlyOneChild.children">
             <sidebar-item-link v-if="theOnlyOneChild.meta" :to="resolvePath(theOnlyOneChild.path)">
                 <el-menu-item :index="resolvePath(theOnlyOneChild.path)" :class="{ 'submenu-title-noDropdown': isFirstLevel }">
-                    <svg-icon v-if="theOnlyOneChild.meta.icon" :name="theOnlyOneChild.meta.icon" />
+                    <!-- <svg-icon v-if="theOnlyOneChild.meta.icon" :name="theOnlyOneChild.meta.icon" /> -->
+                    <i v-if="theOnlyOneChild.meta.icon" class="iconfont" :class="theOnlyOneChild.meta.icon"></i>
                     <span v-if="theOnlyOneChild.meta.title" slot="title" class="title-name">{{ theOnlyOneChild.meta.title }}</span>
                 </el-menu-item>
             </sidebar-item-link>
         </template>
         <el-submenu v-else :index="resolvePath(item.path)" popper-append-to-body>
             <template slot="title">
-                <svg-icon v-if="item.meta && item.meta.icon" :name="item.meta.icon" />
+                <!-- <svg-icon v-if="item.meta && item.meta.icon" :name="item.meta.icon" /> -->
+                <i v-if="item.meta && item.meta.icon" class="iconfont" :class="item.meta.icon"></i>
                 <span v-if="item.meta && item.meta.title" slot="title">{{ item.meta.title }}</span>
             </template>
             <template v-if="item.children">
@@ -142,6 +144,10 @@ export default class extends Vue {
 </style>
 
 <style lang="scss" scoped>
+.iconfont {
+    color: #ffffff;
+    padding: 0 5px;
+}
 .title-name {
     color: #ffffff;
 }

+ 17 - 9
src/router/index.ts

@@ -44,7 +44,7 @@ export default new Router({
             ),
           meta: {
             title: "项目管理",
-            icon: "form"
+            icon: "icon-xiangmuguanli"
           }
         }
       ]
@@ -73,7 +73,7 @@ export default new Router({
       component: Layout,
       meta: {
         title: "文件管理",
-        icon: "example"
+        icon: "icon-wenjianguanli"
       },
       children: [
         {
@@ -84,7 +84,7 @@ export default new Router({
             ),
           meta: {
             title: "建筑楼层管理",
-            icon: "tree"
+            // icon: "tree"
           }
         },
         {
@@ -95,7 +95,7 @@ export default new Router({
             ),
           meta: {
             title: "模型修改任务",
-            icon: "table"
+            // icon: "table"
           }
         }
       ]
@@ -106,7 +106,7 @@ export default new Router({
       redirect: "/maintain/device",
       meta: {
         title: "数据维护",
-        icon: "nested"
+        icon: "icon-shujuweihu"
       },
       children: [
         {
@@ -150,7 +150,7 @@ export default new Router({
       redirect: "/scene/tiepoint",
       meta: {
         title: "现场实施",
-        icon: "nested"
+        icon: "icon-xianchangshishi"
       },
       children: [
         {
@@ -184,7 +184,7 @@ export default new Router({
       component: Layout,
       meta: {
         title: "一致性检查工具",
-        icon: "nested"
+        icon: "icon-yizhixingjianchagongju"
       }
     },
     {
@@ -192,7 +192,15 @@ export default new Router({
       component: Layout,
       meta: {
         title: "模型检查工具",
-        icon: "nested"
+        icon: "icon-moxingjianchagongju"
+      }
+    },
+    {
+      path: "/management",
+      component: Layout,
+      meta: {
+        title: "综合管理与其他",
+        icon: "icon-zongheguanliyuqita"
       }
     },
     {
@@ -201,7 +209,7 @@ export default new Router({
       redirect: "noredirect",
       meta: {
         title: "错误页面",
-        icon: "nested"
+        icon: "icon-weihubangzhu"
       },
       children: [
         {