Commit be7393a9ea70ded57291cf771be85bbde5434a83
1 parent
6a3b9d78
基础信息线路功能完善<是否撤销与是否宵夜字段修改为Integer类型>
Showing
9 changed files
with
622 additions
and
147 deletions
src/main/java/com/bsth/entity/Line.java
| ... | ... | @@ -29,12 +29,12 @@ public class Line implements Serializable { |
| 29 | 29 | @Id |
| 30 | 30 | @GeneratedValue(strategy = GenerationType.IDENTITY) |
| 31 | 31 | private Integer id; |
| 32 | - | |
| 33 | - // 线路代码 | |
| 34 | - private String lineCode; | |
| 35 | - | |
| 32 | + | |
| 36 | 33 | // 线路名称 |
| 37 | 34 | private String name; |
| 35 | + | |
| 36 | + // 线路代码 | |
| 37 | + private String lineCode; | |
| 38 | 38 | |
| 39 | 39 | // 英文名 |
| 40 | 40 | private String es; |
| ... | ... | @@ -42,16 +42,16 @@ public class Line implements Serializable { |
| 42 | 42 | // 简称 |
| 43 | 43 | private String shortName; |
| 44 | 44 | |
| 45 | - // 配置车辆总数 | |
| 45 | + /** 配置车辆总数 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 */ | |
| 46 | 46 | private Integer carSumNumber; |
| 47 | 47 | |
| 48 | - // 空调车辆数量 | |
| 48 | + /** 空调车辆数量 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 */ | |
| 49 | 49 | private Integer hvacCarNumber; |
| 50 | 50 | |
| 51 | - // 普通车辆数量 | |
| 51 | + /** 普通车辆数量 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 */ | |
| 52 | 52 | private Integer ordCarNumber; |
| 53 | 53 | |
| 54 | - // 停车场编码 | |
| 54 | + /** 停车场编码 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 */ | |
| 55 | 55 | private String carParkCode; |
| 56 | 56 | |
| 57 | 57 | // 起始站名称 |
| ... | ... | @@ -61,7 +61,7 @@ public class Line implements Serializable { |
| 61 | 61 | private String startStationFirstTime; |
| 62 | 62 | |
| 63 | 63 | // 起始站末班车时间 00:00 |
| 64 | - private String StartStationEndTime; | |
| 64 | + private String startStationEndTime; | |
| 65 | 65 | |
| 66 | 66 | // 终点站名称 |
| 67 | 67 | private String endStationName; |
| ... | ... | @@ -94,10 +94,10 @@ public class Line implements Serializable { |
| 94 | 94 | private String telephone; |
| 95 | 95 | |
| 96 | 96 | // 是否撤销 |
| 97 | - private boolean destroy; | |
| 97 | + private Integer destroy; | |
| 98 | 98 | |
| 99 | 99 | // 是否夜宵线 |
| 100 | - private boolean supperLine; | |
| 100 | + private Integer supperLine; | |
| 101 | 101 | |
| 102 | 102 | // 起始调度电话 |
| 103 | 103 | private String startPhone; |
| ... | ... | @@ -224,11 +224,11 @@ public class Line implements Serializable { |
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | public String getStartStationEndTime() { |
| 227 | - return StartStationEndTime; | |
| 227 | + return startStationEndTime; | |
| 228 | 228 | } |
| 229 | 229 | |
| 230 | 230 | public void setStartStationEndTime(String startStationEndTime) { |
| 231 | - StartStationEndTime = startStationEndTime; | |
| 231 | + this.startStationEndTime = startStationEndTime; | |
| 232 | 232 | } |
| 233 | 233 | |
| 234 | 234 | public String getEndStationName() { |
| ... | ... | @@ -311,19 +311,19 @@ public class Line implements Serializable { |
| 311 | 311 | this.telephone = telephone; |
| 312 | 312 | } |
| 313 | 313 | |
| 314 | - public boolean isDestroy() { | |
| 314 | + public Integer getDestroy() { | |
| 315 | 315 | return destroy; |
| 316 | 316 | } |
| 317 | 317 | |
| 318 | - public void setDestroy(boolean destroy) { | |
| 318 | + public void setDestroy(Integer destroy) { | |
| 319 | 319 | this.destroy = destroy; |
| 320 | 320 | } |
| 321 | 321 | |
| 322 | - public boolean isSupperLine() { | |
| 322 | + public Integer getSupperLine() { | |
| 323 | 323 | return supperLine; |
| 324 | 324 | } |
| 325 | 325 | |
| 326 | - public void setSupperLine(boolean supperLine) { | |
| 326 | + public void setSupperLine(Integer supperLine) { | |
| 327 | 327 | this.supperLine = supperLine; |
| 328 | 328 | } |
| 329 | 329 | ... | ... |
src/main/resources/static/pages/base/line/add.html
| ... | ... | @@ -220,6 +220,79 @@ |
| 220 | 220 | <input type="text" class="form-control" name="endPhone" id="startPhoneInput" placeholder="终点站调度电话"> |
| 221 | 221 | </div> |
| 222 | 222 | </div> |
| 223 | + <!-- | |
| 224 | + 起始站名称 | |
| 225 | + <div class="form-group"> | |
| 226 | + <label class="control-label col-md-3"> 起始站名称: </label> | |
| 227 | + <div class="col-md-4"> | |
| 228 | + <input type="text" class="form-control" name="startStationName" id="startStationNameInput" placeholder="起始站名称"> | |
| 229 | + </div> | |
| 230 | + </div> | |
| 231 | + | |
| 232 | + 起始站首班车时间 | |
| 233 | + <div class="form-group"> | |
| 234 | + <label class="control-label col-md-3"> 起始站首班车时间: </label> | |
| 235 | + <div class="col-md-4"> | |
| 236 | + <input type="text" class="form-control" name="startStationFirstTime" id="startStationFirstTimeInput" placeholder="起始站首班车时间"> | |
| 237 | + </div> | |
| 238 | + </div> | |
| 239 | + | |
| 240 | + 起始站末班车时间 | |
| 241 | + <div class="form-group"> | |
| 242 | + <label class="control-label col-md-3"> 起始站末班车时间: </label> | |
| 243 | + <div class="col-md-4"> | |
| 244 | + <input type="text" class="form-control" name="StartStationEndTime" id="StartStationEndTimeInput" placeholder="起始站末班车时间 "> | |
| 245 | + </div> | |
| 246 | + </div> | |
| 247 | + | |
| 248 | + | |
| 249 | + 终点站名称 | |
| 250 | + <div class="form-group"> | |
| 251 | + <label class="control-label col-md-3"> 终点站名称: </label> | |
| 252 | + <div class="col-md-4"> | |
| 253 | + <input type="text" class="form-control" name="endStationName" id="endStationNameInput" placeholder="终点站名称"> | |
| 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="endStationFirstTime" id="endStationFirstTimeInput" placeholder="终点站首班车时间"> | |
| 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="endStationEndTime" id="endStationEndTimeInput" placeholder="终点站末班车时间 "> | |
| 270 | + </div> | |
| 271 | + </div> --> | |
| 272 | + | |
| 273 | + <!-- 车辆总数 --> | |
| 274 | + <div class="form-group"> | |
| 275 | + <label class="control-label col-md-3"> 车辆总数: </label> | |
| 276 | + <div class="col-md-4"> | |
| 277 | + <input type="text" class="form-control" name="carSumNumber" id="carSumNumberInput" placeholder="车辆总数"> | |
| 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="hvacCarNumber" id="hvacCarNumberInput" placeholder="空调车辆数"> | |
| 286 | + </div> | |
| 287 | + </div> | |
| 288 | + | |
| 289 | + <!-- 普通车辆数 --> | |
| 290 | + <div class="form-group"> | |
| 291 | + <label class="control-label col-md-3"> 普通车辆数: </label> | |
| 292 | + <div class="col-md-4"> | |
| 293 | + <input type="text" class="form-control" name="ordCarNumber" id="ordCarNumberInput" placeholder="普通车辆数"> | |
| 294 | + </div> | |
| 295 | + </div> | |
| 223 | 296 | |
| 224 | 297 | <!-- 描述/说明 --> |
| 225 | 298 | <div class="form-group"> | ... | ... |
src/main/resources/static/pages/base/line/details.html
| ... | ... | @@ -11,97 +11,296 @@ |
| 11 | 11 | <li><span class="active">线路详情</span></li> |
| 12 | 12 | </ul> |
| 13 | 13 | |
| 14 | -<div class="row"> | |
| 15 | - <div class="col-md-12"> | |
| 16 | - <div class="portlet light porttlet-fit bordered"> | |
| 17 | - <div class="portlet-title"> | |
| 18 | - <div class="caption"> | |
| 19 | - <i class="fa fa-info-circle font-dark"></i> | |
| 20 | - <span class="caption-subject font-dark sbold uppercase">线路详情</span> | |
| 21 | - </div> | |
| 22 | - <div class="actions"> | |
| 23 | - <div class="btn-group btn-group-devided" data-toggle="buttons"> | |
| 24 | - <a class="btn btn-circle blue" href="list.html" data-pjax><i class="fa fa-reply"></i> 返回</a> | |
| 14 | +<div class="portlet light bordered"> | |
| 15 | + <div class="portlet-title"> | |
| 16 | + <div class="caption"> | |
| 17 | + <i class="icon-equalizer font-red-sunglo"></i> | |
| 18 | + <span class="caption-subject font-red-sunglo bold uppercase">线路详情信息</span> | |
| 19 | + </div> | |
| 20 | + </div> | |
| 21 | + <div class="portlet-body form" id="lineDetailsForm"> | |
| 22 | + | |
| 23 | + <!-- START FORM --> | |
| 24 | + <form action="/" class="form-horizontal" id="line_details_form" > | |
| 25 | + | |
| 26 | + <!-- 表单内容 --> | |
| 27 | + <div class="form-body"> | |
| 28 | + | |
| 29 | + <!-- 线路名称 --> | |
| 30 | + <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> | |
| 25 | 112 | </div> |
| 26 | - </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> | |
| 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="shanghaiLinecode" id="shanghaiLinecodeInput" 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="startPhone" id="startPhoneInput" 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="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> | |
| 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 | + <input type="text" class="form-control" name="startStationEndTime" id="StartStationEndTimeInput" placeholder="起始站末班车时间 "> | |
| 234 | + </div> | |
| 235 | + </div> | |
| 236 | + | |
| 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="endStationName" id="endStationNameInput" placeholder="终点站名称"> | |
| 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="endStationFirstTime" id="endStationFirstTimeInput" placeholder="终点站首班车时间"> | |
| 251 | + </div> | |
| 252 | + </div> | |
| 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="endStationEndTime" id="endStationEndTimeInput" placeholder="终点站末班车时间 "> | |
| 259 | + </div> | |
| 260 | + </div> | |
| 261 | + | |
| 262 | + <!-- 车辆总数 --> | |
| 263 | + <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> | |
| 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="hvacCarNumber" id="hvacCarNumberInput" 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="ordCarNumber" id="ordCarNumberInput" 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 | + <textarea class="form-control" rows="3" name="descriptions" id="descriptionsTextarea" placeholder="描述/说明"></textarea> | |
| 291 | + </div> | |
| 292 | + </div> | |
| 27 | 293 | </div> |
| 28 | - <div class="portlet-body"> | |
| 29 | - <div class="table-container" style="margin-top: 10px"> | |
| 30 | - <table class="table table-striped table-bordered table-hover table-checkable" id="line_details"> | |
| 31 | - <thead> | |
| 32 | - <tr role="row" class="heading"> | |
| 33 | - <th width="8%">线路编码</th> | |
| 34 | - <th width="8%">线路名称</th> | |
| 35 | - <th width="10%">英文名称</th> | |
| 36 | - <th width="10%">线路简称</th> | |
| 37 | - <th width="10%">所属公司</th> | |
| 38 | - <th width="10%">所属分公司</th> | |
| 39 | - <th width="10%">线路性质</th> | |
| 40 | - <th width="10%">线路等级</th> | |
| 41 | - <th width="10%">是否撤消</th> | |
| 42 | - <th width="10%">是否夜宵线</th> | |
| 43 | - <th width="10%">起始站调度电话</th> | |
| 44 | - <th width="10%">终点站调度电话</th> | |
| 45 | - <th width="10%">开辟日期</th> | |
| 46 | - <th width="10%">线路沿革</th> | |
| 47 | - </tr> | |
| 48 | - </thead> | |
| 49 | - <tbody></tbody> | |
| 50 | - </table> | |
| 51 | - <div style="text-align: right;"> | |
| 52 | - <ul id="pagination" class="pagination"></ul> | |
| 294 | + <div class="form-actions"> | |
| 295 | + <div class="row"> | |
| 296 | + <div class="col-md-offset-3 col-md-4"> | |
| 297 | + <a type="button" class="btn default" href="list.html" style="margin-left: 35%;" data-pjax><i class="fa fa-reply"></i> 返回</a> | |
| 53 | 298 | </div> |
| 54 | 299 | </div> |
| 55 | 300 | </div> |
| 56 | - </div> | |
| 301 | + </form> | |
| 302 | + <!-- END FORM--> | |
| 303 | + | |
| 57 | 304 | </div> |
| 58 | 305 | </div> |
| 59 | -<script type="text/html" id="line_details_temp"> | |
| 60 | -{{each list as obj i }} | |
| 61 | -<tr> | |
| 62 | - <td> | |
| 63 | - {{obj.lineCode}} | |
| 64 | - </td> | |
| 65 | - <td> | |
| 66 | - {{obj.name}} | |
| 67 | - </td> | |
| 68 | - <td> | |
| 69 | - {{obj.es}} | |
| 70 | - </td> | |
| 71 | - <td> | |
| 72 | - {{obj.shortName}} | |
| 73 | - </td> | |
| 74 | - <td> | |
| 75 | - {{obj.company}} | |
| 76 | - </td> | |
| 77 | - <td> | |
| 78 | - {{obj.brancheCompany}} | |
| 79 | - </td> | |
| 80 | - <td> | |
| 81 | - {{obj.nature}} | |
| 82 | - </td> | |
| 83 | - <td> | |
| 84 | - {{obj.level}} | |
| 85 | - </td> | |
| 86 | - <td> | |
| 87 | - {{obj.destroy}} | |
| 88 | - </td> | |
| 89 | - <td> | |
| 90 | - {{obj.supperLine}} | |
| 91 | - </td> | |
| 92 | - <td> | |
| 93 | - {{obj.startPhone}} | |
| 94 | - </td> | |
| 95 | - <td> | |
| 96 | - {{obj.endPhone}} | |
| 97 | - </td> | |
| 98 | - <td> | |
| 99 | - {{obj.openDate}} | |
| 100 | - </td> | |
| 101 | - <td> | |
| 102 | - {{obj.history}} | |
| 103 | - </td> | |
| 104 | -</tr> | |
| 105 | -{{/each}} | |
| 106 | -</script> | |
| 107 | 306 | <script type="text/javascript" src="/pages/base/line/js/line-details-info.js"></script> |
| 108 | 307 | \ No newline at end of file | ... | ... |
src/main/resources/static/pages/base/line/edit.html
| ... | ... | @@ -219,7 +219,31 @@ |
| 219 | 219 | </div> |
| 220 | 220 | </div> |
| 221 | 221 | |
| 222 | - <!-- --> | |
| 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="carSumNumber" id="carSumNumberInput" placeholder="车辆总数"> | |
| 227 | + </div> | |
| 228 | + </div> | |
| 229 | + | |
| 230 | + <!-- 空调车辆数 --> | |
| 231 | + <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="hvacCarNumber" id="hvacCarNumberInput" 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="ordCarNumber" id="ordCarNumberInput" placeholder="普通车辆数"> | |
| 243 | + </div> | |
| 244 | + </div> | |
| 245 | + | |
| 246 | + <!-- 描述/说明 --> | |
| 223 | 247 | <div class="form-group"> |
| 224 | 248 | <label class="control-label col-md-3"> 描述/说明: </label> |
| 225 | 249 | <div class="col-md-4"> | ... | ... |
src/main/resources/static/pages/base/line/js/line-add-form.js
| 1 | 1 | $(function(){ |
| 2 | 2 | |
| 3 | - | |
| 4 | 3 | // 获取线路编码 |
| 5 | 4 | function getLineCode(cb) { |
| 6 | 5 | |
| 7 | 6 | // 获取线路编码 |
| 8 | 7 | $.get('/line/getLineCode',function(lineCode){ |
| 9 | 8 | |
| 10 | - cb && cb(lineCode); | |
| 9 | + return cb && cb(lineCode); | |
| 11 | 10 | |
| 12 | 11 | }); |
| 13 | 12 | } |
| 14 | 13 | |
| 14 | + // 获取线路编码元素并设值 | |
| 15 | 15 | getLineCode(function(result){ |
| 16 | 16 | |
| 17 | 17 | // 设置线路编码值 |
| ... | ... | @@ -38,8 +38,10 @@ $(function(){ |
| 38 | 38 | // 日期控件 |
| 39 | 39 | $('#openDateInput').datetimepicker({ |
| 40 | 40 | |
| 41 | + // 日期控件时间格式 | |
| 41 | 42 | format : 'YYYY-MM-DD', |
| 42 | 43 | |
| 44 | + // 语言 | |
| 43 | 45 | locale: 'zh-cn' |
| 44 | 46 | |
| 45 | 47 | }); |
| ... | ... | @@ -203,6 +205,36 @@ $(function(){ |
| 203 | 205 | digits : true |
| 204 | 206 | }, |
| 205 | 207 | |
| 208 | + // 车辆总数 | |
| 209 | + 'carSumNumber' : { | |
| 210 | + | |
| 211 | + // 必须输入合法的数字(负数,小数)。 | |
| 212 | + number : true, | |
| 213 | + | |
| 214 | + // 必须输入整数。 | |
| 215 | + digits : true | |
| 216 | + }, | |
| 217 | + | |
| 218 | + // 空调车辆数 | |
| 219 | + 'hvacCarNumber' : { | |
| 220 | + | |
| 221 | + // 必须输入合法的数字(负数,小数)。 | |
| 222 | + number : true, | |
| 223 | + | |
| 224 | + // 必须输入整数。 | |
| 225 | + digits : true | |
| 226 | + }, | |
| 227 | + | |
| 228 | + // 普通车辆数 | |
| 229 | + 'ordCarNumber' : { | |
| 230 | + | |
| 231 | + // 必须输入合法的数字(负数,小数)。 | |
| 232 | + number : true, | |
| 233 | + | |
| 234 | + // 必须输入整数。 | |
| 235 | + digits : true | |
| 236 | + }, | |
| 237 | + | |
| 206 | 238 | // 描述/说明 |
| 207 | 239 | 'descriptions' : { |
| 208 | 240 | ... | ... |
src/main/resources/static/pages/base/line/js/line-details-info.js
| 1 | 1 | $(function(){ |
| 2 | 2 | |
| 3 | 3 | // 获取参数ID |
| 4 | - var lineId = $.url().param('lineId'); | |
| 4 | + var lineId = $.url().param('no'); | |
| 5 | 5 | |
| 6 | 6 | if(lineId) { |
| 7 | 7 | |
| 8 | - $get('/line/all',{id_eq:lineId},function(data) { | |
| 8 | + // 填充公司下拉框 | |
| 9 | + selectTemp(function(){ | |
| 9 | 10 | |
| 10 | - if(data) { | |
| 11 | + // 根据ID查询详细信息 | |
| 12 | + $get('/line/' + lineId ,null, function(result){ | |
| 11 | 13 | |
| 12 | - var tbodyHtml = template('line_details_temp',{list : data}); | |
| 13 | - | |
| 14 | - // 把渲染好的模版html文本追加到表格中 | |
| 15 | - $('#line_details tbody').html(tbodyHtml); | |
| 16 | - | |
| 17 | - } | |
| 18 | - | |
| 14 | + // 如果不为空 | |
| 15 | + if(result) { | |
| 16 | + | |
| 17 | + // 定义日期格式 | |
| 18 | + var fs = 'YYYY-MM-DD' | |
| 19 | + | |
| 20 | + // 设置日期格式 | |
| 21 | + result.openDate = moment(result.openDate).format(fs); | |
| 22 | + | |
| 23 | + // 获取线路详情表单元素并设值 | |
| 24 | + putFormData(result, '#line_details_form'); | |
| 25 | + | |
| 26 | + // 获取表单元素并设置Disabled属性 | |
| 27 | + $('input,select,textarea','#line_details_form').attr('Disabled','Disabled'); | |
| 28 | + | |
| 29 | + // 设置公司值 | |
| 30 | + $('#companySelect').val(result.company); | |
| 31 | + | |
| 32 | + // 填充分公司下拉框选择值 | |
| 33 | + getbrancheCompanyValues(result.company,function(){ | |
| 34 | + | |
| 35 | + // 设置分公司 | |
| 36 | + $('#brancheCompanySelect').val(result.brancheCompany); | |
| 37 | + | |
| 38 | + }); | |
| 39 | + | |
| 40 | + } | |
| 41 | + | |
| 42 | + }); | |
| 19 | 43 | }); |
| 20 | 44 | |
| 21 | 45 | } else { |
| 22 | 46 | |
| 23 | 47 | // 缺少ID |
| 24 | - layer.confirm('【ID缺失,请点击返回,重新进行详情操作】', { | |
| 25 | - btn : [ '返回' ],icon: 3, title:'提示' | |
| 26 | - }, function(index){ | |
| 48 | + layer.confirm('【ID缺失,请点击返回,重新进行详情操作】', {btn : [ '返回' ],icon: 3, title:'提示'}, function(index){ | |
| 49 | + | |
| 50 | + // 关闭弹出层 | |
| 27 | 51 | layer.close(index); |
| 52 | + | |
| 53 | + // 放回list页面 | |
| 28 | 54 | loadPage('list.html'); |
| 55 | + | |
| 29 | 56 | }); |
| 30 | 57 | |
| 31 | 58 | } |
| 32 | 59 | |
| 60 | + // 填充公司下拉框 | |
| 61 | + function selectTemp(callback) { | |
| 62 | + | |
| 63 | + // 填充公司下拉框选择值 | |
| 64 | + $.get('/business/all', {upCode_eq: '88'}, 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 | + return 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 | + } | |
| 33 | 118 | }); |
| 34 | 119 | \ No newline at end of file | ... | ... |
src/main/resources/static/pages/base/line/js/line-edit-form.js
| 1 | 1 | !function(){ |
| 2 | 2 | |
| 3 | 3 | // 获取参数ID |
| 4 | - var lineId = $.url().param('lineId'); | |
| 4 | + var lineId = $.url().param('no'); | |
| 5 | 5 | |
| 6 | 6 | // 如果参数ID不为空 |
| 7 | 7 | if(lineId) { |
| 8 | 8 | |
| 9 | + // 获取线路Id元素并设值 | |
| 9 | 10 | $('#lineId').val(lineId); |
| 10 | 11 | |
| 12 | + // 初始化公司下拉框 | |
| 11 | 13 | selectTemp(function(){ |
| 12 | 14 | |
| 13 | 15 | // 根据ID查询详细信息 |
| ... | ... | @@ -22,11 +24,13 @@ |
| 22 | 24 | // 设置日期 |
| 23 | 25 | result.openDate = moment(result.openDate).format(fs); |
| 24 | 26 | |
| 27 | + // 填充修改线路表单元素值 | |
| 25 | 28 | putFormData(result, '#line_edit_form'); |
| 26 | 29 | |
| 27 | 30 | // 设置公司值 |
| 28 | 31 | $('#companySelect').val(result.company); |
| 29 | 32 | |
| 33 | + // 填充分公司下拉框选择值 | |
| 30 | 34 | getbrancheCompanyValues(result.company,function(){ |
| 31 | 35 | |
| 32 | 36 | // 设置分公司 |
| ... | ... | @@ -42,17 +46,35 @@ |
| 42 | 46 | } else { |
| 43 | 47 | |
| 44 | 48 | // 缺少ID |
| 45 | - layer.confirm('【ID缺失,请点击返回,重新进行修改操作】', { | |
| 46 | - btn : [ '返回' ],icon: 3, title:'提示' | |
| 47 | - }, function(index){ | |
| 49 | + layer.confirm('【ID缺失,请点击返回,重新进行修改操作】', {btn : [ '返回' ],icon: 3, title:'提示'}, function(index){ | |
| 50 | + | |
| 51 | + // 关闭弹出层 | |
| 48 | 52 | layer.close(index); |
| 53 | + | |
| 54 | + // 跳转到list页面 | |
| 49 | 55 | loadPage('list.html'); |
| 56 | + | |
| 50 | 57 | }); |
| 51 | 58 | } |
| 52 | 59 | |
| 60 | + // 输入线路名称,自动生成英文名称和线路简称 | |
| 61 | + $('#nameInput').on('keyup', setPinYin); | |
| 62 | + | |
| 63 | + // 根据线路名称值设置英文名称值和线路简称 | |
| 64 | + function setPinYin(){ | |
| 65 | + | |
| 66 | + // 获取线路名称值 | |
| 67 | + var val = $('#nameInput').val(); | |
| 68 | + | |
| 69 | + // 设置英文名称值 | |
| 70 | + $('#esInput').val(pinyin.getFullChars(val)); | |
| 71 | + | |
| 72 | + // 设置线路简称值 | |
| 73 | + $('#shortNameInput').val(pinyin.getCamelChars(val)); | |
| 74 | + } | |
| 53 | 75 | |
| 54 | 76 | |
| 55 | - // 模块下拉框 | |
| 77 | + // 公司下拉框 | |
| 56 | 78 | function selectTemp(callback) { |
| 57 | 79 | |
| 58 | 80 | // 填充公司下拉框选择值 |
| ... | ... | @@ -71,7 +93,7 @@ |
| 71 | 93 | // 填充公司下拉框options |
| 72 | 94 | $('#companySelect').html(options); |
| 73 | 95 | |
| 74 | - callback && callback(); | |
| 96 | + return callback && callback(); | |
| 75 | 97 | }); |
| 76 | 98 | } |
| 77 | 99 | |
| ... | ... | @@ -95,7 +117,7 @@ |
| 95 | 117 | // 填充分公司下拉框options |
| 96 | 118 | $('#brancheCompanySelect').html(options); |
| 97 | 119 | |
| 98 | - cb && cb(); | |
| 120 | + return cb && cb(); | |
| 99 | 121 | |
| 100 | 122 | }); |
| 101 | 123 | |
| ... | ... | @@ -104,7 +126,7 @@ |
| 104 | 126 | // 填充分公司下拉框options |
| 105 | 127 | $('#brancheCompanySelect').html(options); |
| 106 | 128 | |
| 107 | - cb && cb(); | |
| 129 | + return cb && cb(); | |
| 108 | 130 | } |
| 109 | 131 | |
| 110 | 132 | } |
| ... | ... | @@ -258,6 +280,36 @@ |
| 258 | 280 | digits : true |
| 259 | 281 | }, |
| 260 | 282 | |
| 283 | + // 车辆总数 | |
| 284 | + 'carSumNumber' : { | |
| 285 | + | |
| 286 | + // 必须输入合法的数字(负数,小数)。 | |
| 287 | + number : true, | |
| 288 | + | |
| 289 | + // 必须输入整数。 | |
| 290 | + digits : true | |
| 291 | + }, | |
| 292 | + | |
| 293 | + // 空调车辆数 | |
| 294 | + 'hvacCarNumber' : { | |
| 295 | + | |
| 296 | + // 必须输入合法的数字(负数,小数)。 | |
| 297 | + number : true, | |
| 298 | + | |
| 299 | + // 必须输入整数。 | |
| 300 | + digits : true | |
| 301 | + }, | |
| 302 | + | |
| 303 | + // 普通车辆数 | |
| 304 | + 'ordCarNumber' : { | |
| 305 | + | |
| 306 | + // 必须输入合法的数字(负数,小数)。 | |
| 307 | + number : true, | |
| 308 | + | |
| 309 | + // 必须输入整数。 | |
| 310 | + digits : true | |
| 311 | + }, | |
| 312 | + | |
| 261 | 313 | // 描述/说明 |
| 262 | 314 | 'descriptions' : { |
| 263 | 315 | |
| ... | ... | @@ -412,7 +464,9 @@ |
| 412 | 464 | |
| 413 | 465 | // 固定电话正则表达式 |
| 414 | 466 | var tel = /^\d{3,4}-?\d{7,9}$/; |
| 467 | + | |
| 415 | 468 | return this.optional(element) || (tel.test(value) || mobile.test(value)); |
| 469 | + | |
| 416 | 470 | }, "请正确填写您的联系电话"); |
| 417 | 471 | |
| 418 | 472 | }(); |
| 419 | 473 | \ No newline at end of file | ... | ... |
src/main/resources/static/pages/base/line/js/line-list-table.js
| ... | ... | @@ -68,19 +68,11 @@ |
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | - /** | |
| 72 | - * -----page : 当前页 | |
| 73 | - * | |
| 74 | - * -----initPag : | |
| 75 | - * | |
| 76 | - */ | |
| 71 | + /** page : 当前页;initPag : */ | |
| 77 | 72 | var page = 0,initPag; |
| 78 | 73 | |
| 79 | 74 | // 选择框 |
| 80 | - var icheckOptions = { | |
| 81 | - checkboxClass: 'icheckbox_flat-blue', | |
| 82 | - increaseArea: '20%' | |
| 83 | - }; | |
| 75 | + var icheckOptions = {checkboxClass: 'icheckbox_flat-blue',increaseArea: '20%'}; | |
| 84 | 76 | |
| 85 | 77 | // 表格数据分页加载 |
| 86 | 78 | loadTableDate(null,true); |
| ... | ... | @@ -147,6 +139,12 @@ |
| 147 | 139 | var i = layer.load(2); |
| 148 | 140 | // 异步请求获取表格数据 |
| 149 | 141 | $.get('/line',params,function(result){ |
| 142 | + | |
| 143 | + console.log(result); | |
| 144 | + | |
| 145 | + // 添加序号 | |
| 146 | + result.content.page = page; | |
| 147 | + | |
| 150 | 148 | // 把数据填充到模版中 |
| 151 | 149 | var tbodyHtml = template('line_list_temp',{list:result.content}); |
| 152 | 150 | // 把渲染好的模版html文本追加到表格中 | ... | ... |
src/main/resources/static/pages/base/line/list.html
| ... | ... | @@ -29,7 +29,7 @@ |
| 29 | 29 | <table class="table table-striped table-bordered table-hover table-checkable" id="datatable_line"> |
| 30 | 30 | <thead> |
| 31 | 31 | <tr role="row" class="heading"> |
| 32 | - <th width="3%">#</th> | |
| 32 | + <th width="3%">序号</th> | |
| 33 | 33 | <th width="7%">线路编码</th> |
| 34 | 34 | <th width="8%">线路名称</th> |
| 35 | 35 | <th width="7%">所属公司</th> |
| ... | ... | @@ -43,7 +43,7 @@ |
| 43 | 43 | <th width="14%">操作</th> |
| 44 | 44 | </tr> |
| 45 | 45 | <tr role="row" class="filter"> |
| 46 | - <td></td> | |
| 46 | + <td>#</td> | |
| 47 | 47 | <td> |
| 48 | 48 | <input type="text" class="form-control form-filter input-sm" name="lineCode_eq"> |
| 49 | 49 | </td> |
| ... | ... | @@ -85,8 +85,8 @@ |
| 85 | 85 | <td> |
| 86 | 86 | <select class="form-control form-filter " name="destroy_eq"> |
| 87 | 87 | <option value="">请选择...</option> |
| 88 | - <option value="1">运营</option> | |
| 89 | - <option value="0">撤销</option> | |
| 88 | + <option value="0">运营</option> | |
| 89 | + <option value="1">撤销</option> | |
| 90 | 90 | </select> |
| 91 | 91 | </td> |
| 92 | 92 | <td> |
| ... | ... | @@ -114,11 +114,17 @@ |
| 114 | 114 | </div> |
| 115 | 115 | </div> |
| 116 | 116 | </div> |
| 117 | +<!-- | |
| 118 | + | |
| 119 | +<td style="vertical-align: middle;"> | |
| 120 | + <input type="checkbox" class="group-checkable icheck" value="{{obj.name}}" id="{{obj.id}}" data-id="{{obj.id}}" data-lineName="{{obj.name}}"> | |
| 121 | +</td> | |
| 122 | + --> | |
| 117 | 123 | <script type="text/html" id="line_list_temp"> |
| 118 | 124 | {{each list as obj i }} |
| 119 | 125 | <tr> |
| 120 | 126 | <td style="vertical-align: middle;"> |
| 121 | - <input type="checkbox" class="group-checkable icheck" data-id="{{obj.id}}"> | |
| 127 | + {{(list.page*10)+(i+1)}} | |
| 122 | 128 | </td> |
| 123 | 129 | <td> |
| 124 | 130 | {{obj.lineCode}} |
| ... | ... | @@ -142,7 +148,11 @@ |
| 142 | 148 | {{obj.shanghaiLinecode}} |
| 143 | 149 | </td> |
| 144 | 150 | <td> |
| 145 | - {{obj.destroy}} | |
| 151 | + {{if obj.destroy == 1}} | |
| 152 | + <span style="font-weight: bold; color: red; padding: 5px; background-color: #FFE4E1; margin: 5px; font-size: 9px;border-radius: 4px;">撤销</span> | |
| 153 | + {{else if obj.destroy == 0}} | |
| 154 | + <span style="font-weight: bold; color: #07824e; padding: 5px; background-color: #FFE4E1; margin: 5px; font-size: 9px;border-radius: 4px;">运营</span> | |
| 155 | + {{/if}} | |
| 146 | 156 | </td> |
| 147 | 157 | <td> |
| 148 | 158 | <a href="/pages/base/lineinformation/list.html?no={{obj.id}}" class="btn default blue-stripe btn-sm" data-pjax> 查看 </a> |
| ... | ... | @@ -151,15 +161,15 @@ |
| 151 | 161 | <a href="/pages/base/stationroute/list.html?no={{obj.id}}" class="btn default blue-stripe btn-sm" data-pjax> 查看 </a> |
| 152 | 162 | </td> |
| 153 | 163 | <td> |
| 154 | - <a href="details.html?lineId={{obj.id}}" class="btn default blue-stripe btn-sm" data-pjax> 详细 </a> | |
| 155 | - <a href="edit.html?lineId={{obj.id}}" class="btn default blue-stripe btn-sm" data-pjax> 修改 </a> | |
| 164 | + <a href="details.html?no={{obj.id}}" class="btn default blue-stripe btn-sm" data-pjax> 详细 </a> | |
| 165 | + <a href="edit.html?no={{obj.id}}" class="btn default blue-stripe btn-sm" data-pjax> 修改 </a> | |
| 156 | 166 | </td> |
| 157 | 167 | </tr> |
| 158 | 168 | {{/each}} |
| 159 | 169 | {{if list.length == 0}} |
| 160 | 170 | <tr> |
| 161 | - <td colspan=8><h6 class="muted">没有找到相关数据</h6></td> | |
| 171 | + <td colspan=12><h6 class="muted">没有找到相关数据</h6></td> | |
| 162 | 172 | </tr> |
| 163 | 173 | {{/if}} |
| 164 | 174 | </script> |
| 165 | -<script src="/pages/base/line/js/line-list-table.js"></script> | |
| 175 | +<script src="/pages/base/line/js/line-list-table.js"></script> | |
| 166 | 176 | \ No newline at end of file | ... | ... |