全项目加载动效重做和简历经历区域的时间和编辑按钮同位置显示切换
This commit is contained in:
@@ -138,6 +138,8 @@
|
||||
</div>
|
||||
</Transition>
|
||||
</Teleport>
|
||||
<!-- 全屏加载遮罩 -->
|
||||
<FullscreenLoading :visible="fullLoading" :text="fullLoadingText" title="Nova 正在帮您努力处理~" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
@@ -145,6 +147,7 @@ import { computed, ref, watch, nextTick } from 'vue'
|
||||
import type { DiagnosisIssue, DescriptionParagraph } from '@/api/resume'
|
||||
import { polishDiagnosisIssue, feedbackDiagnosisIssue, resolveDiagnosisIssue } from '@/api/resume'
|
||||
import { computeDiff, type DiffSegment } from '@/utils/textDiff'
|
||||
import FullscreenLoading from '@/components/FullscreenLoading.vue'
|
||||
|
||||
// ==================== Props ====================
|
||||
|
||||
@@ -182,6 +185,12 @@ const moduleTitleMap: Record<string, string> = {
|
||||
/** 抽屉标题 */
|
||||
const moduleTitle = computed(() => moduleTitleMap[props.moduleType] || '问题修复')
|
||||
|
||||
// ==================== 全屏加载状态 ====================
|
||||
/** 全屏加载是否显示 */
|
||||
const fullLoading = ref(false)
|
||||
/** 全屏加载文案 */
|
||||
const fullLoadingText = ref('')
|
||||
|
||||
// ==================== 原文处理 ====================
|
||||
|
||||
/** 将原文内容统一转为字符串(description 数组的 text 逐行拼接) */
|
||||
@@ -282,12 +291,8 @@ async function handleAiPolish() {
|
||||
}
|
||||
|
||||
// 全屏加载提示
|
||||
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(content)
|
||||
@@ -300,7 +305,7 @@ async function handleAiPolish() {
|
||||
} catch {
|
||||
ElMessage.error('润色请求失败,请稍后重试')
|
||||
} finally {
|
||||
loading.close()
|
||||
fullLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -373,12 +378,8 @@ async function handleSubmit() {
|
||||
}
|
||||
|
||||
// 全屏加载提示
|
||||
const loading = ElLoading.service({
|
||||
lock: true,
|
||||
text: '正在提交新版本…',
|
||||
background: 'rgba(0, 0, 0, 0.5)',
|
||||
customClass: 'resume-upload-loading',
|
||||
})
|
||||
fullLoadingText.value = '正在提交新版本…'
|
||||
fullLoading.value = true
|
||||
|
||||
try {
|
||||
// 1. 调用 resolve 接口标记问题已处理
|
||||
@@ -394,7 +395,7 @@ async function handleSubmit() {
|
||||
} catch {
|
||||
ElMessage.error('提交失败,请稍后重试')
|
||||
} finally {
|
||||
loading.close()
|
||||
fullLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user