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') { if (val == 'edit') {
// //
openForm('update', row) openForm('update', row)
emit('detailOpenForm', row)
} else if (val == 'delete') { } else if (val == 'delete') {
// //
handleDelete(row.id) handleDelete(row.id)
@ -546,6 +545,7 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const formRef = ref() const formRef = ref()
const openForm = async (type: string, row?: number) => { const openForm = async (type: string, row?: number) => {
emit('detailOpenForm', type, row)
formRef.value.open(type, row, masterParmas.value) formRef.value.open(type, row, masterParmas.value)
} }
// form // form

Loading…
Cancel
Save