From 3af52f6a984c5fe6671640dbfb1c40540416ea7d Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期三, 08 十一月 2023 16:40:51 +0800
Subject: [PATCH] 新建产品增加上传图片功能,增加vue-cropper插件

---
 src/views/operate/orderPoint/index.vue |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/views/operate/orderPoint/index.vue b/src/views/operate/orderPoint/index.vue
index 092a1d9..0da0d1d 100644
--- a/src/views/operate/orderPoint/index.vue
+++ b/src/views/operate/orderPoint/index.vue
@@ -113,9 +113,17 @@
     }
   },
   created() {
+    if(this.$route.params.productId){
+      this.getData({
+        productId:this.$route.params.productId,
+        pageSize:15,
+        page:1
+      })
+    }else{
+      this.getData()
+    }
     this.setTable()
     this.searchTaskMap = [{ id: "0", type: this.type, title: "閲嶆柊璁㈣喘" }]
-    this.getData()
     this.getLocationList()
   },
   methods: {
@@ -144,7 +152,8 @@
         type: this.type,
         keyWord: data?.jointName,
         page: this.pagerOptions.currPage,
-        pageSize: this.pagerOptions.pageSize
+        pageSize: this.pagerOptions.pageSize,
+        productId:data?.productId
       }).then((res) => {
         if (res.code === 200) {
           console.log(res)

--
Gitblit v1.8.0