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