feat: 缓存列表,监控,性能监控添加按钮级权限控制

This commit is contained in:
2025-02-22 23:46:21 +08:00
parent 73856ad1cb
commit 3f50400915

View File

@@ -13,6 +13,7 @@
link
type="primary"
size="large"
:disabled="!hasAuth('cache:btn:list')"
:icon="useRenderIcon(Refresh)"
@click="refreshCacheNames()"
/>
@@ -61,6 +62,7 @@
<el-button
link
type="primary"
:disabled="!hasAuth('cache:btn:delete')"
:icon="useRenderIcon(Delete)"
/>
</template>
@@ -83,6 +85,7 @@
type="primary"
link
size="large"
:disabled="!hasAuth('cache:btn:list')"
:icon="useRenderIcon(Refresh)"
@click="refreshCacheKeys()"
/>
@@ -122,6 +125,7 @@
<el-button
link
type="primary"
:disabled="!hasAuth('cache:btn:delete')"
:icon="useRenderIcon(Delete)"
/>
</template>
@@ -153,6 +157,7 @@
style="float: right; padding: 3px 0"
link
type="primary"
:disabled="!hasAuth('cache:btn:delete')"
:icon="useRenderIcon(Delete)"
>清理全部</el-button
>
@@ -207,6 +212,7 @@ import Document from "@iconify-icons/ep/document";
import Delete from "@iconify-icons/ep/delete";
import Refresh from "@iconify-icons/ep/refresh";
import { message } from "@/utils/message";
import { hasAuth } from "@/utils/auth";
defineOptions({
name: "CacheList"
});