|
@@ -6,9 +6,19 @@
|
|
|
<el-tab-pane label="简历解析" v-loading="loading">
|
|
|
<div v-if="fileUrl">
|
|
|
<div class="text-right m-b-10px">
|
|
|
+ <el-button @click="handleText">查看文本信息</el-button>
|
|
|
<el-button type="primary" @click="handleResetUpload">重新上传简历</el-button>
|
|
|
</div>
|
|
|
<IFrame :src="fileUrl" />
|
|
|
+ <el-drawer
|
|
|
+ v-model="drawer"
|
|
|
+ modal-class="drawer"
|
|
|
+ size="75%"
|
|
|
+ direction="ltr"
|
|
|
+ title="简历解析"
|
|
|
+ >
|
|
|
+ <p v-for="(text, index) in resumeTxt" :key="text + index">{{ text }}</p>
|
|
|
+ </el-drawer>
|
|
|
</div>
|
|
|
<el-upload
|
|
|
v-else
|
|
@@ -63,7 +73,7 @@
|
|
|
<template #header>
|
|
|
<CardTitle title="已有标签" />
|
|
|
</template>
|
|
|
- <Tags v-if="Object.keys(result).length" :data="result?.resume?.skillsObjs" />
|
|
|
+ <m-tags v-if="Object.keys(result).length" :data="result?.resume?.skillsObjs" />
|
|
|
</el-card>
|
|
|
<!-- <el-card shadow="never" class="m-t-10px">
|
|
|
<template #header>
|
|
@@ -95,12 +105,11 @@ import Edu from './components/edu.vue'
|
|
|
import Exp from './components/exp.vue'
|
|
|
import JobIntention from './components/jobIntention.vue'
|
|
|
import Training from './components/training.vue'
|
|
|
-import Tags from './components/tags.vue'
|
|
|
+import MTags from './components/tags.vue'
|
|
|
import TagsRecommend from './components/tagsRecommend.vue'
|
|
|
import Search from './components/search.vue'
|
|
|
|
|
|
const { push } = useRouter()
|
|
|
-
|
|
|
const loading = ref(false)
|
|
|
const saveLoading = ref(false)
|
|
|
const result = ref(cloneDeep(DefaultData))
|
|
@@ -121,6 +130,10 @@ const { id } = route.params
|
|
|
const baseUrl = import.meta.env.VITE_PREVIEW_URL
|
|
|
const isEdit = ref(false)
|
|
|
|
|
|
+const drawer = ref(false)
|
|
|
+
|
|
|
+const resumeTxt = ref([])
|
|
|
+
|
|
|
// 地区树状列表
|
|
|
const areaTreeData = ref([])
|
|
|
const getDictData = async () => {
|
|
@@ -200,6 +213,12 @@ const submitFormSuccess = () => {
|
|
|
unref(uploadRef)?.clearFiles()
|
|
|
}
|
|
|
|
|
|
+// 查看文本信息
|
|
|
+const handleText = () => {
|
|
|
+ drawer.value = true
|
|
|
+ resumeTxt.value = result.value.resume.rawText.split('\n')
|
|
|
+}
|
|
|
+
|
|
|
// 重新上传简历
|
|
|
const handleResetUpload = async () => {
|
|
|
await message.confirm('是否确定重新上传简历?确定后将清空当前信息')
|
|
@@ -258,3 +277,8 @@ const handleUpdateJobIntention = async (val, type) => {
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+:deep(.drawer) {
|
|
|
+ position: absolute;
|
|
|
+}
|
|
|
+</style>
|