1 |
- import{a as Ie,r as V,aB as Ae,q as Ne,aj as D,c as v,o as f,b as e,S as a,K as i,Q as t,M as j,P as _,G as S,R as I,a9 as N,u as U}from"./vue.YrNK8sx4.js";import{m as Ve,n as je,p as De,q as Me,t as qe,E as q}from"./index.2UkL7s5t.js";import{_ as Re}from"./_plugin-vue_export-helper.DlAUqK2U.js";const Ce={class:"min-h-screen bg-gradient-custom"},Se={class:"max-w-4xl mx-auto p-6 relative overflow-y-auto",style:{height:"100vh"}},Ee={class:"bg-[#1d1e3a] text-white p-4 rounded-t-lg"},$e={class:"flex justify-between items-center"},Te={class:"text-sm"},Pe={class:"text-sm"},Le={key:0,class:"bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative",role:"alert"},Ue={class:"block sm:inline"},Be={key:1,class:"bg-white rounded-b-lg shadow-lg p-6"},He={class:"flex justify-between items-center mb-8 pb-4 border-b"},Ge={class:"flex items-center space-x-4"},We={class:"w-20 h-20 bg-gray-200 rounded-lg overflow-hidden"},ze=["src"],Ze={class:"text-2xl font-bold"},Fe={class:"text-gray-600"},Ye={key:0,class:"text-gray-500 text-sm"},Oe={class:"text-right"},Qe={class:"text-4xl font-bold text-yellow-500"},Je={class:"text-sm text-yellow-500"},Ke={class:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-8"},Xe={class:"font-semibold text-blue-600"},es={class:"mb-8"},ss={class:"space-y-4"},ts={class:"border-b pb-4"},as={class:"flex items-center justify-between mb-2"},ls={class:"text-gray-600 text-sm"},is={class:"border-b pb-4"},os={class:"flex items-center justify-between mb-2"},ns={key:0,class:"mt-2 border-l-4 border-red-500 pl-3 bg-red-50 p-2 rounded"},rs={key:0,class:"list-disc pl-5 text-gray-600 text-sm"},ds={key:1,class:"text-gray-600 text-sm"},cs={key:0,class:"border-b pb-4"},us={class:"list-disc pl-5 text-gray-600 text-sm"},_s={key:1,class:"border-b pb-4"},ps={class:"list-disc pl-5 text-gray-600 text-sm"},vs={class:"border-b pb-4"},fs={class:"flex items-center justify-between mt-4 mb-2"},ms={class:"mb-8"},gs={class:"space-y-4"},ys={class:"flex items-center justify-between mb-2"},hs={class:"text-gray-600"},bs={class:"text-gray-600 text-sm"},xs={class:"mb-8"},ws={class:"space-y-4"},ks={class:"mb-4"},Is={class:"flex items-start space-x-2"},As={class:"bg-blue-100 text-blue-800 px-2 py-1 rounded text-sm"},Ns={class:"flex-1"},Vs={class:"font-semibold text-gray-800"},js={key:0,class:"mt-4 flex space-x-4"},Ds={class:"w-2/3"},Ms={class:"bg-white p-4 rounded-lg"},qs={class:"mb-4"},Rs={class:"flex items-start space-x-2"},Cs={class:"flex-1"},Ss={class:"text-gray-700"},Es={class:"flex items-start space-x-2"},$s={class:"flex-1"},Ts={class:"text-gray-600 m-0"},Ps={class:"mt-1 text-blue-500"},Ls={class:"w-1/3"},Us={class:"video-container"},Bs=["src","poster"],Hs={key:1,class:"mt-4"},Gs={class:"bg-white p-4 rounded-lg"},Ws={class:"flex items-center justify-between mb-3"},zs={class:"flex items-center space-x-2"},Zs={class:"text-gray-700",style:{margin:"0"}},Fs={key:0,class:"mt-3 space-y-2"},Ys={class:"flex items-start"},Os={class:"mr-2 text-gray-500"},Qs={class:"flex-1"},Js={class:"text-gray-700"},Ks={key:0,class:"text-xs text-green-600 mt-1"},Xs={key:2,class:"mt-4 flex space-x-4"},et={class:"w-1/3"},st={class:"bg-white p-4 rounded-lg"},tt={class:"flex items-start space-x-2"},at={class:"flex-1"},lt={class:"text-gray-700",style:{margin:"0"}},it={class:"mt-2"},ot={class:"w-2/3"},nt={class:"rounded-lg overflow-hidden bg-gray-100"},rt=["src"],dt={class:"mb-8"},ct={class:"space-y-6"},ut={class:"space-y-2"},_t={class:"flex items-center space-x-2"},pt={class:"text-green-500"},vt={class:"flex items-center space-x-2"},ft={class:"text-green-500"},mt={class:"flex items-center space-x-2"},gt={class:"text-green-500"},yt={class:"flex items-center space-x-2"},ht={class:"text-green-500"},bt={class:"space-y-4"},xt={class:"flex items-center space-x-2"},wt={class:"text-green-500"},kt={class:"pl-4 space-y-2"},It={class:"flex items-center space-x-2"},At={class:"text-green-500"},Nt={class:"flex items-center space-x-2"},Vt={class:"text-green-500"},jt={class:"flex items-center space-x-2"},Dt={class:"text-green-500"},Mt={class:"grid grid-cols-2 gap-8 mt-4"},qt={class:"grid grid-cols-3 gap-2"},Rt=["src"],Ct={class:"grid grid-cols-3 gap-2"},St=["src"],Et={class:"grid grid-cols-3 md:grid-cols-6 gap-2"},$t=["src"],Tt={class:"fixed right-8 bottom-24 flex flex-col space-y-4"},Pt={key:0,class:"user-profile-content"},Lt={class:"profile-section"},Ut={class:"profile-section"},Bt={key:0,class:"profile-section"},Ht={key:1,class:"profile-section"},Gt={key:2,class:"profile-section"},Wt={key:3,class:"profile-section"},zt={key:1,class:"empty-data"},Zt={class:"dialog-footer"},Ft=Ie({__name:"index",setup(Yt){const l=V({name:"",idNumber:"",phoneNumber:"",score:0,availabilityPeriod:"",onboardingTime:"",suggestedSalary:"",salaryRange:"",dimensions:{teamwork:"欠佳",learningAbility:"优秀",attention:"欠佳",workAdaptability:"优秀",serviceAwareness:"中等"},dimensionDetails:{teamwork:"",learningAbility:"",attention:"",workAdaptability:"",serviceAwareness:""},duvAnalysis:[{title:"",content:"",score:"",type:"neutral"},{title:"",content:"",score:"",type:"neutral"}],interviewRecord:[{question:"",answer:"",analysis:"",score:"",videoUrl:"",thumbnail:"",question_form:0,is_correct:!1,question_image_url:""},{question:"",answer:"",analysis:"",score:"",videoUrl:"",thumbnail:"",question_form:0,is_correct:!1,question_image_url:""}],videoRecords:[{category:"服务态度测评",videos:[{url:"",thumbnail:"",description:""},{url:"",thumbnail:"",description:""}]}],additionalInfo:{idVerification:"通过",phoneVerification:"通过",leftHandGestures:{passed:!0,images:[]},rightHandGestures:{passed:!0,images:[]},faceVerification:{passed:!0,images:[]},comprehensiveVerification:"通过",handVerification:"通过",handBrightness:"通过",handIntegrity:"通过",handPoseRecognition:"通过"},strengths:[],weaknesses:[],hireRecommendation:"",hireReason:""}),x=V(null),G=V(!0),B=V(""),M=Ae(),ve=async()=>{G.value=!0;try{const u=M.query.id||"1",s=M.query.tenant_id||"1",p=M.query.application_id||"1";console.log("Route params:",{id:u,tenant_id:s,application_id:p});const h=await(await fetch(`https://backend.qicai321.com/api/job/application_detail?tenant_id=${s}&application_id=${u||p}`)).json();h.code===2e3?(x.value=h.data,fe(h.data)):B.value=h.msg||"获取数据失败"}catch(u){console.error("获取申请详情失败:",u),B.value="获取数据失败,请稍后重试"}finally{G.value=!1}},fe=u=>{if(!u)return;const{applicant:s,application:p,position:b,interview_progress:h,posture_photos:n}=u;if(l.value.name=(s==null?void 0:s.name)||l.value.name,l.value.phoneNumber=(s==null?void 0:s.phone)||l.value.phoneNumber,l.value.idNumber=(s==null?void 0:s.id_card)||l.value.idNumber,b)if(b.salary_range?l.value.salaryRange=b.salary_range||"面议":l.value.salaryRange="面议",b.salary_range&&typeof b.salary_range=="string"){let o=0,r=0;if(b.salary_range.includes("-")){const c=b.salary_range.split("-");o=parseInt(c[0].trim().replace(/[^\d]/g,""),10),r=parseInt(c[1].trim().replace(/[^\d]/g,""),10)}else if(b.salary_range.includes("~")){const c=b.salary_range.split("~");o=parseInt(c[0].trim().replace(/[^\d]/g,""),10),r=parseInt(c[1].trim().replace(/[^\d]/g,""),10)}else if(b.salary_range.includes("至")){const c=b.salary_range.split("至");o=parseInt(c[0].trim().replace(/[^\d]/g,""),10),r=parseInt(c[1].trim().replace(/[^\d]/g,""),10)}if(!isNaN(o)&&!isNaN(r)&&o>0&&r>0&&r>o){let c;const g=l.value.score;g<60?c=0:g<=80?c=(g-60)/40*.5:c=.5+(g-80)/20*.5;const d=Math.floor(o+(r-o)*c);if(d>=1e4){const w=(d/1e4).toFixed(1);l.value.suggestedSalary=`${w}万`}else l.value.suggestedSalary=`${d}`}else l.value.suggestedSalary=b.salary_range}else l.value.suggestedSalary="面议";else l.value.salaryRange="面议",l.value.suggestedSalary="面议";if(p!=null&&p.comprehensive_analysis&&(p.comprehensive_analysis.comprehensive_score!==null&&p.comprehensive_analysis.comprehensive_score!==void 0&&(l.value.score=p.comprehensive_analysis.comprehensive_score),p.comprehensive_analysis.video_analysis_data)){const o=p.comprehensive_analysis.video_analysis_data;o.strengths&&o.strengths.length>0&&(l.value.strengths=o.strengths.filter(r=>r&&!r.includes("无法从响应中提取"))),o.weaknesses&&o.weaknesses.length>0&&(l.value.weaknesses=o.weaknesses.filter(r=>r&&!r.includes("无法从响应中提取"))),p.comprehensive_analysis.hire_recommendation&&(l.value.hireRecommendation=p.comprehensive_analysis.hire_recommendation),p.comprehensive_analysis.hire_reason&&(l.value.hireReason=p.comprehensive_analysis.hire_reason)}if(p!=null&&p.ai_capability_scores){const o={专业性:"workAdaptability",沟通能力:"teamwork",技术匹配度:"learningAbility",解决问题能力:"attention",服务意识:"serviceAwareness"};Object.entries(p.ai_capability_scores).forEach(([r,c])=>{const g=o[r];if(g&&typeof c=="number"){let d="中等";c>=80?d="优秀":c<65&&(d="欠佳"),l.value.dimensions[g]=d}})}else{const o={teamwork:[],learningAbility:[],attention:[],workAdaptability:[],serviceAwareness:[]};h==null||h.forEach(r=>{r.video_answer&&r.video_answer.ai_score&&((r.question_text.includes("团队")||r.question_text.includes("合作"))&&o.teamwork.push(r.video_answer.ai_score),(r.question_text.includes("学习")||r.question_text.includes("技能"))&&o.learningAbility.push(r.video_answer.ai_score),(r.question_text.includes("细致")||r.question_text.includes("严谨")||r.question_text.includes("注意"))&&o.attention.push(r.video_answer.ai_score),(r.question_text.includes("适应")||r.question_text.includes("工作"))&&o.workAdaptability.push(r.video_answer.ai_score),(r.question_text.includes("服务")||r.question_text.includes("客户"))&&o.serviceAwareness.push(r.video_answer.ai_score))}),Object.entries(o).forEach(([r,c])=>{if(c.length>0){const g=c.reduce((w,C)=>w+C,0)/c.length;let d="中等";g>=80?d="优秀":g<65&&(d="欠佳"),l.value.dimensions[r]=d}})}const A={teamwork:"候选人在团队协作方面的表现",learningAbility:"候选人的学习能力和接受新知识的速度",attention:"候选人对细节的关注程度和工作严谨性",workAdaptability:"候选人适应工作环境和要求的能力",serviceAwareness:"候选人的服务意识和客户导向思维"};if(Object.keys(l.value.dimensionDetails).forEach(o=>{const r=o,c=l.value.dimensions[r];let g=A[r]||"";c==="优秀"?g+="表现优秀,符合岗位要求。":c==="中等"?g+="表现一般,基本符合岗位要求。":g+="表现欠佳,需要进一步提升。",l.value.dimensionDetails[r]=g}),h&&h.length>0&&(l.value.interviewRecord=h.filter(o=>o.video_answer).map(o=>{var g,d,w,C,L;let r=((g=o.video_answer)==null?void 0:g.transcript)||"",c=!1;return o.answer_data&&o.answer_data.selected_option_details&&o.answer_data.selected_option_details.length>0&&(r=o.answer_data.selected_option_details.map($=>$.option_text).join(", "),c=o.answer_data.selected_option_details.map($=>$.is_correct).join(", ")),console.log(o),{question:o.question_text||"未提供问题",answer:r,analysis:((w=(d=o.video_answer)==null?void 0:d.ai_analysis)==null?void 0:w.comment)||"",score:(C=o.video_answer)!=null&&C.ai_score?`${o.video_answer.ai_score}分`:"",question_form:o.question_form,is_correct:c,videoUrl:((L=o.video_answer)==null?void 0:L.video_url)||"",question_image_url:o.question_image_url||"",options:o.options||[],thumbnail:""}})),p!=null&&p.visual_analysis_results&&p.visual_analysis_results.photo_results){const o=[];p.visual_analysis_results.photo_results.forEach(r=>{r.detections&&r.detections.length>0&&r.detections.forEach(c=>{o.push({title:c.feature||"特征分析",content:c.location?`在${c.location}发现${c.feature}${c.description?","+c.description:""}`:c.feature+(c.description?","+c.description:""),score:c.confidence>=.8?"确认":"疑似",type:c.description&&c.description.includes("影响")?"negative":"neutral"})})}),o.length>0?l.value.duvAnalysis=o:l.value.duvAnalysis=[{title:"未发现特殊特征",content:"未在照片中检测到特殊特征",score:"正常",type:"positive"}]}else p!=null&&p.visual_analysis_results&&p.visual_analysis_results.detections?l.value.duvAnalysis=p.visual_analysis_results.detections.map(o=>({title:o.feature||"特征分析",content:o.location?`在${o.location}发现${o.feature}`:o.feature,score:o.confidence>=.8?"确认":"疑似",type:"neutral"})):l.value.duvAnalysis=[{title:"未进行DUV分析",content:"未提供DUV分析数据",score:"未知",type:"neutral"}];if(n&&n.length>0){const o=n.filter(g=>g.description.includes("left_")||g.description.includes("左手")).map(g=>g.photo_url);o.length>0&&(l.value.additionalInfo.leftHandGestures.images=o);const r=n.filter(g=>g.description.includes("right_")||g.description.includes("右手")).map(g=>g.photo_url);r.length>0&&(l.value.additionalInfo.rightHandGestures.images=r);const c=n.filter(g=>g.description.includes("面部")||!g.description.includes("left_")&&!g.description.includes("right_")&&!g.description.includes("左手")&&!g.description.includes("右手")).map(g=>g.photo_url);c.length>0&&(l.value.additionalInfo.faceVerification.images=c)}if(h&&h.length>0){const o={};h.forEach(r=>{if(r.video_answer&&r.video_answer.video_url){const c=r.question_type_display||"面试视频";o[c]||(o[c]=[]),o[c].push({url:r.video_answer.video_url,thumbnail:"/images/video-placeholder.jpg",description:r.question_text})}}),l.value.videoRecords=Object.entries(o).map(([r,c])=>({category:r,videos:c}))}l.value.availabilityPeriod="无特殊情况",l.value.onboardingTime="随时可以入职"};Ne(()=>{console.log("完整URL:",window.location.href),console.log("路径:",window.location.pathname),console.log("查询字符串:",window.location.search),console.log("哈希:",window.location.hash),ve()}),V(0),V(""),V();const W=V(null),me=()=>{if(console.log("尝试滚动到顶部"),W.value){W.value.scrollIntoView({behavior:"smooth",block:"start"}),console.log("使用ref滚动到顶部");return}const u=document.getElementById("report-top");if(u){u.scrollIntoView({behavior:"smooth",block:"start"}),console.log("使用ID滚动到顶部");return}},ge=()=>{q.success("分享链接已复制")},ye=async()=>{try{const u=M.query.id||"1",s=M.query.tenant_id||"1",p=M.query.application_id||"1";q.success("报告下载中...");const h=await(await fetch(`https://backend.qicai321.com/api/system/job/export_application_pdf?application_id=${u||p}&tenant_id=${s}`)).json();h.code===2e3?q.success("下载任务已创建,请前往下载中心查看"):q.error(h.msg||"下载任务创建失败")}catch(u){console.error("创建下载任务失败:",u),q.error("创建下载任务失败,请稍后重试")}},F=[],he=()=>{const u=window.scrollY,s=document.body.style.overflow,p=document.body.style.height;document.body.style.overflow="visible",document.body.style.height="auto";const b=document.querySelectorAll(".fixed");b.forEach((h,n)=>{const A=h;F[n]=A.style.display,A.style.display="none"}),setTimeout(()=>{window.print(),document.body.style.overflow=s,document.body.style.height=p,b.forEach((h,n)=>{const A=h;A.style.display=F[n]}),window.scrollTo(0,u),q.success("打印完成")},300)},E=V("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgZmlsbD0iI2VlZWVlZSIvPjxwYXRoIGQ9Ik03NSA2NUExMCAxMCAwIDAgMSA4NSA3NUExMCAxMCAwIDAgMSA3NSA4NUExMCAxMCAwIDAgMSA2NSA3NUExMCAxMCAwIDAgMSA3NSA2NVoiIGZpbGw9IiNhYWFhYWEiLz48cGF0aCBkPSJNMTIwIDEzNUw5MCAxMDVMNjAgMTM1TDYwIDE0MEwxNDAgMTQwTDE0MCAxMzVMMTIwIDExNVoiIGZpbGw9IiNhYWFhYWEiLz48L3N2Zz4="),T=u=>{const s=u.target;s&&(s.src=E.value,s.onerror=null)},Y=u=>{const s=()=>{try{if(u.readyState>=2){const p=document.createElement("canvas");p.width=u.videoWidth||320,p.height=u.videoHeight||240;const b=p.getContext("2d");if(b){u.currentTime=.1,b.drawImage(u,0,0,p.width,p.height);const h=p.toDataURL("image/jpeg");u.poster=h,u.removeEventListener("loadeddata",s)}}}catch(p){console.error("捕获视频第一帧失败:",p),u.poster=E.value}};u.addEventListener("loadeddata",s),u.readyState>=2&&s(),u.addEventListener("error",()=>{console.error("视频加载失败"),u.poster=E.value}),setTimeout(()=>{(!u.poster||u.poster==="")&&(u.poster=E.value)},3e3)},be=u=>{const s=u.target;s&&(s.readyState>=1?Y(s):s.addEventListener("loadedmetadata",()=>{Y(s)}))},xe=u=>{const s=u.target;s&&(s.poster=E.value,console.error("视频加载错误"))},P=u=>u!==void 0?u:0,y=V(null),H=V(!1),z=V(!1),we=async()=>{var u,s;z.value=!0;try{const p=((s=(u=x.value)==null?void 0:u.applicant)==null?void 0:s.id)||M.query.user_id||"30",b=M.query.tenant_id||"1",n=await(await fetch(`https://backend.qicai321.com/api/system/wechat/user/profile/get?user_id=${p}&tenant_id=${b}`)).json();n.code===2e3?(y.value=n.data,H.value=!0):q.error(n.msg||"获取用户信息失败")}catch(p){console.error("获取用户个人信息失败:",p),q.error("获取用户信息失败,请稍后重试")}finally{z.value=!1}},R=u=>{if(!u)return"未设置";try{return new Date(u).toLocaleDateString("zh-CN")}catch{return u}},ke=()=>{we()};return(u,s)=>{const p=D("a-spin"),b=D("el-icon"),h=D("el-button"),n=D("el-descriptions-item"),A=D("el-descriptions"),o=D("el-empty"),r=D("el-spin"),c=D("el-scrollbar"),g=D("el-dialog");return f(),v(I,null,[e("div",Ce,[e("div",Se,[e("div",{id:"report-top",ref_key:"reportTop",ref:W},null,512),a(p,{spinning:G.value,tip:"加载中..."},{default:i(()=>{var d,w,C,L,$,O,Q,J,K,X,ee,se,te,ae,le,ie,oe,ne,re,de,ce,ue,_e;return[e("div",Ee,[e("div",$e,[e("div",Te,"No."+t(((w=(d=x.value)==null?void 0:d.application)==null?void 0:w.report_id)||l.value.idNumber),1),e("div",Pe,t(new Date().toLocaleString()),1)])]),B.value?(f(),v("div",Le,[s[2]||(s[2]=e("strong",{class:"font-bold"},"错误!",-1)),e("span",Ue,t(B.value),1)])):(f(),v("div",Be,[e("div",He,[e("div",Ge,[e("div",We,[e("img",{src:l.value.additionalInfo.faceVerification.images[0],alt:"头像",class:"w-full h-full object-cover",onError:T},null,40,ze)]),e("div",null,[e("h1",Ze,t(l.value.name),1),e("p",Fe,t(l.value.phoneNumber),1),(C=x.value)!=null&&C.position?(f(),v("p",Ye," 应聘职位: "+t(x.value.position.title)+" - "+t(x.value.position.department),1)):j("",!0)])]),e("div",Oe,[e("div",Qe,[_(t(l.value.score),1),s[3]||(s[3]=e("span",{class:"text-base ml-1"},"分",-1))]),e("div",Je,t(l.value.score>=70?"推荐 👍":l.value.score>=60?"待定 🤔":"不推荐 👎"),1)])]),e("div",Ke,[e("div",null,[s[4]||(s[4]=e("label",{class:"text-gray-600"},"身份证号",-1)),e("div",null,t(l.value.idNumber),1)]),e("div",null,[s[5]||(s[5]=e("label",{class:"text-gray-600"},"薪资范围",-1)),e("div",null,t(l.value.salaryRange),1)]),e("div",null,[s[6]||(s[6]=e("label",{class:"text-gray-600"},"建议薪资",-1)),e("div",Xe,t(l.value.suggestedSalary),1)])]),e("div",es,[s[13]||(s[13]=e("h2",{class:"text-xl font-bold mb-6"},"1. 综合评估",-1)),e("div",ss,[e("div",ts,[e("div",as,[s[7]||(s[7]=e("span",{class:"text-gray-600"},"录用建议",-1)),e("span",{class:S({"text-green-500":(L=l.value.hireRecommendation)==null?void 0:L.includes("推荐"),"text-red-500":($=l.value.hireRecommendation)==null?void 0:$.includes("不推荐"),"text-yellow-500":!((O=l.value.hireRecommendation)!=null&&O.includes("推荐"))&&!((Q=l.value.hireRecommendation)!=null&&Q.includes("不推荐"))})},t(l.value.hireRecommendation||"无建议"),3)]),e("p",ls,t(l.value.hireReason||"无详细说明"),1)]),e("div",is,[e("div",os,[s[8]||(s[8]=e("span",{class:"text-gray-600",style:{color:"red"}},"红线题检测结果",-1)),e("span",{class:S({"text-green-500":(K=(J=x.value)==null?void 0:J.required_questions_summary)==null?void 0:K.all_correct,"text-red-500":((X=x.value)==null?void 0:X.required_questions_summary)&&!x.value.required_questions_summary.all_correct})},t((se=(ee=x.value)==null?void 0:ee.required_questions_summary)!=null&&se.all_correct?"全部正确":"存在错误,建议不录用"),3)]),(te=x.value)!=null&&te.required_questions_summary&&!x.value.required_questions_summary.all_correct?(f(),v("div",ns,[s[9]||(s[9]=e("p",{class:"text-red-700 font-medium mb-1"},"未通过的红线题:",-1)),x.value.required_questions_summary.failed_questions_details.length>0?(f(),v("ul",rs,[(f(!0),v(I,null,N(x.value.required_questions_summary.failed_questions_details,(m,k)=>(f(),v("li",{key:"failed-"+k},t(m.question_text||`问题 ${k+1}`),1))),128))])):(f(),v("p",ds,"未提供详细信息"))])):j("",!0)]),l.value.strengths&&l.value.strengths.length>0?(f(),v("div",cs,[s[10]||(s[10]=e("h3",{class:"font-semibold mb-2"},"优点",-1)),e("ul",us,[(f(!0),v(I,null,N(l.value.strengths,(m,k)=>(f(),v("li",{key:"strength-"+k},t(m),1))),128))])])):j("",!0),l.value.weaknesses&&l.value.weaknesses.length>0?(f(),v("div",_s,[s[11]||(s[11]=e("h3",{class:"font-semibold mb-2"},"需改进的地方",-1)),e("ul",ps,[(f(!0),v(I,null,N(l.value.weaknesses,(m,k)=>(f(),v("li",{key:"weakness-"+k},t(m),1))),128))])])):j("",!0)]),e("div",vs,[e("div",fs,[s[12]||(s[12]=e("span",{class:"text-gray-600"},"DUV 心理测评得分",-1)),e("span",{class:S({"text-green-500":P((le=(ae=x.value)==null?void 0:ae.scoring_summary)==null?void 0:le.total_score_obtained)<=30,"text-yellow-500":P((oe=(ie=x.value)==null?void 0:ie.scoring_summary)==null?void 0:oe.total_score_obtained)>30&&P((re=(ne=x.value)==null?void 0:ne.scoring_summary)==null?void 0:re.total_score_obtained)<=60,"text-red-500":P((ce=(de=x.value)==null?void 0:de.scoring_summary)==null?void 0:ce.total_score_obtained)>60})},t(P((_e=(ue=x.value)==null?void 0:ue.scoring_summary)==null?void 0:_e.total_score_obtained)),3)])])]),e("div",ms,[s[14]||(s[14]=e("h2",{class:"text-xl font-bold mb-6"},"2. 图片分析评估",-1)),e("div",gs,[(f(!0),v(I,null,N(l.value.duvAnalysis,(m,k)=>(f(),v("div",{key:k,class:"border-b pb-4"},[e("div",ys,[e("span",hs,t(m.title),1),e("span",{class:S({"text-green-500":m.type==="positive","text-red-500":m.type==="negative","text-yellow-500":m.type==="neutral"})},t(m.score),3)]),e("p",bs,t(m.content),1)]))),128))])]),e("div",xs,[s[20]||(s[20]=e("h2",{class:"text-xl font-bold mb-6"},"3. 回答记录",-1)),e("div",ws,[(f(!0),v(I,null,N(l.value.interviewRecord,(m,k)=>(f(),v("div",{key:k,class:"bg-gray-50 rounded-lg p-4"},[e("div",ks,[e("div",Is,[e("div",As,"第"+t(k+1)+"题",1),e("div",Ns,[e("h3",Vs,t(m.question),1)])]),m.question_form===0?(f(),v("div",js,[e("div",Ds,[e("div",Ms,[e("div",qs,[e("div",Rs,[s[15]||(s[15]=e("div",{class:"bg-green-100 text-green-800 px-2 py-1 rounded text-sm"},"候选人",-1)),e("div",Cs,[e("p",Ss,t(m.answer),1)])])]),e("div",null,[e("div",Es,[s[16]||(s[16]=e("div",{class:"bg-yellow-100 text-yellow-800 px-2 py-1 rounded text-sm"},"AI评分",-1)),e("div",$s,[e("p",Ts,t(m.analysis),1),e("div",Ps,"得分:"+t(m.score),1)])])])])]),e("div",Ls,[e("div",Us,[e("video",{class:"w-full h-full object-cover rounded-lg",controls:"",src:m.videoUrl,preload:"metadata",poster:E.value,onLoadeddata:be,onError:xe}," 您的浏览器不支持视频播放。 ",40,Bs)])])])):m.question_form===1||m.question_form===2||m.question_form===4?(f(),v("div",Hs,[e("div",Gs,[e("div",Ws,[e("div",zs,[s[17]||(s[17]=e("div",{class:"bg-green-100 text-green-800 px-2 py-1 rounded text-sm"},"候选人:",-1)),e("p",Zs,t(m.answer),1)]),e("div",null,[m.question_form===1||m.question_form===2?(f(),v("span",{key:0,class:S(["px-3 py-1 rounded-full text-sm",m.is_correct===!0||m.is_correct==="true"?"bg-green-100 text-green-800":"bg-red-100 text-red-800"])},t(m.is_correct===!0||m.is_correct==="true"?"正确":"错误"),3)):j("",!0)])]),m.options&&m.options.length>0?(f(),v("div",Fs,[s[18]||(s[18]=e("div",{class:"text-sm text-gray-500 mb-1"},"所有选项:",-1)),(f(!0),v(I,null,N(m.options,(Z,pe)=>(f(),v("div",{key:pe,class:S(["p-2 rounded border",m.answer.includes(Z.option_text)?"border-blue-300 bg-blue-50":"border-gray-200"])},[e("div",Ys,[e("div",Os,t(String.fromCharCode(65+pe))+".",1),e("div",Qs,[e("div",Js,t(Z.option_text),1),Z.is_correct?(f(),v("div",Ks,"✓ 正确答案")):j("",!0)])])],2))),128))])):j("",!0)])])):m.question_form===3?(f(),v("div",Xs,[e("div",et,[e("div",st,[e("div",tt,[s[19]||(s[19]=e("div",{class:"bg-green-100 text-green-800 px-2 py-1 rounded text-sm"},"候选人",-1)),e("div",at,[e("p",lt,t(m.answer),1),e("div",it,[e("span",{class:S(["px-3 py-1 rounded-full text-sm",m.is_correct===!0||m.is_correct==="true"?"bg-green-100 text-green-800":"bg-red-100 text-red-800"])},t(m.is_correct===!0||m.is_correct==="true"?"正确":"错误"),3)])])])])]),e("div",ot,[e("div",nt,[e("img",{src:m.question_image_url,alt:"题目图片",class:"w-full h-full object-cover rounded-lg",onError:T},null,40,rt)])])])):j("",!0)])]))),128))])]),e("div",dt,[s[32]||(s[32]=e("h2",{class:"text-xl font-bold mb-6"},"4. 其他信息",-1)),e("div",ct,[e("div",ut,[e("div",_t,[s[21]||(s[21]=e("span",{class:"text-gray-600"},"身份认证:",-1)),e("span",pt,t(l.value.additionalInfo.idVerification),1)]),e("div",vt,[s[22]||(s[22]=e("span",{class:"text-gray-600"},"手机号实名认证:",-1)),e("span",ft,t(l.value.additionalInfo.phoneVerification),1)]),e("div",mt,[s[23]||(s[23]=e("span",{class:"text-gray-600"},"综合A类评估:",-1)),e("span",gt,t(l.value.additionalInfo.comprehensiveVerification),1)]),e("div",yt,[s[24]||(s[24]=e("span",{class:"text-gray-600"},"综合B类评估:",-1)),e("span",ht,t(l.value.additionalInfo.comprehensiveVerification),1)])]),e("div",bt,[e("div",xt,[s[25]||(s[25]=e("span",{class:"text-gray-600"},"手部综合检测:",-1)),e("span",wt,t(l.value.additionalInfo.handVerification),1)]),e("div",kt,[e("div",It,[s[26]||(s[26]=e("span",{class:"text-gray-600"},"手指灵活度:",-1)),e("span",At,t(l.value.additionalInfo.handBrightness),1)]),e("div",Nt,[s[27]||(s[27]=e("span",{class:"text-gray-600"},"手指完整度:",-1)),e("span",Vt,t(l.value.additionalInfo.handIntegrity),1)]),e("div",jt,[s[28]||(s[28]=e("span",{class:"text-gray-600"},"手部姿态纹身:",-1)),e("span",Dt,t(l.value.additionalInfo.handPoseRecognition),1)])]),e("div",Mt,[e("div",null,[s[29]||(s[29]=e("div",{class:"mb-2"},[e("h4",{class:"text-sm font-medium"},"左手识别结果"),e("div",{class:"space-y-1"},[e("div",{class:"flex items-center space-x-2"},[e("span",null,"手指灵活度"),e("span",{class:"text-green-500"},"✓")]),e("div",{class:"flex items-center space-x-2"},[e("span",null,"手指完整度"),e("span",{class:"text-green-500"},"✓")]),e("div",{class:"flex items-center space-x-2"},[e("span",null,"手部姿态纹身"),e("span",{class:"text-green-500"},"✓")])])],-1)),e("div",qt,[(f(!0),v(I,null,N(l.value.additionalInfo.leftHandGestures.images,(m,k)=>(f(),v("div",{key:k,class:"aspect-square rounded-lg overflow-hidden bg-gray-100"},[e("img",{src:m,alt:"左手手势",class:"w-full h-full object-cover",onError:T},null,40,Rt)]))),128))])]),e("div",null,[s[30]||(s[30]=e("div",{class:"mb-2"},[e("h4",{class:"text-sm font-medium"},"右手识别结果"),e("div",{class:"space-y-1"},[e("div",{class:"flex items-center space-x-2"},[e("span",null,"手指灵活度"),e("span",{class:"text-green-500"},"✓")]),e("div",{class:"flex items-center space-x-2"},[e("span",null,"手指完整度"),e("span",{class:"text-green-500"},"✓")]),e("div",{class:"flex items-center space-x-2"},[e("span",null,"手部姿态纹身"),e("span",{class:"text-green-500"},"✓")])])],-1)),e("div",Ct,[(f(!0),v(I,null,N(l.value.additionalInfo.rightHandGestures.images,(m,k)=>(f(),v("div",{key:k,class:"aspect-square rounded-lg overflow-hidden bg-gray-100"},[e("img",{src:m,alt:"右手手势",class:"w-full h-full object-cover",onError:T},null,40,St)]))),128))])])])]),e("div",null,[s[31]||(s[31]=e("h3",{class:"font-semibold mb-4"},"换人检测: 通过",-1)),e("div",Et,[(f(!0),v(I,null,N(l.value.additionalInfo.faceVerification.images,(m,k)=>(f(),v("div",{key:k,class:"aspect-square rounded-lg overflow-hidden bg-gray-100"},[e("img",{src:m,alt:"人脸验证",class:"w-full h-full object-cover",onError:T},null,40,$t)]))),128))])])])])]))]}),_:1},8,["spinning"]),e("div",Tt,[a(h,{type:"primary",style:{"margin-left":"12px"},circle:"",onClick:ke},{default:i(()=>[a(b,null,{default:i(()=>[a(U(Ve))]),_:1})]),_:1}),a(h,{type:"primary",style:{"margin-left":"12px"},circle:"",onClick:ge},{default:i(()=>[a(b,null,{default:i(()=>[a(U(je))]),_:1})]),_:1}),a(h,{type:"primary",circle:"",onClick:ye},{default:i(()=>[a(b,null,{default:i(()=>[a(U(De))]),_:1})]),_:1}),a(h,{type:"primary",circle:"",onClick:he},{default:i(()=>[a(b,null,{default:i(()=>[a(U(Me))]),_:1})]),_:1}),a(h,{type:"primary",circle:"",onClick:me},{default:i(()=>[a(b,null,{default:i(()=>[a(U(qe))]),_:1})]),_:1})])])]),a(g,{modelValue:H.value,"onUpdate:modelValue":s[1]||(s[1]=d=>H.value=d),title:"个人详细信息",width:"80%","close-on-click-modal":!1,class:"user-profile-dialog"},{footer:i(()=>[e("span",Zt,[a(h,{onClick:s[0]||(s[0]=d=>H.value=!1)},{default:i(()=>s[39]||(s[39]=[_("关闭")])),_:1})])]),default:i(()=>[a(c,{height:"70vh"},{default:i(()=>[a(r,{spinning:z.value},{default:i(()=>[y.value?(f(),v("div",Pt,[e("div",Lt,[s[33]||(s[33]=e("h3",{class:"section-title"},"基本信息",-1)),a(A,{column:3,border:""},{default:i(()=>[a(n,{label:"姓名"},{default:i(()=>[_(t(y.value.user_info.name),1)]),_:1}),a(n,{label:"手机号"},{default:i(()=>[_(t(y.value.user_info.phone),1)]),_:1}),a(n,{label:"年龄"},{default:i(()=>[_(t(y.value.user_info.age)+"岁",1)]),_:1}),a(n,{label:"出生日期"},{default:i(()=>[_(t(R(y.value.user_info.birth_date)),1)]),_:1}),a(n,{label:"性别"},{default:i(()=>[_(t(y.value.user_info.gender_name),1)]),_:1}),a(n,{label:"身份证号"},{default:i(()=>[_(t(y.value.user_info.id_card),1)]),_:1})]),_:1})]),e("div",Ut,[s[34]||(s[34]=e("h3",{class:"section-title"},"个人资料",-1)),a(A,{column:3,border:""},{default:i(()=>[a(n,{label:"政治面貌"},{default:i(()=>[_(t(y.value.profile.political_status),1)]),_:1}),a(n,{label:"民族"},{default:i(()=>[_(t(y.value.profile.ethnicity),1)]),_:1}),a(n,{label:"身高"},{default:i(()=>[_(t(y.value.profile.height)+"cm",1)]),_:1}),a(n,{label:"体重"},{default:i(()=>[_(t(y.value.profile.weight)+"kg",1)]),_:1}),a(n,{label:"籍贯"},{default:i(()=>[_(t(y.value.profile.native_place),1)]),_:1}),a(n,{label:"户口所在地"},{default:i(()=>[_(t(y.value.profile.household_location),1)]),_:1}),a(n,{label:"现居地址"},{default:i(()=>[_(t(y.value.profile.current_address),1)]),_:1}),a(n,{label:"婚姻状况"},{default:i(()=>[_(t(y.value.profile.marital_status_name),1)]),_:1}),a(n,{label:"是否有子女"},{default:i(()=>[_(t(y.value.profile.has_children?"是":"否"),1)]),_:1}),a(n,{label:"期望薪资"},{default:i(()=>[_(t(y.value.profile.expected_salary),1)]),_:1}),a(n,{label:"紧急联系人"},{default:i(()=>[_(t(y.value.profile.emergency_contact),1)]),_:1}),a(n,{label:"紧急联系电话"},{default:i(()=>[_(t(y.value.profile.emergency_phone),1)]),_:1}),a(n,{label:"特长"},{default:i(()=>[_(t(y.value.profile.specialties),1)]),_:1}),a(n,{label:"人生格言"},{default:i(()=>[_(t(y.value.profile.life_motto),1)]),_:1}),a(n,{label:"招聘来源"},{default:i(()=>[_(t(y.value.profile.recruitment_source_name),1)]),_:1})]),_:1})]),y.value.educations&&y.value.educations.length>0?(f(),v("div",Bt,[s[35]||(s[35]=e("h3",{class:"section-title"},"教育经历",-1)),(f(!0),v(I,null,N(y.value.educations,(d,w)=>(f(),v("div",{key:`edu-${w}`,class:"mb-4"},[a(A,{column:3,border:""},{default:i(()=>[a(n,{label:"学历类型"},{default:i(()=>[_(t(d.education_type_name),1)]),_:2},1024),a(n,{label:"学历"},{default:i(()=>[_(t(d.degree_name),1)]),_:2},1024),a(n,{label:"时间段"},{default:i(()=>[_(t(R(d.start_date))+" 至 "+t(R(d.end_date)),1)]),_:2},1024),a(n,{label:"学校名称"},{default:i(()=>[_(t(d.school_name),1)]),_:2},1024),a(n,{label:"专业"},{default:i(()=>[_(t(d.major),1)]),_:2},1024)]),_:2},1024)]))),128))])):j("",!0),y.value.work_experiences&&y.value.work_experiences.length>0?(f(),v("div",Ht,[s[36]||(s[36]=e("h3",{class:"section-title"},"工作经历",-1)),(f(!0),v(I,null,N(y.value.work_experiences,(d,w)=>(f(),v("div",{key:`work-${w}`,class:"mb-4"},[a(A,{column:3,border:""},{default:i(()=>[a(n,{label:"公司名称"},{default:i(()=>[_(t(d.company_name),1)]),_:2},1024),a(n,{label:"时间段"},{default:i(()=>[_(t(R(d.start_date))+" 至 "+t(R(d.end_date)),1)]),_:2},1024),a(n,{label:"部门"},{default:i(()=>[_(t(d.department),1)]),_:2},1024),a(n,{label:"职位"},{default:i(()=>[_(t(d.position),1)]),_:2},1024),a(n,{label:"公司规模"},{default:i(()=>[_(t(d.company_size)+"人",1)]),_:2},1024),a(n,{label:"月薪"},{default:i(()=>[_(t(d.monthly_salary),1)]),_:2},1024),a(n,{label:"主管姓名"},{default:i(()=>[_(t(d.supervisor_name),1)]),_:2},1024),a(n,{label:"主管电话"},{default:i(()=>[_(t(d.supervisor_phone),1)]),_:2},1024),a(n,{label:"工作描述",span:3},{default:i(()=>[_(t(d.job_description||"无"),1)]),_:2},1024),a(n,{label:"工作成就",span:3},{default:i(()=>[_(t(d.achievements||"无"),1)]),_:2},1024),a(n,{label:"离职原因",span:3},{default:i(()=>[_(t(d.resignation_reason||"无"),1)]),_:2},1024)]),_:2},1024)]))),128))])):j("",!0),y.value.trainings&&y.value.trainings.length>0?(f(),v("div",Gt,[s[37]||(s[37]=e("h3",{class:"section-title"},"培训经历",-1)),(f(!0),v(I,null,N(y.value.trainings,(d,w)=>(f(),v("div",{key:`training-${w}`,class:"mb-4"},[a(A,{column:3,border:""},{default:i(()=>[a(n,{label:"培训名称"},{default:i(()=>[_(t(d.training_name),1)]),_:2},1024),a(n,{label:"培训机构"},{default:i(()=>[_(t(d.institution),1)]),_:2},1024),a(n,{label:"时间段"},{default:i(()=>[_(t(R(d.start_date))+" 至 "+t(R(d.end_date)),1)]),_:2},1024),a(n,{label:"培训描述",span:3},{default:i(()=>[_(t(d.description),1)]),_:2},1024),a(n,{label:"证书"},{default:i(()=>[_(t(d.certificate),1)]),_:2},1024)]),_:2},1024)]))),128))])):j("",!0),y.value.family_members&&y.value.family_members.length>0?(f(),v("div",Wt,[s[38]||(s[38]=e("h3",{class:"section-title"},"家庭成员",-1)),(f(!0),v(I,null,N(y.value.family_members,(d,w)=>(f(),v("div",{key:`family-${w}`,class:"mb-4"},[a(A,{column:3,border:""},{default:i(()=>[a(n,{label:"关系"},{default:i(()=>[_(t(d.relation),1)]),_:2},1024),a(n,{label:"姓名"},{default:i(()=>[_(t(d.name),1)]),_:2},1024),a(n,{label:"联系电话"},{default:i(()=>[_(t(d.phone),1)]),_:2},1024),a(n,{label:"工作单位"},{default:i(()=>[_(t(d.workplace),1)]),_:2},1024),a(n,{label:"职位"},{default:i(()=>[_(t(d.position),1)]),_:2},1024)]),_:2},1024)]))),128))])):j("",!0)])):(f(),v("div",zt,[a(o,{description:"暂无个人信息数据"})]))]),_:1},8,["spinning"])]),_:1})]),_:1},8,["modelValue"])],64)}}}),Kt=Re(Ft,[["__scopeId","data-v-a12513eb"]]);export{Kt as default};
|