Sfoglia il codice sorgente

修改平台商品管理的店铺id问题

YY 2 anni fa
parent
commit
2b881f0b53

+ 1 - 1
src/components/rateParts/detail.vue

@@ -224,7 +224,7 @@ export default {
   padding: 0 10px 10px 10px;
   text-align: center;
   .goods_name {
-    margin: 10px;
+    margin: 5px;
     font-size: 20px;
     color: rgb(210, 69, 30);
   }

+ 9 - 6
src/views/platmanag/goods/index.vue

@@ -32,8 +32,9 @@
             @delete="toDelete"
             @spec="toSpec"
             @copy="toCopy"
-          ></data-table> </el-col
-      ></el-row>
+          ></data-table>
+        </el-col>
+      </el-row>
     </span>
 
     <el-row v-if="view === 'info'">
@@ -114,14 +115,16 @@ const { mapActions: shop } = createNamespacedHelpers('shop');
 export default {
   name: 'index',
   props: {},
-  components: { editor: () => import('@/components/editor.vue'), search1: () => import('./parts/search-1.vue') },
+  components: {
+    editor: () => import('@/components/editor.vue'),
+    search1: () => import('./parts/search-1.vue'),
+  },
   data: function () {
     return {
       loadings: true,
       view: 'list',
       fields: [
         { label: '商品名称', model: 'name', showTip: false },
-        // { label: '店铺名称', model: 'shop.name' },
         { label: '商品分类', model: 'tags', format: (i) => this.getTags(i), showTip: false },
         { label: '活动标签', model: 'act_tags', format: (i) => this.getAct_tags(i) },
         { label: '商品状态', model: 'status', format: (i) => this.getStatus(i) },
@@ -167,7 +170,7 @@ export default {
       props: { multiple: true, label: 'label', value: 'code' },
       // 活动标签
       act_tagsList: [],
-
+      // 商品状态
       goodsStatusList: [],
       // 商铺列表
       shopList: [],
@@ -209,7 +212,7 @@ export default {
         if (res.data.cb_config) this.cb_config = res.data.cb_config;
         if (data.shop) {
           let list = [];
-          let res = await this.shopFetch(data.shop._id);
+          let res = await this.shopFetch(data.shop);
           if (this.$checkRes(res)) {
             list.push(res.data);
             this.$set(this, 'shopList', list);