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