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