优化筛选

cyl/dev
jscyl13849007907 1 year ago
parent 2a1907fd52
commit 32fd413bd6

@ -1203,7 +1203,7 @@ export default {
this.isFetching = false;
});
} else {
this.getJobList().then(() => {
this.getJobList({isScroll:1}).then(() => {
this.isFetching = false;
});
}
@ -1250,7 +1250,7 @@ export default {
},
async getJobList(newdata) {
// this.isspinning = true;
console.log("this.formvalue", this.formvalue);
console.log('newdata',newdata);
try {
newdata = {
district: "",
@ -1261,6 +1261,7 @@ export default {
pageNum: this.formvalue.pageNum, // 使
pageSize: 8,
total: null, //
isScroll: newdata && newdata.isScroll == 1 ? 1 : 0,
};
for (var k in this.formvalue) {
if (Array.isArray(this.formvalue[k])) {
@ -1281,7 +1282,12 @@ export default {
this.isStop = false;
this.speed = 1;
}
this.jobMainList = this.jobMainList.concat(disposeJobListData(data.data.recordList)); //
if(newdata.isScroll == 1){
this.jobMainList = this.jobMainList.concat(disposeJobListData(data.data.recordList)); //
}else{
this.jobMainList = disposeJobListData(data.data.recordList)
}
this.formvalue.total = data.data.recordCount;
} else {
this.$message.info("数据获取失败");

Loading…
Cancel
Save