全项目加载动效重做和简历经历区域的时间和编辑按钮同位置显示切换

This commit is contained in:
2026-06-30 17:09:09 +08:00
parent 0aebde7bd3
commit 8773c65b28
24 changed files with 610 additions and 489 deletions
+13 -8
View File
@@ -232,14 +232,17 @@
</div>
</div>
</div>
<!-- 全屏加载遮罩 -->
<FullscreenLoading :visible="fullLoading" :text="fullLoadingText" title="Nova 正在帮您努力处理~" />
</template>
<script setup lang="ts">
import { ref, computed, watch } from 'vue'
import { useStore } from 'vuex'
import { ElMessage, ElLoading } from 'element-plus'
import { ElMessage } from 'element-plus'
import RegionSelector from '@/components/tools/RegionSelector.vue'
import { polishDiagnosisIssue } from '@/api/resume'
import FullscreenLoading from '@/components/FullscreenLoading.vue'
/** 教育经历单条数据结构 */
interface EducationItem {
@@ -329,6 +332,12 @@ const emit = defineEmits<{
/** Vuex store 实例 */
const store = useStore()
// ==================== 全屏加载状态 ====================
/** 全屏加载是否显示 */
const fullLoading = ref(false)
/** 全屏加载文案 */
const fullLoadingText = ref('')
/** 模块名称映射表 */
const moduleTitleMap: Record<string, string> = {
info: '基本信息',
@@ -490,12 +499,8 @@ async function handleAiPolish() {
return
}
aiPolishing.value = true
const loading = ElLoading.service({
lock: true,
text: 'AI正在润色中……',
background: 'rgba(0, 0, 0, 0.5)',
customClass: 'resume-upload-loading',
})
fullLoadingText.value = 'AI正在润色中……'
fullLoading.value = true
try {
const res = await polishDiagnosisIssue([text])
if (res.code === 0 && res.data?.content) {
@@ -508,7 +513,7 @@ async function handleAiPolish() {
ElMessage.error('请求失败,请稍后重试')
} finally {
aiPolishing.value = false
loading.close()
fullLoading.value = false
}
}