refactor: 重构代码结构并优化命名一致性

feat(backend): 新增模块示例和路径配置
fix(backend): 修复菜单模型名称唯一性约束
refactor(backend): 重构日志模块和路径配置
style(backend): 统一API方法命名规范
refactor(frontend): 重构API方法命名规范
fix(frontend): 修复权限校验问题
refactor: 移动定时任务测试文件到正确模块
docs: 更新模板文件路径
refactor: 优化日志记录和错误处理
fix: 修复排序默认值问题
This commit is contained in:
zhangtao
2025-11-19 02:24:16 +08:00
parent fce6333722
commit 279f547f84
132 changed files with 1670 additions and 1106 deletions
+4 -4
View File
@@ -129,7 +129,7 @@
</div>
<div>
<el-button
v-hasPerm="['module_monitor:cache:refresh']"
v-hasPerm="['module_monitor:cache:query']"
type="primary"
link
icon="RefreshRight"
@@ -151,7 +151,7 @@
<el-table-column prop="cache_name" label="缓存名称" show-overflow-tooltip>
<template #default="{ row }">
<el-button
v-hasPerm="['module_monitor:cache:view']"
v-hasPerm="['module_monitor:cache:query']"
type="primary"
link
@click="getCacheKeyList(row)"
@@ -203,7 +203,7 @@
</div>
<div>
<el-button
v-hasPerm="['module_monitor:cache:refresh']"
v-hasPerm="['module_monitor:cache:query']"
type="primary"
link
icon="RefreshRight"
@@ -276,7 +276,7 @@
</div>
<div>
<el-button
v-hasPerm="['module_monitor:cache:delete_all']"
v-hasPerm="['module_monitor:cache:delete']"
type="danger"
link
icon="delete"
@@ -59,7 +59,7 @@
<el-row :gutter="10">
<el-col :span="1.5">
<el-button
v-hasPerm="['module_monitor:online:force_logout']"
v-hasPerm="['module_monitor:online:delete']"
type="danger"
icon="delete"
@click="handleClear"
@@ -74,7 +74,7 @@
<el-col :span="1.5">
<el-tooltip content="刷新">
<el-button
v-hasPerm="['module_monitor:online:refresh']"
v-hasPerm="['module_monitor:online:delete']"
type="primary"
icon="refresh"
circle
@@ -202,7 +202,7 @@
>
<template #default="scope">
<el-button
v-hasPerm="['module_monitor:online:force_logout']"
v-hasPerm="['module_monitor:online:delete']"
type="danger"
size="small"
link
@@ -280,7 +280,7 @@ async function handleRefresh() {
async function loadingData() {
loading.value = true;
try {
const response = await OnlineAPI.getOnlineList(queryFormData);
const response = await OnlineAPI.listOnline(queryFormData);
pageTableData.value = response.data.data.items;
total.value = response.data.data.total;
} catch (error: any) {
@@ -107,7 +107,7 @@
<el-col :span="1.5">
<el-checkbox
v-model="showHiddenFiles"
v-hasPerm="['module_monitor:resource:show_hidden']"
v-hasPerm="['module_monitor:resource:query']"
@change="handleShowHiddenChange"
>
显示隐藏文件
@@ -116,14 +116,14 @@
<el-col :span="1.5">
<el-button-group>
<el-button
v-hasPerm="['module_monitor:resource:view_list']"
v-hasPerm="['module_monitor:resource:query']"
:type="viewMode === 'list' ? 'primary' : ''"
@click="viewMode = 'list'"
>
<el-icon><List /></el-icon>
</el-button>
<el-button
v-hasPerm="['module_monitor:resource:view_grid']"
v-hasPerm="['module_monitor:resource:query']"
:type="viewMode === 'grid' ? 'primary' : ''"
@click="viewMode = 'grid'"
>
@@ -134,7 +134,7 @@
<el-col :span="1.5">
<el-tooltip content="刷新">
<el-button
v-hasPerm="['module_monitor:resource:refresh']"
v-hasPerm="['module_monitor:resource:query']"
type="primary"
icon="refresh"
circle
@@ -172,7 +172,6 @@
<Document v-else />
</el-icon>
<span
v-hasPerm="['module_monitor:resource:preview']"
:class="{ 'file-name-clickable': true }"
@click="handleFileNameClick(row)"
>
@@ -449,7 +448,7 @@ const currentQuery = computed(() => {
async function loadFileList() {
loading.value = true;
try {
const response = await ResourceAPI.getResourceList(currentQuery.value);
const response = await ResourceAPI.listResource(currentQuery.value);
// 正确处理后端返回的分页数据结构
const pageResult = response.data?.data;