Browse Source

详情 basicform 添加 改变事件

master
陈薪名 10 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"
:formTypeDetail="formTypeDetail"
:countPlanAllList="countPlanAllList"
@onChange="detailBasicFormOnChange"
/>
</div>
</template>
@ -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,

Loading…
Cancel
Save