Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service
This commit is contained in:
@@ -157,7 +157,8 @@
|
|||||||
<text class="title">竞争力分析</text>
|
<text class="title">竞争力分析</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="description">
|
<view class="description">
|
||||||
三个月内共15位求职者申请,你的简历匹配度为{{ raderData.matchScore }}分,排名位于第{{
|
{{ JSON.stringify(raderData) }}
|
||||||
|
三个月内共{{ raderData.totalApplicants }} 位求职者申请,你的简历匹配度为{{ raderData.matchScore }}分,排名位于第{{
|
||||||
raderData.rank
|
raderData.rank
|
||||||
}}位,超过{{ raderData.percentile }}%的竞争者,处在优秀位置。
|
}}位,超过{{ raderData.percentile }}%的竞争者,处在优秀位置。
|
||||||
</view>
|
</view>
|
||||||
@@ -277,6 +278,7 @@ const raderData = ref({
|
|||||||
matchScore: 0,
|
matchScore: 0,
|
||||||
rank: 0,
|
rank: 0,
|
||||||
percentile: 0,
|
percentile: 0,
|
||||||
|
totalApplicants: 0,
|
||||||
radarChart: {
|
radarChart: {
|
||||||
skill: 0,
|
skill: 0,
|
||||||
experience: 0,
|
experience: 0,
|
||||||
@@ -387,6 +389,7 @@ function getCompetivetuveness(encryptJobId) {
|
|||||||
$api.createRequest(`/app/job/competitiveness/${encryptJobId}`, {}, 'GET').then((resData) => {
|
$api.createRequest(`/app/job/competitiveness/${encryptJobId}`, {}, 'GET').then((resData) => {
|
||||||
// 如果接口返回的数据为 null 或空,使用默认值0
|
// 如果接口返回的数据为 null 或空,使用默认值0
|
||||||
if (resData && resData.data) {
|
if (resData && resData.data) {
|
||||||
|
console.log(resData.data, 'resData.data');
|
||||||
// 确保 radarChart 字段存在,如果不存在则使用默认值
|
// 确保 radarChart 字段存在,如果不存在则使用默认值
|
||||||
const radarChart = resData.data.radarChart || {
|
const radarChart = resData.data.radarChart || {
|
||||||
skill: 0,
|
skill: 0,
|
||||||
@@ -401,7 +404,9 @@ function getCompetivetuveness(encryptJobId) {
|
|||||||
matchScore: resData.data.matchScore || 0,
|
matchScore: resData.data.matchScore || 0,
|
||||||
rank: resData.data.rank || 0,
|
rank: resData.data.rank || 0,
|
||||||
percentile: resData.data.percentile || 0,
|
percentile: resData.data.percentile || 0,
|
||||||
radarChart: radarChart
|
totalApplicants: resData.data.totalApplicants || 0,
|
||||||
|
radarChart: radarChart,
|
||||||
|
percentile: resData.data.percentile || 0,
|
||||||
};
|
};
|
||||||
currentStep.value = (resData.data.matchScore || 0) * 0.04;
|
currentStep.value = (resData.data.matchScore || 0) * 0.04;
|
||||||
} else {
|
} else {
|
||||||
@@ -410,6 +415,7 @@ function getCompetivetuveness(encryptJobId) {
|
|||||||
matchScore: 0,
|
matchScore: 0,
|
||||||
rank: 0,
|
rank: 0,
|
||||||
percentile: 0,
|
percentile: 0,
|
||||||
|
totalApplicants: 0,
|
||||||
radarChart: {
|
radarChart: {
|
||||||
skill: 0,
|
skill: 0,
|
||||||
experience: 0,
|
experience: 0,
|
||||||
@@ -469,8 +475,10 @@ function confirmAction() {
|
|||||||
showConfirmDialog.value = false;
|
showConfirmDialog.value = false;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
console.log(encryptJobId, 'encryptJobId');
|
||||||
// 确认投递
|
// 确认投递
|
||||||
$api.createRequest(`/app/job/apply/${encryptJobId}`, {}, 'GET').then((resData) => {
|
$api.createRequest(`/app/job/apply/${encryptJobId}`, {}, 'GET').then((resData) => {
|
||||||
|
console.log(resData, 'job/apply/');
|
||||||
$api.msg('申请成功');
|
$api.msg('申请成功');
|
||||||
getDetail(encryptJobId); // 刷新职位信息
|
getDetail(encryptJobId); // 刷新职位信息
|
||||||
showConfirmDialog.value = false;
|
showConfirmDialog.value = false;
|
||||||
|
|||||||
@@ -189,10 +189,10 @@ export function createRequest(url, data = {}, method = 'GET', loading = false, h
|
|||||||
}
|
}
|
||||||
// 显示具体的错误信息
|
// 显示具体的错误信息
|
||||||
const errorMsg = msg || '请求出现异常,请联系工作人员'
|
const errorMsg = msg || '请求出现异常,请联系工作人员'
|
||||||
uni.showToast({
|
// uni.showToast({
|
||||||
title: errorMsg,
|
// title: errorMsg,
|
||||||
icon: 'none'
|
// icon: 'none'
|
||||||
})
|
// })
|
||||||
const err = new Error(errorMsg)
|
const err = new Error(errorMsg)
|
||||||
err.error = resData
|
err.error = resData
|
||||||
reject(err)
|
reject(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user