|
|
@ -535,7 +535,6 @@ const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'edit') { |
|
|
|
// 编辑 |
|
|
|
openForm('update', row) |
|
|
|
emit('detailOpenForm', row) |
|
|
|
} else if (val == 'delete') { |
|
|
|
// 删除 |
|
|
|
handleDelete(row.id) |
|
|
@ -546,6 +545,7 @@ 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) |
|
|
|
} |
|
|
|
// form 提交 |
|
|
|