1
0

feat(web): 修改删除按钮的禁用逻辑

This commit is contained in:
2024-12-19 10:48:08 +08:00
parent 49caded436
commit 981f84ea2b

View File

@@ -5,7 +5,6 @@ import {
} from "../../components/resource/dialog-resource.js";
import {
apiGet,
arrayInCheck,
arrayOutCheck,
checkState,
crudCommonOptions,
@@ -68,8 +67,8 @@ export function resourceList(showMode = false) {
...resourceEditeDialog(),
},
{
disabledOn: arrayInCheck([checkState.checking], 'confirmationState'),
disabledTip: '审查无法删除',
disabledOn: arrayOutCheck([checkState.none, checkState.draft], 'confirmationState'),
disabledTip: '审查或确权成功后无法删除',
tooltipPlacement: 'bottom',
type: 'action',
label: "删除",