Commit 069bb424cfb5dad74628fd96bd504d1c50ed5e3f

Authored by yiming
1 parent df14b31c

bf

bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/controller/BsthTLineHistoryController.java
@@ -96,6 +96,8 @@ public class BsthTLineHistoryController extends BaseController @@ -96,6 +96,8 @@ public class BsthTLineHistoryController extends BaseController
96 boolean flag=bsthTLineService.selectHistoryByLineNameAndUpdateStatus(bsthTLine)!=null?true:false; 96 boolean flag=bsthTLineService.selectHistoryByLineNameAndUpdateStatus(bsthTLine)!=null?true:false;
97 mmap.put("flag",flag); 97 mmap.put("flag",flag);
98 mmap.put("bsthTLine", bsthTLine); 98 mmap.put("bsthTLine", bsthTLine);
  99 + List<Map> companyList=bsthTLineService.selectCompany();
  100 + mmap.put("companyList",companyList);
99 return prefix + "/edit"; 101 return prefix + "/edit";
100 } 102 }
101 103
bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/domain/BsthTLineKFK.java 0 → 100644
  1 +package com.ruoyi.project.system.line.domain;
  2 +
  3 +import com.fasterxml.jackson.annotation.JsonFormat;
  4 +import com.ruoyi.framework.aspectj.lang.annotation.Excel;
  5 +import com.ruoyi.framework.web.domain.BaseEntity;
  6 +
  7 +import java.util.Date;
  8 +
  9 +/**
  10 + * 【请填写功能名称】对象 bsth_t_line
  11 + *
  12 + * @author ruoyi
  13 + * @date 2021-08-17
  14 + */
  15 +public class BsthTLineKFK extends BaseEntity
  16 +{
  17 + /** 线路名称 */
  18 + private String lineName;
  19 +
  20 + /** 公司 */
  21 + private String company;
  22 +
  23 + /** 公司编号 */
  24 + private String companyID;
  25 +
  26 + /** 分公司 */
  27 + private String fCompany;
  28 +
  29 + /** 公司编号 */
  30 + private String fCompanyID;
  31 +
  32 + /** 营运方式 全程/区间/大站/定班/跨线/B线 */
  33 + private String serviceType;
  34 +
  35 + /** 线路属性 */
  36 + private String lineLevel;
  37 +
  38 + /** 线路类型 */
  39 + private String lineType;
  40 +
  41 + /** 道路类型 */
  42 + private String roadType;
  43 +
  44 + /** 区属 */
  45 + private String district;
  46 +
  47 + /** 是否区内 */
  48 + private String inoutDistrict;
  49 +
  50 + /** 车辆类型 多选 */
  51 + private String busType;
  52 +
  53 + /** 是否空调 */
  54 + private String airConditionerType;
  55 +
  56 + /** 售票类型 */
  57 + private String sellTicketType;
  58 +
  59 + /** 票价(多级票价用,隔开) */
  60 + private String ticketPrice;
  61 +
  62 + /** 运营时间 */
  63 + private String serviceTime;
  64 +
  65 + /** 线路长度 */
  66 + private String lineDistance;
  67 +
  68 + /** 首站 */
  69 + private String firstStation;
  70 +
  71 + /** 末站 */
  72 + private String lastStation;
  73 +
  74 + /** 站点名称 */
  75 + private String halfwayStation;
  76 +
  77 + /** 线路走向 */
  78 + private String directions;
  79 +
  80 + /** 起点站首末班 */
  81 + private String firstTime;
  82 +
  83 + /** 终点站首末班 */
  84 + private String lastTime;
  85 +
  86 + /** 授权年限 */
  87 + private Long warrantYear;
  88 +
  89 + /** 授权起始日期 */
  90 + @JsonFormat(pattern = "yyyy-MM-dd")
  91 + private Date warrantStartTime;
  92 +
  93 + /** 授权结束日期 */
  94 + @JsonFormat(pattern = "yyyy-MM-dd")
  95 + private Date warrantEndTime;
  96 +
  97 + /** 是否权证 0-否 1-是*/
  98 + private String isWarrant;
  99 +
  100 + /** 线路暂停日期 */
  101 + @JsonFormat(pattern = "yyyy-MM-dd")
  102 + private Date planCancelTime;
  103 +
  104 + /** 实际撤销日期 */
  105 + @JsonFormat(pattern = "yyyy-MM-dd")
  106 + private Date cancelTime;
  107 +
  108 + /** 实施时间 */
  109 + @JsonFormat(pattern = "yyyy-MM-dd")
  110 + private Date timeSchedule;
  111 +
  112 + /** 经营权证(大巴) */
  113 + private Long warrantVehiclesLarge;
  114 +
  115 + /** 经营权证(中巴) */
  116 + private Long warrantVehiclesMiddle;
  117 +
  118 + /** 实际配车数 */
  119 + private Long vehiclesNumber;
  120 +
  121 + /** 实际车辆数(大) */
  122 + private Long numberVehiclesLarge;
  123 +
  124 + /** 实际车辆数(中) */
  125 + private Long numberVehiclesMiddle;
  126 +
  127 + /** 上行里程数 */
  128 + private String mileageUp;
  129 +
  130 + /** 下行里程数 */
  131 + private String mileageDown;
  132 +
  133 + /** 站级数(上行) */
  134 + private String stationUp;
  135 +
  136 + /** 站级数(下行) */
  137 + private String stationDown;
  138 +
  139 + /** 行驶时间(上行) */
  140 + private String travelTimeUp;
  141 +
  142 + /** 行驶时间(下行) */
  143 + private String travelTimeDown;
  144 +
  145 + /** 行驶间隔(高峰) */
  146 + private String travelIntervalUp;
  147 +
  148 + /** 行驶间隔(低谷) */
  149 + private String travelIntervalDown;
  150 +
  151 + /** 间隔等级 */
  152 + private String divideLevel;
  153 +
  154 + /** 车辆自编号(无) */
  155 + private String carPlate;
  156 +
  157 + /** 线路配档数 */
  158 + private Long numberPerson;
  159 +
  160 + /** 司机数 */
  161 + private Long numberPersonDriver;
  162 +
  163 + /** 售票员数 */
  164 + private Long numberPersonSales;
  165 +
  166 + /** 新能源车数 */
  167 + private Long busEvNumber;
  168 +
  169 + /** 是否挂牌 */
  170 + private String hasTimelists;
  171 +
  172 + /** 是否轨交末班车衔接 */
  173 + private String isMetro;
  174 +
  175 + /** 轨交时间 */
  176 + private String metroTime;
  177 +
  178 + /** 冷僻线路补贴类型 */
  179 + private String coldBonusType;
  180 +
  181 + /** 营收类型 */
  182 + private String revenueType;
  183 +
  184 + /** 类型 */
  185 + private String operationType;
  186 +
  187 + public String getLineName() {
  188 + return lineName;
  189 + }
  190 +
  191 + public void setLineName(String lineName) {
  192 + this.lineName = lineName;
  193 + }
  194 +
  195 + public String getCompany() {
  196 + return company;
  197 + }
  198 +
  199 + public void setCompany(String company) {
  200 + this.company = company;
  201 + }
  202 +
  203 + public String getCompanyID() {
  204 + return companyID;
  205 + }
  206 +
  207 + public void setCompanyID(String companyID) {
  208 + this.companyID = companyID;
  209 + }
  210 +
  211 + public String getfCompany() {
  212 + return fCompany;
  213 + }
  214 +
  215 + public void setfCompany(String fCompany) {
  216 + this.fCompany = fCompany;
  217 + }
  218 +
  219 + public String getfCompanyID() {
  220 + return fCompanyID;
  221 + }
  222 +
  223 + public void setfCompanyID(String fCompanyID) {
  224 + this.fCompanyID = fCompanyID;
  225 + }
  226 +
  227 + public String getServiceType() {
  228 + return serviceType;
  229 + }
  230 +
  231 + public void setServiceType(String serviceType) {
  232 + this.serviceType = serviceType;
  233 + }
  234 +
  235 + public String getLineLevel() {
  236 + return lineLevel;
  237 + }
  238 +
  239 + public void setLineLevel(String lineLevel) {
  240 + this.lineLevel = lineLevel;
  241 + }
  242 +
  243 + public String getLineType() {
  244 + return lineType;
  245 + }
  246 +
  247 + public void setLineType(String lineType) {
  248 + this.lineType = lineType;
  249 + }
  250 +
  251 + public String getRoadType() {
  252 + return roadType;
  253 + }
  254 +
  255 + public void setRoadType(String roadType) {
  256 + this.roadType = roadType;
  257 + }
  258 +
  259 + public String getDistrict() {
  260 + return district;
  261 + }
  262 +
  263 + public void setDistrict(String district) {
  264 + this.district = district;
  265 + }
  266 +
  267 + public String getInoutDistrict() {
  268 + return inoutDistrict;
  269 + }
  270 +
  271 + public void setInoutDistrict(String inoutDistrict) {
  272 + this.inoutDistrict = inoutDistrict;
  273 + }
  274 +
  275 + public String getBusType() {
  276 + return busType;
  277 + }
  278 +
  279 + public void setBusType(String busType) {
  280 + this.busType = busType;
  281 + }
  282 +
  283 + public String getAirConditionerType() {
  284 + return airConditionerType;
  285 + }
  286 +
  287 + public void setAirConditionerType(String airConditionerType) {
  288 + this.airConditionerType = airConditionerType;
  289 + }
  290 +
  291 + public String getSellTicketType() {
  292 + return sellTicketType;
  293 + }
  294 +
  295 + public void setSellTicketType(String sellTicketType) {
  296 + this.sellTicketType = sellTicketType;
  297 + }
  298 +
  299 + public String getTicketPrice() {
  300 + return ticketPrice;
  301 + }
  302 +
  303 + public void setTicketPrice(String ticketPrice) {
  304 + this.ticketPrice = ticketPrice;
  305 + }
  306 +
  307 + public String getServiceTime() {
  308 + return serviceTime;
  309 + }
  310 +
  311 + public void setServiceTime(String serviceTime) {
  312 + this.serviceTime = serviceTime;
  313 + }
  314 +
  315 + public String getLineDistance() {
  316 + return lineDistance;
  317 + }
  318 +
  319 + public void setLineDistance(String lineDistance) {
  320 + this.lineDistance = lineDistance;
  321 + }
  322 +
  323 + public String getFirstStation() {
  324 + return firstStation;
  325 + }
  326 +
  327 + public void setFirstStation(String firstStation) {
  328 + this.firstStation = firstStation;
  329 + }
  330 +
  331 + public String getLastStation() {
  332 + return lastStation;
  333 + }
  334 +
  335 + public void setLastStation(String lastStation) {
  336 + this.lastStation = lastStation;
  337 + }
  338 +
  339 + public String getHalfwayStation() {
  340 + return halfwayStation;
  341 + }
  342 +
  343 + public void setHalfwayStation(String halfwayStation) {
  344 + this.halfwayStation = halfwayStation;
  345 + }
  346 +
  347 + public String getDirections() {
  348 + return directions;
  349 + }
  350 +
  351 + public void setDirections(String directions) {
  352 + this.directions = directions;
  353 + }
  354 +
  355 + public String getFirstTime() {
  356 + return firstTime;
  357 + }
  358 +
  359 + public void setFirstTime(String firstTime) {
  360 + this.firstTime = firstTime;
  361 + }
  362 +
  363 + public String getLastTime() {
  364 + return lastTime;
  365 + }
  366 +
  367 + public void setLastTime(String lastTime) {
  368 + this.lastTime = lastTime;
  369 + }
  370 +
  371 + public Long getWarrantYear() {
  372 + return warrantYear;
  373 + }
  374 +
  375 + public void setWarrantYear(Long warrantYear) {
  376 + this.warrantYear = warrantYear;
  377 + }
  378 +
  379 + public Date getWarrantStartTime() {
  380 + return warrantStartTime;
  381 + }
  382 +
  383 + public void setWarrantStartTime(Date warrantStartTime) {
  384 + this.warrantStartTime = warrantStartTime;
  385 + }
  386 +
  387 + public Date getWarrantEndTime() {
  388 + return warrantEndTime;
  389 + }
  390 +
  391 + public void setWarrantEndTime(Date warrantEndTime) {
  392 + this.warrantEndTime = warrantEndTime;
  393 + }
  394 +
  395 + public String getIsWarrant() {
  396 + return isWarrant;
  397 + }
  398 +
  399 + public void setIsWarrant(String isWarrant) {
  400 + this.isWarrant = isWarrant;
  401 + }
  402 +
  403 + public Date getPlanCancelTime() {
  404 + return planCancelTime;
  405 + }
  406 +
  407 + public void setPlanCancelTime(Date planCancelTime) {
  408 + this.planCancelTime = planCancelTime;
  409 + }
  410 +
  411 + public Date getCancelTime() {
  412 + return cancelTime;
  413 + }
  414 +
  415 + public void setCancelTime(Date cancelTime) {
  416 + this.cancelTime = cancelTime;
  417 + }
  418 +
  419 + public Date getTimeSchedule() {
  420 + return timeSchedule;
  421 + }
  422 +
  423 + public void setTimeSchedule(Date timeSchedule) {
  424 + this.timeSchedule = timeSchedule;
  425 + }
  426 +
  427 + public Long getWarrantVehiclesLarge() {
  428 + return warrantVehiclesLarge;
  429 + }
  430 +
  431 + public void setWarrantVehiclesLarge(Long warrantVehiclesLarge) {
  432 + this.warrantVehiclesLarge = warrantVehiclesLarge;
  433 + }
  434 +
  435 + public Long getWarrantVehiclesMiddle() {
  436 + return warrantVehiclesMiddle;
  437 + }
  438 +
  439 + public void setWarrantVehiclesMiddle(Long warrantVehiclesMiddle) {
  440 + this.warrantVehiclesMiddle = warrantVehiclesMiddle;
  441 + }
  442 +
  443 + public Long getVehiclesNumber() {
  444 + return vehiclesNumber;
  445 + }
  446 +
  447 + public void setVehiclesNumber(Long vehiclesNumber) {
  448 + this.vehiclesNumber = vehiclesNumber;
  449 + }
  450 +
  451 + public Long getNumberVehiclesLarge() {
  452 + return numberVehiclesLarge;
  453 + }
  454 +
  455 + public void setNumberVehiclesLarge(Long numberVehiclesLarge) {
  456 + this.numberVehiclesLarge = numberVehiclesLarge;
  457 + }
  458 +
  459 + public Long getNumberVehiclesMiddle() {
  460 + return numberVehiclesMiddle;
  461 + }
  462 +
  463 + public void setNumberVehiclesMiddle(Long numberVehiclesMiddle) {
  464 + this.numberVehiclesMiddle = numberVehiclesMiddle;
  465 + }
  466 +
  467 + public String getMileageUp() {
  468 + return mileageUp;
  469 + }
  470 +
  471 + public void setMileageUp(String mileageUp) {
  472 + this.mileageUp = mileageUp;
  473 + }
  474 +
  475 + public String getMileageDown() {
  476 + return mileageDown;
  477 + }
  478 +
  479 + public void setMileageDown(String mileageDown) {
  480 + this.mileageDown = mileageDown;
  481 + }
  482 +
  483 + public String getStationUp() {
  484 + return stationUp;
  485 + }
  486 +
  487 + public void setStationUp(String stationUp) {
  488 + this.stationUp = stationUp;
  489 + }
  490 +
  491 + public String getStationDown() {
  492 + return stationDown;
  493 + }
  494 +
  495 + public void setStationDown(String stationDown) {
  496 + this.stationDown = stationDown;
  497 + }
  498 +
  499 + public String getTravelTimeUp() {
  500 + return travelTimeUp;
  501 + }
  502 +
  503 + public void setTravelTimeUp(String travelTimeUp) {
  504 + this.travelTimeUp = travelTimeUp;
  505 + }
  506 +
  507 + public String getTravelTimeDown() {
  508 + return travelTimeDown;
  509 + }
  510 +
  511 + public void setTravelTimeDown(String travelTimeDown) {
  512 + this.travelTimeDown = travelTimeDown;
  513 + }
  514 +
  515 + public String getTravelIntervalUp() {
  516 + return travelIntervalUp;
  517 + }
  518 +
  519 + public void setTravelIntervalUp(String travelIntervalUp) {
  520 + this.travelIntervalUp = travelIntervalUp;
  521 + }
  522 +
  523 + public String getTravelIntervalDown() {
  524 + return travelIntervalDown;
  525 + }
  526 +
  527 + public void setTravelIntervalDown(String travelIntervalDown) {
  528 + this.travelIntervalDown = travelIntervalDown;
  529 + }
  530 +
  531 + public String getDivideLevel() {
  532 + return divideLevel;
  533 + }
  534 +
  535 + public void setDivideLevel(String divideLevel) {
  536 + this.divideLevel = divideLevel;
  537 + }
  538 +
  539 + public String getCarPlate() {
  540 + return carPlate;
  541 + }
  542 +
  543 + public void setCarPlate(String carPlate) {
  544 + this.carPlate = carPlate;
  545 + }
  546 +
  547 + public Long getNumberPerson() {
  548 + return numberPerson;
  549 + }
  550 +
  551 + public void setNumberPerson(Long numberPerson) {
  552 + this.numberPerson = numberPerson;
  553 + }
  554 +
  555 + public Long getNumberPersonDriver() {
  556 + return numberPersonDriver;
  557 + }
  558 +
  559 + public void setNumberPersonDriver(Long numberPersonDriver) {
  560 + this.numberPersonDriver = numberPersonDriver;
  561 + }
  562 +
  563 + public Long getNumberPersonSales() {
  564 + return numberPersonSales;
  565 + }
  566 +
  567 + public void setNumberPersonSales(Long numberPersonSales) {
  568 + this.numberPersonSales = numberPersonSales;
  569 + }
  570 +
  571 + public Long getBusEvNumber() {
  572 + return busEvNumber;
  573 + }
  574 +
  575 + public void setBusEvNumber(Long busEvNumber) {
  576 + this.busEvNumber = busEvNumber;
  577 + }
  578 +
  579 + public String getHasTimelists() {
  580 + return hasTimelists;
  581 + }
  582 +
  583 + public void setHasTimelists(String hasTimelists) {
  584 + this.hasTimelists = hasTimelists;
  585 + }
  586 +
  587 + public String getIsMetro() {
  588 + return isMetro;
  589 + }
  590 +
  591 + public void setIsMetro(String isMetro) {
  592 + this.isMetro = isMetro;
  593 + }
  594 +
  595 + public String getMetroTime() {
  596 + return metroTime;
  597 + }
  598 +
  599 + public void setMetroTime(String metroTime) {
  600 + this.metroTime = metroTime;
  601 + }
  602 +
  603 + public String getColdBonusType() {
  604 + return coldBonusType;
  605 + }
  606 +
  607 + public void setColdBonusType(String coldBonusType) {
  608 + this.coldBonusType = coldBonusType;
  609 + }
  610 +
  611 + public String getRevenueType() {
  612 + return revenueType;
  613 + }
  614 +
  615 + public void setRevenueType(String revenueType) {
  616 + this.revenueType = revenueType;
  617 + }
  618 +
  619 + public String getOperationType() {
  620 + return operationType;
  621 + }
  622 +
  623 + public void setOperationType(String operationType) {
  624 + this.operationType = operationType;
  625 + }
  626 +}
bsthLineProfiles/src/main/resources/templates/system/line/detail.html
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html lang="zh" xmlns:th="http://www.thymeleaf.org"> 2 <html lang="zh" xmlns:th="http://www.thymeleaf.org">
3 <head> 3 <head>
4 -<th:block th:include="include :: header('修改【请填写功能名称】')" />  
5 -<th:block th:include="include :: datetimepicker-css" />  
6 -<th:block th:include="include :: bootstrap-fileinput-css" />  
7 -<th:block th:include="include :: bootstrap-select-css" /> 4 + <th:block th:include="include :: header('修改【请填写功能名称】')"/>
  5 + <th:block th:include="include :: datetimepicker-css"/>
  6 + <th:block th:include="include :: bootstrap-fileinput-css"/>
  7 + <th:block th:include="include :: bootstrap-select-css"/>
8 </head> 8 </head>
  9 +<style>
  10 + .select-list li {
  11 + color: #333;
  12 + margin: 5px 15px 5px 0px;
  13 + height: 40px;
  14 + }
  15 +</style>
9 <body class="white-bg"> 16 <body class="white-bg">
10 - <div class="wrapper wrapper-content animated fadeInRight ibox-content">  
11 - <form class="form-horizontal m" id="form-line-edit" th:object="${bsthTLine}">  
12 - <input name="id" th:field="*{id}" type="hidden">  
13 -  
14 - <div class="form-group">  
15 - <span id="lineName" display="none">  
16 - <label class="col-sm-1 control-label">线路名称:</label>  
17 - <div class="col-sm-2">  
18 - <input name="lineName" th:field="*{lineName}" class="form-control" type="text" disabled>  
19 - </div>  
20 - </span>  
21 - <!---------------------------------->  
22 - <span id="pLineId">  
23 - <label class="col-sm-1 control-label">主线路id:</label>  
24 - <div class="col-sm-2">  
25 - <input name="pLineId" th:field="*{pLineId}" class="form-control" type="text" disabled>  
26 - </div>  
27 - </span>  
28 - <!---------------------------------->  
29 - <span id="company">  
30 - <label class="col-sm-1 control-label">公司:</label>  
31 - <div class="col-sm-2">  
32 - <input name="company" th:field="*{company}" class="form-control" type="text" disabled>  
33 - </div>  
34 - </span>  
35 - <!---------------------------------->  
36 - <span id="fCompany">  
37 - <label class="col-sm-1 control-label">分公司:</label>  
38 - <div class="col-sm-2">  
39 - <input name="fCompany" th:field="*{fCompany}" class="form-control" type="text" disabled>  
40 - </div>  
41 - </span>  
42 - </div>  
43 -  
44 - <div class="form-group">  
45 - <span id="serviceType">  
46 - <label class="col-sm-1 control-label">营运方式:</label>  
47 - <div class="col-sm-2">  
48 - <select name="serviceType" th:with="type=${@dict.getType('serviceType')}" class="form-control m-b" disabled>  
49 - <option value=""></option>  
50 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
51 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.serviceType== null ? '' : bsthTLine.serviceType),#strings.toString(dict.dictValue))}">  
52 - </option>  
53 - </select>  
54 - </div>  
55 - </span>  
56 - <!---------------------------------->  
57 - <span id="lineLevel">  
58 - <label class="col-sm-1 control-label">线路属性:</label>  
59 - <div class="col-sm-2">  
60 - <select name="lineLevel" th:with="type=${@dict.getType('lineLevel')}" class="form-control m-b" disabled>  
61 - <option value=""></option>  
62 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
63 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.lineLevel== null ? '' : bsthTLine.lineLevel),#strings.toString(dict.dictValue))}">  
64 - </option>  
65 - </select>  
66 - </div>  
67 - </span>  
68 - <!---------------------------------->  
69 - <span id="lineType">  
70 - <label class="col-sm-1 control-label">线路类型:</label>  
71 - <div class="col-sm-2">  
72 - <select name="lineType" th:with="type=${@dict.getType('lineType')}" class="form-control m-b" disabled>  
73 - <option value=""></option>  
74 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
75 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.lineType== null ? '' : bsthTLine.lineType),#strings.toString(dict.dictValue))}">  
76 - </option>  
77 - </select>  
78 - </div>  
79 - </span>  
80 - <!---------------------------------->  
81 - <span id="roadType">  
82 - <label class="col-sm-1 control-label">道路类型:</label>  
83 - <div class="col-sm-2" >  
84 - <!--data-max-options="2" 限制多选数量-->  
85 - <select name="roadType" th:with="type=${@dict.getType('roadType')}" class="selectpicker form-control" multiple title="" disabled>  
86 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
87 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.roadType== null ? '' : bsthTLine.roadType),#strings.toString(dict.dictValue))}">  
88 - </option>  
89 - </select>  
90 - </div></span>  
91 - </div>  
92 -  
93 - <div class="form-group">  
94 - <span id="district">  
95 - <label class="col-sm-1 control-label">区属:</label>  
96 - <div class="col-sm-2">  
97 - <select name="district" th:with="type=${@dict.getType('district')}" class="form-control m-b" disabled>  
98 - <option value=""></option>  
99 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
100 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.district== null ? '' : bsthTLine.district),#strings.toString(dict.dictValue))}"></option>  
101 - </select>  
102 - </div>  
103 - </span>  
104 - <!---------------------------------->  
105 - <span id="inoutDistrict">  
106 - <label class="col-sm-1 control-label">是否区内:</label>  
107 - <div class="col-sm-2">  
108 - <select name="inoutDistrict" th:with="type=${@dict.getType('trueFalse')}" class="form-control m-b" disabled>  
109 - <option value=""></option>  
110 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
111 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.inoutDistrict== null ? '' : bsthTLine.inoutDistrict),#strings.toString(dict.dictValue))}"></option>  
112 - </select>  
113 - </div></span>  
114 - <!---------------------------------->  
115 - <span id="busType">  
116 - <label class="col-sm-1 control-label">车辆类型:</label>  
117 - <div class="col-sm-2" th:with="type=${@dict.getType('busType')}">  
118 - <!--data-max-options="2" 限制多选数量-->  
119 - <select name="busType" th:with="type=${@dict.getType('busType')}" class="selectpicker form-control" multiple title="" disabled >  
120 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
121 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.busType== null ? '' : bsthTLine.busType),#strings.toString(dict.dictValue))}">  
122 - </option>  
123 - </select>  
124 - </div>  
125 - </span>  
126 - <!---------------------------------->  
127 - <span id="airConditionerType">  
128 - <label class="col-sm-1 control-label">是否空调:</label>  
129 - <div class="col-sm-2">  
130 - <select name="airConditionerType" th:with="type=${@dict.getType('airConditionerType')}" class="form-control m-b" disabled>  
131 - <option value=""></option>  
132 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
133 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.airConditionerType == null ? '' : bsthTLine.airConditionerType ),#strings.toString(dict.dictValue))}"></option>  
134 - </select>  
135 - </div>  
136 - </span>  
137 - </div>  
138 -  
139 - <div class="form-group">  
140 - <span id="sellTicketType">  
141 - <label class="col-sm-1 control-label">售票类型:</label>  
142 - <div class="col-sm-2">  
143 - <select name="sellTicketType" th:with="type=${@dict.getType('sellTicketType')}" class="form-control m-b" disabled>  
144 - <option value=""></option>  
145 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
146 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.sellTicketType == null ? '' : bsthTLine.sellTicketType),#strings.toString(dict.dictValue))}"></option>  
147 - </select>  
148 - </div>  
149 - </span>  
150 - <!---------------------------------->  
151 - <span id="ticketPrice">  
152 - <label class="col-sm-1 control-label">票价:</label>  
153 - <div class="col-sm-2" th:with="type=${@dict.getType('ticketPrice')}">  
154 - <!--data-max-options="2" 限制多选数量-->  
155 - <select name="ticketPrice" th:with="type=${@dict.getType('ticketPrice')}" class="selectpicker form-control" multiple title="" disabled >  
156 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
157 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.ticketPrice== null ? '' : bsthTLine.ticketPrice),#strings.toString(dict.dictValue))}">  
158 - </option>  
159 - </select>  
160 - </div>  
161 - </span>  
162 - <!---------------------------------->  
163 - <span id="serviceTime">  
164 - <label class="col-sm-1 control-label">运营时间:</label>  
165 - <div class="col-sm-2">  
166 - <select name="serviceTime" th:with="type=${@dict.getType('serviceTime')}" class="form-control m-b" disabled>  
167 - <option value=""></option>  
168 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
169 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.serviceTime== null ? '' : bsthTLine.serviceTime),#strings.toString(dict.dictValue))}"></option>  
170 - </select>  
171 - </div>  
172 - </span>  
173 - <!---------------------------------->  
174 - <!--<span id="lineCode">  
175 - <label class="col-sm-1 control-label">线路编码:</label>  
176 - <div class="col-sm-2">  
177 - <input name="lineCode" th:field="*{lineCode}" class="form-control" type="text" disabled>  
178 - </div></span>-->  
179 - </div>  
180 -  
181 - <div class="form-group">  
182 - <span id="lineDistance">  
183 - <label class="col-sm-1 control-label">线路长度:</label>  
184 - <div class="col-sm-2">  
185 - <input name="lineDistance" th:field="*{lineDistance}" class="form-control" type="text" disabled>  
186 - </div>  
187 - </span>  
188 - <!---------------------------------->  
189 - <span id="firstStation">  
190 - <label class="col-sm-1 control-label">首站:</label>  
191 - <div class="col-sm-2">  
192 - <input name="firstStation" th:field="*{firstStation}" class="form-control" type="text" disabled>  
193 - </div>  
194 - </span>  
195 - <!---------------------------------->  
196 - <span id="lastStation">  
197 - <label class="col-sm-1 control-label">末站:</label>  
198 - <div class="col-sm-2">  
199 - <input name="lastStation" th:field="*{lastStation}" class="form-control" type="text" disabled>  
200 - </div>  
201 - </span>  
202 - </span>  
203 - </div>  
204 -  
205 - <div class="form-group">  
206 - <span id="halfwayStation">  
207 - <label class="col-sm-1 control-label">站点名称:</label>  
208 - <div class="col-sm-2">  
209 - <textarea name="halfwayStation" class="form-control" disabled>[[*{halfwayStation}]]</textarea>  
210 - </div></span>  
211 - <!---------------------------------->  
212 - <span id="directions">  
213 - <label class="col-sm-1 control-label">线路走向:</label>  
214 - <div class="col-sm-2">  
215 - <textarea name="directions" class="form-control" disabled>[[*{directions}]]</textarea>  
216 - </div></span>  
217 - <!---------------------------------->  
218 - <span id="firstTime">  
219 - <label class="col-sm-1 control-label">起点站首末班:</label>  
220 - <div class="col-sm-2">  
221 - <input name="firstTime" th:field="*{firstTime}" class="form-control" type="text" disabled>  
222 - </div></span>  
223 - <!---------------------------------->  
224 - <span id="lastTime">  
225 - <label class="col-sm-1 control-label">终点站首末班:</label>  
226 - <div class="col-sm-2">  
227 - <input name="lastTime" th:field="*{lastTime}" class="form-control" type="text" disabled>  
228 - </div></span>  
229 - </div>  
230 -  
231 - <div class="form-group">  
232 - <!--<span id="park">  
233 - <label class="col-sm-1 control-label">停车场:</label>  
234 - <div class="col-sm-2">  
235 - <input name="park" th:field="*{park}" class="form-control" type="text" disabled>  
236 - </div></span>-->  
237 - <!---------------------------------->  
238 - <span id="warrantYear">  
239 - <label class="col-sm-1 control-label">授权年限:</label>  
240 - <div class="col-sm-2">  
241 - <input name="warrantYear" th:field="*{warrantYear}" class="form-control" type="text" disabled>  
242 - </div></span>  
243 - <!---------------------------------->  
244 - <span id="warrantStartTime">  
245 - <label class="col-sm-1 control-label">授权起始日期:</label>  
246 - <div class="col-sm-2">  
247 - <div class="input-group date">  
248 - <input name="warrantStartTime" th:value="${#dates.format(bsthTLine.warrantStartTime, 'yyyy-MM-dd')}"  
249 - class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off" disabled>  
250 - <span class="input-group-addon"><i class="fa fa-calendar"></i></span>  
251 - </div>  
252 - </div></span>  
253 - <!---------------------------------->  
254 - <span id="warrantEndTime">  
255 - <label class="col-sm-1 control-label">授权结束日期:</label>  
256 - <div class="col-sm-2">  
257 - <div class="input-group date">  
258 - <input name="warrantEndTime" th:value="${#dates.format(bsthTLine.warrantEndTime, 'yyyy-MM-dd')}"  
259 - class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off" disabled>  
260 - <span class="input-group-addon"><i class="fa fa-calendar"></i></span>  
261 - </div>  
262 - </div>  
263 - </span>  
264 - </div>  
265 -  
266 - <div class="form-group">  
267 - <span id="planCancelTime">  
268 - <label class="col-sm-1 control-label">线路暂停日期:</label>  
269 - <div class="col-sm-2">  
270 - <div class="input-group date">  
271 - <input name="planCancelTime" th:value="${#dates.format(bsthTLine.planCancelTime, 'yyyy-MM-dd')}"  
272 - class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off" disabled>  
273 - <span class="input-group-addon"><i class="fa fa-calendar"></i></span>  
274 - </div>  
275 - </div></span>  
276 - <!---------------------------------->  
277 - <span id="cancelTime">  
278 - <label class="col-sm-1 control-label">实际撤销日期:</label>  
279 - <div class="col-sm-2">  
280 - <div class="input-group date">  
281 - <input name="cancelTime" th:value="${#dates.format(bsthTLine.cancelTime, 'yyyy-MM-dd')}"  
282 - class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off" disabled>  
283 - <span class="input-group-addon"><i class="fa fa-calendar"></i></span>  
284 - </div>  
285 - </div></span>  
286 - <!---------------------------------->  
287 - <span id="timeSchedule">  
288 - <label class="col-sm-1 control-label">实施时间:</label>  
289 - <div class="col-sm-2">  
290 - <div class="input-group date">  
291 - <input name="timeSchedule" th:value="${#dates.format(bsthTLine.timeSchedule, 'yyyy-MM-dd')}"  
292 - class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off" disabled>  
293 - <span class="input-group-addon"><i class="fa fa-calendar"></i></span>  
294 - </div>  
295 - </div></span>  
296 - </div>  
297 -  
298 - <div class="form-group">  
299 - <span id="isWarrant">  
300 - <label class="col-sm-1 control-label">是否权证:</label>  
301 - <div class="col-sm-2">  
302 - <select name="isWarrant" th:with="type=${@dict.getType('trueFalse')}" class="form-control m-b" disabled>  
303 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
304 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.isWarrant== null ? '' : bsthTLine.isWarrant),#strings.toString(dict.dictValue))}"></option>  
305 - </select>  
306 - </div></span>  
307 - <!---------------------------------->  
308 - <span id="warrantVehiclesLarge">  
309 - <label class="col-sm-1 control-label">经营权证(大巴):</label>  
310 - <div class="col-sm-2">  
311 - <input name="warrantVehiclesLarge" th:field="*{warrantVehiclesLarge}" class="form-control" type="text" disabled>  
312 - </div>  
313 - </span>  
314 - </div>  
315 -  
316 - <div class="form-group">  
317 - <span id="warrantVehiclesMiddle">  
318 - <label class="col-sm-1 control-label">经营权证(中巴):</label>  
319 - <div class="col-sm-2">  
320 - <input name="warrantVehiclesMiddle" th:field="*{warrantVehiclesMiddle}" class="form-control" type="text" disabled>  
321 - </div></span>  
322 - <!---------------------------------->  
323 - <span id="vehiclesNumber">  
324 - <label class="col-sm-1 control-label">实际配车数:</label>  
325 - <div class="col-sm-2">  
326 - <input name="vehiclesNumber" th:field="*{vehiclesNumber}" class="form-control" type="text" disabled>  
327 - </div></span>  
328 - <!---------------------------------->  
329 - <span id="numberVehiclesLarge">  
330 - <label class="col-sm-1 control-label">实际车辆数(大巴):</label>  
331 - <div class="col-sm-2">  
332 - <input name="numberVehiclesLarge" th:field="*{numberVehiclesLarge}" class="form-control" type="text" disabled>  
333 - </div></span>  
334 - <!---------------------------------->  
335 - <span id="numberVehiclesMiddle">  
336 - <label class="col-sm-1 control-label">实际车辆数(中巴):</label>  
337 - <div class="col-sm-2">  
338 - <input name="numberVehiclesMiddle" th:field="*{numberVehiclesMiddle}" class="form-control" type="text" disabled>  
339 - </div></span>  
340 - </div>  
341 -  
342 - <div class="form-group">  
343 - <span id="mileageUp">  
344 - <label class="col-sm-1 control-label">上行里程数:</label>  
345 - <div class="col-sm-2">  
346 - <input name="mileageUp" th:field="*{mileageUp}" class="form-control" type="text" disabled>  
347 - </div></span>  
348 - <!---------------------------------->  
349 - <span id="mileageDown">  
350 - <label class="col-sm-1 control-label">下行里程数:</label>  
351 - <div class="col-sm-2">  
352 - <input name="mileageDown" th:field="*{mileageDown}" class="form-control" type="text"disabled>  
353 - </div></span>  
354 - <!---------------------------------->  
355 - <span id="stationUp">  
356 - <label class="col-sm-1 control-label">站级数(上行):</label>  
357 - <div class="col-sm-2">  
358 - <input name="stationUp" th:field="*{stationUp}" class="form-control" type="text" disabled>  
359 - </div></span>  
360 - </div>  
361 -  
362 - <div class="form-group">  
363 - <span id="stationDown">  
364 - <label class="col-sm-1 control-label">站级数(下行):</label>  
365 - <div class="col-sm-2">  
366 - <input name="stationDown" th:field="*{stationDown}" class="form-control" type="text" disabled>  
367 - </div></span>  
368 - <!---------------------------------->  
369 - <span id="travelTimeUp">  
370 - <label class="col-sm-1 control-label">行驶时间(上行):</label>  
371 - <div class="col-sm-2">  
372 - <input name="travelTimeUp" th:field="*{travelTimeUp}" class="form-control" type="text" disabled>  
373 - </div></span>  
374 - <!---------------------------------->  
375 - <span id="travelTimeDown">  
376 - <label class="col-sm-1 control-label">行驶时间(下行):</label>  
377 - <div class="col-sm-2">  
378 - <input name="travelTimeDown" th:field="*{travelTimeDown}" class="form-control" type="text" disabled>  
379 - </div></span>  
380 - <!---------------------------------->  
381 - <span id="travelIntervalUp">  
382 - <label class="col-sm-1 control-label">行驶间隔(高峰):</label>  
383 - <div class="col-sm-2">  
384 - <input name="travelIntervalUp" th:field="*{travelIntervalUp}" class="form-control" type="text" disabled>  
385 - </div></span>  
386 - </div>  
387 -  
388 - <div class="form-group">  
389 - <span id="travelIntervalDown">  
390 - <label class="col-sm-1 control-label">行驶间隔(低谷):</label>  
391 - <div class="col-sm-2">  
392 - <input name="travelIntervalDown" th:field="*{travelIntervalDown}" class="form-control" type="text" disabled>  
393 - </div></span>  
394 - <!---------------------------------->  
395 - <span id="divideLevel">  
396 - <label class="col-sm-1 control-label">间隔等级:</label>  
397 - <div class="col-sm-2">  
398 - <input name="divideLevel" th:field="*{divideLevel}" class="form-control" type="text" disabled>  
399 - </div></span>  
400 - </div>  
401 -  
402 - <div class="form-group">  
403 - <span id="carPlate">  
404 - <label class="col-sm-1 control-label">车辆自编号:</label>  
405 - <div class="col-sm-2">  
406 - <input name="carPlate" th:field="*{carPlate}" class="form-control" type="text" disabled >  
407 - </div></span>  
408 - <!---------------------------------->  
409 - <span id="numberPerson">  
410 - <label class="col-sm-1 control-label">线路配档数:</label>  
411 - <div class="col-sm-2">  
412 - <input name="numberPerson" th:field="*{numberPerson}" class="form-control" type="text" disabled>  
413 - </div></span>  
414 - <!---------------------------------->  
415 - <span id="numberPersonDriver">  
416 - <label class="col-sm-1 control-label">司机人数:</label>  
417 - <div class="col-sm-2">  
418 - <input name="numberPersonDriver" th:field="*{numberPersonDriver}" class="form-control" type="text" disabled>  
419 - </div></span>  
420 - <!---------------------------------->  
421 - <span id="numberPersonSales">  
422 - <label class="col-sm-1 control-label">售票员数:</label>  
423 - <div class="col-sm-2">  
424 - <input name="numberPersonSales" th:field="*{numberPersonSales}" class="form-control" type="text" disabled>  
425 - </div></span>  
426 - </div>  
427 -  
428 - <div class="form-group">  
429 - <span id="busEvNumber">  
430 - <label class="col-sm-1 control-label">新能源车数:</label>  
431 - <div class="col-sm-2">  
432 - <input name="busEvNumber" th:field="*{busEvNumber}" class="form-control" type="text" disabled>  
433 - </div></span>  
434 - <!---------------------------------->  
435 - <span id="isMetro">  
436 - <label class="col-sm-1 control-label">是否轨交末班车衔接:</label>  
437 - <div class="col-sm-2">  
438 - <select name="isMetro" th:with="type=${@dict.getType('trueFalse')}" class="form-control m-b" disabled>  
439 - <option value=""></option>  
440 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
441 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.isMetro== null ? '' : bsthTLine.isMetro),#strings.toString(dict.dictValue))}"></option>  
442 - </select>  
443 - </div></span>  
444 - <!---------------------------------->  
445 - <span id="metroTime">  
446 - <label class="col-sm-1 control-label">轨交时间:</label>  
447 - <div class="col-sm-2">  
448 - <div class="input-group date">  
449 - <input name="metroTime" class="form-control" placeholder="HH:mm:ss" th:value="*{metroTime}" disabled>  
450 - <span class="input-group-addon"><i class="fa fa-calendar"></i></span>  
451 - </div>  
452 - </div></span>  
453 - <!---------------------------------->  
454 - <span id="hasTimelists">  
455 - <label class="col-sm-1 control-label">是否挂牌:</label>  
456 - <div class="col-sm-2">  
457 - <select name="hasTimelists" th:with="type=${@dict.getType('trueFalse')}" class="form-control m-b" disabled>  
458 - <option value=""></option>  
459 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
460 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.hasTimelists== null ? '' : bsthTLine.hasTimelists),#strings.toString(dict.dictValue))}"></option>  
461 - </select>  
462 - </div>  
463 - </span>  
464 - </div>  
465 - <div class="form-group">  
466 - <!---------------------------------->  
467 - <span id="serviceState">  
468 - <label class="col-sm-1 control-label">营运状态:</label>  
469 - <div class="col-sm-2">  
470 - <select name="serviceState" th:with="type=${@dict.getType('serviceState')}" class="form-control m-b" disabled>  
471 - <option value=""></option>  
472 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
473 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.serviceState== null ? '' : bsthTLine.serviceState),#strings.toString(dict.dictValue))}"></option>  
474 - </select>  
475 - </div></span>  
476 - <!---------------------------------->  
477 - <span id="coldBonusType">  
478 - <label class="col-sm-1 control-label">冷僻线路补贴类型:</label>  
479 - <div class="col-sm-2">  
480 - <input name="coldBonusType" th:field="*{coldBonusType}" class="form-control" type="text" disabled>  
481 - </div></span>  
482 - <!---------------------------------->  
483 - <span id="revenueType">  
484 - <label class="col-sm-1 control-label">营收类型:</label>  
485 - <div class="col-sm-2">  
486 - <select name="revenueType" th:with="type=${@dict.getType('revenueType')}" class="form-control m-b" disabled>  
487 - <option value=""></option>  
488 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
489 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.revenueType== null ? '' : bsthTLine.revenueType),#strings.toString(dict.dictValue))}"></option>></option>></option>  
490 - </select>  
491 - </div>  
492 - </span>  
493 - </div>  
494 -  
495 - <div class="form-group">  
496 - <span id="lineUpdateType">  
497 - <label class="col-sm-1 control-label">性质:</label>  
498 - <div class="col-sm-2">  
499 - <select name="lineUpdateType" th:with="type=${@dict.getType('lineUpdateType')}" class="form-control m-b" disabled>  
500 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
501 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.lineUpdateType== null ? '' : bsthTLine.lineUpdateType),#strings.toString(dict.dictValue))}"></option>></option>  
502 - </select>  
503 - </div></span>  
504 - <!---------------------------------->  
505 - <span id="remark">  
506 - <label class="col-sm-1 control-label">备注:</label>  
507 - <div class="col-sm-2">  
508 - <textarea name="remark" class="form-control" disabled>[[*{remark}]]</textarea>  
509 - </div></span>  
510 - </div></span>  
511 -  
512 - <div class="form-group">  
513 - <span id="files">  
514 - <label class="col-sm-1 control-label">附件:</label>  
515 - <div class="col-sm-5" >  
516 - <div th:each="path: ${#strings.arraySplit(bsthTLine.files,',')}" >  
517 - <input name="files" type="hidden" th:value="${path}" >  
518 - <a th:href="${#strings.replace(path,#strings.arraySplit(path,':')[0]+':','')}" th:text="${#strings.arraySplit(path,':')[0]}"></a>  
519 - <button onclick="deleteFile(this);" disabled>删除</button>  
520 - <div class="file-loading" id="uploadDiv">  
521 - <input id="fileinput" type="file" multiple disabled>  
522 - </div>  
523 - </div>  
524 - </div></span>  
525 - </div>  
526 - </form>  
527 - </div>  
528 - <th:block th:include="include :: footer" />  
529 - <th:block th:include="include :: datetimepicker-js" />  
530 - <th:block th:include="include :: bootstrap-fileinput-js" />  
531 - <th:block th:include="include :: bootstrap-select-js" />  
532 - <script th:inline="javascript">  
533 - var prefix = ctx + "system/line";  
534 - function deleteFile(obj){  
535 - $(obj).parent().remove();  
536 - }  
537 -  
538 - $(function() {  
539 -  
540 - $("#fileinput").fileinput({  
541 - 'theme' : 'explorer-fas',  
542 - 'uploadUrl' : '/common/upload',  
543 - overwriteInitial : false,  
544 - initialPreviewAsData : false  
545 - });  
546 -  
547 - $("#fileinput").on("fileuploaded",  
548 - function(event, data, proviewId, index) {  
549 -  
550 -  
551 - var obj = '<div><input name="files" type="hidden" value='+data.files[index].name + ':' + data.response.url + '>'+  
552 - '<a href='+data.response.url+'>'+ data.files[index].name +  
553 - '</a><button onclick="deleteFile(this);">删除</button></div></span>';  
554 -  
555 -  
556 - $(".file-input").before(obj);  
557 -  
558 - });  
559 -  
560 - $.get("/system/line/getUserLineInfo",  
561 - function(data) {  
562 - if (data.msg != null) {  
563 - var objs = JSON.parse(data.msg);  
564 -  
565 - for (var i = 0; i < objs.length; i++) {  
566 - var o=objs[i];  
567 - if(o.checked==false){  
568 - console.log(o.name)  
569 - $('#'+o.name).attr("style","display:none;");  
570 - }else {  
571 - $('#'+o.name).attr("style","display:show;");  
572 - }  
573 -  
574 -  
575 - }  
576 - }  
577 - });  
578 - /*$.get("/system/line/getUserLineInfo",  
579 - function(data) {  
580 - if (data.msg != null) {  
581 - var objs = JSON.parse(data.msg);  
582 -  
583 - for (var i = 0; i < objs.length; i++) {  
584 -  
585 - if ($($("input[name=" + objs[i].name  
586 - + "]"))) {  
587 - if (objs[i].checked) {  
588 - getParent(  
589 - $($("input[name="  
590 - + objs[i].name  
591 - + "]")),  
592 - "form-group").show();  
593 - } else {  
594 - getParent(  
595 - $($("input[name="  
596 - + objs[i].name  
597 - + "]")),  
598 - "form-group").hide();  
599 - }  
600 - }  
601 -  
602 - if ($($("select[name=" + objs[i].name  
603 - + "]"))) {  
604 - if (objs[i].checked) {  
605 - getParent(  
606 - $($("select[name="  
607 - + objs[i].name  
608 - + "]")),  
609 - "form-group").show();  
610 - } else {  
611 - getParent(  
612 - $($("select[name="  
613 - + objs[i].name  
614 - + "]")),  
615 - "form-group").hide();  
616 - }  
617 - }  
618 -  
619 - if ($($("textarea[name=" + objs[i].name  
620 - + "]"))) {  
621 - if (objs[i].checked) {  
622 - getParent(  
623 - $($("textarea[name="  
624 - + objs[i].name  
625 - + "]")),  
626 - "form-group").show();  
627 - } else {  
628 - getParent(  
629 - $($("textarea[name="  
630 - + objs[i].name  
631 - + "]")),  
632 - "form-group").hide();  
633 - }  
634 - }  
635 -  
636 - }  
637 - }  
638 - });*/  
639 - })  
640 -  
641 - function getParent(obj, className) {  
642 - var parent = obj;  
643 -  
644 - while (parent[0] && parent[0].className != className) {  
645 - parent = parent.parent();  
646 - }  
647 -  
648 - return parent;  
649 - }  
650 -  
651 - $("#form-line-edit").validate({  
652 - focusCleanup : true  
653 - });  
654 -  
655 - function submitHandler() {  
656 - console.log($("select[name='lineUpdateType']").val());  
657 -  
658 - if ($("select[name='lineUpdateType']").val() == "") {  
659 - $.modal.msg("未选择线路性质");  
660 - return;  
661 - }  
662 -  
663 - if ($.validate.form()) {  
664 - $.operate.save(prefix + "/edit", $('#form-line-edit')  
665 - .serialize());  
666 - }  
667 - }  
668 -  
669 - $("input[name='warrantStartTime']").datetimepicker({  
670 - format : "yyyy-mm-dd",  
671 - minView : "month",  
672 - autoclose : true  
673 - });  
674 -  
675 - $("input[name='warrantEndTime']").datetimepicker({  
676 - format : "yyyy-mm-dd",  
677 - minView : "month",  
678 - autoclose : true  
679 - });  
680 -  
681 - $("input[name='planCancelTime']").datetimepicker({  
682 - format : "yyyy-mm-dd",  
683 - minView : "month",  
684 - autoclose : true  
685 - });  
686 -  
687 - $("input[name='cancelTime']").datetimepicker({  
688 - format : "yyyy-mm-dd",  
689 - minView : "month",  
690 - autoclose : true  
691 - });  
692 -  
693 - $("input[name='updateTime']").datetimepicker({  
694 - format : "yyyy-mm-dd",  
695 - minView : "month",  
696 - autoclose : true  
697 - });  
698 -  
699 - $("input[name='timeSchedule']").datetimepicker({  
700 - format : "yyyy-mm-dd",  
701 - minView : "month",  
702 - autoclose : true  
703 - });  
704 -  
705 -  
706 -  
707 - </script> 17 +<div class="wrapper wrapper-content animated fadeInRight ibox-content">
  18 + <form class="form-horizontal m" id="form-line-edit" th:object="${bsthTLine}">
  19 + <input name="id" th:field="*{id}" type="hidden">
  20 + <div class="select-list">
  21 + <ul>
  22 + <li id="lineName" display="none">
  23 + <label>线路名称:</label><input name="lineName" th:field="*{lineName}" type="text" disabled>
  24 + </li>
  25 + <!---------------------------------->
  26 + <li id="company">
  27 + <label>公司:</label><input name="company" th:field="*{company}" type="text" disabled>
  28 + </li>
  29 + <!---------------------------------->
  30 + <li id="fCompany">
  31 + <label>分公司:</label><input name="fCompany" th:field="*{fCompany}" type="text" disabled>
  32 + </li>
  33 + <!---------------------------------->
  34 + <li id="serviceType">
  35 + <label>营运方式:</label>
  36 + <select name="serviceType" th:with="type=${@dict.getType('serviceType')}" disabled>
  37 + <option value=""></option>
  38 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  39 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.serviceType== null ? '' : bsthTLine.serviceType),#strings.toString(dict.dictValue))}">
  40 + </option>
  41 + </select>
  42 + </li>
  43 + <!---------------------------------->
  44 + <li id="lineLevel">
  45 + <label>线路属性:</label>
  46 + <select name="lineLevel" th:with="type=${@dict.getType('lineLevel')}" disabled>
  47 + <option value=""></option>
  48 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  49 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.lineLevel== null ? '' : bsthTLine.lineLevel),#strings.toString(dict.dictValue))}">
  50 + </option>
  51 + </select>
  52 + </li>
  53 + <!---------------------------------->
  54 + <li id="lineType">
  55 + <label>线路类型:</label>
  56 + <select name="lineType" th:with="type=${@dict.getType('lineType')}" disabled>
  57 + <option value=""></option>
  58 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  59 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.lineType== null ? '' : bsthTLine.lineType),#strings.toString(dict.dictValue))}">
  60 + </option>
  61 + </select>
  62 + </li>
  63 + <!---------------------------------->
  64 + <li id="roadType">
  65 + <label>道路类型:</label>
  66 + <!--data-max-options="2" 限制多选数量-->
  67 + <select name="roadType" th:with="type=${@dict.getType('roadType')}" class="selectpicker" multiple
  68 + title="" disabled>
  69 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  70 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.roadType== null ? '' : bsthTLine.roadType),#strings.toString(dict.dictValue))}">
  71 + </option>
  72 + </select>
  73 + </li>
  74 + <!---------------------------------->
  75 + <li id="district">
  76 + <label>区属:</label>
  77 + <select name="district" th:with="type=${@dict.getType('district')}" disabled>
  78 + <option value=""></option>
  79 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  80 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.district== null ? '' : bsthTLine.district),#strings.toString(dict.dictValue))}"></option>
  81 + </select>
  82 + </li>
  83 + <!---------------------------------->
  84 + <li id="inoutDistrict">
  85 + <label>是否区内:</label>
  86 + <select name="inoutDistrict" th:with="type=${@dict.getType('trueFalse')}" disabled>
  87 + <option value=""></option>
  88 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  89 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.inoutDistrict== null ? '' : bsthTLine.inoutDistrict),#strings.toString(dict.dictValue))}"></option>
  90 + </select>
  91 + </li>
  92 + <!---------------------------------->
  93 + <li id="busType">
  94 + <label>车辆类型:</label>
  95 + <!--data-max-options="2" 限制多选数量-->
  96 + <select name="busType" th:with="type=${@dict.getType('busType')}" class="selectpicker" multiple
  97 + title="" disabled>
  98 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  99 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.busType== null ? '' : bsthTLine.busType),#strings.toString(dict.dictValue))}">
  100 + </option>
  101 + </select>
  102 + </li>
  103 + <!---------------------------------->
  104 + <li id="airConditionerType">
  105 + <label>是否空调:</label>
  106 + <select name="airConditionerType" th:with="type=${@dict.getType('airConditionerType')}" disabled>
  107 + <option value=""></option>
  108 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  109 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.airConditionerType == null ? '' : bsthTLine.airConditionerType ),#strings.toString(dict.dictValue))}"></option>
  110 + </select>
  111 + </li>
  112 + <!---------------------------------->
  113 + <li id="sellTicketType">
  114 + <label>售票类型:</label>
  115 + <select name="sellTicketType" th:with="type=${@dict.getType('sellTicketType')}" disabled>
  116 + <option value=""></option>
  117 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  118 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.sellTicketType == null ? '' : bsthTLine.sellTicketType),#strings.toString(dict.dictValue))}"></option>
  119 + </select>
  120 + </li>
  121 + <!---------------------------------->
  122 + <li id="ticketPrice">
  123 + <label>票价:</label>
  124 + <!--data-max-options="2" 限制多选数量-->
  125 + <select name="ticketPrice" th:with="type=${@dict.getType('ticketPrice')}" class="selectpicker"
  126 + multiple title="" disabled>
  127 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  128 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.ticketPrice== null ? '' : bsthTLine.ticketPrice),#strings.toString(dict.dictValue))}">
  129 + </option>
  130 + </select>
  131 + </li>
  132 + <!---------------------------------->
  133 + <li id="serviceTime">
  134 + <label>运营时间:</label>
  135 + <select name="serviceTime" th:with="type=${@dict.getType('serviceTime')}" disabled>
  136 + <option value=""></option>
  137 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  138 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.serviceTime== null ? '' : bsthTLine.serviceTime),#strings.toString(dict.dictValue))}"></option>
  139 + </select>
  140 + </li>
  141 + <!---------------------------------->
  142 + <li id="lineDistance">
  143 + <label>线路长度:</label><input name="lineDistance" th:field="*{lineDistance}" type="text" disabled>
  144 + </li>
  145 + <!---------------------------------->
  146 + <li id="firstStation">
  147 + <label>首站:</label><input name="firstStation" th:field="*{firstStation}" type="text" disabled>
  148 + </li>
  149 + <!---------------------------------->
  150 + <li id="lastStation">
  151 + <label>末站:</label><input name="lastStation" th:field="*{lastStation}" type="text" disabled>
  152 + </li>
  153 + <li id="halfwayStation">
  154 + <label>站点名称:</label><textarea name="halfwayStation" cols="27"
  155 + disabled>[[*{halfwayStation}]]</textarea>
  156 + </li>
  157 + <!---------------------------------->
  158 + <li id="directions">
  159 + <label>线路走向:</label><textarea name="directions" cols="27" disabled>[[*{directions}]]</textarea>
  160 + </li>
  161 + <!---------------------------------->
  162 + <li id="firstTime">
  163 + <label>起点站首末班:</label>
  164 + <input name="firstTime" th:field="*{firstTime}" type="text" disabled></li>
  165 + <!---------------------------------->
  166 + <li id="lastTime">
  167 + <label>终点站首末班:</label>
  168 + <input name="lastTime" th:field="*{lastTime}" type="text" disabled></li>
  169 + <li id="warrantYear">
  170 + <label>授权年限:</label><input name="warrantYear" th:field="*{warrantYear}" type="text" disabled>
  171 + </li>
  172 + <!---------------------------------->
  173 + <li id="warrantStartTime">
  174 + <label>授权起始日期:</label>
  175 + <input name="warrantStartTime" th:value="${#dates.format(bsthTLine.warrantStartTime, 'yyyy-MM-dd')}"
  176 + placeholder="yyyy-MM-dd" type="text" autocomplete="off" disabled>
  177 + </li>
  178 + <!---------------------------------->
  179 + <li id="warrantEndTime">
  180 + <label>授权结束日期:</label>
  181 + <input name="warrantEndTime" th:value="${#dates.format(bsthTLine.warrantEndTime, 'yyyy-MM-dd')}"
  182 + placeholder="yyyy-MM-dd" type="text" autocomplete="off" disabled>
  183 + </li>
  184 + <!---------------------------------->
  185 + <li id="planCancelTime">
  186 + <label>线路暂停日期:</label>
  187 + <input name="planCancelTime" th:value="${#dates.format(bsthTLine.planCancelTime, 'yyyy-MM-dd')}"
  188 + placeholder="yyyy-MM-dd" type="text" autocomplete="off" disabled>
  189 + </li>
  190 + <!---------------------------------->
  191 + <li id="cancelTime">
  192 + <label>实际撤销日期:</label>
  193 + <input name="cancelTime" th:value="${#dates.format(bsthTLine.cancelTime, 'yyyy-MM-dd')}"
  194 + placeholder="yyyy-MM-dd" type="text" autocomplete="off" disabled>
  195 + </li>
  196 + <!---------------------------------->
  197 + <li id="timeSchedule">
  198 + <label>实施时间:</label>
  199 + <input name="timeSchedule" th:value="${#dates.format(bsthTLine.timeSchedule, 'yyyy-MM-dd')}"
  200 + placeholder="yyyy-MM-dd" type="text" autocomplete="off" disabled>
  201 + </li>
  202 + <!---------------------------------->
  203 + <li id="isWarrant">
  204 + <label>是否权证:</label>
  205 + <select name="isWarrant" th:with="type=${@dict.getType('trueFalse')}" disabled>
  206 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  207 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.isWarrant== null ? '' : bsthTLine.isWarrant),#strings.toString(dict.dictValue))}"></option>
  208 + </select>
  209 + </li>
  210 + <!---------------------------------->
  211 + <li id="warrantVehiclesLarge">
  212 + <label>经营权证(大巴):</label><input name="warrantVehiclesLarge" th:field="*{warrantVehiclesLarge}"
  213 + type="text" disabled>
  214 + </li>
  215 + <!---------------------------------->
  216 + <li id="warrantVehiclesMiddle">
  217 + <label>经营权证(中巴):</label><input name="warrantVehiclesMiddle" th:field="*{warrantVehiclesMiddle}"
  218 + type="text" disabled>
  219 + </li>
  220 + <!---------------------------------->
  221 + <li id="vehiclesNumber">
  222 + <label>实际配车数:</label><input name="vehiclesNumber" th:field="*{vehiclesNumber}" type="text" disabled>
  223 + </li>
  224 + <!---------------------------------->
  225 + <li id="numberVehiclesLarge">
  226 + <label>实际车辆数(大巴):</label>
  227 + <input name="numberVehiclesLarge" th:field="*{numberVehiclesLarge}" type="text" disabled>
  228 + </li>
  229 + <!---------------------------------->
  230 + <li id="numberVehiclesMiddle">
  231 + <label>实际车辆数(中巴):</label>
  232 + <input name="numberVehiclesMiddle" th:field="*{numberVehiclesMiddle}" type="text" disabled>
  233 + </li>
  234 + <!---------------------------------->
  235 + <li id="mileageUp">
  236 + <label>上行里程数:</label>
  237 + <input name="mileageUp" th:field="*{mileageUp}" type="text" disabled>
  238 + </li>
  239 + <!---------------------------------->
  240 + <li id="mileageDown">
  241 + <label>下行里程数:</label>
  242 + <input name="mileageDown" th:field="*{mileageDown}" type="text" disabled>
  243 + </li>
  244 + <!---------------------------------->
  245 + <li id="stationUp">
  246 + <label>站级数(上行):</label>
  247 + <input name="stationUp" th:field="*{stationUp}" type="text" disabled>
  248 + </li>
  249 + <!---------------------------------->
  250 + <li id="stationDown">
  251 + <label>站级数(下行):</label>
  252 + <input name="stationDown" th:field="*{stationDown}" type="text" disabled>
  253 + </li>
  254 + <!---------------------------------->
  255 + <li id="travelTimeUp">
  256 + <label>行驶时间(上行):</label>
  257 + <input name="travelTimeUp" th:field="*{travelTimeUp}" type="text" disabled>
  258 + </li>
  259 + <!---------------------------------->
  260 + <li id="travelTimeDown">
  261 + <label>行驶时间(下行):</label>
  262 + <input name="travelTimeDown" th:field="*{travelTimeDown}" type="text" disabled>
  263 + </li>
  264 + <!---------------------------------->
  265 + <li id="travelIntervalUp">
  266 + <label>行驶间隔(高峰):</label>
  267 + <input name="travelIntervalUp" th:field="*{travelIntervalUp}" type="text" disabled>
  268 + </li>
  269 + <!---------------------------------->
  270 + <li id="travelIntervalDown">
  271 + <label>行驶间隔(低谷):</label>
  272 + <input name="travelIntervalDown" th:field="*{travelIntervalDown}" type="text" disabled>
  273 + </li>
  274 + <!---------------------------------->
  275 + <li id="divideLevel">
  276 + <label>间隔等级:</label>
  277 + <input name="divideLevel" th:field="*{divideLevel}" type="text" disabled>
  278 + </li>
  279 + <!---------------------------------->
  280 + <li id="carPlate">
  281 + <label>车辆自编号:</label>
  282 + <input name="carPlate" th:field="*{carPlate}" type="text" disabled>
  283 + </li>
  284 + <!---------------------------------->
  285 + <li id="numberPerson">
  286 + <label>线路配档数:</label>
  287 + <input name="numberPerson" th:field="*{numberPerson}" type="text" disabled>
  288 + </li>
  289 + <!---------------------------------->
  290 + <li id="numberPersonDriver">
  291 + <label>司机人数:</label>
  292 + <input name="numberPersonDriver" th:field="*{numberPersonDriver}" type="text" disabled>
  293 + </li>
  294 + <!---------------------------------->
  295 + <li id="numberPersonSales">
  296 + <label>售票员数:</label>
  297 + <input name="numberPersonSales" th:field="*{numberPersonSales}" type="text" disabled>
  298 + </li>
  299 + <!---------------------------------->
  300 + <li id="busEvNumber">
  301 + <label>新能源车数:</label>
  302 + <input name="busEvNumber" th:field="*{busEvNumber}" type="text" disabled>
  303 + </li>
  304 + <!---------------------------------->
  305 + <li id="isMetro">
  306 + <label>是否轨交末班车衔接:</label>
  307 + <select name="isMetro" th:with="type=${@dict.getType('trueFalse')}" disabled>
  308 + <option value=""></option>
  309 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  310 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.isMetro== null ? '' : bsthTLine.isMetro),#strings.toString(dict.dictValue))}"></option>
  311 + </select>
  312 + </li>
  313 + <!---------------------------------->
  314 + <li id="metroTime">
  315 + <label>轨交时间:</label>
  316 + <input name="metroTime" placeholder="HH:mm:ss" th:value="*{metroTime}" disabled>
  317 + </li>
  318 + <!---------------------------------->
  319 + <li id="hasTimelists">
  320 + <label>是否挂牌:</label>
  321 + <select name="hasTimelists" th:with="type=${@dict.getType('trueFalse')}" disabled>
  322 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  323 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.hasTimelists== null ? '' : bsthTLine.hasTimelists),#strings.toString(dict.dictValue))}"></option>
  324 + </select>
  325 + </li>
  326 + <!---------------------------------->
  327 + <li id="serviceState">
  328 + <label>营运状态:</label>
  329 + <select name="serviceState" th:with="type=${@dict.getType('serviceState')}" disabled>
  330 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  331 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.serviceState== null ? '' : bsthTLine.serviceState),#strings.toString(dict.dictValue))}"></option>
  332 + </select>
  333 + </li>
  334 + <!---------------------------------->
  335 + <li id="coldBonusType">
  336 + <label>冷僻线路补贴类型:</label>
  337 + <input name="coldBonusType" th:field="*{coldBonusType}" type="text" disabled>
  338 + </li>
  339 + <!---------------------------------->
  340 + <li id="revenueType">
  341 + <label>营收类型:</label>
  342 + <select name="revenueType" th:with="type=${@dict.getType('revenueType')}" disabled>
  343 + <option value=""></option>
  344 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  345 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.revenueType== null ? '' : bsthTLine.revenueType),#strings.toString(dict.dictValue))}"></option>
  346 + ></option>></option>
  347 + </select>
  348 + </li>
  349 + <!---------------------------------->
  350 + <li id="lineUpdateType">
  351 + <label>性质:</label>
  352 + <select name="lineUpdateType" th:with="type=${@dict.getType('lineUpdateType')}" disabled>
  353 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  354 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.lineUpdateType== null ? '' : bsthTLine.lineUpdateType),#strings.toString(dict.dictValue))}"></option>
  355 + ></option>
  356 + </select>
  357 + </li>
  358 + <!---------------------------------->
  359 + <li id="remark">
  360 + <label>备注:</label><textarea name="remark" cols="27" disabled>[[*{remark}]]</textarea>
  361 + </li>
  362 + <li id="files">
  363 + <div class="form-group">
  364 + <label>附件:</label>
  365 + <div class="col-sm-5">
  366 + <div th:each="path: ${#strings.arraySplit(bsthTLine.files,',')}">
  367 + <input name="files" type="hidden" th:value="${path}">
  368 + <a th:href="${#strings.replace(path,#strings.arraySplit(path,':')[0]+':','')}"
  369 + th:text="${#strings.arraySplit(path,':')[0]}">
  370 + </a>
  371 + <button onclick="deleteFile(this);" disabled>删除</button>
  372 + </div>
  373 + <div class="file-loading" id="uploadDiv">
  374 + <input id="fileinput" type="file" multiple disabled>
  375 + </div>
  376 + </div>
  377 + </div>
  378 + </li>
  379 +
  380 + </ul>
  381 + </div>
  382 + </form>
  383 +</div>
  384 +<th:block th:include="include :: footer"/>
  385 +<th:block th:include="include :: datetimepicker-js"/>
  386 +<th:block th:include="include :: bootstrap-fileinput-js"/>
  387 +<th:block th:include="include :: bootstrap-select-js"/>
  388 +<script th:inline="javascript">
  389 + var prefix = ctx + "system/line";
  390 +
  391 + function deleteFile(obj) {
  392 + $(obj).parent().remove();
  393 + }
  394 +
  395 + $(function () {
  396 +
  397 + $("#fileinput").fileinput({
  398 + 'theme': 'explorer-fas',
  399 + 'uploadUrl': '/common/upload',
  400 + overwriteInitial: false,
  401 + initialPreviewAsData: false
  402 + });
  403 +
  404 + $("#fileinput").on("fileuploaded",
  405 + function (event, data, proviewId, index) {
  406 +
  407 +
  408 + var obj = '<div><input name="files" type="hidden" value=' + data.files[index].name + ':' + data.response.url + '>' +
  409 + '<a href=' + data.response.url + '>' + data.files[index].name +
  410 + '</a><button onclick="deleteFile(this);">删除</button></div></li>';
  411 +
  412 +
  413 + $(".file-input").before(obj);
  414 +
  415 + });
  416 +
  417 + $.get("/system/line/getUserLineInfo",
  418 + function (data) {
  419 + if (data.msg != null) {
  420 + var objs = JSON.parse(data.msg);
  421 +
  422 + for (var i = 0; i < objs.length; i++) {
  423 + var o = objs[i];
  424 + if (o.checked == false) {
  425 + console.log(o.name)
  426 + $('#' + o.name).attr("style", "display:none;");
  427 + } else {
  428 + $('#' + o.name).attr("style", "display:show;");
  429 + }
  430 +
  431 +
  432 + }
  433 + }
  434 + });
  435 + /*$.get("/system/line/getUserLineInfo",
  436 + function(data) {
  437 + if (data.msg != null) {
  438 + var objs = JSON.parse(data.msg);
  439 +
  440 + for (var i = 0; i < objs.length; i++) {
  441 +
  442 + if ($($("input[name=" + objs[i].name
  443 + + "]"))) {
  444 + if (objs[i].checked) {
  445 + getParent(
  446 + $($("input[name="
  447 + + objs[i].name
  448 + + "]")),
  449 + "form-group").show();
  450 + } else {
  451 + getParent(
  452 + $($("input[name="
  453 + + objs[i].name
  454 + + "]")),
  455 + "form-group").hide();
  456 + }
  457 + }
  458 +
  459 + if ($($("select[name=" + objs[i].name
  460 + + "]"))) {
  461 + if (objs[i].checked) {
  462 + getParent(
  463 + $($("select[name="
  464 + + objs[i].name
  465 + + "]")),
  466 + "form-group").show();
  467 + } else {
  468 + getParent(
  469 + $($("select[name="
  470 + + objs[i].name
  471 + + "]")),
  472 + "form-group").hide();
  473 + }
  474 + }
  475 +
  476 + if ($($("textarea[name=" + objs[i].name
  477 + + "]"))) {
  478 + if (objs[i].checked) {
  479 + getParent(
  480 + $($("textarea[name="
  481 + + objs[i].name
  482 + + "]")),
  483 + "form-group").show();
  484 + } else {
  485 + getParent(
  486 + $($("textarea[name="
  487 + + objs[i].name
  488 + + "]")),
  489 + "form-group").hide();
  490 + }
  491 + }
  492 +
  493 + }
  494 + }
  495 + });*/
  496 + })
  497 +
  498 + function getParent(obj, className) {
  499 + var parent = obj;
  500 +
  501 + while (parent[0] && parent[0].className != className) {
  502 + parent = parent.parent();
  503 + }
  504 +
  505 + return parent;
  506 + }
  507 +
  508 + $("#form-line-edit").validate({
  509 + focusCleanup: true
  510 + });
  511 +
  512 + function submitHandler() {
  513 + console.log($("select[name='lineUpdateType']").val());
  514 +
  515 + if ($("select[name='lineUpdateType']").val() == "") {
  516 + $.modal.msg("未选择线路性质");
  517 + return;
  518 + }
  519 +
  520 + if ($.validate.form()) {
  521 + $.operate.save(prefix + "/edit", $('#form-line-edit')
  522 + .serialize());
  523 + }
  524 + }
  525 +
  526 + $("input[name='warrantStartTime']").datetimepicker({
  527 + format: "yyyy-mm-dd",
  528 + minView: "month",
  529 + autoclose: true
  530 + });
  531 +
  532 + $("input[name='warrantEndTime']").datetimepicker({
  533 + format: "yyyy-mm-dd",
  534 + minView: "month",
  535 + autoclose: true
  536 + });
  537 +
  538 + $("input[name='planCancelTime']").datetimepicker({
  539 + format: "yyyy-mm-dd",
  540 + minView: "month",
  541 + autoclose: true
  542 + });
  543 +
  544 + $("input[name='cancelTime']").datetimepicker({
  545 + format: "yyyy-mm-dd",
  546 + minView: "month",
  547 + autoclose: true
  548 + });
  549 +
  550 + $("input[name='updateTime']").datetimepicker({
  551 + format: "yyyy-mm-dd",
  552 + minView: "month",
  553 + autoclose: true
  554 + });
  555 +
  556 + $("input[name='timeSchedule']").datetimepicker({
  557 + format: "yyyy-mm-dd",
  558 + minView: "month",
  559 + autoclose: true
  560 + });
  561 +
  562 +
  563 +</script>
708 </body> 564 </body>
709 </html> 565 </html>
710 \ No newline at end of file 566 \ No newline at end of file
bsthLineProfiles/src/main/resources/templates/system/lineAdd/add.html
@@ -445,7 +445,6 @@ @@ -445,7 +445,6 @@
445 fCompanySelect() 445 fCompanySelect()
446 }); 446 });
447 447
448 - console.log([[${user}]]);  
449 448
450 // 获取 div 标签下的所有子节点 449 // 获取 div 标签下的所有子节点
451 /* var pObjs = document.getElementById('lw').getElementsByTagName("*") 450 /* var pObjs = document.getElementById('lw').getElementsByTagName("*")
bsthLineProfiles/src/main/resources/templates/system/lineHistory/edit.html
@@ -5,44 +5,41 @@ @@ -5,44 +5,41 @@
5 <th:block th:include="include :: datetimepicker-css" /> 5 <th:block th:include="include :: datetimepicker-css" />
6 <th:block th:include="include :: bootstrap-fileinput-css" /> 6 <th:block th:include="include :: bootstrap-fileinput-css" />
7 <th:block th:include="include :: bootstrap-select-css" /> 7 <th:block th:include="include :: bootstrap-select-css" />
  8 +<th:block th:include="include :: select2-css"/>
8 </head> 9 </head>
9 <body class="white-bg"> 10 <body class="white-bg">
10 <div class="wrapper wrapper-content animated fadeInRight ibox-content"> 11 <div class="wrapper wrapper-content animated fadeInRight ibox-content">
11 <form class="form-horizontal m" id="form-line-edit" th:object="${bsthTLine}"> 12 <form class="form-horizontal m" id="form-line-edit" th:object="${bsthTLine}">
12 <input name="id" th:field="*{id}" type="hidden"> 13 <input name="id" th:field="*{id}" type="hidden">
  14 + <h3>路务</h3>
13 <div class="form-group"> 15 <div class="form-group">
14 <label class="col-sm-1 control-label">线路名称:</label> 16 <label class="col-sm-1 control-label">线路名称:</label>
15 <div class="col-sm-2"> 17 <div class="col-sm-2">
16 <input name="lineName" th:field="*{lineName}" class="form-control" type="text" readonly> 18 <input name="lineName" th:field="*{lineName}" class="form-control" type="text" readonly>
17 </div> 19 </div>
18 <!----------------------------------> 20 <!---------------------------------->
19 - <label class="col-sm-1 control-label">主线路id:</label>  
20 - <div class="col-sm-2">  
21 - <input name="pLineId" th:field="*{pLineId}" class="form-control" type="text">  
22 - </div>  
23 - <!---------------------------------->  
24 <label class="col-sm-1 control-label">公司:</label> 21 <label class="col-sm-1 control-label">公司:</label>
25 <div class="col-sm-2"> 22 <div class="col-sm-2">
26 - <input name="company" th:field="*{company}" class="form-control" type="text"> 23 + <select id='company' name="company" th:field="*{company}"></select>
27 </div> 24 </div>
28 <!----------------------------------> 25 <!---------------------------------->
29 <label class="col-sm-1 control-label">分公司:</label> 26 <label class="col-sm-1 control-label">分公司:</label>
30 <div class="col-sm-2"> 27 <div class="col-sm-2">
31 - <input name="fCompany" th:field="*{fCompany}" class="form-control" type="text"> 28 + <select id='fCompany' name="fCompany" th:field="*{fCompany}"></select>
32 </div> 29 </div>
33 - </div>  
34 -  
35 - <div class="form-group">  
36 - <label class="col-sm-1 control-label">营运方式:</label> 30 + <!---------------------------------->
  31 + <label class="col-sm-1 control-label">线路类型:</label>
37 <div class="col-sm-2"> 32 <div class="col-sm-2">
38 - <select name="serviceType" th:with="type=${@dict.getType('serviceType')}" class="form-control m-b"> 33 + <select name="lineType" th:with="type=${@dict.getType('lineType')}" class="form-control m-b">
39 <option value=""></option> 34 <option value=""></option>
40 <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" 35 <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
41 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.serviceType== null ? '' : bsthTLine.serviceType),#strings.toString(dict.dictValue))}"> 36 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.lineType== null ? '' : bsthTLine.lineType),#strings.toString(dict.dictValue))}">
42 </option> 37 </option>
43 </select> 38 </select>
44 </div> 39 </div>
45 - <!----------------------------------> 40 + </div>
  41 + <!---------------------------------->
  42 + <div class="form-group">
46 <label class="col-sm-1 control-label">线路属性:</label> 43 <label class="col-sm-1 control-label">线路属性:</label>
47 <div class="col-sm-2"> 44 <div class="col-sm-2">
48 <select name="lineLevel" th:with="type=${@dict.getType('lineLevel')}" class="form-control m-b"> 45 <select name="lineLevel" th:with="type=${@dict.getType('lineLevel')}" class="form-control m-b">
@@ -53,28 +50,25 @@ @@ -53,28 +50,25 @@
53 </select> 50 </select>
54 </div> 51 </div>
55 <!----------------------------------> 52 <!---------------------------------->
56 - <label class="col-sm-1 control-label">线路类型:</label> 53 + <label class="col-sm-1 control-label">营运方式:</label>
57 <div class="col-sm-2"> 54 <div class="col-sm-2">
58 - <select name="lineType" th:with="type=${@dict.getType('lineType')}" class="form-control m-b"> 55 + <select name="serviceType" th:with="type=${@dict.getType('serviceType')}" class="form-control m-b">
59 <option value=""></option> 56 <option value=""></option>
60 <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" 57 <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
61 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.lineType== null ? '' : bsthTLine.lineType),#strings.toString(dict.dictValue))}"> 58 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.serviceType== null ? '' : bsthTLine.serviceType),#strings.toString(dict.dictValue))}">
62 </option> 59 </option>
63 </select> 60 </select>
64 </div> 61 </div>
65 <!----------------------------------> 62 <!---------------------------------->
66 - <label class="col-sm-1 control-label">道路类型:</label>  
67 - <div class="col-sm-2" name="roadType">  
68 - <!--data-max-options="2" 限制多选数量-->  
69 - <select name="roadType" th:with="type=${@dict.getType('roadType')}" class="selectpicker form-control" multiple title="" >  
70 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
71 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.roadType== null ? '' : bsthTLine.roadType),#strings.toString(dict.dictValue))}">  
72 - </option> 63 + <label class="col-sm-1 control-label">营收类型:</label>
  64 + <div class="col-sm-2">
  65 + <select name="revenueType" th:with="type=${@dict.getType('revenueType')}" class="form-control m-b">
  66 + <option value=""></option>
  67 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  68 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.revenueType== null ? '' : bsthTLine.revenueType),#strings.toString(dict.dictValue))}"></option>></option>></option>
73 </select> 69 </select>
74 </div> 70 </div>
75 - </div>  
76 -  
77 - <div class="form-group"> 71 + <!---------------------------------->
78 <label class="col-sm-1 control-label">区属:</label> 72 <label class="col-sm-1 control-label">区属:</label>
79 <div class="col-sm-2"> 73 <div class="col-sm-2">
80 <select name="district" th:with="type=${@dict.getType('district')}"class="selectpicker form-control" multiple title=""> 74 <select name="district" th:with="type=${@dict.getType('district')}"class="selectpicker form-control" multiple title="">
@@ -82,7 +76,9 @@ @@ -82,7 +76,9 @@
82 th:selected="${#arrays.contains(#strings.toString(bsthTLine.district== null ? '' : bsthTLine.district),#strings.toString(dict.dictValue))}"></option> 76 th:selected="${#arrays.contains(#strings.toString(bsthTLine.district== null ? '' : bsthTLine.district),#strings.toString(dict.dictValue))}"></option>
83 </select> 77 </select>
84 </div> 78 </div>
85 - <!----------------------------------> 79 + </div>
  80 + <!---------------------------------->
  81 + <div class="form-group">
86 <label class="col-sm-1 control-label">是否区内:</label> 82 <label class="col-sm-1 control-label">是否区内:</label>
87 <div class="col-sm-2"> 83 <div class="col-sm-2">
88 <select name="inoutDistrict" th:with="type=${@dict.getType('trueFalse')}" class="form-control m-b"> 84 <select name="inoutDistrict" th:with="type=${@dict.getType('trueFalse')}" class="form-control m-b">
@@ -92,16 +88,25 @@ @@ -92,16 +88,25 @@
92 </select> 88 </select>
93 </div> 89 </div>
94 <!----------------------------------> 90 <!---------------------------------->
95 - <label class="col-sm-1 control-label">车辆类型:</label>  
96 - <div class="col-sm-2" name="busType"> 91 + <label class="col-sm-1 control-label">道路类型:</label>
  92 + <div class="col-sm-2" name="roadType">
97 <!--data-max-options="2" 限制多选数量--> 93 <!--data-max-options="2" 限制多选数量-->
98 - <select name="busType" th:with="type=${@dict.getType('busType')}" class="selectpicker form-control" multiple title="" > 94 + <select name="roadType" th:with="type=${@dict.getType('roadType')}" class="selectpicker form-control" multiple title="" >
99 <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" 95 <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
100 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.busType== null ? '' : bsthTLine.busType),#strings.toString(dict.dictValue))}"> 96 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.roadType== null ? '' : bsthTLine.roadType),#strings.toString(dict.dictValue))}">
101 </option> 97 </option>
102 </select> 98 </select>
103 </div> 99 </div>
104 <!----------------------------------> 100 <!---------------------------------->
  101 + <label class="col-sm-1 control-label">运营时间:</label>
  102 + <div class="col-sm-2">
  103 + <select name="serviceTime" th:with="type=${@dict.getType('serviceTime')}" class="form-control m-b">
  104 + <option value=""></option>
  105 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  106 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.serviceTime== null ? '' : bsthTLine.serviceTime),#strings.toString(dict.dictValue))}"></option>
  107 + </select>
  108 + </div>
  109 + <!---------------------------------->
105 <label class="col-sm-1 control-label">是否空调:</label> 110 <label class="col-sm-1 control-label">是否空调:</label>
106 <div class="col-sm-2"> 111 <div class="col-sm-2">
107 <select name="airConditionerType" th:with="type=${@dict.getType('airConditionerType')}" class="form-control m-b"> 112 <select name="airConditionerType" th:with="type=${@dict.getType('airConditionerType')}" class="form-control m-b">
@@ -111,7 +116,7 @@ @@ -111,7 +116,7 @@
111 </select> 116 </select>
112 </div> 117 </div>
113 </div> 118 </div>
114 - 119 + <!---------------------------------->
115 <div class="form-group"> 120 <div class="form-group">
116 <label class="col-sm-1 control-label">售票类型:</label> 121 <label class="col-sm-1 control-label">售票类型:</label>
117 <div class="col-sm-2" > 122 <div class="col-sm-2" >
@@ -132,25 +137,26 @@ @@ -132,25 +137,26 @@
132 </select> 137 </select>
133 </div> 138 </div>
134 <!----------------------------------> 139 <!---------------------------------->
135 - <label class="col-sm-1 control-label">运营时间:</label> 140 + <label class="col-sm-1 control-label">站点名称:</label>
136 <div class="col-sm-2"> 141 <div class="col-sm-2">
137 - <select name="serviceTime" th:with="type=${@dict.getType('serviceTime')}" class="form-control m-b">  
138 - <option value=""></option>  
139 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
140 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.serviceTime== null ? '' : bsthTLine.serviceTime),#strings.toString(dict.dictValue))}"></option>  
141 - </select> 142 + <textarea name="halfwayStation" class="form-control">[[*{halfwayStation}]]</textarea>
142 </div> 143 </div>
143 <!----------------------------------> 144 <!---------------------------------->
144 - <!-- <label class="col-sm-1 control-label">线路编码:</label> 145 + <label class="col-sm-1 control-label">线路走向:</label>
145 <div class="col-sm-2"> 146 <div class="col-sm-2">
146 - <input name="lineCode" th:field="*{lineCode}" class="form-control" type="text">  
147 - </div>--> 147 + <textarea name="directions" class="form-control">[[*{directions}]]</textarea>
  148 + </div>
148 </div> 149 </div>
149 - 150 + <!---------------------------------->
150 <div class="form-group"> 151 <div class="form-group">
151 - <label class="col-sm-1 control-label">线路长度:</label> 152 + <label class="col-sm-1 control-label">站级数(上行):</label>
152 <div class="col-sm-2"> 153 <div class="col-sm-2">
153 - <input name="lineDistance" th:field="*{lineDistance}" class="form-control" type="text"> 154 + <input name="stationUp" th:field="*{stationUp}" class="form-control" type="text">
  155 + </div>
  156 + <!---------------------------------->
  157 + <label class="col-sm-1 control-label">站级数(下行):</label>
  158 + <div class="col-sm-2">
  159 + <input name="stationDown" th:field="*{stationDown}" class="form-control" type="text">
154 </div> 160 </div>
155 <!----------------------------------> 161 <!---------------------------------->
156 <label class="col-sm-1 control-label">首站:</label> 162 <label class="col-sm-1 control-label">首站:</label>
@@ -162,40 +168,42 @@ @@ -162,40 +168,42 @@
162 <div class="col-sm-2"> 168 <div class="col-sm-2">
163 <input name="lastStation" th:field="*{lastStation}" class="form-control" type="text"> 169 <input name="lastStation" th:field="*{lastStation}" class="form-control" type="text">
164 </div> 170 </div>
165 - <!---------------------------------->  
166 </div> 171 </div>
167 - 172 + <!---------------------------------->
168 <div class="form-group"> 173 <div class="form-group">
169 - <label class="col-sm-1 control-label">站点名称:</label> 174 + <label class="col-sm-1 control-label">起点站首末班:</label>
170 <div class="col-sm-2"> 175 <div class="col-sm-2">
171 - <textarea name="halfwayStation" class="form-control">[[*{halfwayStation}]]</textarea> 176 + <input name="firstTime" th:field="*{firstTime}" class="form-control" type="text">
172 </div> 177 </div>
173 <!----------------------------------> 178 <!---------------------------------->
174 - <label class="col-sm-1 control-label">线路走向:</label> 179 + <label class="col-sm-1 control-label">终点站首末班:</label>
175 <div class="col-sm-2"> 180 <div class="col-sm-2">
176 - <textarea name="directions" class="form-control">[[*{directions}]]</textarea> 181 + <input name="lastTime" th:field="*{lastTime}" class="form-control" type="text">
177 </div> 182 </div>
178 <!----------------------------------> 183 <!---------------------------------->
179 - <label class="col-sm-1 control-label">起点站首末班:</label> 184 + <label class="col-sm-1 control-label">上行里程数:</label>
180 <div class="col-sm-2"> 185 <div class="col-sm-2">
181 - <input name="firstTime" th:field="*{firstTime}" class="form-control" type="text"> 186 + <input name="mileageUp" th:field="*{mileageUp}" class="form-control" type="text">
182 </div> 187 </div>
183 <!----------------------------------> 188 <!---------------------------------->
184 - <label class="col-sm-1 control-label">终点站首末班:</label> 189 + <label class="col-sm-1 control-label">下行里程数:</label>
185 <div class="col-sm-2"> 190 <div class="col-sm-2">
186 - <input name="lastTime" th:field="*{lastTime}" class="form-control" type="text"> 191 + <input name="mileageDown" th:field="*{mileageDown}" class="form-control" type="text">
187 </div> 192 </div>
188 </div> 193 </div>
189 - 194 + <!---------------------------------->
190 <div class="form-group"> 195 <div class="form-group">
191 -<!-- <label class="col-sm-1 control-label">停车场:</label>-->  
192 -<!-- <div class="col-sm-2">-->  
193 -<!-- <input name="park" th:field="*{park}" class="form-control" type="text">-->  
194 -<!-- </div>--> 196 + <label class="col-sm-1 control-label">线路长度:</label>
  197 + <div class="col-sm-2">
  198 + <input name="lineDistance" th:field="*{lineDistance}" class="form-control" type="text">
  199 + </div>
195 <!----------------------------------> 200 <!---------------------------------->
196 - <label class="col-sm-1 control-label">授权年限:</label> 201 + <label class="col-sm-1 control-label">是否权证:</label>
197 <div class="col-sm-2"> 202 <div class="col-sm-2">
198 - <input name="warrantYear" th:field="*{warrantYear}" class="form-control" type="text"> 203 + <select name="isWarrant" id="isWarrant" th:with="type=${@dict.getType('trueFalse')}" class="form-control m-b">
  204 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  205 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.isWarrant== null ? '' : bsthTLine.isWarrant),#strings.toString(dict.dictValue))}"></option>
  206 + </select>
199 </div> 207 </div>
200 <!----------------------------------> 208 <!---------------------------------->
201 <label class="col-sm-1 control-label">授权起始日期:</label> 209 <label class="col-sm-1 control-label">授权起始日期:</label>
@@ -216,24 +224,11 @@ @@ -216,24 +224,11 @@
216 </div> 224 </div>
217 </div> 225 </div>
218 </div> 226 </div>
219 - 227 + <!---------------------------------->
220 <div class="form-group"> 228 <div class="form-group">
221 - <label class="col-sm-1 control-label">线路暂停日期:</label>  
222 - <div class="col-sm-2">  
223 - <div class="input-group date">  
224 - <input name="planCancelTime" th:value="${#dates.format(bsthTLine.planCancelTime, 'yyyy-MM-dd')}"  
225 - class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off">  
226 - <span class="input-group-addon"><i class="fa fa-calendar"></i></span>  
227 - </div>  
228 - </div>  
229 - <!---------------------------------->  
230 - <label class="col-sm-1 control-label">实际撤销日期:</label> 229 + <label class="col-sm-1 control-label">授权年限:</label>
231 <div class="col-sm-2"> 230 <div class="col-sm-2">
232 - <div class="input-group date">  
233 - <input name="cancelTime" th:value="${#dates.format(bsthTLine.cancelTime, 'yyyy-MM-dd')}"  
234 - class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off">  
235 - <span class="input-group-addon"><i class="fa fa-calendar"></i></span>  
236 - </div> 231 + <input name="warrantYear" th:field="*{warrantYear}" class="form-control" type="text">
237 </div> 232 </div>
238 <!----------------------------------> 233 <!---------------------------------->
239 <label class="col-sm-1 control-label">实施时间:</label> 234 <label class="col-sm-1 control-label">实施时间:</label>
@@ -246,212 +241,190 @@ @@ -246,212 +241,190 @@
246 class="fa fa-calendar"></i></span> 241 class="fa fa-calendar"></i></span>
247 </div> 242 </div>
248 </div> 243 </div>
249 - </div>  
250 -  
251 - <div class="form-group">  
252 - <label class="col-sm-1 control-label">是否权证:</label>  
253 - <div class="col-sm-2">  
254 - <select name="isWarrant" id="isWarrant" th:with="type=${@dict.getType('trueFalse')}" class="form-control m-b">  
255 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
256 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.isWarrant== null ? '' : bsthTLine.isWarrant),#strings.toString(dict.dictValue))}"></option>  
257 - </select>  
258 - </div>  
259 <!----------------------------------> 244 <!---------------------------------->
260 <label class="col-sm-1 control-label">经营权证(大巴):</label> 245 <label class="col-sm-1 control-label">经营权证(大巴):</label>
261 <div class="col-sm-2"> 246 <div class="col-sm-2">
262 <input name="warrantVehiclesLarge" th:field="*{warrantVehiclesLarge}" class="form-control" type="text"> 247 <input name="warrantVehiclesLarge" th:field="*{warrantVehiclesLarge}" class="form-control" type="text">
263 </div> 248 </div>
264 - </div>  
265 -  
266 - <div class="form-group"> 249 + <!---------------------------------->
267 <label class="col-sm-1 control-label">经营权证(中巴):</label> 250 <label class="col-sm-1 control-label">经营权证(中巴):</label>
268 <div class="col-sm-2"> 251 <div class="col-sm-2">
269 <input name="warrantVehiclesMiddle" th:field="*{warrantVehiclesMiddle}" class="form-control" type="text"> 252 <input name="warrantVehiclesMiddle" th:field="*{warrantVehiclesMiddle}" class="form-control" type="text">
270 </div> 253 </div>
271 - <!---------------------------------->  
272 - <label class="col-sm-1 control-label">实际配车数:</label>  
273 - <div class="col-sm-2">  
274 - <input name="vehiclesNumber" th:field="*{vehiclesNumber}" class="form-control" type="text">  
275 - </div>  
276 - <!---------------------------------->  
277 - <label class="col-sm-1 control-label">实际车辆数(大巴):</label> 254 +
  255 + </div>
  256 + <!---------------------------------->
  257 + <div class="form-group">
  258 + <label class="col-sm-1 control-label">是否轨交末班车衔接:</label>
278 <div class="col-sm-2"> 259 <div class="col-sm-2">
279 - <input name="numberVehiclesLarge" th:field="*{numberVehiclesLarge}" class="form-control" type="text"> 260 + <select name="isMetro" th:with="type=${@dict.getType('trueFalse')}" class="form-control m-b">
  261 + <option value=""></option>
  262 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  263 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.isMetro== null ? '' : bsthTLine.isMetro),#strings.toString(dict.dictValue))}"></option>
  264 + </select>
280 </div> 265 </div>
281 <!----------------------------------> 266 <!---------------------------------->
282 - <label class="col-sm-1 control-label">实际车辆数(中巴):</label>  
283 - <div class="col-sm-2">  
284 - <input name="numberVehiclesMiddle" th:field="*{numberVehiclesMiddle}" class="form-control" type="text">  
285 - </div>  
286 - </div>  
287 -  
288 - <div class="form-group">  
289 - <label class="col-sm-1 control-label">上行里程数:</label> 267 + <label class="col-sm-1 control-label">轨交时间:</label>
290 <div class="col-sm-2"> 268 <div class="col-sm-2">
291 - <input name="mileageUp" th:field="*{mileageUp}" class="form-control" type="text"> 269 + <div class="input-group date">
  270 + <input name="metroTime" class="form-control" placeholder="HH:mm:ss" th:value="*{metroTime}">
  271 + <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  272 + </div>
292 </div> 273 </div>
293 <!----------------------------------> 274 <!---------------------------------->
294 - <label class="col-sm-1 control-label">下行里程数:</label> 275 + <label class="col-sm-1 control-label">冷僻线路补贴类型:</label>
295 <div class="col-sm-2"> 276 <div class="col-sm-2">
296 - <input name="mileageDown" th:field="*{mileageDown}" class="form-control" type="text"> 277 + <input name="coldBonusType" th:field="*{coldBonusType}" class="form-control" type="text">
297 </div> 278 </div>
298 <!----------------------------------> 279 <!---------------------------------->
299 - <label class="col-sm-1 control-label">站级数(上行):</label> 280 + <label class="col-sm-1 control-label">营运状态:</label>
300 <div class="col-sm-2"> 281 <div class="col-sm-2">
301 - <input name="stationUp" th:field="*{stationUp}" class="form-control" type="text"> 282 + <select name="serviceState" th:with="type=${@dict.getType('serviceState')}" class="form-control m-b">
  283 + <option value=""></option>
  284 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
  285 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.serviceState== null ? '' : bsthTLine.serviceState),#strings.toString(dict.dictValue))}"></option>
  286 + </select>
302 </div> 287 </div>
303 </div> 288 </div>
304 - 289 + <!---------------------------------->
305 <div class="form-group"> 290 <div class="form-group">
306 - <label class="col-sm-1 control-label">站级数(下行):</label> 291 + <label class="col-sm-1 control-label">线路暂停日期:</label>
307 <div class="col-sm-2"> 292 <div class="col-sm-2">
308 - <input name="stationDown" th:field="*{stationDown}" class="form-control" type="text"> 293 + <div class="input-group date">
  294 + <input name="planCancelTime" th:value="${#dates.format(bsthTLine.planCancelTime, 'yyyy-MM-dd')}"
  295 + class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off">
  296 + <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  297 + </div>
309 </div> 298 </div>
310 <!----------------------------------> 299 <!---------------------------------->
311 - <label class="col-sm-1 control-label">行驶时间(上行):</label> 300 + <label class="col-sm-1 control-label">实际撤销日期:</label>
312 <div class="col-sm-2"> 301 <div class="col-sm-2">
313 - <input name="travelTimeUp" th:field="*{travelTimeUp}" class="form-control" type="text"> 302 + <div class="input-group date">
  303 + <input name="cancelTime" th:value="${#dates.format(bsthTLine.cancelTime, 'yyyy-MM-dd')}"
  304 + class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off">
  305 + <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  306 + </div>
314 </div> 307 </div>
315 <!----------------------------------> 308 <!---------------------------------->
316 - <label class="col-sm-1 control-label">行驶时间(下行):</label> 309 + <label class="col-sm-1 control-label">性质:</label>
317 <div class="col-sm-2"> 310 <div class="col-sm-2">
318 - <input name="travelTimeDown" th:field="*{travelTimeDown}" class="form-control" type="text"> 311 + <select name="lineUpdateType"
  312 + th:with="type=${@dict.getType('lineUpdateType')}"
  313 + class="form-control m-b">
  314 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
  315 + th:value="${dict.dictValue}"
  316 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.lineUpdateType== null||bsthTLine.lineUpdateType=='3' ? '' : bsthTLine.lineUpdateType),#strings.toString(dict.dictValue))}"></option>></option>
  317 + </select>
319 </div> 318 </div>
320 <!----------------------------------> 319 <!---------------------------------->
321 - <label class="col-sm-1 control-label">行驶间隔(高峰):</label> 320 + <label class="col-sm-1 control-label">备注:</label>
322 <div class="col-sm-2"> 321 <div class="col-sm-2">
323 - <input name="travelIntervalUp" th:field="*{travelIntervalUp}" class="form-control" type="text"> 322 + <textarea name="remark" class="form-control">[[*{remark}]]</textarea>
324 </div> 323 </div>
325 </div> 324 </div>
326 - 325 + <!---------------------------------->
327 <div class="form-group"> 326 <div class="form-group">
328 - <label class="col-sm-1 control-label">行驶间隔(低谷):</label>  
329 - <div class="col-sm-2">  
330 - <input name="travelIntervalDown" th:field="*{travelIntervalDown}" class="form-control" type="text">  
331 - </div>  
332 - <!---------------------------------->  
333 - <label class="col-sm-1 control-label">间隔等级:</label>  
334 - <div class="col-sm-2">  
335 - <input name="divideLevel" th:field="*{divideLevel}" class="form-control" type="text"> 327 + <div class="form-group">
  328 + <label class="col-sm-1 control-label" name="files">附件:</label>
  329 + <div class="col-sm-5">
  330 + <div th:each="path: ${#strings.arraySplit(bsthTLine.files,',')}" >
  331 + <input name="files" type="hidden" th:value="${path}" >
  332 + <a th:href="${#strings.replace(path,#strings.arraySplit(path,':')[0]+':','')}" th:text="${#strings.arraySplit(path,':')[0]}">
  333 + </a>
  334 + <button onclick="deleteFile(this);">删除</button>
  335 + </div>
  336 + <div class="file-loading" id="uploadDiv">
  337 + <input id="fileinput" type="file" multiple >
  338 + </div>
  339 + </div>
336 </div> 340 </div>
337 </div> 341 </div>
338 - 342 + <!---------------------------------->
  343 + <div class="hr-line-dashed"></div>
  344 + <h3>调度</h3>
  345 + <!---------------------------------->
339 <div class="form-group"> 346 <div class="form-group">
340 <label class="col-sm-1 control-label">车辆自编号:</label> 347 <label class="col-sm-1 control-label">车辆自编号:</label>
341 <div class="col-sm-2"> 348 <div class="col-sm-2">
342 <input name="carPlate" th:field="*{carPlate}" class="form-control" type="text"> 349 <input name="carPlate" th:field="*{carPlate}" class="form-control" type="text">
343 </div> 350 </div>
344 <!----------------------------------> 351 <!---------------------------------->
345 - <label class="col-sm-1 control-label">线路配档数:</label> 352 + <label class="col-sm-1 control-label">是否挂牌:</label>
346 <div class="col-sm-2"> 353 <div class="col-sm-2">
347 - <input name="numberPerson" th:field="*{numberPerson}" class="form-control" type="text"> 354 + <select name="hasTimelists"
  355 + th:with="type=${@dict.getType('trueFalse')}"
  356 + class="form-control m-b">
  357 + <option value=""></option>
  358 + <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
  359 + th:value="${dict.dictValue}"
  360 + th:selected="${#arrays.contains(#strings.toString(bsthTLine.hasTimelists== null ? '' : bsthTLine.hasTimelists),#strings.toString(dict.dictValue))}"></option>
  361 + </select>
348 </div> 362 </div>
349 <!----------------------------------> 363 <!---------------------------------->
350 - <label class="col-sm-1 control-label">司机人数:</label> 364 + <label class="col-sm-1 control-label">行驶时间(上行):</label>
351 <div class="col-sm-2"> 365 <div class="col-sm-2">
352 - <input name="numberPersonDriver" th:field="*{numberPersonDriver}" class="form-control" type="text"> 366 + <input name="travelTimeUp" th:field="*{travelTimeUp}" class="form-control" type="text">
353 </div> 367 </div>
354 <!----------------------------------> 368 <!---------------------------------->
355 - <label class="col-sm-1 control-label">售票员数:</label> 369 + <label class="col-sm-1 control-label">行驶时间(下行):</label>
356 <div class="col-sm-2"> 370 <div class="col-sm-2">
357 - <input name="numberPersonSales" th:field="*{numberPersonSales}" class="form-control" type="text"> 371 + <input name="travelTimeDown" th:field="*{travelTimeDown}" class="form-control" type="text">
358 </div> 372 </div>
359 </div> 373 </div>
360 - 374 + <!---------------------------------->
361 <div class="form-group"> 375 <div class="form-group">
362 - <label class="col-sm-1 control-label">新能源车数:</label> 376 + <label class="col-sm-1 control-label">行驶间隔(高峰):</label>
363 <div class="col-sm-2"> 377 <div class="col-sm-2">
364 - <input name="busEvNumber" th:field="*{busEvNumber}" class="form-control" type="text"> 378 + <input name="travelIntervalUp" th:field="*{travelIntervalUp}" class="form-control" type="text">
365 </div> 379 </div>
366 <!----------------------------------> 380 <!---------------------------------->
367 - <label class="col-sm-1 control-label">是否轨交末班车衔接:</label> 381 + <label class="col-sm-1 control-label">行驶间隔(低谷):</label>
368 <div class="col-sm-2"> 382 <div class="col-sm-2">
369 - <select name="isMetro" th:with="type=${@dict.getType('trueFalse')}" class="form-control m-b">  
370 - <option value=""></option>  
371 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
372 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.isMetro== null ? '' : bsthTLine.isMetro),#strings.toString(dict.dictValue))}"></option>  
373 - </select> 383 + <input name="travelIntervalDown" th:field="*{travelIntervalDown}" class="form-control" type="text">
374 </div> 384 </div>
375 <!----------------------------------> 385 <!---------------------------------->
376 - <label class="col-sm-1 control-label">轨交时间:</label> 386 + <label class="col-sm-1 control-label">间隔等级:</label>
377 <div class="col-sm-2"> 387 <div class="col-sm-2">
378 - <div class="input-group date">  
379 - <input name="metroTime" class="form-control" placeholder="HH:mm:ss" th:value="*{metroTime}">  
380 - <span class="input-group-addon"><i class="fa fa-calendar"></i></span>  
381 - </div> 388 + <input name="divideLevel" th:field="*{divideLevel}" class="form-control" type="text">
382 </div> 389 </div>
383 <!----------------------------------> 390 <!---------------------------------->
384 - <label class="col-sm-1 control-label">是否挂牌:</label> 391 + <label class="col-sm-1 control-label">实际配车数:</label>
385 <div class="col-sm-2"> 392 <div class="col-sm-2">
386 - <select name="hasTimelists"  
387 - th:with="type=${@dict.getType('trueFalse')}"  
388 - class="form-control m-b">  
389 - <option value=""></option>  
390 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}"  
391 - th:value="${dict.dictValue}"  
392 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.hasTimelists== null ? '' : bsthTLine.hasTimelists),#strings.toString(dict.dictValue))}"></option>  
393 - </select> 393 + <input name="vehiclesNumber" th:field="*{vehiclesNumber}" class="form-control" type="text">
394 </div> 394 </div>
395 </div> 395 </div>
396 - 396 + <!---------------------------------->
397 <div class="form-group"> 397 <div class="form-group">
  398 + <label class="col-sm-1 control-label">实际车辆数(大):</label>
  399 + <div class="col-sm-2">
  400 + <input name="numberVehiclesLarge" th:field="*{numberVehiclesLarge}" class="form-control" type="text">
  401 + </div>
398 <!----------------------------------> 402 <!---------------------------------->
399 - <label class="col-sm-1 control-label">营运状态:</label> 403 + <label class="col-sm-1 control-label">实际车辆数(中):</label>
400 <div class="col-sm-2"> 404 <div class="col-sm-2">
401 - <select name="serviceState" th:with="type=${@dict.getType('serviceState')}" class="form-control m-b">  
402 - <option value=""></option>  
403 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
404 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.serviceState== null ? '' : bsthTLine.serviceState),#strings.toString(dict.dictValue))}"></option>  
405 - </select> 405 + <input name="numberVehiclesMiddle" th:field="*{numberVehiclesMiddle}" class="form-control" type="text">
406 </div> 406 </div>
407 <!----------------------------------> 407 <!---------------------------------->
408 - <label class="col-sm-1 control-label">冷僻线路补贴类型:</label> 408 + <label class="col-sm-1 control-label">新能源车数:</label>
409 <div class="col-sm-2"> 409 <div class="col-sm-2">
410 - <input name="coldBonusType" th:field="*{coldBonusType}" class="form-control" type="text"> 410 + <input name="busEvNumber" th:field="*{busEvNumber}" class="form-control" type="text">
411 </div> 411 </div>
412 <!----------------------------------> 412 <!---------------------------------->
413 - <label class="col-sm-1 control-label">营收类型:</label> 413 + <label class="col-sm-1 control-label">线路配档数:</label>
414 <div class="col-sm-2"> 414 <div class="col-sm-2">
415 - <select name="revenueType" th:with="type=${@dict.getType('revenueType')}" class="form-control m-b">  
416 - <option value=""></option>  
417 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  
418 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.revenueType== null ? '' : bsthTLine.revenueType),#strings.toString(dict.dictValue))}"></option>></option>></option>  
419 - </select> 415 + <input name="numberPerson" th:field="*{numberPerson}" class="form-control" type="text">
420 </div> 416 </div>
421 </div> 417 </div>
422 - 418 + <!---------------------------------->
423 <div class="form-group"> 419 <div class="form-group">
424 - <label class="col-sm-1 control-label">性质:</label> 420 + <label class="col-sm-1 control-label">司机人数:</label>
425 <div class="col-sm-2"> 421 <div class="col-sm-2">
426 - <select name="lineUpdateType"  
427 - th:with="type=${@dict.getType('lineUpdateType')}"  
428 - class="form-control m-b">  
429 - <option th:each="dict : ${type}" th:text="${dict.dictLabel}"  
430 - th:value="${dict.dictValue}"  
431 - th:selected="${#arrays.contains(#strings.toString(bsthTLine.lineUpdateType== null||bsthTLine.lineUpdateType=='3' ? '' : bsthTLine.lineUpdateType),#strings.toString(dict.dictValue))}"></option>></option>  
432 - </select> 422 + <input name="numberPersonDriver" th:field="*{numberPersonDriver}" class="form-control" type="text">
433 </div> 423 </div>
434 <!----------------------------------> 424 <!---------------------------------->
435 - <label class="col-sm-1 control-label">备注:</label> 425 + <label class="col-sm-1 control-label">售票员数:</label>
436 <div class="col-sm-2"> 426 <div class="col-sm-2">
437 - <textarea name="remark" class="form-control">[[*{remark}]]</textarea>  
438 - </div>  
439 - </div>  
440 -  
441 - <div class="form-group">  
442 - <div class="form-group">  
443 - <label class="col-sm-1 control-label" name="files">附件:</label>  
444 - <div class="col-sm-5">  
445 - <div th:each="path: ${#strings.arraySplit(bsthTLine.files,',')}" >  
446 - <input name="files" type="hidden" th:value="${path}" >  
447 - <a th:href="${#strings.replace(path,#strings.arraySplit(path,':')[0]+':','')}" th:text="${#strings.arraySplit(path,':')[0]}">  
448 - </a>  
449 - <button onclick="deleteFile(this);">删除</button>  
450 - </div>  
451 - <div class="file-loading" id="uploadDiv">  
452 - <input id="fileinput" type="file" multiple >  
453 - </div>  
454 - </div> 427 + <input name="numberPersonSales" th:field="*{numberPersonSales}" class="form-control" type="text">
455 </div> 428 </div>
456 </div> 429 </div>
457 </form> 430 </form>
@@ -460,47 +433,103 @@ @@ -460,47 +433,103 @@
460 <th:block th:include="include :: datetimepicker-js" /> 433 <th:block th:include="include :: datetimepicker-js" />
461 <th:block th:include="include :: bootstrap-fileinput-js" /> 434 <th:block th:include="include :: bootstrap-fileinput-js" />
462 <th:block th:include="include :: bootstrap-select-js" /> 435 <th:block th:include="include :: bootstrap-select-js" />
  436 + <th:block th:include="include :: select2-js"/>
463 <script th:inline="javascript"> 437 <script th:inline="javascript">
464 var prefix = ctx + "system/lineHistory"; 438 var prefix = ctx + "system/lineHistory";
465 function deleteFile(obj){ 439 function deleteFile(obj){
466 $(obj).parent().remove(); 440 $(obj).parent().remove();
467 } 441 }
468 - var f=[[${flag}]];  
469 - $(function() {  
470 - /* $.get("/system/line/getUserLineInfo",function(data){  
471 - if(data.msg != null){  
472 - var objs = JSON.parse(data.msg);  
473 -  
474 - for(var i = 0;i<objs.length;i++){  
475 -  
476 -  
477 - if($($("input[name="+objs[i].name+"]"))){  
478 - if(objs[i].checked){  
479 - getParent($($("input[name="+objs[i].name+"]")),"form-group").show();  
480 - }else{  
481 - getParent($($("input[name="+objs[i].name+"]")),"form-group").hide();  
482 - }  
483 - }  
484 -  
485 - if($($("select[name="+objs[i].name+"]"))){  
486 - if(objs[i].checked){  
487 - getParent($($("select[name="+objs[i].name+"]")),"form-group").show();  
488 - }else{  
489 - getParent($($("select[name="+objs[i].name+"]")),"form-group").hide();  
490 - }  
491 - }  
492 -  
493 - if($($("textarea[name="+objs[i].name+"]"))){  
494 - if(objs[i].checked){  
495 - getParent($($("textarea[name="+objs[i].name+"]")),"form-group").show();  
496 - }else{  
497 - getParent($($("textarea[name="+objs[i].name+"]")),"form-group").hide();  
498 - }  
499 - }  
500 - 442 + //公司分公司联动
  443 + var companyList = [[${companyList}]];
  444 + var companies = new Array();
  445 + var fCompanies = new Array();
  446 + var bsthTLine = [[${bsthTLine}]];
  447 + $(function () {
  448 + for (let i in companyList) {
  449 + companies[i] = companyList[i].company;
  450 + fCompanies[i] = companyList[i].fCompany;
  451 + }
  452 + companies = Array.from(new Set(companies));
  453 + companySelect();
  454 + fCompanySelect();
  455 + $('#company').on('change.select2', function (e) {
  456 + fCompanySelect()
  457 + });
  458 + //初始选中
  459 + $("#company").val(bsthTLine.company).trigger("change");
  460 + $("#fCompany").val(bsthTLine.fCompany).trigger("change");
  461 + // 获取 div 标签下的所有子节点
  462 + /* var pObjs = document.getElementById('lw').getElementsByTagName("*")
  463 + for (var i = 0 ; i <pObjs.length; i++) { // 一定要倒序,正序是删不干净的,可自行尝试
  464 + pObjs[i].setAttribute("disabled",true);
  465 + }
  466 + var pObjs = document.getElementById('dd').getElementsByTagName("*")
  467 + for (var i = 0 ; i <pObjs.length; i++) { // 一定要倒序,正序是删不干净的,可自行尝试
  468 + pObjs[i].setAttribute("disabled",true);
  469 + }*/
  470 + });
  471 +
  472 + function companySelect() {
  473 + var arr = new Array();
  474 + var company = new Object();
  475 + company.id = '';
  476 + company.text = '';
  477 + company.value = '';
  478 + arr.push(company)
  479 + for (var i = 0; i < companies.length; i++) {
  480 + company = new Object();
  481 + company.id = companies[i];
  482 + company.text = companies[i];
  483 + company.value = companies[i];
  484 + arr.push(company);
  485 + }
  486 + $("#company").select2({
  487 + data: arr,
  488 + placeholder: '请选择',
  489 + allowClear: true
  490 + })
  491 + }
  492 +
  493 + function fCompanySelect() {
  494 + $('#fCompany').empty();
  495 + var company = $('#company').select2('val');
  496 + var arr = new Array();
  497 + var fCompany = new Object();
  498 + fCompany.id = '';
  499 + fCompany.text = '';
  500 + fCompany.value = '';
  501 + arr.push(fCompany)
  502 + if (company == '') {
  503 + for (let i in companyList) {
  504 + var companyName = companyList[i].company;
  505 + var fCompanyName = companyList[i].fCompany;
  506 + fCompany = new Object();
  507 + fCompany.id = fCompanyName;
  508 + fCompany.text = fCompanyName;
  509 + fCompany.value = fCompanyName;
  510 + arr.push(fCompany);
  511 + }
  512 + } else {
  513 + for (let i in companyList) {
  514 + var companyName = companyList[i].company;
  515 + var fCompanyName = companyList[i].fCompany;
  516 + if (companyName == company) {
  517 + fCompany = new Object();
  518 + fCompany.id = fCompanyName;
  519 + fCompany.text = fCompanyName;
  520 + fCompany.value = fCompanyName;
  521 + arr.push(fCompany);
501 } 522 }
502 } 523 }
503 - }); */ 524 + }
  525 + $("#fCompany").select2({
  526 + data: arr,
  527 + placeholder: '请选择',
  528 + allowClear: true
  529 + });
  530 + }
  531 + var f=[[${flag}]];
  532 + $(function() {
504 $(function() { 533 $(function() {
505 534
506 $("#fileinput").fileinput({ 535 $("#fileinput").fileinput({