shish 3 年之前
父節點
當前提交
841365829f
共有 1 個文件被更改,包括 19 次插入14 次删除
  1. 19 14
      hdApp/src/admin/home/workbench.vue

+ 19 - 14
hdApp/src/admin/home/workbench.vue

@@ -101,7 +101,7 @@
         <div class="tabs-list" v-for="(item, index) in tabsData" :key="index" >
           <div @click="goPage(item)">
             <div class="tabs-img">
-              <img :src="item.img" alt mode="widthFix" />
+              <img :src="`${constant.imgUrl}/${item.img}`" alt mode="widthFix" />
             </div>
             <div class="tabs-name">{{ item.name }}</div>
           </div>
@@ -224,18 +224,18 @@ export default {
         isMini:0
       },
       tabsData: [
-        { name: "商城", img: `${this.$constant.imgUrl}/ghs/home/shop.png`, url: "/admin/cg/mall",pf:1},
-        { name: "花材", img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`, url: "/admin/item/list",pf:1 },
-        { name: "改价", img: `${this.$constant.imgUrl}/ghs/home/gj.png`, url: "/admin/changePrice/list",pf:1},
-        { name: "拆散", img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`, url: "/admin/part/list",pf:1},
-        { name: "损耗", img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`, url: "/admin/breakage/list",pf:1},
-        { name: "任务", img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`, url: "/admin/work/list",pf:1 },
-        { name: "供货商", img: `${this.$constant.imgUrl}/ghs/home/icon_ghs.png`, url: "/pagesPurchase/order",pf:1 },
-        { name: "花材采购", img: `${this.$constant.imgUrl}/ghs/home/icon_caigou.png`, url: "/pagesPurchase/shopping",pf:1 },
-        { name: "采购结账", img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`, url: "/admin/clear/list",pf:1 },
-        { name: "花束", img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`, url: "/admin/goods/list",pf:1 },
-        { name: "绿植", img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`, url: "/admin/goods/lz",pf:1 },
-        { name: "绿植采购", img: `${this.$constant.imgUrl}/ghs/home/icon_caigou.png`, url: "/admin/goods/plantCg",pf:1}
+        { name: "商城", img: `ghs/home/shop.png`, url: "/admin/cg/mall",pf:1},
+        { name: "花材", img: `ghs/home/hcgl.png`, url: "/admin/item/list",pf:1 },
+        { name: "改价", img: `ghs/home/gj.png`, url: "/admin/changePrice/list",pf:1},
+        { name: "拆散", img: `ghs/home/kcyjs.png`, url: "/admin/part/list",pf:1},
+        { name: "损耗", img: `ghs/home/kcyjs.png`, url: "/admin/breakage/list",pf:1},
+        { name: "任务", img: `ghs/home/kcyjs.png`, url: "/admin/work/list",pf:1 },
+        { name: "供货商", img: `ghs/home/icon_ghs.png`, url: "/pagesPurchase/order",pf:1 },
+        { name: "花材采购", img: `ghs/home/icon_caigou.png`, url: "/pagesPurchase/shopping",pf:1 },
+        { name: "采购结账", img: `ghs/home/kcyjs.png`, url: "/admin/clear/list",pf:1 },
+        { name: "花束", img: `ghs/home/hcgl.png`, url: "/admin/goods/list",pf:1 },
+        { name: "绿植", img: `ghs/home/hcgl.png`, url: "/admin/goods/lz",pf:1 },
+        { name: "绿植采购", img: `ghs/home/icon_caigou.png`, url: "/admin/goods/plantCg",pf:1}
       ],
       totalData: [
         { name: "客户数", value: 0 },
@@ -432,7 +432,12 @@ export default {
 
         let that = this
         consoleIndex({isMini:this.isMini}).then(res => {
-          this.data = res.data;
+          this.data = res.data
+
+          if(res.data.menu && !this.$util.isEmpty(res.data.menu)){
+            this.tabsData = res.data.menu
+          }
+
         })
 
         getStrokeCount().then(res=>{