Commit dc93313da731d5ef21986db30706b66fb6e13e63

Authored by BSTH
2 parents 612d7cfb 76921f11

Merge branch 'minhang' of http://222.66.0.204:8090/panzhaov5/bsth_control.git into minhang

src/main/java/com/bsth/entity/Cars.java
... ... @@ -57,7 +57,7 @@ public class Cars implements Serializable {
57 57 /** 设备终端号 */
58 58 @Column(nullable = false)
59 59 private String equipmentCode;
60   -
  60 +
61 61 // 以下信息来自总公司的业务系统,可能需要调用相关接口
62 62 /** 车型类别 */
63 63 private String carClass ;
... ... @@ -115,6 +115,8 @@ public class Cars implements Serializable {
115 115 private String vehicleStats;
116 116 /** 营运状态 */
117 117 private String operatorsState;
  118 + /** 营运证编码 */
  119 + private String serviceNo;
118 120 /** 是否电车(TODO:在原系统里没有,这里暂时留着) */
119 121 private Boolean sfdc;
120 122 /** 备注/描述 */
... ... @@ -148,8 +150,16 @@ public class Cars implements Serializable {
148 150 /** 修改日期 */
149 151 @Column(name = "update_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
150 152 private Date updateDate;
  153 +
  154 + public String getServiceNo() {
  155 + return serviceNo;
  156 + }
  157 +
  158 + public void setServiceNo(String serviceNo) {
  159 + this.serviceNo = serviceNo;
  160 + }
151 161  
152   - public Integer getId() {
  162 + public Integer getId() {
153 163 return id;
154 164 }
155 165  
... ...
src/main/java/com/bsth/entity/Line.java
... ... @@ -42,18 +42,6 @@ public class Line implements Serializable {
42 42 // 简称
43 43 private String shortName;
44 44  
45   - /** 配置车辆总数 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 */
46   - private Integer carSumNumber;
47   -
48   - /** 空调车辆数量 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 */
49   - private Integer hvacCarNumber;
50   -
51   - /** 普通车辆数量 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 */
52   - private Integer ordCarNumber;
53   -
54   - /** 停车场编码 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 */
55   - private String carParkCode;
56   -
57 45 // 起始站名称
58 46 private String startStationName;
59 47  
... ... @@ -118,6 +106,21 @@ public class Line implements Serializable {
118 106 // 设备线路编码
119 107 private String eqLinecode;
120 108  
  109 + /** 配置车辆总数 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 */
  110 + private Integer carSumNumber;
  111 +
  112 + /** 空调车辆数量 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 */
  113 + private Integer hvacCarNumber;
  114 +
  115 + /** 普通车辆数量 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 */
  116 + private Integer ordCarNumber;
  117 +
  118 + /** 停车场编码 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 */
  119 + private String carParkCode;
  120 +
  121 + /** 线路规划类型 <0:双向;1:环线> */
  122 + private Integer linePlayType;
  123 +
121 124 // 描述
122 125 private String descriptions;
123 126  
... ... @@ -134,6 +137,14 @@ public class Line implements Serializable {
134 137 // 修改日期
135 138 @Column(name = "update_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
136 139 private Date updateDate;
  140 +
  141 + public Integer getLinePlayType() {
  142 + return linePlayType;
  143 + }
  144 +
  145 + public void setLinePlayType(Integer linePlayType) {
  146 + this.linePlayType = linePlayType;
  147 + }
137 148  
138 149 public Integer getId() {
139 150 return id;
... ...
src/main/java/com/bsth/entity/Personnel.java
... ... @@ -53,7 +53,17 @@ public class Personnel {
53 53 private String personnelType;
54 54 /** 所属岗位/工种(字典类型gzType) */
55 55 private String posts;
  56 +
  57 + /** 身份证 */
  58 + private String card;
56 59  
  60 + public String getCard() {
  61 + return card;
  62 + }
  63 +
  64 + public void setCard(String card) {
  65 + this.card = card;
  66 + }
57 67  
58 68 /** 人员编码(TODO:在原系统里没有,这里暂时留着) */
59 69 private String personnelCode;
... ...
src/main/java/com/bsth/entity/Station.java
... ... @@ -41,6 +41,9 @@ public class Station {
41 41 // 所在道路编码
42 42 private String roadCoding;
43 43  
  44 + // 站点的具体地址
  45 + private String addr;
  46 +
44 47 /**
45 48 * 经纬坐标类型
46 49 *
... ... @@ -111,6 +114,14 @@ public class Station {
111 114 // 修改日期
112 115 @Column(name = "update_date", columnDefinition = "timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
113 116 private Date updateDate;
  117 +
  118 + public String getAddr() {
  119 + return addr;
  120 + }
  121 +
  122 + public void setAddr(String addr) {
  123 + this.addr = addr;
  124 + }
114 125  
115 126 public Integer getId() {
116 127 return id;
... ...
src/main/resources/static/pages/base/line/add.html
  1 +<!-- 片段标题 START -->
1 2 <div class="page-head">
2 3 <div class="page-title">
3 4 <h1>添加线路</h1>
4 5 </div>
5 6 </div>
  7 +<!-- 片段标题 END -->
6 8  
  9 +<!-- 线路信息导航栏组件 START -->
7 10 <ul class="page-breadcrumb breadcrumb">
8 11 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9 12 <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li>
10 13 <li><a href="/pages/base/line/list.html" data-pjax>线路信息</a> <i class="fa fa-circle"></i></li>
11 14 <li><span class="active">添加线路</span></li>
12 15 </ul>
  16 +<!-- 线路信息导航栏组件 END -->
13 17  
  18 +<!-- 信息容器组件 START -->
14 19 <div class="portlet light bordered">
15 20  
16   - <!-- 标题 -->
  21 + <!-- 信息容器组件标题 START -->
17 22 <div class="portlet-title">
18 23 <div class="caption">
19 24 <i class="icon-equalizer font-red-sunglo"></i>
20 25 <span class="caption-subject font-red-sunglo bold uppercase">添加线路</span>
21 26 </div>
22 27 </div>
  28 + <!-- 信息容器组件标题 END -->
23 29  
24   - <!-- 表单 -->
  30 + <!-- 表单容器组件 START -->
25 31 <div class="portlet-body form">
26 32  
27   - <!-- START FORM -->
  33 + <!-- line_add_form FORM START -->
28 34 <form action="/line" class="form-horizontal" id="line_add_form" >
29 35  
30   - <!-- 错误提示 -->
  36 + <!-- 表单验证错误提示组件 START -->
31 37 <div class="alert alert-danger display-hide">
32 38 <button class="close" data-close="alert"></button>
33 39 您的输入有误,请检查下面的输入项
34 40 </div>
  41 + <!-- 表单验证错误提示组件 END -->
35 42  
36   - <!-- 表单内容 -->
  43 + <!-- 表单字段内容 START -->
37 44 <div class="form-body">
38 45  
39   - <!-- 线路名称 -->
  46 + <!-- 表单分组组件 form-group START -->
40 47 <div class="form-group">
41   - <label class="control-label col-md-3">
42   - <span class="required"> * </span>线路名称:
43   - </label>
44   - <div class="col-md-4">
45   - <input type="text" class="form-control" name="name" id="nameInput" placeholder="线路名称" />
46   - <span class="help-block"> 例如 :浦东88路 </span>
47   - </div>
48   - </div>
49   -
50   - <!-- 英文名称 -->
51   - <div class="form-group">
52   - <label class="control-label col-md-3"> 英文名称: </label>
53   - <div class="col-md-4">
54   - <input type="text" class="form-control" name="es" id="esInput" placeholder="英文名称">
55   - </div>
56   - </div>
57   -
58   - <!-- 线路简称 -->
59   - <div class="form-group">
60   - <label class="control-label col-md-3"> 线路简称:</label>
61   - <div class="col-md-4">
62   - <input type="text" class="form-control" name="shortName" id="shortNameInput" placeholder="线路简称">
63   - </div>
64   - </div>
65   -
66   - <!-- 线路编码 -->
67   - <div class="form-group">
68   - <label class="control-label col-md-3">
69   - <span class="required"> * </span>线路编码:
70   - </label>
71   - <div class="col-md-4">
72   - <input type="text" class="form-control" name="lineCode" id="lineCodeInput" placeholder="线路编码">
73   - </div>
74   - </div>
75   -
76   - <!-- 所属公司 -->
77   - <div class="form-group">
78   - <label class="control-label col-md-3"> 所属公司:</label>
79   - <div class="col-md-4">
80   - <select name="company" class="form-control" id="companySelect"></select>
81   - </div>
82   - </div>
83   -
84   - <!-- 所属分公司 -->
85   - <!-- <div class="form-group">
86   - <label class="control-label col-md-3"> 所属分公司:</label>
87   - <div class="col-md-4">
88   - <select name="brancheCompany" class="form-control" id="brancheCompanySelect"></select>
89   - </div>
90   - </div> -->
91   -
92   - <!-- 线路性质 -->
93   - <div class="form-group">
94   - <label class="control-label col-md-3"> 线路性质:</label>
95   - <div class="col-md-4">
96   - <select name="nature" class="form-control" id="natureSelect">
97   - <option value="">-- 请选择线路性质 --</option>
98   - <option value="lj">路救</option>
99   - <option value="bc">备车</option>
100   - <option value="dbc">定班车</option>
101   - <option value="yxl">夜宵路</option>
102   - <option value="cgxl">常规线路</option>
103   - <option value="gjxl">过江线路</option>
104   - <option value="csbs">穿梭巴士</option>
105   - <option value="tyxl">特约线路</option>
106   - <option value="cctxl">村村通线路</option>
107   - <option value="qt">其他</option>
108   - </select>
109   - </div>
  48 + <!-- 线路编码 (* 必填项) START -->
  49 + <div class="col-md-6">
  50 + <label class="control-label col-md-5">
  51 + <span class="required"> * </span>线路编码:
  52 + </label>
  53 + <div class="col-md-4">
  54 + <input type="text" class="form-control" name="lineCode" id="lineCodeInput" placeholder="线路编码">
  55 + </div>
  56 + </div>
  57 + <!-- 线路编码 (* 必填项) END -->
  58 +
  59 + <!-- 线路名称 (* 必填项) START -->
  60 + <div class="col-md-6">
  61 + <label class="control-label col-md-5">
  62 + <span class="required"> * </span>线路名称:
  63 + </label>
  64 + <div class="col-md-4">
  65 + <input type="text" class="form-control" name="name" id="nameInput" placeholder="线路名称" />
  66 + <span class="help-block"> 例如 :浦东88路 </span>
  67 + </div>
  68 + </div>
  69 + <!-- 线路名称 (* 必填项) END -->
110 70 </div>
  71 + <!-- 表单分组组件 form-group END -->
111 72  
112   - <!-- 线路等级 -->
  73 + <!-- 表单分组组件 form-group START -->
113 74 <div class="form-group">
114   - <label class="control-label col-md-3"> 线路等级:</label>
115   - <div class="col-md-4">
116   - <select name="level" class="form-control" id="levelSelect">
117   - <option value="">-- 请选择线路等级 --</option>
118   - <option value="1">一级线路</option>
119   - <option value="2">二级线路</option>
120   - <option value="0">未知等级</option>
121   - </select>
122   - </div>
123   - </div>
124   -
125   - <!-- 是否撤销 -->
126   - <div class="form-group">
127   - <label class="control-label col-md-3">是否撤销:</label>
128   - <div class="col-md-4">
129   - <div class="md-radio-inline">
130   - <div class="md-radio">
131   - <input type="radio" id="radio14" name="destroy" data-title="是" class="md-radiobtn" value="1" >
132   - <label for="radio14">
133   - <span></span>
134   - <span class="check"></span>
135   - <span class="box"></span> 是
136   - </label>
137   - </div>
138   - <div class="md-radio has-error">
139   - <input type="radio" id="radio15" name="destroy" class="md-radiobtn" data-title="否" value="0" checked="checked">
140   - <label for="radio15" style="color:#FFC0CB">
141   - <span></span>
142   - <span class="check"></span>
143   - <span class="box"></span> 否
144   - </label>
145   - </div>
146   - </div>
147   - </div>
  75 + <!-- 线路简称 START -->
  76 + <div class="col-md-6">
  77 + <label class="control-label col-md-5"> 线路简称:</label>
  78 + <div class="col-md-4">
  79 + <input type="text" class="form-control" name="shortName" id="shortNameInput" placeholder="线路简称">
  80 + </div>
  81 + </div>
  82 + <!-- 线路简称 END -->
  83 +
  84 + <!-- 英文名称 START -->
  85 + <div class="col-md-6">
  86 + <label class="control-label col-md-5"> 英文名称: </label>
  87 + <div class="col-md-4">
  88 + <input type="text" class="form-control" name="es" id="esInput" placeholder="英文名称">
  89 + </div>
  90 + </div>
  91 + <!-- 英文名称 END -->
148 92 </div>
  93 + <!-- 表单分组组件 form-group END -->
149 94  
150   - <!-- 是否宵夜 -->
  95 + <!-- 表单分组组件 form-group START -->
151 96 <div class="form-group">
152   - <label class="control-label col-md-3">是否宵夜:</label>
153   - <div class="col-md-4">
154   - <div class="md-radio-inline">
155   - <div class="md-radio">
156   - <input type="radio" id="radio16" name="supperLine" class="md-radiobtn" value="1" data-title="是" >
157   - <label for="radio16">
158   - <span></span>
159   - <span class="check"></span>
160   - <span class="box"></span> 是
161   - </label>
162   - </div>
163   - <div class="md-radio has-error">
164   - <input type="radio" id="radio17" name="supperLine" class="md-radiobtn" value="0" data-title="否" checked="checked">
165   - <label for="radio17" style="color:#FFC0CB">
166   - <span></span>
167   - <span class="check"></span>
168   - <span class="box"></span> 否
169   - </label>
170   - </div>
171   - </div>
172   - </div>
173   - </div>
174   -
175   - <!-- 开辟日期 -->
176   - <div class="form-group">
177   - <label class="control-label col-md-3"> 开辟日期: </label>
178   - <div class="col-md-4">
179   - <input type="text" class="form-control" name="openDate" id="openDateInput" placeholder="开辟日期">
180   - </div>
  97 + <!-- 线路等级 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  98 + <div class="col-md-6">
  99 + <label class="control-label col-md-5"> 线路等级:</label>
  100 + <div class="col-md-4">
  101 + <select name="level" class="form-control" id="levelSelect">
  102 + <option value="">-- 请选择线路等级 --</option>
  103 + <option value="1">一级线路</option>
  104 + <option value="2">二级线路</option>
  105 + <option value="0">未知等级</option>
  106 + </select>
  107 + </div>
  108 + </div>
  109 + <!-- 线路等级 END -->
  110 +
  111 + <!-- 线路性质 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  112 + <div class="col-md-6">
  113 + <label class="control-label col-md-5"> 线路性质:</label>
  114 + <div class="col-md-4">
  115 + <select name="nature" class="form-control" id="natureSelect">
  116 + <option value="">-- 请选择线路性质 --</option>
  117 + <option value="lj">路救</option>
  118 + <option value="bc">备车</option>
  119 + <option value="dbc">定班车</option>
  120 + <option value="yxl">夜宵路</option>
  121 + <option value="cgxl">常规线路</option>
  122 + <option value="gjxl">过江线路</option>
  123 + <option value="csbs">穿梭巴士</option>
  124 + <option value="tyxl">特约线路</option>
  125 + <option value="cctxl">村村通线路</option>
  126 + <option value="qt">其他</option>
  127 + </select>
  128 + </div>
  129 + </div>
  130 + <!-- 线路性质 END -->
181 131 </div>
  132 + <!-- 表单分组组件 form-group END -->
182 133  
183   - <!-- 线路沿革 -->
  134 + <!-- 表单分组组件 form-group START -->
184 135 <div class="form-group">
185   - <label class="control-label col-md-3"> 线路沿革: </label>
186   - <div class="col-md-4">
187   - <textarea class="form-control" rows="3" name="history" id="historyTextarea" placeholder="线路沿革"></textarea>
188   - <span class="help-block">日期及内容:如2014-1-1,开辟;2014-5-1,延线;</span>
189   - </div>
  136 + <!-- 所属公司 START 在片段线路添加JS模块里初始化select(options值查询的公司表) -->
  137 + <div class="col-md-6">
  138 + <label class="control-label col-md-5"> 所属公司:</label>
  139 + <div class="col-md-4">
  140 + <select name="company" class="form-control" id="companySelect"></select>
  141 + </div>
  142 + </div>
  143 + <!-- 所属公司 END -->
  144 +
  145 + <!-- 所属分公司 START 在片段线路添加JS模块里初始化select(options值查询的公司表) -->
  146 + <div class="col-md-6">
  147 + <label class="control-label col-md-5"> 所属公司:</label>
  148 + <div class="col-md-4">
  149 + <select name="brancheCompany" class="form-control" id="brancheCompanySelect"></select>
  150 + </div>
  151 + </div>
  152 + <!-- 所属分公司 END -->
190 153 </div>
  154 + <!-- 表单分组组件 form-group END -->
191 155  
192   - <!-- 起始站名称 -->
  156 + <!-- 表单分组组件 form-group START -->
193 157 <div class="form-group">
194   - <label class="control-label col-md-3"> 起始站名称: </label>
195   - <div class="col-md-4">
196   - <input type="text" class="form-control" name="startStationName" id="startStationNameInput" placeholder="起始站名称">
197   - <span class="help-block"> 说明 :上行起始站名称 </span>
198   - </div>
  158 + <!-- 线路规划类型 (* 必填项) START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  159 + <div class="col-md-6">
  160 + <label class="control-label col-md-5"><span class="required"> * </span> 线路规划类型:</label>
  161 + <div class="col-md-4">
  162 + <select name="linePlayType" class="form-control" id="linePlayTypeSelect">
  163 + <option value="">-- 请选择线路类型 --</option>
  164 + <option value="0">双向</option>
  165 + <option value="1">环线</option>
  166 + </select>
  167 + </div>
  168 + </div>
  169 + <!-- 线路规划类型 (* 必填项) END -->
  170 +
  171 + <!-- 开辟日期 START -->
  172 + <div class="col-md-6">
  173 + <label class="control-label col-md-5"> 开辟日期: </label>
  174 + <div class="col-md-4">
  175 + <input type="text" class="form-control" name="openDate" id="openDateInput" placeholder="开辟日期">
  176 + </div>
  177 + </div>
  178 + <!-- 开辟日期 END -->
199 179 </div>
  180 + <!-- 表单分组组件 form-group START -->
200 181  
201   - <!-- 终点站名称 -->
  182 + <!-- 表单分组组件 form-group START -->
202 183 <div class="form-group">
203   - <label class="control-label col-md-3"> 终点站名称: </label>
204   - <div class="col-md-4">
205   - <input type="text" class="form-control" name="endStationName" id="endStationNameInput" placeholder="终点站名称">
206   - <span class="help-block"> 说明 :上行终点站名称 </span>
207   - </div>
  184 + <!-- 是否宵夜 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  185 + <div class="col-md-6">
  186 + <label class="control-label col-md-5">是否宵夜:</label>
  187 + <div class="col-md-4">
  188 + <div class="md-radio-inline">
  189 + <div class="md-radio">
  190 + <input type="radio" id="radio16" name="supperLine" class="md-radiobtn" value="1" data-title="是" >
  191 + <label for="radio16">
  192 + <span></span>
  193 + <span class="check"></span>
  194 + <span class="box"></span> 是
  195 + </label>
  196 + </div>
  197 + <div class="md-radio has-error">
  198 + <input type="radio" id="radio17" name="supperLine" class="md-radiobtn" value="0" data-title="否" checked="checked">
  199 + <label for="radio17" style="color:#FFC0CB">
  200 + <span></span>
  201 + <span class="check"></span>
  202 + <span class="box"></span> 否
  203 + </label>
  204 + </div>
  205 + </div>
  206 + </div>
  207 + </div>
  208 + <!-- 是否宵夜 END -->
  209 +
  210 + <!-- 是否撤销 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  211 + <div class="col-md-6">
  212 + <label class="control-label col-md-5">是否撤销:</label>
  213 + <div class="col-md-4">
  214 + <div class="md-radio-inline">
  215 + <div class="md-radio">
  216 + <input type="radio" id="radio14" name="destroy" data-title="是" class="md-radiobtn" value="1" >
  217 + <label for="radio14">
  218 + <span></span>
  219 + <span class="check"></span>
  220 + <span class="box"></span> 是
  221 + </label>
  222 + </div>
  223 + <div class="md-radio has-error">
  224 + <input type="radio" id="radio15" name="destroy" class="md-radiobtn" data-title="否" value="0" checked="checked">
  225 + <label for="radio15" style="color:#FFC0CB">
  226 + <span></span>
  227 + <span class="check"></span>
  228 + <span class="box"></span> 否
  229 + </label>
  230 + </div>
  231 + </div>
  232 + </div>
  233 + </div>
  234 + <!-- 是否撤销 START -->
208 235 </div>
  236 + <!-- 表单分组组件 form-group END -->
209 237  
210   - <!-- 设备线路编码 -->
  238 + <!-- 表单分组组件 form-group START -->
211 239 <div class="form-group">
212   - <label class="control-label col-md-3"> 设备线路编码: </label>
213   - <div class="col-md-4">
214   - <input type="text" class="form-control" name="eqLinecode" id="eqLinecodeInput" placeholder="设备线路编码">
215   - </div>
  240 + <!-- 起始站名称 START (该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的起点站。默认使用该字段填写值) -->
  241 + <div class="col-md-6">
  242 + <label class="control-label col-md-5"><span class="required"> * </span> 起始站名称: </label>
  243 + <div class="col-md-4">
  244 + <input type="text" class="form-control" name="startStationName" id="startStationNameInput" placeholder="起始站名称">
  245 + <span class="help-block"> 说明 :上行起始站名称 </span>
  246 + </div>
  247 + </div>
  248 + <!-- 起始站名称 END -->
  249 +
  250 + <!-- 终点站名称 START (该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的终点站。默认使用该字段填写值) -->
  251 + <div class="col-md-6">
  252 + <label class="control-label col-md-5"><span class="required"> * </span> 终点站名称: </label>
  253 + <div class="col-md-4">
  254 + <input type="text" class="form-control" name="endStationName" id="endStationNameInput" placeholder="终点站名称">
  255 + <span class="help-block"> 说明 :上行终点站名称 </span>
  256 + </div>
  257 + </div>
  258 + <!-- 终点站名称 END -->
216 259 </div>
  260 + <!-- 表单分组组件 form-group END -->
217 261  
218   - <!-- 上海市线路编码 -->
  262 + <!-- 表单分组组件 form-group START -->
219 263 <div class="form-group">
220   - <label class="control-label col-md-3"> 上海市线路编码: </label>
221   - <div class="col-md-4">
222   - <input type="text" class="form-control" name="shanghaiLinecode" id="shanghaiLinecodeInput" placeholder="上海市线路编码">
223   - </div>
  264 + <!-- 起始站首班车时间 (* 必填项) START -->
  265 + <div class="col-md-6">
  266 + <label class="control-label col-md-5"><span class="required"> * </span> 起始站首班时间: </label>
  267 + <div class="col-md-4">
  268 + <input type="text" class="form-control" name="startStationFirstTime" id="startStationFirstTimeInput" placeholder="起始站首班车时间">
  269 + <span class="help-block"> 例如 :06:00 </span>
  270 + </div>
  271 + </div>
  272 + <!-- 起始站首班车时间 END -->
  273 +
  274 + <!-- 起始站末班车时间 (* 必填项) START -->
  275 + <div class="col-md-6">
  276 + <label class="control-label col-md-5"><span class="required"> * </span> 起始站末班时间: </label>
  277 + <div class="col-md-4">
  278 + <!-- <input type="text" class="form-control" name="StartStationEndTime" id="StartStationEndTimeInput" placeholder="起始站末班车时间 "> -->
  279 + <input type="text" class="form-control" name="startStationEndTime" id="endTimeInput" placeholder="起始站末班车时间">
  280 + <span class="help-block"> 例如 :17:00 </span>
  281 + </div>
  282 + </div>
  283 + <!-- 起始站末班车时间 END -->
224 284 </div>
  285 + <!-- 表单分组组件 form-group END -->
225 286  
226   - <!-- 起始站调度电话 -->
  287 + <!-- 表单分组组件 form-group START -->
227 288 <div class="form-group">
228   - <label class="control-label col-md-3"> 起始站调度电话: </label>
229   - <div class="col-md-4">
230   - <input type="text" class="form-control" name="startPhone" id="startPhoneInput" placeholder="起始站调度电话">
231   - </div>
  289 + <!-- 终点站首班车时间 (* 必填项) START -->
  290 + <div class="col-md-6">
  291 + <label class="control-label col-md-5"><span class="required"> * </span> 终点站首班时间: </label>
  292 + <div class="col-md-4">
  293 + <input type="text" class="form-control" name="endStationFirstTime" id="endStationFirstTimeInput" placeholder="终点站首班车时间">
  294 + <span class="help-block"> 例如 :05:00 </span>
  295 + </div>
  296 + </div>
  297 + <!-- 终点站首班车时间 END -->
  298 +
  299 + <!-- 终点站末班车时间 (* 必填项) START -->
  300 + <div class="col-md-6">
  301 + <label class="control-label col-md-5"><span class="required"> * </span> 终点站末班时间: </label>
  302 + <div class="col-md-4">
  303 + <input type="text" class="form-control" name="endStationEndTime" id="endStationEndTimeInput" placeholder="终点站末班车时间 ">
  304 + <span class="help-block"> 例如 :18:00 </span>
  305 + </div>
  306 + </div>
  307 + <!-- 终点站末班车时间 END -->
  308 + </div>
  309 + <!-- 表单分组组件 form-group END -->
  310 +
  311 + <!-- 表单分组组件 form-group START -->
  312 + <div class="form-group">
  313 + <!-- 上海市线路编码 START -->
  314 + <div class="col-md-6">
  315 + <label class="control-label col-md-5"> 上海市线路编码: </label>
  316 + <div class="col-md-4">
  317 + <input type="text" class="form-control" name="shanghaiLinecode" id="shanghaiLinecodeInput" placeholder="上海市线路编码">
  318 + </div>
  319 + </div>
  320 + <!-- 上海市线路编码 END -->
  321 +
  322 + <!--设备线路编码 START -->
  323 + <div class="col-md-6">
  324 + <label class="control-label col-md-5"> 设备线路编码: </label>
  325 + <div class="col-md-4">
  326 + <input type="text" class="form-control" name="eqLinecode" id="eqLinecodeInput" placeholder="设备线路编码">
  327 + </div>
  328 + </div>
  329 + <!--设备线路编码 END -->
  330 + </div>
  331 + <!-- 表单分组组件 form-group END -->
  332 +
  333 + <!-- 表单分组组件 form-group START -->
  334 + <div class="form-group">
  335 + <!-- 起始站调度电话 START -->
  336 + <div class="col-md-6">
  337 + <label class="control-label col-md-5"> 起始站调度电话: </label>
  338 + <div class="col-md-4">
  339 + <input type="text" class="form-control" name="startPhone" id="startPhoneInput" placeholder="起始站调度电话">
  340 + </div>
  341 + </div>
  342 + <!-- 起始站调度电话 END -->
  343 +
  344 + <!-- 终点站调度电话 START -->
  345 + <div class="col-md-6">
  346 + <label class="control-label col-md-5"> 终点站调度电话: </label>
  347 + <div class="col-md-4">
  348 + <input type="text" class="form-control" name="endPhone" id="startPhoneInput" placeholder="终点站调度电话">
  349 + </div>
  350 + </div>
  351 + <!-- 终点站调度电话 START -->
  352 + </div>
  353 + <!-- 表单分组组件 form-group END -->
  354 +
  355 + <!-- 表单分组组件 form-group START -->
  356 + <div class="form-group">
  357 + <!-- 车辆总数 START -->
  358 + <div class="col-md-6">
  359 + <label class="control-label col-md-5"> 车辆总数: </label>
  360 + <div class="col-md-4">
  361 + <input type="text" class="form-control" name="carSumNumber" id="carSumNumberInput" placeholder="车辆总数">
  362 + </div>
  363 + </div>
  364 + <!-- 车辆总数 END -->
  365 +
  366 + <!-- 普通车辆数 START -->
  367 + <div class="col-md-6">
  368 + <label class="control-label col-md-5"> 普通车辆数: </label>
  369 + <div class="col-md-4">
  370 + <input type="text" class="form-control" name="ordCarNumber" id="ordCarNumberInput" placeholder="普通车辆数">
  371 + </div>
  372 + </div>
  373 + <!-- 普通车辆数 END -->
232 374 </div>
  375 + <!-- 表单分组组件 form-group END -->
233 376  
234   - <!-- 终点站调度电话 -->
235   - <div class="form-group">
236   - <label class="control-label col-md-3"> 终点站调度电话: </label>
237   - <div class="col-md-4">
238   - <input type="text" class="form-control" name="endPhone" id="startPhoneInput" placeholder="终点站调度电话">
239   - </div>
240   - </div>
241   -
242   - <!-- 起始站首班车时间 -->
  377 + <!-- 表单分组组件 form-group START -->
243 378 <div class="form-group">
244   - <label class="control-label col-md-3"> 起始站首班车时间: </label>
245   - <div class="col-md-4">
246   - <input type="text" class="form-control" name="startStationFirstTime" id="startStationFirstTimeInput" placeholder="起始站首班车时间">
247   - <span class="help-block"> 例如 :06:00 </span>
248   - </div>
  379 + <!-- 空调车辆数 START -->
  380 + <div class="col-md-6">
  381 + <label class="control-label col-md-5"> 空调车辆数: </label>
  382 + <div class="col-md-4">
  383 + <input type="text" class="form-control" name="hvacCarNumber" id="hvacCarNumberInput" placeholder="空调车辆数">
  384 + </div>
  385 + </div>
  386 + <!-- 空调车辆数 END -->
249 387 </div>
  388 + <!-- 表单分组组件 form-group END -->
250 389  
251   - <!-- 起始站末班车时间 -->
252   - <div class="form-group">
253   - <label class="control-label col-md-3"> 起始站末班车时间: </label>
254   - <div class="col-md-4">
255   - <input type="text" class="form-control" name="StartStationEndTime" id="StartStationEndTimeInput" placeholder="起始站末班车时间 ">
256   - <span class="help-block"> 例如 :17:00 </span>
257   - </div>
258   - </div>
259   -
260   -
261   - <!-- 终点站首班时间 -->
  390 + <!-- 表单分组组件 form-group START -->
262 391 <div class="form-group">
263   - <label class="control-label col-md-3"> 终点站首班车时间: </label>
264   - <div class="col-md-4">
265   - <input type="text" class="form-control" name="endStationFirstTime" id="endStationFirstTimeInput" placeholder="终点站首班车时间">
266   - <span class="help-block"> 例如 :05:00 </span>
267   - </div>
268   - </div>
269   -
270   - <!-- 终点站末班时间 -->
271   - <div class="form-group">
272   - <label class="control-label col-md-3"> 终点站末班车时间: </label>
273   - <div class="col-md-4">
274   - <input type="text" class="form-control" name="endStationEndTime" id="endStationEndTimeInput" placeholder="终点站末班车时间 ">
275   - <span class="help-block"> 例如 :18:00 </span>
276   - </div>
277   - </div>
278   -
279   - <!-- 车辆总数 -->
280   - <div class="form-group">
281   - <label class="control-label col-md-3"> 车辆总数: </label>
282   - <div class="col-md-4">
283   - <input type="text" class="form-control" name="carSumNumber" id="carSumNumberInput" placeholder="车辆总数">
284   - </div>
285   - </div>
286   -
287   - <!-- 空调车辆数 -->
288   - <div class="form-group">
289   - <label class="control-label col-md-3"> 空调车辆数: </label>
290   - <div class="col-md-4">
291   - <input type="text" class="form-control" name="hvacCarNumber" id="hvacCarNumberInput" placeholder="空调车辆数">
292   - </div>
293   - </div>
294   -
295   - <!-- 普通车辆数 -->
296   - <div class="form-group">
297   - <label class="control-label col-md-3"> 普通车辆数: </label>
298   - <div class="col-md-4">
299   - <input type="text" class="form-control" name="ordCarNumber" id="ordCarNumberInput" placeholder="普通车辆数">
300   - </div>
301   - </div>
302   -
303   - <!-- 描述/说明 -->
304   - <div class="form-group">
305   - <label class="control-label col-md-3"> 描述/说明: </label>
306   - <div class="col-md-4">
307   - <textarea class="form-control" rows="3" name="descriptions" id="descriptionsTextarea" placeholder="描述/说明"></textarea>
308   - </div>
  392 + <!-- 线路沿革 START -->
  393 + <div class="col-md-6">
  394 + <label class="control-label col-md-5"> 线路沿革: </label>
  395 + <div class="col-md-4">
  396 + <textarea class="form-control" rows="3" name="history" id="historyTextarea" placeholder="线路沿革"></textarea>
  397 + <span class="help-block">日期及内容:如2014-1-1,开辟;2014-5-1,延线;</span>
  398 + </div>
  399 + </div>
  400 + <!-- 线路沿革 END -->
  401 +
  402 + <!-- 描述/说明 START -->
  403 + <div class="col-md-6">
  404 + <label class="control-label col-md-5"> 描述/说明: </label>
  405 + <div class="col-md-4">
  406 + <textarea class="form-control" rows="3" name="descriptions" id="descriptionsTextarea" placeholder="描述/说明"></textarea>
  407 + </div>
  408 + </div>
  409 + <!-- 描述/说明 END -->
309 410 </div>
  411 + <!-- 表单分组组件 form-group END -->
310 412 </div>
  413 + <!-- 表单字段内容 END -->
  414 +
  415 + <!-- 表单按钮组件 START -->
311 416 <div class="form-actions">
312 417 <div class="row">
313 418 <div class="col-md-offset-3 col-md-4">
... ... @@ -316,8 +421,16 @@
316 421 </div>
317 422 </div>
318 423 </div>
  424 + <!-- 表单按钮组件 END -->
  425 +
319 426 </form>
320   - <!-- END FORM-->
  427 + <!-- line_add_form FORM END -->
  428 +
321 429 </div>
  430 + <!-- 表单组件 END -->
  431 +
322 432 </div>
  433 +<!-- 信息容器组件 END -->
  434 +
  435 +<!-- 线路信息添加片段JS模块 -->
323 436 <script src="/pages/base/line/js/line-add-form.js"></script>
324 437 \ No newline at end of file
... ...
src/main/resources/static/pages/base/line/details.html
  1 +<!-- 片段标题 START -->
1 2 <div class="page-head">
2 3 <div class="page-title">
3 4 <h1>线路详细信息</h1>
4 5 </div>
5 6 </div>
  7 +<!-- 片段标题 START -->
6 8  
  9 +<!-- 线路信息导航栏组件 START -->
7 10 <ul class="page-breadcrumb breadcrumb">
8 11 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9 12 <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li>
10 13 <li><a href="/pages/base/line/list.html" data-pjax>线路信息</a> <i class="fa fa-circle"></i></li>
11 14 <li><span class="active">线路详情</span></li>
12 15 </ul>
  16 +<!-- 线路信息导航栏组件 START -->
13 17  
  18 +<!-- 信息容器组件 START -->
14 19 <div class="portlet light bordered">
  20 +
  21 + <!-- 信息容器组件标题 START -->
15 22 <div class="portlet-title">
16 23 <div class="caption">
17 24 <i class="icon-equalizer font-red-sunglo"></i>
18 25 <span class="caption-subject font-red-sunglo bold uppercase">线路详情信息</span>
19 26 </div>
20 27 </div>
  28 + <!-- 信息容器组件标题 END -->
  29 +
  30 + <!-- 表单容器组件 START -->
21 31 <div class="portlet-body form" id="lineDetailsForm">
22 32  
23 33 <!-- START FORM -->
... ... @@ -25,272 +35,376 @@
25 35  
26 36 <!-- 表单内容 -->
27 37 <div class="form-body">
28   -
29   - <!-- 线路名称 -->
  38 +
  39 + <!-- 表单分组组件 form-group START -->
30 40 <div class="form-group">
31   - <label class="control-label col-md-3">
32   - <span class="required"> * </span>线路名称:
33   - </label>
34   - <div class="col-md-4">
35   - <input type="text" class="form-control" name="name" id="nameInput" placeholder="线路名称" />
36   - <span class="help-block"> 例如 :浦东88路 </span>
37   - </div>
38   - </div>
39   -
40   - <!-- 英文名称 -->
41   - <div class="form-group">
42   - <label class="control-label col-md-3"> 英文名称: </label>
43   - <div class="col-md-4">
44   - <input type="text" class="form-control" name="es" id="esInput" placeholder="英文名称">
45   - </div>
46   - </div>
47   -
48   - <!-- 线路简称 -->
49   - <div class="form-group">
50   - <label class="control-label col-md-3"> 线路简称:</label>
51   - <div class="col-md-4">
52   - <input type="text" class="form-control" name="shortName" id="shortNameInput" placeholder="线路简称">
53   - </div>
54   - </div>
55   -
56   - <!-- 线路编码 -->
57   - <div class="form-group">
58   - <label class="control-label col-md-3">
59   - <span class="required"> * </span>线路编码:
60   - </label>
61   - <div class="col-md-4">
62   - <input type="text" class="form-control" name="lineCode" id="lineCodeInput" placeholder="线路编码">
63   - </div>
64   - </div>
65   -
66   - <!-- 所属公司 -->
67   - <div class="form-group">
68   - <label class="control-label col-md-3"> 所属公司:</label>
69   - <div class="col-md-4">
70   - <select name="company" class="form-control" id="companySelect"></select>
71   - </div>
72   - </div>
73   -
74   - <!-- 所属分公司 -->
75   - <!-- <div class="form-group">
76   - <label class="control-label col-md-3"> 所属分公司:</label>
77   - <div class="col-md-4">
78   - <select name="brancheCompany" class="form-control" id="brancheCompanySelect"></select>
79   - </div>
80   - </div> -->
81   -
82   - <!-- 线路性质 -->
83   - <div class="form-group">
84   - <label class="control-label col-md-3"> 线路性质:</label>
85   - <div class="col-md-4">
86   - <select name="nature" class="form-control" id="natureSelect">
87   - <option value="">-- 请选择线路性质 --</option>
88   - <option value="lj">路救</option>
89   - <option value="bc">备车</option>
90   - <option value="dbc">定班车</option>
91   - <option value="yxl">夜宵路</option>
92   - <option value="cgxl">常规线路</option>
93   - <option value="gjxl">过江线路</option>
94   - <option value="csbs">穿梭巴士</option>
95   - <option value="tyxl">特约线路</option>
96   - <option value="cctxl">村村通线路</option>
97   - <option value="qt">其他</option>
98   - </select>
99   - </div>
100   - </div>
101   -
102   - <!-- 线路等级 -->
103   - <div class="form-group">
104   - <label class="control-label col-md-3"> 线路等级:</label>
105   - <div class="col-md-4">
106   - <select name="level" class="form-control" id="levelSelect">
107   - <option value="">-- 请选择线路等级 --</option>
108   - <option value="1">一级线路</option>
109   - <option value="2">二级线路</option>
110   - <option value="0">未知等级</option>
111   - </select>
112   - </div>
113   - </div>
114   -
115   - <!-- 是否撤销 -->
116   - <div class="form-group">
117   - <label class="control-label col-md-3">是否撤销:</label>
118   - <div class="col-md-4">
119   - <div class="md-radio-inline">
120   - <div class="md-radio">
121   - <input type="radio" id="radio14" name="destroy" data-title="是" class="md-radiobtn" value="1" >
122   - <label for="radio14">
123   - <span></span>
124   - <span class="check"></span>
125   - <span class="box"></span> 是
126   - </label>
127   - </div>
128   - <div class="md-radio has-error">
129   - <input type="radio" id="radio15" name="destroy" class="md-radiobtn" data-title="否" value="0">
130   - <label for="radio15" style="color:#FFC0CB">
131   - <span></span>
132   - <span class="check"></span>
133   - <span class="box"></span> 否
134   - </label>
135   - </div>
136   - </div>
137   - </div>
138   - </div>
139   -
140   - <!-- 是否宵夜 -->
141   - <div class="form-group">
142   - <label class="control-label col-md-3">是否宵夜:</label>
143   - <div class="col-md-4">
144   - <div class="md-radio-inline">
145   - <div class="md-radio">
146   - <input type="radio" id="radio16" name="supperLine" class="md-radiobtn" data-title="是" value="1">
147   - <label for="radio16">
148   - <span></span>
149   - <span class="check"></span>
150   - <span class="box"></span> 是
151   - </label>
152   - </div>
153   - <div class="md-radio has-error">
154   - <input type="radio" id="radio17" name="supperLine" class="md-radiobtn" data-title="否" value="0">
155   - <label for="radio17" style="color:#FFC0CB">
156   - <span></span>
157   - <span class="check"></span>
158   - <span class="box"></span> 否
159   - </label>
160   - </div>
161   - </div>
162   - </div>
163   - </div>
164   -
165   - <!-- 开辟日期 -->
166   - <div class="form-group">
167   - <label class="control-label col-md-3"> 开辟日期: </label>
168   - <div class="col-md-4">
169   - <input type="text" class="form-control" name="openDate" id="openDateInput" placeholder="开辟日期">
170   - </div>
171   - </div>
172   -
173   - <!-- 线路沿革 -->
174   - <div class="form-group">
175   - <label class="control-label col-md-3"> 线路沿革: </label>
176   - <div class="col-md-4">
177   - <textarea class="form-control" rows="3" name="history" id="historyTextarea" placeholder="线路沿革"></textarea>
178   - <span class="help-block">日期及内容:如2014-1-1,开辟;2014-5-1,延线;</span>
179   - </div>
180   - </div>
181   -
182   - <!-- 设备线路编码 -->
183   - <div class="form-group">
184   - <label class="control-label col-md-3"> 设备线路编码: </label>
185   - <div class="col-md-4">
186   - <input type="text" class="form-control" name="eqLinecode" id="eqLinecodeInput" placeholder="设备线路编码">
187   - </div>
  41 + <!-- 线路编码 (* 必填项) START -->
  42 + <div class="col-md-6">
  43 + <label class="control-label col-md-5">
  44 + <span class="required"> * </span>线路编码:
  45 + </label>
  46 + <div class="col-md-4">
  47 + <input type="text" class="form-control" name="lineCode" id="lineCodeInput" placeholder="线路编码">
  48 + </div>
  49 + </div>
  50 + <!-- 线路编码 (* 必填项) END -->
  51 +
  52 + <!-- 线路名称 (* 必填项) START -->
  53 + <div class="col-md-6">
  54 + <label class="control-label col-md-5">
  55 + <span class="required"> * </span>线路名称:
  56 + </label>
  57 + <div class="col-md-4">
  58 + <input type="text" class="form-control" name="name" id="nameInput" placeholder="线路名称" />
  59 + <span class="help-block"> 例如 :浦东88路 </span>
  60 + </div>
  61 + </div>
  62 + <!-- 线路名称 (* 必填项) END -->
188 63 </div>
  64 + <!-- 表单分组组件 form-group END -->
189 65  
190   - <!-- 上海市线路编码 -->
  66 + <!-- 表单分组组件 form-group START -->
191 67 <div class="form-group">
192   - <label class="control-label col-md-3"> 上海市线路编码: </label>
193   - <div class="col-md-4">
194   - <input type="text" class="form-control" name="shanghaiLinecode" id="shanghaiLinecodeInput" placeholder="上海市线路编码">
195   - </div>
  68 + <!-- 线路简称 START -->
  69 + <div class="col-md-6">
  70 + <label class="control-label col-md-5"> 线路简称:</label>
  71 + <div class="col-md-4">
  72 + <input type="text" class="form-control" name="shortName" id="shortNameInput" placeholder="线路简称">
  73 + </div>
  74 + </div>
  75 + <!-- 线路简称 END -->
  76 +
  77 + <!-- 英文名称 START -->
  78 + <div class="col-md-6">
  79 + <label class="control-label col-md-5"> 英文名称: </label>
  80 + <div class="col-md-4">
  81 + <input type="text" class="form-control" name="es" id="esInput" placeholder="英文名称">
  82 + </div>
  83 + </div>
  84 + <!-- 英文名称 END -->
196 85 </div>
  86 + <!-- 表单分组组件 form-group END -->
197 87  
198   - <!-- 起始站调度电话 -->
  88 + <!-- 表单分组组件 form-group START -->
199 89 <div class="form-group">
200   - <label class="control-label col-md-3"> 起始站调度电话: </label>
201   - <div class="col-md-4">
202   - <input type="text" class="form-control" name="startPhone" id="startPhoneInput" placeholder="起始站调度电话">
203   - </div>
  90 + <!-- 线路等级 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  91 + <div class="col-md-6">
  92 + <label class="control-label col-md-5"> 线路等级:</label>
  93 + <div class="col-md-4">
  94 + <select name="level" class="form-control" id="levelSelect">
  95 + <option value="">-- 请选择线路等级 --</option>
  96 + <option value="1">一级线路</option>
  97 + <option value="2">二级线路</option>
  98 + <option value="0">未知等级</option>
  99 + </select>
  100 + </div>
  101 + </div>
  102 + <!-- 线路等级 END -->
  103 +
  104 + <!-- 线路性质 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  105 + <div class="col-md-6">
  106 + <label class="control-label col-md-5"> 线路性质:</label>
  107 + <div class="col-md-4">
  108 + <select name="nature" class="form-control" id="natureSelect">
  109 + <option value="">-- 请选择线路性质 --</option>
  110 + <option value="lj">路救</option>
  111 + <option value="bc">备车</option>
  112 + <option value="dbc">定班车</option>
  113 + <option value="yxl">夜宵路</option>
  114 + <option value="cgxl">常规线路</option>
  115 + <option value="gjxl">过江线路</option>
  116 + <option value="csbs">穿梭巴士</option>
  117 + <option value="tyxl">特约线路</option>
  118 + <option value="cctxl">村村通线路</option>
  119 + <option value="qt">其他</option>
  120 + </select>
  121 + </div>
  122 + </div>
  123 + <!-- 线路性质 END -->
204 124 </div>
  125 + <!-- 表单分组组件 form-group END -->
205 126  
206   - <!-- 终点站调度电话 -->
  127 + <!-- 表单分组组件 form-group START -->
207 128 <div class="form-group">
208   - <label class="control-label col-md-3"> 终点站调度电话: </label>
209   - <div class="col-md-4">
210   - <input type="text" class="form-control" name="endPhone" id="startPhoneInput" placeholder="终点站调度电话">
211   - </div>
212   - </div>
213   - <!-- 起始站名称 -->
214   - <div class="form-group">
215   - <label class="control-label col-md-3"> 起始站名称: </label>
216   - <div class="col-md-4">
217   - <input type="text" class="form-control" name="startStationName" id="startStationNameInput" placeholder="起始站名称">
218   - </div>
219   - </div>
220   -
221   - <!-- 起始站首班车时间 -->
222   - <div class="form-group">
223   - <label class="control-label col-md-3"> 起始站首班车时间: </label>
224   - <div class="col-md-4">
225   - <input type="text" class="form-control" name="startStationFirstTime" id="startStationFirstTimeInput" placeholder="起始站首班车时间">
226   - </div>
  129 + <!-- 所属公司 START 在片段线路添加JS模块里初始化select(options值查询的公司表) -->
  130 + <div class="col-md-6">
  131 + <label class="control-label col-md-5"> 所属公司:</label>
  132 + <div class="col-md-4">
  133 + <select name="company" class="form-control" id="companySelect"></select>
  134 + </div>
  135 + </div>
  136 + <!-- 所属公司 END -->
  137 +
  138 + <!-- 所属分公司 START 在片段线路添加JS模块里初始化select(options值查询的公司表) -->
  139 + <div class="col-md-6">
  140 + <label class="control-label col-md-5"> 所属公司:</label>
  141 + <div class="col-md-4">
  142 + <select name="brancheCompany" class="form-control" id="brancheCompanySelect"></select>
  143 + </div>
  144 + </div>
  145 + <!-- 所属分公司 END -->
227 146 </div>
  147 + <!-- 表单分组组件 form-group END -->
228 148  
229   - <!-- 起始站末班车时间 -->
  149 + <!-- 表单分组组件 form-group START -->
230 150 <div class="form-group">
231   - <label class="control-label col-md-3"> 起始站末班车时间: </label>
232   - <div class="col-md-4">
233   - <input type="text" class="form-control" name="startStationEndTime" id="StartStationEndTimeInput" placeholder="起始站末班车时间 ">
234   - </div>
  151 + <!-- 线路规划类型 (* 必填项) START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  152 + <div class="col-md-6">
  153 + <label class="control-label col-md-5"><span class="required"> * </span> 线路规划类型:</label>
  154 + <div class="col-md-4">
  155 + <select name="linePlayType" class="form-control" id="linePlayTypeSelect">
  156 + <option value="">-- 请选择线路类型 --</option>
  157 + <option value="0">双向</option>
  158 + <option value="1">环线</option>
  159 + </select>
  160 + </div>
  161 + </div>
  162 + <!-- 线路规划类型 (* 必填项) END -->
  163 +
  164 + <!-- 开辟日期 START -->
  165 + <div class="col-md-6">
  166 + <label class="control-label col-md-5"> 开辟日期: </label>
  167 + <div class="col-md-4">
  168 + <input type="text" class="form-control" name="openDate" id="openDateInput" placeholder="开辟日期">
  169 + </div>
  170 + </div>
  171 + <!-- 开辟日期 END -->
235 172 </div>
  173 + <!-- 表单分组组件 form-group START -->
236 174  
237   -
238   - <!-- 终点站名称 -->
  175 + <!-- 表单分组组件 form-group START -->
239 176 <div class="form-group">
240   - <label class="control-label col-md-3"> 终点站名称: </label>
241   - <div class="col-md-4">
242   - <input type="text" class="form-control" name="endStationName" id="endStationNameInput" placeholder="终点站名称">
243   - </div>
  177 + <!-- 是否宵夜 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  178 + <div class="col-md-6">
  179 + <label class="control-label col-md-5">是否宵夜:</label>
  180 + <div class="col-md-4">
  181 + <div class="md-radio-inline">
  182 + <div class="md-radio">
  183 + <input type="radio" id="radio16" name="supperLine" class="md-radiobtn" value="1" data-title="是" >
  184 + <label for="radio16">
  185 + <span></span>
  186 + <span class="check"></span>
  187 + <span class="box"></span> 是
  188 + </label>
  189 + </div>
  190 + <div class="md-radio has-error">
  191 + <input type="radio" id="radio17" name="supperLine" class="md-radiobtn" value="0" data-title="否" checked="checked">
  192 + <label for="radio17" style="color:#FFC0CB">
  193 + <span></span>
  194 + <span class="check"></span>
  195 + <span class="box"></span> 否
  196 + </label>
  197 + </div>
  198 + </div>
  199 + </div>
  200 + </div>
  201 + <!-- 是否宵夜 END -->
  202 +
  203 + <!-- 是否撤销 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  204 + <div class="col-md-6">
  205 + <label class="control-label col-md-5">是否撤销:</label>
  206 + <div class="col-md-4">
  207 + <div class="md-radio-inline">
  208 + <div class="md-radio">
  209 + <input type="radio" id="radio14" name="destroy" data-title="是" class="md-radiobtn" value="1" >
  210 + <label for="radio14">
  211 + <span></span>
  212 + <span class="check"></span>
  213 + <span class="box"></span> 是
  214 + </label>
  215 + </div>
  216 + <div class="md-radio has-error">
  217 + <input type="radio" id="radio15" name="destroy" class="md-radiobtn" data-title="否" value="0" checked="checked">
  218 + <label for="radio15" style="color:#FFC0CB">
  219 + <span></span>
  220 + <span class="check"></span>
  221 + <span class="box"></span> 否
  222 + </label>
  223 + </div>
  224 + </div>
  225 + </div>
  226 + </div>
  227 + <!-- 是否撤销 START -->
244 228 </div>
  229 + <!-- 表单分组组件 form-group END -->
245 230  
246   - <!-- 终点站首班时间 -->
  231 + <!-- 表单分组组件 form-group START -->
247 232 <div class="form-group">
248   - <label class="control-label col-md-3"> 终点站首班车时间: </label>
249   - <div class="col-md-4">
250   - <input type="text" class="form-control" name="endStationFirstTime" id="endStationFirstTimeInput" placeholder="终点站首班车时间">
251   - </div>
  233 + <!-- 起始站名称 START (该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的起点站。默认使用该字段填写值) -->
  234 + <div class="col-md-6">
  235 + <label class="control-label col-md-5"><span class="required"> * </span> 起始站名称: </label>
  236 + <div class="col-md-4">
  237 + <input type="text" class="form-control" name="startStationName" id="startStationNameInput" placeholder="起始站名称">
  238 + <span class="help-block"> 说明 :上行起始站名称 </span>
  239 + </div>
  240 + </div>
  241 + <!-- 起始站名称 END -->
  242 +
  243 + <!-- 终点站名称 START (该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的终点站。默认使用该字段填写值) -->
  244 + <div class="col-md-6">
  245 + <label class="control-label col-md-5"><span class="required"> * </span> 终点站名称: </label>
  246 + <div class="col-md-4">
  247 + <input type="text" class="form-control" name="endStationName" id="endStationNameInput" placeholder="终点站名称">
  248 + <span class="help-block"> 说明 :上行终点站名称 </span>
  249 + </div>
  250 + </div>
  251 + <!-- 终点站名称 END -->
252 252 </div>
  253 + <!-- 表单分组组件 form-group END -->
253 254  
254   - <!-- 终点站末班时间 -->
  255 + <!-- 表单分组组件 form-group START -->
255 256 <div class="form-group">
256   - <label class="control-label col-md-3"> 终点站末班车时间: </label>
257   - <div class="col-md-4">
258   - <input type="text" class="form-control" name="endStationEndTime" id="endStationEndTimeInput" placeholder="终点站末班车时间 ">
259   - </div>
  257 + <!-- 起始站首班车时间 (* 必填项) START -->
  258 + <div class="col-md-6">
  259 + <label class="control-label col-md-5"><span class="required"> * </span> 起始站首班时间: </label>
  260 + <div class="col-md-4">
  261 + <input type="text" class="form-control" name="startStationFirstTime" id="startStationFirstTimeInput" placeholder="起始站首班车时间">
  262 + <span class="help-block"> 例如 :06:00 </span>
  263 + </div>
  264 + </div>
  265 + <!-- 起始站首班车时间 END -->
  266 +
  267 + <!-- 起始站末班车时间 (* 必填项) START -->
  268 + <div class="col-md-6">
  269 + <label class="control-label col-md-5"><span class="required"> * </span> 起始站末班时间: </label>
  270 + <div class="col-md-4">
  271 + <!-- <input type="text" class="form-control" name="StartStationEndTime" id="StartStationEndTimeInput" placeholder="起始站末班车时间 "> -->
  272 + <input type="text" class="form-control" name="startStationEndTime" id="endTimeInput" placeholder="起始站末班车时间">
  273 + <span class="help-block"> 例如 :17:00 </span>
  274 + </div>
  275 + </div>
  276 + <!-- 起始站末班车时间 END -->
260 277 </div>
  278 + <!-- 表单分组组件 form-group END -->
261 279  
262   - <!-- 车辆总数 -->
  280 + <!-- 表单分组组件 form-group START -->
263 281 <div class="form-group">
264   - <label class="control-label col-md-3"> 车辆总数: </label>
265   - <div class="col-md-4">
266   - <input type="text" class="form-control" name="carSumNumber" id="carSumNumberInput" placeholder="车辆总数">
267   - </div>
  282 + <!-- 终点站首班车时间 (* 必填项) START -->
  283 + <div class="col-md-6">
  284 + <label class="control-label col-md-5"><span class="required"> * </span> 终点站首班时间: </label>
  285 + <div class="col-md-4">
  286 + <input type="text" class="form-control" name="endStationFirstTime" id="endStationFirstTimeInput" placeholder="终点站首班车时间">
  287 + <span class="help-block"> 例如 :05:00 </span>
  288 + </div>
  289 + </div>
  290 + <!-- 终点站首班车时间 END -->
  291 +
  292 + <!-- 终点站末班车时间 (* 必填项) START -->
  293 + <div class="col-md-6">
  294 + <label class="control-label col-md-5"><span class="required"> * </span> 终点站末班时间: </label>
  295 + <div class="col-md-4">
  296 + <input type="text" class="form-control" name="endStationEndTime" id="endStationEndTimeInput" placeholder="终点站末班车时间 ">
  297 + <span class="help-block"> 例如 :18:00 </span>
  298 + </div>
  299 + </div>
  300 + <!-- 终点站末班车时间 END -->
  301 + </div>
  302 + <!-- 表单分组组件 form-group END -->
  303 +
  304 + <!-- 表单分组组件 form-group START -->
  305 + <div class="form-group">
  306 + <!-- 上海市线路编码 START -->
  307 + <div class="col-md-6">
  308 + <label class="control-label col-md-5"> 上海市线路编码: </label>
  309 + <div class="col-md-4">
  310 + <input type="text" class="form-control" name="shanghaiLinecode" id="shanghaiLinecodeInput" placeholder="上海市线路编码">
  311 + </div>
  312 + </div>
  313 + <!-- 上海市线路编码 END -->
  314 +
  315 + <!--设备线路编码 START -->
  316 + <div class="col-md-6">
  317 + <label class="control-label col-md-5"> 设备线路编码: </label>
  318 + <div class="col-md-4">
  319 + <input type="text" class="form-control" name="eqLinecode" id="eqLinecodeInput" placeholder="设备线路编码">
  320 + </div>
  321 + </div>
  322 + <!--设备线路编码 END -->
  323 + </div>
  324 + <!-- 表单分组组件 form-group END -->
  325 +
  326 + <!-- 表单分组组件 form-group START -->
  327 + <div class="form-group">
  328 + <!-- 起始站调度电话 START -->
  329 + <div class="col-md-6">
  330 + <label class="control-label col-md-5"> 起始站调度电话: </label>
  331 + <div class="col-md-4">
  332 + <input type="text" class="form-control" name="startPhone" id="startPhoneInput" placeholder="起始站调度电话">
  333 + </div>
  334 + </div>
  335 + <!-- 起始站调度电话 END -->
  336 +
  337 + <!-- 终点站调度电话 START -->
  338 + <div class="col-md-6">
  339 + <label class="control-label col-md-5"> 终点站调度电话: </label>
  340 + <div class="col-md-4">
  341 + <input type="text" class="form-control" name="endPhone" id="startPhoneInput" placeholder="终点站调度电话">
  342 + </div>
  343 + </div>
  344 + <!-- 终点站调度电话 START -->
  345 + </div>
  346 + <!-- 表单分组组件 form-group END -->
  347 +
  348 + <!-- 表单分组组件 form-group START -->
  349 + <div class="form-group">
  350 + <!-- 车辆总数 START -->
  351 + <div class="col-md-6">
  352 + <label class="control-label col-md-5"> 车辆总数: </label>
  353 + <div class="col-md-4">
  354 + <input type="text" class="form-control" name="carSumNumber" id="carSumNumberInput" placeholder="车辆总数">
  355 + </div>
  356 + </div>
  357 + <!-- 车辆总数 END -->
  358 +
  359 + <!-- 普通车辆数 START -->
  360 + <div class="col-md-6">
  361 + <label class="control-label col-md-5"> 普通车辆数: </label>
  362 + <div class="col-md-4">
  363 + <input type="text" class="form-control" name="ordCarNumber" id="ordCarNumberInput" placeholder="普通车辆数">
  364 + </div>
  365 + </div>
  366 + <!-- 普通车辆数 END -->
268 367 </div>
  368 + <!-- 表单分组组件 form-group END -->
269 369  
270   - <!-- 空调车辆数 -->
  370 + <!-- 表单分组组件 form-group START -->
271 371 <div class="form-group">
272   - <label class="control-label col-md-3"> 空调车辆数: </label>
273   - <div class="col-md-4">
274   - <input type="text" class="form-control" name="hvacCarNumber" id="hvacCarNumberInput" placeholder="空调车辆数">
275   - </div>
  372 + <!-- 空调车辆数 START -->
  373 + <div class="col-md-6">
  374 + <label class="control-label col-md-5"> 空调车辆数: </label>
  375 + <div class="col-md-4">
  376 + <input type="text" class="form-control" name="hvacCarNumber" id="hvacCarNumberInput" placeholder="空调车辆数">
  377 + </div>
  378 + </div>
  379 + <!-- 空调车辆数 END -->
276 380 </div>
  381 + <!-- 表单分组组件 form-group END -->
277 382  
278   - <!-- 普通车辆数 -->
279   - <div class="form-group">
280   - <label class="control-label col-md-3"> 普通车辆数: </label>
281   - <div class="col-md-4">
282   - <input type="text" class="form-control" name="ordCarNumber" id="ordCarNumberInput" placeholder="普通车辆数">
283   - </div>
284   - </div>
285   -
286   - <!-- 描述/说明 -->
  383 + <!-- 表单分组组件 form-group START -->
287 384 <div class="form-group">
288   - <label class="control-label col-md-3"> 描述/说明: </label>
289   - <div class="col-md-4">
290   - <textarea class="form-control" rows="3" name="descriptions" id="descriptionsTextarea" placeholder="描述/说明"></textarea>
291   - </div>
  385 + <!-- 线路沿革 START -->
  386 + <div class="col-md-6">
  387 + <label class="control-label col-md-5"> 线路沿革: </label>
  388 + <div class="col-md-4">
  389 + <textarea class="form-control" rows="3" name="history" id="historyTextarea" placeholder="线路沿革"></textarea>
  390 + <span class="help-block">日期及内容:如2014-1-1,开辟;2014-5-1,延线;</span>
  391 + </div>
  392 + </div>
  393 + <!-- 线路沿革 END -->
  394 +
  395 + <!-- 描述/说明 START -->
  396 + <div class="col-md-6">
  397 + <label class="control-label col-md-5"> 描述/说明: </label>
  398 + <div class="col-md-4">
  399 + <textarea class="form-control" rows="3" name="descriptions" id="descriptionsTextarea" placeholder="描述/说明"></textarea>
  400 + </div>
  401 + </div>
  402 + <!-- 描述/说明 END -->
292 403 </div>
  404 + <!-- 表单分组组件 form-group END -->
293 405 </div>
  406 +
  407 + <!-- 表单按钮组件 START -->
294 408 <div class="form-actions">
295 409 <div class="row">
296 410 <div class="col-md-offset-3 col-md-4">
... ... @@ -298,9 +412,16 @@
298 412 </div>
299 413 </div>
300 414 </div>
  415 + <!-- 表单按钮组件 END -->
  416 +
301 417 </form>
302 418 <!-- END FORM-->
303 419  
304 420 </div>
  421 + <!-- 表单组件 END -->
  422 +
305 423 </div>
  424 +<!-- 信息容器组件 END -->
  425 +
  426 +<!-- 线路信息详情片段JS模块 -->
306 427 <script type="text/javascript" src="/pages/base/line/js/line-details-info.js"></script>
307 428 \ No newline at end of file
... ...
src/main/resources/static/pages/base/line/edit.html
  1 +<!-- 片段标题 START -->
1 2 <div class="page-head">
2 3 <div class="page-title">
3 4 <h1>修改线路信息</h1>
4 5 </div>
5 6 </div>
  7 +<!-- 片段标题 END -->
6 8  
  9 +<!-- 线路信息导航栏组件 START -->
7 10 <ul class="page-breadcrumb breadcrumb">
8 11 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9 12 <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li>
10 13 <li><a href="/pages/base/line/list.html" data-pjax>线路信息</a> <i class="fa fa-circle"></i></li>
11 14 <li><span class="active">修改线路信息</span></li>
12 15 </ul>
  16 +<!-- 线路信息导航栏组件 END -->
13 17  
  18 +<!-- 信息容器组件 START -->
14 19 <div class="portlet light bordered">
  20 +
  21 + <!-- 信息容器组件标题 START -->
15 22 <div class="portlet-title">
16 23 <div class="caption">
17 24 <i class="icon-equalizer font-red-sunglo"></i>
18 25 <span class="caption-subject font-red-sunglo bold uppercase">修改线路信息</span>
19 26 </div>
20 27 </div>
  28 + <!-- 信息容器组件标题 END -->
  29 +
  30 + <!-- 表单容器组件 START -->
21 31 <div class="portlet-body form" id="lineEditForm">
22 32  
23 33 <!-- START FORM -->
24 34 <form action="/" class="form-horizontal" id="line_edit_form" >
25 35  
26   - <!-- 错误提示 -->
  36 + <!-- 错误提示信息组件 START -->
27 37 <div class="alert alert-danger display-hide">
28 38 <button class="close" data-close="alert"></button>
29 39 您的输入有误,请检查下面的输入项
30 40 </div>
  41 + <!-- 错误提示信息组件 END -->
31 42  
32   - <!-- 表单内容 -->
  43 + <!-- 表单内容 START -->
33 44 <div class="form-body">
34   -
  45 +
35 46 <input type="hidden" name="id" id="lineId">
36 47  
37   - <!-- 线路名称 -->
  48 + <!-- 表单分组组件 form-group START -->
38 49 <div class="form-group">
39   - <label class="control-label col-md-3">
40   - <span class="required"> * </span>线路名称:
41   - </label>
42   - <div class="col-md-4">
43   - <input type="text" class="form-control" name="name" id="nameInput" placeholder="线路名称" />
44   - <span class="help-block"> 例如 :浦东88路 </span>
45   - </div>
46   - </div>
47   -
48   - <!-- 英文名称 -->
49   - <div class="form-group">
50   - <label class="control-label col-md-3"> 英文名称: </label>
51   - <div class="col-md-4">
52   - <input type="text" class="form-control" name="es" id="esInput" placeholder="英文名称">
53   - </div>
54   - </div>
55   -
56   - <!-- 线路简称 -->
57   - <div class="form-group">
58   - <label class="control-label col-md-3"> 线路简称:</label>
59   - <div class="col-md-4">
60   - <input type="text" class="form-control" name="shortName" id="shortNameInput" placeholder="线路简称">
61   - </div>
62   - </div>
63   -
64   - <!-- 线路编码 -->
65   - <div class="form-group">
66   - <label class="control-label col-md-3">
67   - <span class="required"> * </span>线路编码:
68   - </label>
69   - <div class="col-md-4">
70   - <input type="text" class="form-control" name="lineCode" id="lineCodeInput" placeholder="线路编码">
71   - </div>
72   - </div>
73   -
74   - <!-- 所属公司 -->
75   - <div class="form-group">
76   - <label class="control-label col-md-3"> 所属公司:</label>
77   - <div class="col-md-4">
78   - <select name="company" class="form-control" id="companySelect"></select>
79   - </div>
80   - </div>
81   -
82   - <!-- 所属分公司 -->
83   - <!-- <div class="form-group">
84   - <label class="control-label col-md-3"> 所属分公司:</label>
85   - <div class="col-md-4">
86   - <select name="brancheCompany" class="form-control" id="brancheCompanySelect"></select>
87   - </div>
88   - </div> -->
89   -
90   - <!-- 线路性质 -->
91   - <div class="form-group">
92   - <label class="control-label col-md-3"> 线路性质:</label>
93   - <div class="col-md-4">
94   - <select name="nature" class="form-control" id="natureSelect">
95   - <option value="">-- 请选择线路性质 --</option>
96   - <option value="lj">路救</option>
97   - <option value="bc">备车</option>
98   - <option value="dbc">定班车</option>
99   - <option value="yxl">夜宵路</option>
100   - <option value="cgxl">常规线路</option>
101   - <option value="gjxl">过江线路</option>
102   - <option value="csbs">穿梭巴士</option>
103   - <option value="tyxl">特约线路</option>
104   - <option value="cctxl">村村通线路</option>
105   - <option value="qt">其他</option>
106   - </select>
107   - </div>
108   - </div>
109   -
110   - <!-- 线路等级 -->
111   - <div class="form-group">
112   - <label class="control-label col-md-3"> 线路等级:</label>
113   - <div class="col-md-4">
114   - <select name="level" class="form-control" id="levelSelect">
115   - <option value="">-- 请选择线路等级 --</option>
116   - <option value="1">一级线路</option>
117   - <option value="2">二级线路</option>
118   - <option value="0">未知等级</option>
119   - </select>
120   - </div>
121   - </div>
122   -
123   - <!-- 是否撤销 -->
124   - <div class="form-group">
125   - <label class="control-label col-md-3">是否撤销:</label>
126   - <div class="col-md-4">
127   - <div class="md-radio-inline">
128   - <div class="md-radio">
129   - <input type="radio" id="radio14" name="destroy" data-title="是" class="md-radiobtn" value="1" >
130   - <label for="radio14">
131   - <span></span>
132   - <span class="check"></span>
133   - <span class="box"></span> 是
134   - </label>
135   - </div>
136   - <div class="md-radio has-error">
137   - <input type="radio" id="radio15" name="destroy" class="md-radiobtn" data-title="否" value="0">
138   - <label for="radio15" style="color:#FFC0CB">
139   - <span></span>
140   - <span class="check"></span>
141   - <span class="box"></span> 否
142   - </label>
143   - </div>
144   - </div>
145   - </div>
146   - </div>
147   -
148   - <!-- 是否宵夜 -->
149   - <div class="form-group">
150   - <label class="control-label col-md-3">是否宵夜:</label>
151   - <div class="col-md-4">
152   - <div class="md-radio-inline">
153   - <div class="md-radio">
154   - <input type="radio" id="radio16" name="supperLine" class="md-radiobtn" data-title="是" value="1">
155   - <label for="radio16">
156   - <span></span>
157   - <span class="check"></span>
158   - <span class="box"></span> 是
159   - </label>
160   - </div>
161   - <div class="md-radio has-error">
162   - <input type="radio" id="radio17" name="supperLine" class="md-radiobtn" data-title="否" value="0">
163   - <label for="radio17" style="color:#FFC0CB">
164   - <span></span>
165   - <span class="check"></span>
166   - <span class="box"></span> 否
167   - </label>
168   - </div>
169   - </div>
170   - </div>
171   - </div>
172   -
173   - <!-- 开辟日期 -->
174   - <div class="form-group">
175   - <label class="control-label col-md-3"> 开辟日期: </label>
176   - <div class="col-md-4">
177   - <input type="text" class="form-control" name="openDate" id="openDateInput" placeholder="开辟日期">
178   - </div>
179   - </div>
180   -
181   - <!-- 线路沿革 -->
182   - <div class="form-group">
183   - <label class="control-label col-md-3"> 线路沿革: </label>
184   - <div class="col-md-4">
185   - <textarea class="form-control" rows="3" name="history" id="historyTextarea" placeholder="线路沿革"></textarea>
186   - <span class="help-block">日期及内容:如2014-1-1,开辟;2014-5-1,延线;</span>
187   - </div>
188   - </div>
189   -
190   - <!-- 设备线路编码 -->
191   - <div class="form-group">
192   - <label class="control-label col-md-3"> 设备线路编码: </label>
193   - <div class="col-md-4">
194   - <input type="text" class="form-control" name="eqLinecode" id="eqLinecodeInput" placeholder="设备线路编码">
195   - </div>
196   - </div>
197   -
198   - <!-- 上海市线路编码 -->
199   - <div class="form-group">
200   - <label class="control-label col-md-3"> 上海市线路编码: </label>
201   - <div class="col-md-4">
202   - <input type="text" class="form-control" name="shanghaiLinecode" id="shanghaiLinecodeInput" placeholder="上海市线路编码">
203   - </div>
204   - </div>
205   -
206   - <!-- 起始站调度电话 -->
207   - <div class="form-group">
208   - <label class="control-label col-md-3"> 起始站调度电话: </label>
209   - <div class="col-md-4">
210   - <input type="text" class="form-control" name="startPhone" id="startPhoneInput" placeholder="起始站调度电话">
211   - </div>
  50 + <!-- 线路编码 (* 必填项) START -->
  51 + <div class="col-md-6">
  52 + <label class="control-label col-md-5">
  53 + <span class="required"> * </span>线路编码:
  54 + </label>
  55 + <div class="col-md-4">
  56 + <input type="text" class="form-control" name="lineCode" id="lineCodeInput" placeholder="线路编码">
  57 + </div>
  58 + </div>
  59 + <!-- 线路编码 (* 必填项) END -->
  60 +
  61 + <!-- 线路名称 (* 必填项) START -->
  62 + <div class="col-md-6">
  63 + <label class="control-label col-md-5">
  64 + <span class="required"> * </span>线路名称:
  65 + </label>
  66 + <div class="col-md-4">
  67 + <input type="text" class="form-control" name="name" id="nameInput" placeholder="线路名称" />
  68 + <span class="help-block"> 例如 :浦东88路 </span>
  69 + </div>
  70 + </div>
  71 + <!-- 线路名称 (* 必填项) END -->
212 72 </div>
  73 + <!-- 表单分组组件 form-group END -->
213 74  
214   - <!-- 终点站调度电话 -->
  75 + <!-- 表单分组组件 form-group START -->
215 76 <div class="form-group">
216   - <label class="control-label col-md-3"> 终点站调度电话: </label>
217   - <div class="col-md-4">
218   - <input type="text" class="form-control" name="endPhone" id="startPhoneInput" placeholder="终点站调度电话">
219   - </div>
  77 + <!-- 线路简称 START -->
  78 + <div class="col-md-6">
  79 + <label class="control-label col-md-5"> 线路简称:</label>
  80 + <div class="col-md-4">
  81 + <input type="text" class="form-control" name="shortName" id="shortNameInput" placeholder="线路简称">
  82 + </div>
  83 + </div>
  84 + <!-- 线路简称 END -->
  85 +
  86 + <!-- 英文名称 START -->
  87 + <div class="col-md-6">
  88 + <label class="control-label col-md-5"> 英文名称: </label>
  89 + <div class="col-md-4">
  90 + <input type="text" class="form-control" name="es" id="esInput" placeholder="英文名称">
  91 + </div>
  92 + </div>
  93 + <!-- 英文名称 END -->
220 94 </div>
  95 + <!-- 表单分组组件 form-group END -->
221 96  
222   - <!-- 起始站名称 -->
  97 + <!-- 表单分组组件 form-group START -->
223 98 <div class="form-group">
224   - <label class="control-label col-md-3"> 起始站名称: </label>
225   - <div class="col-md-4">
226   - <input type="text" class="form-control" name="startStationName" id="startStationNameInput" placeholder="起始站名称">
227   - </div>
  99 + <!-- 线路等级 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  100 + <div class="col-md-6">
  101 + <label class="control-label col-md-5"> 线路等级:</label>
  102 + <div class="col-md-4">
  103 + <select name="level" class="form-control" id="levelSelect">
  104 + <option value="">-- 请选择线路等级 --</option>
  105 + <option value="1">一级线路</option>
  106 + <option value="2">二级线路</option>
  107 + <option value="0">未知等级</option>
  108 + </select>
  109 + </div>
  110 + </div>
  111 + <!-- 线路等级 END -->
  112 +
  113 + <!-- 线路性质 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  114 + <div class="col-md-6">
  115 + <label class="control-label col-md-5"> 线路性质:</label>
  116 + <div class="col-md-4">
  117 + <select name="nature" class="form-control" id="natureSelect">
  118 + <option value="">-- 请选择线路性质 --</option>
  119 + <option value="lj">路救</option>
  120 + <option value="bc">备车</option>
  121 + <option value="dbc">定班车</option>
  122 + <option value="yxl">夜宵路</option>
  123 + <option value="cgxl">常规线路</option>
  124 + <option value="gjxl">过江线路</option>
  125 + <option value="csbs">穿梭巴士</option>
  126 + <option value="tyxl">特约线路</option>
  127 + <option value="cctxl">村村通线路</option>
  128 + <option value="qt">其他</option>
  129 + </select>
  130 + </div>
  131 + </div>
  132 + <!-- 线路性质 END -->
228 133 </div>
  134 + <!-- 表单分组组件 form-group END -->
229 135  
230   - <!-- 终点站名称 -->
  136 + <!-- 表单分组组件 form-group START -->
231 137 <div class="form-group">
232   - <label class="control-label col-md-3"> 终点站名称: </label>
233   - <div class="col-md-4">
234   - <input type="text" class="form-control" name="endStationName" id="endStationNameInput" placeholder="终点站名称">
235   - </div>
  138 + <!-- 所属公司 START 在片段线路添加JS模块里初始化select(options值查询的公司表) -->
  139 + <div class="col-md-6">
  140 + <label class="control-label col-md-5"> 所属公司:</label>
  141 + <div class="col-md-4">
  142 + <select name="company" class="form-control" id="companySelect"></select>
  143 + </div>
  144 + </div>
  145 + <!-- 所属公司 END -->
  146 +
  147 + <!-- 所属分公司 START 在片段线路添加JS模块里初始化select(options值查询的公司表) -->
  148 + <div class="col-md-6">
  149 + <label class="control-label col-md-5"> 所属公司:</label>
  150 + <div class="col-md-4">
  151 + <select name="brancheCompany" class="form-control" id="brancheCompanySelect"></select>
  152 + </div>
  153 + </div>
  154 + <!-- 所属分公司 END -->
236 155 </div>
  156 + <!-- 表单分组组件 form-group END -->
237 157  
238   - <!-- 起始站首班车时间 -->
  158 + <!-- 表单分组组件 form-group START -->
239 159 <div class="form-group">
240   - <label class="control-label col-md-3"> 起始站首班车时间: </label>
241   - <div class="col-md-4">
242   - <input type="text" class="form-control" name="startStationFirstTime" id="startStationFirstTimeInput" placeholder="起始站首班车时间">
243   - </div>
  160 + <!-- 线路规划类型 (* 必填项) START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  161 + <div class="col-md-6">
  162 + <label class="control-label col-md-5"><span class="required"> * </span> 线路规划类型:</label>
  163 + <div class="col-md-4">
  164 + <select name="linePlayType" class="form-control" id="linePlayTypeSelect">
  165 + <option value="">-- 请选择线路类型 --</option>
  166 + <option value="0">双向</option>
  167 + <option value="1">环线</option>
  168 + </select>
  169 + </div>
  170 + </div>
  171 + <!-- 线路规划类型 (* 必填项) END -->
  172 +
  173 + <!-- 开辟日期 START -->
  174 + <div class="col-md-6">
  175 + <label class="control-label col-md-5"> 开辟日期: </label>
  176 + <div class="col-md-4">
  177 + <input type="text" class="form-control" name="openDate" id="openDateInput" placeholder="开辟日期">
  178 + </div>
  179 + </div>
  180 + <!-- 开辟日期 END -->
244 181 </div>
  182 + <!-- 表单分组组件 form-group START -->
245 183  
246   - <!-- 起始站末班车时间 -->
  184 + <!-- 表单分组组件 form-group START -->
247 185 <div class="form-group">
248   - <label class="control-label col-md-3"> 起始站末班车时间: </label>
249   - <div class="col-md-4">
250   - <input type="text" class="form-control" name="StartStationEndTime" id="StartStationEndTimeInput" placeholder="起始站末班车时间 ">
251   - </div>
  186 + <!-- 是否宵夜 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  187 + <div class="col-md-6">
  188 + <label class="control-label col-md-5">是否宵夜:</label>
  189 + <div class="col-md-4">
  190 + <div class="md-radio-inline">
  191 + <div class="md-radio">
  192 + <input type="radio" id="radio16" name="supperLine" class="md-radiobtn" value="1" data-title="是" >
  193 + <label for="radio16">
  194 + <span></span>
  195 + <span class="check"></span>
  196 + <span class="box"></span> 是
  197 + </label>
  198 + </div>
  199 + <div class="md-radio has-error">
  200 + <input type="radio" id="radio17" name="supperLine" class="md-radiobtn" value="0" data-title="否" checked="checked">
  201 + <label for="radio17" style="color:#FFC0CB">
  202 + <span></span>
  203 + <span class="check"></span>
  204 + <span class="box"></span> 否
  205 + </label>
  206 + </div>
  207 + </div>
  208 + </div>
  209 + </div>
  210 + <!-- 是否宵夜 END -->
  211 +
  212 + <!-- 是否撤销 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  213 + <div class="col-md-6">
  214 + <label class="control-label col-md-5">是否撤销:</label>
  215 + <div class="col-md-4">
  216 + <div class="md-radio-inline">
  217 + <div class="md-radio">
  218 + <input type="radio" id="radio14" name="destroy" data-title="是" class="md-radiobtn" value="1" >
  219 + <label for="radio14">
  220 + <span></span>
  221 + <span class="check"></span>
  222 + <span class="box"></span> 是
  223 + </label>
  224 + </div>
  225 + <div class="md-radio has-error">
  226 + <input type="radio" id="radio15" name="destroy" class="md-radiobtn" data-title="否" value="0" checked="checked">
  227 + <label for="radio15" style="color:#FFC0CB">
  228 + <span></span>
  229 + <span class="check"></span>
  230 + <span class="box"></span> 否
  231 + </label>
  232 + </div>
  233 + </div>
  234 + </div>
  235 + </div>
  236 + <!-- 是否撤销 START -->
252 237 </div>
  238 + <!-- 表单分组组件 form-group END -->
253 239  
254   -
255   - <!-- 终点站首班时间 -->
  240 + <!-- 表单分组组件 form-group START -->
256 241 <div class="form-group">
257   - <label class="control-label col-md-3"> 终点站首班车时间: </label>
258   - <div class="col-md-4">
259   - <input type="text" class="form-control" name="endStationFirstTime" id="endStationFirstTimeInput" placeholder="终点站首班车时间">
260   - </div>
  242 + <!-- 起始站名称 START (该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的起点站。默认使用该字段填写值) -->
  243 + <div class="col-md-6">
  244 + <label class="control-label col-md-5"><span class="required"> * </span> 起始站名称: </label>
  245 + <div class="col-md-4">
  246 + <input type="text" class="form-control" name="startStationName" id="startStationNameInput" placeholder="起始站名称">
  247 + <span class="help-block"> 说明 :上行起始站名称 </span>
  248 + </div>
  249 + </div>
  250 + <!-- 起始站名称 END -->
  251 +
  252 + <!-- 终点站名称 START (该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的终点站。默认使用该字段填写值) -->
  253 + <div class="col-md-6">
  254 + <label class="control-label col-md-5"><span class="required"> * </span> 终点站名称: </label>
  255 + <div class="col-md-4">
  256 + <input type="text" class="form-control" name="endStationName" id="endStationNameInput" placeholder="终点站名称">
  257 + <span class="help-block"> 说明 :上行终点站名称 </span>
  258 + </div>
  259 + </div>
  260 + <!-- 终点站名称 END -->
261 261 </div>
  262 + <!-- 表单分组组件 form-group END -->
262 263  
263   - <!-- 终点站末班时间 -->
264   - <div class="form-group">
265   - <label class="control-label col-md-3"> 终点站末班车时间: </label>
266   - <div class="col-md-4">
267   - <input type="text" class="form-control" name="endStationEndTime" id="endStationEndTimeInput" placeholder="终点站末班车时间 ">
268   - </div>
269   - </div>
270   -
271   - <!-- 车辆总数 -->
  264 + <!-- 表单分组组件 form-group START -->
272 265 <div class="form-group">
273   - <label class="control-label col-md-3"> 车辆总数: </label>
274   - <div class="col-md-4">
275   - <input type="text" class="form-control" name="carSumNumber" id="carSumNumberInput" placeholder="车辆总数">
276   - </div>
  266 + <!-- 起始站首班车时间 (* 必填项) START -->
  267 + <div class="col-md-6">
  268 + <label class="control-label col-md-5"><span class="required"> * </span> 起始站首班时间: </label>
  269 + <div class="col-md-4">
  270 + <input type="text" class="form-control" name="startStationFirstTime" id="startStationFirstTimeInput" placeholder="起始站首班车时间">
  271 + <span class="help-block"> 例如 :06:00 </span>
  272 + </div>
  273 + </div>
  274 + <!-- 起始站首班车时间 END -->
  275 +
  276 + <!-- 起始站末班车时间 (* 必填项) START -->
  277 + <div class="col-md-6">
  278 + <label class="control-label col-md-5"><span class="required"> * </span> 起始站末班时间: </label>
  279 + <div class="col-md-4">
  280 + <!-- <input type="text" class="form-control" name="StartStationEndTime" id="StartStationEndTimeInput" placeholder="起始站末班车时间 "> -->
  281 + <input type="text" class="form-control" name="startStationEndTime" id="endTimeInput" placeholder="起始站末班车时间">
  282 + <span class="help-block"> 例如 :17:00 </span>
  283 + </div>
  284 + </div>
  285 + <!-- 起始站末班车时间 END -->
277 286 </div>
  287 + <!-- 表单分组组件 form-group END -->
278 288  
279   - <!-- 空调车辆数 -->
  289 + <!-- 表单分组组件 form-group START -->
280 290 <div class="form-group">
281   - <label class="control-label col-md-3"> 空调车辆数: </label>
282   - <div class="col-md-4">
283   - <input type="text" class="form-control" name="hvacCarNumber" id="hvacCarNumberInput" placeholder="空调车辆数">
284   - </div>
  291 + <!-- 终点站首班车时间 (* 必填项) START -->
  292 + <div class="col-md-6">
  293 + <label class="control-label col-md-5"><span class="required"> * </span> 终点站首班时间: </label>
  294 + <div class="col-md-4">
  295 + <input type="text" class="form-control" name="endStationFirstTime" id="endStationFirstTimeInput" placeholder="终点站首班车时间">
  296 + <span class="help-block"> 例如 :05:00 </span>
  297 + </div>
  298 + </div>
  299 + <!-- 终点站首班车时间 END -->
  300 +
  301 + <!-- 终点站末班车时间 (* 必填项) START -->
  302 + <div class="col-md-6">
  303 + <label class="control-label col-md-5"><span class="required"> * </span> 终点站末班时间: </label>
  304 + <div class="col-md-4">
  305 + <input type="text" class="form-control" name="endStationEndTime" id="endStationEndTimeInput" placeholder="终点站末班车时间 ">
  306 + <span class="help-block"> 例如 :18:00 </span>
  307 + </div>
  308 + </div>
  309 + <!-- 终点站末班车时间 END -->
  310 + </div>
  311 + <!-- 表单分组组件 form-group END -->
  312 +
  313 + <!-- 表单分组组件 form-group START -->
  314 + <div class="form-group">
  315 + <!-- 上海市线路编码 START -->
  316 + <div class="col-md-6">
  317 + <label class="control-label col-md-5"> 上海市线路编码: </label>
  318 + <div class="col-md-4">
  319 + <input type="text" class="form-control" name="shanghaiLinecode" id="shanghaiLinecodeInput" placeholder="上海市线路编码">
  320 + </div>
  321 + </div>
  322 + <!-- 上海市线路编码 END -->
  323 +
  324 + <!--设备线路编码 START -->
  325 + <div class="col-md-6">
  326 + <label class="control-label col-md-5"> 设备线路编码: </label>
  327 + <div class="col-md-4">
  328 + <input type="text" class="form-control" name="eqLinecode" id="eqLinecodeInput" placeholder="设备线路编码">
  329 + </div>
  330 + </div>
  331 + <!--设备线路编码 END -->
  332 + </div>
  333 + <!-- 表单分组组件 form-group END -->
  334 +
  335 + <!-- 表单分组组件 form-group START -->
  336 + <div class="form-group">
  337 + <!-- 起始站调度电话 START -->
  338 + <div class="col-md-6">
  339 + <label class="control-label col-md-5"> 起始站调度电话: </label>
  340 + <div class="col-md-4">
  341 + <input type="text" class="form-control" name="startPhone" id="startPhoneInput" placeholder="起始站调度电话">
  342 + </div>
  343 + </div>
  344 + <!-- 起始站调度电话 END -->
  345 +
  346 + <!-- 终点站调度电话 START -->
  347 + <div class="col-md-6">
  348 + <label class="control-label col-md-5"> 终点站调度电话: </label>
  349 + <div class="col-md-4">
  350 + <input type="text" class="form-control" name="endPhone" id="startPhoneInput" placeholder="终点站调度电话">
  351 + </div>
  352 + </div>
  353 + <!-- 终点站调度电话 START -->
  354 + </div>
  355 + <!-- 表单分组组件 form-group END -->
  356 +
  357 + <!-- 表单分组组件 form-group START -->
  358 + <div class="form-group">
  359 + <!-- 车辆总数 START -->
  360 + <div class="col-md-6">
  361 + <label class="control-label col-md-5"> 车辆总数: </label>
  362 + <div class="col-md-4">
  363 + <input type="text" class="form-control" name="carSumNumber" id="carSumNumberInput" placeholder="车辆总数">
  364 + </div>
  365 + </div>
  366 + <!-- 车辆总数 END -->
  367 +
  368 + <!-- 普通车辆数 START -->
  369 + <div class="col-md-6">
  370 + <label class="control-label col-md-5"> 普通车辆数: </label>
  371 + <div class="col-md-4">
  372 + <input type="text" class="form-control" name="ordCarNumber" id="ordCarNumberInput" placeholder="普通车辆数">
  373 + </div>
  374 + </div>
  375 + <!-- 普通车辆数 END -->
285 376 </div>
  377 + <!-- 表单分组组件 form-group END -->
286 378  
287   - <!-- 普通车辆数 -->
  379 + <!-- 表单分组组件 form-group START -->
288 380 <div class="form-group">
289   - <label class="control-label col-md-3"> 普通车辆数: </label>
290   - <div class="col-md-4">
291   - <input type="text" class="form-control" name="ordCarNumber" id="ordCarNumberInput" placeholder="普通车辆数">
292   - </div>
  381 + <!-- 空调车辆数 START -->
  382 + <div class="col-md-6">
  383 + <label class="control-label col-md-5"> 空调车辆数: </label>
  384 + <div class="col-md-4">
  385 + <input type="text" class="form-control" name="hvacCarNumber" id="hvacCarNumberInput" placeholder="空调车辆数">
  386 + </div>
  387 + </div>
  388 + <!-- 空调车辆数 END -->
293 389 </div>
  390 + <!-- 表单分组组件 form-group END -->
294 391  
295   - <!-- 描述/说明 -->
  392 + <!-- 表单分组组件 form-group START -->
296 393 <div class="form-group">
297   - <label class="control-label col-md-3"> 描述/说明: </label>
298   - <div class="col-md-4">
299   - <textarea class="form-control" rows="3" name="descriptions" id="descriptionsTextarea" placeholder="描述/说明"></textarea>
300   - </div>
  394 + <!-- 线路沿革 START -->
  395 + <div class="col-md-6">
  396 + <label class="control-label col-md-5"> 线路沿革: </label>
  397 + <div class="col-md-4">
  398 + <textarea class="form-control" rows="3" name="history" id="historyTextarea" placeholder="线路沿革"></textarea>
  399 + <span class="help-block">日期及内容:如2014-1-1,开辟;2014-5-1,延线;</span>
  400 + </div>
  401 + </div>
  402 + <!-- 线路沿革 END -->
  403 +
  404 + <!-- 描述/说明 START -->
  405 + <div class="col-md-6">
  406 + <label class="control-label col-md-5"> 描述/说明: </label>
  407 + <div class="col-md-4">
  408 + <textarea class="form-control" rows="3" name="descriptions" id="descriptionsTextarea" placeholder="描述/说明"></textarea>
  409 + </div>
  410 + </div>
  411 + <!-- 描述/说明 END -->
301 412 </div>
  413 + <!-- 表单分组组件 form-group END -->
302 414 </div>
  415 +
  416 + <!-- 表单按钮组件 START -->
303 417 <div class="form-actions">
304 418 <div class="row">
305 419 <div class="col-md-offset-3 col-md-4">
... ... @@ -308,9 +422,13 @@
308 422 </div>
309 423 </div>
310 424 </div>
  425 + <!-- 表单按钮组件 END -->
311 426 </form>
312 427 <!-- END FORM-->
313   -
314 428 </div>
  429 + <!-- 表单组件 END -->
315 430 </div>
  431 +<!-- 信息容器组件 END -->
  432 +
  433 +<!-- 线路信息修改片段JS模块 -->
316 434 <script src="/pages/base/line/js/line-edit-form.js"></script>
317 435 \ No newline at end of file
... ...
src/main/resources/static/pages/base/line/js/line-add-form.js
  1 +/**
  2 + * @description TODO(线路信息添加片段JS模块)
  3 + *
  4 + * @author bsth@lq
  5 + *
  6 + * @date 二〇一六年十月十八日 13:31:58
  7 + *
  8 + */
  9 +
1 10 $(function(){
2 11  
3   - // 获取线路编码
  12 + /** 获取线路编码 @param cb <回调函数> */
4 13 function getLineCode(cb) {
5 14  
6   - // 获取线路编码
  15 + /** get请求获取线路编码。返回线路编码值 */
7 16 $.get('/line/getLineCode',function(lineCode){
8 17  
9 18 return cb && cb(lineCode);
... ... @@ -11,97 +20,8 @@ $(function(){
11 20 });
12 21 }
13 22  
14   - // 获取线路编码元素并设值
15   - getLineCode(function(result){
16   -
17   - // 设置线路编码值
18   - $('#lineCodeInput').val(result);
19   -
20   - })
21   -
22   - // 输入线路名称,自动生成英文名称和线路简称
23   - $('#nameInput').on('keyup', setPinYin);
24   -
25   - // 根据线路名称值设置英文名称值和线路简称
26   - function setPinYin(){
27   -
28   - // 获取线路名称值
29   - var val = $('#nameInput').val();
30   -
31   - // 设置英文名称值
32   - $('#esInput').val(pinyin.getFullChars(val));
33   -
34   - // 设置线路简称值
35   - $('#shortNameInput').val(pinyin.getCamelChars(val));
36   - }
37   -
38   - // 日期控件
39   - $('#openDateInput').datetimepicker({
40   -
41   - // 日期控件时间格式
42   - format : 'YYYY-MM-DD',
43   -
44   - // 语言
45   - locale: 'zh-cn'
46   -
47   - });
48   -
49   - // 日期控件
50   - $('#startStationFirstTimeInput').datetimepicker({
51   -
52   - format : 'HH:mm',
53   -
54   - locale: 'zh-cn',
55   - });
56   -
57   - // 日期控件
58   - $('#StartStationEndTimeInput').datetimepicker({
59   -
60   - format : 'HH:mm',
61   -
62   - locale: 'zh-cn',
63   - });
64   -
65   - // 日期控件
66   - $('#endStationFirstTimeInput').datetimepicker({
67   -
68   - format : 'HH:mm',
69   -
70   - locale: 'zh-cn',
71   - });
72   -
73   - // 日期控件
74   - $('#endStationEndTimeInput').datetimepicker({
75   -
76   - format : 'HH:mm',
77   -
78   - locale: 'zh-cn',
79   - });
80   -
81   - // 填充公司下拉框选择值
82   - $get('/business/all', {upCode_eq: '77'}, function(array){
83   -
84   - // 公司下拉options属性值
85   - var options = '<option value="">-- 请选择公司 --</option>';
86   -
87   - // 遍历array
88   - $.each(array, function(i,d){
89   -
90   - options += '<option value="'+d.businessCode+'">'+d.businessName+'</option>';
91   -
92   - });
93   -
94   - // 填充公司下拉框options,并添加公司下拉框值改变事件setbrancheCompanySelectOptions
95   - $('#companySelect').html(options)
96   - // $('#companySelect').html(options).on('change', setbrancheCompanySelectOptions);
97   -
98   - });
99   -
100   - // 填充分公司下拉框
101   - // setbrancheCompanySelectOptions();
102   -
103   - // 填充分公司下拉框选择值
104   - function setbrancheCompanySelectOptions(){
  23 + /** 填充分公司下拉框选择值 */
  24 + function setbrancheCompanySelectOptions(){
105 25  
106 26 // 获取公司下拉框选择值
107 27 var businessCode = $('#companySelect').val();
... ... @@ -132,16 +52,77 @@ $(function(){
132 52  
133 53 });
134 54 }
  55 + }
  56 +
  57 + /** 根据线路名称值设置英文名称值和线路简称 */
  58 + function setPinYin(){
  59 +
  60 + /** 获取线路名称值 */
  61 + var val = $('#nameInput').val();
  62 +
  63 + /** 汉字转换为拼音 设置英文名称值 */
  64 + $('#esInput').val(pinyin.getFullChars(val));
  65 +
  66 + /** 汉字转换为拼音将每一个字的拼音的首字母提取出来并大写 设置线路简称值 */
  67 + $('#shortNameInput').val(pinyin.getCamelChars(val));
135 68 }
136 69  
137   - // 定义表单
138   - var form = $('#line_add_form');
  70 + /** 获取线路编码元素并设值 @param 匿名函数 */
  71 + getLineCode(function(result){
  72 +
  73 + // 设置线路编码值
  74 + $('#lineCodeInput').val(result);
  75 +
  76 + })
  77 +
  78 + /** 输入线路名称,自动生成英文名称和线路简称 */
  79 + $('#nameInput').on('keyup', setPinYin);
  80 +
  81 + /** 开辟日期 日期控件 <format:日期控件时间格式;locale:语言> */
  82 + $('#openDateInput').datetimepicker({format : 'YYYY-MM-DD', locale: 'zh-cn'});
  83 +
  84 + /** 起始站首班时间 日期控件 <format:日期控件时间格式;locale:语言> */
  85 + $('#startStationFirstTimeInput').datetimepicker({format : 'HH:mm', locale: 'zh-cn'});
  86 +
  87 + /** 起始站末班时间 日期控件 <format:日期控件时间格式;locale:语言> */
  88 + $('#endTimeInput').datetimepicker({format : 'HH:mm', locale: 'zh-cn'});
  89 +
  90 + /** 终点站首班时间 日期控件 <format:日期控件时间格式;locale:语言> */
  91 + $('#endStationFirstTimeInput').datetimepicker({format : 'HH:mm', locale: 'zh-cn'});
  92 +
  93 + /** 终点站末班时间 日期控件 <format:日期控件时间格式;locale:语言> */
  94 + $('#endStationEndTimeInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  95 +
  96 + /** get请求获取公司表数据并填充公司下拉框选择值 */
  97 + $get('/business/all', {upCode_eq: '77'}, function(array){
  98 +
  99 + /** 公司下拉options属性值 */
  100 + var options = '<option value="">-- 请选择公司 --</option>';
  101 +
  102 + /** 遍历array */
  103 + $.each(array, function(i,d){
  104 +
  105 + options += '<option value="'+d.businessCode+'">'+d.businessName+'</option>';
  106 +
  107 + });
  108 +
  109 + /** 填充公司下拉框options,并添加公司下拉框值改变事件setbrancheCompanySelectOptions */
  110 + $('#companySelect').html(options).on('change', setbrancheCompanySelectOptions);
  111 + // $('#companySelect').html(options)
  112 +
  113 + });
  114 +
  115 + /** 填充分公司下拉框 */
  116 + setbrancheCompanySelectOptions();
  117 +
  118 + // 定义表单
  119 + var form = $('#line_add_form');
139 120  
140   - // 定义表单异常
141   - var error = $('.alert-danger',form);
  121 + // 定义表单异常
  122 + var error = $('.alert-danger',form);
142 123  
143   - // 表单验证
144   - form.validate({
  124 + // 表单验证
  125 + form.validate({
145 126  
146 127 // 错误提示元素span对象
147 128 errorElement : 'span',
... ... @@ -217,6 +198,9 @@ $(function(){
217 198 // 起始站名称
218 199 'startStationName' : {
219 200  
  201 + // 必填项
  202 + /*required : true,*/
  203 +
220 204 // 最大长度
221 205 maxlength: 30
222 206  
... ... @@ -225,6 +209,64 @@ $(function(){
225 209 // 终点站名称
226 210 'endStationName' : {
227 211  
  212 + // 必填项
  213 + /*required : true,*/
  214 +
  215 + // 最大长度
  216 + maxlength: 30
  217 +
  218 + },
  219 +
  220 + // 起始站首班时间
  221 + 'startStationFirstTime' : {
  222 +
  223 + // 必填项
  224 + required : true,
  225 +
  226 + // 最大长度
  227 + maxlength: 30
  228 +
  229 + },
  230 +
  231 + // 线路规划类型 <0:双向;1:环线>
  232 + 'linePlayType' : {
  233 +
  234 + // 必填项
  235 + required : true,
  236 +
  237 + // 最大长度
  238 + maxlength: 30
  239 +
  240 + },
  241 +
  242 + // 起始站末班时间
  243 + 'StartStationEndTime' : {
  244 +
  245 + // 必填项
  246 + required : true,
  247 +
  248 + // 最大长度
  249 + maxlength: 30
  250 +
  251 + },
  252 +
  253 + // 终点站首班时间
  254 + 'endStationFirstTime' : {
  255 +
  256 + // 必填项
  257 + required : true,
  258 +
  259 + // 最大长度
  260 + maxlength: 30
  261 +
  262 + },
  263 +
  264 + // 终点站末班时间
  265 + 'endStationEndTime' : {
  266 +
  267 + // 必填项
  268 + required : true,
  269 +
228 270 // 最大长度
229 271 maxlength: 30
230 272  
... ...
src/main/resources/static/pages/base/line/js/line-details-info.js
  1 +/**
  2 + * @description TODO(线路信息详情片段JS模块)
  3 + *
  4 + * @author bsth@lq
  5 + *
  6 + * @date 二〇一六年十月十八日 13:31:58
  7 + *
  8 + */
  9 +
1 10 $(function(){
2 11  
  12 + // 填充分公司下拉框选择值
  13 + function getbrancheCompanyValues(businessCode,cb){
  14 +
  15 + // 分公司下拉框options属性值
  16 + var options = '<option value="">-- 请选择分公司 --</option>';
  17 +
  18 + if(businessCode) {
  19 +
  20 + $get('/business/all', {upCode_eq: businessCode}, function(brancheCompany){
  21 +
  22 + // 遍历brancheCompany
  23 + $.each(brancheCompany, function(i,d){
  24 +
  25 + options += '<option value="'+d.businessCode+'">'+d.businessName+'</option>';
  26 +
  27 + });
  28 +
  29 + // 填充分公司下拉框options
  30 + $('#brancheCompanySelect').html(options);
  31 +
  32 + return cb && cb();
  33 +
  34 + });
  35 +
  36 + } else {
  37 +
  38 + // 填充分公司下拉框options
  39 + $('#brancheCompanySelect').html(options);
  40 +
  41 + return cb && cb();
  42 + }
  43 +
  44 + }
  45 +
  46 + // 填充公司下拉框
  47 + function selectTemp(callback) {
  48 +
  49 + // 填充公司下拉框选择值
  50 + $.get('/business/all', {upCode_eq: '77'}, function(array){
  51 +
  52 + // 公司下拉options属性值
  53 + var options = '<option value="">-- 请选择公司 --</option>';
  54 +
  55 + // 遍历array
  56 + $.each(array, function(i,d){
  57 +
  58 + options += '<option value="'+d.businessCode+'">'+d.businessName+'</option>';
  59 +
  60 + });
  61 +
  62 + // 填充公司下拉框options
  63 + $('#companySelect').html(options);
  64 +
  65 + callback && callback();
  66 +
  67 + });
  68 + }
  69 +
3 70 // 获取参数ID
4 71 var lineId = $.url().param('no');
5 72  
... ... @@ -30,12 +97,12 @@ $(function(){
30 97 $('#companySelect').val(result.company);
31 98  
32 99 // 填充分公司下拉框选择值
33   - /*getbrancheCompanyValues(result.company,function(){
  100 + getbrancheCompanyValues(result.company,function(){
34 101  
35 102 // 设置分公司
36 103 $('#brancheCompanySelect').val(result.brancheCompany);
37 104  
38   - });*/
  105 + });
39 106  
40 107 }
41 108  
... ... @@ -57,62 +124,4 @@ $(function(){
57 124  
58 125 }
59 126  
60   - // 填充公司下拉框
61   - function selectTemp(callback) {
62   -
63   - // 填充公司下拉框选择值
64   - $.get('/business/all', {upCode_eq: '77'}, function(array){
65   -
66   - // 公司下拉options属性值
67   - var options = '<option value="">-- 请选择公司 --</option>';
68   -
69   - // 遍历array
70   - $.each(array, function(i,d){
71   -
72   - options += '<option value="'+d.businessCode+'">'+d.businessName+'</option>';
73   -
74   - });
75   -
76   - // 填充公司下拉框options
77   - $('#companySelect').html(options);
78   -
79   - callback && callback();
80   -
81   - });
82   - }
83   -
84   -
85   - // 填充分公司下拉框选择值
86   - function getbrancheCompanyValues(businessCode,cb){
87   -
88   - // 分公司下拉框options属性值
89   - var options = '<option value="">-- 请选择分公司 --</option>';
90   -
91   - if(businessCode) {
92   -
93   - $get('/business/all', {upCode_eq: businessCode}, function(brancheCompany){
94   -
95   - // 遍历brancheCompany
96   - $.each(brancheCompany, function(i,d){
97   -
98   - options += '<option value="'+d.businessCode+'">'+d.businessName+'</option>';
99   -
100   - });
101   -
102   - // 填充分公司下拉框options
103   - $('#brancheCompanySelect').html(options);
104   -
105   - return cb && cb();
106   -
107   - });
108   -
109   - } else {
110   -
111   - // 填充分公司下拉框options
112   - $('#brancheCompanySelect').html(options);
113   -
114   - return cb && cb();
115   - }
116   -
117   - }
118 127 });
119 128 \ No newline at end of file
... ...
src/main/resources/static/pages/base/line/js/line-edit-form.js
  1 +/**
  2 + * @description TODO(线路信息修改片段JS模块)
  3 + *
  4 + * @author bsth@lq
  5 + *
  6 + * @date 二〇一六年十月十八日 13:31:58
  7 + *
  8 + */
  9 +
  10 +
1 11 !function(){
2 12  
3   - // 日期控件
4   - $('#startStationFirstTimeInput').datetimepicker({
5   -
6   - format : 'HH:mm',
7   -
8   - locale: 'zh-cn',
9   - });
  13 + /** 开辟日期 日期控件 <format:日期控件时间格式;locale:语言> */
  14 + $('#openDateInput').datetimepicker({format : 'YYYY-MM-DD', locale: 'zh-cn'});
10 15  
11   - // 日期控件
12   - $('#StartStationEndTimeInput').datetimepicker({
13   -
14   - format : 'HH:mm',
15   -
16   - locale: 'zh-cn',
17   - });
18   -
19   - // 日期控件
20   - $('#endStationFirstTimeInput').datetimepicker({
21   -
22   - format : 'HH:mm',
23   -
24   - locale: 'zh-cn',
25   - });
26   -
27   - // 日期控件
28   - $('#endStationEndTimeInput').datetimepicker({
29   -
30   - format : 'HH:mm',
31   -
32   - locale: 'zh-cn',
33   - });
34   -
35   - // 获取参数ID
36   - var lineId = $.url().param('no');
37   -
38   - // 如果参数ID不为空
39   - if(lineId) {
40   -
41   - // 获取线路Id元素并设值
42   - $('#lineId').val(lineId);
43   -
44   - // 初始化公司下拉框
45   - selectTemp(function(){
46   -
47   - /** 根据ID查询详细信息 */
48   - $get('/line/' + lineId ,null, function(result){
49   -
50   - // 如果不为空
51   - if(result) {
52   -
53   - // 定义日期格式
54   - var fs = 'YYYY-MM-DD'
55   -
56   - // 设置日期
57   - result.openDate = moment(result.openDate).format(fs);
58   -
59   - /** 填充修改线路表单元素值 @param:<result:数据结果集;line_edit_form:表单元素> */
60   - putFormData(result, '#line_edit_form');
61   -
62   - // 设置公司值
63   - $('#companySelect').val(result.company);
64   -
65   - // 填充分公司下拉框选择值
66   - /* getbrancheCompanyValues(result.company,function(){
67   -
68   - // 设置分公司
69   - $('#brancheCompanySelect').val(result.brancheCompany);
70   -
71   - });*/
72   -
73   - }
74   -
75   - });
76   - })
77   -
78   - } else {
79   -
80   - // 缺少ID
81   - layer.confirm('【ID缺失,请点击返回,重新进行修改操作】', {btn : [ '返回' ],icon: 3, title:'提示'}, function(index){
82   -
83   - // 关闭弹出层
84   - layer.close(index);
85   -
86   - // 跳转到list页面
87   - loadPage('list.html');
88   -
89   - });
90   - }
  16 + /** 起始站首班时间 日期控件 <format:日期控件时间格式;locale:语言> */
  17 + $('#startStationFirstTimeInput').datetimepicker({format : 'HH:mm', locale: 'zh-cn'});
  18 +
  19 + /** 起始站末班时间 日期控件 <format:日期控件时间格式;locale:语言> */
  20 + $('#endTimeInput').datetimepicker({format : 'HH:mm', locale: 'zh-cn'});
91 21  
92   - // 输入线路名称,自动生成英文名称和线路简称
93   - $('#nameInput').on('keyup', setPinYin);
  22 + /** 终点站首班时间 日期控件 <format:日期控件时间格式;locale:语言> */
  23 + $('#endStationFirstTimeInput').datetimepicker({format : 'HH:mm', locale: 'zh-cn'});
94 24  
  25 + /** 终点站末班时间 日期控件 <format:日期控件时间格式;locale:语言> */
  26 + $('#endStationEndTimeInput').datetimepicker({format : 'HH:mm',locale: 'zh-cn'});
  27 +
95 28 /** 根据线路名称值设置英文名称值和线路简称 */
96 29 function setPinYin(){
97 30  
... ... @@ -104,7 +37,6 @@
104 37 // 设置线路简称值
105 38 $('#shortNameInput').val(pinyin.getCamelChars(val));
106 39 }
107   -
108 40  
109 41 /** 公司下拉框 @param:<callback:回调函数> */
110 42 function selectTemp(callback) {
... ... @@ -129,7 +61,7 @@
129 61 });
130 62 }
131 63  
132   - // 填充分公司下拉框选择值
  64 + // 填充分公司下拉框选择值
133 65 function getbrancheCompanyValues(businessCode,cb){
134 66  
135 67 // 分公司下拉框options属性值
... ... @@ -163,11 +95,8 @@
163 95  
164 96 }
165 97  
166   - // 公司值改变事件
167   - // $('#companySelect').on('change',companySelectChangeSetBrancheValue);
168   -
169   - function companySelectChangeSetBrancheValue() {
170   -
  98 + function companySelectChangeSetBrancheValue() {
  99 +
171 100 // 获取公司下拉框选择值
172 101 var businessCode = $('#companySelect').val();
173 102  
... ... @@ -198,15 +127,69 @@
198 127 });
199 128 }
200 129 }
  130 +
  131 + // 获取参数ID
  132 + var lineId = $.url().param('no');
201 133  
202   - // 日期控件
203   - $('#openDateInput').datetimepicker({
204   -
205   - format : 'YYYY-MM-DD',
206   -
207   - locale: 'zh-cn'
208   -
209   - });
  134 + // 如果参数ID不为空
  135 + if(lineId) {
  136 +
  137 + // 获取线路Id元素并设值
  138 + $('#lineId').val(lineId);
  139 +
  140 + // 初始化公司下拉框
  141 + selectTemp(function(){
  142 +
  143 + /** 根据ID查询详细信息 */
  144 + $get('/line/' + lineId ,null, function(result){
  145 +
  146 + // 如果不为空
  147 + if(result) {
  148 +
  149 + // 定义日期格式
  150 + var fs = 'YYYY-MM-DD'
  151 +
  152 + // 设置日期
  153 + result.openDate = moment(result.openDate).format(fs);
  154 +
  155 + /** 填充修改线路表单元素值 @param:<result:数据结果集;line_edit_form:表单元素> */
  156 + putFormData(result, '#line_edit_form');
  157 +
  158 + // 设置公司值
  159 + $('#companySelect').val(result.company);
  160 +
  161 + // 填充分公司下拉框选择值
  162 + getbrancheCompanyValues(result.company,function(){
  163 +
  164 + // 设置分公司
  165 + $('#brancheCompanySelect').val(result.brancheCompany);
  166 +
  167 + });
  168 +
  169 + }
  170 +
  171 + });
  172 + })
  173 +
  174 + } else {
  175 +
  176 + // 缺少ID
  177 + layer.confirm('【ID缺失,请点击返回,重新进行修改操作】', {btn : [ '返回' ],icon: 3, title:'提示'}, function(index){
  178 +
  179 + // 关闭弹出层
  180 + layer.close(index);
  181 +
  182 + // 跳转到list页面
  183 + loadPage('list.html');
  184 +
  185 + });
  186 + }
  187 +
  188 + // 输入线路名称,自动生成英文名称和线路简称
  189 + $('#nameInput').on('keyup', setPinYin);
  190 +
  191 + // 公司值改变事件
  192 + $('#companySelect').on('change',companySelectChangeSetBrancheValue);
210 193  
211 194 // 定义表单
212 195 var form = $('#line_edit_form');
... ... @@ -285,6 +268,83 @@
285 268 dateISO:true
286 269 },
287 270  
  271 + // 起始站名称
  272 + 'startStationName' : {
  273 +
  274 + // 必填项
  275 + /*required : true,*/
  276 +
  277 + // 最大长度
  278 + maxlength: 30
  279 +
  280 + },
  281 +
  282 + // 终点站名称
  283 + 'endStationName' : {
  284 +
  285 + // 必填项
  286 + /*required : true,*/
  287 +
  288 + // 最大长度
  289 + maxlength: 30
  290 +
  291 + },
  292 +
  293 + // 线路规划类型 <0:双向;1:环线>
  294 + 'linePlayType' : {
  295 +
  296 + // 必填项
  297 + required : true,
  298 +
  299 + // 最大长度
  300 + maxlength: 30
  301 +
  302 + },
  303 +
  304 + // 起始站首班时间
  305 + 'startStationFirstTime' : {
  306 +
  307 + // 必填项
  308 + required : true,
  309 +
  310 + // 最大长度
  311 + maxlength: 30
  312 +
  313 + },
  314 +
  315 + // 起始站末班时间
  316 + 'StartStationEndTime' : {
  317 +
  318 + // 必填项
  319 + required : true,
  320 +
  321 + // 最大长度
  322 + maxlength: 30
  323 +
  324 + },
  325 +
  326 + // 终点站首班时间
  327 + 'endStationFirstTime' : {
  328 +
  329 + // 必填项
  330 + required : true,
  331 +
  332 + // 最大长度
  333 + maxlength: 30
  334 +
  335 + },
  336 +
  337 + // 终点站末班时间
  338 + 'endStationEndTime' : {
  339 +
  340 + // 必填项
  341 + required : true,
  342 +
  343 + // 最大长度
  344 + maxlength: 30
  345 +
  346 + },
  347 +
288 348 // 线路沿革
289 349 'history' : {
290 350  
... ...
src/main/resources/static/pages/base/line/js/line-list-table.js
... ... @@ -258,6 +258,31 @@
258 258 }
259 259 }
260 260  
  261 +
  262 + // 填充公司下拉框选择值
  263 + $get('/line/all', null, function(array){
  264 +
  265 + var opGroup = '<option value="">请选择...</option><optgroup label="线路">';
  266 +
  267 + var len_ = array.length;
  268 +
  269 + if(len_>0) {
  270 +
  271 + $.each(array, function(i, g){
  272 +
  273 + /*opGroup += '<option value="'+ g.id + '_' + g.lineCode +'">'+g.name+'</option>';*/
  274 + opGroup += '<option value="'+ g.name +'">'+g.name+'</option>';
  275 +
  276 + });
  277 +
  278 + }
  279 +
  280 + opGroup += '</optgroup>';
  281 +
  282 + $('#lineSelect').html(opGroup).select2();
  283 +
  284 + });
  285 +
261 286  
262 287 /** 生成行单,这里暂时只做了单选生成。 */
263 288 $('#datatable_ajax_tools #createUsingSingle').on('click', function() {
... ...
src/main/resources/static/pages/base/line/list.html
  1 +<!-- 片段标题 START -->
1 2 <div class="page-head">
2 3 <div class="page-title">
3 4 <h1>线路信息</h1>
4 5 </div>
5 6 </div>
  7 +<!-- 片段标题 END -->
6 8  
  9 +<!-- 线路信息导航栏组件 START -->
7 10 <ul class="page-breadcrumb breadcrumb">
8 11 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9 12 <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li>
10 13 <li><span class="active">线路信息</span></li>
11 14 </ul>
  15 +<!-- 线路信息导航栏组件 END -->
12 16  
13 17 <div class="row">
14 18 <div class="col-md-12">
... ... @@ -70,7 +74,8 @@
70 74 <input type="text" class="form-control form-filter input-sm" name="lineCode_eq">
71 75 </td>
72 76 <td>
73   - <input type="text" class="form-control form-filter input-sm" name="name_like">
  77 + <select name="name_like" class="form-control" style="width:100%" id="lineSelect"></select>
  78 + <!-- <input type="text" class="form-control form-filter input-sm" name="name_like"> -->
74 79 </td>
75 80 <td>
76 81 <!-- 公司这里没使用字典表,暂时查的公司表 -->
... ... @@ -291,5 +296,6 @@
291 296 </tr>
292 297 {{/if}}
293 298 </script>
294   -<script src="/pages/base/line/js/line-list-table.js"></script>
295   -<!-- <a href="/pages/base/stationroute/list.html?no={{obj.id}}" class="btn default blue-stripe btn-sm" data-pjax> 查看 </a> -->
296 299 \ No newline at end of file
  300 +
  301 +<!-- 线路信息片段JS模块 -->
  302 +<script src="/pages/base/line/js/line-list-table.js"></script>
297 303 \ No newline at end of file
... ...
src/main/resources/static/pages/base/lineinformation/add.html
  1 +<!-- 片段标题 START -->
1 2 <div class="page-head">
2 3 <div class="page-title">
3 4 <h1>添加线路标准信息</h1>
4 5 </div>
5 6 </div>
  7 +<!-- 片段标题 END -->
6 8  
  9 +<!-- 线路标准信息导航栏组件 START -->
7 10 <ul class="page-breadcrumb breadcrumb">
8 11 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9 12 <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li>
... ... @@ -11,445 +14,485 @@
11 14 <li><a href="/pages/base/line/lineinformation/lineinformation.html" class="lineinformation_back" data-pjax>线路标准信息</a> <i class="fa fa-circle"></i></li>
12 15 <li><span class="active">添加线路标准信息</span></li>
13 16 </ul>
  17 +<!-- 线路标准信息导航栏组件 END -->
14 18  
  19 +<!-- 信息容器组件 START -->
15 20 <div class="portlet light bordered">
16   - <!-- 标题 -->
  21 +
  22 + <!-- 信息容器组件标题 START -->
17 23 <div class="portlet-title">
18 24 <div class="caption">
19 25 <i class="icon-equalizer font-red-sunglo"></i>
20 26 <span class="caption-subject font-red-sunglo bold uppercase">添加线路标准信息</span>
21 27 </div>
22 28 </div>
  29 + <!-- 信息容器组件标题 END -->
23 30  
24   - <!-- 表单 -->
  31 + <!-- 表单容器组件 START -->
25 32 <div class="portlet-body form">
26 33  
27   - <!-- START FORM -->
  34 + <!-- lineinformation_add_form START FORM -->
28 35 <form action="/lineinformation" class="form-horizontal" id="lineinformation_add_form" >
29 36  
30   - <!-- 错误提示 -->
  37 + <!-- 表单验证错误提示组件 START -->
31 38 <div class="alert alert-danger display-hide">
32 39 <button class="close" data-close="alert"></button>
33 40 您的输入有误,请检查下面的输入项
34 41 </div>
  42 + <!-- 表单验证错误提示组件 END -->
35 43  
36   - <!-- 表单内容 -->
  44 + <!-- 表单字段内容 START -->
37 45 <div class="form-body">
38   -
39   - <!-- 线路信息ID -->
40   - <input type="hidden" name="line" id="lineIdInput">
41   -
42   - <!-- 线路标准信息类型 -->
  46 +
  47 + <!-- 表单分组组件 form-group START -->
43 48 <div class="form-group">
44   - <label class="control-label col-md-3">
45   - <span class="required"> * </span>线路标准信息类型:
46   - </label>
47   - <div class="col-md-4">
48   - <select name="type" class="form-control" id="typeInput">
49   - <option value="">-- 请选择类型 --</option>
50   - <option value="zc">正常</option>
51   - <option value="qj">区间</option>
52   - <option value="fk">放空</option>
53   - </select>
54   - </div>
55   - </div>
56   -
57   - <!-- 标准总里程 -->
58   - <div class="form-group">
59   - <label class="control-label col-md-3">标准总里程:</label>
60   - <div class="col-md-4">
61   - <input type="text" class="form-control" name="totalMileage" id="totalMileageInput" placeholder="标准总里程">
62   - <span class="help-block"> 单位:公里 </span>
63   - </div>
64   - </div>
65   -
66   - <!-- 空放里程 -->
67   - <div class="form-group">
68   - <label class="control-label col-md-3"> 空放里程: </label>
69   - <div class="col-md-4">
70   - <input type="text" class="form-control" name="emptyMileage" id="emptyMileageInput" placeholder="空放里程">
71   - <span class="help-block"> 单位:公里 </span>
72   - </div>
73   - </div>
74   -
75   - <!-- 上行里程 -->
76   - <div class="form-group">
77   - <label class="control-label col-md-3">上行里程:</label>
78   - <div class="col-md-4">
79   - <input type="text" class="form-control" name="upMileage" id="upMileageInput" placeholder="上行里程">
80   - <span class="help-block"> 单位:公里 </span>
81   - </div>
82   - </div>
83   -
84   - <!-- 下行里程 -->
85   - <div class="form-group">
86   - <label class="control-label col-md-3">下行里程: </label>
87   - <div class="col-md-4">
88   - <input type="text" class="form-control" name="downMileage" id="downMileageInput" placeholder="下行里程">
89   - <span class="help-block"> 单位:公里 </span>
90   - </div>
91   - </div>
92   -
93   - <!-- 上行行驶时间 -->
94   - <div class="form-group">
95   - <label class="control-label col-md-3"> 上行行驶时间: </label>
96   - <div class="col-md-4">
97   - <input type="text" class="form-control" name="upTravelTime" id="upTravelTimeInput" placeholder="上行行驶时间">
98   - <span class="help-block"> 单位:分钟 </span>
99   - </div>
100   - </div>
101   -
102   - <!-- 下行行驶时间 -->
103   - <div class="form-group">
104   - <label class="control-label col-md-3"> 下行行驶时间: </label>
105   - <div class="col-md-4">
106   - <input type="text" class="form-control" name="downTravelTime" id="downTravelTimeInput" placeholder="下行行驶时间">
107   - <span class="help-block"> 单位:分钟 </span>
108   - </div>
109   - </div>
110   -
111   - <!-- 早高峰开始时间 -->
112   - <div class="form-group">
113   - <label class="control-label col-md-3"> 早高峰开始时间: </label>
114   - <div class="col-md-4">
115   - <input type="text" class="form-control" name="earlyStartTime" id="earlyStartTimeInput" placeholder="早高峰开始时间">
116   - <span class="help-block"> 格式:00:00 </span>
117   - </div>
118   - </div>
119   -
120   - <!-- 早高峰结束时间 -->
121   - <div class="form-group">
122   - <label class="control-label col-md-3"> 早高峰结束时间: </label>
123   - <div class="col-md-4">
124   - <input type="text" class="form-control" name="earlyEndTime" id="earlyEndTimeInput" placeholder="早高峰结束时间">
125   - <span class="help-block"> 格式:00:00 </span>
126   - </div>
127   - </div>
128   -
129   - <!-- 早高峰上行行驶时间 -->
130   - <div class="form-group">
131   - <label class="control-label col-md-3"> 早高峰上行行驶时间: </label>
132   - <div class="col-md-4">
133   - <input type="text" class="form-control" name="earlyUpTime" id="earlyUpTimeInput" placeholder="早高峰上行行驶时间">
134   - <span class="help-block"> 单位:分钟 </span>
135   - </div>
136   - </div>
137   -
138   - <!-- 早高峰下行行驶时间 -->
139   - <div class="form-group">
140   - <label class="control-label col-md-3"> 早高峰下行行驶时间: </label>
141   - <div class="col-md-4">
142   - <input type="text" class="form-control" name="earlyDownTime" id="earlyDownTimeInput" placeholder="早高峰下行行驶时间">
143   - <span class="help-block"> 单位:分钟 </span>
144   - </div>
145   - </div>
146   -
147   - <!-- 晚高峰开始时间 -->
148   - <div class="form-group">
149   - <label class="control-label col-md-3"> 晚高峰开始时间: </label>
150   - <div class="col-md-4">
151   - <input type="text" class="form-control" name="lateStartTime" id="lateStartTimeInput" placeholder="晚高峰开始时间">
152   - <span class="help-block"> 格式:00:00 </span>
153   - </div>
154   - </div>
155   -
156   - <!-- 晚高峰结束时间 -->
157   - <div class="form-group">
158   - <label class="control-label col-md-3"> 晚高峰结束时间: </label>
159   - <div class="col-md-4">
160   - <input type="text" class="form-control" name="lateEndTime" id="lateEndTimeInput" placeholder="晚高峰结束时间">
161   - <span class="help-block"> 格式:00:00 </span>
162   - </div>
163   - </div>
164   -
165   - <!-- 晚高峰上行行驶时间 -->
166   - <div class="form-group">
167   - <label class="control-label col-md-3"> 晚高峰上行行驶时间: </label>
168   - <div class="col-md-4">
169   - <input type="text" class="form-control" name="lateUpTime" id="lateUpTimeInput" placeholder="晚高峰上行行驶时间">
170   - <span class="help-block"> 单位:分钟 </span>
171   - </div>
172   - </div>
173   -
174   - <!-- 晚高峰下行行驶时间 -->
175   - <div class="form-group">
176   - <label class="control-label col-md-3"> 晚高峰下行行驶时间: </label>
177   - <div class="col-md-4">
178   - <input type="text" class="form-control" name="lateDownTime" id="lateDownTimeInput" placeholder="晚高峰下行行驶时间">
179   - <span class="help-block"> 单位:分钟 </span>
180   - </div>
181   - </div>
182   -
183   - <!-- 小夜高峰上行行驶时间 -->
184   - <div class="form-group">
185   - <label class="control-label col-md-3"> 小夜高峰上行行驶时间: </label>
186   - <div class="col-md-4">
187   - <input type="text" class="form-control" name="nightStartTime" id="nightStartTimeInput" placeholder="小夜高峰上行行驶时间">
188   - <span class="help-block"> 单位:分钟 </span>
189   - </div>
190   - </div>
191   -
192   - <!-- 小夜高峰下行行驶时间 -->
193   - <div class="form-group">
194   - <label class="control-label col-md-3"> 小夜高峰下行行驶时间: </label>
195   - <div class="col-md-4">
196   - <input type="text" class="form-control" name="nightEndTime" id="nightEndTimeInput" placeholder="晚高峰下行行驶时间">
197   - <span class="help-block"> 单位:分钟 </span>
198   - </div>
199   - </div>
200   -
201   - <!-- 低谷上行行驶时间 -->
202   - <div class="form-group">
203   - <label class="control-label col-md-3"> 低谷上行行驶时间: </label>
204   - <div class="col-md-4">
205   - <input type="text" class="form-control" name="troughUpTime" id="troughUpTimeInput" placeholder="低谷上行行驶时间">
206   - <span class="help-block"> 单位:分钟 </span>
207   - </div>
208   - </div>
209   -
210   - <!-- 低谷下行行驶时间 -->
211   - <div class="form-group">
212   - <label class="control-label col-md-3"> 低谷下行行驶时间: </label>
213   - <div class="col-md-4">
214   - <input type="text" class="form-control" name="troughDownTime" id="troughDownTimeInput" placeholder="低谷下行行驶时间">
215   - <span class="help-block"> 单位:分钟 </span>
216   - </div>
217   - </div>
218   -
219   - <!-- 停车场 -->
220   - <div class="form-group">
221   - <label class="control-label col-md-3"> 停车场 : </label>
222   - <div class="col-md-4">
223   - <select name="carPark" class="form-control" id="carParkSelect"></select>
224   - <!-- <input type="text" class="form-control" name="carPark" id="carParkInput" placeholder="停车场"> -->
225   - </div>
226   - </div>
227   - <!--
228   - 进场时间
229   - <div class="form-group">
230   - <label class="control-label col-md-3"> 进场时间 : </label>
231   - <div class="col-md-4">
232   - <input type="text" class="form-control" name="paradeTime" id="paradeTimeInput" placeholder="进场时间">
233   - <span class="help-block"> 描述:起点至停车场的时间 </span>
234   - </div>
235   - </div>
236   -
237   - 出场时间
238   - <div class="form-group">
239   - <label class="control-label col-md-3"> 出场时间 : </label>
240   - <div class="col-md-4">
241   - <input type="text" class="form-control" name="outTime" id="outTimeInput" placeholder="出场时间">
242   - <span class="help-block"> 描述:停车场至起点的时间 </span>
243   - </div>
244   - </div>
245   -
246   - 进场里程
247   - <div class="form-group">
248   - <label class="control-label col-md-3"> 进场里程 : </label>
249   - <div class="col-md-4">
250   - <input type="text" class="form-control" name="paradeMileage" id="paradeMileageInput" placeholder="进场里程">
251   - <span class="help-block"> 描述:起点至停车场的里程 </span>
252   - </div>
253   - </div> -->
254   -
255   -
256   - <!-- 上行进场时间 -->
257   - <div class="form-group">
258   - <label class="control-label col-md-3"> 上行进场时间 : </label>
259   - <div class="col-md-4">
260   - <input type="text" class="form-control" name="upInTimer" id="upInTimerInput" placeholder="上行进场时间">
261   - <span class="help-block"> 描述:上行起点至停车场的进场时间 </span>
262   - </div>
263   - </div>
264   -
265   - <!--上行出场时间 -->
266   - <div class="form-group">
267   - <label class="control-label col-md-3"> 上行出场时间 : </label>
268   - <div class="col-md-4">
269   - <input type="text" class="form-control" name="upOutTimer" id="upOutTimerInput" placeholder="上行出场时间">
270   - <span class="help-block"> 描述:上行起点至停车场的出场时间 </span>
271   - </div>
272   - </div>
273   -
274   - <!-- 下行进场时间 -->
275   - <div class="form-group">
276   - <label class="control-label col-md-3"> 下行进场时间 : </label>
277   - <div class="col-md-4">
278   - <input type="text" class="form-control" name="downInTimer" id="downInTimerInput" placeholder="下行进场时间">
279   - <span class="help-block"> 描述:下行起点至停车场的进场时间 </span>
280   - </div>
281   - </div>
282   -
283   - <!-- 下行出场时间 -->
284   - <div class="form-group">
285   - <label class="control-label col-md-3"> 下行出场时间: </label>
286   - <div class="col-md-4">
287   - <input type="text" class="form-control" name="downOutTimer" id="downOutTimerInput" placeholder="下行出场时间">
288   - <span class="help-block"> 描述:下行起点至停车场的出场时间 </span>
289   - </div>
290   - </div>
291   -
292   -
293   -
294   - <!-- 上行进场里程 -->
295   - <div class="form-group">
296   - <label class="control-label col-md-3"> 上行进场里程 : </label>
297   - <div class="col-md-4">
298   - <input type="text" class="form-control" name="upInMileage" id="upInMileageInput" placeholder="上行进场里程">
299   - <span class="help-block"> 描述:上行起点至停车场的进场里程 </span>
300   - </div>
301   - </div>
302   -
303   - <!-- 上行出场里程 -->
304   - <div class="form-group">
305   - <label class="control-label col-md-3"> 上行出场里程: </label>
306   - <div class="col-md-4">
307   - <input type="text" class="form-control" name="upOutMileage" id="upOutMileageInput" placeholder="上行出场里程">
308   - <span class="help-block"> 描述:上行起点至停车场的出场里程 </span>
309   - </div>
310   - </div>
311   -
312   - <!-- 下行进场里程 -->
313   - <div class="form-group">
314   - <label class="control-label col-md-3"> 下行进场里程 : </label>
315   - <div class="col-md-4">
316   - <input type="text" class="form-control" name="downInMileage" id="downInMileageInput" placeholder="下行进场里程">
317   - <span class="help-block"> 描述:下行起点至停车场的进场里程 </span>
318   - </div>
319   - </div>
320   -
321   - <!-- 下行出场里程 -->
322   - <div class="form-group">
323   - <label class="control-label col-md-3"> 下行出场里程: </label>
324   - <div class="col-md-4">
325   - <input type="text" class="form-control" name="downOutMileage" id="downOutMileageInput" placeholder="下行出场里程">
326   - <span class="help-block"> 描述:下行起点至停车场的出场里程 </span>
327   - </div>
328   - </div>
329   -
330   -
331   - <!--
332   - 出场里程
333   - <div class="form-group">
334   - <label class="control-label col-md-3"> 出场里程: </label>
335   - <div class="col-md-4">
336   - <input type="text" class="form-control" name="outMileage" id="outMileageInput" placeholder="出场里程">
337   - <span class="help-block"> 描述:停车场至起点的里程 </span>
338   - </div>
339   - </div> -->
340   -
341   - <!-- 早高峰大间隔 -->
342   - <div class="form-group">
343   - <label class="control-label col-md-3"> 早高峰大间隔: </label>
344   - <div class="col-md-4">
345   - <input type="text" class="form-control" name="earlyIntervalLg" id="earlyIntervalLgInput" placeholder="早高峰大间隔">
346   - </div>
347   - </div>
348   -
349   - <!-- 晚高峰大间隔 -->
350   - <div class="form-group">
351   - <label class="control-label col-md-3"> 晚高峰大间隔: </label>
352   - <div class="col-md-4">
353   - <input type="text" class="form-control" name="lateIntervalLg" id="lateIntervalLgInput" placeholder="晚高峰大间隔">
354   - </div>
355   - </div>
356   -
357   - <!-- 平时大间隔 -->
358   - <div class="form-group">
359   - <label class="control-label col-md-3"> 平时大间隔: </label>
360   - <div class="col-md-4">
361   - <input type="text" class="form-control" name="intervalLg" id="intervalLgInput" placeholder="平时大间隔">
362   - </div>
363   - </div>
364   -
365   - <!-- 限速(平时) -->
366   - <div class="form-group">
367   - <label class="control-label col-md-3"> 限速(平时): </label>
368   - <div class="col-md-4">
369   - <input type="text" class="form-control" name="speedLimit" id="speedLimitInput" placeholder="限速(平时)">
370   - </div>
371   - </div>
372   -
373   - <!-- 限速(雨天) -->
374   - <div class="form-group">
375   - <label class="control-label col-md-3"> 限速(雨天): </label>
376   - <div class="col-md-4">
377   - <input type="text" class="form-control" name="rainLimit" id="rainLimitInput" placeholder="限速(雨天)">
378   - </div>
379   - </div>
380   -
381   - <!-- 限速(大雾) -->
382   - <div class="form-group">
383   - <label class="control-label col-md-3"> 限速(大雾): </label>
384   - <div class="col-md-4">
385   - <input type="text" class="form-control" name="fogLimit" id="fogLimitInput" placeholder="限速(大雾)">
386   - </div>
387   - </div>
388   -
389   - <!-- 限速(冰雪) -->
390   - <div class="form-group">
391   - <label class="control-label col-md-3"> 限速(冰雪): </label>
392   - <div class="col-md-4">
393   - <input type="text" class="form-control" name="snowLimit" id="snowLimitInput" placeholder="限速(冰雪)">
394   - </div>
395   - </div>
396   -
397   - <!-- 限速(节庆) -->
398   - <div class="form-group">
399   - <label class="control-label col-md-3"> 限速(节庆): </label>
400   - <div class="col-md-4">
401   - <input type="text" class="form-control" name="festivalSpeedLimit" id="festivalSpeedLimitInput" placeholder="限速(节庆)">
402   - </div>
403   - </div>
404   -
405   - <!-- 滞站 -->
406   - <div class="form-group">
407   - <label class="control-label col-md-3"> 滞站: </label>
408   - <div class="col-md-4">
409   - <input type="text" class="form-control" name="lagStation" id="lagStationInput" placeholder="滞站">
410   - </div>
411   - </div>
412   -
413   - <!-- 越站 -->
414   - <div class="form-group">
415   - <label class="control-label col-md-3"> 越站: </label>
416   - <div class="col-md-4">
417   - <input type="text" class="form-control" name="skip" id="skipInput" placeholder="越站">
418   - </div>
419   - </div>
420   -
421   - <!-- 超速 -->
422   - <div class="form-group">
423   - <label class="control-label col-md-3"> 超速: </label>
424   - <div class="col-md-4">
425   - <input type="text" class="form-control" name="speeding" id="speedingInput" placeholder="超速">
426   - </div>
427   - </div>
428   -
429   - <!-- 串线 -->
430   - <div class="form-group">
431   - <label class="control-label col-md-3"> 串线: </label>
432   - <div class="col-md-4">
433   - <input type="text" class="form-control" name="crossedLine" id="crossedLineInput" placeholder="串线">
434   - </div>
435   - </div>
436   -
437   - <!-- 越界 -->
438   - <div class="form-group">
439   - <label class="control-label col-md-3"> 越界: </label>
440   - <div class="col-md-4">
441   - <input type="text" class="form-control" name="overflights" id="overflightsInput" placeholder="越界">
442   - </div>
443   - </div>
444   -
445   - <!-- 描述/说明 -->
446   - <div class="form-group">
447   - <label class="col-md-3 control-label">描述/说明:</label>
448   - <div class="col-md-4">
449   - <textarea class="form-control" rows="3" name="descriptions" id="descriptionsInput" placeholder="描述/说明"></textarea>
  49 + <!-- 线路名称 (* 必填项) START -->
  50 + <div class="col-md-6">
  51 + <label class="control-label col-md-5">
  52 + <span class="required"> * </span>线路名称:
  53 + </label>
  54 + <div class="col-md-4">
  55 + <select name="line" class="form-control" style="width:100%" id="lineSelect"></select>
  56 + <!-- <input type="text" class="form-control" name="lineName" id="lineNameInput" placeholder="线路名称"> -->
  57 + </div>
  58 + </div>
  59 + <!-- 线路名称 END -->
  60 +
  61 + <!-- 线路标准信息类型 (* 必填项) START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  62 + <div class="col-md-6">
  63 + <label class="control-label col-md-5">
  64 + <span class="required"> * </span>线路标准信息类型:
  65 + </label>
  66 + <div class="col-md-4">
  67 + <select name="type" class="form-control" id="typeInput">
  68 + <option value="">-- 请选择类型 --</option>
  69 + <option value="zc">正常</option>
  70 + <option value="qj">区间</option>
  71 + <option value="fk">放空</option>
  72 + </select>
  73 + </div>
  74 + </div>
  75 + <!-- 线路标准信息类型 END -->
  76 + </div>
  77 + <!-- 表单分组组件 form-group END -->
  78 +
  79 + <!-- 表单分组组件 form-group START -->
  80 + <div class="form-group">
  81 + <!-- 标准总里程 START -->
  82 + <div class="col-md-6">
  83 + <label class="control-label col-md-5">标准总里程:</label>
  84 + <div class="col-md-4">
  85 + <input type="text" class="form-control" name="totalMileage" id="totalMileageInput" placeholder="标准总里程">
  86 + <span class="help-block"> 单位:公里 </span>
  87 + </div>
  88 + </div>
  89 + <!-- 标准总里程 END -->
  90 +
  91 + <!-- 空放里程 START -->
  92 + <div class="col-md-6">
  93 + <label class="control-label col-md-5"> 空放里程: </label>
  94 + <div class="col-md-4">
  95 + <input type="text" class="form-control" name="emptyMileage" id="emptyMileageInput" placeholder="空放里程">
  96 + <span class="help-block"> 单位:公里 </span>
  97 + </div>
  98 + </div>
  99 + <!-- 空放里程 END -->
  100 + </div>
  101 + <!-- 表单分组组件 form-group END -->
  102 +
  103 + <!-- 表单分组组件 form-group START -->
  104 + <div class="form-group">
  105 + <!-- 上行里程 (* 必填项) START -->
  106 + <div class="col-md-6">
  107 + <label class="control-label col-md-5"><span class="required"> * </span>上行里程:</label>
  108 + <div class="col-md-4">
  109 + <input type="text" class="form-control" name="upMileage" id="upMileageInput" placeholder="上行里程">
  110 + <span class="help-block"> 单位:公里 </span>
  111 + </div>
  112 + </div>
  113 + <!-- 上行里程 END -->
  114 +
  115 + <!-- 下行里程 (* 必填项) START -->
  116 + <div class="col-md-6">
  117 + <label class="control-label col-md-5"><span class="required"> * </span>下行里程: </label>
  118 + <div class="col-md-4">
  119 + <input type="text" class="form-control" name="downMileage" id="downMileageInput" placeholder="下行里程">
  120 + <span class="help-block"> 单位:公里 </span>
  121 + </div>
  122 + </div>
  123 + <!-- 下行里程 END -->
  124 + </div>
  125 + <!-- 表单分组组件 form-group END -->
  126 +
  127 + <!-- 表单分组组件 form-group START -->
  128 + <div class="form-group">
  129 + <!-- 上行行驶时间 (* 必填项) START -->
  130 + <div class="col-md-6">
  131 + <label class="control-label col-md-5"><span class="required"> * </span> 上行行驶时间: </label>
  132 + <div class="col-md-4">
  133 + <input type="text" class="form-control" name="upTravelTime" id="upTravelTimeInput" placeholder="上行行驶时间">
  134 + <span class="help-block"> 单位:分钟 </span>
  135 + </div>
  136 + </div>
  137 + <!-- 上行行驶时间 END -->
  138 +
  139 + <!-- 下行行驶时间 (* 必填项) START -->
  140 + <div class="col-md-6">
  141 + <label class="control-label col-md-5"><span class="required"> * </span>下行行驶时间: </label>
  142 + <div class="col-md-4">
  143 + <input type="text" class="form-control" name="downTravelTime" id="downTravelTimeInput" placeholder="下行行驶时间">
  144 + <span class="help-block"> 单位:分钟 </span>
  145 + </div>
  146 + </div>
  147 + <!-- 下行行驶时间 END -->
  148 + </div>
  149 + <!-- 表单分组组件 form-group END -->
  150 +
  151 + <!-- 表单分组组件 form-group START -->
  152 + <div class="form-group">
  153 + <!-- 早高峰开始时间 START -->
  154 + <div class="col-md-6">
  155 + <label class="control-label col-md-5"> 早高峰开始时间: </label>
  156 + <div class="col-md-4">
  157 + <input type="text" class="form-control" name="earlyStartTime" id="earlyStartTimeInput" placeholder="早高峰开始时间">
  158 + <span class="help-block"> 格式:00:00 </span>
  159 + </div>
  160 + </div>
  161 + <!-- 早高峰开始时间 END -->
  162 +
  163 + <!-- 早高峰结束时间 START -->
  164 + <div class="col-md-6">
  165 + <label class="control-label col-md-5"> 早高峰结束时间: </label>
  166 + <div class="col-md-4">
  167 + <input type="text" class="form-control" name="earlyEndTime" id="earlyEndTimeInput" placeholder="早高峰结束时间">
  168 + <span class="help-block"> 格式:00:00 </span>
  169 + </div>
  170 + </div>
  171 + <!-- 早高峰结束时间 END -->
  172 + </div>
  173 + <!-- 表单分组组件 form-group END -->
  174 +
  175 + <!-- 表单分组组件 form-group START -->
  176 + <div class="form-group">
  177 + <!-- 晚高峰开始时间 START -->
  178 + <div class="col-md-6">
  179 + <label class="control-label col-md-5"> 晚高峰开始时间: </label>
  180 + <div class="col-md-4">
  181 + <input type="text" class="form-control" name="lateStartTime" id="lateStartTimeInput" placeholder="晚高峰开始时间">
  182 + <span class="help-block"> 格式:00:00 </span>
  183 + </div>
  184 + </div>
  185 + <!-- 晚高峰开始时间 END -->
  186 +
  187 + <!-- 晚高峰结束时间 START -->
  188 + <div class="col-md-6">
  189 + <label class="control-label col-md-5"> 晚高峰结束时间: </label>
  190 + <div class="col-md-4">
  191 + <input type="text" class="form-control" name="lateEndTime" id="lateEndTimeInput" placeholder="晚高峰结束时间">
  192 + <span class="help-block"> 格式:00:00 </span>
  193 + </div>
  194 + </div>
  195 + <!-- 晚高峰结束时间 END -->
  196 + </div>
  197 + <!-- 表单分组组件 form-group END -->
  198 +
  199 + <!-- 表单分组组件 form-group START -->
  200 + <div class="form-group">
  201 + <!-- 早高峰上行行驶时间 START -->
  202 + <div class="col-md-6">
  203 + <label class="control-label col-md-5"> 早高峰上行行驶时间: </label>
  204 + <div class="col-md-4">
  205 + <input type="text" class="form-control" name="earlyUpTime" id="earlyUpTimeInput" placeholder="早高峰上行行驶时间">
  206 + <span class="help-block"> 单位:分钟 </span>
  207 + </div>
  208 + </div>
  209 + <!-- 早高峰上行行驶时间 END -->
  210 +
  211 + <!-- 早高峰下行行驶时间 START -->
  212 + <div class="col-md-6">
  213 + <label class="control-label col-md-5"> 早高峰下行行驶时间: </label>
  214 + <div class="col-md-4">
  215 + <input type="text" class="form-control" name="earlyDownTime" id="earlyDownTimeInput" placeholder="早高峰下行行驶时间">
  216 + <span class="help-block"> 单位:分钟 </span>
  217 + </div>
  218 + </div>
  219 + <!-- 早高峰下行行驶时间 END -->
  220 + </div>
  221 + <!-- 表单分组组件 form-group END -->
  222 +
  223 + <!-- 表单分组组件 form-group START -->
  224 + <div class="form-group">
  225 + <!-- 晚高峰上行行驶时间 START -->
  226 + <div class="col-md-6">
  227 + <label class="control-label col-md-5"> 晚高峰上行行驶时间: </label>
  228 + <div class="col-md-4">
  229 + <input type="text" class="form-control" name="lateUpTime" id="lateUpTimeInput" placeholder="晚高峰上行行驶时间">
  230 + <span class="help-block"> 单位:分钟 </span>
  231 + </div>
  232 + </div>
  233 + <!-- 晚高峰上行行驶时间 END -->
  234 +
  235 + <!-- 晚高峰下行行驶时间 START -->
  236 + <div class="col-md-6">
  237 + <label class="control-label col-md-5"> 晚高峰下行行驶时间: </label>
  238 + <div class="col-md-4">
  239 + <input type="text" class="form-control" name="lateDownTime" id="lateDownTimeInput" placeholder="晚高峰下行行驶时间">
  240 + <span class="help-block"> 单位:分钟 </span>
  241 + </div>
  242 + </div>
  243 + <!-- 晚高峰下行行驶时间 END -->
  244 + </div>
  245 + <!-- 表单分组组件 form-group END -->
  246 +
  247 + <!-- 表单分组组件 form-group START -->
  248 + <div class="form-group">
  249 + <!-- 小夜高峰上行行驶时间 START -->
  250 + <div class="col-md-6">
  251 + <label class="control-label col-md-5"> 小夜高峰上行行驶时间: </label>
  252 + <div class="col-md-4">
  253 + <input type="text" class="form-control" name="nightStartTime" id="nightStartTimeInput" placeholder="小夜高峰上行行驶时间">
  254 + <span class="help-block"> 单位:分钟 </span>
  255 + </div>
  256 + </div>
  257 + <!-- 小夜高峰上行行驶时间 END -->
  258 +
  259 + <!-- 小夜高峰下行行驶时间 START -->
  260 + <div class="col-md-6">
  261 + <label class="control-label col-md-5"> 小夜高峰下行行驶时间: </label>
  262 + <div class="col-md-4">
  263 + <input type="text" class="form-control" name="nightEndTime" id="nightEndTimeInput" placeholder="晚高峰下行行驶时间">
  264 + <span class="help-block"> 单位:分钟 </span>
  265 + </div>
  266 + </div>
  267 + <!-- 小夜高峰下行行驶时间 END -->
  268 + </div>
  269 + <!-- 表单分组组件 form-group END -->
  270 +
  271 + <!-- 表单分组组件 form-group START -->
  272 + <div class="form-group">
  273 + <!-- 低谷上行行驶时间 START -->
  274 + <div class="col-md-6">
  275 + <label class="control-label col-md-5"> 低谷上行行驶时间: </label>
  276 + <div class="col-md-4">
  277 + <input type="text" class="form-control" name="troughUpTime" id="troughUpTimeInput" placeholder="低谷上行行驶时间">
  278 + <span class="help-block"> 单位:分钟 </span>
  279 + </div>
  280 + </div>
  281 + <!-- 低谷上行行驶时间 END -->
  282 +
  283 + <!-- 低谷下行行驶时间 START -->
  284 + <div class="col-md-6">
  285 + <label class="control-label col-md-5"> 低谷下行行驶时间: </label>
  286 + <div class="col-md-4">
  287 + <input type="text" class="form-control" name="troughDownTime" id="troughDownTimeInput" placeholder="低谷下行行驶时间">
  288 + <span class="help-block"> 单位:分钟 </span>
  289 + </div>
  290 + </div>
  291 + <!-- 低谷下行行驶时间 END -->
  292 + </div>
  293 + <!-- 表单分组组件 form-group END -->
  294 +
  295 + <!-- 表单分组组件 form-group START -->
  296 + <div class="form-group">
  297 + <!-- 停车场 START -->
  298 + <div class="col-md-6">
  299 + <label class="control-label col-md-5"><span class="required"> * </span> 停车场 : </label>
  300 + <div class="col-md-4">
  301 + <select name="carPark" class="form-control" id="carParkSelect"></select>
  302 + <!-- <input type="text" class="form-control" name="carPark" id="carParkInput" placeholder="停车场"> -->
  303 + </div>
  304 + </div>
  305 + <!-- 停车场 END -->
  306 +
  307 + <!-- 限速(平时)START -->
  308 + <div class="col-md-6">
  309 + <label class="control-label col-md-5"><span class="required"> * </span> 限速(平时): </label>
  310 + <div class="col-md-4">
  311 + <input type="text" class="form-control" name="speedLimit" id="speedLimitInput" placeholder="限速(平时)">
  312 + </div>
  313 + </div>
  314 + <!-- 限速(平时)END -->
  315 + </div>
  316 + <!-- 表单分组组件 form-group END -->
  317 +
  318 + <!-- 表单分组组件 form-group START -->
  319 + <div class="form-group">
  320 + <!-- 进场时间 START -->
  321 + <div class="col-md-6">
  322 + <label class="control-label col-md-5"> 进场时间 : </label>
  323 + <div class="col-md-4">
  324 + <input type="text" class="form-control" name="upInTimer" id="upInTimerInput" placeholder="上行进场时间">
  325 + <span class="help-block"> 描述:上行起点至停车场的进场时间 </span>
  326 + </div>
  327 + </div>
  328 + <!-- 进场时间 END -->
  329 +
  330 + <!-- 出场时间 START -->
  331 + <div class="col-md-6">
  332 + <label class="control-label col-md-5"> 出场时间 : </label>
  333 + <div class="col-md-4">
  334 + <input type="text" class="form-control" name="upOutTimer" id="upOutTimerInput" placeholder="上行出场时间">
  335 + <span class="help-block"> 描述:上行起点至停车场的出场时间 </span>
  336 + </div>
  337 + </div>
  338 + <!-- 出场时间 END -->
  339 + </div>
  340 + <!-- 表单分组组件 form-group END -->
  341 +
  342 + <!-- 表单分组组件 form-group START -->
  343 + <div class="form-group">
  344 + <!-- 进场里程 START -->
  345 + <div class="col-md-6">
  346 + <label class="control-label col-md-5"> 进场里程 : </label>
  347 + <div class="col-md-4">
  348 + <input type="text" class="form-control" name="upInMileage" id="upInMileageInput" placeholder="上行进场里程">
  349 + <span class="help-block"> 描述:上行起点至停车场的进场里程 </span>
  350 + </div>
  351 + </div>
  352 + <!-- 进场里程 END -->
  353 +
  354 + <!-- 出场里程 START -->
  355 + <div class="col-md-6">
  356 + <label class="control-label col-md-5"> 出场里程: </label>
  357 + <div class="col-md-4">
  358 + <input type="text" class="form-control" name="upOutMileage" id="upOutMileageInput" placeholder="上行出场里程">
  359 + <span class="help-block"> 描述:上行起点至停车场的出场里程 </span>
  360 + </div>
  361 + </div>
  362 + <!-- 出场里程 END -->
  363 + </div>
  364 + <!-- 表单分组组件 form-group END -->
  365 +
  366 + <!-- 表单分组组件 form-group START -->
  367 + <div class="form-group">
  368 + <!-- 进场时间2 START -->
  369 + <div class="col-md-6">
  370 + <label class="control-label col-md-5"> 进场时间2 : </label>
  371 + <div class="col-md-4">
  372 + <input type="text" class="form-control" name="downInTimer" id="downInTimerInput" placeholder="下行进场时间">
  373 + <span class="help-block"> 描述:下行起点至停车场的进场时间 </span>
  374 + </div>
  375 + </div>
  376 + <!-- 进场时间2 END -->
  377 +
  378 + <!-- 出场时间2 START -->
  379 + <div class="col-md-6">
  380 + <label class="control-label col-md-5"> 出场时间2: </label>
  381 + <div class="col-md-4">
  382 + <input type="text" class="form-control" name="downOutTimer" id="downOutTimerInput" placeholder="下行出场时间">
  383 + <span class="help-block"> 描述:下行起点至停车场的出场时间 </span>
  384 + </div>
  385 + </div>
  386 + <!-- 出场时间2 END -->
  387 + </div>
  388 + <!-- 表单分组组件 form-group END -->
  389 +
  390 + <!-- 表单分组组件 form-group START -->
  391 + <div class="form-group">
  392 + <!-- 进场里程2 START -->
  393 + <div class="col-md-6">
  394 + <label class="control-label col-md-5"> 进场里程2 : </label>
  395 + <div class="col-md-4">
  396 + <input type="text" class="form-control" name="downInMileage" id="downInMileageInput" placeholder="下行进场里程">
  397 + <span class="help-block"> 描述:下行起点至停车场的进场里程 </span>
  398 + </div>
  399 + </div>
  400 + <!-- 进场里程2 END -->
  401 +
  402 + <!-- 出场里程2 START -->
  403 + <div class="col-md-6">
  404 + <label class="control-label col-md-5"> 出场里程2: </label>
  405 + <div class="col-md-4">
  406 + <input type="text" class="form-control" name="downOutMileage" id="downOutMileageInput" placeholder="下行出场里程">
  407 + <span class="help-block"> 描述:下行起点至停车场的出场里程 </span>
  408 + </div>
  409 + </div>
  410 + <!-- 出场里程2 END -->
  411 + </div>
  412 + <!-- 表单分组组件 form-group END -->
  413 +
  414 + <!-- 表单分组组件 form-group START -->
  415 + <div class="form-group">
  416 + <!-- 越界 START -->
  417 + <div class="col-md-6">
  418 + <label class="control-label col-md-5"> 越界: </label>
  419 + <div class="col-md-4">
  420 + <input type="text" class="form-control" name="overflights" id="overflightsInput" placeholder="越界">
  421 + </div>
  422 + </div>
  423 + <!-- 越界 END -->
  424 +
  425 + <!-- 大间隔(平时)START -->
  426 + <div class="col-md-6">
  427 + <label class="control-label col-md-5"> 大间隔(平时): </label>
  428 + <div class="col-md-4">
  429 + <input type="text" class="form-control" name="intervalLg" id="intervalLgInput" placeholder="平时大间隔">
  430 + </div>
  431 + </div>
  432 + <!-- 大间隔(平时)END -->
  433 + </div>
  434 + <!-- 表单分组组件 form-group END -->
  435 +
  436 + <!-- 表单分组组件 form-group START -->
  437 + <div class="form-group">
  438 + <!-- 滞站 START -->
  439 + <div class="col-md-6">
  440 + <label class="control-label col-md-5"> 滞站: </label>
  441 + <div class="col-md-4">
  442 + <input type="text" class="form-control" name="lagStation" id="lagStationInput" placeholder="滞站">
  443 + </div>
  444 + </div>
  445 + <!-- 滞站 END -->
  446 +
  447 + <!-- 越站 START -->
  448 + <div class="col-md-6">
  449 + <label class="control-label col-md-5"> 越站: </label>
  450 + <div class="col-md-4">
  451 + <input type="text" class="form-control" name="skip" id="skipInput" placeholder="越站">
  452 + </div>
  453 + </div>
  454 + <!-- 越站 END -->
  455 + </div>
  456 + <!-- 表单分组组件 form-group END -->
  457 +
  458 + <!-- 表单分组组件 form-group START -->
  459 + <div class="form-group">
  460 + <!-- 超速 START -->
  461 + <div class="col-md-6">
  462 + <label class="control-label col-md-5"><span class="required"> * </span> 超速: </label>
  463 + <div class="col-md-4">
  464 + <input type="text" class="form-control" name="speeding" id="speedingInput" placeholder="超速">
  465 + </div>
  466 + </div>
  467 + <!-- 超速 END -->
  468 +
  469 + <!-- 串线 START -->
  470 + <div class="col-md-6">
  471 + <label class="control-label col-md-5"> 串线: </label>
  472 + <div class="col-md-4">
  473 + <input type="text" class="form-control" name="crossedLine" id="crossedLineInput" placeholder="串线">
  474 + </div>
  475 + </div>
  476 + <!-- 串线 END -->
  477 + </div>
  478 + <!-- 表单分组组件 form-group END -->
  479 +
  480 + <!-- 表单分组组件 form-group START -->
  481 + <div class="form-group">
  482 + <!-- 描述/说明 START -->
  483 + <div class="col-md-6">
  484 + <label class="col-md-5 control-label">描述/说明:</label>
  485 + <div class="col-md-6">
  486 + <textarea class="form-control" rows="3" name="descriptions" id="descriptionsInput" placeholder="描述/说明"></textarea>
  487 + </div>
450 488 </div>
451   - </div>
  489 + <!-- 描述/说明 END -->
  490 + </div>
  491 + <!-- 表单分组组件 form-group END -->
452 492 </div>
  493 + <!-- 表单字段内容 END -->
  494 +
  495 + <!-- 表单按钮组件 START -->
453 496 <div class="form-actions">
454 497 <div class="row">
455 498 <div class="col-md-offset-3 col-md-4">
... ... @@ -458,7 +501,13 @@
458 501 </div>
459 502 </div>
460 503 </div>
  504 + <!-- 表单按钮组件 END -->
461 505 </form>
  506 + <!-- lineinformation_add_form FORM END -->
462 507 </div>
  508 + <!-- 表单组件 END -->
463 509 </div>
  510 +<!-- 信息容器组件 END -->
  511 +
  512 +<!-- 线路标准信息添加片段JS模块 -->
464 513 <script src="/pages/base/lineinformation/js/lineinformation-add-form.js"></script>
465 514 \ No newline at end of file
... ...
src/main/resources/static/pages/base/lineinformation/details.html
  1 +<!-- 片段标题 START -->
1 2 <div class="page-head">
2 3 <div class="page-title">
3 4 <h1>线路标准信息详情</h1>
4 5 </div>
5 6 </div>
  7 +<!-- 片段标题 END -->
6 8  
  9 +<!-- 线路标准信息详情导航栏组件 START -->
7 10 <ul class="page-breadcrumb breadcrumb">
8 11 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9 12 <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li>
... ... @@ -11,450 +14,484 @@
11 14 <li><a href="/pages/base/lineinformation/list.html" class="back-up" data-pjax>线路标准信息</a> <i class="fa fa-circle"></i></li>
12 15 <li><span class="active">线路标准信息详情</span></li>
13 16 </ul>
  17 +<!-- 线路标准信息详情导航栏组件 END -->
14 18  
  19 +<!-- 信息容器组件 START -->
15 20 <div class="portlet light bordered">
16 21  
17   - <!-- 标题 -->
  22 + <!-- 信息容器组件标题 START -->
18 23 <div class="portlet-title">
19 24 <div class="caption">
20 25 <i class="icon-equalizer font-red-sunglo"></i>
21 26 <span class="caption-subject font-red-sunglo bold uppercase">线路标准信息详情</span>
22 27 </div>
23 28 </div>
  29 + <!-- 信息容器组件标题 END -->
24 30  
25   - <!-- 表单 -->
  31 + <!-- 表单容器组件 START -->
26 32 <div class="portlet-body form">
27 33  
28 34 <!-- START FORM -->
29 35 <form action="/lineinformation" class="form-horizontal" id="lineinformation_details_form" >
30 36  
31   - <!-- 错误提示 -->
  37 + <!-- 表单验证错误提示组件 START -->
32 38 <div class="alert alert-danger display-hide">
33 39 <button class="close" data-close="alert"></button>
34 40 您的输入有误,请检查下面的输入项
35 41 </div>
  42 + <!-- 表单验证错误提示组件 END -->
36 43  
37   - <!-- 表单内容 -->
  44 + <!-- 表单字段内容 START -->
38 45 <div class="form-body">
39   -
40   - <!-- 线路信息ID -->
41   - <input type="hidden" name="line" id="lineIdInput">
42   -
43   - <!-- 线路标准信息类型 -->
  46 +
  47 + <!-- 表单分组组件 form-group START -->
44 48 <div class="form-group">
45   - <label class="control-label col-md-3">
46   - <span class="required"> * </span>线路标准信息类型:
47   - </label>
48   - <div class="col-md-4">
49   - <select name="type" class="form-control" id="typeInput">
50   - <option value="">-- 请选择类型 --</option>
51   - <option value="zc">正常</option>
52   - <option value="qj">区间</option>
53   - <option value="fk">放空</option>
54   - </select>
55   - </div>
56   - </div>
57   -
58   - <!-- 标准总里程 -->
59   - <div class="form-group">
60   - <label class="control-label col-md-3">
61   - <span class="required"> * </span>标准总里程:
62   - </label>
63   - <div class="col-md-4">
64   - <input type="text" class="form-control" name="totalMileage" id="totalMileageInput" placeholder="标准总里程">
65   - <span class="help-block"> 单位:公里 </span>
66   - </div>
67   - </div>
68   -
69   - <!-- 空放里程 -->
70   - <div class="form-group">
71   - <label class="control-label col-md-3"> 空放里程: </label>
72   - <div class="col-md-4">
73   - <input type="text" class="form-control" name="emptyMileage" id="emptyMileageInput" placeholder="空放里程">
74   - <span class="help-block"> 单位:公里 </span>
75   - </div>
76   - </div>
77   -
78   - <!-- 上行里程 -->
79   - <div class="form-group">
80   - <label class="control-label col-md-3">
81   - <span class="required"> * </span>上行里程:
82   - </label>
83   - <div class="col-md-4">
84   - <input type="text" class="form-control" name="upMileage" id="upMileageInput" placeholder="上行里程">
85   - <span class="help-block"> 单位:公里 </span>
86   - </div>
87   - </div>
88   -
89   - <!-- 下行里程 -->
90   - <div class="form-group">
91   - <label class="control-label col-md-3">
92   - <span class="required"> * </span>下行里程:
93   - </label>
94   - <div class="col-md-4">
95   - <input type="text" class="form-control" name="downMileage" id="downMileageInput" placeholder="下行里程">
96   - <span class="help-block"> 单位:公里 </span>
97   - </div>
98   - </div>
99   -
100   - <!-- 上行行驶时间 -->
101   - <div class="form-group">
102   - <label class="control-label col-md-3"> 上行行驶时间: </label>
103   - <div class="col-md-4">
104   - <input type="text" class="form-control" name="upTravelTime" id="upTravelTimeInput" placeholder="上行行驶时间">
105   - <span class="help-block"> 单位:分钟 </span>
106   - </div>
107   - </div>
108   -
109   - <!-- 下行行驶时间 -->
110   - <div class="form-group">
111   - <label class="control-label col-md-3"> 下行行驶时间: </label>
112   - <div class="col-md-4">
113   - <input type="text" class="form-control" name="downTravelTime" id="downTravelTimeInput" placeholder="下行行驶时间">
114   - <span class="help-block"> 单位:分钟 </span>
115   - </div>
116   - </div>
117   -
118   - <!-- 早高峰开始时间 -->
119   - <div class="form-group">
120   - <label class="control-label col-md-3"> 早高峰开始时间: </label>
121   - <div class="col-md-4">
122   - <input type="text" class="form-control" name="earlyStartTime" id="earlyStartTimeInput" placeholder="早高峰开始时间">
123   - <span class="help-block"> 格式:00:00 </span>
124   - </div>
125   - </div>
126   -
127   - <!-- 早高峰结束时间 -->
128   - <div class="form-group">
129   - <label class="control-label col-md-3"> 早高峰结束时间: </label>
130   - <div class="col-md-4">
131   - <input type="text" class="form-control" name="earlyEndTime" id="earlyEndTimeInput" placeholder="早高峰结束时间">
132   - <span class="help-block"> 格式:00:00 </span>
133   - </div>
134   - </div>
135   -
136   - <!-- 早高峰上行行驶时间 -->
137   - <div class="form-group">
138   - <label class="control-label col-md-3"> 早高峰上行行驶时间: </label>
139   - <div class="col-md-4">
140   - <input type="text" class="form-control" name="earlyUpTime" id="earlyUpTimeInput" placeholder="早高峰上行行驶时间">
141   - <span class="help-block"> 单位:分钟 </span>
142   - </div>
143   - </div>
144   -
145   - <!-- 早高峰下行行驶时间 -->
146   - <div class="form-group">
147   - <label class="control-label col-md-3"> 早高峰下行行驶时间: </label>
148   - <div class="col-md-4">
149   - <input type="text" class="form-control" name="earlyDownTime" id="earlyDownTimeInput" placeholder="早高峰下行行驶时间">
150   - <span class="help-block"> 单位:分钟 </span>
151   - </div>
152   - </div>
153   -
154   - <!-- 晚高峰开始时间 -->
155   - <div class="form-group">
156   - <label class="control-label col-md-3"> 晚高峰开始时间: </label>
157   - <div class="col-md-4">
158   - <input type="text" class="form-control" name="lateStartTime" id="lateStartTimeInput" placeholder="晚高峰开始时间">
159   - <span class="help-block"> 格式:00:00 </span>
160   - </div>
161   - </div>
162   -
163   - <!-- 晚高峰结束时间 -->
164   - <div class="form-group">
165   - <label class="control-label col-md-3"> 晚高峰结束时间: </label>
166   - <div class="col-md-4">
167   - <input type="text" class="form-control" name="lateEndTime" id="lateEndTimeInput" placeholder="晚高峰结束时间">
168   - <span class="help-block"> 格式:00:00 </span>
169   - </div>
170   - </div>
171   -
172   - <!-- 晚高峰上行行驶时间 -->
173   - <div class="form-group">
174   - <label class="control-label col-md-3"> 晚高峰上行行驶时间: </label>
175   - <div class="col-md-4">
176   - <input type="text" class="form-control" name="lateUpTime" id="lateUpTimeInput" placeholder="晚高峰上行行驶时间">
177   - <span class="help-block"> 单位:分钟 </span>
178   - </div>
179   - </div>
180   -
181   - <!-- 晚高峰下行行驶时间 -->
182   - <div class="form-group">
183   - <label class="control-label col-md-3"> 晚高峰下行行驶时间: </label>
184   - <div class="col-md-4">
185   - <input type="text" class="form-control" name="lateDownTime" id="lateDownTimeInput" placeholder="晚高峰下行行驶时间">
186   - <span class="help-block"> 单位:分钟 </span>
187   - </div>
188   - </div>
189   -
190   - <!-- 小夜高峰上行行驶时间 -->
191   - <div class="form-group">
192   - <label class="control-label col-md-3"> 小夜高峰上行行驶时间: </label>
193   - <div class="col-md-4">
194   - <input type="text" class="form-control" name="nightStartTime" id="nightStartTimeInput" placeholder="小夜高峰上行行驶时间">
195   - <span class="help-block"> 单位:分钟 </span>
196   - </div>
197   - </div>
198   -
199   - <!-- 小夜高峰下行行驶时间 -->
200   - <div class="form-group">
201   - <label class="control-label col-md-3"> 小夜高峰下行行驶时间: </label>
202   - <div class="col-md-4">
203   - <input type="text" class="form-control" name="nightEndTime" id="nightEndTimeInput" placeholder="晚高峰下行行驶时间">
204   - <span class="help-block"> 单位:分钟 </span>
205   - </div>
206   - </div>
207   -
208   - <!-- 低谷上行行驶时间 -->
209   - <div class="form-group">
210   - <label class="control-label col-md-3"> 低谷上行行驶时间: </label>
211   - <div class="col-md-4">
212   - <input type="text" class="form-control" name="troughUpTime" id="troughUpTimeInput" placeholder="低谷上行行驶时间">
213   - <span class="help-block"> 单位:分钟 </span>
214   - </div>
215   - </div>
216   -
217   - <!-- 低谷下行行驶时间 -->
218   - <div class="form-group">
219   - <label class="control-label col-md-3"> 低谷下行行驶时间: </label>
220   - <div class="col-md-4">
221   - <input type="text" class="form-control" name="troughDownTime" id="troughDownTimeInput" placeholder="低谷下行行驶时间">
222   - <span class="help-block"> 单位:分钟 </span>
223   - </div>
224   - </div>
225   -
226   - <!-- 停车场 -->
227   - <div class="form-group">
228   - <label class="control-label col-md-3"> 停车场 : </label>
229   - <div class="col-md-4">
230   - <select name="carPark" class="form-control" id="carParkSelect"></select>
231   - <!-- <input type="text" class="form-control" name="carPark" id="carParkInput" placeholder="停车场"> -->
232   - </div>
233   - </div>
234   - <!--
235   - 进场时间
236   - <div class="form-group">
237   - <label class="control-label col-md-3"> 进场时间 : </label>
238   - <div class="col-md-4">
239   - <input type="text" class="form-control" name="paradeTime" id="paradeTimeInput" placeholder="进场时间">
240   - <span class="help-block"> 描述:起点至停车场的时间 </span>
241   - </div>
242   - </div>
243   -
244   - 出场时间
245   - <div class="form-group">
246   - <label class="control-label col-md-3"> 出场时间 : </label>
247   - <div class="col-md-4">
248   - <input type="text" class="form-control" name="outTime" id="outTimeInput" placeholder="出场时间">
249   - <span class="help-block"> 描述:停车场至起点的时间 </span>
250   - </div>
251   - </div> -->
252   -
253   -
254   - <!-- 上行进场时间 -->
255   - <div class="form-group">
256   - <label class="control-label col-md-3"> 上行进场时间 : </label>
257   - <div class="col-md-4">
258   - <input type="text" class="form-control" name="upInTimer" id="upInTimerInput" placeholder="上行进场时间">
259   - <span class="help-block"> 描述:上行起点至停车场的进场时间 </span>
260   - </div>
261   - </div>
262   -
263   - <!--上行出场时间 -->
264   - <div class="form-group">
265   - <label class="control-label col-md-3"> 上行出场时间 : </label>
266   - <div class="col-md-4">
267   - <input type="text" class="form-control" name="upOutTimer" id="upOutTimerInput" placeholder="上行出场时间">
268   - <span class="help-block"> 描述:上行起点至停车场的出场时间 </span>
269   - </div>
270   - </div>
271   -
272   - <!-- 下行进场时间 -->
273   - <div class="form-group">
274   - <label class="control-label col-md-3"> 下行进场时间 : </label>
275   - <div class="col-md-4">
276   - <input type="text" class="form-control" name="downInTimer" id="downInTimerInput" placeholder="下行进场时间">
277   - <span class="help-block"> 描述:下行起点至停车场的进场时间 </span>
278   - </div>
279   - </div>
280   -
281   - <!-- 下行出场时间 -->
282   - <div class="form-group">
283   - <label class="control-label col-md-3"> 下行出场时间: </label>
284   - <div class="col-md-4">
285   - <input type="text" class="form-control" name="downOutTimer" id="downOutTimerInput" placeholder="下行出场时间">
286   - <span class="help-block"> 描述:下行起点至停车场的出场时间 </span>
287   - </div>
288   - </div>
289   -
290   -
291   -
292   - <!-- 上行进场里程 -->
293   - <div class="form-group">
294   - <label class="control-label col-md-3"> 上行进场里程 : </label>
295   - <div class="col-md-4">
296   - <input type="text" class="form-control" name="upInMileage" id="upInMileageInput" placeholder="上行进场里程">
297   - <span class="help-block"> 描述:上行起点至停车场的进场里程 </span>
298   - </div>
299   - </div>
300   -
301   - <!-- 上行出场里程 -->
302   - <div class="form-group">
303   - <label class="control-label col-md-3"> 上行出场里程: </label>
304   - <div class="col-md-4">
305   - <input type="text" class="form-control" name="upOutMileage" id="upOutMileageInput" placeholder="上行出场里程">
306   - <span class="help-block"> 描述:上行起点至停车场的出场里程 </span>
307   - </div>
308   - </div>
309   -
310   - <!-- 下行进场里程 -->
311   - <div class="form-group">
312   - <label class="control-label col-md-3"> 下行进场里程 : </label>
313   - <div class="col-md-4">
314   - <input type="text" class="form-control" name="downInMileage" id="downInMileageInput" placeholder="下行进场里程">
315   - <span class="help-block"> 描述:下行起点至停车场的进场里程 </span>
316   - </div>
317   - </div>
318   -
319   - <!-- 下行出场里程 -->
320   - <div class="form-group">
321   - <label class="control-label col-md-3"> 下行出场里程: </label>
322   - <div class="col-md-4">
323   - <input type="text" class="form-control" name="downOutMileage" id="downOutMileageInput" placeholder="下行出场里程">
324   - <span class="help-block"> 描述:下行起点至停车场的出场里程 </span>
325   - </div>
326   - </div>
327   - <!--
328   - 进场里程
329   - <div class="form-group">
330   - <label class="control-label col-md-3"> 进场里程 : </label>
331   - <div class="col-md-4">
332   - <input type="text" class="form-control" name="paradeMileage" id="paradeMileageInput" placeholder="进场里程">
333   - <span class="help-block"> 描述:起点至停车场的里程 </span>
334   - </div>
335   - </div>
336   -
337   - 出场里程
338   - <div class="form-group">
339   - <label class="control-label col-md-3"> 出场里程: </label>
340   - <div class="col-md-4">
341   - <input type="text" class="form-control" name="outMileage" id="outMileageInput" placeholder="出场里程">
342   - <span class="help-block"> 描述:停车场至起点的里程 </span>
343   - </div>
344   - </div>
345   - -->
346   - <!-- 早高峰大间隔 -->
347   - <div class="form-group">
348   - <label class="control-label col-md-3"> 早高峰大间隔: </label>
349   - <div class="col-md-4">
350   - <input type="text" class="form-control" name="earlyIntervalLg" id="earlyIntervalLgInput" placeholder="早高峰大间隔">
351   - </div>
352   - </div>
353   -
354   - <!-- 晚高峰大间隔 -->
355   - <div class="form-group">
356   - <label class="control-label col-md-3"> 晚高峰大间隔: </label>
357   - <div class="col-md-4">
358   - <input type="text" class="form-control" name="lateIntervalLg" id="lateIntervalLgInput" placeholder="晚高峰大间隔">
359   - </div>
360   - </div>
361   -
362   - <!-- 平时大间隔 -->
363   - <div class="form-group">
364   - <label class="control-label col-md-3"> 平时大间隔: </label>
365   - <div class="col-md-4">
366   - <input type="text" class="form-control" name="intervalLg" id="intervalLgInput" placeholder="平时大间隔">
367   - </div>
368   - </div>
369   -
370   - <!-- 限速(平时) -->
371   - <div class="form-group">
372   - <label class="control-label col-md-3"> 限速(平时): </label>
373   - <div class="col-md-4">
374   - <input type="text" class="form-control" name="speedLimit" id="speedLimitInput" placeholder="限速(平时)">
375   - </div>
376   - </div>
377   -
378   - <!-- 限速(雨天) -->
379   - <div class="form-group">
380   - <label class="control-label col-md-3"> 限速(雨天): </label>
381   - <div class="col-md-4">
382   - <input type="text" class="form-control" name="rainLimit" id="rainLimitInput" placeholder="限速(雨天)">
383   - </div>
384   - </div>
385   -
386   - <!-- 限速(大雾) -->
387   - <div class="form-group">
388   - <label class="control-label col-md-3"> 限速(大雾): </label>
389   - <div class="col-md-4">
390   - <input type="text" class="form-control" name="fogLimit" id="fogLimitInput" placeholder="限速(大雾)">
391   - </div>
392   - </div>
393   -
394   - <!-- 限速(冰雪) -->
395   - <div class="form-group">
396   - <label class="control-label col-md-3"> 限速(冰雪): </label>
397   - <div class="col-md-4">
398   - <input type="text" class="form-control" name="snowLimit" id="snowLimitInput" placeholder="限速(冰雪)">
399   - </div>
400   - </div>
401   -
402   - <!-- 限速(节庆) -->
403   - <div class="form-group">
404   - <label class="control-label col-md-3"> 限速(节庆): </label>
405   - <div class="col-md-4">
406   - <input type="text" class="form-control" name="festivalSpeedLimit" id="festivalSpeedLimitInput" placeholder="限速(节庆)">
407   - </div>
408   - </div>
409   -
410   - <!-- 滞站 -->
411   - <div class="form-group">
412   - <label class="control-label col-md-3"> 滞站: </label>
413   - <div class="col-md-4">
414   - <input type="text" class="form-control" name="lagStation" id="lagStationInput" placeholder="滞站">
415   - </div>
416   - </div>
417   -
418   - <!-- 越站 -->
419   - <div class="form-group">
420   - <label class="control-label col-md-3"> 越站: </label>
421   - <div class="col-md-4">
422   - <input type="text" class="form-control" name="skip" id="skipInput" placeholder="越站">
423   - </div>
424   - </div>
425   -
426   - <!-- 超速 -->
427   - <div class="form-group">
428   - <label class="control-label col-md-3"> 超速: </label>
429   - <div class="col-md-4">
430   - <input type="text" class="form-control" name="speeding" id="speedingInput" placeholder="超速">
431   - </div>
432   - </div>
433   -
434   - <!-- 串线 -->
435   - <div class="form-group">
436   - <label class="control-label col-md-3"> 串线: </label>
437   - <div class="col-md-4">
438   - <input type="text" class="form-control" name="crossedLine" id="crossedLineInput" placeholder="串线">
439   - </div>
440   - </div>
441   -
442   - <!-- 越界 -->
443   - <div class="form-group">
444   - <label class="control-label col-md-3"> 越界: </label>
445   - <div class="col-md-4">
446   - <input type="text" class="form-control" name="overflights" id="overflightsInput" placeholder="越界">
447   - </div>
448   - </div>
449   -
450   - <!-- 描述/说明 -->
451   - <div class="form-group">
452   - <label class="col-md-3 control-label">描述/说明:</label>
453   - <div class="col-md-4">
454   - <textarea class="form-control" rows="3" name="descriptions" id="descriptionsInput" placeholder="描述/说明"></textarea>
  49 + <!-- 线路名称 (* 必填项) START -->
  50 + <div class="col-md-6">
  51 + <label class="control-label col-md-5">
  52 + <span class="required"> * </span>线路名称:
  53 + </label>
  54 + <div class="col-md-4">
  55 + <input type="text" class="form-control" name="lineName" id="lineNameInput" placeholder="线路名称">
  56 + </div>
  57 + </div>
  58 + <!-- 线路名称 END -->
  59 +
  60 + <!-- 线路标准信息类型 (* 必填项) START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  61 + <div class="col-md-6">
  62 + <label class="control-label col-md-5">
  63 + <span class="required"> * </span>线路标准信息类型:
  64 + </label>
  65 + <div class="col-md-4">
  66 + <select name="type" class="form-control" id="typeInput">
  67 + <option value="">-- 请选择类型 --</option>
  68 + <option value="zc">正常</option>
  69 + <option value="qj">区间</option>
  70 + <option value="fk">放空</option>
  71 + </select>
  72 + </div>
  73 + </div>
  74 + <!-- 线路标准信息类型 END -->
  75 + </div>
  76 + <!-- 表单分组组件 form-group END -->
  77 +
  78 + <!-- 表单分组组件 form-group START -->
  79 + <div class="form-group">
  80 + <!-- 标准总里程 START -->
  81 + <div class="col-md-6">
  82 + <label class="control-label col-md-5">标准总里程:</label>
  83 + <div class="col-md-4">
  84 + <input type="text" class="form-control" name="totalMileage" id="totalMileageInput" placeholder="标准总里程">
  85 + <span class="help-block"> 单位:公里 </span>
  86 + </div>
  87 + </div>
  88 + <!-- 标准总里程 END -->
  89 +
  90 + <!-- 空放里程 START -->
  91 + <div class="col-md-6">
  92 + <label class="control-label col-md-5"> 空放里程: </label>
  93 + <div class="col-md-4">
  94 + <input type="text" class="form-control" name="emptyMileage" id="emptyMileageInput" placeholder="空放里程">
  95 + <span class="help-block"> 单位:公里 </span>
  96 + </div>
  97 + </div>
  98 + <!-- 空放里程 END -->
  99 + </div>
  100 + <!-- 表单分组组件 form-group END -->
  101 +
  102 + <!-- 表单分组组件 form-group START -->
  103 + <div class="form-group">
  104 + <!-- 上行里程 (* 必填项) START -->
  105 + <div class="col-md-6">
  106 + <label class="control-label col-md-5"><span class="required"> * </span>上行里程:</label>
  107 + <div class="col-md-4">
  108 + <input type="text" class="form-control" name="upMileage" id="upMileageInput" placeholder="上行里程">
  109 + <span class="help-block"> 单位:公里 </span>
  110 + </div>
  111 + </div>
  112 + <!-- 上行里程 END -->
  113 +
  114 + <!-- 下行里程 (* 必填项) START -->
  115 + <div class="col-md-6">
  116 + <label class="control-label col-md-5"><span class="required"> * </span>下行里程: </label>
  117 + <div class="col-md-4">
  118 + <input type="text" class="form-control" name="downMileage" id="downMileageInput" placeholder="下行里程">
  119 + <span class="help-block"> 单位:公里 </span>
  120 + </div>
  121 + </div>
  122 + <!-- 下行里程 END -->
  123 + </div>
  124 + <!-- 表单分组组件 form-group END -->
  125 +
  126 + <!-- 表单分组组件 form-group START -->
  127 + <div class="form-group">
  128 + <!-- 上行行驶时间 (* 必填项) START -->
  129 + <div class="col-md-6">
  130 + <label class="control-label col-md-5"><span class="required"> * </span> 上行行驶时间: </label>
  131 + <div class="col-md-4">
  132 + <input type="text" class="form-control" name="upTravelTime" id="upTravelTimeInput" placeholder="上行行驶时间">
  133 + <span class="help-block"> 单位:分钟 </span>
  134 + </div>
  135 + </div>
  136 + <!-- 上行行驶时间 END -->
  137 +
  138 + <!-- 下行行驶时间 (* 必填项) START -->
  139 + <div class="col-md-6">
  140 + <label class="control-label col-md-5"><span class="required"> * </span>下行行驶时间: </label>
  141 + <div class="col-md-4">
  142 + <input type="text" class="form-control" name="downTravelTime" id="downTravelTimeInput" placeholder="下行行驶时间">
  143 + <span class="help-block"> 单位:分钟 </span>
  144 + </div>
  145 + </div>
  146 + <!-- 下行行驶时间 END -->
  147 + </div>
  148 + <!-- 表单分组组件 form-group END -->
  149 +
  150 + <!-- 表单分组组件 form-group START -->
  151 + <div class="form-group">
  152 + <!-- 早高峰开始时间 START -->
  153 + <div class="col-md-6">
  154 + <label class="control-label col-md-5"> 早高峰开始时间: </label>
  155 + <div class="col-md-4">
  156 + <input type="text" class="form-control" name="earlyStartTime" id="earlyStartTimeInput" placeholder="早高峰开始时间">
  157 + <span class="help-block"> 格式:00:00 </span>
  158 + </div>
  159 + </div>
  160 + <!-- 早高峰开始时间 END -->
  161 +
  162 + <!-- 早高峰结束时间 START -->
  163 + <div class="col-md-6">
  164 + <label class="control-label col-md-5"> 早高峰结束时间: </label>
  165 + <div class="col-md-4">
  166 + <input type="text" class="form-control" name="earlyEndTime" id="earlyEndTimeInput" placeholder="早高峰结束时间">
  167 + <span class="help-block"> 格式:00:00 </span>
  168 + </div>
  169 + </div>
  170 + <!-- 早高峰结束时间 END -->
  171 + </div>
  172 + <!-- 表单分组组件 form-group END -->
  173 +
  174 + <!-- 表单分组组件 form-group START -->
  175 + <div class="form-group">
  176 + <!-- 晚高峰开始时间 START -->
  177 + <div class="col-md-6">
  178 + <label class="control-label col-md-5"> 晚高峰开始时间: </label>
  179 + <div class="col-md-4">
  180 + <input type="text" class="form-control" name="lateStartTime" id="lateStartTimeInput" placeholder="晚高峰开始时间">
  181 + <span class="help-block"> 格式:00:00 </span>
  182 + </div>
  183 + </div>
  184 + <!-- 晚高峰开始时间 END -->
  185 +
  186 + <!-- 晚高峰结束时间 START -->
  187 + <div class="col-md-6">
  188 + <label class="control-label col-md-5"> 晚高峰结束时间: </label>
  189 + <div class="col-md-4">
  190 + <input type="text" class="form-control" name="lateEndTime" id="lateEndTimeInput" placeholder="晚高峰结束时间">
  191 + <span class="help-block"> 格式:00:00 </span>
  192 + </div>
  193 + </div>
  194 + <!-- 晚高峰结束时间 END -->
  195 + </div>
  196 + <!-- 表单分组组件 form-group END -->
  197 +
  198 + <!-- 表单分组组件 form-group START -->
  199 + <div class="form-group">
  200 + <!-- 早高峰上行行驶时间 START -->
  201 + <div class="col-md-6">
  202 + <label class="control-label col-md-5"> 早高峰上行行驶时间: </label>
  203 + <div class="col-md-4">
  204 + <input type="text" class="form-control" name="earlyUpTime" id="earlyUpTimeInput" placeholder="早高峰上行行驶时间">
  205 + <span class="help-block"> 单位:分钟 </span>
  206 + </div>
  207 + </div>
  208 + <!-- 早高峰上行行驶时间 END -->
  209 +
  210 + <!-- 早高峰下行行驶时间 START -->
  211 + <div class="col-md-6">
  212 + <label class="control-label col-md-5"> 早高峰下行行驶时间: </label>
  213 + <div class="col-md-4">
  214 + <input type="text" class="form-control" name="earlyDownTime" id="earlyDownTimeInput" placeholder="早高峰下行行驶时间">
  215 + <span class="help-block"> 单位:分钟 </span>
  216 + </div>
  217 + </div>
  218 + <!-- 早高峰下行行驶时间 END -->
  219 + </div>
  220 + <!-- 表单分组组件 form-group END -->
  221 +
  222 + <!-- 表单分组组件 form-group START -->
  223 + <div class="form-group">
  224 + <!-- 晚高峰上行行驶时间 START -->
  225 + <div class="col-md-6">
  226 + <label class="control-label col-md-5"> 晚高峰上行行驶时间: </label>
  227 + <div class="col-md-4">
  228 + <input type="text" class="form-control" name="lateUpTime" id="lateUpTimeInput" placeholder="晚高峰上行行驶时间">
  229 + <span class="help-block"> 单位:分钟 </span>
  230 + </div>
  231 + </div>
  232 + <!-- 晚高峰上行行驶时间 END -->
  233 +
  234 + <!-- 晚高峰下行行驶时间 START -->
  235 + <div class="col-md-6">
  236 + <label class="control-label col-md-5"> 晚高峰下行行驶时间: </label>
  237 + <div class="col-md-4">
  238 + <input type="text" class="form-control" name="lateDownTime" id="lateDownTimeInput" placeholder="晚高峰下行行驶时间">
  239 + <span class="help-block"> 单位:分钟 </span>
  240 + </div>
  241 + </div>
  242 + <!-- 晚高峰下行行驶时间 END -->
  243 + </div>
  244 + <!-- 表单分组组件 form-group END -->
  245 +
  246 + <!-- 表单分组组件 form-group START -->
  247 + <div class="form-group">
  248 + <!-- 小夜高峰上行行驶时间 START -->
  249 + <div class="col-md-6">
  250 + <label class="control-label col-md-5"> 小夜高峰上行行驶时间: </label>
  251 + <div class="col-md-4">
  252 + <input type="text" class="form-control" name="nightStartTime" id="nightStartTimeInput" placeholder="小夜高峰上行行驶时间">
  253 + <span class="help-block"> 单位:分钟 </span>
  254 + </div>
  255 + </div>
  256 + <!-- 小夜高峰上行行驶时间 END -->
  257 +
  258 + <!-- 小夜高峰下行行驶时间 START -->
  259 + <div class="col-md-6">
  260 + <label class="control-label col-md-5"> 小夜高峰下行行驶时间: </label>
  261 + <div class="col-md-4">
  262 + <input type="text" class="form-control" name="nightEndTime" id="nightEndTimeInput" placeholder="晚高峰下行行驶时间">
  263 + <span class="help-block"> 单位:分钟 </span>
  264 + </div>
  265 + </div>
  266 + <!-- 小夜高峰下行行驶时间 END -->
  267 + </div>
  268 + <!-- 表单分组组件 form-group END -->
  269 +
  270 + <!-- 表单分组组件 form-group START -->
  271 + <div class="form-group">
  272 + <!-- 低谷上行行驶时间 START -->
  273 + <div class="col-md-6">
  274 + <label class="control-label col-md-5"> 低谷上行行驶时间: </label>
  275 + <div class="col-md-4">
  276 + <input type="text" class="form-control" name="troughUpTime" id="troughUpTimeInput" placeholder="低谷上行行驶时间">
  277 + <span class="help-block"> 单位:分钟 </span>
  278 + </div>
  279 + </div>
  280 + <!-- 低谷上行行驶时间 END -->
  281 +
  282 + <!-- 低谷下行行驶时间 START -->
  283 + <div class="col-md-6">
  284 + <label class="control-label col-md-5"> 低谷下行行驶时间: </label>
  285 + <div class="col-md-4">
  286 + <input type="text" class="form-control" name="troughDownTime" id="troughDownTimeInput" placeholder="低谷下行行驶时间">
  287 + <span class="help-block"> 单位:分钟 </span>
  288 + </div>
  289 + </div>
  290 + <!-- 低谷下行行驶时间 END -->
  291 + </div>
  292 + <!-- 表单分组组件 form-group END -->
  293 +
  294 + <!-- 表单分组组件 form-group START -->
  295 + <div class="form-group">
  296 + <!-- 停车场 START -->
  297 + <div class="col-md-6">
  298 + <label class="control-label col-md-5"><span class="required"> * </span> 停车场 : </label>
  299 + <div class="col-md-4">
  300 + <select name="carPark" class="form-control" id="carParkSelect"></select>
  301 + <!-- <input type="text" class="form-control" name="carPark" id="carParkInput" placeholder="停车场"> -->
  302 + </div>
  303 + </div>
  304 + <!-- 停车场 END -->
  305 +
  306 + <!-- 限速(平时)START -->
  307 + <div class="col-md-6">
  308 + <label class="control-label col-md-5"><span class="required"> * </span> 限速(平时): </label>
  309 + <div class="col-md-4">
  310 + <input type="text" class="form-control" name="speedLimit" id="speedLimitInput" placeholder="限速(平时)">
  311 + </div>
  312 + </div>
  313 + <!-- 限速(平时)END -->
  314 + </div>
  315 + <!-- 表单分组组件 form-group END -->
  316 +
  317 + <!-- 表单分组组件 form-group START -->
  318 + <div class="form-group">
  319 + <!-- 进场时间 START -->
  320 + <div class="col-md-6">
  321 + <label class="control-label col-md-5"> 进场时间 : </label>
  322 + <div class="col-md-4">
  323 + <input type="text" class="form-control" name="upInTimer" id="upInTimerInput" placeholder="上行进场时间">
  324 + <span class="help-block"> 描述:上行起点至停车场的进场时间 </span>
  325 + </div>
  326 + </div>
  327 + <!-- 进场时间 END -->
  328 +
  329 + <!-- 出场时间 START -->
  330 + <div class="col-md-6">
  331 + <label class="control-label col-md-5"> 出场时间 : </label>
  332 + <div class="col-md-4">
  333 + <input type="text" class="form-control" name="upOutTimer" id="upOutTimerInput" placeholder="上行出场时间">
  334 + <span class="help-block"> 描述:上行起点至停车场的出场时间 </span>
  335 + </div>
  336 + </div>
  337 + <!-- 出场时间 END -->
  338 + </div>
  339 + <!-- 表单分组组件 form-group END -->
  340 +
  341 + <!-- 表单分组组件 form-group START -->
  342 + <div class="form-group">
  343 + <!-- 进场里程 START -->
  344 + <div class="col-md-6">
  345 + <label class="control-label col-md-5"> 进场里程 : </label>
  346 + <div class="col-md-4">
  347 + <input type="text" class="form-control" name="upInMileage" id="upInMileageInput" placeholder="上行进场里程">
  348 + <span class="help-block"> 描述:上行起点至停车场的进场里程 </span>
  349 + </div>
  350 + </div>
  351 + <!-- 进场里程 END -->
  352 +
  353 + <!-- 出场里程 START -->
  354 + <div class="col-md-6">
  355 + <label class="control-label col-md-5"> 出场里程: </label>
  356 + <div class="col-md-4">
  357 + <input type="text" class="form-control" name="upOutMileage" id="upOutMileageInput" placeholder="上行出场里程">
  358 + <span class="help-block"> 描述:上行起点至停车场的出场里程 </span>
  359 + </div>
  360 + </div>
  361 + <!-- 出场里程 END -->
  362 + </div>
  363 + <!-- 表单分组组件 form-group END -->
  364 +
  365 + <!-- 表单分组组件 form-group START -->
  366 + <div class="form-group">
  367 + <!-- 进场时间2 START -->
  368 + <div class="col-md-6">
  369 + <label class="control-label col-md-5"> 进场时间2 : </label>
  370 + <div class="col-md-4">
  371 + <input type="text" class="form-control" name="downInTimer" id="downInTimerInput" placeholder="下行进场时间">
  372 + <span class="help-block"> 描述:下行起点至停车场的进场时间 </span>
  373 + </div>
  374 + </div>
  375 + <!-- 进场时间2 END -->
  376 +
  377 + <!-- 出场时间2 START -->
  378 + <div class="col-md-6">
  379 + <label class="control-label col-md-5"> 出场时间2: </label>
  380 + <div class="col-md-4">
  381 + <input type="text" class="form-control" name="downOutTimer" id="downOutTimerInput" placeholder="下行出场时间">
  382 + <span class="help-block"> 描述:下行起点至停车场的出场时间 </span>
  383 + </div>
  384 + </div>
  385 + <!-- 出场时间2 END -->
  386 + </div>
  387 + <!-- 表单分组组件 form-group END -->
  388 +
  389 + <!-- 表单分组组件 form-group START -->
  390 + <div class="form-group">
  391 + <!-- 进场里程2 START -->
  392 + <div class="col-md-6">
  393 + <label class="control-label col-md-5"> 进场里程2 : </label>
  394 + <div class="col-md-4">
  395 + <input type="text" class="form-control" name="downInMileage" id="downInMileageInput" placeholder="下行进场里程">
  396 + <span class="help-block"> 描述:下行起点至停车场的进场里程 </span>
  397 + </div>
  398 + </div>
  399 + <!-- 进场里程2 END -->
  400 +
  401 + <!-- 出场里程2 START -->
  402 + <div class="col-md-6">
  403 + <label class="control-label col-md-5"> 出场里程2: </label>
  404 + <div class="col-md-4">
  405 + <input type="text" class="form-control" name="downOutMileage" id="downOutMileageInput" placeholder="下行出场里程">
  406 + <span class="help-block"> 描述:下行起点至停车场的出场里程 </span>
  407 + </div>
  408 + </div>
  409 + <!-- 出场里程2 END -->
  410 + </div>
  411 + <!-- 表单分组组件 form-group END -->
  412 +
  413 + <!-- 表单分组组件 form-group START -->
  414 + <div class="form-group">
  415 + <!-- 越界 START -->
  416 + <div class="col-md-6">
  417 + <label class="control-label col-md-5"> 越界: </label>
  418 + <div class="col-md-4">
  419 + <input type="text" class="form-control" name="overflights" id="overflightsInput" placeholder="越界">
  420 + </div>
  421 + </div>
  422 + <!-- 越界 END -->
  423 +
  424 + <!-- 大间隔(平时)START -->
  425 + <div class="col-md-6">
  426 + <label class="control-label col-md-5"> 大间隔(平时): </label>
  427 + <div class="col-md-4">
  428 + <input type="text" class="form-control" name="intervalLg" id="intervalLgInput" placeholder="平时大间隔">
  429 + </div>
  430 + </div>
  431 + <!-- 大间隔(平时)END -->
  432 + </div>
  433 + <!-- 表单分组组件 form-group END -->
  434 +
  435 + <!-- 表单分组组件 form-group START -->
  436 + <div class="form-group">
  437 + <!-- 滞站 START -->
  438 + <div class="col-md-6">
  439 + <label class="control-label col-md-5"> 滞站: </label>
  440 + <div class="col-md-4">
  441 + <input type="text" class="form-control" name="lagStation" id="lagStationInput" placeholder="滞站">
  442 + </div>
  443 + </div>
  444 + <!-- 滞站 END -->
  445 +
  446 + <!-- 越站 START -->
  447 + <div class="col-md-6">
  448 + <label class="control-label col-md-5"> 越站: </label>
  449 + <div class="col-md-4">
  450 + <input type="text" class="form-control" name="skip" id="skipInput" placeholder="越站">
  451 + </div>
  452 + </div>
  453 + <!-- 越站 END -->
  454 + </div>
  455 + <!-- 表单分组组件 form-group END -->
  456 +
  457 + <!-- 表单分组组件 form-group START -->
  458 + <div class="form-group">
  459 + <!-- 超速 START -->
  460 + <div class="col-md-6">
  461 + <label class="control-label col-md-5"><span class="required"> * </span> 超速: </label>
  462 + <div class="col-md-4">
  463 + <input type="text" class="form-control" name="speeding" id="speedingInput" placeholder="超速">
  464 + </div>
  465 + </div>
  466 + <!-- 超速 END -->
  467 +
  468 + <!-- 串线 START -->
  469 + <div class="col-md-6">
  470 + <label class="control-label col-md-5"> 串线: </label>
  471 + <div class="col-md-4">
  472 + <input type="text" class="form-control" name="crossedLine" id="crossedLineInput" placeholder="串线">
  473 + </div>
  474 + </div>
  475 + <!-- 串线 END -->
  476 + </div>
  477 + <!-- 表单分组组件 form-group END -->
  478 +
  479 + <!-- 表单分组组件 form-group START -->
  480 + <div class="form-group">
  481 + <!-- 描述/说明 START -->
  482 + <div class="col-md-6">
  483 + <label class="col-md-5 control-label">描述/说明:</label>
  484 + <div class="col-md-6">
  485 + <textarea class="form-control" rows="3" name="descriptions" id="descriptionsInput" placeholder="描述/说明"></textarea>
  486 + </div>
455 487 </div>
456   - </div>
  488 + <!-- 描述/说明 END -->
  489 + </div>
  490 + <!-- 表单分组组件 form-group END -->
457 491 </div>
  492 + <!-- 表单字段内容 END -->
  493 +
  494 + <!-- 表单按钮组件 START -->
458 495 <div class="form-actions">
459 496 <div class="row">
460 497 <div class="col-md-offset-3 col-md-4">
... ... @@ -462,7 +499,13 @@
462 499 </div>
463 500 </div>
464 501 </div>
  502 + <!-- 表单按钮组件 END -->
465 503 </form>
  504 + <!-- lineinformation_add_form FORM END -->
466 505 </div>
  506 + <!-- 表单组件 END -->
467 507 </div>
  508 +<!-- 信息容器组件 END -->
  509 +
  510 +<!-- 线路标准信息详情片段JS模块 -->
468 511 <script src="/pages/base/lineinformation/js/lineinformation-details-form.js"></script>
469 512 \ No newline at end of file
... ...
src/main/resources/static/pages/base/lineinformation/edit.html
  1 +<!-- 片段标题 START -->
1 2 <div class="page-head">
2 3 <div class="page-title">
3 4 <h1>修改线路标准信息</h1>
4 5 </div>
5 6 </div>
  7 +<!-- 片段标题 END -->
6 8  
  9 +<!-- 线路标准信息导航栏组件 START -->
7 10 <ul class="page-breadcrumb breadcrumb">
8 11 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9 12 <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li>
... ... @@ -11,18 +14,21 @@
11 14 <li><a href="/pages/base/line/lineinformation/lineinformation.html" class="back-up" data-pjax>线路标准信息</a> <i class="fa fa-circle"></i></li>
12 15 <li><span class="active">修改线路标准信息</span></li>
13 16 </ul>
  17 +<!-- 线路标准信息导航栏组件 START -->
14 18  
  19 +<!-- 信息容器组件 START -->
15 20 <div class="portlet light bordered">
16 21  
17   - <!-- 标题 -->
  22 + <!-- 信息容器组件标题 START -->
18 23 <div class="portlet-title">
19 24 <div class="caption">
20 25 <i class="icon-equalizer font-red-sunglo"></i>
21 26 <span class="caption-subject font-red-sunglo bold uppercase">修改线路标准信息</span>
22 27 </div>
23 28 </div>
  29 + <!-- 信息容器组件标题 END -->
24 30  
25   - <!-- 表单 -->
  31 + <!-- 表单容器组件 START -->
26 32 <div class="portlet-body form">
27 33  
28 34 <!-- START FORM -->
... ... @@ -34,430 +40,461 @@
34 40 您的输入有误,请检查下面的输入项
35 41 </div>
36 42  
37   - <!-- 表单内容 -->
  43 + <!-- 线路信息ID -->
  44 + <input type="hidden" name="id" id="lineinformationId">
  45 +
  46 + <!-- 表单字段内容 START -->
38 47 <div class="form-body">
39 48  
40   - <!-- 线路信息ID -->
41   - <input type="hidden" name="id" id="lineinformationId">
42   -
43   - <!-- 线路信息ID -->
44   - <input type="hidden" name="line" id="lineIdInput">
45   -
46   - <!-- 线路标准信息类型 -->
  49 + <!-- 表单分组组件 form-group START -->
47 50 <div class="form-group">
48   - <label class="control-label col-md-3">
49   - <span class="required"> * </span>线路标准信息类型:
50   - </label>
51   - <div class="col-md-4">
52   - <select name="type" class="form-control" id="typeInput">
53   - <option value="">-- 请选择类型 --</option>
54   - <option value="zc">正常</option>
55   - <option value="qj">区间</option>
56   - <option value="fk">放空</option>
57   - </select>
58   - </div>
59   - </div>
60   -
61   - <!-- 标准总里程 -->
62   - <div class="form-group">
63   - <label class="control-label col-md-3">
64   - <span class="required"> * </span>标准总里程:
65   - </label>
66   - <div class="col-md-4">
67   - <input type="text" class="form-control" name="totalMileage" id="totalMileageInput" placeholder="标准总里程">
68   - <span class="help-block"> 单位:公里 </span>
69   - </div>
70   - </div>
71   -
72   - <!-- 空放里程 -->
73   - <div class="form-group">
74   - <label class="control-label col-md-3"> 空放里程: </label>
75   - <div class="col-md-4">
76   - <input type="text" class="form-control" name="emptyMileage" id="emptyMileageInput" placeholder="空放里程">
77   - <span class="help-block"> 单位:公里 </span>
78   - </div>
79   - </div>
80   -
81   - <!-- 上行里程 -->
82   - <div class="form-group">
83   - <label class="control-label col-md-3">
84   - <span class="required"> * </span>上行里程:
85   - </label>
86   - <div class="col-md-4">
87   - <input type="text" class="form-control" name="upMileage" id="upMileageInput" placeholder="上行里程">
88   - <span class="help-block"> 单位:公里 </span>
89   - </div>
90   - </div>
91   -
92   - <!-- 下行里程 -->
93   - <div class="form-group">
94   - <label class="control-label col-md-3">
95   - <span class="required"> * </span>下行里程:
96   - </label>
97   - <div class="col-md-4">
98   - <input type="text" class="form-control" name="downMileage" id="downMileageInput" placeholder="下行里程">
99   - <span class="help-block"> 单位:公里 </span>
100   - </div>
101   - </div>
102   -
103   - <!-- 上行行驶时间 -->
104   - <div class="form-group">
105   - <label class="control-label col-md-3"> 上行行驶时间: </label>
106   - <div class="col-md-4">
107   - <input type="text" class="form-control" name="upTravelTime" id="upTravelTimeInput" placeholder="上行行驶时间">
108   - <span class="help-block"> 单位:分钟 </span>
109   - </div>
110   - </div>
111   -
112   - <!-- 下行行驶时间 -->
113   - <div class="form-group">
114   - <label class="control-label col-md-3"> 下行行驶时间: </label>
115   - <div class="col-md-4">
116   - <input type="text" class="form-control" name="downTravelTime" id="downTravelTimeInput" placeholder="下行行驶时间">
117   - <span class="help-block"> 单位:分钟 </span>
118   - </div>
119   - </div>
120   -
121   - <!-- 早高峰开始时间 -->
122   - <div class="form-group">
123   - <label class="control-label col-md-3"> 早高峰开始时间: </label>
124   - <div class="col-md-4">
125   - <input type="text" class="form-control" name="earlyStartTime" id="earlyStartTimeInput" placeholder="早高峰开始时间">
126   - <span class="help-block"> 格式:00:00 </span>
127   - </div>
128   - </div>
129   -
130   - <!-- 早高峰结束时间 -->
131   - <div class="form-group">
132   - <label class="control-label col-md-3"> 早高峰结束时间: </label>
133   - <div class="col-md-4">
134   - <input type="text" class="form-control" name="earlyEndTime" id="earlyEndTimeInput" placeholder="早高峰结束时间">
135   - <span class="help-block"> 格式:00:00 </span>
136   - </div>
137   - </div>
138   -
139   - <!-- 早高峰上行行驶时间 -->
140   - <div class="form-group">
141   - <label class="control-label col-md-3"> 早高峰上行行驶时间: </label>
142   - <div class="col-md-4">
143   - <input type="text" class="form-control" name="earlyUpTime" id="earlyUpTimeInput" placeholder="早高峰上行行驶时间">
144   - <span class="help-block"> 单位:分钟 </span>
145   - </div>
146   - </div>
147   -
148   - <!-- 早高峰下行行驶时间 -->
149   - <div class="form-group">
150   - <label class="control-label col-md-3"> 早高峰下行行驶时间: </label>
151   - <div class="col-md-4">
152   - <input type="text" class="form-control" name="earlyDownTime" id="earlyDownTimeInput" placeholder="早高峰下行行驶时间">
153   - <span class="help-block"> 单位:分钟 </span>
154   - </div>
155   - </div>
156   -
157   - <!-- 晚高峰开始时间 -->
158   - <div class="form-group">
159   - <label class="control-label col-md-3"> 晚高峰开始时间: </label>
160   - <div class="col-md-4">
161   - <input type="text" class="form-control" name="lateStartTime" id="lateStartTimeInput" placeholder="晚高峰开始时间">
162   - <span class="help-block"> 格式:00:00 </span>
163   - </div>
164   - </div>
165   -
166   - <!-- 晚高峰结束时间 -->
167   - <div class="form-group">
168   - <label class="control-label col-md-3"> 晚高峰结束时间: </label>
169   - <div class="col-md-4">
170   - <input type="text" class="form-control" name="lateEndTime" id="lateEndTimeInput" placeholder="晚高峰结束时间">
171   - <span class="help-block"> 格式:00:00 </span>
172   - </div>
173   - </div>
174   -
175   - <!-- 晚高峰上行行驶时间 -->
176   - <div class="form-group">
177   - <label class="control-label col-md-3"> 晚高峰上行行驶时间: </label>
178   - <div class="col-md-4">
179   - <input type="text" class="form-control" name="lateUpTime" id="lateUpTimeInput" placeholder="晚高峰上行行驶时间">
180   - <span class="help-block"> 单位:分钟 </span>
181   - </div>
182   - </div>
183   -
184   - <!-- 晚高峰下行行驶时间 -->
185   - <div class="form-group">
186   - <label class="control-label col-md-3"> 晚高峰下行行驶时间: </label>
187   - <div class="col-md-4">
188   - <input type="text" class="form-control" name="lateDownTime" id="lateDownTimeInput" placeholder="晚高峰下行行驶时间">
189   - <span class="help-block"> 单位:分钟 </span>
190   - </div>
191   - </div>
192   -
193   - <!-- 小夜高峰上行行驶时间 -->
194   - <div class="form-group">
195   - <label class="control-label col-md-3"> 小夜高峰上行行驶时间: </label>
196   - <div class="col-md-4">
197   - <input type="text" class="form-control" name="nightStartTime" id="nightStartTimeInput" placeholder="小夜高峰上行行驶时间">
198   - <span class="help-block"> 单位:分钟 </span>
199   - </div>
200   - </div>
201   -
202   - <!-- 小夜高峰下行行驶时间 -->
203   - <div class="form-group">
204   - <label class="control-label col-md-3"> 小夜高峰下行行驶时间: </label>
205   - <div class="col-md-4">
206   - <input type="text" class="form-control" name="nightEndTime" id="nightEndTimeInput" placeholder="晚高峰下行行驶时间">
207   - <span class="help-block"> 单位:分钟 </span>
208   - </div>
209   - </div>
210   -
211   - <!-- 低谷上行行驶时间 -->
212   - <div class="form-group">
213   - <label class="control-label col-md-3"> 低谷上行行驶时间: </label>
214   - <div class="col-md-4">
215   - <input type="text" class="form-control" name="troughUpTime" id="troughUpTimeInput" placeholder="低谷上行行驶时间">
216   - <span class="help-block"> 单位:分钟 </span>
217   - </div>
218   - </div>
219   -
220   - <!-- 低谷下行行驶时间 -->
221   - <div class="form-group">
222   - <label class="control-label col-md-3"> 低谷下行行驶时间: </label>
223   - <div class="col-md-4">
224   - <input type="text" class="form-control" name="troughDownTime" id="troughDownTimeInput" placeholder="低谷下行行驶时间">
225   - <span class="help-block"> 单位:分钟 </span>
226   - </div>
227   - </div>
228   -
229   - <!-- 停车场 -->
230   - <div class="form-group">
231   - <label class="control-label col-md-3"> 停车场 : </label>
232   - <div class="col-md-4">
233   - <select name="carPark" class="form-control" id="carParkSelect"></select>
234   - <!-- <input type="text" class="form-control" name="carPark" id="carParkInput" placeholder="停车场"> -->
235   - </div>
236   - </div>
237   - <!--
238   - 进场时间
239   - <div class="form-group">
240   - <label class="control-label col-md-3"> 进场时间 : </label>
241   - <div class="col-md-4">
242   - <input type="text" class="form-control" name="paradeTime" id="paradeTimeInput" placeholder="进场时间">
243   - <span class="help-block"> 描述:起点至停车场的时间 </span>
244   - </div>
245   - </div>
246   -
247   - 出场时间
248   - <div class="form-group">
249   - <label class="control-label col-md-3"> 出场时间 : </label>
250   - <div class="col-md-4">
251   - <input type="text" class="form-control" name="outTime" id="outTimeInput" placeholder="出场时间">
252   - <span class="help-block"> 描述:停车场至起点的时间 </span>
253   - </div>
254   - </div>
255   -
256   - -->
257   - <!-- 上行进场时间 -->
258   - <div class="form-group">
259   - <label class="control-label col-md-3"> 上行进场时间 : </label>
260   - <div class="col-md-4">
261   - <input type="text" class="form-control" name="upInTimer" id="upInTimerInput" placeholder="上行进场时间">
262   - <span class="help-block"> 描述:上行起点至停车场的进场时间 </span>
263   - </div>
264   - </div>
265   -
266   - <!--上行出场时间 -->
267   - <div class="form-group">
268   - <label class="control-label col-md-3"> 上行出场时间 : </label>
269   - <div class="col-md-4">
270   - <input type="text" class="form-control" name="upOutTimer" id="upOutTimerInput" placeholder="上行出场时间">
271   - <span class="help-block"> 描述:上行起点至停车场的出场时间 </span>
272   - </div>
273   - </div>
274   -
275   - <!-- 下行进场时间 -->
276   - <div class="form-group">
277   - <label class="control-label col-md-3"> 下行进场时间 : </label>
278   - <div class="col-md-4">
279   - <input type="text" class="form-control" name="downInTimer" id="downInTimerInput" placeholder="下行进场时间">
280   - <span class="help-block"> 描述:下行起点至停车场的进场时间 </span>
281   - </div>
282   - </div>
283   -
284   - <!-- 下行出场时间 -->
285   - <div class="form-group">
286   - <label class="control-label col-md-3"> 下行出场时间: </label>
287   - <div class="col-md-4">
288   - <input type="text" class="form-control" name="downOutTimer" id="downOutTimerInput" placeholder="下行出场时间">
289   - <span class="help-block"> 描述:下行起点至停车场的出场时间 </span>
290   - </div>
291   - </div>
292   -
293   -
294   -
295   - <!-- 上行进场里程 -->
296   - <div class="form-group">
297   - <label class="control-label col-md-3"> 上行进场里程 : </label>
298   - <div class="col-md-4">
299   - <input type="text" class="form-control" name="upInMileage" id="upInMileageInput" placeholder="上行进场里程">
300   - <span class="help-block"> 描述:上行起点至停车场的进场里程 </span>
301   - </div>
302   - </div>
303   -
304   - <!-- 上行出场里程 -->
305   - <div class="form-group">
306   - <label class="control-label col-md-3"> 上行出场里程: </label>
307   - <div class="col-md-4">
308   - <input type="text" class="form-control" name="upOutMileage" id="upOutMileageInput" placeholder="上行出场里程">
309   - <span class="help-block"> 描述:上行起点至停车场的出场里程 </span>
310   - </div>
311   - </div>
312   -
313   - <!-- 下行进场里程 -->
314   - <div class="form-group">
315   - <label class="control-label col-md-3"> 下行进场里程 : </label>
316   - <div class="col-md-4">
317   - <input type="text" class="form-control" name="downInMileage" id="downInMileageInput" placeholder="下行进场里程">
318   - <span class="help-block"> 描述:下行起点至停车场的进场里程 </span>
319   - </div>
320   - </div>
321   -
322   - <!-- 下行出场里程 -->
323   - <div class="form-group">
324   - <label class="control-label col-md-3"> 下行出场里程: </label>
325   - <div class="col-md-4">
326   - <input type="text" class="form-control" name="downOutMileage" id="downOutMileageInput" placeholder="下行出场里程">
327   - <span class="help-block"> 描述:下行起点至停车场的出场里程 </span>
328   - </div>
329   - </div>
330   - <!--
331   - 进场里程
332   - <div class="form-group">
333   - <label class="control-label col-md-3"> 进场里程 : </label>
334   - <div class="col-md-4">
335   - <input type="text" class="form-control" name="paradeMileage" id="paradeMileageInput" placeholder="进场里程">
336   - <span class="help-block"> 描述:起点至停车场的里程 </span>
337   - </div>
338   - </div>
339   -
340   - 出场里程
341   - <div class="form-group">
342   - <label class="control-label col-md-3"> 出场里程: </label>
343   - <div class="col-md-4">
344   - <input type="text" class="form-control" name="outMileage" id="outMileageInput" placeholder="出场里程">
345   - <span class="help-block"> 描述:停车场至起点的里程 </span>
346   - </div>
347   - </div>
348   - -->
349   - <!-- 早高峰大间隔 -->
350   - <div class="form-group">
351   - <label class="control-label col-md-3"> 早高峰大间隔: </label>
352   - <div class="col-md-4">
353   - <input type="text" class="form-control" name="earlyIntervalLg" id="earlyIntervalLgInput" placeholder="早高峰大间隔">
354   - </div>
355   - </div>
356   -
357   - <!-- 晚高峰大间隔 -->
358   - <div class="form-group">
359   - <label class="control-label col-md-3"> 晚高峰大间隔: </label>
360   - <div class="col-md-4">
361   - <input type="text" class="form-control" name="lateIntervalLg" id="lateIntervalLgInput" placeholder="晚高峰大间隔">
362   - </div>
363   - </div>
364   -
365   - <!-- 平时大间隔 -->
366   - <div class="form-group">
367   - <label class="control-label col-md-3"> 平时大间隔: </label>
368   - <div class="col-md-4">
369   - <input type="text" class="form-control" name="intervalLg" id="intervalLgInput" placeholder="平时大间隔">
370   - </div>
371   - </div>
372   -
373   - <!-- 限速(平时) -->
374   - <div class="form-group">
375   - <label class="control-label col-md-3"> 限速(平时): </label>
376   - <div class="col-md-4">
377   - <input type="text" class="form-control" name="speedLimit" id="speedLimitInput" placeholder="限速(平时)">
378   - </div>
379   - </div>
380   -
381   - <!-- 限速(雨天) -->
382   - <div class="form-group">
383   - <label class="control-label col-md-3"> 限速(雨天): </label>
384   - <div class="col-md-4">
385   - <input type="text" class="form-control" name="rainLimit" id="rainLimitInput" placeholder="限速(雨天)">
386   - </div>
387   - </div>
388   -
389   - <!-- 限速(大雾) -->
390   - <div class="form-group">
391   - <label class="control-label col-md-3"> 限速(大雾): </label>
392   - <div class="col-md-4">
393   - <input type="text" class="form-control" name="fogLimit" id="fogLimitInput" placeholder="限速(大雾)">
394   - </div>
395   - </div>
396   -
397   - <!-- 限速(冰雪) -->
398   - <div class="form-group">
399   - <label class="control-label col-md-3"> 限速(冰雪): </label>
400   - <div class="col-md-4">
401   - <input type="text" class="form-control" name="snowLimit" id="snowLimitInput" placeholder="限速(冰雪)">
402   - </div>
403   - </div>
404   -
405   - <!-- 限速(节庆) -->
406   - <div class="form-group">
407   - <label class="control-label col-md-3"> 限速(节庆): </label>
408   - <div class="col-md-4">
409   - <input type="text" class="form-control" name="festivalSpeedLimit" id="festivalSpeedLimitInput" placeholder="限速(节庆)">
410   - </div>
411   - </div>
412   -
413   - <!-- 滞站 -->
414   - <div class="form-group">
415   - <label class="control-label col-md-3"> 滞站: </label>
416   - <div class="col-md-4">
417   - <input type="text" class="form-control" name="lagStation" id="lagStationInput" placeholder="滞站">
418   - </div>
419   - </div>
420   -
421   - <!-- 越站 -->
422   - <div class="form-group">
423   - <label class="control-label col-md-3"> 越站: </label>
424   - <div class="col-md-4">
425   - <input type="text" class="form-control" name="skip" id="skipInput" placeholder="越站">
426   - </div>
427   - </div>
428   -
429   - <!-- 超速 -->
430   - <div class="form-group">
431   - <label class="control-label col-md-3"> 超速: </label>
432   - <div class="col-md-4">
433   - <input type="text" class="form-control" name="speeding" id="speedingInput" placeholder="超速">
434   - </div>
435   - </div>
436   -
437   - <!-- 串线 -->
438   - <div class="form-group">
439   - <label class="control-label col-md-3"> 串线: </label>
440   - <div class="col-md-4">
441   - <input type="text" class="form-control" name="crossedLine" id="crossedLineInput" placeholder="串线">
442   - </div>
443   - </div>
444   -
445   - <!-- 越界 -->
446   - <div class="form-group">
447   - <label class="control-label col-md-3"> 越界: </label>
448   - <div class="col-md-4">
449   - <input type="text" class="form-control" name="overflights" id="overflightsInput" placeholder="越界">
450   - </div>
451   - </div>
452   -
453   - <!-- 描述/说明 -->
454   - <div class="form-group">
455   - <label class="col-md-3 control-label">描述/说明:</label>
456   - <div class="col-md-4">
457   - <textarea class="form-control" rows="3" name="descriptions" id="descriptionsInput" placeholder="描述/说明"></textarea>
  51 + <!-- 线路名称 (* 必填项) START -->
  52 + <div class="col-md-6">
  53 + <label class="control-label col-md-5">
  54 + <span class="required"> * </span>线路名称:
  55 + </label>
  56 + <div class="col-md-4">
  57 + <select name="line" class="form-control" style="width:100%" id="lineSelect"></select>
  58 + <!-- <input type="text" class="form-control" name="lineName" id="lineNameInput" placeholder="线路名称"> -->
  59 + </div>
  60 + </div>
  61 + <!-- 线路名称 END -->
  62 +
  63 + <!-- 线路标准信息类型 (* 必填项) START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  64 + <div class="col-md-6">
  65 + <label class="control-label col-md-5">
  66 + <span class="required"> * </span>线路标准信息类型:
  67 + </label>
  68 + <div class="col-md-4">
  69 + <select name="type" class="form-control" id="typeInput">
  70 + <option value="">-- 请选择类型 --</option>
  71 + <option value="zc">正常</option>
  72 + <option value="qj">区间</option>
  73 + <option value="fk">放空</option>
  74 + </select>
  75 + </div>
  76 + </div>
  77 + <!-- 线路标准信息类型 END -->
  78 + </div>
  79 + <!-- 表单分组组件 form-group END -->
  80 +
  81 + <!-- 表单分组组件 form-group START -->
  82 + <div class="form-group">
  83 + <!-- 标准总里程 START -->
  84 + <div class="col-md-6">
  85 + <label class="control-label col-md-5">标准总里程:</label>
  86 + <div class="col-md-4">
  87 + <input type="text" class="form-control" name="totalMileage" id="totalMileageInput" placeholder="标准总里程">
  88 + <span class="help-block"> 单位:公里 </span>
  89 + </div>
  90 + </div>
  91 + <!-- 标准总里程 END -->
  92 +
  93 + <!-- 空放里程 START -->
  94 + <div class="col-md-6">
  95 + <label class="control-label col-md-5"> 空放里程: </label>
  96 + <div class="col-md-4">
  97 + <input type="text" class="form-control" name="emptyMileage" id="emptyMileageInput" placeholder="空放里程">
  98 + <span class="help-block"> 单位:公里 </span>
  99 + </div>
  100 + </div>
  101 + <!-- 空放里程 END -->
  102 + </div>
  103 + <!-- 表单分组组件 form-group END -->
  104 +
  105 + <!-- 表单分组组件 form-group START -->
  106 + <div class="form-group">
  107 + <!-- 上行里程 (* 必填项) START -->
  108 + <div class="col-md-6">
  109 + <label class="control-label col-md-5"><span class="required"> * </span>上行里程:</label>
  110 + <div class="col-md-4">
  111 + <input type="text" class="form-control" name="upMileage" id="upMileageInput" placeholder="上行里程">
  112 + <span class="help-block"> 单位:公里 </span>
  113 + </div>
  114 + </div>
  115 + <!-- 上行里程 END -->
  116 +
  117 + <!-- 下行里程 (* 必填项) START -->
  118 + <div class="col-md-6">
  119 + <label class="control-label col-md-5"><span class="required"> * </span>下行里程: </label>
  120 + <div class="col-md-4">
  121 + <input type="text" class="form-control" name="downMileage" id="downMileageInput" placeholder="下行里程">
  122 + <span class="help-block"> 单位:公里 </span>
  123 + </div>
  124 + </div>
  125 + <!-- 下行里程 END -->
  126 + </div>
  127 + <!-- 表单分组组件 form-group END -->
  128 +
  129 + <!-- 表单分组组件 form-group START -->
  130 + <div class="form-group">
  131 + <!-- 上行行驶时间 (* 必填项) START -->
  132 + <div class="col-md-6">
  133 + <label class="control-label col-md-5"><span class="required"> * </span> 上行行驶时间: </label>
  134 + <div class="col-md-4">
  135 + <input type="text" class="form-control" name="upTravelTime" id="upTravelTimeInput" placeholder="上行行驶时间">
  136 + <span class="help-block"> 单位:分钟 </span>
  137 + </div>
  138 + </div>
  139 + <!-- 上行行驶时间 END -->
  140 +
  141 + <!-- 下行行驶时间 (* 必填项) START -->
  142 + <div class="col-md-6">
  143 + <label class="control-label col-md-5"><span class="required"> * </span>下行行驶时间: </label>
  144 + <div class="col-md-4">
  145 + <input type="text" class="form-control" name="downTravelTime" id="downTravelTimeInput" placeholder="下行行驶时间">
  146 + <span class="help-block"> 单位:分钟 </span>
  147 + </div>
  148 + </div>
  149 + <!-- 下行行驶时间 END -->
  150 + </div>
  151 + <!-- 表单分组组件 form-group END -->
  152 +
  153 + <!-- 表单分组组件 form-group START -->
  154 + <div class="form-group">
  155 + <!-- 早高峰开始时间 START -->
  156 + <div class="col-md-6">
  157 + <label class="control-label col-md-5"> 早高峰开始时间: </label>
  158 + <div class="col-md-4">
  159 + <input type="text" class="form-control" name="earlyStartTime" id="earlyStartTimeInput" placeholder="早高峰开始时间">
  160 + <span class="help-block"> 格式:00:00 </span>
  161 + </div>
  162 + </div>
  163 + <!-- 早高峰开始时间 END -->
  164 +
  165 + <!-- 早高峰结束时间 START -->
  166 + <div class="col-md-6">
  167 + <label class="control-label col-md-5"> 早高峰结束时间: </label>
  168 + <div class="col-md-4">
  169 + <input type="text" class="form-control" name="earlyEndTime" id="earlyEndTimeInput" placeholder="早高峰结束时间">
  170 + <span class="help-block"> 格式:00:00 </span>
  171 + </div>
  172 + </div>
  173 + <!-- 早高峰结束时间 END -->
  174 + </div>
  175 + <!-- 表单分组组件 form-group END -->
  176 +
  177 + <!-- 表单分组组件 form-group START -->
  178 + <div class="form-group">
  179 + <!-- 晚高峰开始时间 START -->
  180 + <div class="col-md-6">
  181 + <label class="control-label col-md-5"> 晚高峰开始时间: </label>
  182 + <div class="col-md-4">
  183 + <input type="text" class="form-control" name="lateStartTime" id="lateStartTimeInput" placeholder="晚高峰开始时间">
  184 + <span class="help-block"> 格式:00:00 </span>
  185 + </div>
  186 + </div>
  187 + <!-- 晚高峰开始时间 END -->
  188 +
  189 + <!-- 晚高峰结束时间 START -->
  190 + <div class="col-md-6">
  191 + <label class="control-label col-md-5"> 晚高峰结束时间: </label>
  192 + <div class="col-md-4">
  193 + <input type="text" class="form-control" name="lateEndTime" id="lateEndTimeInput" placeholder="晚高峰结束时间">
  194 + <span class="help-block"> 格式:00:00 </span>
  195 + </div>
  196 + </div>
  197 + <!-- 晚高峰结束时间 END -->
  198 + </div>
  199 + <!-- 表单分组组件 form-group END -->
  200 +
  201 + <!-- 表单分组组件 form-group START -->
  202 + <div class="form-group">
  203 + <!-- 早高峰上行行驶时间 START -->
  204 + <div class="col-md-6">
  205 + <label class="control-label col-md-5"> 早高峰上行行驶时间: </label>
  206 + <div class="col-md-4">
  207 + <input type="text" class="form-control" name="earlyUpTime" id="earlyUpTimeInput" placeholder="早高峰上行行驶时间">
  208 + <span class="help-block"> 单位:分钟 </span>
  209 + </div>
  210 + </div>
  211 + <!-- 早高峰上行行驶时间 END -->
  212 +
  213 + <!-- 早高峰下行行驶时间 START -->
  214 + <div class="col-md-6">
  215 + <label class="control-label col-md-5"> 早高峰下行行驶时间: </label>
  216 + <div class="col-md-4">
  217 + <input type="text" class="form-control" name="earlyDownTime" id="earlyDownTimeInput" placeholder="早高峰下行行驶时间">
  218 + <span class="help-block"> 单位:分钟 </span>
  219 + </div>
  220 + </div>
  221 + <!-- 早高峰下行行驶时间 END -->
  222 + </div>
  223 + <!-- 表单分组组件 form-group END -->
  224 +
  225 + <!-- 表单分组组件 form-group START -->
  226 + <div class="form-group">
  227 + <!-- 晚高峰上行行驶时间 START -->
  228 + <div class="col-md-6">
  229 + <label class="control-label col-md-5"> 晚高峰上行行驶时间: </label>
  230 + <div class="col-md-4">
  231 + <input type="text" class="form-control" name="lateUpTime" id="lateUpTimeInput" placeholder="晚高峰上行行驶时间">
  232 + <span class="help-block"> 单位:分钟 </span>
  233 + </div>
  234 + </div>
  235 + <!-- 晚高峰上行行驶时间 END -->
  236 +
  237 + <!-- 晚高峰下行行驶时间 START -->
  238 + <div class="col-md-6">
  239 + <label class="control-label col-md-5"> 晚高峰下行行驶时间: </label>
  240 + <div class="col-md-4">
  241 + <input type="text" class="form-control" name="lateDownTime" id="lateDownTimeInput" placeholder="晚高峰下行行驶时间">
  242 + <span class="help-block"> 单位:分钟 </span>
  243 + </div>
  244 + </div>
  245 + <!-- 晚高峰下行行驶时间 END -->
  246 + </div>
  247 + <!-- 表单分组组件 form-group END -->
  248 +
  249 + <!-- 表单分组组件 form-group START -->
  250 + <div class="form-group">
  251 + <!-- 小夜高峰上行行驶时间 START -->
  252 + <div class="col-md-6">
  253 + <label class="control-label col-md-5"> 小夜高峰上行行驶时间: </label>
  254 + <div class="col-md-4">
  255 + <input type="text" class="form-control" name="nightStartTime" id="nightStartTimeInput" placeholder="小夜高峰上行行驶时间">
  256 + <span class="help-block"> 单位:分钟 </span>
  257 + </div>
  258 + </div>
  259 + <!-- 小夜高峰上行行驶时间 END -->
  260 +
  261 + <!-- 小夜高峰下行行驶时间 START -->
  262 + <div class="col-md-6">
  263 + <label class="control-label col-md-5"> 小夜高峰下行行驶时间: </label>
  264 + <div class="col-md-4">
  265 + <input type="text" class="form-control" name="nightEndTime" id="nightEndTimeInput" placeholder="晚高峰下行行驶时间">
  266 + <span class="help-block"> 单位:分钟 </span>
  267 + </div>
  268 + </div>
  269 + <!-- 小夜高峰下行行驶时间 END -->
  270 + </div>
  271 + <!-- 表单分组组件 form-group END -->
  272 +
  273 + <!-- 表单分组组件 form-group START -->
  274 + <div class="form-group">
  275 + <!-- 低谷上行行驶时间 START -->
  276 + <div class="col-md-6">
  277 + <label class="control-label col-md-5"> 低谷上行行驶时间: </label>
  278 + <div class="col-md-4">
  279 + <input type="text" class="form-control" name="troughUpTime" id="troughUpTimeInput" placeholder="低谷上行行驶时间">
  280 + <span class="help-block"> 单位:分钟 </span>
  281 + </div>
  282 + </div>
  283 + <!-- 低谷上行行驶时间 END -->
  284 +
  285 + <!-- 低谷下行行驶时间 START -->
  286 + <div class="col-md-6">
  287 + <label class="control-label col-md-5"> 低谷下行行驶时间: </label>
  288 + <div class="col-md-4">
  289 + <input type="text" class="form-control" name="troughDownTime" id="troughDownTimeInput" placeholder="低谷下行行驶时间">
  290 + <span class="help-block"> 单位:分钟 </span>
  291 + </div>
  292 + </div>
  293 + <!-- 低谷下行行驶时间 END -->
  294 + </div>
  295 + <!-- 表单分组组件 form-group END -->
  296 +
  297 + <!-- 表单分组组件 form-group START -->
  298 + <div class="form-group">
  299 + <!-- 停车场 START -->
  300 + <div class="col-md-6">
  301 + <label class="control-label col-md-5"><span class="required"> * </span> 停车场 : </label>
  302 + <div class="col-md-4">
  303 + <select name="carPark" class="form-control" id="carParkSelect"></select>
  304 + <!-- <input type="text" class="form-control" name="carPark" id="carParkInput" placeholder="停车场"> -->
  305 + </div>
  306 + </div>
  307 + <!-- 停车场 END -->
  308 +
  309 + <!-- 限速(平时)START -->
  310 + <div class="col-md-6">
  311 + <label class="control-label col-md-5"><span class="required"> * </span> 限速(平时): </label>
  312 + <div class="col-md-4">
  313 + <input type="text" class="form-control" name="speedLimit" id="speedLimitInput" placeholder="限速(平时)">
  314 + </div>
  315 + </div>
  316 + <!-- 限速(平时)END -->
  317 + </div>
  318 + <!-- 表单分组组件 form-group END -->
  319 +
  320 + <!-- 表单分组组件 form-group START -->
  321 + <div class="form-group">
  322 + <!-- 进场时间 START -->
  323 + <div class="col-md-6">
  324 + <label class="control-label col-md-5"> 进场时间 : </label>
  325 + <div class="col-md-4">
  326 + <input type="text" class="form-control" name="upInTimer" id="upInTimerInput" placeholder="上行进场时间">
  327 + <span class="help-block"> 描述:上行起点至停车场的进场时间 </span>
  328 + </div>
  329 + </div>
  330 + <!-- 进场时间 END -->
  331 +
  332 + <!-- 出场时间 START -->
  333 + <div class="col-md-6">
  334 + <label class="control-label col-md-5"> 出场时间 : </label>
  335 + <div class="col-md-4">
  336 + <input type="text" class="form-control" name="upOutTimer" id="upOutTimerInput" placeholder="上行出场时间">
  337 + <span class="help-block"> 描述:上行起点至停车场的出场时间 </span>
  338 + </div>
  339 + </div>
  340 + <!-- 出场时间 END -->
  341 + </div>
  342 + <!-- 表单分组组件 form-group END -->
  343 +
  344 + <!-- 表单分组组件 form-group START -->
  345 + <div class="form-group">
  346 + <!-- 进场里程 START -->
  347 + <div class="col-md-6">
  348 + <label class="control-label col-md-5"> 进场里程 : </label>
  349 + <div class="col-md-4">
  350 + <input type="text" class="form-control" name="upInMileage" id="upInMileageInput" placeholder="上行进场里程">
  351 + <span class="help-block"> 描述:上行起点至停车场的进场里程 </span>
  352 + </div>
  353 + </div>
  354 + <!-- 进场里程 END -->
  355 +
  356 + <!-- 出场里程 START -->
  357 + <div class="col-md-6">
  358 + <label class="control-label col-md-5"> 出场里程: </label>
  359 + <div class="col-md-4">
  360 + <input type="text" class="form-control" name="upOutMileage" id="upOutMileageInput" placeholder="上行出场里程">
  361 + <span class="help-block"> 描述:上行起点至停车场的出场里程 </span>
  362 + </div>
  363 + </div>
  364 + <!-- 出场里程 END -->
  365 + </div>
  366 + <!-- 表单分组组件 form-group END -->
  367 +
  368 + <!-- 表单分组组件 form-group START -->
  369 + <div class="form-group">
  370 + <!-- 进场时间2 START -->
  371 + <div class="col-md-6">
  372 + <label class="control-label col-md-5"> 进场时间2 : </label>
  373 + <div class="col-md-4">
  374 + <input type="text" class="form-control" name="downInTimer" id="downInTimerInput" placeholder="下行进场时间">
  375 + <span class="help-block"> 描述:下行起点至停车场的进场时间 </span>
  376 + </div>
  377 + </div>
  378 + <!-- 进场时间2 END -->
  379 +
  380 + <!-- 出场时间2 START -->
  381 + <div class="col-md-6">
  382 + <label class="control-label col-md-5"> 出场时间2: </label>
  383 + <div class="col-md-4">
  384 + <input type="text" class="form-control" name="downOutTimer" id="downOutTimerInput" placeholder="下行出场时间">
  385 + <span class="help-block"> 描述:下行起点至停车场的出场时间 </span>
  386 + </div>
  387 + </div>
  388 + <!-- 出场时间2 END -->
  389 + </div>
  390 + <!-- 表单分组组件 form-group END -->
  391 +
  392 + <!-- 表单分组组件 form-group START -->
  393 + <div class="form-group">
  394 + <!-- 进场里程2 START -->
  395 + <div class="col-md-6">
  396 + <label class="control-label col-md-5"> 进场里程2 : </label>
  397 + <div class="col-md-4">
  398 + <input type="text" class="form-control" name="downInMileage" id="downInMileageInput" placeholder="下行进场里程">
  399 + <span class="help-block"> 描述:下行起点至停车场的进场里程 </span>
  400 + </div>
  401 + </div>
  402 + <!-- 进场里程2 END -->
  403 +
  404 + <!-- 出场里程2 START -->
  405 + <div class="col-md-6">
  406 + <label class="control-label col-md-5"> 出场里程2: </label>
  407 + <div class="col-md-4">
  408 + <input type="text" class="form-control" name="downOutMileage" id="downOutMileageInput" placeholder="下行出场里程">
  409 + <span class="help-block"> 描述:下行起点至停车场的出场里程 </span>
  410 + </div>
  411 + </div>
  412 + <!-- 出场里程2 END -->
  413 + </div>
  414 + <!-- 表单分组组件 form-group END -->
  415 +
  416 + <!-- 表单分组组件 form-group START -->
  417 + <div class="form-group">
  418 + <!-- 越界 START -->
  419 + <div class="col-md-6">
  420 + <label class="control-label col-md-5"> 越界: </label>
  421 + <div class="col-md-4">
  422 + <input type="text" class="form-control" name="overflights" id="overflightsInput" placeholder="越界">
  423 + </div>
  424 + </div>
  425 + <!-- 越界 END -->
  426 +
  427 + <!-- 大间隔(平时)START -->
  428 + <div class="col-md-6">
  429 + <label class="control-label col-md-5"> 大间隔(平时): </label>
  430 + <div class="col-md-4">
  431 + <input type="text" class="form-control" name="intervalLg" id="intervalLgInput" placeholder="平时大间隔">
  432 + </div>
  433 + </div>
  434 + <!-- 大间隔(平时)END -->
  435 + </div>
  436 + <!-- 表单分组组件 form-group END -->
  437 +
  438 + <!-- 表单分组组件 form-group START -->
  439 + <div class="form-group">
  440 + <!-- 滞站 START -->
  441 + <div class="col-md-6">
  442 + <label class="control-label col-md-5"> 滞站: </label>
  443 + <div class="col-md-4">
  444 + <input type="text" class="form-control" name="lagStation" id="lagStationInput" placeholder="滞站">
  445 + </div>
  446 + </div>
  447 + <!-- 滞站 END -->
  448 +
  449 + <!-- 越站 START -->
  450 + <div class="col-md-6">
  451 + <label class="control-label col-md-5"> 越站: </label>
  452 + <div class="col-md-4">
  453 + <input type="text" class="form-control" name="skip" id="skipInput" placeholder="越站">
  454 + </div>
  455 + </div>
  456 + <!-- 越站 END -->
  457 + </div>
  458 + <!-- 表单分组组件 form-group END -->
  459 +
  460 + <!-- 表单分组组件 form-group START -->
  461 + <div class="form-group">
  462 + <!-- 超速 START -->
  463 + <div class="col-md-6">
  464 + <label class="control-label col-md-5"><span class="required"> * </span> 超速: </label>
  465 + <div class="col-md-4">
  466 + <input type="text" class="form-control" name="speeding" id="speedingInput" placeholder="超速">
  467 + </div>
  468 + </div>
  469 + <!-- 超速 END -->
  470 +
  471 + <!-- 串线 START -->
  472 + <div class="col-md-6">
  473 + <label class="control-label col-md-5"> 串线: </label>
  474 + <div class="col-md-4">
  475 + <input type="text" class="form-control" name="crossedLine" id="crossedLineInput" placeholder="串线">
  476 + </div>
  477 + </div>
  478 + <!-- 串线 END -->
  479 + </div>
  480 + <!-- 表单分组组件 form-group END -->
  481 +
  482 + <!-- 表单分组组件 form-group START -->
  483 + <div class="form-group">
  484 + <!-- 描述/说明 START -->
  485 + <div class="col-md-6">
  486 + <label class="col-md-5 control-label">描述/说明:</label>
  487 + <div class="col-md-6">
  488 + <textarea class="form-control" rows="3" name="descriptions" id="descriptionsInput" placeholder="描述/说明"></textarea>
  489 + </div>
458 490 </div>
459   - </div>
  491 + <!-- 描述/说明 END -->
  492 + </div>
  493 + <!-- 表单分组组件 form-group END -->
460 494 </div>
  495 + <!-- 表单字段内容 END -->
  496 +
  497 + <!-- 表单按钮组件 START -->
461 498 <div class="form-actions">
462 499 <div class="row">
463 500 <div class="col-md-offset-3 col-md-4">
... ... @@ -466,7 +503,13 @@
466 503 </div>
467 504 </div>
468 505 </div>
  506 + <!-- 表单按钮组件 END -->
469 507 </form>
  508 + <!-- lineinformation_add_form FORM END -->
470 509 </div>
  510 + <!-- 表单组件 END -->
471 511 </div>
  512 +<!-- 信息容器组件 END -->
  513 +
  514 +<!-- 线路标准信息修改片段JS模块 -->
472 515 <script src="/pages/base/lineinformation/js/lineinformation-edit-form.js"></script>
473 516 \ No newline at end of file
... ...
src/main/resources/static/pages/base/lineinformation/js/lineinformation-add-form.js
  1 +/**
  2 + * @description TODO(线路标准信息添加片段JS模块)
  3 + *
  4 + * @author bsth@lq
  5 + *
  6 + * @date 二〇一六年十月十八日 13:31:58
  7 + *
  8 + */
  9 +
1 10 $(function(){
2 11  
3 12 // 获取参数ID
... ... @@ -21,6 +30,35 @@ $(function(){
21 30  
22 31 });
23 32  
  33 + // 填充公司下拉框选择值
  34 + $get('/line/all', null, function(array){
  35 +
  36 + var opGroup = '<option value="">请选择...</option><optgroup label="线路">';
  37 +
  38 + var len_ = array.length;
  39 +
  40 + if(len_>0) {
  41 +
  42 + $.each(array, function(i, g){
  43 +
  44 + /*opGroup += '<option value="'+ g.id + '_' + g.lineCode +'">'+g.name+'</option>';*/
  45 + opGroup += '<option value="'+ g.id +'">'+g.name+'</option>';
  46 +
  47 + });
  48 +
  49 + }
  50 +
  51 + opGroup += '</optgroup>';
  52 +
  53 + $('#lineSelect').html(opGroup).select2();
  54 +
  55 +
  56 + $("#lineSelect").select2("val", lineId);
  57 +
  58 + /*$('#lineSelect').val(lineId);*/
  59 +
  60 + });
  61 +
24 62 $('.lineinformation_back').attr('href','/pages/base/lineinformation/list.html?no='+lineId);
25 63  
26 64 $('#lineIdInput').val(lineId);
... ... @@ -92,6 +130,13 @@ $(function(){
92 130 // 需要验证的表单元素
93 131 rules : {
94 132  
  133 + // 线路名称
  134 + 'lineName' : {
  135 +
  136 + //必填项
  137 + required:true,
  138 + },
  139 +
95 140 // 线路标准信息类型
96 141 'type' : {
97 142  
... ... @@ -118,6 +163,9 @@ $(function(){
118 163 // 上行里程
119 164 'upMileage' : {
120 165  
  166 + //必填项
  167 + required:true,
  168 +
121 169 // 必须输入合法的数字(负数,小数)。
122 170 number : true
123 171  
... ... @@ -126,6 +174,9 @@ $(function(){
126 174 // 下行里程
127 175 'downMileage' : {
128 176  
  177 + //必填项
  178 + required:true,
  179 +
129 180 // 必须输入合法的数字(负数,小数)。
130 181 number : true
131 182  
... ... @@ -134,6 +185,9 @@ $(function(){
134 185 // 上行行驶时间
135 186 'upTravelTime' : {
136 187  
  188 + //必填项
  189 + required:true,
  190 +
137 191 // 必须输入合法的数字(负数,小数)。
138 192 number : true
139 193  
... ... @@ -142,6 +196,9 @@ $(function(){
142 196 // 下行行驶时间
143 197 'downTravelTime' : {
144 198  
  199 + //必填项
  200 + required:true,
  201 +
145 202 // 必须输入合法的数字(负数,小数)。
146 203 number : true
147 204  
... ... @@ -299,9 +356,28 @@ $(function(){
299 356  
300 357 },
301 358  
  359 + // 停车场
  360 + 'carPark' : {
  361 +
  362 + //必填项
  363 + required:true
  364 +
  365 + },
  366 +
  367 + // 超速
  368 + 'speeding' : {
  369 +
  370 + //必填项
  371 + required:true
  372 +
  373 + },
  374 +
302 375 // 限速(平时)
303 376 'speedLimit' : {
304 377  
  378 + //必填项
  379 + required:true,
  380 +
305 381 // 必须输入合法的数字(负数,小数)。
306 382 number : true
307 383 },
... ...
src/main/resources/static/pages/base/lineinformation/js/lineinformation-details-form.js
  1 +/**
  2 + * @description TODO(线路标准信息详情片段JS模块)
  3 + *
  4 + * @author bsth@lq
  5 + *
  6 + * @date 二〇一六年十月十八日 13:31:58
  7 + *
  8 + */
  9 +
1 10 $(function() {
2 11  
3 12 // 获取参数值
... ... @@ -56,7 +65,7 @@ $(function() {
56 65 $('#carParkSelect').val(result.carPark);
57 66  
58 67 // 获取线路ID元素并设值
59   - // $('#lineIdInput').val(lineId);
  68 + $('#lineNameInput').val(result.line.name);
60 69  
61 70 });
62 71  
... ...
src/main/resources/static/pages/base/lineinformation/js/lineinformation-edit-form.js
  1 +/**
  2 + * @description TODO(线路标准信息修改片段JS模块)
  3 + *
  4 + * @author bsth@lq
  5 + *
  6 + * @date 二〇一六年十月十八日 13:31:58
  7 + *
  8 + */
1 9 $(function() {
2 10  
3 11 // 获取参数值
... ... @@ -57,6 +65,35 @@ $(function() {
57 65  
58 66 // 获取线路ID元素并设值
59 67 $('#lineIdInput').val(lineId);
  68 +
  69 + // 填充公司下拉框选择值
  70 + $get('/line/all', null, function(array){
  71 +
  72 + var opGroup = '<option value="">请选择...</option><optgroup label="线路">';
  73 +
  74 + var len_ = array.length;
  75 +
  76 + if(len_>0) {
  77 +
  78 + $.each(array, function(i, g){
  79 +
  80 + /*opGroup += '<option value="'+ g.id + '_' + g.lineCode +'">'+g.name+'</option>';*/
  81 + opGroup += '<option value="'+ g.id +'">'+g.name+'</option>';
  82 +
  83 + });
  84 +
  85 + }
  86 +
  87 + opGroup += '</optgroup>';
  88 +
  89 + $('#lineSelect').html(opGroup).select2();
  90 +
  91 +
  92 + $("#lineSelect").select2("val", lineId);
  93 +
  94 + /*$('#lineSelect').val(lineId);*/
  95 +
  96 + });
60 97  
61 98 });
62 99  
... ... @@ -127,6 +164,13 @@ $(function() {
127 164 // 需要验证的表单元素
128 165 rules : {
129 166  
  167 + // 线路名称
  168 + 'lineName' : {
  169 +
  170 + //必填项
  171 + required:true,
  172 + },
  173 +
130 174 // 线路标准信息类型
131 175 'type' : {
132 176  
... ... @@ -137,9 +181,6 @@ $(function() {
137 181 // 标准总里程
138 182 'totalMileage' : {
139 183  
140   - //必填项
141   - required:true,
142   -
143 184 // 必须输入合法的数字(负数,小数)。
144 185 number : true,
145 186  
... ... @@ -178,6 +219,9 @@ $(function() {
178 219 // 上行行驶时间
179 220 'upTravelTime' : {
180 221  
  222 + //必填项
  223 + required:true,
  224 +
181 225 // 必须输入合法的数字(负数,小数)。
182 226 number : true
183 227  
... ... @@ -186,6 +230,9 @@ $(function() {
186 230 // 下行行驶时间
187 231 'downTravelTime' : {
188 232  
  233 + //必填项
  234 + required:true,
  235 +
189 236 // 必须输入合法的数字(负数,小数)。
190 237 number : true
191 238  
... ... @@ -343,9 +390,28 @@ $(function() {
343 390  
344 391 },
345 392  
  393 + // 停车场
  394 + 'carPark' : {
  395 +
  396 + //必填项
  397 + required:true
  398 +
  399 + },
  400 +
  401 + // 超速
  402 + 'speeding' : {
  403 +
  404 + //必填项
  405 + required:true
  406 +
  407 + },
  408 +
346 409 // 限速(平时)
347 410 'speedLimit' : {
348 411  
  412 + //必填项
  413 + required:true,
  414 +
349 415 // 必须输入合法的数字(负数,小数)。
350 416 number : true
351 417 },
... ...
src/main/resources/static/pages/base/lineinformation/js/lineinformation-list-table.js
  1 +/**
  2 + * @description TODO(线路标准信息list页面片段JS模块)
  3 + *
  4 + * @author bsth@lq
  5 + *
  6 + * @date 二〇一六年十月十八日 13:31:58
  7 + *
  8 + */
1 9 $(function(){
2 10  
3 11 // 获取参数ID
... ... @@ -22,7 +30,7 @@ $(function(){
22 30 if(len>0) {
23 31  
24 32 // 先一个线路对应一个线路标准
25   - $('#lineinformation_add').hide();
  33 + // $('#lineinformation_add').hide();
26 34  
27 35 // 模版
28 36 tbodyHtml = template('lineinformation_table_temp',{list : result.content});
... ...
src/main/resources/static/pages/base/lineinformation/list.html
  1 +<!-- 片段标题 START -->
1 2 <div class="page-head">
2 3 <div class="page-title">
3 4 <h1>线路标准信息</h1>
4 5 </div>
5 6 </div>
  7 +<!-- 片段标题 END -->
6 8  
  9 +<!-- 线路标准信息导航栏组件 START -->
7 10 <ul class="page-breadcrumb breadcrumb">
8 11 <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
9 12 <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li>
10 13 <li><a href="/pages/base/line/list.html" data-pjax>线路信息</a> <i class="fa fa-circle"></i></li>
11 14 <li><span class="active">线路标准信息</span></li>
12 15 </ul>
  16 +<!-- 线路标准信息导航栏组件 START -->
13 17  
  18 +<!-- row 组件 START -->
14 19 <div class="row">
15 20 <div class="col-md-12">
  21 +
  22 + <!-- 信息容器组件 START -->
16 23 <div class="portlet light porttlet-fit bordered">
  24 +
  25 + <!-- portlet-title组件 START -->
17 26 <div class="portlet-title">
18 27 <div class="caption">
19 28 <i class="fa fa-info-circle font-dark"></i>
... ... @@ -28,8 +37,12 @@
28 37 </div>
29 38 </div>
30 39 </div>
  40 + <!-- portlet-title组件 END -->
  41 +
  42 + <!-- portlet-body 组件 START -->
31 43 <div class="portlet-body">
32 44 <div class="table-container" style="margin-top: 10px">
  45 + <!-- table组件 START -->
33 46 <table class="table table-striped table-bordered table-hover table-checkable" id="datatable_lineinformation">
34 47 <thead>
35 48 <tr role="row" class="heading">
... ... @@ -46,14 +59,22 @@
46 59 </thead>
47 60 <tbody></tbody>
48 61 </table>
  62 + <!-- table组件 END -->
  63 +
  64 + <!-- 分页栏组件 START -->
49 65 <div style="text-align: right;">
50 66 <ul id="pagination" class="pagination"></ul>
51 67 </div>
  68 + <!-- 分页栏组件 END -->
52 69 </div>
53 70 </div>
  71 + <!-- portlet-body 组件 END -->
54 72 </div>
  73 + <!-- 信息容器组件 END -->
55 74 </div>
56 75 </div>
  76 +<!-- row 组件 START -->
  77 +
57 78 <script type="text/html" id="lineinformation_table_temp">
58 79 {{each list as obj i }}
59 80 <tr>
... ... @@ -67,7 +88,13 @@
67 88 {{obj.line.name}}
68 89 </td>
69 90 <td>
70   - {{obj.type}}
  91 + {{if obj.type == 'zc'}}
  92 + 正常
  93 + {{else if obj.type == 'qj'}}
  94 + 区间
  95 + {{else if obj.type == 'fk'}}
  96 + 放空
  97 + {{/if}}
71 98 </td>
72 99 <td>
73 100 {{obj.upMileage}}
... ... @@ -88,4 +115,6 @@
88 115 </tr>
89 116 {{/each}}
90 117 </script>
  118 +
  119 +<!-- 线路标准信息list页面JS模块 -->
91 120 <script src="/pages/base/lineinformation/js/lineinformation-list-table.js"></script>
92 121 \ No newline at end of file
... ...