diff --git a/src/components/DesignForm/public/form/formGroup.vue b/src/components/DesignForm/public/form/formGroup.vue index e9a416b..1585049 100644 --- a/src/components/DesignForm/public/form/formGroup.vue +++ b/src/components/DesignForm/public/form/formGroup.vue @@ -502,32 +502,35 @@ function asfValueChanged(val:any){ //console.log(fillFieldsChild) getAsfTableFill(val.asfFormId,val.glbbddbd,val.currentVal,fillFieldsChild).then(({ data }) => { //console.log(data) - data.forEach((dataElement:any) => { - tables.forEach((tableItem: any) => { - if(dataElement.tableName==tableItem.name){ - //console.log(formProps.value.model) - //console.log(tableItem) - //console.log(dataElement) - let tableName = dataElement.tableName - //console.log(tableName) - if(tableItem.list.length>0){ - let tableRowArray: { type: any; name: any }[] = [] - tableItem.list.forEach((listItem:any) => { - //console.log(listItem) - tableRowArray.push({ - type:listItem.type, - name:listItem.name - }) - }); - //console.log(tableRowArray) - const result = generateXResult(dataElement, tableRowArray); - //console.log(result); - formProps.value.model[tableName] = result + if(data&&data.length>0){ + data.forEach((dataElement:any) => { + tables.forEach((tableItem: any) => { + if(dataElement.tableName==tableItem.name){ + //console.log(formProps.value.model) + //console.log(tableItem) + //console.log(dataElement) + let tableName = dataElement.tableName + //console.log(tableName) + if(tableItem.list.length>0){ + let tableRowArray: { type: any; name: any }[] = [] + tableItem.list.forEach((listItem:any) => { + //console.log(listItem) + tableRowArray.push({ + type:listItem.type, + name:listItem.name + }) + }); + //console.log(tableRowArray) + const result = generateXResult(dataElement, tableRowArray); + //console.log(result); + formProps.value.model[tableName] = result + } + } - - } + }); }); - }); + } + }); } diff --git a/src/widget/associatedforms/associatedFormsChildFillRole.vue b/src/widget/associatedforms/associatedFormsChildFillRole.vue index baf9098..28b7778 100644 --- a/src/widget/associatedforms/associatedFormsChildFillRole.vue +++ b/src/widget/associatedforms/associatedFormsChildFillRole.vue @@ -52,15 +52,15 @@ - + @node-contextmenu="handleFieldTreeContextmenuRange" /> --> +