linwenxin 1 vuosi sitten
vanhempi
commit
fd059605d6

+ 1 - 1
src/views/secondHandMall/commodityManagement/form.vue

@@ -404,7 +404,7 @@ export default {
     copyGoods() {
       esGoodsCopy({ id: this.detailId }).then(res => {
         this.$message({ type: 'success', message: `克隆成功!` })
-        this.handleClose()
+        this.$emit('back',{detailId:res.data})
       })
     },
     setStatus(status){

+ 7 - 1
src/views/secondHandMall/commodityManagement/index.vue

@@ -173,10 +173,16 @@ export default {
         }
       })
     },
-    handleClose() {
+    handleClose(obj) {
       this.detailId = ''
       this.visible = false
       this.$refs.pageRef.refreshList()
+      if(obj && obj.detailId){
+        this.$nextTick(()=>{
+          this.detailId = obj.detailId
+          this.visible = true
+        })
+      }
     }
   }
 }