diff --git a/src/views/internaltool/cleanAdvisory/index.vue b/src/views/internaltool/cleanAdvisory/index.vue index fe71237..e0e6f0c 100644 --- a/src/views/internaltool/cleanAdvisory/index.vue +++ b/src/views/internaltool/cleanAdvisory/index.vue @@ -34,6 +34,9 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ formConfig: { schemas: formSchema }, + actionColumn: { + width: 380, + }, canResize: false, useSearchForm: true, showTableSetting: false, @@ -61,11 +64,14 @@ function searchQuery() { reload(); } -async function handleClean(record) { +async function handleClean(record,type) { + console.log("🚀 ~ handleClean ~ record:", record) + record.advisoryType = type; await dataClean(record, handleSuccess); } async function handleDelete(record) { + console.log("🚀 ~ handleDelete ~ record:", record) await dataDelete(record, handleSuccess); } @@ -75,10 +81,26 @@ async function handleDelete(record) { function getTableAction(record) { return [ { - label: '清除入驻', + label: '清除长者入驻', popConfirm: { 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', }, },