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