mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-09 20:57:17 +08:00
refactor(system/storage): 优化是否默认操作禁用逻辑
This commit is contained in:
@@ -26,8 +26,8 @@
|
|||||||
<template #content>
|
<template #content>
|
||||||
<a-doption
|
<a-doption
|
||||||
v-permission="['system:storage:setDefault']"
|
v-permission="['system:storage:setDefault']"
|
||||||
:disabled="data.isDefault"
|
:disabled="data.isDefault || data.status === 2"
|
||||||
:title="data.isDefault ? '该存储已设为默认存储' : ''"
|
:title="data.isDefault ? '该存储已设为默认存储' : data.status === 2 ? '请先启用存储' : ''"
|
||||||
@click="onSetDefault(data)"
|
@click="onSetDefault(data)"
|
||||||
>
|
>
|
||||||
<icon-check-circle />
|
<icon-check-circle />
|
||||||
@@ -39,7 +39,6 @@
|
|||||||
</a-doption>
|
</a-doption>
|
||||||
<a-doption
|
<a-doption
|
||||||
v-permission="['system:storage:delete']"
|
v-permission="['system:storage:delete']"
|
||||||
class="danger"
|
|
||||||
:disabled="data.isDefault"
|
:disabled="data.isDefault"
|
||||||
:title="data.isDefault ? '不允许删除默认存储' : ''"
|
:title="data.isDefault ? '不允许删除默认存储' : ''"
|
||||||
@click="onDelete(data)"
|
@click="onDelete(data)"
|
||||||
|
Reference in New Issue
Block a user