Browse Source

详情组件 新增编辑 触发事件

master
陈薪名 10 months ago
parent
commit
cb7e898783
  1. 2
      src/components/Detail/src/Detail.vue

2
src/components/Detail/src/Detail.vue

@ -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

Loading…
Cancel
Save