浏览代码

Update shopList.vue

lex-xin 4 年之前
父节点
当前提交
48d61e60e7
共有 1 个文件被更改,包括 4 次插入4 次删除
  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)"
                 @click="onShopOperation('look', scope.row)"
                 type="text"
                 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"
               <!-- <el-button v-if="scope.row.status == 0"
                          v-permission="'goods/del'"
                          v-permission="'goods/del'"
                          @click="onDelete(scope.row)"
                          @click="onDelete(scope.row)"
@@ -1056,7 +1057,6 @@ export default {
       params.page = this.pageInfo.page;
       params.page = this.pageInfo.page;
       goodsQuery(params).then((res) => {
       goodsQuery(params).then((res) => {
         if (res.code == 200 && res.data) {
         if (res.code == 200 && res.data) {
-          
           this.tableList = res.data.rows;
           this.tableList = res.data.rows;
           this.pageInfo.total = res.data.total;
           this.pageInfo.total = res.data.total;
         }
         }
@@ -1148,7 +1148,7 @@ export default {
       this.addType = type;
       this.addType = type;
       this.addDisabled = type == "look" ? true : false;
       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;
         this.routeShopStatus = true;
 
 
         let form = this.form;
         let form = this.form;