提交
This commit is contained in:
parent
ae62676c5e
commit
cef8b4a5a1
@ -1,31 +1,12 @@
|
||||
import { http } from '@/utils/http/axios';
|
||||
|
||||
/**
|
||||
* @description: 缓存名称列表
|
||||
* @description: 缓存监控信息
|
||||
*/
|
||||
export function getCacheNames(params?) {
|
||||
export function getCacheInfo(params?) {
|
||||
return http.request({
|
||||
url: '/cache/getNames',
|
||||
url: '/cache/info',
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
/**
|
||||
* @description: 缓存key列表
|
||||
*/
|
||||
export function getCacheKeys(cacheName) {
|
||||
return http.request({
|
||||
url: '/cache/getKeys/'+cacheName,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* @description: 缓存value列表
|
||||
*/
|
||||
export function getCacheValue(params?) {
|
||||
return http.request({
|
||||
url: '/cache/getValue',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
@ -30,7 +30,7 @@
|
||||
<el-card>
|
||||
<template #header>
|
||||
<div class="clearfix">
|
||||
<span>缓存内容</span>
|
||||
<span>缓存内容</span>
|
||||
<el-button @click="clearAll" style="float: right; padding: 3px 0" type="text"><el-icon><RefreshRight/></el-icon>清理全部</el-button>
|
||||
</div>
|
||||
</template>
|
||||
@ -124,10 +124,14 @@ const handleDelete = async(row,type)=> {
|
||||
await confirm('确定要删除?');
|
||||
if(type=='cacheName') {
|
||||
await deleteCacheName(row.cacheName)
|
||||
message("删除成功");
|
||||
loadCacheNames()
|
||||
}else {
|
||||
await deleteCacheKey(row.cacheKey)
|
||||
}
|
||||
message("删除成功");
|
||||
loadCachekeys()
|
||||
}
|
||||
|
||||
}
|
||||
const clearAll = async()=> {
|
||||
await confirm('确定要清理全部?');
|
||||
|
@ -76,7 +76,6 @@
|
||||
<script lang="ts" setup>
|
||||
import { onMounted,ref,reactive } from 'vue';
|
||||
import { getServerInfo} from '@/api/monitor/server';
|
||||
import { message, confirm } from "@/utils/auth";
|
||||
|
||||
const tabledata = ref([{}])
|
||||
const formData = reactive({
|
||||
|
Loading…
Reference in New Issue
Block a user