fix: 删除不需要弹出 操作列不需要点击事件

master
dap 5 months ago
parent eceedefc60
commit 999e30bd7a

@ -72,9 +72,10 @@ const [BasicTable, tableApi] = useVbenVxeGrid({
formOptions,
gridOptions,
gridEvents: {
cellClick: ({ row }) => {
cellClick: ({ row, column }) => {
// 稿
if (row.status === 'draft') {
//
if (row.status === 'draft' || column.field === 'action') {
return;
}
//
@ -198,6 +199,7 @@ function handleInfo(row: Required<LeaveForm>) {
:get-popup-container="getVxePopupContainer"
placement="left"
title="确认删除?"
:disabled="!['draft', 'cancel', 'back'].includes(row.status)"
@confirm.stop="handleDelete(row)"
@cancel.stop=""
>

Loading…
Cancel
Save