优化招聘页面
This commit is contained in:
@@ -302,11 +302,10 @@ export default {
|
||||
},
|
||||
changeTab: function (e) {
|
||||
this.isSearch = false;
|
||||
|
||||
this.activeTab = e;
|
||||
},
|
||||
//推荐岗位;
|
||||
getNearList: function (point) {
|
||||
|
||||
nearMission(this.nearPage.current, this.nearPage.size).then(res => {
|
||||
if (this.nearPage.current === 1) {
|
||||
this.companyList = [];
|
||||
@@ -314,7 +313,6 @@ export default {
|
||||
this.nearPage.current += 1;
|
||||
this.nearPage.total = res.data.data.total;
|
||||
if (res.data.data && res.data.data.records.length) {
|
||||
|
||||
this.companyList = this.companyList.concat(res.data.data.records);
|
||||
}
|
||||
})
|
||||
@@ -335,21 +333,20 @@ export default {
|
||||
// })
|
||||
}
|
||||
},
|
||||
//推荐岗位;
|
||||
getRecommendList: function () {
|
||||
recommendMission(this.recommendPage.current, this.recommendPage.size, '').then(res => {
|
||||
if (this.recommendPage.current === 1) {
|
||||
this.recommendList = [];
|
||||
}
|
||||
|
||||
this.recommendPage.current += 1;
|
||||
this.recommendPage.total = res.data.data.total;
|
||||
if (res.data.data && res.data.data.records.length) {
|
||||
debugger
|
||||
this.recommendList = this.recommendList.concat(res.data.data.records);
|
||||
}
|
||||
})
|
||||
},
|
||||
// getRecommendList: function () {
|
||||
// recommendMission(this.recommendPage.current, this.recommendPage.size, '').then(res => {
|
||||
// if (this.recommendPage.current === 1) {
|
||||
// this.recommendList = [];
|
||||
// }
|
||||
|
||||
// this.recommendPage.current += 1;
|
||||
// this.recommendPage.total = res.data.data.total;
|
||||
// if (res.data.data && res.data.data.records.length) {
|
||||
// this.recommendList = this.recommendList.concat(res.data.data.records);
|
||||
// }
|
||||
// })
|
||||
// },
|
||||
//推荐任务;
|
||||
getNewList: function () {
|
||||
newMissionAll(this.newPage.current, this.newPage.size, '').then(res => {
|
||||
@@ -458,9 +455,10 @@ export default {
|
||||
this.recommendPage.current = 1;
|
||||
this.newPage.current = 1;
|
||||
this.getLocation();
|
||||
this.getRecommendList();
|
||||
// this.getRecommendList();
|
||||
this.getNewList();
|
||||
this.getNearList();
|
||||
this.getPolicy()
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user