diff --git a/src/components/DesignForm/assembly/index.ts b/src/components/DesignForm/assembly/index.ts index 2408450..2ca1514 100644 --- a/src/components/DesignForm/assembly/index.ts +++ b/src/components/DesignForm/assembly/index.ts @@ -897,6 +897,7 @@ export default [ mathsString:'', }, formid: '', + glbbddbd:'',//关联本表单的表单 dataRangeConditionHtml: '', dataRangeConditionHtmlCopy: '', dataRangeGongShi:{ @@ -917,7 +918,7 @@ export default [ child: [ { id: '', - tableKey: '', + asfChildTableKey: '', filterCondition:{ conditionHtml: '', conditionHtmlCopy: '', diff --git a/src/components/DesignForm/formControlPropertiNew.vue b/src/components/DesignForm/formControlPropertiNew.vue index bebf5e7..864a33d 100644 --- a/src/components/DesignForm/formControlPropertiNew.vue +++ b/src/components/DesignForm/formControlPropertiNew.vue @@ -1795,7 +1795,7 @@ const showImagePreview = ref(false) controlData.value.control.fillRoles.child = [ { id: '', - tableKey: '', + asfChildTableKey: '', filterCondition:{ conditionHtml: '', conditionHtmlCopy: '', @@ -2115,7 +2115,9 @@ function removeFirstNumElements(arr: string | any[],num:number) { } function formidChanged(){ - + + //需设置关联关联表单的表单 + controlData.value.control.glbbddbd=formData.value.name if(controlData.value.control.formid===''){ }else{ @@ -2635,7 +2637,7 @@ function selectedOrDelChildRole(){ //console.log(controlData.value.control?.fillRoles?.child) let selectedArr: any[] = [] controlData.value.control?.fillRoles?.child.forEach(function(item: any) { - if(item.tableKey!=""){ + if(item.asfChildTableKey!=""){ selectedArr.push(item) } }); @@ -2648,7 +2650,7 @@ function selectedOrDelChildRole(){ if(asfasfChildTableList.value){ asfasfChildTableList.value[0].children?.forEach(function(item: any){ selectedArr.forEach(function(i: any){ - if(i.tableKey==item.id){ + if(i.asfChildTableKey==item.id){ item.disabled=true } }) @@ -2804,7 +2806,7 @@ if(controlData.value.control.fillRoles.child.length { - +