|
@@ -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
|
|
@@ -79,7 +89,7 @@
|
|
|
<el-button type="primary" class="m-l-12px" @click="saveTags">保存</el-button>
|
|
|
<el-button @click="addNewTag = false">关闭</el-button>
|
|
|
</div>
|
|
|
- <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>
|
|
@@ -111,14 +121,16 @@ 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 addNewTag = ref(false)
|
|
|
const newTagText = ref('')
|
|
|
+
|
|
|
const saveTags = () => {
|
|
|
+ // 保存标签
|
|
|
addNewTag.value = false
|
|
|
}
|
|
|
|
|
@@ -142,6 +154,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 () => {
|
|
@@ -221,6 +237,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('是否确定重新上传简历?确定后将清空当前信息')
|
|
@@ -279,3 +301,8 @@ const handleUpdateJobIntention = async (val, type) => {
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+:deep(.drawer) {
|
|
|
+ position: absolute;
|
|
|
+}
|
|
|
+</style>
|