mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-11 20:05:44 +00:00
refactor(api): 统一详情接口使用路径参数替代查询参数
feat(utils): 新增部门树格式化工具函数 style(components): 调整通知组件样式和内容显示 fix(store): 修复通知公告获取逻辑并添加日志 perf(request): 优化请求拦截器仅对非GET请求显示成功消息 refactor(views): 重构多个模块的删除操作确认逻辑 docs(types): 移除未使用的全局类型定义 style(views): 调整表格列顺序和操作按钮样式 fix(components): 修复部门树组件数据加载和格式化 refactor(api): 重构用户、角色等模块的接口参数类型 style(views): 统一表单选择器宽度和布局
This commit is contained in:
+10
-8
@@ -6,7 +6,7 @@
|
||||
<el-row :gutter="16">
|
||||
<!-- 基本信息 -->
|
||||
<el-col :span="24">
|
||||
<el-card>
|
||||
<el-card shadow="hover">
|
||||
<template #header>
|
||||
<div class="flex items-center gap-2">
|
||||
<el-icon><Monitor /></el-icon>
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
<!-- 监控图表 -->
|
||||
<el-col :span="12" class="mt-4">
|
||||
<el-card>
|
||||
<el-card shadow="hover">
|
||||
<template #header>
|
||||
<div class="flex items-center gap-2">
|
||||
<el-icon><Stopwatch /></el-icon>
|
||||
@@ -74,7 +74,7 @@
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12" class="mt-4">
|
||||
<el-card>
|
||||
<el-card shadow="hover">
|
||||
<template #header>
|
||||
<div class="flex items-center gap-2">
|
||||
<el-icon><Stopwatch /></el-icon>
|
||||
@@ -95,7 +95,7 @@
|
||||
<el-row :gutter="16">
|
||||
<!-- 缓存列表 -->
|
||||
<el-col :span="8">
|
||||
<el-card :loading="loading" shadow="hover">
|
||||
<el-card :loading="loading" shadow="hover" >
|
||||
<template #header>
|
||||
<div class="flex justify-between items-center">
|
||||
<div class="flex items-center gap-2">
|
||||
@@ -132,9 +132,10 @@
|
||||
class="box-item"
|
||||
:title="`确认删除缓存 ${row.cache_name} 吗?`"
|
||||
placement="top"
|
||||
@confirm="handleClearCacheName(row)"
|
||||
>
|
||||
<template #reference>
|
||||
<el-button type="danger" size="small" link icon="delete" @click="handleClearCacheName(row)" />
|
||||
<el-button type="danger" size="small" link icon="delete" />
|
||||
</template>
|
||||
</el-popconfirm>
|
||||
</template>
|
||||
@@ -181,9 +182,10 @@
|
||||
class="box-item"
|
||||
:title="`确认删除键 ${row.cacheKey} 吗?`"
|
||||
placement="top"
|
||||
@confirm="handleClearCacheKey(row.cacheKey)"
|
||||
>
|
||||
<template #reference>
|
||||
<el-button type="danger" size="small" link icon="delete" @click="handleClearCacheKey(row.cacheKey)" />
|
||||
<el-button type="danger" size="small" link icon="delete" />
|
||||
</template>
|
||||
</el-popconfirm>
|
||||
</template>
|
||||
@@ -325,7 +327,7 @@ const refreshCacheKeys = () => {
|
||||
};
|
||||
|
||||
// 清理缓存键名
|
||||
const handleClearCacheKey = async (cacheKey: string) => {
|
||||
async function handleClearCacheKey (cacheKey: string) {
|
||||
try {
|
||||
await CacheAPI.deleteCacheKey(cacheKey);
|
||||
getCacheKeyList();
|
||||
@@ -335,7 +337,7 @@ const handleClearCacheKey = async (cacheKey: string) => {
|
||||
};
|
||||
|
||||
// 缓存内容相关方法
|
||||
const handleCacheValue = async (cacheKey: string) => {
|
||||
async function handleCacheValue (cacheKey: string) {
|
||||
try {
|
||||
loading.value = true;
|
||||
const response = await CacheAPI.getCacheValue(nowCacheName.value, cacheKey)
|
||||
|
||||
Reference in New Issue
Block a user