Ver código fonte

上架,共享 左侧改成品牌

caojunjie 1 ano atrás
pai
commit
fdc0254f87

+ 7 - 4
src/views/tirePartsMall/basicData/listingManagement/index.vue

@@ -187,7 +187,7 @@ import {
     getDetail,
     remove,
     productLaunch,
-    deptList
+    deptList, listAllP
 } from "@/api/tirePartsMall/basicData/listingManagement/index.js";
 import { getToken } from "@/util/auth";
 import commodity from "./commodity.json"
@@ -255,7 +255,7 @@ export default {
         size: "small",
         props: {
           labelText: "标题",
-          label: "title",
+          label: "cname",
           value: "id",
         }
       },
@@ -472,7 +472,10 @@ export default {
     }
   },
   activated() {
-      getCorpTypes().then(res=>{
+      // getCorpTypes().then(res=>{
+      //     this.treeData = res.data.data
+      // })
+      listAllP().then(res=>{
           this.treeData = res.data.data
       })
     this.onLoad(this.page, this.search)
@@ -548,7 +551,7 @@ export default {
       done();
     },
     nodeClick(data) {
-      this.search.goodsTypeId = data.id
+      this.search.brandId = data.id
       this.page.currentPage = 1;
       this.onLoad(this.page, this.search);
   },

+ 9 - 9
src/views/tirePartsMall/basicData/shareListing/index.vue

@@ -146,7 +146,7 @@ export default {
         size: "small",
         props: {
           labelText: "标题",
-          label: "title",
+          label: "cname",
           value: "id",
         }
       },
@@ -358,12 +358,12 @@ export default {
     }
   },
   activated() {
-    // listAll().then(res=>{
-    //   this.treeData = res.data.data
-    // })
-      getCorpTypes().then(res=>{
-          this.treeData = res.data.data
-      })
+    listAll().then(res=>{
+      this.treeData = res.data.data
+    })
+      // getCorpTypes().then(res=>{
+      //     this.treeData = res.data.data
+      // })
     this.onLoad(this.page, this.search)
   },
   async created() {
@@ -430,8 +430,8 @@ export default {
       done();
     },
     nodeClick(data) {
-      // this.search.brandId = data.id
-        this.search.goodsTypeId = data.id
+      this.search.brandId = data.id
+      //   this.search.goodsTypeId = data.id
       this.page.currentPage = 1;
       this.onLoad(this.page, this.search);
     },