1
This commit is contained in:
@@ -510,7 +510,7 @@
|
||||
<div v-else-if="qrCodeError" class="qr-code-error">
|
||||
<Icon type="ios-close-circle" size="40" color="#ed4014" />
|
||||
<p>{{ qrCodeError }}</p>
|
||||
|
||||
|
||||
</div>
|
||||
<div v-else-if="qrCodeData" class="qr-code-display">
|
||||
<div v-if="qrCodeData.qrCode || qrCodeData.qr_code_url || qrCodeData.oos_url || qrCodeData.image || qrCodeData.data"
|
||||
@@ -534,6 +534,9 @@
|
||||
<Button type="primary" @click="refreshQrCode" :loading="qrCodeLoading">刷新二维码</Button>
|
||||
</div>
|
||||
</Modal>
|
||||
|
||||
<!-- 简历详情弹窗 -->
|
||||
<ResumeInfoDetail ref="resumeDetail" @on-close="handleResumeDetailClose" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -541,9 +544,13 @@
|
||||
import plaAccountServer from '@/api/profile/pla_account_server.js'
|
||||
import taskStatusServer from '@/api/task/task_status_server.js'
|
||||
import jobTypesServer from '@/api/work/job_types_server.js'
|
||||
import ResumeInfoDetail from './resume_info_detail.vue'
|
||||
|
||||
export default {
|
||||
name: 'PlaAccountDetail',
|
||||
components: {
|
||||
ResumeInfoDetail
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
accountInfo: {},
|
||||
@@ -608,6 +615,12 @@ export default {
|
||||
commandType: 'get_online_resume',
|
||||
commandName: '获取在线简历'
|
||||
},
|
||||
{
|
||||
value: 'parse_and_view_resume',
|
||||
label: '解析简历',
|
||||
icon: 'ios-paper',
|
||||
isCustomAction: true
|
||||
},
|
||||
{
|
||||
value: 'search_jobs',
|
||||
label: '搜索岗位',
|
||||
@@ -1168,6 +1181,12 @@ export default {
|
||||
return
|
||||
}
|
||||
|
||||
// 如果是解析简历的自定义操作
|
||||
if (action === 'parse_and_view_resume') {
|
||||
this.handleParseAndViewResume()
|
||||
return
|
||||
}
|
||||
|
||||
// 从菜单列表中查找对应的配置
|
||||
const actionItem = this.actionMenuList.find(item => item.value === action)
|
||||
if (!actionItem) {
|
||||
@@ -1204,6 +1223,42 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
// 处理解析并查看简历
|
||||
async handleParseAndViewResume() {
|
||||
this.$Modal.confirm({
|
||||
title: '确认解析简历',
|
||||
content: '确定要解析该账号的在线简历吗?系统会自动获取简历并进行AI分析。',
|
||||
onOk: async () => {
|
||||
const loadingMsg = this.$Message.loading({
|
||||
content: '正在解析简历,请稍候...',
|
||||
duration: 0
|
||||
})
|
||||
|
||||
try {
|
||||
// 调用后端接口解析简历
|
||||
const res = await plaAccountServer.parseResume(this.accountId)
|
||||
|
||||
loadingMsg()
|
||||
this.$Message.success('简历解析成功')
|
||||
|
||||
// 打开简历详情弹窗
|
||||
if (res.data && res.data.resumeId) {
|
||||
this.$refs.resumeDetail.show(res.data.resumeId)
|
||||
}
|
||||
} catch (error) {
|
||||
loadingMsg()
|
||||
console.error('解析简历失败:', error)
|
||||
this.$Message.error('解析简历失败: ' + (error.message || '请稍后重试'))
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 关闭简历详情弹窗
|
||||
handleResumeDetailClose() {
|
||||
// 可以在这里添加关闭后的逻辑
|
||||
},
|
||||
|
||||
// 显示二维码
|
||||
async showQrCode() {
|
||||
this.qrCodeVisible = true
|
||||
|
||||
Reference in New Issue
Block a user