diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index 992da161c..bd7c864a9 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -134,6 +134,7 @@ @selectChangeDetail="selectChangeDetail" :formTypeDetail="formTypeDetail" :countPlanAllList="countPlanAllList" + @onChange="detailBasicFormOnChange" /> @@ -581,7 +582,8 @@ const emit = defineEmits([ 'selectChangeDetail', 'detailOpenForm', 'tableFormButton', - 'openImage' + 'openImage', + 'detailBasicFormOnChange' ]) /** 删除按钮操作 */ const handleDelete = async (id: number) => { @@ -630,6 +632,14 @@ const selectChangeDetail = (field, val) => { const openImage=(item)=>{ emit('openImage', item) } +/** + * 监听改变事件 + * @param field 当前操作字段 + * @param cur 改变后值 + */ + const detailBasicFormOnChange = (field, cur) => { + emit('detailBasicFormOnChange', field, cur) +} //监视属性 watch( () => props.apiPage,