优化代码

This commit is contained in:
Your Name 2023-04-27 09:03:04 +08:00
parent 1e83de6e57
commit df5221ceed

View File

@ -109,7 +109,7 @@
moreState:'20200405,20200406', moreState:'20200405,20200406',
canReexamine:'2000', canReexamine:'2000',
planInsTime: _that.planInsTime, planInsTime: _that.planInsTime,
isToday: 1 isToday: null
}, },
success: function(res) { success: function(res) {
// TODO // TODO
@ -120,6 +120,8 @@
_that.tasks = res.data.inspectionTasks; _that.tasks = res.data.inspectionTasks;
if(_that.tasks.length < 1){ if(_that.tasks.length < 1){
_that.noData = true; _that.noData = true;
}else{
_that.noData = false;
} }
} }
}); });