refactor(api): 统一更新接口使用路径参数传递ID

refactor(backend): 重构CRUD基类查询方法去除重复结果

feat(application): 新增应用系统模块基础结构

fix(backend): 修复多处日志记录ID变量名错误

style(backend): 清理无用代码和注释

fix(frontend): 修复用户导入功能参数错误

docs(backend): 更新环境配置示例注释

perf(backend): 优化导出功能数据处理逻辑

test(frontend): 添加任务日志功能开发中提示

chore: 更新角色菜单权限数据
This commit is contained in:
zhangtao
2025-09-05 01:00:38 +08:00
parent 9fda6f3bfc
commit 4df6241e8b
92 changed files with 2462 additions and 753 deletions
@@ -0,0 +1,32 @@
<!-- 字典数据 -->
<template>
<el-drawer v-model="drawerVisible" :title="'【' + props.dictLabel + '】日志数据'" :size="drawerSize">
<!-- 搜索区域 -->
<div class="search-container">
<!-- 开发中 -->
</div>
</el-drawer>
</template>
<script setup lang="ts">
// 处理可以参考字典数据抽屉
// 添加 props 来接收 dictType
const props = defineProps({
dictType: {
type: String,
required: true
},
dictLabel: {
type: String,
required: true
}
})
import { useAppStore } from "@/store/modules/app.store";
import { DeviceEnum } from "@/enums/settings/device.enum";
const appStore = useAppStore();
const drawerSize = computed(() => (appStore.device === DeviceEnum.DESKTOP ? "80%" : "60%"));
const drawerVisible = ref<boolean>(false);
</script>
+16 -3
View File
@@ -189,6 +189,15 @@
<el-table-column fixed="right" label="操作" min-width="240">
<template #default="scope">
<div class="flex">
<el-button
type="info"
size="small"
link
icon="document"
@click="handleOpenDialog('log', scope.row.id)"
>
日志
</el-button>
<el-button
type="info"
size="small"
@@ -627,7 +636,7 @@ const formData = reactive<JobForm>({
const dialogVisible = reactive({
title: "",
visible: false,
type: "create" as "create" | "update" | "detail",
type: "create" as "create" | "update" | "detail" | "log",
});
// 表单验证规则
@@ -731,7 +740,7 @@ async function handleCloseDialog() {
// 打开弹窗
async function handleOpenDialog(
type: "create" | "update" | "detail",
type: "create" | "update" | "detail" | "log",
id?: number
) {
dialogVisible.type = type;
@@ -743,6 +752,10 @@ async function handleOpenDialog(
} else if (type === "update") {
dialogVisible.title = "修改任务";
Object.assign(formData, response.data.data);
} else if (type === "log") {
// 处理可以参考字典数据
dialogVisible.title = "任务日志";
ElMessage.success("开发中...");
}
} else {
dialogVisible.title = "新增任务";
@@ -761,7 +774,7 @@ async function handleSubmit() {
const id = formData.id;
if (id) {
try {
await JobAPI.updateJob(formData);
await JobAPI.updateJob(id, formData);
dialogVisible.visible = false;
resetForm();
handleCloseDialog();