维护工具-清除供应商

This commit is contained in:
曹磊 2026-01-22 16:31:10 +08:00
parent 248104b385
commit 00e2e507ed
2 changed files with 16 additions and 6 deletions

View File

@ -38,6 +38,8 @@ export const columns: BasicColumn[] = [
return "员工"; return "员工";
}else if(text == '3'){ }else if(text == '3'){
return "公司"; return "公司";
}else if(text == '4'){
return "供应商";
}else{ }else{
return "其他"; return "其他";
} }

View File

@ -81,29 +81,37 @@ async function handleDelete(record, type) {
function getTableAction(record) { function getTableAction(record) {
return [ return [
{ {
label: '清除长者入驻', label: '清除长者',
popConfirm: { popConfirm: {
title: '是否确认清除入驻', title: '是否确认清除长者',
confirm: handleClean.bind(null, record, '1'), confirm: handleClean.bind(null, record, '1'),
placement: 'topLeft', placement: 'topLeft',
}, },
}, },
{ {
label: '清除员工入驻', label: '清除员工',
popConfirm: { popConfirm: {
title: '是否确认清除入驻', title: '是否确认清除员工',
confirm: handleClean.bind(null, record, '2'), confirm: handleClean.bind(null, record, '2'),
placement: 'topLeft', placement: 'topLeft',
}, },
}, },
{ {
label: '清除机构入驻', label: '清除机构',
popConfirm: { popConfirm: {
title: '是否确认清除入驻', title: '是否确认清除机构',
confirm: handleClean.bind(null, record, '3'), confirm: handleClean.bind(null, record, '3'),
placement: 'topLeft', placement: 'topLeft',
}, },
}, },
{
label: '清除供应商',
popConfirm: {
title: '是否确认清除供应商',
confirm: handleClean.bind(null, record, '4'),
placement: 'topLeft',
},
},
{ {
label: '清除所有', label: '清除所有',
popConfirm: { popConfirm: {