feat: 统一编码声明为utf-8格式并优化模板生成逻辑

fix(notice): 修正公告状态查询条件为字符串类型
fix(job): 将日志状态显示从布尔值改为字符串类型
fix(dict): 修复字典状态显示与表单提交问题

refactor: 重构模板生成代码结构,移除冗余文件
refactor(schema): 优化字段类型定义和查询参数处理

style: 调整前端样式和布局问题
style: 清理重复注释和未使用代码

docs: 更新示例SQL模板和注释
docs: 完善代码生成模板文档

chore: 移除已废弃的gen_demo视图文件
This commit is contained in:
zhangtao
2025-12-03 00:53:19 +08:00
parent 3c12fa56eb
commit 279ba76709
32 changed files with 823 additions and 1992 deletions
@@ -140,8 +140,8 @@
<el-table-column label="任务组名" prop="job_group" min-width="120" show-overflow-tooltip />
<el-table-column label="执行状态" prop="status" min-width="100" show-overflow-tooltip>
<template #default="scope">
<el-tag :type="scope.row.status === '0' ? 'success' : 'danger'">
{{ scope.row.status ? "成功" : "失败" }}
<el-tag :type="scope.row.status === '0' ? 'primary' : 'success'">
{{ scope.row.status === '0' ? "运行中" : "完成" }}
</el-tag>
</template>
</el-table-column>
@@ -230,8 +230,8 @@
{{ detailFormData.job_group }}
</el-descriptions-item>
<el-descriptions-item label="执行状态" :span="2">
<el-tag :type="detailFormData.status === '0' ? 'success' : 'danger'">
{{ detailFormData.status ? "成功" : "失败" }}
<el-tag :type="detailFormData.status === '0' ? 'primary' : 'success'">
{{ detailFormData.status === '0' ? "运行中" : "完成" }}
</el-tag>
</el-descriptions-item>
<el-descriptions-item label="执行信息" :span="2">
@@ -99,7 +99,6 @@
<div
v-for="app in applicationList"
:key="app.id"
class="app-grid-item"
@mouseenter="app.id && (hoveredCard = app.id)"
@mouseleave="hoveredCard = null"
@click="app.status && app.id && openAppInternal(app)"
@@ -534,6 +533,7 @@ onMounted(() => {
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 16px;
padding: 0 2px;
justify-items: stretch;
@media (max-width: 768px) {
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
@@ -546,16 +546,12 @@ onMounted(() => {
}
}
// 卡片项
.app-grid-item {
height: fit-content;
}
// 卡片样式
.app-card {
display: flex;
flex-direction: column;
height: 100%;
// min-height: 180px;
overflow: hidden;
cursor: pointer;
background: linear-gradient(145deg, var(--el-bg-color) 0%, var(--el-bg-color-page) 100%);
@@ -694,7 +690,6 @@ onMounted(() => {
.app-description {
display: -webkit-box;
min-height: 2.8em;
margin: 0;
overflow: hidden;
text-overflow: ellipsis;