|
|
@ -322,6 +322,12 @@ const props = defineProps({ |
|
|
|
required: false, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
//扩展其他按钮 |
|
|
|
otherHeadButttonData:{ |
|
|
|
type:Array, |
|
|
|
required: false, |
|
|
|
default: () => [] |
|
|
|
} |
|
|
|
}) |
|
|
|
const isShowDrawer = ref(false) |
|
|
|
const detailLoading = ref(false) |
|
|
@ -544,7 +550,7 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName: |
|
|
|
defaultButtons.defaultFilterBtn(null) // 筛选 |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|
HeadButttondata.value = [...HeadButttondata.value,...props.otherHeadButttonData] |
|
|
|
let detailButtonEdit: any = [] |
|
|
|
let detailButtonDelete: any = [] |
|
|
|
if (props.detailButtonIsShowEdit) { |
|
|
@ -654,6 +660,7 @@ const buttonBaseClick = (val, item) => { |
|
|
|
} else { |
|
|
|
// 其他按钮 |
|
|
|
console.log('其他按钮', item) |
|
|
|
emit('buttonBaseClick',val, item) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -781,7 +788,8 @@ const emit = defineEmits([ |
|
|
|
'openImage', |
|
|
|
'onBlur', |
|
|
|
'detailBasicFormOnChange', |
|
|
|
'formFormDateChange' |
|
|
|
'formFormDateChange', |
|
|
|
'buttonBaseClick' |
|
|
|
]) |
|
|
|
/** 删除按钮操作 */ |
|
|
|
const handleDelete = async (id: number) => { |
|
|
|