diff --git a/src/views/statistics/good_check_gx.vue b/src/views/statistics/good_check_gx.vue index 5347b899..e109fd5f 100644 --- a/src/views/statistics/good_check_gx.vue +++ b/src/views/statistics/good_check_gx.vue @@ -565,7 +565,7 @@ export default { obj.compare = "lte"; obj.field = "data__外观检验_返修_日期"; } - if(that.query.batch.indexOf(' ')>-1){ + if(that.query.batch != "" && that.query.batch != null && that.query.batch != undefined&&that.query.batch.indexOf(' ')){ let arrs = that.query.batch.split(' '); arrs.forEach((item,index)=>{ let newArrayName1 = 'arr1' + index;