From 4401405741152119b3e2c583c71dddf8a401b04d Mon Sep 17 00:00:00 2001 From: liwenxuan <1298531568@qq.com> Date: Mon, 20 May 2024 11:46:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E8=81=94=E9=80=89=E9=A1=B9=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=B8=8B=E6=8B=89=E5=8D=95=E9=80=89=E6=95=88=E6=9E=9C?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DesignForm/formControlAttr.vue | 51 ++--- .../DesignForm/public/form/form.vue | 181 +++++++++++++++++- .../DesignForm/public/form/formGroup.vue | 9 + .../sysworkflow/lowcodepage/pageDesignes.vue | 35 +++- 4 files changed, 235 insertions(+), 41 deletions(-) diff --git a/src/components/DesignForm/formControlAttr.vue b/src/components/DesignForm/formControlAttr.vue index 838d32ff8..25964f9fa 100644 --- a/src/components/DesignForm/formControlAttr.vue +++ b/src/components/DesignForm/formControlAttr.vue @@ -56,6 +56,7 @@ (e: 'openDialog', data: any): void (e: 'update:formOtherData', data: any): void (e: 'videoMsgChange', data: VideoMsg): void + (e: 'formNameChange', data: any): void //(e: 'update:formData', data: any): void //(e: 'update:formConfig', data: any): void }>() @@ -993,6 +994,7 @@ const fileSignAry = reactive([]) const controlChange = (obj: any, val: any) => { + // console.log("字段编辑--1--》",obj) // console.log("字段编辑--2--》",obj.eventName) // console.log("字段编辑--3--》",val) @@ -1088,7 +1090,15 @@ const newVal = obj.isNum ? formatNumber(val) : val // 类型为数字时转整数 obj.path && getPropByPath(controlData.value, obj.path, newVal) } + + + //liwenxuan 关联选项设置 修复bug:当字段标识改变时,关联选项设置的字段标识未同步更改 start + + emits('formNameChange',val); + //liwenxuan 关联选项设置 修复bug:当字段标识改变时,关联选项设置的字段标识未同步更改 end + } + /** * 获取非负整数随机数 * @param Min 最小整数 @@ -2230,9 +2240,7 @@ function handleDetermineGlxxszDialog(){ function handleDetermineGlxxszDialogCheckBox(){ glxxszDialogFlagCheckBox.value = false } -/* function addShowField(val:string){ - alert('addShowField:'+val) -} */ + @@ -2252,6 +2260,7 @@ watch(()=>controlData.value.options, (changedOptions:any) => { //新增了某个option controlData.value.control.glxxsz.push( { + conditionField: controlData.value.name, optionLabel: changedOptions[i].label, optionValue: changedOptions[i].value, tableIndex: i, @@ -2275,6 +2284,7 @@ watch(()=>controlData.value.options, (changedOptions:any) => { function createRowForGlxxsz(){ controlData.value.control.glxxszForCheckBox.push( { + selectedOptions:[], showFields:[], id: uuidv4().replaceAll('-','').toString(), @@ -2286,6 +2296,8 @@ function deleteRowForGlxxsz(row: { id: any }){ controlData.value.control.glxxszForCheckBox = controlData.value.control.glxxszForCheckBox.filter((item: { id: any }) => item.id!=row.id) } +//修复bug:当字段标识改变时,关联选项设置的字段标识未同步更改 + //liwenxuan20240426 单选多选下拉 关联选项设置 end @@ -3756,25 +3768,6 @@ const loadNextPage = () => { - - - - @@ -3819,11 +3808,11 @@ const loadNextPage = () => { - + + @@ -3834,7 +3823,7 @@ const loadNextPage = () => {