Commit 6d3b397321c7f1eb25dea7a34b48e068b1ae4711
1 parent
53696d59
线路与线路标准页面修改
Showing
7 changed files
with
1297 additions
and
5 deletions
src/main/resources/static/pages/base/line/js/line-details-info.js
| @@ -7,8 +7,6 @@ $(function(){ | @@ -7,8 +7,6 @@ $(function(){ | ||
| 7 | 7 | ||
| 8 | $get('/line/all',{id_eq:lineId},function(data) { | 8 | $get('/line/all',{id_eq:lineId},function(data) { |
| 9 | 9 | ||
| 10 | - console.log(data); | ||
| 11 | - | ||
| 12 | if(data) { | 10 | if(data) { |
| 13 | 11 | ||
| 14 | var tbodyHtml = template('line_details_temp',{list : data}); | 12 | var tbodyHtml = template('line_details_temp',{list : data}); |
src/main/resources/static/pages/base/lineinformation/details.html
0 → 100644
| 1 | +<div class="page-head"> | ||
| 2 | + <div class="page-title"> | ||
| 3 | + <h1>线路标准信息详情</h1> | ||
| 4 | + </div> | ||
| 5 | +</div> | ||
| 6 | + | ||
| 7 | +<ul class="page-breadcrumb breadcrumb"> | ||
| 8 | + <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li> | ||
| 9 | + <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li> | ||
| 10 | + <li><a href="/pages/base/line/list.html" data-pjax>线路信息</a> <i class="fa fa-circle"></i></li> | ||
| 11 | + <li><a href="/pages/base/lineinformation/list.html" class="back-up" data-pjax>线路标准信息</a> <i class="fa fa-circle"></i></li> | ||
| 12 | + <li><span class="active">线路标准信息详情</span></li> | ||
| 13 | +</ul> | ||
| 14 | + | ||
| 15 | +<div class="portlet light bordered"> | ||
| 16 | + | ||
| 17 | + <!-- 标题 --> | ||
| 18 | + <div class="portlet-title"> | ||
| 19 | + <div class="caption"> | ||
| 20 | + <i class="icon-equalizer font-red-sunglo"></i> | ||
| 21 | + <span class="caption-subject font-red-sunglo bold uppercase">线路标准信息详情</span> | ||
| 22 | + </div> | ||
| 23 | + <div class="actions"> | ||
| 24 | + <div class="btn-group btn-group-devided" data-toggle="buttons"> | ||
| 25 | + <a class="btn btn-circle back-up blue" href="/pages/base/lineinformation/list.html" data-pjax><i class="fa fa-reply"></i> 返回</a> | ||
| 26 | + </div> | ||
| 27 | + </div> | ||
| 28 | + </div> | ||
| 29 | + | ||
| 30 | + <!-- 表单 --> | ||
| 31 | + <div class="portlet-body form"> | ||
| 32 | + | ||
| 33 | + <!-- START FORM --> | ||
| 34 | + <form action="/lineinformation" class="form-horizontal" id="lineinformation_details_form" > | ||
| 35 | + | ||
| 36 | + <!-- 错误提示 --> | ||
| 37 | + <div class="alert alert-danger display-hide"> | ||
| 38 | + <button class="close" data-close="alert"></button> | ||
| 39 | + 您的输入有误,请检查下面的输入项 | ||
| 40 | + </div> | ||
| 41 | + | ||
| 42 | + <!-- 表单内容 --> | ||
| 43 | + <div class="form-body"> | ||
| 44 | + | ||
| 45 | + <!-- 线路信息ID --> | ||
| 46 | + <input type="hidden" name="line" id="lineIdInput"> | ||
| 47 | + | ||
| 48 | + <!-- 线路标准信息类型 --> | ||
| 49 | + <div class="form-group"> | ||
| 50 | + <label class="control-label col-md-3"> | ||
| 51 | + <span class="required"> * </span>线路标准信息类型: | ||
| 52 | + </label> | ||
| 53 | + <div class="col-md-4"> | ||
| 54 | + <select name="type" class="form-control" id="typeInput"> | ||
| 55 | + <option value="">-- 请选择类型 --</option> | ||
| 56 | + <option value="zc">正常</option> | ||
| 57 | + <option value="qj">区间</option> | ||
| 58 | + <option value="fk">放空</option> | ||
| 59 | + </select> | ||
| 60 | + </div> | ||
| 61 | + </div> | ||
| 62 | + | ||
| 63 | + <!-- 标准总里程 --> | ||
| 64 | + <div class="form-group"> | ||
| 65 | + <label class="control-label col-md-3"> | ||
| 66 | + <span class="required"> * </span>标准总里程: | ||
| 67 | + </label> | ||
| 68 | + <div class="col-md-4"> | ||
| 69 | + <input type="text" class="form-control" name="totalMileage" id="totalMileageInput" placeholder="标准总里程"> | ||
| 70 | + <span class="help-block"> 单位:公里 </span> | ||
| 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 | + <input type="text" class="form-control" name="emptyMileage" id="emptyMileageInput" placeholder="空放里程"> | ||
| 79 | + <span class="help-block"> 单位:公里 </span> | ||
| 80 | + </div> | ||
| 81 | + </div> | ||
| 82 | + | ||
| 83 | + <!-- 上行里程 --> | ||
| 84 | + <div class="form-group"> | ||
| 85 | + <label class="control-label col-md-3"> | ||
| 86 | + <span class="required"> * </span>上行里程: | ||
| 87 | + </label> | ||
| 88 | + <div class="col-md-4"> | ||
| 89 | + <input type="text" class="form-control" name="upMileage" id="upMileageInput" placeholder="上行里程"> | ||
| 90 | + <span class="help-block"> 单位:公里 </span> | ||
| 91 | + </div> | ||
| 92 | + </div> | ||
| 93 | + | ||
| 94 | + <!-- 下行里程 --> | ||
| 95 | + <div class="form-group"> | ||
| 96 | + <label class="control-label col-md-3"> | ||
| 97 | + <span class="required"> * </span>下行里程: | ||
| 98 | + </label> | ||
| 99 | + <div class="col-md-4"> | ||
| 100 | + <input type="text" class="form-control" name="downMileage" id="downMileageInput" placeholder="下行里程"> | ||
| 101 | + <span class="help-block"> 单位:公里 </span> | ||
| 102 | + </div> | ||
| 103 | + </div> | ||
| 104 | + | ||
| 105 | + <!-- 上行行驶时间 --> | ||
| 106 | + <div class="form-group"> | ||
| 107 | + <label class="control-label col-md-3"> 上行行驶时间: </label> | ||
| 108 | + <div class="col-md-4"> | ||
| 109 | + <input type="text" class="form-control" name="upTravelTime" id="upTravelTimeInput" placeholder="上行行驶时间"> | ||
| 110 | + <span class="help-block"> 单位:分钟 </span> | ||
| 111 | + </div> | ||
| 112 | + </div> | ||
| 113 | + | ||
| 114 | + <!-- 下行行驶时间 --> | ||
| 115 | + <div class="form-group"> | ||
| 116 | + <label class="control-label col-md-3"> 下行行驶时间: </label> | ||
| 117 | + <div class="col-md-4"> | ||
| 118 | + <input type="text" class="form-control" name="downTravelTime" id="downTravelTimeInput" placeholder="下行行驶时间"> | ||
| 119 | + <span class="help-block"> 单位:分钟 </span> | ||
| 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 | + <input type="text" class="form-control" name="earlyStartTime" id="earlyStartTimeInput" placeholder="早高峰开始时间"> | ||
| 128 | + <span class="help-block"> 格式:00:00 </span> | ||
| 129 | + </div> | ||
| 130 | + </div> | ||
| 131 | + | ||
| 132 | + <!-- 早高峰结束时间 --> | ||
| 133 | + <div class="form-group"> | ||
| 134 | + <label class="control-label col-md-3"> 早高峰结束时间: </label> | ||
| 135 | + <div class="col-md-4"> | ||
| 136 | + <input type="text" class="form-control" name="earlyEndTime" id="earlyEndTimeInput" placeholder="早高峰结束时间"> | ||
| 137 | + <span class="help-block"> 格式:00:00 </span> | ||
| 138 | + </div> | ||
| 139 | + </div> | ||
| 140 | + | ||
| 141 | + <!-- 早高峰上行行驶时间 --> | ||
| 142 | + <div class="form-group"> | ||
| 143 | + <label class="control-label col-md-3"> 早高峰上行行驶时间: </label> | ||
| 144 | + <div class="col-md-4"> | ||
| 145 | + <input type="text" class="form-control" name="earlyUpTime" id="earlyUpTimeInput" placeholder="早高峰上行行驶时间"> | ||
| 146 | + <span class="help-block"> 单位:分钟 </span> | ||
| 147 | + </div> | ||
| 148 | + </div> | ||
| 149 | + | ||
| 150 | + <!-- 早高峰下行行驶时间 --> | ||
| 151 | + <div class="form-group"> | ||
| 152 | + <label class="control-label col-md-3"> 早高峰下行行驶时间: </label> | ||
| 153 | + <div class="col-md-4"> | ||
| 154 | + <input type="text" class="form-control" name="earlyDownTime" id="earlyDownTimeInput" placeholder="早高峰下行行驶时间"> | ||
| 155 | + <span class="help-block"> 单位:分钟 </span> | ||
| 156 | + </div> | ||
| 157 | + </div> | ||
| 158 | + | ||
| 159 | + <!-- 晚高峰开始时间 --> | ||
| 160 | + <div class="form-group"> | ||
| 161 | + <label class="control-label col-md-3"> 晚高峰开始时间: </label> | ||
| 162 | + <div class="col-md-4"> | ||
| 163 | + <input type="text" class="form-control" name="lateStartTime" id="lateStartTimeInput" placeholder="晚高峰开始时间"> | ||
| 164 | + <span class="help-block"> 格式:00:00 </span> | ||
| 165 | + </div> | ||
| 166 | + </div> | ||
| 167 | + | ||
| 168 | + <!-- 晚高峰结束时间 --> | ||
| 169 | + <div class="form-group"> | ||
| 170 | + <label class="control-label col-md-3"> 晚高峰结束时间: </label> | ||
| 171 | + <div class="col-md-4"> | ||
| 172 | + <input type="text" class="form-control" name="lateEndTime" id="lateEndTimeInput" placeholder="晚高峰结束时间"> | ||
| 173 | + <span class="help-block"> 格式:00:00 </span> | ||
| 174 | + </div> | ||
| 175 | + </div> | ||
| 176 | + | ||
| 177 | + <!-- 晚高峰上行行驶时间 --> | ||
| 178 | + <div class="form-group"> | ||
| 179 | + <label class="control-label col-md-3"> 晚高峰上行行驶时间: </label> | ||
| 180 | + <div class="col-md-4"> | ||
| 181 | + <input type="text" class="form-control" name="lateUpTime" id="lateUpTimeInput" placeholder="晚高峰上行行驶时间"> | ||
| 182 | + <span class="help-block"> 单位:分钟 </span> | ||
| 183 | + </div> | ||
| 184 | + </div> | ||
| 185 | + | ||
| 186 | + <!-- 晚高峰下行行驶时间 --> | ||
| 187 | + <div class="form-group"> | ||
| 188 | + <label class="control-label col-md-3"> 晚高峰下行行驶时间: </label> | ||
| 189 | + <div class="col-md-4"> | ||
| 190 | + <input type="text" class="form-control" name="lateDownTime" id="lateDownTimeInput" placeholder="晚高峰下行行驶时间"> | ||
| 191 | + <span class="help-block"> 单位:分钟 </span> | ||
| 192 | + </div> | ||
| 193 | + </div> | ||
| 194 | + | ||
| 195 | + <!-- 小夜高峰上行行驶时间 --> | ||
| 196 | + <div class="form-group"> | ||
| 197 | + <label class="control-label col-md-3"> 小夜高峰上行行驶时间: </label> | ||
| 198 | + <div class="col-md-4"> | ||
| 199 | + <input type="text" class="form-control" name="nightStartTime" id="nightStartTimeInput" placeholder="小夜高峰上行行驶时间"> | ||
| 200 | + <span class="help-block"> 单位:分钟 </span> | ||
| 201 | + </div> | ||
| 202 | + </div> | ||
| 203 | + | ||
| 204 | + <!-- 小夜高峰下行行驶时间 --> | ||
| 205 | + <div class="form-group"> | ||
| 206 | + <label class="control-label col-md-3"> 小夜高峰下行行驶时间: </label> | ||
| 207 | + <div class="col-md-4"> | ||
| 208 | + <input type="text" class="form-control" name="nightEndTime" id="nightEndTimeInput" placeholder="晚高峰下行行驶时间"> | ||
| 209 | + <span class="help-block"> 单位:分钟 </span> | ||
| 210 | + </div> | ||
| 211 | + </div> | ||
| 212 | + | ||
| 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="troughUpTime" id="troughUpTimeInput" placeholder="低谷上行行驶时间"> | ||
| 218 | + <span class="help-block"> 单位:分钟 </span> | ||
| 219 | + </div> | ||
| 220 | + </div> | ||
| 221 | + | ||
| 222 | + <!-- 低谷下行行驶时间 --> | ||
| 223 | + <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="troughDownTime" id="troughDownTimeInput" placeholder="低谷下行行驶时间"> | ||
| 227 | + <span class="help-block"> 单位:分钟 </span> | ||
| 228 | + </div> | ||
| 229 | + </div> | ||
| 230 | + | ||
| 231 | + <!-- 停车场 --> | ||
| 232 | + <div class="form-group"> | ||
| 233 | + <label class="control-label col-md-3"> 停车场 : </label> | ||
| 234 | + <div class="col-md-4"> | ||
| 235 | + <input type="text" class="form-control" name="carPark" id="carParkInput" placeholder="停车场"> | ||
| 236 | + </div> | ||
| 237 | + </div> | ||
| 238 | + | ||
| 239 | + <!-- 进场时间 --> | ||
| 240 | + <div class="form-group"> | ||
| 241 | + <label class="control-label col-md-3"> 进场时间 : </label> | ||
| 242 | + <div class="col-md-4"> | ||
| 243 | + <input type="text" class="form-control" name="paradeTime" id="paradeTimeInput" placeholder="进场时间"> | ||
| 244 | + <span class="help-block"> 描述:起点至停车场的时间 </span> | ||
| 245 | + </div> | ||
| 246 | + </div> | ||
| 247 | + | ||
| 248 | + <!-- 出场时间 --> | ||
| 249 | + <div class="form-group"> | ||
| 250 | + <label class="control-label col-md-3"> 出场时间 : </label> | ||
| 251 | + <div class="col-md-4"> | ||
| 252 | + <input type="text" class="form-control" name="outTime" id="outTimeInput" placeholder="出场时间"> | ||
| 253 | + <span class="help-block"> 描述:停车场至起点的时间 </span> | ||
| 254 | + </div> | ||
| 255 | + </div> | ||
| 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="paradeMileage" id="paradeMileageInput" 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="outMileage" id="outMileageInput" 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="earlyIntervalLg" id="earlyIntervalLgInput" placeholder="早高峰大间隔"> | ||
| 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="lateIntervalLg" id="lateIntervalLgInput" placeholder="晚高峰大间隔"> | ||
| 288 | + </div> | ||
| 289 | + </div> | ||
| 290 | + | ||
| 291 | + <!-- 平时大间隔 --> | ||
| 292 | + <div class="form-group"> | ||
| 293 | + <label class="control-label col-md-3"> 平时大间隔: </label> | ||
| 294 | + <div class="col-md-4"> | ||
| 295 | + <input type="text" class="form-control" name="intervalLg" id="intervalLgInput" placeholder="平时大间隔"> | ||
| 296 | + </div> | ||
| 297 | + </div> | ||
| 298 | + | ||
| 299 | + <!-- 限速(平时) --> | ||
| 300 | + <div class="form-group"> | ||
| 301 | + <label class="control-label col-md-3"> 限速(平时): </label> | ||
| 302 | + <div class="col-md-4"> | ||
| 303 | + <input type="text" class="form-control" name="speedLimit" id="speedLimitInput" placeholder="限速(平时)"> | ||
| 304 | + </div> | ||
| 305 | + </div> | ||
| 306 | + | ||
| 307 | + <!-- 限速(雨天) --> | ||
| 308 | + <div class="form-group"> | ||
| 309 | + <label class="control-label col-md-3"> 限速(雨天): </label> | ||
| 310 | + <div class="col-md-4"> | ||
| 311 | + <input type="text" class="form-control" name="rainLimit" id="rainLimitInput" placeholder="限速(雨天)"> | ||
| 312 | + </div> | ||
| 313 | + </div> | ||
| 314 | + | ||
| 315 | + <!-- 限速(大雾) --> | ||
| 316 | + <div class="form-group"> | ||
| 317 | + <label class="control-label col-md-3"> 限速(大雾): </label> | ||
| 318 | + <div class="col-md-4"> | ||
| 319 | + <input type="text" class="form-control" name="fogLimit" id="fogLimitInput" placeholder="限速(大雾)"> | ||
| 320 | + </div> | ||
| 321 | + </div> | ||
| 322 | + | ||
| 323 | + <!-- 限速(冰雪) --> | ||
| 324 | + <div class="form-group"> | ||
| 325 | + <label class="control-label col-md-3"> 限速(冰雪): </label> | ||
| 326 | + <div class="col-md-4"> | ||
| 327 | + <input type="text" class="form-control" name="snowLimit" id="snowLimitInput" placeholder="限速(冰雪)"> | ||
| 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="festivalSpeedLimit" id="festivalSpeedLimitInput" placeholder="限速(节庆)"> | ||
| 336 | + </div> | ||
| 337 | + </div> | ||
| 338 | + | ||
| 339 | + <!-- 滞站 --> | ||
| 340 | + <div class="form-group"> | ||
| 341 | + <label class="control-label col-md-3"> 滞站: </label> | ||
| 342 | + <div class="col-md-4"> | ||
| 343 | + <input type="text" class="form-control" name="lagStation" id="lagStationInput" placeholder="滞站"> | ||
| 344 | + </div> | ||
| 345 | + </div> | ||
| 346 | + | ||
| 347 | + <!-- 越站 --> | ||
| 348 | + <div class="form-group"> | ||
| 349 | + <label class="control-label col-md-3"> 越站: </label> | ||
| 350 | + <div class="col-md-4"> | ||
| 351 | + <input type="text" class="form-control" name="Skip" id="SkipInput" placeholder="越站"> | ||
| 352 | + </div> | ||
| 353 | + </div> | ||
| 354 | + | ||
| 355 | + <!-- 超速 --> | ||
| 356 | + <div class="form-group"> | ||
| 357 | + <label class="control-label col-md-3"> 超速: </label> | ||
| 358 | + <div class="col-md-4"> | ||
| 359 | + <input type="text" class="form-control" name="speeding" id="speedingInput" placeholder="超速"> | ||
| 360 | + </div> | ||
| 361 | + </div> | ||
| 362 | + | ||
| 363 | + <!-- 串线 --> | ||
| 364 | + <div class="form-group"> | ||
| 365 | + <label class="control-label col-md-3"> 串线: </label> | ||
| 366 | + <div class="col-md-4"> | ||
| 367 | + <input type="text" class="form-control" name="crossedLine" id="crossedLineInput" placeholder="串线"> | ||
| 368 | + </div> | ||
| 369 | + </div> | ||
| 370 | + | ||
| 371 | + <!-- 越界 --> | ||
| 372 | + <div class="form-group"> | ||
| 373 | + <label class="control-label col-md-3"> 越界: </label> | ||
| 374 | + <div class="col-md-4"> | ||
| 375 | + <input type="text" class="form-control" name="overflights" id="overflightsInput" placeholder="越界"> | ||
| 376 | + </div> | ||
| 377 | + </div> | ||
| 378 | + | ||
| 379 | + <!-- 描述/说明 --> | ||
| 380 | + <div class="form-group"> | ||
| 381 | + <label class="col-md-3 control-label">描述/说明:</label> | ||
| 382 | + <div class="col-md-4"> | ||
| 383 | + <textarea class="form-control" rows="3" name="descriptions" id="descriptionsInput" placeholder="描述/说明"></textarea> | ||
| 384 | + </div> | ||
| 385 | + </div> | ||
| 386 | + </div> | ||
| 387 | + </form> | ||
| 388 | + </div> | ||
| 389 | +</div> | ||
| 390 | +<script src="/pages/base/lineinformation/js/lineinformation-details-form.js"></script> | ||
| 0 | \ No newline at end of file | 391 | \ No newline at end of file |
src/main/resources/static/pages/base/lineinformation/edit.html
0 → 100644
| 1 | +<div class="page-head"> | ||
| 2 | + <div class="page-title"> | ||
| 3 | + <h1>修改线路标准信息</h1> | ||
| 4 | + </div> | ||
| 5 | +</div> | ||
| 6 | + | ||
| 7 | +<ul class="page-breadcrumb breadcrumb"> | ||
| 8 | + <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li> | ||
| 9 | + <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li> | ||
| 10 | + <li><a href="/pages/base/line/list.html" data-pjax>线路信息</a> <i class="fa fa-circle"></i></li> | ||
| 11 | + <li><a href="/pages/base/line/lineinformation/lineinformation.html" class="back-up" data-pjax>线路标准信息</a> <i class="fa fa-circle"></i></li> | ||
| 12 | + <li><span class="active">修改线路标准信息</span></li> | ||
| 13 | +</ul> | ||
| 14 | + | ||
| 15 | +<div class="portlet light bordered"> | ||
| 16 | + | ||
| 17 | + <!-- 标题 --> | ||
| 18 | + <div class="portlet-title"> | ||
| 19 | + <div class="caption"> | ||
| 20 | + <i class="icon-equalizer font-red-sunglo"></i> | ||
| 21 | + <span class="caption-subject font-red-sunglo bold uppercase">添加线路标准信息</span> | ||
| 22 | + </div> | ||
| 23 | + </div> | ||
| 24 | + | ||
| 25 | + <!-- 表单 --> | ||
| 26 | + <div class="portlet-body form"> | ||
| 27 | + | ||
| 28 | + <!-- START FORM --> | ||
| 29 | + <form action="/lineinformation" class="form-horizontal" id="lineinformation_edit_form" > | ||
| 30 | + | ||
| 31 | + <!-- 错误提示 --> | ||
| 32 | + <div class="alert alert-danger display-hide"> | ||
| 33 | + <button class="close" data-close="alert"></button> | ||
| 34 | + 您的输入有误,请检查下面的输入项 | ||
| 35 | + </div> | ||
| 36 | + | ||
| 37 | + <!-- 表单内容 --> | ||
| 38 | + <div class="form-body"> | ||
| 39 | + | ||
| 40 | + <!-- 线路信息ID --> | ||
| 41 | + <input type="hidden" name="id" id="lineinformationId"> | ||
| 42 | + | ||
| 43 | + <!-- 线路标准信息类型 --> | ||
| 44 | + <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 | + <input type="text" class="form-control" name="carPark" id="carParkInput" placeholder="停车场"> | ||
| 231 | + </div> | ||
| 232 | + </div> | ||
| 233 | + | ||
| 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="paradeTime" id="paradeTimeInput" placeholder="进场时间"> | ||
| 239 | + <span class="help-block"> 描述:起点至停车场的时间 </span> | ||
| 240 | + </div> | ||
| 241 | + </div> | ||
| 242 | + | ||
| 243 | + <!-- 出场时间 --> | ||
| 244 | + <div class="form-group"> | ||
| 245 | + <label class="control-label col-md-3"> 出场时间 : </label> | ||
| 246 | + <div class="col-md-4"> | ||
| 247 | + <input type="text" class="form-control" name="outTime" id="outTimeInput" placeholder="出场时间"> | ||
| 248 | + <span class="help-block"> 描述:停车场至起点的时间 </span> | ||
| 249 | + </div> | ||
| 250 | + </div> | ||
| 251 | + | ||
| 252 | + <!-- 进场里程 --> | ||
| 253 | + <div class="form-group"> | ||
| 254 | + <label class="control-label col-md-3"> 进场里程 : </label> | ||
| 255 | + <div class="col-md-4"> | ||
| 256 | + <input type="text" class="form-control" name="paradeMileage" id="paradeMileageInput" placeholder="进场里程"> | ||
| 257 | + <span class="help-block"> 描述:起点至停车场的里程 </span> | ||
| 258 | + </div> | ||
| 259 | + </div> | ||
| 260 | + | ||
| 261 | + <!-- 出场里程 --> | ||
| 262 | + <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="outMileage" id="outMileageInput" placeholder="出场里程"> | ||
| 266 | + <span class="help-block"> 描述:停车场至起点的里程 </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="earlyIntervalLg" id="earlyIntervalLgInput" placeholder="早高峰大间隔"> | ||
| 275 | + </div> | ||
| 276 | + </div> | ||
| 277 | + | ||
| 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="lateIntervalLg" id="lateIntervalLgInput" placeholder="晚高峰大间隔"> | ||
| 283 | + </div> | ||
| 284 | + </div> | ||
| 285 | + | ||
| 286 | + <!-- 平时大间隔 --> | ||
| 287 | + <div class="form-group"> | ||
| 288 | + <label class="control-label col-md-3"> 平时大间隔: </label> | ||
| 289 | + <div class="col-md-4"> | ||
| 290 | + <input type="text" class="form-control" name="intervalLg" id="intervalLgInput" placeholder="平时大间隔"> | ||
| 291 | + </div> | ||
| 292 | + </div> | ||
| 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="speedLimit" id="speedLimitInput" placeholder="限速(平时)"> | ||
| 299 | + </div> | ||
| 300 | + </div> | ||
| 301 | + | ||
| 302 | + <!-- 限速(雨天) --> | ||
| 303 | + <div class="form-group"> | ||
| 304 | + <label class="control-label col-md-3"> 限速(雨天): </label> | ||
| 305 | + <div class="col-md-4"> | ||
| 306 | + <input type="text" class="form-control" name="rainLimit" id="rainLimitInput" placeholder="限速(雨天)"> | ||
| 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="fogLimit" id="fogLimitInput" placeholder="限速(大雾)"> | ||
| 315 | + </div> | ||
| 316 | + </div> | ||
| 317 | + | ||
| 318 | + <!-- 限速(冰雪) --> | ||
| 319 | + <div class="form-group"> | ||
| 320 | + <label class="control-label col-md-3"> 限速(冰雪): </label> | ||
| 321 | + <div class="col-md-4"> | ||
| 322 | + <input type="text" class="form-control" name="snowLimit" id="snowLimitInput" placeholder="限速(冰雪)"> | ||
| 323 | + </div> | ||
| 324 | + </div> | ||
| 325 | + | ||
| 326 | + <!-- 限速(节庆) --> | ||
| 327 | + <div class="form-group"> | ||
| 328 | + <label class="control-label col-md-3"> 限速(节庆): </label> | ||
| 329 | + <div class="col-md-4"> | ||
| 330 | + <input type="text" class="form-control" name="festivalSpeedLimit" id="festivalSpeedLimitInput" placeholder="限速(节庆)"> | ||
| 331 | + </div> | ||
| 332 | + </div> | ||
| 333 | + | ||
| 334 | + <!-- 滞站 --> | ||
| 335 | + <div class="form-group"> | ||
| 336 | + <label class="control-label col-md-3"> 滞站: </label> | ||
| 337 | + <div class="col-md-4"> | ||
| 338 | + <input type="text" class="form-control" name="lagStation" id="lagStationInput" placeholder="滞站"> | ||
| 339 | + </div> | ||
| 340 | + </div> | ||
| 341 | + | ||
| 342 | + <!-- 越站 --> | ||
| 343 | + <div class="form-group"> | ||
| 344 | + <label class="control-label col-md-3"> 越站: </label> | ||
| 345 | + <div class="col-md-4"> | ||
| 346 | + <input type="text" class="form-control" name="Skip" id="SkipInput" placeholder="越站"> | ||
| 347 | + </div> | ||
| 348 | + </div> | ||
| 349 | + | ||
| 350 | + <!-- 超速 --> | ||
| 351 | + <div class="form-group"> | ||
| 352 | + <label class="control-label col-md-3"> 超速: </label> | ||
| 353 | + <div class="col-md-4"> | ||
| 354 | + <input type="text" class="form-control" name="speeding" id="speedingInput" placeholder="超速"> | ||
| 355 | + </div> | ||
| 356 | + </div> | ||
| 357 | + | ||
| 358 | + <!-- 串线 --> | ||
| 359 | + <div class="form-group"> | ||
| 360 | + <label class="control-label col-md-3"> 串线: </label> | ||
| 361 | + <div class="col-md-4"> | ||
| 362 | + <input type="text" class="form-control" name="crossedLine" id="crossedLineInput" placeholder="串线"> | ||
| 363 | + </div> | ||
| 364 | + </div> | ||
| 365 | + | ||
| 366 | + <!-- 越界 --> | ||
| 367 | + <div class="form-group"> | ||
| 368 | + <label class="control-label col-md-3"> 越界: </label> | ||
| 369 | + <div class="col-md-4"> | ||
| 370 | + <input type="text" class="form-control" name="overflights" id="overflightsInput" placeholder="越界"> | ||
| 371 | + </div> | ||
| 372 | + </div> | ||
| 373 | + | ||
| 374 | + <!-- 描述/说明 --> | ||
| 375 | + <div class="form-group"> | ||
| 376 | + <label class="col-md-3 control-label">描述/说明:</label> | ||
| 377 | + <div class="col-md-4"> | ||
| 378 | + <textarea class="form-control" rows="3" name="descriptions" id="descriptionsInput" placeholder="描述/说明"></textarea> | ||
| 379 | + </div> | ||
| 380 | + </div> | ||
| 381 | + </div> | ||
| 382 | + <div class="form-actions"> | ||
| 383 | + <div class="row"> | ||
| 384 | + <div class="col-md-offset-3 col-md-4"> | ||
| 385 | + <button type="submit" class="btn green" ><i class="fa fa-check"></i> 提交</button> | ||
| 386 | + <a type="button" class="btn default back-up" href="lineinformation.html" data-pjax><i class="fa fa-times"></i> 取消</a> | ||
| 387 | + </div> | ||
| 388 | + </div> | ||
| 389 | + </div> | ||
| 390 | + </form> | ||
| 391 | + </div> | ||
| 392 | +</div> | ||
| 393 | +<script src="/pages/base/lineinformation/js/lineinformation-edit-form.js"></script> | ||
| 0 | \ No newline at end of file | 394 | \ No newline at end of file |
src/main/resources/static/pages/base/lineinformation/js/lineinformation-details-form.js
0 → 100644
| 1 | +$(function() { | ||
| 2 | + | ||
| 3 | + var lineinformationId = $.url().param('lineinformationId'); | ||
| 4 | + | ||
| 5 | + var lineId = $.url().param('lineId'); | ||
| 6 | + | ||
| 7 | + if(lineinformationId && lineId) { | ||
| 8 | + | ||
| 9 | + // 根据ID查询详细信息 | ||
| 10 | + $get('/lineInformation/' + lineinformationId ,null, function(result){ | ||
| 11 | + | ||
| 12 | + console.log(result); | ||
| 13 | + | ||
| 14 | + $('.back-up').attr('href','/pages/base/lineinformation/list.html?lineId='+lineId); | ||
| 15 | + | ||
| 16 | + $('input,select,textarea','#lineinformation_details_form').attr('Disabled','Disabled'); | ||
| 17 | + | ||
| 18 | + // 如果不为空 | ||
| 19 | + if(result) { | ||
| 20 | + | ||
| 21 | + putFormData(result, '#lineinformation_details_form'); | ||
| 22 | + | ||
| 23 | + $('#typeInput').val(result.type); | ||
| 24 | + | ||
| 25 | + } | ||
| 26 | + | ||
| 27 | + }); | ||
| 28 | + | ||
| 29 | + } else { | ||
| 30 | + | ||
| 31 | + // 缺少ID | ||
| 32 | + layer.confirm('【ID缺失,请点击返回,重新进行查看线路标准信息详情操作】', { | ||
| 33 | + btn : [ '返回' ],icon: 3, title:'提示' | ||
| 34 | + }, function(index){ | ||
| 35 | + layer.close(index); | ||
| 36 | + loadPage('/pages/base/lineinformation/list.html'); | ||
| 37 | + }); | ||
| 38 | + | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | +}); | ||
| 0 | \ No newline at end of file | 42 | \ No newline at end of file |
src/main/resources/static/pages/base/lineinformation/js/lineinformation-edit-form.js
0 → 100644
| 1 | +$(function() { | ||
| 2 | + | ||
| 3 | + // 获取参数ID | ||
| 4 | + var lineinformationId = $.url().param('lineinformationId'); | ||
| 5 | + | ||
| 6 | + // 获取参数ID | ||
| 7 | + var lineId = $.url().param('lineId'); | ||
| 8 | + | ||
| 9 | + if(lineinformationId && lineId) { | ||
| 10 | + | ||
| 11 | + $('.back-up').attr('href','/pages/base/lineinformation/list.html?lineId='+lineId); | ||
| 12 | + | ||
| 13 | + $('#lineinformationId').val(lineinformationId); | ||
| 14 | + | ||
| 15 | + // 根据ID查询详细信息 | ||
| 16 | + $get('/lineInformation/' + lineinformationId ,null, function(result){ | ||
| 17 | + | ||
| 18 | + console.log(result); | ||
| 19 | + | ||
| 20 | + // 如果不为空 | ||
| 21 | + if(result) { | ||
| 22 | + | ||
| 23 | + $('#typeInput').val(result.type); | ||
| 24 | + | ||
| 25 | + putFormData(result, '#lineinformation_edit_form'); | ||
| 26 | + | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + }); | ||
| 30 | + | ||
| 31 | + // 日期控件 | ||
| 32 | + $('#earlyStartTimeInput').datetimepicker({ | ||
| 33 | + | ||
| 34 | + format : 'HH:mm', | ||
| 35 | + | ||
| 36 | + locale: 'zh-cn', | ||
| 37 | + }); | ||
| 38 | + | ||
| 39 | + // 日期控件 | ||
| 40 | + $('#earlyEndTimeInput').datetimepicker({ | ||
| 41 | + | ||
| 42 | + format : 'HH:mm', | ||
| 43 | + | ||
| 44 | + locale: 'zh-cn' | ||
| 45 | + | ||
| 46 | + }); | ||
| 47 | + | ||
| 48 | + // 日期控件 | ||
| 49 | + $('#lateStartTimeInput').datetimepicker({ | ||
| 50 | + | ||
| 51 | + format : 'HH:mm', | ||
| 52 | + | ||
| 53 | + locale: 'zh-cn' | ||
| 54 | + | ||
| 55 | + }); | ||
| 56 | + | ||
| 57 | + // 日期控件 | ||
| 58 | + $('#lateEndTimeInput').datetimepicker({ | ||
| 59 | + | ||
| 60 | + format : 'HH:mm', | ||
| 61 | + | ||
| 62 | + locale: 'zh-cn' | ||
| 63 | + | ||
| 64 | + }); | ||
| 65 | + | ||
| 66 | + // 定义表单 | ||
| 67 | + var form = $('#lineinformation_add_form'); | ||
| 68 | + | ||
| 69 | + // 定义表单异常 | ||
| 70 | + var error = $('.alert-danger',form); | ||
| 71 | + | ||
| 72 | + form.validate({ | ||
| 73 | + | ||
| 74 | + // 错误提示元素span对象 | ||
| 75 | + errorElement : 'span', | ||
| 76 | + | ||
| 77 | + // 错误提示元素class名称 | ||
| 78 | + errorClass : 'help-block help-block-error', | ||
| 79 | + | ||
| 80 | + // 验证错误获取焦点 | ||
| 81 | + focusInvalid : true, | ||
| 82 | + | ||
| 83 | + // 需要验证的表单元素 | ||
| 84 | + rules : { | ||
| 85 | + | ||
| 86 | + // 线路标准信息类型 | ||
| 87 | + 'type' : { | ||
| 88 | + | ||
| 89 | + //必填项 | ||
| 90 | + required:true, | ||
| 91 | + }, | ||
| 92 | + | ||
| 93 | + // 标准总里程 | ||
| 94 | + 'totalMileage' : { | ||
| 95 | + | ||
| 96 | + //必填项 | ||
| 97 | + required:true, | ||
| 98 | + | ||
| 99 | + // 必须输入合法的数字(负数,小数)。 | ||
| 100 | + number : true, | ||
| 101 | + | ||
| 102 | + }, | ||
| 103 | + | ||
| 104 | + // 空放里程 | ||
| 105 | + 'emptyMileage' : { | ||
| 106 | + | ||
| 107 | + // 必须输入合法的数字(负数,小数)。 | ||
| 108 | + number : true | ||
| 109 | + | ||
| 110 | + }, | ||
| 111 | + | ||
| 112 | + // 上行里程 | ||
| 113 | + 'upMileage' : { | ||
| 114 | + | ||
| 115 | + //必填项 | ||
| 116 | + required:true, | ||
| 117 | + | ||
| 118 | + // 必须输入合法的数字(负数,小数)。 | ||
| 119 | + number : true | ||
| 120 | + | ||
| 121 | + }, | ||
| 122 | + | ||
| 123 | + // 下行里程 | ||
| 124 | + 'downMileage' : { | ||
| 125 | + | ||
| 126 | + //必填项 | ||
| 127 | + required:true, | ||
| 128 | + | ||
| 129 | + // 必须输入合法的数字(负数,小数)。 | ||
| 130 | + number : true | ||
| 131 | + | ||
| 132 | + }, | ||
| 133 | + | ||
| 134 | + // 上行行驶时间 | ||
| 135 | + 'upTravelTime' : { | ||
| 136 | + | ||
| 137 | + // 必须输入合法的数字(负数,小数)。 | ||
| 138 | + number : true | ||
| 139 | + | ||
| 140 | + }, | ||
| 141 | + | ||
| 142 | + // 下行行驶时间 | ||
| 143 | + 'downTravelTime' : { | ||
| 144 | + | ||
| 145 | + // 必须输入合法的数字(负数,小数)。 | ||
| 146 | + number : true | ||
| 147 | + | ||
| 148 | + }, | ||
| 149 | + | ||
| 150 | + // 早高峰开始时间 | ||
| 151 | + 'earlyStartTime' : { | ||
| 152 | + | ||
| 153 | + //验证日期格式(类似00:00的格式,不验证日期准确性只验证格 | ||
| 154 | + isDate : true | ||
| 155 | + | ||
| 156 | + }, | ||
| 157 | + | ||
| 158 | + // 早高峰结束时间 | ||
| 159 | + 'earlyEndTime' : { | ||
| 160 | + | ||
| 161 | + //验证日期格式(类似00:00的格式,不验证日期准确性只验证格 | ||
| 162 | + isDate : true | ||
| 163 | + | ||
| 164 | + }, | ||
| 165 | + | ||
| 166 | + // 早高峰上行行驶时间 | ||
| 167 | + 'earlyUpTime' : { | ||
| 168 | + | ||
| 169 | + // 必须输入合法的数字(负数,小数)。 | ||
| 170 | + number : true | ||
| 171 | + | ||
| 172 | + }, | ||
| 173 | + | ||
| 174 | + // 早高峰下行行驶时间 | ||
| 175 | + 'earlyDownTime' : { | ||
| 176 | + | ||
| 177 | + // 必须输入合法的数字(负数,小数)。 | ||
| 178 | + number : true | ||
| 179 | + | ||
| 180 | + }, | ||
| 181 | + | ||
| 182 | + // 晚高峰开始时间 | ||
| 183 | + 'lateStartTime' : { | ||
| 184 | + | ||
| 185 | + //验证日期格式(类似00:00的格式,不验证日期准确性只验证格 | ||
| 186 | + isDate : true | ||
| 187 | + | ||
| 188 | + }, | ||
| 189 | + | ||
| 190 | + // 晚高峰结束时间 | ||
| 191 | + 'lateEndTime' : { | ||
| 192 | + | ||
| 193 | + //验证日期格式(类似00:00的格式,不验证日期准确性只验证格 | ||
| 194 | + isDate : true | ||
| 195 | + | ||
| 196 | + }, | ||
| 197 | + | ||
| 198 | + // 晚高峰上行行驶时间 | ||
| 199 | + 'lateUpTime' : { | ||
| 200 | + | ||
| 201 | + // 必须输入合法的数字(负数,小数)。 | ||
| 202 | + number : true | ||
| 203 | + | ||
| 204 | + }, | ||
| 205 | + | ||
| 206 | + // 晚高峰下行行驶时间 | ||
| 207 | + 'lateDownTime' : { | ||
| 208 | + | ||
| 209 | + // 必须输入合法的数字(负数,小数)。 | ||
| 210 | + number : true | ||
| 211 | + | ||
| 212 | + }, | ||
| 213 | + | ||
| 214 | + // 小夜高峰上行行驶时间 | ||
| 215 | + 'nightStartTime' : { | ||
| 216 | + | ||
| 217 | + // 必须输入合法的数字(负数,小数)。 | ||
| 218 | + number : true | ||
| 219 | + | ||
| 220 | + }, | ||
| 221 | + | ||
| 222 | + // 晚高峰下行行驶时间 | ||
| 223 | + 'nightEndTime' : { | ||
| 224 | + | ||
| 225 | + // 必须输入合法的数字(负数,小数)。 | ||
| 226 | + number : true | ||
| 227 | + | ||
| 228 | + }, | ||
| 229 | + | ||
| 230 | + // 低谷上行行驶时间 | ||
| 231 | + 'troughUpTime' : { | ||
| 232 | + | ||
| 233 | + // 必须输入合法的数字(负数,小数)。 | ||
| 234 | + number : true | ||
| 235 | + | ||
| 236 | + }, | ||
| 237 | + | ||
| 238 | + // 低谷下行行驶时间 | ||
| 239 | + 'troughDownTime' : { | ||
| 240 | + | ||
| 241 | + // 必须输入合法的数字(负数,小数)。 | ||
| 242 | + number : true | ||
| 243 | + | ||
| 244 | + }, | ||
| 245 | + | ||
| 246 | + // 进场时间 | ||
| 247 | + 'paradeTime' : { | ||
| 248 | + | ||
| 249 | + // 必须输入合法的数字(负数,小数)。 | ||
| 250 | + number : true | ||
| 251 | + | ||
| 252 | + }, | ||
| 253 | + | ||
| 254 | + // 出场时间 | ||
| 255 | + 'outTime' : { | ||
| 256 | + | ||
| 257 | + // 必须输入合法的数字(负数,小数)。 | ||
| 258 | + number : true | ||
| 259 | + | ||
| 260 | + }, | ||
| 261 | + | ||
| 262 | + // 进场里程 | ||
| 263 | + 'paradeMileage' : { | ||
| 264 | + | ||
| 265 | + // 必须输入合法的数字(负数,小数)。 | ||
| 266 | + number : true | ||
| 267 | + | ||
| 268 | + }, | ||
| 269 | + | ||
| 270 | + // 出场里程 | ||
| 271 | + 'outMileage' : { | ||
| 272 | + | ||
| 273 | + // 必须输入合法的数字(负数,小数)。 | ||
| 274 | + number : true | ||
| 275 | + | ||
| 276 | + }, | ||
| 277 | + | ||
| 278 | + // 早高峰大间隔 | ||
| 279 | + 'earlyIntervalLg' : { | ||
| 280 | + | ||
| 281 | + // 必须输入合法的数字(负数,小数)。 | ||
| 282 | + number : true | ||
| 283 | + | ||
| 284 | + }, | ||
| 285 | + | ||
| 286 | + // 晚高峰大间隔 | ||
| 287 | + 'lateIntervalLg' : { | ||
| 288 | + | ||
| 289 | + // 必须输入合法的数字(负数,小数)。 | ||
| 290 | + number : true | ||
| 291 | + | ||
| 292 | + }, | ||
| 293 | + | ||
| 294 | + // 平时大间隔 | ||
| 295 | + 'intervalLg' : { | ||
| 296 | + | ||
| 297 | + // 必须输入合法的数字(负数,小数)。 | ||
| 298 | + number : true | ||
| 299 | + | ||
| 300 | + }, | ||
| 301 | + | ||
| 302 | + // 限速(平时) | ||
| 303 | + 'speedLimit' : { | ||
| 304 | + | ||
| 305 | + // 必须输入合法的数字(负数,小数)。 | ||
| 306 | + number : true | ||
| 307 | + }, | ||
| 308 | + | ||
| 309 | + // 限速(雨天) | ||
| 310 | + 'rainLimit' : { | ||
| 311 | + | ||
| 312 | + // 必须输入合法的数字(负数,小数)。 | ||
| 313 | + number : true | ||
| 314 | + | ||
| 315 | + }, | ||
| 316 | + | ||
| 317 | + // 限速(大雾) | ||
| 318 | + 'fogLimit' : { | ||
| 319 | + | ||
| 320 | + // 必须输入合法的数字(负数,小数)。 | ||
| 321 | + number : true | ||
| 322 | + | ||
| 323 | + }, | ||
| 324 | + | ||
| 325 | + // 限速(冰雪) | ||
| 326 | + 'snowLimit' : { | ||
| 327 | + | ||
| 328 | + // 必须输入合法的数字(负数,小数)。 | ||
| 329 | + number : true | ||
| 330 | + }, | ||
| 331 | + | ||
| 332 | + // 限速(节庆) | ||
| 333 | + 'festivalSpeedLimit' : { | ||
| 334 | + | ||
| 335 | + // 必须输入合法的数字(负数,小数)。 | ||
| 336 | + number : true | ||
| 337 | + | ||
| 338 | + }, | ||
| 339 | + | ||
| 340 | + // 描述/说明: | ||
| 341 | + 'descriptions' : { | ||
| 342 | + | ||
| 343 | + //设置最大长度 | ||
| 344 | + maxlength:240, | ||
| 345 | + | ||
| 346 | + } | ||
| 347 | + }, | ||
| 348 | + | ||
| 349 | + /** | ||
| 350 | + * 类型:Callback。当未通过验证的表单提交时,可以在该回调函数中处理一些事情。 | ||
| 351 | + * | ||
| 352 | + * 参数:该回调函数有两个参数:第一个为一个事件对象,第二个为验证器(validator) | ||
| 353 | + */ | ||
| 354 | + invalidHandler : function(event, validator) { | ||
| 355 | + | ||
| 356 | + // 显示表单未通过提示信息 | ||
| 357 | + error.show(); | ||
| 358 | + | ||
| 359 | + // 把提示信息放到指定的位置。 | ||
| 360 | + App.scrollTo(error, -200); | ||
| 361 | + }, | ||
| 362 | + | ||
| 363 | + /** | ||
| 364 | + * 类型:Callback。 | ||
| 365 | + * | ||
| 366 | + * 默认:添加errorClass("has-error")到表单元素。将未通过验证的表单元素设置高亮。 | ||
| 367 | + */ | ||
| 368 | + highlight : function(element) { | ||
| 369 | + | ||
| 370 | + // 添加errorClass("has-error")到表单元素 | ||
| 371 | + $(element).closest('.form-group').addClass('has-error'); | ||
| 372 | + | ||
| 373 | + }, | ||
| 374 | + | ||
| 375 | + /** | ||
| 376 | + * 类型:Callback。 | ||
| 377 | + * | ||
| 378 | + * 默认:移除errorClass("has-error")。与highlight操作相反 | ||
| 379 | + */ | ||
| 380 | + unhighlight : function(element) { | ||
| 381 | + | ||
| 382 | + // 移除errorClass("has-error") | ||
| 383 | + $(element).closest('.form-group').removeClass('has-error'); | ||
| 384 | + | ||
| 385 | + }, | ||
| 386 | + | ||
| 387 | + /** | ||
| 388 | + * 类型:String,Callback。 | ||
| 389 | + * | ||
| 390 | + * 如果指定它,当验证通过时显示一个消息。 | ||
| 391 | + * | ||
| 392 | + * 如果是String类型的,则添加该样式到标签中; | ||
| 393 | + * | ||
| 394 | + * 如果是一个回调函数,则将标签作为其唯一的参数。 | ||
| 395 | + */ | ||
| 396 | + success : function(label) { | ||
| 397 | + | ||
| 398 | + // 当验证通过时,移除errorClass("has-error") | ||
| 399 | + label.closest('.form-group').removeClass('has-error'); | ||
| 400 | + | ||
| 401 | + }, | ||
| 402 | + | ||
| 403 | + /** | ||
| 404 | + * 类型:Callback。 | ||
| 405 | + * | ||
| 406 | + * 默认:default (native) form submit;当表单通过验证,提交表单。回调函数有个默认参数form | ||
| 407 | + */ | ||
| 408 | + submitHandler : function(f) { | ||
| 409 | + | ||
| 410 | + // 隐藏错误提示 | ||
| 411 | + error.hide(); | ||
| 412 | + | ||
| 413 | + var params = form.serializeJSON(); | ||
| 414 | + | ||
| 415 | + if (params.line) { | ||
| 416 | + | ||
| 417 | + // 添加数据 | ||
| 418 | + $post('/lineInformation', params, function(result) { | ||
| 419 | + | ||
| 420 | + // 如果返回结果不为空 | ||
| 421 | + if(result){ | ||
| 422 | + | ||
| 423 | + // 返回状态码为"SUCCESS" ,则添加成功;返回状态码为"ERROR" ,则添加失败 | ||
| 424 | + if(result.status=='SUCCESS') { | ||
| 425 | + | ||
| 426 | + // 弹出添加成功提示消息 | ||
| 427 | + layer.msg('添加成功...'); | ||
| 428 | + | ||
| 429 | + } else if(result.status=='ERROR') { | ||
| 430 | + | ||
| 431 | + // 弹出添加失败提示消息 | ||
| 432 | + layer.msg('添加失败...'); | ||
| 433 | + | ||
| 434 | + } | ||
| 435 | + } | ||
| 436 | + | ||
| 437 | + // 返回list.html页面 | ||
| 438 | + loadPage('lineinformation.html?lineId='+lineId); | ||
| 439 | + }); | ||
| 440 | + | ||
| 441 | + } | ||
| 442 | + } | ||
| 443 | + }); | ||
| 444 | + | ||
| 445 | + // 时间时分验证 | ||
| 446 | + $.validator.addMethod("isDate", function(value,element) { | ||
| 447 | + | ||
| 448 | + // 长度 | ||
| 449 | + var length = value.length; | ||
| 450 | + | ||
| 451 | + // 手机正则表达式 | ||
| 452 | + var dateStr = /^(?:(?:0?|1)\d|2[0-3]):[0-5]\d$/; | ||
| 453 | + | ||
| 454 | + return this.optional(element) || dateStr.test(value); | ||
| 455 | + }, "请正确填写您的时间格式"); | ||
| 456 | + | ||
| 457 | + | ||
| 458 | + } else { | ||
| 459 | + | ||
| 460 | + // 缺少ID | ||
| 461 | + layer.confirm('【ID缺失,请点击返回,重新进行修改操作】', { | ||
| 462 | + btn : [ '返回' ],icon: 3, title:'提示' | ||
| 463 | + }, function(index){ | ||
| 464 | + layer.close(index); | ||
| 465 | + loadPage('/pages/base/lineinformation/list.html?lineId='+lineId); | ||
| 466 | + }); | ||
| 467 | + | ||
| 468 | + } | ||
| 469 | + | ||
| 470 | +}); | ||
| 0 | \ No newline at end of file | 471 | \ No newline at end of file |
src/main/resources/static/pages/base/lineinformation/js/lineinformation-list-table.js
| @@ -34,7 +34,7 @@ $(function(){ | @@ -34,7 +34,7 @@ $(function(){ | ||
| 34 | } else { | 34 | } else { |
| 35 | 35 | ||
| 36 | // 缺少ID | 36 | // 缺少ID |
| 37 | - layer.confirm('【ID缺失,请点击返回,重新进行查看线路标准信息详情操作】', { | 37 | + layer.confirm('【ID缺失,请点击返回,重新进行查看线路标准信息操作】', { |
| 38 | btn : [ '返回' ],icon: 3, title:'提示' | 38 | btn : [ '返回' ],icon: 3, title:'提示' |
| 39 | }, function(index){ | 39 | }, function(index){ |
| 40 | layer.close(index); | 40 | layer.close(index); |
src/main/resources/static/pages/base/lineinformation/list.html
| @@ -122,8 +122,8 @@ | @@ -122,8 +122,8 @@ | ||
| 122 | {{obj.downTravelTime}} | 122 | {{obj.downTravelTime}} |
| 123 | </td> | 123 | </td> |
| 124 | <td> | 124 | <td> |
| 125 | - <a href="details.html?lineId={{obj.id}}" class="btn default blue-stripe btn-sm" data-pjax> 详细 </a> | ||
| 126 | - <a href="edit.html?lineId={{obj.id}}" class="btn default blue-stripe btn-sm" data-pjax> 修改 </a> | 125 | + <a href="details.html?lineinformationId={{obj.id}}&lineId={{obj.line.id}}" class="btn default blue-stripe btn-sm" data-pjax> 详细 </a> |
| 126 | + <a href="edit.html?lineinformationId={{obj.id}}&lineId={{obj.line.id}}" class="btn default blue-stripe btn-sm" data-pjax> 修改 </a> | ||
| 127 | </td> | 127 | </td> |
| 128 | </tr> | 128 | </tr> |
| 129 | {{/each}} | 129 | {{/each}} |