Commit dc923b84 by yangchao

update

1 parent db5b40f0
...@@ -68,3 +68,14 @@ export function send(data) { ...@@ -68,3 +68,14 @@ export function send(data) {
source : 'zp' source : 'zp'
}) })
} }
//获取登陆时的莫token和btoken
export function getToken(data) {
return request({
url: 'business/mall/switch/v2',
method: 'post',
data: data,
source : 'zp'
})
}
\ No newline at end of file
...@@ -34,7 +34,7 @@ const state = { ...@@ -34,7 +34,7 @@ const state = {
xueTangTestURl: 'http://api.xuetang.test.ledianyun.com/', xueTangTestURl: 'http://api.xuetang.test.ledianyun.com/',
xueTangBaseURl: 'https://xuetang.api.ledianyun.com/', xueTangBaseURl: 'https://xuetang.api.ledianyun.com/',
inviteBaseUrl: 'http://api.recruit.test.ledianyun.com/', inviteBaseUrl: process.env.NODE_ENV == 'development' ? 'http://api.recruit.test.ledianyun.com/':'https://api.recruit.ledianyun.com/',
platform: 'generally', platform: 'generally',
......
...@@ -43,17 +43,7 @@ const service = axios.create({ ...@@ -43,17 +43,7 @@ const service = axios.create({
// request interceptor // request interceptor
service.interceptors.request.use(config => { service.interceptors.request.use(config => {
config.headers.token = getUserToken(); config.headers.token = getUserToken();
// if (config.source === 'apc') {
// config.headers.token = getUserToken();
// } else
// config.headers.token = getMallToken();
//判断baseURL
// if (process.env.NODE_ENV === 'development')
if (config.source === 'cm') config.baseURL = store.state.testBaseURL; if (config.source === 'cm') config.baseURL = store.state.testBaseURL;
else if (config.source == 'ds') config.baseURL = store.state.designTestURL;
else if (config.source == 'xuetang') config.baseURL = store.state.xueTangBaseURl;
else if (config.source === 'apc') config.baseURL = store.state.testBaseURL;
else if (config.source === 'sy') config.baseURL = store.state.syBaseURL;
else if (config.source === 'zp') config.baseURL = store.state.inviteBaseUrl; else if (config.source === 'zp') config.baseURL = store.state.inviteBaseUrl;
else config.baseURL = store.state.testStoreURL else config.baseURL = store.state.testStoreURL
......
...@@ -173,6 +173,7 @@ ...@@ -173,6 +173,7 @@
return returnAge;//返回周岁年龄 return returnAge;//返回周岁年龄
}, },
getDetail(){ getDetail(){
let self = this;
let loading = Loading.service({ let loading = Loading.service({
target: document.querySelector('.main-container'), target: document.querySelector('.main-container'),
text: '请求中...', text: '请求中...',
...@@ -185,12 +186,21 @@ ...@@ -185,12 +186,21 @@
checkResumeDetail(data).then(res=>{ checkResumeDetail(data).then(res=>{
loading.close(); loading.close();
if(res.error==0){ if(res.error==0){
let job_name='';
for(let key in this.jobList){
Object.keys(this.jobList[key]).forEach(function(i){
if(res.data.intention_job==i){
job_name=self.jobList[key][i];
}
});
}
console.log(job_name,'job_name')
let obj={ let obj={
...res.data, ...res.data,
age:this.jsGetAge(res.data.base_birthday), age:this.jsGetAge(res.data.base_birthday),
work_city:CodeToText[res.data.intention_area_id.slice(0,4)+'00'], work_city:CodeToText[res.data.intention_area_id.slice(0,4)+'00'],
work_area:CodeToText[res.data.intention_area_id], work_area:CodeToText[res.data.intention_area_id],
job_name:this.jobList[res.data.intention_job.slice(0,6)+'00'][res.data.intention_job] job_name:job_name?job_name: '---'
} }
this.salaryLevels.forEach(v=>{ this.salaryLevels.forEach(v=>{
if(v.level == obj.intention_salary_level) { if(v.level == obj.intention_salary_level) {
...@@ -202,7 +212,6 @@ ...@@ -202,7 +212,6 @@
obj.intention_edu_level_txt = v.level_name; obj.intention_edu_level_txt = v.level_name;
} }
}) })
let a1=this.jobList[res.data.intention_job.slice(0,4)+'0000']
this.detailInfo=obj; this.detailInfo=obj;
} }
}).catch() }).catch()
......
...@@ -154,6 +154,7 @@ ...@@ -154,6 +154,7 @@
if(res.error ==0) { if(res.error ==0) {
this.$message.success('邀请成功!'); this.$message.success('邀请成功!');
this.isShowRefuseResume = false; this.isShowRefuseResume = false;
this.getInterviewList();
} }
}) })
}, },
...@@ -182,6 +183,7 @@ ...@@ -182,6 +183,7 @@
this.interview_id = id; this.interview_id = id;
this.apply_id = apply_id; this.apply_id = apply_id;
this.isShowRefuseResume = true; this.isShowRefuseResume = true;
}, },
//获取面试邀请列表 //获取面试邀请列表
getInterviewList() { getInterviewList() {
......
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
size="small" size="small"
:options="regionData" :options="regionData"
v-model="registerInfo.enterprise_area" v-model="registerInfo.enterprise_area"
@change="addressChange"> >
</el-cascader> </el-cascader>
</div> </div>
<div class="line-style"> <div class="line-style">
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
import store from '@/store' import store from '@/store'
import Upload from '../../components/Upload/upload.vue'; import Upload from '../../components/Upload/upload.vue';
import {provinceAndCityData,regionData, CodeToText, TextToCode} from 'element-china-area-data'; import {provinceAndCityData,regionData, CodeToText, TextToCode} from 'element-china-area-data';
import {registerSms, register, accountEdit, accountLogin,forgetPassword,send} from '@/api/login' import {registerSms, register, accountEdit, accountLogin,forgetPassword,send,getToken} from '@/api/login'
import {isEmail} from '@/utils/checkEmail' import {isEmail} from '@/utils/checkEmail'
let domain = process.env.NODE_ENV == 'development' ? '' : '.ledianyun.com'; let domain = process.env.NODE_ENV == 'development' ? '' : '.ledianyun.com';
export default { export default {
...@@ -194,6 +194,10 @@ ...@@ -194,6 +194,10 @@
methods: { methods: {
handleforgetClose() { handleforgetClose() {
this.forgetPwdVisible = false; this.forgetPwdVisible = false;
this.forgetInfo.phone = '';
this.forgetInfo.code = '';
this.forgetInfo.password_one = '';
this.forgetInfo.password_two = '';
}, },
//获取头像 //获取头像
getPortrait(data) { getPortrait(data) {
...@@ -209,9 +213,6 @@ ...@@ -209,9 +213,6 @@
this.registerInfo.get_school_license_pic[0] = data; this.registerInfo.get_school_license_pic[0] = data;
console.log(this.registerInfo.get_school_license_pic[0],'this.registerInfo.get_school_license_pic[0]') console.log(this.registerInfo.get_school_license_pic[0],'this.registerInfo.get_school_license_pic[0]')
}, },
addressChange(arr) {
console.log(arr,'====');
},
//登录 //登录
loginBtn() { loginBtn() {
// 从路由地址获取mtoken // 从路由地址获取mtoken
...@@ -345,12 +346,6 @@ ...@@ -345,12 +346,6 @@
}, },
//发送忘记密码短信验证码 //发送忘记密码短信验证码
getCodeInfoforgrt() { getCodeInfoforgrt() {
// if (!this.checkForgetPhone()) {
// return;
// }
// if (this.codeTimes) {
// return;
// }
let data = { let data = {
phone: this.forgetInfo.phone, phone: this.forgetInfo.phone,
btoken: '50329e02db492b461120c25a212413c2', btoken: '50329e02db492b461120c25a212413c2',
...@@ -381,12 +376,23 @@ ...@@ -381,12 +376,23 @@
}, },
//确认修改密码 //确认修改密码
alterBtn() { alterBtn() {
// if (!this.checkForgetPhone()) { if(!this.forgetInfo.password_one.trim() || !this.forgetInfo.password_two.trim()) {
// return; this.$message.error('请输入密码');
// } return;
// if (!this.checkForgetPassWord()) { }
// return; if(this.forgetInfo.password_one != this.forgetInfo.password_two) {
// } this.$message.error('两次密码输入不一致');
return;
}
if(this.forgetInfo.password_one.length < 6 || this.forgetInfo.password_one.length > 20) {
this.$message.error('密码长度应为6至20位');
return;
}
if(!this.isPssword(this.forgetInfo.password_one)) {
this.$message.error('密码应由数字,字母和下划线组成');
return;
}
let data = { let data = {
phone: this.forgetInfo.phone, phone: this.forgetInfo.phone,
code: this.forgetInfo.code, code: this.forgetInfo.code,
...@@ -398,6 +404,10 @@ ...@@ -398,6 +404,10 @@
if (res.error == 0) { if (res.error == 0) {
this.$message.success('修改成功!'); this.$message.success('修改成功!');
this.forgetPwdVisible = false; this.forgetPwdVisible = false;
this.forgetInfo.phone = '';
this.forgetInfo.code = '';
this.forgetInfo.password_one = '';
this.forgetInfo.password_two = '';
} }
}); });
}, },
...@@ -410,6 +420,12 @@ ...@@ -410,6 +420,12 @@
registerFirst() { registerFirst() {
this.registerFirstVisible = true; this.registerFirstVisible = true;
}, },
isPssword(str){
if (str == null || str == "") return false;
var result = str.match(/^[A-Za-z0-9_]{6,20}$/);
if (result == null) return false;
return true;
},
next() { next() {
if(!this.registerInfo.name.trim()) { if(!this.registerInfo.name.trim()) {
this.$message.error('请输入招聘者名称'); this.$message.error('请输入招聘者名称');
...@@ -435,6 +451,10 @@ ...@@ -435,6 +451,10 @@
this.$message.error('两次密码输入不一致'); this.$message.error('两次密码输入不一致');
return; return;
} }
if(!this.isPssword(this.registerInfo.password)) {
this.$message.error('密码应由数字,字母和下划线组成');
return;
}
if(!this.checked) { if(!this.checked) {
this.$message.error('请勾选用户服务协议'); this.$message.error('请勾选用户服务协议');
return; return;
...@@ -518,6 +538,9 @@ ...@@ -518,6 +538,9 @@
} }
}, },
mounted() { mounted() {
// getToken().then(res=> {
// console.log(res,'getToken')
// })
this.getEnterprise(); this.getEnterprise();
this.getScale(); this.getScale();
} }
......
...@@ -8,14 +8,15 @@ ...@@ -8,14 +8,15 @@
<div class="line-style"> <div class="line-style">
<div class="label">企业名称:</div> <div class="label">企业名称:</div>
<el-input class="input" placeholder="请输入企业名称" size="small" v-model="registerInfo.enterprise_name"></el-input> <el-input class="input" placeholder="请输入企业名称" size="small" v-model="registerInfo.enterprise_name"></el-input>
<div style="color:red;margin-left: 10px">*</div>
</div> </div>
<div class="line-style"> <div class="line-style">
<div class="label">企业规模:</div> <div class="label">企业规模:</div>
<!-- <el-input class="input" placeholder="请输入企业人数" size="small" v-model="registerInfo.enterprise_scale"></el-input> -->
<el-select class="input" v-model="registerInfo.enterprise_scale" placeholder="请选择" size="small"> <el-select class="input" v-model="registerInfo.enterprise_scale" placeholder="请选择" size="small">
<el-option v-for="item in peopleLevel" :key="item.level" :label="item.level_name" :value="item.level"> <el-option v-for="item in peopleLevel" :key="item.level" :label="item.level_name" :value="item.level">
</el-option> </el-option>
</el-select> </el-select>
<div style="color:red;margin-left: 10px">*</div>
</div> </div>
<div class="line-style"> <div class="line-style">
<div class="label">企业类型:</div> <div class="label">企业类型:</div>
...@@ -23,6 +24,7 @@ ...@@ -23,6 +24,7 @@
<el-option v-for="item in enterprise" :key="item.type" :label="item.type_name" :value="item.type"> <el-option v-for="item in enterprise" :key="item.type" :label="item.type_name" :value="item.type">
</el-option> </el-option>
</el-select> </el-select>
<div style="color:red;margin-left: 10px">*</div>
</div> </div>
<div class="line-style"> <div class="line-style">
<div class="label">企业区域:</div> <div class="label">企业区域:</div>
...@@ -32,6 +34,7 @@ ...@@ -32,6 +34,7 @@
v-model="registerInfo.enterprise_area" v-model="registerInfo.enterprise_area"
> >
</el-cascader> </el-cascader>
<div style="color:red;margin-left: 10px">*</div>
</div> </div>
<div class="line-style"> <div class="line-style">
<div class="label">企业邮箱:</div> <div class="label">企业邮箱:</div>
...@@ -40,11 +43,13 @@ ...@@ -40,11 +43,13 @@
<div class="line-style"> <div class="line-style">
<div class="label">企业地址:</div> <div class="label">企业地址:</div>
<el-input class="input" placeholder="请输入企业地址" size="small" v-model="registerInfo.enterprise_address"></el-input> <el-input class="input" placeholder="请输入企业地址" size="small" v-model="registerInfo.enterprise_address"></el-input>
<div style="color:red;margin-left: 10px">*</div>
</div> </div>
<div class="line-style"> <div class="line-style">
<div class="label">营业执照:</div> <div class="label">营业执照:</div>
<uploadimage @getImgs="getBusiness" :setImgUrl="registerInfo.business_license_pic"></uploadimage> <uploadimage @getImgs="getBusiness" :setImgUrl="registerInfo.business_license_pic"></uploadimage>
<div style="color:red;margin-left: 10px">*</div>
</div> </div>
<div class="line-style"> <div class="line-style">
<div class="label"></div> <div class="label"></div>
...@@ -73,7 +78,7 @@ ...@@ -73,7 +78,7 @@
import {accountGet, accountEdit} from "@/api/login"; import {accountGet, accountEdit} from "@/api/login";
import {provinceAndCityData,regionData, CodeToText, TextToCode} from 'element-china-area-data'; import {provinceAndCityData,regionData, CodeToText, TextToCode} from 'element-china-area-data';
import {getEnterpriseType,getEnterpriseScale} from '@/api/common'; import {getEnterpriseType,getEnterpriseScale} from '@/api/common';
import {isEmail} from '@/utils/checkEmail'
export default { export default {
name: "newPoint", name: "newPoint",
components: { components: {
...@@ -136,6 +141,34 @@ ...@@ -136,6 +141,34 @@
}) })
}, },
save() { save() {
if(!this.registerInfo.enterprise_name.trim()) {
this.$message.error('请输入企业名称');
return;
}
if(!this.registerInfo.enterprise_scale) {
this.$message.error('请选择企业规模');
return;
}
if(!this.registerInfo.enterprise_type) {
this.$message.error('请选择企业类型');
return;
}
if(!this.registerInfo.enterprise_area) {
this.$message.error('请选择企业区域');
return;
}
if(!this.registerInfo.enterprise_address.trim()) {
this.$message.error('请输入企业地址');
return;
}
if(!this.registerInfo.get_business_license_pic[0]) {
this.$message.error('请上传营业执照');
return;
}
if(this.registerInfo.email && !isEmail(this.registerInfo.email)) {
this.$message.error('邮箱格式错误');
return;
}
let params = { let params = {
position_name: this.registerInfo.duty, position_name: this.registerInfo.duty,
email: this.registerInfo.email, email: this.registerInfo.email,
......
...@@ -9,8 +9,7 @@ ...@@ -9,8 +9,7 @@
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item label="职位名称:"> <el-form-item label="职位名称:">
<el-input v-model="positionForm.position_name" class="input-style" size="small" <el-input v-model="positionForm.position_name" class="input-style" size="small"
placeholder="请输入职位名称" placeholder="请输入职位名称"></el-input>
maxlength="11"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="职位类型:"> <el-form-item label="职位类型:">
<el-cascader v-model="positionForm.position_type" size="small" :options="position_type" :props="{ expandTrigger: 'hover' }" <el-cascader v-model="positionForm.position_type" size="small" :options="position_type" :props="{ expandTrigger: 'hover' }"
...@@ -35,12 +34,10 @@ ...@@ -35,12 +34,10 @@
</el-cascader> </el-cascader>
</el-form-item> </el-form-item>
<el-form-item label="工作地址:"> <el-form-item label="工作地址:">
<el-input v-model="positionForm.address" class="input-style" placeholder="请输入工作地址" <el-input v-model="positionForm.address" class="input-style" placeholder="请输入工作地址" size="small" style="width: 600px"></el-input>
maxlength="10" size="small" style="width: 600px"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="定位地址:"> <el-form-item label="定位地址:">
<el-input v-model="positionForm.location_adderss" class="input-style" placeholder="请输入定位地址" <el-input v-model="positionForm.location_adderss" class="input-style" placeholder="请输入定位地址" size="small" id="detailaddress" style="width: 600px"></el-input>
maxlength="10" size="small" id="detailaddress" style="width: 600px"></el-input>
</el-form-item> </el-form-item>
<el-form-item label=""> <el-form-item label="">
<div class="map" id="map-location"></div> <div class="map" id="map-location"></div>
...@@ -233,8 +230,6 @@ ...@@ -233,8 +230,6 @@
this.positionForm.number = res.data.job_require_people; this.positionForm.number = res.data.job_require_people;
this.positionForm.address = res.data.work_address; this.positionForm.address = res.data.work_address;
this.positionForm.location_adderss = res.data.location_adderss; this.positionForm.location_adderss = res.data.location_adderss;
// this.positionForm.min_salary = res.data.job_require_salary_min / 100;
// this.positionForm.max_salary = res.data.job_require_salary_max / 100;
this.job_benefits = res.data.job_benefits; this.job_benefits = res.data.job_benefits;
this.positionForm.get_position_describe = res.data.job_remark; this.positionForm.get_position_describe = res.data.job_remark;
this.positionForm.education = res.data.job_require_edu_level; this.positionForm.education = res.data.job_require_edu_level;
...@@ -243,7 +238,6 @@ ...@@ -243,7 +238,6 @@
this.positionForm.position_type = res.data.job_classification_id; this.positionForm.position_type = res.data.job_classification_id;
this.positionForm.longitude = res.data.location_lng; this.positionForm.longitude = res.data.location_lng;
this.positionForm.latitude = res.data.location_lat; this.positionForm.latitude = res.data.location_lat;
this.positionForm.location_adderss = res.data.location_adderss;
this.positionForm.salaryScope = res.data.job_require_salary_level; this.positionForm.salaryScope = res.data.job_require_salary_level;
if (res.data.location_lng != 0 || res.data.location_lat != 0) { if (res.data.location_lng != 0 || res.data.location_lat != 0) {
let position = [res.data.location_lng, res.data.location_lat]; let position = [res.data.location_lng, res.data.location_lat];
...@@ -367,7 +361,6 @@ ...@@ -367,7 +361,6 @@
_this.positionForm.longitude = res.poi.location.lng; _this.positionForm.longitude = res.poi.location.lng;
_this.positionForm.latitude = res.poi.location.lat; _this.positionForm.latitude = res.poi.location.lat;
_this.positionForm.location_adderss = res.poi.district + res.poi.address + res.poi.name; _this.positionForm.location_adderss = res.poi.district + res.poi.address + res.poi.name;
var lnglatXY = [res.poi.location.M, res.poi.location.lat]; var lnglatXY = [res.poi.location.M, res.poi.location.lat];
_this.addRemark(lnglatXY); _this.addRemark(lnglatXY);
}); });
...@@ -409,6 +402,9 @@ ...@@ -409,6 +402,9 @@
// this.addresInfo = data; // this.addresInfo = data;
var address = data.regeocode.formattedAddress; //返回地址描述 var address = data.regeocode.formattedAddress; //返回地址描述
this.positionForm.location_adderss = address; this.positionForm.location_adderss = address;
if(!this.positionForm.address) {
this.positionForm.address = this.positionForm.location_adderss;
}
}, },
//获取学历 //获取学历
getEduLevels() { getEduLevels() {
......
...@@ -164,6 +164,7 @@ ...@@ -164,6 +164,7 @@
reset() { reset() {
this.queryForm.searchContent = ''; this.queryForm.searchContent = '';
this.queryForm.status = ''; this.queryForm.status = '';
this.queryForm.type = '';
this.getPositionList(); this.getPositionList();
}, },
//搜索 //搜索
......
...@@ -20,13 +20,15 @@ ...@@ -20,13 +20,15 @@
<div class="resume-header_info flex-direct"> <div class="resume-header_info flex-direct">
<div class="flex-between"> <div class="flex-between">
<i class='iconfont icon-mobile txtSize'></i> <i class='iconfont icon-mobile txtSize'></i>
<span class='ml' v-if="detailInfo.show_status==2">已隐藏</span> <!-- <span class='ml' v-if="detailInfo.show_status==2">已隐藏</span>
<span class='ml' v-else>{{detailInfo.base_phone}}</span> <span class='ml' v-else>{{detailInfo.base_phone}}</span> -->
<span class='ml'>******</span>
</div> </div>
<div class="flex-between"> <div class="flex-between">
<i class='iconfont icon-dianziyoujian txtSize'></i> <i class='iconfont icon-dianziyoujian txtSize'></i>
<span class='ml' v-if="detailInfo.show_status==2">已隐藏</span> <!-- <span class='ml' v-if="detailInfo.show_status==2">已隐藏</span>
<span class='ml' v-else>{{detailInfo.base_email}}</span> <span class='ml' v-else>{{detailInfo.base_email}}</span> -->
<span class='ml'>******</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -236,6 +238,7 @@ ...@@ -236,6 +238,7 @@
return returnAge;//返回周岁年龄 return returnAge;//返回周岁年龄
}, },
getDetail(){ getDetail(){
let self = this;
let loading = Loading.service({ let loading = Loading.service({
target: document.querySelector('.main-container'), target: document.querySelector('.main-container'),
text: '请求中...', text: '请求中...',
...@@ -248,12 +251,21 @@ ...@@ -248,12 +251,21 @@
checkResumeDetail(data).then(res=>{ checkResumeDetail(data).then(res=>{
loading.close(); loading.close();
if(res.error==0){ if(res.error==0){
let job_name='';
for(let key in this.jobList){
Object.keys(this.jobList[key]).forEach(function(i){
if(res.data.intention_job==i){
job_name=self.jobList[key][i];
}
});
}
console.log(job_name,'job_name')
let obj={ let obj={
...res.data, ...res.data,
age:this.jsGetAge(res.data.base_birthday), age:this.jsGetAge(res.data.base_birthday),
work_city:CodeToText[res.data.intention_area_id.slice(0,4)+'00'], work_city:CodeToText[res.data.intention_area_id.slice(0,4)+'00'],
work_area:CodeToText[res.data.intention_area_id], work_area:CodeToText[res.data.intention_area_id],
job_name:this.intention_job?this.jobList[res.data.intention_job.slice(0,6)+'00'][res.data.intention_job]:'--' job_name:job_name?job_name: '---'
} }
this.salaryLevels.forEach(v=>{ this.salaryLevels.forEach(v=>{
if(v.level == obj.intention_salary_level) { if(v.level == obj.intention_salary_level) {
...@@ -265,7 +277,6 @@ ...@@ -265,7 +277,6 @@
obj.intention_edu_level_txt = v.level_name; obj.intention_edu_level_txt = v.level_name;
} }
}) })
let a1=this.jobList[res.data.intention_job.slice(0,4)+'0000']
this.detailInfo=obj; this.detailInfo=obj;
} }
}).catch() }).catch()
......
...@@ -236,6 +236,7 @@ ...@@ -236,6 +236,7 @@
return returnAge;//返回周岁年龄 return returnAge;//返回周岁年龄
}, },
getDetail(){ getDetail(){
let self = this;
let loading = Loading.service({ let loading = Loading.service({
target: document.querySelector('.main-container'), target: document.querySelector('.main-container'),
text: '请求中...', text: '请求中...',
...@@ -251,12 +252,20 @@ ...@@ -251,12 +252,20 @@
checkResumeDetail(data).then(res=>{ checkResumeDetail(data).then(res=>{
loading.close(); loading.close();
if(res.error==0){ if(res.error==0){
let job_name='';
for(let key in this.jobList){
Object.keys(this.jobList[key]).forEach(function(i){
if(res.data.intention_job==i){
job_name=self.jobList[key][i];
}
});
}
let obj={ let obj={
...res.data, ...res.data,
age:this.jsGetAge(res.data.base_birthday), age:this.jsGetAge(res.data.base_birthday),
work_city:CodeToText[res.data.intention_area_id.slice(0,4)+'00'], work_city:CodeToText[res.data.intention_area_id.slice(0,4)+'00'],
work_area:CodeToText[res.data.intention_area_id], work_area:CodeToText[res.data.intention_area_id],
job_name:this.jobList[res.data.intention_job.slice(0,6)+'00'][res.data.intention_job] job_name:job_name?job_name: '---'
} }
this.salaryLevels.forEach(v=>{ this.salaryLevels.forEach(v=>{
if(v.level == obj.intention_salary_level) { if(v.level == obj.intention_salary_level) {
...@@ -268,9 +277,7 @@ ...@@ -268,9 +277,7 @@
obj.intention_edu_level_txt = v.level_name; obj.intention_edu_level_txt = v.level_name;
} }
}) })
let a1=this.jobList[res.data.intention_job.slice(0,4)+'0000']
this.detailInfo=obj; this.detailInfo=obj;
console.log(this.detailInfo,'this.detailInfo')
} }
}).catch() }).catch()
}, },
......
...@@ -90,9 +90,9 @@ ...@@ -90,9 +90,9 @@
<div> <div>
<el-button size="small" type="text" @click="checkResume(scope.row.cv_token_apply, scope.row.id)">查看简历</el-button> <el-button size="small" type="text" @click="checkResume(scope.row.cv_token_apply, scope.row.id)">查看简历</el-button>
<span class="segmenting-line">|</span> <span class="segmenting-line">|</span>
<el-button size="small" type="text" @click="passResume(scope.row.id)">通过</el-button> <el-button size="small" type="text" @click="passResume(scope.row.id,scope.row.status)">通过</el-button>
<span class="segmenting-line">|</span> <span class="segmenting-line">|</span>
<el-button size="small" type="text" @click="refuseResume(scope.row.id)">拒绝</el-button> <el-button size="small" type="text" @click="refuseResume(scope.row.id,scope.row.status)">拒绝</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -215,12 +215,20 @@ ...@@ -215,12 +215,20 @@
} }
}) })
}, },
passResume(id) { passResume(id,status) {
if(status == 3) {
this.$message.error('已通过筛选,不能重复操作');
return;
}
this.checked_id = id; this.checked_id = id;
this.isShowPassResume = true; this.isShowPassResume = true;
}, },
refuseResume(id) { refuseResume(id,status) {
this.checked_id = id; this.checked_id = id;
if(status == 4) {
this.$message.error('已拒绝,不能重复操作');
return;
}
this.isShowRefuseResume = true; this.isShowRefuseResume = true;
}, },
//确认拒绝简历 //确认拒绝简历
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!