Commit 31aef8c1e5914b80c2b47939f2ead15a2c1f90c6

Authored by 娄高锋
1 parent 58c1cc4c

线路选项设置为必选,查询全部线路载入时间过长

src/main/resources/static/pages/forms/statement/refuelDc.html
@@ -180,6 +180,9 @@ @@ -180,6 +180,9 @@
180 }); 180 });
181 if(line.length > 0){ 181 if(line.length > 0){
182 line = line.substring(0, line.length - 1); 182 line = line.substring(0, line.length - 1);
  183 + } else {
  184 + layer.msg("请选择线路");
  185 + return;
183 } 186 }
184 date = $("#date").val(); 187 date = $("#date").val();
185 car = $("#code").val(); 188 car = $("#code").val();
src/main/resources/static/pages/forms/statement/refuelYc.html
@@ -184,6 +184,9 @@ @@ -184,6 +184,9 @@
184 }); 184 });
185 if(line.length > 0){ 185 if(line.length > 0){
186 line = line.substring(0, line.length - 1); 186 line = line.substring(0, line.length - 1);
  187 + } else {
  188 + layer.msg("请选择线路");
  189 + return;
187 } 190 }
188 date = $("#date").val(); 191 date = $("#date").val();
189 car = $("#code").val(); 192 car = $("#code").val();