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>
<template>
<div class="profile-container">
<el-row :gutter="20">
<!-- 左侧个人信息卡片 -->
@@ -224,14 +224,16 @@
</template>
<script lang="ts" setup>
import UserAPI, {
UserProfileVO,
import UserAPI from "@/api/system/user";
import type {
UserProfileVo,
PasswordChangeForm,
MobileUpdateForm,
EmailUpdateForm,
UserProfileForm,
} from "@/api/system/user";
} from "@/types/api";
import { ref, reactive } from "vue";
import FileAPI from "@/api/file";
import { useUserStoreHook } from "@/store";
@@ -239,7 +241,7 @@ import { Camera } from "@element-plus/icons-vue";
const userStore = useUserStoreHook();
const userProfile = ref<UserProfileVO>({});
const userProfile = ref<UserProfileVo>({});
const enum DialogType {
ACCOUNT = "account",
@@ -251,7 +253,7 @@ const enum DialogType {
const dialog = reactive({
visible: false,
title: "",
type: "" as DialogType, // 修改账号资料,修改密码、绑定手机、绑定邮箱
type: "" as DialogType, // 修改账号资料,修改密码、绑定手机、绑定邮箱"
});
const userProfileFormRef = ref();
const passwordChangeFormRef = ref();

View File

@@ -1,4 +1,4 @@
<template>
<template>
<div class="app-container">
<!-- 搜索区域 -->
<div class="filter-section">
@@ -41,12 +41,12 @@
<el-table-column label="通知标题" prop="title" min-width="200" />
<el-table-column align="center" label="通知类型" width="150">
<template #default="scope">
<DictLabel v-model="scope.row.type" code="notice_type" />
<DictTag v-model="scope.row.type" code="notice_type" />
</template>
</el-table-column>
<el-table-column align="center" label="通知等级" width="100">
<template #default="scope">
<DictLabel v-model="scope.row.level" code="notice_level" />
<DictTag v-model="scope.row.level" code="notice_level" />
</template>
</el-table-column>
<el-table-column
@@ -115,14 +115,11 @@ defineOptions({
import { onMounted, reactive, ref } from "vue";
import { ElMessage } from "element-plus";
import NoticeAPI, {
type NoticePageVO,
type NoticePageQuery,
type NoticeDetailVO,
} from "@/api/system/notice";
import NoticeAPI from "@/api/system/notice";
import type { NoticePageVo, NoticePageQuery } from "@/types/api";
const queryFormRef = ref();
const pageData = ref<NoticePageVO[]>([]);
const pageData = ref<NoticePageVo[]>([]);
const loading = ref(false);
const total = ref(0);
@@ -132,7 +129,7 @@ const queryParams = reactive<NoticePageQuery>({
});
const noticeDialogVisible = ref(false);
const noticeDetail = ref<NoticeDetailVO | null>(null);
const noticeDetail = ref<any>(null);
async function handleQuery() {
loading.value = true;