Browse Source

供应商店铺入驻数量

huangb 7 years ago
parent
commit
82f3b71225
1 changed files with 9 additions and 9 deletions
  1. 9 9
      components/provider/ToggleStore.vue

+ 9 - 9
components/provider/ToggleStore.vue

@@ -97,15 +97,15 @@ export default {
       return this.$store.state.provider.stores.originalCount.data
     },
     count () {
-      // let allCount =  this.$store.state.option.counter.data ? this.$store.state.option.counter.data : []
-      // allCount.forEach((value) => {
-      //   if (value.item === '供应商') {
-      //     this.supplierArr.push(value.count)
-      //   }
-      //   if (value.item === '品   牌') {
-      //     this.brandArr.push(value.count)
-      //   }
-      // })
+      let allCount =  this.$store.state.option.counter.data ? this.$store.state.option.counter.data : []
+      allCount.forEach((value) => {
+        if (value.item === '供应商') {
+          this.supplierArr.push(value.count)
+        }
+        if (value.item === '品   牌') {
+          this.brandArr.push(value.count)
+        }
+      })
     }
   },
   mounted () {