|
@@ -453,6 +453,12 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
this.tradeParentList = res.data.records
|
|
|
+ if (this.detailId) {
|
|
|
+ const item = this.tradeParentList.find(k => k.id === this.formData.tradeParentId)
|
|
|
+ if (item.childList && item.childList.length) {
|
|
|
+ this.tradeList = item.childList
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
getDetail() {
|
|
@@ -460,10 +466,7 @@ export default {
|
|
|
this.formData = {
|
|
|
...res.data
|
|
|
}
|
|
|
- const item = this.tradeParentList.find(k => k.id === res.data.tradeParentId)
|
|
|
- if (item.childList && item.childList.length) {
|
|
|
- this.tradeList = item.childList
|
|
|
- }
|
|
|
+
|
|
|
this.getRegion(1, this.formData.provinceRegionId)
|
|
|
this.getRegion(2, this.formData.cityRegionId)
|
|
|
})
|