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