全项目加载动效重做和简历经历区域的时间和编辑按钮同位置显示切换
This commit is contained in:
@@ -347,6 +347,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 全屏加载遮罩 -->
|
||||
<FullscreenLoading :visible="fullLoading" :text="fullLoadingText" title="Nova 正在帮您努力处理~" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
@@ -360,6 +362,7 @@ import type { ResumeListItem } from '@/api/resume'
|
||||
import { fetchCustomizeResume, generateCustomizeResume, aiEditResume, rollbackCustomizeResume } from '@/api/jobs'
|
||||
import type { CustomizeResumeData, AiEditChatMessage } from '@/api/jobs'
|
||||
import AiThinkingIndicator from '@/components/tools/AiThinkingIndicator.vue'
|
||||
import FullscreenLoading from '@/components/FullscreenLoading.vue'
|
||||
|
||||
// ==================== 类型定义 ====================
|
||||
|
||||
@@ -415,6 +418,11 @@ const emit = defineEmits<{
|
||||
|
||||
// ==================== 步骤控制 ====================
|
||||
|
||||
/** 全屏加载是否显示 */
|
||||
const fullLoading = ref(false)
|
||||
/** 全屏加载文案 */
|
||||
const fullLoadingText = ref('')
|
||||
|
||||
/** 当前步骤:1-确认入口(居中弹窗) 2-差距分析(右侧抽屉) 3-定制简历 4-预览 */
|
||||
const currentStep = ref(1)
|
||||
|
||||
@@ -483,10 +491,8 @@ async function handleDrawerNext() {
|
||||
* 流程:先 GET 查询 → 有数据直接用 → 无数据则 POST 生成 → 再 GET 查询
|
||||
*/
|
||||
async function fetchAndLoadCustomResume() {
|
||||
const loadingInstance = ElLoading.service({
|
||||
text: '正在生成定制简历...',
|
||||
background: 'rgba(0, 0, 0, 0.5)',
|
||||
})
|
||||
fullLoadingText.value = '正在生成定制简历...'
|
||||
fullLoading.value = true
|
||||
try {
|
||||
// 第一步:查询是否已有定制简历
|
||||
let queryRes = await fetchCustomizeResume(props.jobId)
|
||||
@@ -522,7 +528,7 @@ async function fetchAndLoadCustomResume() {
|
||||
console.error('[JobResumeCustomDialog] 定制简历流程失败', e)
|
||||
ElMessage.error('定制简历失败,请稍后重试')
|
||||
} finally {
|
||||
loadingInstance.close()
|
||||
fullLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user