|
@@ -201,6 +201,10 @@
|
|
},
|
|
},
|
|
getDataList(isTurnPage) {
|
|
getDataList(isTurnPage) {
|
|
const param = this.getFilterItems(isTurnPage);
|
|
const param = this.getFilterItems(isTurnPage);
|
|
|
|
+ if(param.leaveHosDateStart>param.leaveHosDateEnd){
|
|
|
|
+ this.warning('开始时间不能大于结束时间');
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
this.searched = true;
|
|
this.searched = true;
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
lock: true,
|
|
@@ -209,13 +213,17 @@
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
});
|
|
});
|
|
api.getStdList(param).then((res) => {
|
|
api.getStdList(param).then((res) => {
|
|
- loading.close()
|
|
|
|
- let list = res.data.data.records
|
|
|
|
- this.list = list;
|
|
|
|
- this.total = res.data.data.total;
|
|
|
|
- if(this.inCurrentPage!==undefined){
|
|
|
|
- this.currentPage=this.inCurrentPage;
|
|
|
|
- this.inCurrentPage = undefined;
|
|
|
|
|
|
+ if(res.data.code==="0"){
|
|
|
|
+ loading.close();
|
|
|
|
+ let list = res.data.data.records;
|
|
|
|
+ this.list = list;
|
|
|
|
+ this.total = res.data.data.total;
|
|
|
|
+ if(this.inCurrentPage!==undefined){
|
|
|
|
+ this.currentPage=this.inCurrentPage;
|
|
|
|
+ this.inCurrentPage = undefined;
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.warning(res.data.msg||'操作失败');
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|