|
|
@ -134,6 +134,7 @@ |
|
|
|
@selectChangeDetail="selectChangeDetail" |
|
|
|
:formTypeDetail="formTypeDetail" |
|
|
|
:countPlanAllList="countPlanAllList" |
|
|
|
@onChange="detailBasicFormOnChange" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</template> |
|
|
@ -378,6 +379,7 @@ const HeadButttondata = ref() |
|
|
|
const buttondata = ref() |
|
|
|
|
|
|
|
/** 打开弹窗 */ |
|
|
|
const formRef = ref() |
|
|
|
const titleNameRef = ref() |
|
|
|
const titleValueRef = ref() |
|
|
|
const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => { |
|
|
@ -457,7 +459,7 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName: |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
defineExpose({ openDetail }) // 提供 open 方法,用于打开弹窗 |
|
|
|
defineExpose({ openDetail, formRef }) // 提供 open 方法,用于打开弹窗 |
|
|
|
|
|
|
|
// 获取备注列表 |
|
|
|
const getRemarkList = async () => { |
|
|
@ -543,7 +545,6 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} |
|
|
|
} |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const formRef = ref() |
|
|
|
const openForm = async (type: string, row?: number) => { |
|
|
|
emit('detailOpenForm', type, row) |
|
|
|
formRef.value.open(type, row, masterParmas.value) |
|
|
@ -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, |
|
|
|