diff --git a/src/components/DesignForm/public/form/childTable.vue b/src/components/DesignForm/public/form/childTable.vue index ccae241..522549e 100644 --- a/src/components/DesignForm/public/form/childTable.vue +++ b/src/components/DesignForm/public/form/childTable.vue @@ -183,14 +183,24 @@ const timeToString = (timeVal:any,types:int) => { return timeStr } let associatedFormsIndexTablekey = 0 -const emits = defineEmits<{ +/* const emits = defineEmits<{ (e: 'asfValueChanged', val: any): void -}>() + +}>() */ +let emits = defineEmits(['optionsValue3GetTable','asfValueChanged']); function asfValueChanged(val:any){ //console.log("childTable-asfValueChanged",val) emits("asfValueChanged",val) } + +function optionsValue3Get1(data: any,fieldName: string){ + fieldName = "childTable---"+props.data.name+"---"+fieldName + /* console.log("childTable---optionsValue3Get1") + console.log(props.data.name) */ + emits('optionsValue3GetTable',data,fieldName) +} + diff --git a/src/components/DesignForm/public/form/form.vue b/src/components/DesignForm/public/form/form.vue index ca74799..56dc831 100644 --- a/src/components/DesignForm/public/form/form.vue +++ b/src/components/DesignForm/public/form/form.vue @@ -1947,6 +1947,7 @@ const submitEdit = (type: string, res: any) => { } function optionsValue3Get2(data: any,fieldName: string){ + //console.log("form.vue","optionsValue3Get2") emits('optionsValue3Get3',data,fieldName) } diff --git a/src/components/DesignForm/public/form/formGroup.vue b/src/components/DesignForm/public/form/formGroup.vue index fa44caa..fe6e216 100644 --- a/src/components/DesignForm/public/form/formGroup.vue +++ b/src/components/DesignForm/public/form/formGroup.vue @@ -493,7 +493,7 @@ function asfValueChanged(val:any){ } - if(val.fillFieldsChild.length>0){ + if(val.fillFieldsChild&&val.fillFieldsChild.length>0){ /* console.log(val.asfFormId) console.log(val.masterOnField) */ let fillFieldsChild = JSON.parse(val.fillFieldsChild); @@ -745,10 +745,20 @@ const getFormItemLableStyle = (ele: any) => { } function optionsValue3Get1(data: any,fieldName: string){ + //console.log("formGroup---optionsValue3Get1") emits('optionsValue3Get2',data,fieldName) } -/* + + +function optionsValue3GetTable(data: any,fieldName: string){ + /* console.log("formGroup---optionsValue3GetTable") + console.log(data) + console.log(fieldName) */ + emits('optionsValue3Get2',data,fieldName) +} +/* + */