diff --git a/src/components/DesignForm/app/formPage.vue b/src/components/DesignForm/app/formPage.vue index 71b6849fc..c5225be31 100644 --- a/src/components/DesignForm/app/formPage.vue +++ b/src/components/DesignForm/app/formPage.vue @@ -690,6 +690,7 @@ const appFormSubmit = (params = {}) => { } return } + console.log(params) validate((valid: boolean, fields: any) => { if (valid) { const formatParams = Object.assign({}, fields, params) diff --git a/src/components/DesignForm/public/form/formGroup.vue b/src/components/DesignForm/public/form/formGroup.vue index 5f2ca1ab6..982290b29 100644 --- a/src/components/DesignForm/public/form/formGroup.vue +++ b/src/components/DesignForm/public/form/formGroup.vue @@ -353,6 +353,7 @@ const linksIf = (obj: FormList) => { //按钮点击事件 const injectBtnEvent:any = inject(constFormBtnEvent) const clickBtn = (control: any) => { + console.log(control) // 0: '提交表单', // 1: '重置表单', // 2: '取消返回', diff --git a/src/widget/associatedforms/associatedForms.vue b/src/widget/associatedforms/associatedForms.vue index 9c664fa3b..9e9a6a213 100644 --- a/src/widget/associatedforms/associatedForms.vue +++ b/src/widget/associatedforms/associatedForms.vue @@ -2,7 +2,7 @@ - + @@ -34,7 +34,7 @@ const props = withDefaults( }>(), {} ) - +const emits = defineEmits(["valueChanged"]); const value1 = ref('') const options = ref([]) @@ -42,13 +42,18 @@ onMounted(()=>{ console.log(props.data.control) if(props.data.control.formid!=null&&props.data.control.formid!=""){ getAsfDataTitles().then(({ data }) => { - console.log(data) + //console.log(data) options.value = data }); } }) +function asfValueChanged(){ + + emits("valueChanged",value1.value) +} + function getAsfDataTitles() { let dataTitle = '' if(props.tablekey.dataTitle!=null&&props.tablekey.dataTitle.length>0){ diff --git a/src/widget/associatedforms/index.vue b/src/widget/associatedforms/index.vue index 577cf84da..ef2aa4cbe 100644 --- a/src/widget/associatedforms/index.vue +++ b/src/widget/associatedforms/index.vue @@ -14,7 +14,7 @@ - +