feat: 项目结构重构优化

This commit is contained in:
Ray.Hao
2025-12-26 12:35:37 +08:00
parent 65ad4fe59f
commit aa374dd2ba
164 changed files with 11305 additions and 3103 deletions

View File

@@ -1,4 +1,4 @@
<!-- 字典 -->
<!-- 字典 -->
<template>
<div class="app-container">
<div class="filter-section">
@@ -86,7 +86,7 @@
/>
</el-card>
<!--字典项弹窗-->
<!-- 字典项弹窗 -->
<el-dialog
v-model="dialog.visible"
:title="dialog.title"
@@ -146,7 +146,7 @@
<template #footer>
<div class="dialog-footer">
<el-button type="primary" @click="handleSubmitClick"> </el-button>
<el-button @click="handleCloseDialog"> </el-button>
<el-button @click="handleCloseDialog"> </el-button>
</div>
</template>
</el-dialog>
@@ -156,7 +156,7 @@
<script setup lang="ts">
import type { TagProps } from "element-plus";
import DictAPI from "@/api/system/dict";
import type { DictItemPageQuery, DictItemPageVo, DictItemForm } from "@/api/types";
import type { DictItemPageQuery, DictItemPageVo, DictItemForm } from "@/types/api";
const route = useRoute();
@@ -229,7 +229,7 @@ function handleSelectionChange(selection: any) {
// 打开弹窗
function handleOpenDialog(row?: DictItemPageVo) {
dialog.visible = true;
dialog.title = row ? "编辑字典" : "新增字典";
dialog.title = row ? "编辑字典" : "新增字典";
if (row?.id) {
DictAPI.getDictItemFormData(dictCode.value, row.id).then((data) => {