Commit 6f5e02dd327b6616d75a79164d365d4f0b4c6c24

Authored by 娄高锋
1 parent 37dda8b3

修正看不到撤销线路线路名的问题。

src/main/resources/static/pages/mforms/operationservices/operationservice.html
... ... @@ -201,7 +201,11 @@
201 201 // $("#fgsdmOperat").attr("disabled", true);
202 202 }
203 203 });
204   -
  204 +
  205 + var allXlList = [];
  206 + $.get('/line/all',function(result_xlList){
  207 + allXlList = result_xlList;
  208 + });
205 209  
206 210 $("#query").on(
207 211 "click",
... ... @@ -237,6 +241,18 @@
237 241 }
238 242 obj.updateDate = moment(obj.startDate).format(
239 243 "YYYY-MM-DD HH:mm:ss");
  244 + if(obj.xlName == null){
  245 + $.each(allXlList, function(ii, oo) {
  246 + if(oo.lineCode == obj.xlBm){
  247 + if((oo.name).indexOf("(") > -1){
  248 + obj.xlName = (oo.name).substring(0,(oo.name).indexOf("("));
  249 + } else {
  250 + obj.xlName = oo.name;
  251 + }
  252 + return false;
  253 + }
  254 + });
  255 + }
240 256 });
241 257 var operationservice = template('operationservice', {
242 258 list : result
... ...