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