|
@@ -88,12 +88,7 @@
|
|
</template>
|
|
</template>
|
|
</Dialog>
|
|
</Dialog>
|
|
|
|
|
|
- <!-- 人员搜索 -->
|
|
|
|
- <Dialog :title="radioObject.menduner" v-model="openSearch" :modalClose="false" width="1200" @close="openSearch = false">
|
|
|
|
- <Search @detail="handleDetail" />
|
|
|
|
- </Dialog>
|
|
|
|
-
|
|
|
|
- <!-- 解析文件上传 -->
|
|
|
|
|
|
+ <!-- 解析文件上传 -->
|
|
<Dialog :title="radioObject[radioValue]" v-model="dialog_upload" :modalClose="false" :width="DialogWidth" @close="handleCancel">
|
|
<Dialog :title="radioObject[radioValue]" v-model="dialog_upload" :modalClose="false" :width="DialogWidth" @close="handleCancel">
|
|
<div>
|
|
<div>
|
|
<!-- 简历解析 -->
|
|
<!-- 简历解析 -->
|
|
@@ -154,6 +149,10 @@
|
|
@reset="webOriginList = []"
|
|
@reset="webOriginList = []"
|
|
/>
|
|
/>
|
|
</template>
|
|
</template>
|
|
|
|
+ <!-- 网页解析 -->
|
|
|
|
+ <template v-if="radioValue === 'menduner'">
|
|
|
|
+ <Search ref="SearchRef" />
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
<template #footer>
|
|
<template #footer>
|
|
<el-button @click="handleSubmit" type="success" :disabled="analysisLoading" :loading="analysisLoading">提 交</el-button>
|
|
<el-button @click="handleSubmit" type="success" :disabled="analysisLoading" :loading="analysisLoading">提 交</el-button>
|
|
@@ -209,6 +208,8 @@ const taskType = [
|
|
const taskStatus = ['待解析', '解析中', '解析完成']
|
|
const taskStatus = ['待解析', '解析中', '解析完成']
|
|
const itemData = ref({})
|
|
const itemData = ref({})
|
|
|
|
|
|
|
|
+const SearchRef = ref(null)
|
|
|
|
+
|
|
/** 查询列表 */
|
|
/** 查询列表 */
|
|
const getList = async () => {
|
|
const getList = async () => {
|
|
loading.value = true
|
|
loading.value = true
|
|
@@ -324,6 +325,16 @@ const handleSubmit = async () => {
|
|
})
|
|
})
|
|
handleCreateTask(formData)
|
|
handleCreateTask(formData)
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if (type === 'menduner') {
|
|
|
|
+ const formData = new FormData()
|
|
|
|
+ const list = SearchRef.value?.addList?.length ? SearchRef.value.addList : null
|
|
|
|
+ if (!list) return message.warning('请先选择人员 !')
|
|
|
|
+
|
|
|
|
+ formData.append('task_type', '招聘')
|
|
|
|
+ formData.append('data', list)
|
|
|
|
+ handleCreateTask(formData)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
// 简历解析
|
|
// 简历解析
|
|
@@ -369,20 +380,6 @@ const cardUploadChange = (file, type) => {
|
|
cardUploadRow.value = type ? [{ raw: file }] : file
|
|
cardUploadRow.value = type ? [{ raw: file }] : file
|
|
}
|
|
}
|
|
|
|
|
|
-// 人员搜索
|
|
|
|
-const openSearch = ref(false)
|
|
|
|
-const id = ref(null)
|
|
|
|
-const userId = ref(null)
|
|
|
|
-const handleDetail = async ({id: use_id, userId: use_userId}) => {
|
|
|
|
- if (!use_userId || !use_userId) return message.warning('请先选择人才!')
|
|
|
|
- id.value = use_id; userId.value = use_userId
|
|
|
|
- try {
|
|
|
|
- const data = await TalentMap.getTalentMapDetail(use_userId)
|
|
|
|
- // 去除id
|
|
|
|
- resumeAnalysisToForm(data) // 简历解析
|
|
|
|
- } catch {}
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
// 选择解析方式
|
|
// 选择解析方式
|
|
const DialogWidth = ref('500')
|
|
const DialogWidth = ref('500')
|
|
const handleSelect = () => {
|
|
const handleSelect = () => {
|
|
@@ -395,8 +392,7 @@ const handleSelect = () => {
|
|
DialogWidth.value = '800'
|
|
DialogWidth.value = '800'
|
|
}
|
|
}
|
|
if (type === 'menduner') {
|
|
if (type === 'menduner') {
|
|
- openSearch.value = true
|
|
|
|
- return
|
|
|
|
|
|
+ DialogWidth.value = '1200'
|
|
}
|
|
}
|
|
dialog_upload.value = true
|
|
dialog_upload.value = true
|
|
}
|
|
}
|