修改运维工具功能

This commit is contained in:
yangjun 2025-09-23 16:26:09 +08:00
parent 1a277c88a7
commit b5a0b29bdc
1 changed files with 25 additions and 3 deletions

View File

@ -34,6 +34,9 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
formConfig: { formConfig: {
schemas: formSchema schemas: formSchema
}, },
actionColumn: {
width: 380,
},
canResize: false, canResize: false,
useSearchForm: true, useSearchForm: true,
showTableSetting: false, showTableSetting: false,
@ -61,11 +64,14 @@ function searchQuery() {
reload(); reload();
} }
async function handleClean(record) { async function handleClean(record,type) {
console.log("🚀 ~ handleClean ~ record:", record)
record.advisoryType = type;
await dataClean(record, handleSuccess); await dataClean(record, handleSuccess);
} }
async function handleDelete(record) { async function handleDelete(record) {
console.log("🚀 ~ handleDelete ~ record:", record)
await dataDelete(record, handleSuccess); await dataDelete(record, handleSuccess);
} }
@ -75,10 +81,26 @@ async function handleDelete(record) {
function getTableAction(record) { function getTableAction(record) {
return [ return [
{ {
label: '清除入驻', label: '清除长者入驻',
popConfirm: { popConfirm: {
title: '是否确认清除入驻', title: '是否确认清除入驻',
confirm: handleClean.bind(null, record,'0'), confirm: handleClean.bind(null, record,'1'),
placement: 'topLeft',
},
},
{
label: '清除员工入驻',
popConfirm: {
title: '是否确认清除入驻',
confirm: handleClean.bind(null, record,'2'),
placement: 'topLeft',
},
},
{
label: '清除机构入驻',
popConfirm: {
title: '是否确认清除入驻',
confirm: handleClean.bind(null, record,'3'),
placement: 'topLeft', placement: 'topLeft',
}, },
}, },