|
|
@@ -94,6 +94,24 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
+ <el-col :span="19" :offset="5">
|
|
|
+ <div class="inlineb">
|
|
|
+ <span class>工作年限:</span>
|
|
|
+ <div class="inlineb">
|
|
|
+ <el-input style="width: 230px;" v-model="work_year" ></el-input>年
|
|
|
+ </div>
|
|
|
+ <el-alert
|
|
|
+ title=""
|
|
|
+ class="top"
|
|
|
+ id="workYear"
|
|
|
+ type="warning"
|
|
|
+ style="display: none"
|
|
|
+ show-icon>
|
|
|
+ </el-alert>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
<el-col :span="19" :offset="5">职位方向:<span>{{directions}}</span><span style="display: none">{{match_directions}}</span></el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
@@ -139,6 +157,7 @@
|
|
|
salary_from:'',
|
|
|
salary_to:'',
|
|
|
month:'',
|
|
|
+ work_year:'',
|
|
|
directions:'',
|
|
|
match_skills:'',
|
|
|
skill:'',
|
|
|
@@ -219,6 +238,7 @@
|
|
|
this.salary_from = res.data.job.match_salary_min;
|
|
|
this.salary_to = res.data.job.match_salary_max;
|
|
|
this.month = res.data.job.month;
|
|
|
+ this.work_year = res.data.job.work_year;
|
|
|
this.directions = res.data.job.directions;
|
|
|
this.match_skills = res.data.job.match_skills;
|
|
|
this.skill = res.data.job.skill;
|
|
|
@@ -237,6 +257,12 @@
|
|
|
let salaryAlert = document.getElementById('salaryAlert');
|
|
|
let monthAlert = document.getElementById('monthAlert');
|
|
|
let jobInfoAlert = document.getElementById('jobInfoAlert');
|
|
|
+ let workYearAlert = document.getElementById('workYear');
|
|
|
+ if (this.work_year.length==0){
|
|
|
+ workYearAlert.innerText = '请输入工作年限';
|
|
|
+ workYearAlert.style.display = 'block';
|
|
|
+ flag = true;
|
|
|
+ }
|
|
|
if (this.salary_from.length==0||this.salary_to.length==0){
|
|
|
salaryAlert.innerText = '请正确输入薪酬范围';
|
|
|
salaryAlert.style.display = 'block';
|
|
|
@@ -252,6 +278,11 @@
|
|
|
jobInfoAlert.style.display = 'block';
|
|
|
flag = true;
|
|
|
}
|
|
|
+ if ((this.work_year<0||this.work_year>99)&&this.work_year.length!=0){
|
|
|
+ workYearAlert.innerText = '工作年限正确填写范围0-99';
|
|
|
+ workYearAlert.style.display = 'block';
|
|
|
+ flag = true;
|
|
|
+ }
|
|
|
if (this.salary_from<1||this.salary_from>1000000||this.salary_to<1||this.salary_to>1000000||this.salary_from>=this.salary_to){
|
|
|
salaryAlert.innerText = '薪酬填写范围1-1000000且前一个值要小于后一个值';
|
|
|
salaryAlert.style.display = 'block';
|
|
|
@@ -279,6 +310,7 @@
|
|
|
'salary_to' : this.salary_to,
|
|
|
'city' : this.city,
|
|
|
'month' : this.month,
|
|
|
+ 'work_year' : this.work_year,
|
|
|
'job_direction' : this.match_directions,
|
|
|
'job_skills' : this.match_skills,
|
|
|
'job_description' :this.job_description
|