diff --git a/src/components/DesignForm/public/form/form.vue b/src/components/DesignForm/public/form/form.vue index 378be8697..d86c8067c 100644 --- a/src/components/DesignForm/public/form/form.vue +++ b/src/components/DesignForm/public/form/form.vue @@ -277,15 +277,11 @@ const recursionToGetFinallyHideFields = (hideFieldArr: any[],radioSelectArr3: st conditionFieldValueArr = conditionFieldValueArr.slice(0, -1); console.log(conditionFieldValueArr) console.log(conditionFieldValue) - nextTick(()=>{ + //nextTick(()=>{ for(let n = 0; n< modelKeyArr.length;n++){ if(modelKeyArr[n]==conditionField){ let count_1 = 0; let trueValue = model.value[modelKeyArr[n]] - //alert(trueValue) - console.log(trueValue.length) - //console.log(modelKeyArr[n]) - //console.log(trueValue) if(trueValue.length>0&&arrayEqual(trueValue,conditionFieldValueArr)){ //此时满足了条件,但是必须看一下conditionField有没有被隐藏.如果被隐藏了,则x不能增加. //alert("多选条件成功触发") @@ -307,24 +303,18 @@ const recursionToGetFinallyHideFields = (hideFieldArr: any[],radioSelectArr3: st } if(flag==false){ - x++ - - //alert(x) - hideFieldsFromCheckbox.push(toshow) console.log(hideFieldArr) - for(let i = 0;i item!=hideFieldsFromCheckbox[i]) //emits('refresh') - } + } */ } } } } - }) + //}) diff --git a/src/components/DesignForm/public/form/formGroup.vue b/src/components/DesignForm/public/form/formGroup.vue index eba74e198..88ec858e4 100644 --- a/src/components/DesignForm/public/form/formGroup.vue +++ b/src/components/DesignForm/public/form/formGroup.vue @@ -26,6 +26,7 @@ const props = withDefaults( data: FormList[] tableinfo:formTableInfo numrun?:number + }>(), { data: () => { @@ -34,6 +35,7 @@ const props = withDefaults( } ) + const store = useDesignFormStore() as any //自定义表单存储器 const formProps = inject(constFormProps, {}) as any const type = computed(() => { //动态计算属性