Explorar el Código

fix: 行业配置数据调整

zh hace 2 años
padre
commit
0e049428f0

+ 2 - 1
src/views/basic_data/partya/partyaForm.vue

@@ -452,9 +452,10 @@ export default {
           this.tradeList = res.data.records
           return
         }
-        this.tradeParentList = res.data.records
+        this.tradeParentList = res.data
         if (this.detailId) {
           const item = this.tradeParentList.find(k => k.id === this.formData.tradeParentId)
+          console.log(item, 999)
           if (item.childList && item.childList.length) {
             this.tradeList = item.childList
           }

+ 2 - 2
src/views/commercialEngineering/components/base.vue

@@ -672,10 +672,10 @@ export default {
         parentId: parentId
       }).then(res => {
         if (parentId) {
-          this.tradeList = res.data.records
+          this.tradeList = res.data
           return
         }
-        this.tradeParentList = res.data.records
+        this.tradeParentList = res.data
         if (this.formData.id) {
           const item = this.tradeParentList.find(k => k.id === this.formData.tradeParentId)
           if (item.childList && item.childList.length) {