|
@@ -1,7 +1,10 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div class="tabHeader">
|
|
|
- <ProgressBar :num="completeNum" :total="items?.length"></ProgressBar>
|
|
|
+ <div class="d-flex align-center justify-space-between">
|
|
|
+ <ProgressBar :num="completeNum" :total="items?.length" style="width: 100%;"></ProgressBar>
|
|
|
+ <!-- <v-btn variant="text" color="primary" @click="handleImportAttachment">导入已有简历</v-btn> -->
|
|
|
+ </div>
|
|
|
<v-tabs v-model="tab" align-tabs="start" color="primary" bg-color="#f7f8fa">
|
|
|
<v-tab v-for="k in items" :key="k.path" :value="k.value" @click="handleClick(k)">
|
|
|
{{ k.text }}
|
|
@@ -23,6 +26,9 @@
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <selectResumeDialog v-model="showAttachment" title="请选择已有的简历导入" :list="attachmentList" @submit="handleAttachmentSubmit" @close="showAttachment = false" />
|
|
|
+ <resumeAnalysis v-model="showAnalysis" :url="selectAttachment" @submit="handleResumeAnalysisSubmit" @close="showAnalysis = false" />
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
@@ -37,8 +43,13 @@ import educationExp from './components/educationExp.vue'
|
|
|
import workExperience from './components/workExperience.vue'
|
|
|
// import projectExperience from './components/projectExperience.vue'
|
|
|
import vocationalSkills from './components/vocationalSkills.vue'
|
|
|
-import { resumePersonFillAll } from '@/api/recruit/personal/resume'
|
|
|
+import { resumePersonFillAll, getPersonResumeCv } from '@/api/recruit/personal/resume'
|
|
|
+import Snackbar from '@/plugins/snackbar'
|
|
|
+import { useRouter } from 'vue-router'
|
|
|
+import selectResumeDialog from '@/views/recruit/personal/position/components/jobDetails/selectResumeDialog.vue'
|
|
|
+import resumeAnalysis from './resumeAnalysis.vue'
|
|
|
|
|
|
+const router = useRouter()
|
|
|
const { t } = useI18n()
|
|
|
const scrollBox = ref()
|
|
|
const tab = ref(0)
|
|
@@ -94,6 +105,36 @@ const complete = (val) => {
|
|
|
resumePersonFillAll()
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+// 获取附件
|
|
|
+const attachmentList = ref([])
|
|
|
+const getAttachmentList = async () => {
|
|
|
+ const data = await getPersonResumeCv()
|
|
|
+ attachmentList.value = data
|
|
|
+}
|
|
|
+// getAttachmentList()
|
|
|
+
|
|
|
+// 导入附件简历
|
|
|
+const showAttachment = ref(false)
|
|
|
+const handleImportAttachment = () => {
|
|
|
+ if (!attachmentList.value.length) {
|
|
|
+ Snackbar.warning('请先上传附件简历')
|
|
|
+ router.push('/recruit/personal/personalCenter/resume/attachment')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ showAttachment.value = true
|
|
|
+}
|
|
|
+
|
|
|
+const selectAttachment = ref('')
|
|
|
+const showAnalysis = ref(false)
|
|
|
+const handleAttachmentSubmit = (val) => {
|
|
|
+ if (!val) return
|
|
|
+ selectAttachment.value = attachmentList.value.find(e => e.id === val).url
|
|
|
+ showAttachment.value = false
|
|
|
+ showAnalysis.value = true
|
|
|
+}
|
|
|
+
|
|
|
+const handleResumeAnalysisSubmit = () => {}
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|