Browse Source

Update shopList.vue

lex-xin 4 years ago
parent
commit
48d61e60e7
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/businessManager/shopManager/shopList.vue

+ 4 - 4
src/views/businessManager/shopManager/shopList.vue

@@ -385,8 +385,9 @@
                 "
                 @click="onShopOperation('look', scope.row)"
                 type="text"
-                >查看</el-button
-              >
+                >查看</el-button>
+
+              <el-button @click="onShopOperation('copy', scope.row)" type="text" >复制</el-button>
               <!-- <el-button v-if="scope.row.status == 0"
                          v-permission="'goods/del'"
                          @click="onDelete(scope.row)"
@@ -1056,7 +1057,6 @@ export default {
       params.page = this.pageInfo.page;
       goodsQuery(params).then((res) => {
         if (res.code == 200 && res.data) {
-          
           this.tableList = res.data.rows;
           this.pageInfo.total = res.data.total;
         }
@@ -1148,7 +1148,7 @@ export default {
       this.addType = type;
       this.addDisabled = type == "look" ? true : false;
       // 判断是否是修改组合商品
-      if ((type == "update" || type == "look") && row.complementGoodsIdList) {
+      if ((type == "update" || type == "look" || type == 'copy') && row.complementGoodsIdList) {
         this.routeShopStatus = true;
 
         let form = this.form;