@@ -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){
@@ -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
+ })
+ }