|
@@ -162,10 +162,10 @@
|
|
|
</div>
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="setcol">
|
|
|
- <product-list ref="prolist" :type="'edit'" @onSuccess="onSuccess"></product-list>
|
|
|
+ <product-list ref="prolist" :type="'edit'" @onSuccess="onDelSuccess"></product-list>
|
|
|
</el-col>
|
|
|
<el-col :span="24 - setcol">
|
|
|
- <add-product @onConfirm="onConfirm"></add-product>
|
|
|
+ <add-product ref="addpro" @onConfirm="onConfirm"></add-product>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -310,11 +310,8 @@ export default {
|
|
|
this.drawer = false
|
|
|
})
|
|
|
},
|
|
|
- onSuccess () {
|
|
|
- this.$emit('onSuccess')
|
|
|
- setTimeout(() => {
|
|
|
- this.drawer = true
|
|
|
- }, 1000);
|
|
|
+ onDelSuccess () {
|
|
|
+ this.$refs.addpro.listData()
|
|
|
},
|
|
|
addMoreProduct () {
|
|
|
this.setcol = 12
|