Commit 2176b3b91e623958f65443d6a5fbacd71488c41b

Authored by 徐烜
1 parent f437e04e

1、路牌添加加油公里字段,修改相关页面

2、修改弹出框css
src/main/java/com/bsth/entity/schedule/GuideboardInfo.java
... ... @@ -37,6 +37,9 @@ public class GuideboardInfo extends BEntity {
37 37 @Column(nullable = false)
38 38 private String lpType;
39 39  
  40 + /** 加油公里字段 */
  41 + private Double jygl;
  42 +
40 43 /** 是否删除(标记) */
41 44 @Column(nullable = false)
42 45 private Boolean isCancel = false;
... ... @@ -116,4 +119,12 @@ public class GuideboardInfo extends BEntity {
116 119 public void setIsCancel(Boolean isCancel) {
117 120 this.isCancel = isCancel;
118 121 }
  122 +
  123 + public Double getJygl() {
  124 + return jygl;
  125 + }
  126 +
  127 + public void setJygl(Double jygl) {
  128 + this.jygl = jygl;
  129 + }
119 130 }
... ...
src/main/resources/static/pages/scheduleApp/module/basicInfo/busInfoManage/module.js
... ... @@ -308,12 +308,12 @@ angular.module('ScheduleApp').controller(
308 308 // large方式弹出模态对话框
309 309 var modalInstance = $uibModal.open({
310 310 templateUrl: '/pages/scheduleApp/module/basicInfo/busInfoManage/orderOptionOpen.html',
311   - size: "sm",
  311 + // size: "sm",
312 312 animation: true,
313 313 backdrop: 'static',
314 314 resolve: {
315 315 },
316   - windowClass: 'center-modal',
  316 + windowClass: 'order-option-modal',
317 317 controller: "BusInfoManageListOrderOptionModalInstanceCtrl",
318 318 controllerAs: "$ctrl",
319 319 bindToController: true
... ...
src/main/resources/static/pages/scheduleApp/module/basicInfo/deviceInfoManage/module.js
... ... @@ -156,12 +156,12 @@ angular.module('ScheduleApp').controller(
156 156 // large方式弹出模态对话框
157 157 var modalInstance = $uibModal.open({
158 158 templateUrl: '/pages/scheduleApp/module/basicInfo/deviceInfoManage/orderOptionOpen.html',
159   - size: "sm",
  159 + // size: "sm",
160 160 animation: true,
161 161 backdrop: 'static',
162 162 resolve: {
163 163 },
164   - windowClass: 'center-modal',
  164 + windowClass: 'order-option-modal',
165 165 controller: "DeviceInfoManageListOrderOptionModalInstanceCtrl",
166 166 controllerAs: "$ctrl",
167 167 bindToController: true
... ...
src/main/resources/static/pages/scheduleApp/module/basicInfo/employeeInfoManage/module.js
... ... @@ -284,12 +284,12 @@ angular.module('ScheduleApp').controller(
284 284 // large方式弹出模态对话框
285 285 var modalInstance = $uibModal.open({
286 286 templateUrl: '/pages/scheduleApp/module/basicInfo/employeeInfoManage/orderOptionOpen.html',
287   - size: "sm",
  287 + // size: "sm",
288 288 animation: true,
289 289 backdrop: 'static',
290 290 resolve: {
291 291 },
292   - windowClass: 'center-modal',
  292 + windowClass: 'order-option-modal',
293 293 controller: "EmployeeInfoManageListOrderOptionModalInstanceCtrl",
294 294 controllerAs: "$ctrl",
295 295 bindToController: true
... ...
src/main/resources/static/pages/scheduleApp/module/common/main.css
... ... @@ -19,6 +19,7 @@ form input.ng-valid.ng-dirty.ng-valid-required {
19 19 background-color: #78FA89;
20 20 }
21 21  
  22 +/** 居中弹出框(如:导入弹出框) */
22 23 .center-modal {
23 24 position: fixed;
24 25 top: 10%;
... ... @@ -29,6 +30,16 @@ form input.ng-valid.ng-dirty.ng-valid-required {
29 30 margin-left: -10%;
30 31 }
31 32  
  33 +/* 排序选项弹出框 */
  34 +.order-option-modal .modal-dialog {
  35 + position: fixed;
  36 + top: 10%;
  37 + left: 30%;
  38 + z-index: 1050;
  39 + width: 40%;
  40 + height: 80%;
  41 +}
  42 +
32 43 .fixDiv {
33 44 min-height: 200px;
34 45 min-width: 600px;
... ...
src/main/resources/static/pages/scheduleApp/module/core/busConfig/module.js
... ... @@ -259,12 +259,12 @@ angular.module('ScheduleApp').controller(
259 259 // large方式弹出模态对话框
260 260 var modalInstance = $uibModal.open({
261 261 templateUrl: '/pages/scheduleApp/module/core/busConfig/orderOptionOpen.html',
262   - size: "sm",
  262 + // size: "sm",
263 263 animation: true,
264 264 backdrop: 'static',
265 265 resolve: {
266 266 },
267   - windowClass: 'center-modal',
  267 + windowClass: 'order-option-modal',
268 268 controller: "BusConfigListOrderOptionModalInstanceCtrl",
269 269 controllerAs: "$ctrl",
270 270 bindToController: true
... ...
src/main/resources/static/pages/scheduleApp/module/core/employeeConfig/module.js
... ... @@ -264,12 +264,12 @@ angular.module('ScheduleApp').controller(
264 264 // large方式弹出模态对话框
265 265 var modalInstance = $uibModal.open({
266 266 templateUrl: '/pages/scheduleApp/module/core/employeeConfig/orderOptionOpen.html',
267   - size: "sm",
  267 + // size: "sm",
268 268 animation: true,
269 269 backdrop: 'static',
270 270 resolve: {
271 271 },
272   - windowClass: 'center-modal',
  272 + windowClass: 'order-option-modal',
273 273 controller: "EmployeeConfigListOrderOptionModalInstanceCtrl",
274 274 controllerAs: "$ctrl",
275 275 bindToController: true
... ...
src/main/resources/static/pages/scheduleApp/module/core/guideboardManage/detail.html
... ... @@ -72,6 +72,14 @@
72 72 </div>
73 73 </div>
74 74  
  75 + <div class="form-group has-success has-feedback">
  76 + <label class="col-md-2 control-label">加油公里:</label>
  77 + <div class="col-md-3">
  78 + <input type="text" class="form-control" name="lpType"
  79 + ng-model="ctrl.guideboardForDetail.jygl" readonly/>
  80 + </div>
  81 + </div>
  82 +
75 83 <!-- 其他form-group -->
76 84  
77 85 </div>
... ...
src/main/resources/static/pages/scheduleApp/module/core/guideboardManage/edit.html
... ... @@ -99,6 +99,20 @@
99 99 </div>
100 100 </div>
101 101  
  102 + <div class="form-group">
  103 + <label class="col-md-2 control-label">加油公里:</label>
  104 + <div class="col-md-3">
  105 + <input type="text" class="form-control" name="jygl"
  106 + ng-model="ctrl.guideboardManageForForm.jygl" ng-pattern="ctrl.float_regex"
  107 + />
  108 + </div>
  109 + <!-- 隐藏块,显示验证信息 -->
  110 + <div class="alert alert-danger well-sm" ng-show="myForm.jygl.$error.pattern">
  111 + 输入数字
  112 + </div>
  113 +
  114 + </div>
  115 +
102 116 <!-- 路牌类型暂时是普通路牌,默认填写了 -->
103 117  
104 118  
... ...
src/main/resources/static/pages/scheduleApp/module/core/guideboardManage/form.html
... ... @@ -99,6 +99,20 @@
99 99 </div>
100 100 </div>
101 101  
  102 + <div class="form-group">
  103 + <label class="col-md-2 control-label">加油公里:</label>
  104 + <div class="col-md-3">
  105 + <input type="text" class="form-control" name="jygl"
  106 + ng-model="ctrl.guideboardManageForForm.jygl" ng-pattern="ctrl.float_regex"
  107 + />
  108 + </div>
  109 + <!-- 隐藏块,显示验证信息 -->
  110 + <div class="alert alert-danger well-sm" ng-show="myForm.jygl.$error.pattern">
  111 + 输入数字
  112 + </div>
  113 +
  114 + </div>
  115 +
102 116 <!-- 路牌类型暂时是普通路牌,默认填写了 -->
103 117  
104 118  
... ...
src/main/resources/static/pages/scheduleApp/module/core/guideboardManage/list.html
... ... @@ -8,6 +8,7 @@
8 8 <th style="width: 150px;">线路</th>
9 9 <th style="width: 100px;">路牌编号</th>
10 10 <th >路牌名称</th>
  11 + <th style="width: 100px;">加油公里</th>
11 12 <th style="width: 100px;">路牌类型</th>
12 13 <th style="width: 80px;">状态</th>
13 14 <th style="width: 20%">操作</th>
... ... @@ -35,6 +36,7 @@
35 36 <input type="text" class="form-control form-filter input-sm" ng-model="ctrl.searchCondition()['lpName_like']" placeholder="请输入路牌名字..."/>
36 37 </td>
37 38 <td></td>
  39 + <td></td>
38 40 <td>
39 41 <label class="checkbox-inline">
40 42 <input type="checkbox" ng-model="ctrl.searchCondition()['isCancel_eq']"/>已作废
... ... @@ -86,6 +88,9 @@
86 88 <span ng-bind="info.lpName"></span>
87 89 </td>
88 90 <td>
  91 + <span ng-bind="info.jygl"></span>
  92 + </td>
  93 + <td>
89 94 <span ng-bind="info.lpType"></span>
90 95 </td>
91 96 <td>
... ...
src/main/resources/static/pages/scheduleApp/module/core/guideboardManage/module.js
... ... @@ -265,12 +265,12 @@ angular.module(&#39;ScheduleApp&#39;).controller(
265 265 // large方式弹出模态对话框
266 266 var modalInstance = $uibModal.open({
267 267 templateUrl: '/pages/scheduleApp/module/core/guideboardManage/orderOptionOpen.html',
268   - size: "sm",
  268 + // size: "lg",
269 269 animation: true,
270 270 backdrop: 'static',
271 271 resolve: {
272 272 },
273   - windowClass: 'center-modal',
  273 + windowClass: 'order-option-modal',
274 274 controller: "GuideboardManageListOrderOptionModalInstanceCtrl",
275 275 controllerAs: "$ctrl",
276 276 bindToController: true
... ... @@ -321,6 +321,9 @@ angular.module(&#39;ScheduleApp&#39;).controller(
321 321 var self = this;
322 322 var Gb = service.getGbQueryClass();
323 323  
  324 + // 小数
  325 + self.float_regex = /^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/;
  326 +
324 327 // 欲保存的表单信息,双向绑定
325 328 self.guideboardManageForForm = new Gb;
326 329 self.guideboardManageForForm.xl = {};
... ...
src/main/resources/static/pages/scheduleApp/module/core/rerunManage/module.js
... ... @@ -156,12 +156,12 @@ angular.module(&#39;ScheduleApp&#39;).controller(
156 156 // large方式弹出模态对话框
157 157 var modalInstance = $uibModal.open({
158 158 templateUrl: '/pages/scheduleApp/module/core/rerunManage/orderOptionOpen.html',
159   - size: "sm",
  159 + // size: "sm",
160 160 animation: true,
161 161 backdrop: 'static',
162 162 resolve: {
163 163 },
164   - windowClass: 'center-modal',
  164 + windowClass: 'order-option-modal',
165 165 controller: "RerunManageListOrderOptionModalInstanceCtrl",
166 166 controllerAs: "$ctrl",
167 167 bindToController: true
... ...
src/main/resources/static/pages/scheduleApp/module/core/schedulePlanManage/module.js
... ... @@ -222,12 +222,12 @@ angular.module(&#39;ScheduleApp&#39;).controller(
222 222 // large方式弹出模态对话框
223 223 var modalInstance = $uibModal.open({
224 224 templateUrl: '/pages/scheduleApp/module/core/schedulePlanManage/orderOptionOpen.html',
225   - size: "sm",
  225 + // size: "sm",
226 226 animation: true,
227 227 backdrop: 'static',
228 228 resolve: {
229 229 },
230   - windowClass: 'center-modal',
  230 + windowClass: 'order-option-modal',
231 231 controller: "SchedulePlanManageListOrderOptionModalInstanceCtrl",
232 232 controllerAs: "$ctrl",
233 233 bindToController: true
... ...
src/main/resources/static/pages/scheduleApp/module/core/scheduleRuleManage/module.js
... ... @@ -277,12 +277,12 @@ angular.module(&#39;ScheduleApp&#39;).controller(
277 277 // large方式弹出模态对话框
278 278 var modalInstance = $uibModal.open({
279 279 templateUrl: '/pages/scheduleApp/module/core/scheduleRuleManage/orderOptionOpen.html',
280   - size: "sm",
  280 + // size: "sm",
281 281 animation: true,
282 282 backdrop: 'static',
283 283 resolve: {
284 284 },
285   - windowClass: 'center-modal',
  285 + windowClass: 'order-option-modal',
286 286 controller: "ScheduleRuleManageListOrderOptionModalInstanceCtrl",
287 287 controllerAs: "$ctrl",
288 288 bindToController: true
... ...
src/main/resources/static/pages/scheduleApp/module/core/ttInfoManage/module.js
... ... @@ -234,12 +234,12 @@ angular.module(&#39;ScheduleApp&#39;).controller(
234 234 // large方式弹出模态对话框
235 235 var modalInstance = $uibModal.open({
236 236 templateUrl: '/pages/scheduleApp/module/core/ttInfoManage/orderOptionOpen.html',
237   - size: "sm",
  237 + // size: "sm",
238 238 animation: true,
239 239 backdrop: 'static',
240 240 resolve: {
241 241 },
242   - windowClass: 'center-modal',
  242 + windowClass: 'order-option-modal',
243 243 controller: "TtInfoManageListOrderOptionModalInstanceCtrl",
244 244 controllerAs: "$ctrl",
245 245 bindToController: true
... ...
src/main/resources/static/pages/scheduleApp/module/core/ttInfoManage2/module.js
... ... @@ -234,12 +234,12 @@ angular.module(&#39;ScheduleApp&#39;).controller(
234 234 // large方式弹出模态对话框
235 235 var modalInstance = $uibModal.open({
236 236 templateUrl: '/pages/scheduleApp/module/core/ttInfoManage2/orderOptionOpen.html',
237   - size: "sm",
  237 + // size: "sm",
238 238 animation: true,
239 239 backdrop: 'static',
240 240 resolve: {
241 241 },
242   - windowClass: 'center-modal',
  242 + windowClass: 'order-option-modal',
243 243 controller: "TtInfoManage2ListOrderOptionModalInstanceCtrl",
244 244 controllerAs: "$ctrl",
245 245 bindToController: true
... ...