Andy 3 years ago
parent
commit
46c3d45221
1 changed files with 22 additions and 2 deletions
  1. 22 2
      src/views/newpage/MatchList/matchPage.vue

+ 22 - 2
src/views/newpage/MatchList/matchPage.vue

@@ -2,7 +2,7 @@
   <div>
     <Toptitle title="匹配">
       <Button
-        @click="back"
+        @click="handleAutoMatching"
         v-if="currencyTag == 1"
         type="primary"
         style="margin-right: 10px"
@@ -746,6 +746,7 @@ export default {
           slot: "setSlot",
         },
       ], //匹配表头
+      unmatchedSelectedList: [],
     };
   },
   // 生命周期 - 创建完成(可以访问当前this实例)
@@ -756,7 +757,16 @@ export default {
     back() {
       this.$router.go(-1);
     },
-    handleSelectChange(selection) {},
+    handleSelectChange(selection) {
+      this.unmatchedSelectedList = this.unmatchedSelectedList.concat(
+        selection.map((v) => {
+          return v.product_title;
+        })
+      );
+      //  = Array.from(
+      //         new Set([...res.data.support_remark, ...this.support_remark])
+      //       );
+    },
     handleTabsClick(name) {
       name == 2 &&
         this.axios
@@ -861,6 +871,16 @@ export default {
         }
       });
     },
+    handleAutoMatching() {
+      this.axios.post('/api/matching_product_house',{
+        id:this.info.id,
+        image_number:this.info.image_number,
+        product_title:this.info.product_name,
+      })
+      .then(res => {
+        console.log(res)
+      })
+    },
     handleMatchedSet(row, index, type) {},
   },
   // 监听属性 类似于data概念