Browse Source

详情 basicform 添加 改变事件

master
陈薪名 11 months ago
parent
commit
cbe60c1a90
  1. 12
      src/components/Detail/src/Detail.vue

12
src/components/Detail/src/Detail.vue

@ -134,6 +134,7 @@
@selectChangeDetail="selectChangeDetail" @selectChangeDetail="selectChangeDetail"
:formTypeDetail="formTypeDetail" :formTypeDetail="formTypeDetail"
:countPlanAllList="countPlanAllList" :countPlanAllList="countPlanAllList"
@onChange="detailBasicFormOnChange"
/> />
</div> </div>
</template> </template>
@ -581,7 +582,8 @@ const emit = defineEmits([
'selectChangeDetail', 'selectChangeDetail',
'detailOpenForm', 'detailOpenForm',
'tableFormButton', 'tableFormButton',
'openImage' 'openImage',
'detailBasicFormOnChange'
]) ])
/** 删除按钮操作 */ /** 删除按钮操作 */
const handleDelete = async (id: number) => { const handleDelete = async (id: number) => {
@ -630,6 +632,14 @@ const selectChangeDetail = (field, val) => {
const openImage=(item)=>{ const openImage=(item)=>{
emit('openImage', item) emit('openImage', item)
} }
/**
* 监听改变事件
* @param field 当前操作字段
* @param cur 改变后值
*/
const detailBasicFormOnChange = (field, cur) => {
emit('detailBasicFormOnChange', field, cur)
}
// //
watch( watch(
() => props.apiPage, () => props.apiPage,

Loading…
Cancel
Save