feat(web): 修改删除按钮的禁用逻辑
This commit is contained in:
@@ -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: "删除",
|
||||
|
||||
Reference in New Issue
Block a user