Commit a9b11d2da168d3f881f7a1b37abb8f46f62f5d7a
Merge branch 'minhang' of http://222.66.0.204:8090/panzhaov5/bsth_control into minhang
Showing
24 changed files
with
2361 additions
and
2167 deletions
Too many changes to show.
To preserve performance only 24 of 93 files are displayed.
src/main/java/com/bsth/entity/Line.java
| @@ -144,6 +144,9 @@ public class Line implements Serializable { | @@ -144,6 +144,9 @@ public class Line implements Serializable { | ||
| 144 | /** 修改日期 timestamp */ | 144 | /** 修改日期 timestamp */ |
| 145 | @Column(name = "update_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP") | 145 | @Column(name = "update_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP") |
| 146 | private Date updateDate; | 146 | private Date updateDate; |
| 147 | + | ||
| 148 | + /** 是否在使用 <1:是;0:否> bit length(50) */ | ||
| 149 | + private Integer inUse; | ||
| 147 | 150 | ||
| 148 | public Integer getWarrantCar() { | 151 | public Integer getWarrantCar() { |
| 149 | return warrantCar; | 152 | return warrantCar; |
| @@ -448,4 +451,8 @@ public class Line implements Serializable { | @@ -448,4 +451,8 @@ public class Line implements Serializable { | ||
| 448 | public void setUpdateDate(Date updateDate) { | 451 | public void setUpdateDate(Date updateDate) { |
| 449 | this.updateDate = updateDate; | 452 | this.updateDate = updateDate; |
| 450 | } | 453 | } |
| 454 | + | ||
| 455 | + public Integer getInUse() { return inUse; } | ||
| 456 | + | ||
| 457 | + public void setInUse(Integer inUse) { this.inUse = inUse; } | ||
| 451 | } | 458 | } |
src/main/resources/application-dev.properties
| @@ -8,7 +8,7 @@ spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy | @@ -8,7 +8,7 @@ spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy | ||
| 8 | spring.jpa.database= MYSQL | 8 | spring.jpa.database= MYSQL |
| 9 | spring.jpa.show-sql= false | 9 | spring.jpa.show-sql= false |
| 10 | spring.datasource.driver-class-name= com.mysql.jdbc.Driver | 10 | spring.datasource.driver-class-name= com.mysql.jdbc.Driver |
| 11 | -spring.datasource.url= jdbc:mysql://192.168.168.201/mh_control?useUnicode=true&characterEncoding=utf-8&useSSL=false | 11 | +spring.datasource.url= jdbc:mysql://192.168.168.201/qp_control?useUnicode=true&characterEncoding=utf-8&useSSL=false |
| 12 | spring.datasource.username= root | 12 | spring.datasource.username= root |
| 13 | spring.datasource.password= 123456 | 13 | spring.datasource.password= 123456 |
| 14 | #DATASOURCE | 14 | #DATASOURCE |
src/main/resources/application-prod.properties
| @@ -8,9 +8,9 @@ spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy | @@ -8,9 +8,9 @@ spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy | ||
| 8 | spring.jpa.database= MYSQL | 8 | spring.jpa.database= MYSQL |
| 9 | spring.jpa.show-sql= false | 9 | spring.jpa.show-sql= false |
| 10 | spring.datasource.driver-class-name= com.mysql.jdbc.Driver | 10 | spring.datasource.driver-class-name= com.mysql.jdbc.Driver |
| 11 | -spring.datasource.url= jdbc:mysql://192.168.168.171:3306/control?useUnicode=true&characterEncoding=utf-8&useSSL=false | 11 | +spring.datasource.url= jdbc:mysql://192.168.40.100:3306/qp_control?useUnicode=true&characterEncoding=utf-8&useSSL=false |
| 12 | spring.datasource.username= root | 12 | spring.datasource.username= root |
| 13 | -spring.datasource.password= root2jsp | 13 | +spring.datasource.password= root@JSP2jsp |
| 14 | #DATASOURCE | 14 | #DATASOURCE |
| 15 | spring.datasource.max-active=100 | 15 | spring.datasource.max-active=100 |
| 16 | spring.datasource.max-idle=8 | 16 | spring.datasource.max-idle=8 |
| @@ -26,6 +26,6 @@ spring.datasource.validation-query=select 1 | @@ -26,6 +26,6 @@ spring.datasource.validation-query=select 1 | ||
| 26 | ## | 26 | ## |
| 27 | #222.66.0.204:5555 | 27 | #222.66.0.204:5555 |
| 28 | ##\u5B9E\u65F6gps | 28 | ##\u5B9E\u65F6gps |
| 29 | -http.gps.real.url= http://192.168.168.171:8080/transport_server/rtgps/ | 29 | +http.gps.real.url= http://192.168.40.82:8080/transport_server/rtgps/ |
| 30 | ##\u6D88\u606F\u4E0B\u53D1 | 30 | ##\u6D88\u606F\u4E0B\u53D1 |
| 31 | -http.send.directive = http://192.168.168.171:8080/transport_server/message/ | ||
| 32 | \ No newline at end of file | 31 | \ No newline at end of file |
| 32 | +http.send.directive = http://192.168.40.82:8080/transport_server/message/ | ||
| 33 | \ No newline at end of file | 33 | \ No newline at end of file |
src/main/resources/datatools/config-prod.properties
| @@ -5,13 +5,13 @@ datatools.kettle_properties=/datatools/kettle.properties | @@ -5,13 +5,13 @@ datatools.kettle_properties=/datatools/kettle.properties | ||
| 5 | # 2、ktr文件通用配置变量(数据库连接,根据不同的环境需要修正) | 5 | # 2、ktr文件通用配置变量(数据库连接,根据不同的环境需要修正) |
| 6 | 6 | ||
| 7 | #数据库ip地址 | 7 | #数据库ip地址 |
| 8 | -datatools.kvars_dbip=192.168.168.171 | 8 | +datatools.kvars_dbip=192.168.40.100 |
| 9 | #数据库用户名 | 9 | #数据库用户名 |
| 10 | datatools.kvars_dbuname=root | 10 | datatools.kvars_dbuname=root |
| 11 | #数据库密码 | 11 | #数据库密码 |
| 12 | -datatools.kvars_dbpwd=root2jsp | 12 | +datatools.kvars_dbpwd=root@JSP2jsp |
| 13 | #数据库库名 | 13 | #数据库库名 |
| 14 | -datatools.kvars_dbdname=control | 14 | +datatools.kvars_dbdname=qp_control |
| 15 | 15 | ||
| 16 | # 3、上传数据配置信息 | 16 | # 3、上传数据配置信息 |
| 17 | # 上传文件目录配置(根据不同的环境需要修正) | 17 | # 上传文件目录配置(根据不同的环境需要修正) |
src/main/resources/ms-jdbc.properties
| 1 | +#ms.mysql.driver= com.mysql.jdbc.Driver | ||
| 2 | +#ms.mysql.url= jdbc:mysql://192.168.40.82:3306/ms?useUnicode=true&characterEncoding=utf-8&useSSL=false | ||
| 3 | +#ms.mysql.username= root | ||
| 4 | +#ms.mysql.password= 123456 | ||
| 5 | + | ||
| 1 | ms.mysql.driver= com.mysql.jdbc.Driver | 6 | ms.mysql.driver= com.mysql.jdbc.Driver |
| 2 | ms.mysql.url= jdbc:mysql://192.168.168.201:3306/ms?useUnicode=true&characterEncoding=utf-8&useSSL=false | 7 | ms.mysql.url= jdbc:mysql://192.168.168.201:3306/ms?useUnicode=true&characterEncoding=utf-8&useSSL=false |
| 3 | ms.mysql.username= root | 8 | ms.mysql.username= root |
| 4 | ms.mysql.password= 123456 | 9 | ms.mysql.password= 123456 |
| 5 | - | ||
| 6 | -#ms.mysql.driver= com.mysql.jdbc.Driver | ||
| 7 | -#ms.mysql.url= jdbc:mysql://192.168.168.171:3306/ms?useUnicode=true&characterEncoding=utf-8 | ||
| 8 | -#ms.mysql.username= root | ||
| 9 | -#ms.mysql.password= root2jsp | ||
| 10 | \ No newline at end of file | 10 | \ No newline at end of file |
src/main/resources/static/index.html
| @@ -145,7 +145,7 @@ tr.row-active td { | @@ -145,7 +145,7 @@ tr.row-active td { | ||
| 145 | <div class="page-header-inner "> | 145 | <div class="page-header-inner "> |
| 146 | <!-- LOGO --> | 146 | <!-- LOGO --> |
| 147 | <div class="page-logo"> | 147 | <div class="page-logo"> |
| 148 | - <a href="index.html" class="logo-default logo-default-text" > 闵行公交调度系统 </a> | 148 | + <a href="index.html" class="logo-default logo-default-text" > 青浦公交调度系统 </a> |
| 149 | <div class="menu-toggler sidebar-toggler"> | 149 | <div class="menu-toggler sidebar-toggler"> |
| 150 | </div> | 150 | </div> |
| 151 | </div> | 151 | </div> |
src/main/resources/static/login.html
| @@ -180,7 +180,7 @@ h3.logo-text{ | @@ -180,7 +180,7 @@ h3.logo-text{ | ||
| 180 | <div class="wrapper ng-scope"> | 180 | <div class="wrapper ng-scope"> |
| 181 | <div id="loginPanel" class="dialog dialog-shadow"> | 181 | <div id="loginPanel" class="dialog dialog-shadow"> |
| 182 | <br> | 182 | <br> |
| 183 | - <h3 class="logo-text">闵行公交调度系统 </h3> | 183 | + <h3 class="logo-text">青浦公交调度系统 </h3> |
| 184 | <hr> | 184 | <hr> |
| 185 | <form style="padding: 0px 35px;"> | 185 | <form style="padding: 0px 35px;"> |
| 186 | <div class="form-group" style="margin-bottom: 0"> | 186 | <div class="form-group" style="margin-bottom: 0"> |
src/main/resources/static/pages/control/line/index.html
| @@ -18,7 +18,7 @@ | @@ -18,7 +18,7 @@ | ||
| 18 | <div class="portlet-title banner" > | 18 | <div class="portlet-title banner" > |
| 19 | <div class="caption col_hide_1280" style="color: #FFF;"> | 19 | <div class="caption col_hide_1280" style="color: #FFF;"> |
| 20 | <i class="fa fa-life-ring" style="font-size: 22px;color: #FFF;"></i> <span | 20 | <i class="fa fa-life-ring" style="font-size: 22px;color: #FFF;"></i> <span |
| 21 | - class="caption-subject bold" style="font-size: 24px;">闵行公交线路调度系统</span> | 21 | + class="caption-subject bold" style="font-size: 24px;">青浦公交线路调度系统</span> |
| 22 | </div> | 22 | </div> |
| 23 | <div class="col_hide_1440" style="color: white;font-size: 18px;position: absolute;right: 25px;top: 75px;"> | 23 | <div class="col_hide_1440" style="color: white;font-size: 18px;position: absolute;right: 25px;top: 75px;"> |
| 24 | <span class="top_username"></span> <span class="operation_mode_text animated" ></span> | 24 | <span class="top_username"></span> <span class="operation_mode_text animated" ></span> |
src/main/resources/static/pages/scheduleApp/Gruntfile.js
| @@ -11,6 +11,9 @@ module.exports = function (grunt) { | @@ -11,6 +11,9 @@ module.exports = function (grunt) { | ||
| 11 | clean: { | 11 | clean: { |
| 12 | concat_directive: { // 所有指令合并的js文件 | 12 | concat_directive: { // 所有指令合并的js文件 |
| 13 | src: ['module/common/prj-common-directive.js'] | 13 | src: ['module/common/prj-common-directive.js'] |
| 14 | + }, | ||
| 15 | + concat_route: { // 所有模块的route配置合并的js文件 | ||
| 16 | + src: ['module/common/prj-common-ui-route-state.js'] | ||
| 14 | } | 17 | } |
| 15 | 18 | ||
| 16 | //, | 19 | //, |
| @@ -79,6 +82,28 @@ module.exports = function (grunt) { | @@ -79,6 +82,28 @@ module.exports = function (grunt) { | ||
| 79 | 'module/common/dts2/bcGroup/saBcgroup.js' // 班次选择整合指令 | 82 | 'module/common/dts2/bcGroup/saBcgroup.js' // 班次选择整合指令 |
| 80 | ], | 83 | ], |
| 81 | dest: 'module/common/prj-common-directive.js' | 84 | dest: 'module/common/prj-common-directive.js' |
| 85 | + }, | ||
| 86 | + route: { | ||
| 87 | + options: { | ||
| 88 | + banner: '//所有模块ui route 配置' | ||
| 89 | + }, | ||
| 90 | + src: [ | ||
| 91 | + 'module/basicInfo/busInfoManage/route.js', // 车辆基础信息管理模块 | ||
| 92 | + 'module/basicInfo/deviceInfoManage/route.js', // 设备管理模块 | ||
| 93 | + 'module/basicInfo/employeeInfoManage/route.js', // 人员基础信息管理模块 | ||
| 94 | + 'module/core/busConfig/route.js', // 车辆配置模块 | ||
| 95 | + 'module/core/busLineInfoStat/route.js', // 线路运营概览模块 | ||
| 96 | + 'module/core/employeeConfig/route.js', // 人员配置模块 | ||
| 97 | + 'module/core/guideboardManage/route.js', // 路牌管理模块 | ||
| 98 | + 'module/core/rerunManage/route.js', // 套跑管理模块 | ||
| 99 | + 'module/core/schedulePlanManage/route.js', // 排班计划管理模块 | ||
| 100 | + 'module/core/schedulePlanManage/info/route.js', // 排班计划明细管理模块 | ||
| 101 | + 'module/core/schedulePlanManage/report/route.js', // 排班计划明日运营模块 | ||
| 102 | + 'module/core/scheduleRuleManage/route.js', // 排班规则管理模块 | ||
| 103 | + 'module/core/ttInfoManage/route.js', // 时刻表管理模块 | ||
| 104 | + 'module/core/ttInfoManage/detailedit/route.js' // 时刻表明细管理模块 | ||
| 105 | + ], | ||
| 106 | + dest: 'module/common/prj-common-ui-route-state.js' | ||
| 82 | } | 107 | } |
| 83 | }, | 108 | }, |
| 84 | 109 | ||
| @@ -401,6 +426,18 @@ module.exports = function (grunt) { | @@ -401,6 +426,18 @@ module.exports = function (grunt) { | ||
| 401 | 1、clean:concat_directive,清除合并生成的prj-common-directive.js文件 | 426 | 1、clean:concat_directive,清除合并生成的prj-common-directive.js文件 |
| 402 | 2、concat:directive,重新合并prj-common-directive.js文件 | 427 | 2、concat:directive,重新合并prj-common-directive.js文件 |
| 403 | */ | 428 | */ |
| 404 | - grunt.registerTask('directive', ['clean:concat_directive', 'concat:directive']); | 429 | + grunt.registerTask('directive', [ |
| 430 | + 'clean:concat_directive', 'concat:directive' | ||
| 431 | + ]); | ||
| 432 | + | ||
| 433 | + /* | ||
| 434 | + 定义了一个route的grunt任务 | ||
| 435 | + 任务组有顺序,如下说明: | ||
| 436 | + 1、clean:concat_route,清除合并生成的prj-common-ui-route-state.js文件 | ||
| 437 | + 2、concat:route,重新合并prj-common-ui-route-state.js文件 | ||
| 438 | + */ | ||
| 439 | + grunt.registerTask('route', [ | ||
| 440 | + 'clean:concat_route', 'concat:route' | ||
| 441 | + ]); | ||
| 405 | 442 | ||
| 406 | }; | 443 | }; |
| 407 | \ No newline at end of file | 444 | \ No newline at end of file |
src/main/resources/static/pages/scheduleApp/module/basicInfo/busInfoManage/dist/busInfoManage.dist.html deleted
100644 → 0
| 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> | ||
| 9 | - <a href="/pages/home.html" data-pjax>首页</a> | ||
| 10 | - <i class="fa fa-circle"></i> | ||
| 11 | - </li> | ||
| 12 | - <li> | ||
| 13 | - <span class="active">基础信息</span> | ||
| 14 | - <i class="fa fa-circle"></i> | ||
| 15 | - </li> | ||
| 16 | - <li> | ||
| 17 | - <span class="active">车辆信息管理</span> | ||
| 18 | - </li> | ||
| 19 | - | ||
| 20 | -</ul> | ||
| 21 | - | ||
| 22 | -<div class="row"> | ||
| 23 | - <div class="col-md-12"> | ||
| 24 | - dfdfdfdfdf | ||
| 25 | - </div> | ||
| 26 | -</div> | ||
| 27 | \ No newline at end of file | 0 | \ No newline at end of file |
src/main/resources/static/pages/scheduleApp/module/basicInfo/busInfoManage/busInfoManage.js renamed to src/main/resources/static/pages/scheduleApp/module/basicInfo/busInfoManage/module.js
| 1 | -// 车辆基础信息维护 service controller等写在一起 | ||
| 2 | - | ||
| 3 | -angular.module('ScheduleApp').factory('BusInfoManageService', ['BusInfoManageService_g', function(service) { | ||
| 4 | - | ||
| 5 | - /** 当前的查询条件信息 */ | ||
| 6 | - var currentSearchCondition = { | ||
| 7 | - "carCode_like" : "", | ||
| 8 | - "insideCode_like" : "", | ||
| 9 | - "equipmentCode_like" : "", | ||
| 10 | - "carPlate_like" : "" | ||
| 11 | - }; | ||
| 12 | - | ||
| 13 | - /** 当前第几页 */ | ||
| 14 | - var currentPageNo = 1; | ||
| 15 | - return { | ||
| 16 | - /** | ||
| 17 | - * 获取查询条件信息, | ||
| 18 | - * 用于给controller用来和页面数据绑定。 | ||
| 19 | - */ | ||
| 20 | - getSearchCondition: function() { | ||
| 21 | - return currentSearchCondition; | ||
| 22 | - }, | ||
| 23 | - /** | ||
| 24 | - * 重置查询条件信息。 | ||
| 25 | - */ | ||
| 26 | - resetSearchCondition: function() { | ||
| 27 | - var key; | ||
| 28 | - for (key in currentSearchCondition) { | ||
| 29 | - currentSearchCondition[key] = undefined; | ||
| 30 | - } | ||
| 31 | - currentPageNo = 1; | ||
| 32 | - }, | ||
| 33 | - /** | ||
| 34 | - * 设置当前页码。 | ||
| 35 | - * @param cpn 从1开始,后台是从0开始的 | ||
| 36 | - */ | ||
| 37 | - setCurrentPageNo: function(cpn) { | ||
| 38 | - currentPageNo = cpn; | ||
| 39 | - }, | ||
| 40 | - /** | ||
| 41 | - * 组装查询参数,返回一个promise查询结果。 | ||
| 42 | - * @param params 查询参数 | ||
| 43 | - * @return 返回一个 promise | ||
| 44 | - */ | ||
| 45 | - getPage: function() { | ||
| 46 | - var params = currentSearchCondition; // 查询条件 | ||
| 47 | - params.page = currentPageNo - 1; // 服务端页码从0开始 | ||
| 48 | - return service.rest.list(params).$promise; | ||
| 49 | - }, | ||
| 50 | - /** | ||
| 51 | - * 获取明细信息。 | ||
| 52 | - * @param id 车辆id | ||
| 53 | - * @return 返回一个 promise | ||
| 54 | - */ | ||
| 55 | - getDetail: function(id) { | ||
| 56 | - var params = {id: id}; | ||
| 57 | - return service.rest.get(params).$promise; | ||
| 58 | - }, | ||
| 59 | - /** | ||
| 60 | - * 保存信息。 | ||
| 61 | - * @param obj 车辆详细信息 | ||
| 62 | - * @return 返回一个 promise | ||
| 63 | - */ | ||
| 64 | - saveDetail: function(obj) { | ||
| 65 | - return service.rest.save(obj).$promise; | ||
| 66 | - }, | ||
| 67 | - /** | ||
| 68 | - * 数据导出。 | ||
| 69 | - * @returns {*|Function|promise|n} | ||
| 70 | - */ | ||
| 71 | - dataExport: function() { | ||
| 72 | - return service.dataTools.dataExport().$promise; | ||
| 73 | - } | ||
| 74 | - }; | ||
| 75 | -}]); | ||
| 76 | - | ||
| 77 | -angular.module('ScheduleApp').controller('BusInfoManageCtrl', [ | ||
| 78 | - 'BusInfoManageService','$state', '$uibModal', 'FileDownload_g', | ||
| 79 | - function(busInfoManageService, $state, $uibModal, fileDownload) { | ||
| 80 | - var self = this; | ||
| 81 | - | ||
| 82 | - // 切换到form状态 | ||
| 83 | - self.goForm = function() { | ||
| 84 | - //alert("切换"); | ||
| 85 | - $state.go("busInfoManage_form"); | ||
| 86 | - }; | ||
| 87 | - | ||
| 88 | - // 导入excel | ||
| 89 | - self.importData = function() { | ||
| 90 | - // large方式弹出模态对话框 | ||
| 91 | - var modalInstance = $uibModal.open({ | ||
| 92 | - templateUrl: '/pages/scheduleApp/module/basicInfo/busInfoManage/dataImport.html', | ||
| 93 | - size: "lg", | ||
| 94 | - animation: true, | ||
| 95 | - backdrop: 'static', | ||
| 96 | - resolve: { | ||
| 97 | - // 可以传值给controller | ||
| 98 | - }, | ||
| 99 | - windowClass: 'center-modal', | ||
| 100 | - controller: "BusInfoManageToolsCtrl", | ||
| 101 | - controllerAs: "ctrl", | ||
| 102 | - bindToController: true | ||
| 103 | - }); | ||
| 104 | - modalInstance.result.then( | ||
| 105 | - function() { | ||
| 106 | - console.log("dataImport.html打开"); | ||
| 107 | - }, | ||
| 108 | - function() { | ||
| 109 | - console.log("dataImport.html消失"); | ||
| 110 | - } | ||
| 111 | - ); | ||
| 112 | - }; | ||
| 113 | - | ||
| 114 | - // 导出excel | ||
| 115 | - self.exportData = function() { | ||
| 116 | - busInfoManageService.dataExport().then( | ||
| 117 | - function(result) { | ||
| 118 | - fileDownload.downloadFile(result.data, "application/octet-stream", "车辆基础信息.xls"); | ||
| 119 | - }, | ||
| 120 | - function(result) { | ||
| 121 | - console.log("exportData failed:" + result); | ||
| 122 | - } | ||
| 123 | - ); | ||
| 124 | - }; | ||
| 125 | -}]); | ||
| 126 | - | ||
| 127 | -angular.module('ScheduleApp').controller('BusInfoManageToolsCtrl', ['$modalInstance', 'FileUploader', function($modalInstance, FileUploader) { | ||
| 128 | - var self = this; | ||
| 129 | - self.data = "TODO"; | ||
| 130 | - | ||
| 131 | - // 关闭窗口 | ||
| 132 | - self.close = function() { | ||
| 133 | - $modalInstance.dismiss("cancel"); | ||
| 134 | - }; | ||
| 135 | - | ||
| 136 | - self.clearInputFile = function() { | ||
| 137 | - angular.element("input[type='file']").val(null); | ||
| 138 | - }; | ||
| 139 | - | ||
| 140 | - // 上传文件组件 | ||
| 141 | - self.uploader = new FileUploader({ | ||
| 142 | - url: "/cars/dataImport", | ||
| 143 | - filters: [] // 用于过滤文件,比如只允许导入excel | ||
| 144 | - }); | ||
| 145 | - self.uploader.onAfterAddingFile = function(fileItem) | ||
| 146 | - { | ||
| 147 | - console.info('onAfterAddingFile', fileItem); | ||
| 148 | - console.log(self.uploader.queue.length); | ||
| 149 | - if (self.uploader.queue.length > 1) | ||
| 150 | - self.uploader.removeFromQueue(0); | ||
| 151 | - }; | ||
| 152 | - self.uploader.onSuccessItem = function(fileItem, response, status, headers) | ||
| 153 | - { | ||
| 154 | - console.info('onSuccessItem', fileItem, response, status, headers); | ||
| 155 | - }; | ||
| 156 | - self.uploader.onErrorItem = function(fileItem, response, status, headers) | ||
| 157 | - { | ||
| 158 | - console.info('onErrorItem', fileItem, response, status, headers); | ||
| 159 | - }; | ||
| 160 | - | ||
| 161 | -}]); | ||
| 162 | - | ||
| 163 | - | ||
| 164 | -angular.module('ScheduleApp').controller('BusInfoManageListCtrl', ['BusInfoManageService','$scope', function(busInfoManageService, $scope) { | ||
| 165 | - var self = this; | ||
| 166 | - self.pageInfo = { | ||
| 167 | - totalItems : 0, | ||
| 168 | - currentPage : 1, | ||
| 169 | - infos: [] | ||
| 170 | - }; | ||
| 171 | - | ||
| 172 | - // 初始创建的时候,获取一次列表数据 | ||
| 173 | - busInfoManageService.getPage().then( | ||
| 174 | - function(result) { | ||
| 175 | - self.pageInfo.totalItems = result.totalElements; | ||
| 176 | - self.pageInfo.currentPage = result.number + 1; | ||
| 177 | - self.pageInfo.infos = result.content; | ||
| 178 | - busInfoManageService.setCurrentPageNo(result.number + 1); | ||
| 179 | - }, | ||
| 180 | - function(result) { | ||
| 181 | - alert("出错啦!"); | ||
| 182 | - } | ||
| 183 | - ); | ||
| 184 | - | ||
| 185 | - //$scope.$watch("ctrl.pageInfo.currentPage", function() { | ||
| 186 | - // alert("dfdfdf"); | ||
| 187 | - //}); | ||
| 188 | - | ||
| 189 | - // 翻页的时候调用 | ||
| 190 | - self.pageChanaged = function() { | ||
| 191 | - busInfoManageService.setCurrentPageNo(self.pageInfo.currentPage); | ||
| 192 | - busInfoManageService.getPage().then( | ||
| 193 | - function(result) { | ||
| 194 | - self.pageInfo.totalItems = result.totalElements; | ||
| 195 | - self.pageInfo.currentPage = result.number + 1; | ||
| 196 | - self.pageInfo.infos = result.content; | ||
| 197 | - busInfoManageService.setCurrentPageNo(result.number + 1); | ||
| 198 | - }, | ||
| 199 | - function(result) { | ||
| 200 | - alert("出错啦!"); | ||
| 201 | - } | ||
| 202 | - ); | ||
| 203 | - }; | ||
| 204 | - // 获取查询条件数据 | ||
| 205 | - self.searchCondition = function() { | ||
| 206 | - return busInfoManageService.getSearchCondition(); | ||
| 207 | - }; | ||
| 208 | - // 重置查询条件 | ||
| 209 | - self.resetSearchCondition = function() { | ||
| 210 | - busInfoManageService.resetSearchCondition(); | ||
| 211 | - self.pageInfo.currentPage = 1; | ||
| 212 | - self.pageChanaged(); | ||
| 213 | - }; | ||
| 214 | -}]); | ||
| 215 | - | ||
| 216 | -angular.module('ScheduleApp').controller('BusInfoManageFormCtrl', ['BusInfoManageService', '$stateParams', '$state', function(busInfoManageService, $stateParams, $state) { | ||
| 217 | - var self = this; | ||
| 218 | - | ||
| 219 | - // 报废日期 日期控件开关 | ||
| 220 | - self.scrapDateOpen = false; | ||
| 221 | - self.scrapDate_open = function() { | ||
| 222 | - self.scrapDateOpen = true; | ||
| 223 | - }; | ||
| 224 | - | ||
| 225 | - // 启用日期 日期控件开关 | ||
| 226 | - self.openDateOpen = false; | ||
| 227 | - self.openDate_open = function() { | ||
| 228 | - self.openDateOpen = true; | ||
| 229 | - }; | ||
| 230 | - // 取消日期 日期控件开关 | ||
| 231 | - self.closeDateOpen = false; | ||
| 232 | - self.closeDate_open = function() { | ||
| 233 | - self.closeDateOpen = true; | ||
| 234 | - }; | ||
| 235 | - | ||
| 236 | - // 欲保存的busInfo信息,绑定 | ||
| 237 | - self.busInfoForSave = {}; | ||
| 238 | - | ||
| 239 | - // 获取传过来的id,有的话就是修改,获取一遍数据 | ||
| 240 | - var id = $stateParams.id; | ||
| 241 | - if (id) { | ||
| 242 | - self.busInfoForSave.id = id; | ||
| 243 | - busInfoManageService.getDetail(id).then( | ||
| 244 | - function(result) { | ||
| 245 | - var key; | ||
| 246 | - for (key in result) { | ||
| 247 | - self.busInfoForSave[key] = result[key]; | ||
| 248 | - } | ||
| 249 | - }, | ||
| 250 | - function(result) { | ||
| 251 | - alert("出错啦!"); | ||
| 252 | - } | ||
| 253 | - ); | ||
| 254 | - } | ||
| 255 | - | ||
| 256 | - // 提交方法 | ||
| 257 | - self.submit = function() { | ||
| 258 | - console.log(self.busInfoForSave); | ||
| 259 | - //if (self.busInfoForSave) { | ||
| 260 | - // delete $stateParams.id; | ||
| 261 | - //} | ||
| 262 | - busInfoManageService.saveDetail(self.busInfoForSave).then( | ||
| 263 | - function(result) { | ||
| 264 | - // TODO:弹出框方式以后改 | ||
| 265 | - if (result.status == 'SUCCESS') { | ||
| 266 | - alert("保存成功!"); | ||
| 267 | - $state.go("busInfoManage"); | ||
| 268 | - } else { | ||
| 269 | - alert("保存异常!"); | ||
| 270 | - } | ||
| 271 | - }, | ||
| 272 | - function(result) { | ||
| 273 | - // TODO:弹出框方式以后改 | ||
| 274 | - alert("出错啦!"); | ||
| 275 | - } | ||
| 276 | - ); | ||
| 277 | - }; | ||
| 278 | - | ||
| 279 | -}]); | ||
| 280 | - | ||
| 281 | -angular.module('ScheduleApp').controller('BusInfoManageDetailCtrl', ['BusInfoManageService', '$stateParams', function(busInfoManageService, $stateParams) { | ||
| 282 | - var self = this; | ||
| 283 | - self.title = ""; | ||
| 284 | - self.busInfoForDetail = {}; | ||
| 285 | - self.busInfoForDetail.id = $stateParams.id; | ||
| 286 | - | ||
| 287 | - // 当转向到此页面时,就获取明细信息并绑定 | ||
| 288 | - busInfoManageService.getDetail($stateParams.id).then( | ||
| 289 | - function(result) { | ||
| 290 | - var key; | ||
| 291 | - for (key in result) { | ||
| 292 | - self.busInfoForDetail[key] = result[key]; | ||
| 293 | - } | ||
| 294 | - | ||
| 295 | - self.title = "车辆 " + self.busInfoForDetail.insideCode + " 详细信息"; | ||
| 296 | - }, | ||
| 297 | - function(result) { | ||
| 298 | - // TODO:弹出框方式以后改 | ||
| 299 | - alert("出错啦!"); | ||
| 300 | - } | ||
| 301 | - ); | 1 | +// 车辆基础信息维护 service controller等写在一起 |
| 2 | + | ||
| 3 | +angular.module('ScheduleApp').factory('BusInfoManageService', ['BusInfoManageService_g', function(service) { | ||
| 4 | + | ||
| 5 | + /** 当前的查询条件信息 */ | ||
| 6 | + var currentSearchCondition = { | ||
| 7 | + "carCode_like" : "", | ||
| 8 | + "insideCode_like" : "", | ||
| 9 | + "equipmentCode_like" : "", | ||
| 10 | + "carPlate_like" : "" | ||
| 11 | + }; | ||
| 12 | + | ||
| 13 | + /** 当前第几页 */ | ||
| 14 | + var currentPageNo = 1; | ||
| 15 | + return { | ||
| 16 | + /** | ||
| 17 | + * 获取查询条件信息, | ||
| 18 | + * 用于给controller用来和页面数据绑定。 | ||
| 19 | + */ | ||
| 20 | + getSearchCondition: function() { | ||
| 21 | + return currentSearchCondition; | ||
| 22 | + }, | ||
| 23 | + /** | ||
| 24 | + * 重置查询条件信息。 | ||
| 25 | + */ | ||
| 26 | + resetSearchCondition: function() { | ||
| 27 | + var key; | ||
| 28 | + for (key in currentSearchCondition) { | ||
| 29 | + currentSearchCondition[key] = undefined; | ||
| 30 | + } | ||
| 31 | + currentPageNo = 1; | ||
| 32 | + }, | ||
| 33 | + /** | ||
| 34 | + * 设置当前页码。 | ||
| 35 | + * @param cpn 从1开始,后台是从0开始的 | ||
| 36 | + */ | ||
| 37 | + setCurrentPageNo: function(cpn) { | ||
| 38 | + currentPageNo = cpn; | ||
| 39 | + }, | ||
| 40 | + /** | ||
| 41 | + * 组装查询参数,返回一个promise查询结果。 | ||
| 42 | + * @param params 查询参数 | ||
| 43 | + * @return 返回一个 promise | ||
| 44 | + */ | ||
| 45 | + getPage: function() { | ||
| 46 | + var params = currentSearchCondition; // 查询条件 | ||
| 47 | + params.page = currentPageNo - 1; // 服务端页码从0开始 | ||
| 48 | + return service.rest.list(params).$promise; | ||
| 49 | + }, | ||
| 50 | + /** | ||
| 51 | + * 获取明细信息。 | ||
| 52 | + * @param id 车辆id | ||
| 53 | + * @return 返回一个 promise | ||
| 54 | + */ | ||
| 55 | + getDetail: function(id) { | ||
| 56 | + var params = {id: id}; | ||
| 57 | + return service.rest.get(params).$promise; | ||
| 58 | + }, | ||
| 59 | + /** | ||
| 60 | + * 保存信息。 | ||
| 61 | + * @param obj 车辆详细信息 | ||
| 62 | + * @return 返回一个 promise | ||
| 63 | + */ | ||
| 64 | + saveDetail: function(obj) { | ||
| 65 | + return service.rest.save(obj).$promise; | ||
| 66 | + }, | ||
| 67 | + /** | ||
| 68 | + * 数据导出。 | ||
| 69 | + * @returns {*|Function|promise|n} | ||
| 70 | + */ | ||
| 71 | + dataExport: function() { | ||
| 72 | + return service.dataTools.dataExport().$promise; | ||
| 73 | + } | ||
| 74 | + }; | ||
| 75 | +}]); | ||
| 76 | + | ||
| 77 | +angular.module('ScheduleApp').controller('BusInfoManageCtrl', [ | ||
| 78 | + 'BusInfoManageService','$state', '$uibModal', 'FileDownload_g', | ||
| 79 | + function(busInfoManageService, $state, $uibModal, fileDownload) { | ||
| 80 | + var self = this; | ||
| 81 | + | ||
| 82 | + // 切换到form状态 | ||
| 83 | + self.goForm = function() { | ||
| 84 | + //alert("切换"); | ||
| 85 | + $state.go("busInfoManage_form"); | ||
| 86 | + }; | ||
| 87 | + | ||
| 88 | + // 导入excel | ||
| 89 | + self.importData = function() { | ||
| 90 | + // large方式弹出模态对话框 | ||
| 91 | + var modalInstance = $uibModal.open({ | ||
| 92 | + templateUrl: '/pages/scheduleApp/module/basicInfo/busInfoManage/dataImport.html', | ||
| 93 | + size: "lg", | ||
| 94 | + animation: true, | ||
| 95 | + backdrop: 'static', | ||
| 96 | + resolve: { | ||
| 97 | + // 可以传值给controller | ||
| 98 | + }, | ||
| 99 | + windowClass: 'center-modal', | ||
| 100 | + controller: "BusInfoManageToolsCtrl", | ||
| 101 | + controllerAs: "ctrl", | ||
| 102 | + bindToController: true | ||
| 103 | + }); | ||
| 104 | + modalInstance.result.then( | ||
| 105 | + function() { | ||
| 106 | + console.log("dataImport.html打开"); | ||
| 107 | + }, | ||
| 108 | + function() { | ||
| 109 | + console.log("dataImport.html消失"); | ||
| 110 | + } | ||
| 111 | + ); | ||
| 112 | + }; | ||
| 113 | + | ||
| 114 | + // 导出excel | ||
| 115 | + self.exportData = function() { | ||
| 116 | + busInfoManageService.dataExport().then( | ||
| 117 | + function(result) { | ||
| 118 | + fileDownload.downloadFile(result.data, "application/octet-stream", "车辆基础信息.xls"); | ||
| 119 | + }, | ||
| 120 | + function(result) { | ||
| 121 | + console.log("exportData failed:" + result); | ||
| 122 | + } | ||
| 123 | + ); | ||
| 124 | + }; | ||
| 125 | + }]); | ||
| 126 | + | ||
| 127 | +angular.module('ScheduleApp').controller('BusInfoManageToolsCtrl', ['$modalInstance', 'FileUploader', function($modalInstance, FileUploader) { | ||
| 128 | + var self = this; | ||
| 129 | + self.data = "TODO"; | ||
| 130 | + | ||
| 131 | + // 关闭窗口 | ||
| 132 | + self.close = function() { | ||
| 133 | + $modalInstance.dismiss("cancel"); | ||
| 134 | + }; | ||
| 135 | + | ||
| 136 | + self.clearInputFile = function() { | ||
| 137 | + angular.element("input[type='file']").val(null); | ||
| 138 | + }; | ||
| 139 | + | ||
| 140 | + // 上传文件组件 | ||
| 141 | + self.uploader = new FileUploader({ | ||
| 142 | + url: "/cars/dataImport", | ||
| 143 | + filters: [] // 用于过滤文件,比如只允许导入excel | ||
| 144 | + }); | ||
| 145 | + self.uploader.onAfterAddingFile = function(fileItem) | ||
| 146 | + { | ||
| 147 | + console.info('onAfterAddingFile', fileItem); | ||
| 148 | + console.log(self.uploader.queue.length); | ||
| 149 | + if (self.uploader.queue.length > 1) | ||
| 150 | + self.uploader.removeFromQueue(0); | ||
| 151 | + }; | ||
| 152 | + self.uploader.onSuccessItem = function(fileItem, response, status, headers) | ||
| 153 | + { | ||
| 154 | + console.info('onSuccessItem', fileItem, response, status, headers); | ||
| 155 | + }; | ||
| 156 | + self.uploader.onErrorItem = function(fileItem, response, status, headers) | ||
| 157 | + { | ||
| 158 | + console.info('onErrorItem', fileItem, response, status, headers); | ||
| 159 | + }; | ||
| 160 | + | ||
| 161 | +}]); | ||
| 162 | + | ||
| 163 | + | ||
| 164 | +angular.module('ScheduleApp').controller('BusInfoManageListCtrl', ['BusInfoManageService','$scope', function(busInfoManageService, $scope) { | ||
| 165 | + var self = this; | ||
| 166 | + self.pageInfo = { | ||
| 167 | + totalItems : 0, | ||
| 168 | + currentPage : 1, | ||
| 169 | + infos: [] | ||
| 170 | + }; | ||
| 171 | + | ||
| 172 | + // 初始创建的时候,获取一次列表数据 | ||
| 173 | + busInfoManageService.getPage().then( | ||
| 174 | + function(result) { | ||
| 175 | + self.pageInfo.totalItems = result.totalElements; | ||
| 176 | + self.pageInfo.currentPage = result.number + 1; | ||
| 177 | + self.pageInfo.infos = result.content; | ||
| 178 | + busInfoManageService.setCurrentPageNo(result.number + 1); | ||
| 179 | + }, | ||
| 180 | + function(result) { | ||
| 181 | + alert("出错啦!"); | ||
| 182 | + } | ||
| 183 | + ); | ||
| 184 | + | ||
| 185 | + //$scope.$watch("ctrl.pageInfo.currentPage", function() { | ||
| 186 | + // alert("dfdfdf"); | ||
| 187 | + //}); | ||
| 188 | + | ||
| 189 | + // 翻页的时候调用 | ||
| 190 | + self.pageChanaged = function() { | ||
| 191 | + busInfoManageService.setCurrentPageNo(self.pageInfo.currentPage); | ||
| 192 | + busInfoManageService.getPage().then( | ||
| 193 | + function(result) { | ||
| 194 | + self.pageInfo.totalItems = result.totalElements; | ||
| 195 | + self.pageInfo.currentPage = result.number + 1; | ||
| 196 | + self.pageInfo.infos = result.content; | ||
| 197 | + busInfoManageService.setCurrentPageNo(result.number + 1); | ||
| 198 | + }, | ||
| 199 | + function(result) { | ||
| 200 | + alert("出错啦!"); | ||
| 201 | + } | ||
| 202 | + ); | ||
| 203 | + }; | ||
| 204 | + // 获取查询条件数据 | ||
| 205 | + self.searchCondition = function() { | ||
| 206 | + return busInfoManageService.getSearchCondition(); | ||
| 207 | + }; | ||
| 208 | + // 重置查询条件 | ||
| 209 | + self.resetSearchCondition = function() { | ||
| 210 | + busInfoManageService.resetSearchCondition(); | ||
| 211 | + self.pageInfo.currentPage = 1; | ||
| 212 | + self.pageChanaged(); | ||
| 213 | + }; | ||
| 214 | +}]); | ||
| 215 | + | ||
| 216 | +angular.module('ScheduleApp').controller('BusInfoManageFormCtrl', ['BusInfoManageService', '$stateParams', '$state', function(busInfoManageService, $stateParams, $state) { | ||
| 217 | + var self = this; | ||
| 218 | + | ||
| 219 | + // 报废日期 日期控件开关 | ||
| 220 | + self.scrapDateOpen = false; | ||
| 221 | + self.scrapDate_open = function() { | ||
| 222 | + self.scrapDateOpen = true; | ||
| 223 | + }; | ||
| 224 | + | ||
| 225 | + // 启用日期 日期控件开关 | ||
| 226 | + self.openDateOpen = false; | ||
| 227 | + self.openDate_open = function() { | ||
| 228 | + self.openDateOpen = true; | ||
| 229 | + }; | ||
| 230 | + // 取消日期 日期控件开关 | ||
| 231 | + self.closeDateOpen = false; | ||
| 232 | + self.closeDate_open = function() { | ||
| 233 | + self.closeDateOpen = true; | ||
| 234 | + }; | ||
| 235 | + | ||
| 236 | + // 欲保存的busInfo信息,绑定 | ||
| 237 | + self.busInfoForSave = {}; | ||
| 238 | + | ||
| 239 | + // 获取传过来的id,有的话就是修改,获取一遍数据 | ||
| 240 | + var id = $stateParams.id; | ||
| 241 | + if (id) { | ||
| 242 | + self.busInfoForSave.id = id; | ||
| 243 | + busInfoManageService.getDetail(id).then( | ||
| 244 | + function(result) { | ||
| 245 | + var key; | ||
| 246 | + for (key in result) { | ||
| 247 | + self.busInfoForSave[key] = result[key]; | ||
| 248 | + } | ||
| 249 | + }, | ||
| 250 | + function(result) { | ||
| 251 | + alert("出错啦!"); | ||
| 252 | + } | ||
| 253 | + ); | ||
| 254 | + } | ||
| 255 | + | ||
| 256 | + // 提交方法 | ||
| 257 | + self.submit = function() { | ||
| 258 | + console.log(self.busInfoForSave); | ||
| 259 | + //if (self.busInfoForSave) { | ||
| 260 | + // delete $stateParams.id; | ||
| 261 | + //} | ||
| 262 | + busInfoManageService.saveDetail(self.busInfoForSave).then( | ||
| 263 | + function(result) { | ||
| 264 | + // TODO:弹出框方式以后改 | ||
| 265 | + if (result.status == 'SUCCESS') { | ||
| 266 | + alert("保存成功!"); | ||
| 267 | + $state.go("busInfoManage"); | ||
| 268 | + } else { | ||
| 269 | + alert("保存异常!"); | ||
| 270 | + } | ||
| 271 | + }, | ||
| 272 | + function(result) { | ||
| 273 | + // TODO:弹出框方式以后改 | ||
| 274 | + alert("出错啦!"); | ||
| 275 | + } | ||
| 276 | + ); | ||
| 277 | + }; | ||
| 278 | + | ||
| 279 | +}]); | ||
| 280 | + | ||
| 281 | +angular.module('ScheduleApp').controller('BusInfoManageDetailCtrl', ['BusInfoManageService', '$stateParams', function(busInfoManageService, $stateParams) { | ||
| 282 | + var self = this; | ||
| 283 | + self.title = ""; | ||
| 284 | + self.busInfoForDetail = {}; | ||
| 285 | + self.busInfoForDetail.id = $stateParams.id; | ||
| 286 | + | ||
| 287 | + // 当转向到此页面时,就获取明细信息并绑定 | ||
| 288 | + busInfoManageService.getDetail($stateParams.id).then( | ||
| 289 | + function(result) { | ||
| 290 | + var key; | ||
| 291 | + for (key in result) { | ||
| 292 | + self.busInfoForDetail[key] = result[key]; | ||
| 293 | + } | ||
| 294 | + | ||
| 295 | + self.title = "车辆 " + self.busInfoForDetail.insideCode + " 详细信息"; | ||
| 296 | + }, | ||
| 297 | + function(result) { | ||
| 298 | + // TODO:弹出框方式以后改 | ||
| 299 | + alert("出错啦!"); | ||
| 300 | + } | ||
| 301 | + ); | ||
| 302 | }]); | 302 | }]); |
| 303 | \ No newline at end of file | 303 | \ No newline at end of file |
src/main/resources/static/pages/scheduleApp/module/basicInfo/busInfoManage/route.js
0 → 100644
| 1 | +// ui route 配置 | ||
| 2 | + | ||
| 3 | +/** 车辆基础信息模块配置route */ | ||
| 4 | +ScheduleApp.config([ | ||
| 5 | + '$stateProvider', | ||
| 6 | + '$urlRouterProvider', | ||
| 7 | + function($stateProvider, $urlRouterProvider) { | ||
| 8 | + // 默认路由 | ||
| 9 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 10 | + | ||
| 11 | + $stateProvider | ||
| 12 | + .state("busInfoManage", { // index页面 | ||
| 13 | + url: '/busInfoManage', | ||
| 14 | + views: { | ||
| 15 | + "": { | ||
| 16 | + templateUrl: 'pages/scheduleApp/module/basicInfo/busInfoManage/index.html' | ||
| 17 | + }, | ||
| 18 | + "busInfoManage_list@busInfoManage": { | ||
| 19 | + templateUrl: 'pages/scheduleApp/module/basicInfo/busInfoManage/list.html' | ||
| 20 | + } | ||
| 21 | + }, | ||
| 22 | + | ||
| 23 | + resolve: { | ||
| 24 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 25 | + return $ocLazyLoad.load({ | ||
| 26 | + name: 'busInfoManage_module', | ||
| 27 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 28 | + files: [ | ||
| 29 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 30 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 31 | + "assets/bower_components/angular-file-upload/dist/angular-file-upload.min.js", | ||
| 32 | + "pages/scheduleApp/module/basicInfo/busInfoManage/module.js" | ||
| 33 | + ] | ||
| 34 | + }); | ||
| 35 | + }] | ||
| 36 | + } | ||
| 37 | + }) | ||
| 38 | + .state("busInfoManage_form", { // 添加车辆form | ||
| 39 | + url: '/busInfoManage_form', | ||
| 40 | + views: { | ||
| 41 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/busInfoManage/form.html'} | ||
| 42 | + }, | ||
| 43 | + resolve: { | ||
| 44 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 45 | + return $ocLazyLoad.load({ | ||
| 46 | + name: 'busInfoManage_form_module', | ||
| 47 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 48 | + files: [ | ||
| 49 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 50 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 51 | + "pages/scheduleApp/module/basicInfo/busInfoManage/module.js" | ||
| 52 | + ] | ||
| 53 | + }); | ||
| 54 | + }] | ||
| 55 | + } | ||
| 56 | + }) | ||
| 57 | + .state("busInfoManage_edit", { // 修改车辆form | ||
| 58 | + url: '/busInfoManage_edit/:id', | ||
| 59 | + views: { | ||
| 60 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/busInfoManage/edit.html'} | ||
| 61 | + }, | ||
| 62 | + resolve: { | ||
| 63 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 64 | + return $ocLazyLoad.load({ | ||
| 65 | + name: 'busInfoManage_edit_module', | ||
| 66 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 67 | + files: [ | ||
| 68 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 69 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 70 | + "pages/scheduleApp/module/basicInfo/busInfoManage/module.js" | ||
| 71 | + ] | ||
| 72 | + }); | ||
| 73 | + }] | ||
| 74 | + } | ||
| 75 | + }) | ||
| 76 | + .state("busInfoManage_detail", { // 车辆详细信息 | ||
| 77 | + url: '/busInfoManage_detail/:id', | ||
| 78 | + views: { | ||
| 79 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/busInfoManage/detail.html'} | ||
| 80 | + }, | ||
| 81 | + resolve: { | ||
| 82 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 83 | + return $ocLazyLoad.load({ | ||
| 84 | + name: 'busInfoManage_detail_module', | ||
| 85 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 86 | + files: [ | ||
| 87 | + "pages/scheduleApp/module/basicInfo/busInfoManage/module.js" | ||
| 88 | + ] | ||
| 89 | + }); | ||
| 90 | + }] | ||
| 91 | + } | ||
| 92 | + }) | ||
| 93 | + } | ||
| 94 | +]); | ||
| 0 | \ No newline at end of file | 95 | \ No newline at end of file |
src/main/resources/static/pages/scheduleApp/module/basicInfo/deviceInfoManage/dist/deviceInfoManage.dist.html deleted
100644 → 0
src/main/resources/static/pages/scheduleApp/module/basicInfo/deviceInfoManage/deviceInfoManage.js renamed to src/main/resources/static/pages/scheduleApp/module/basicInfo/deviceInfoManage/module.js
| 1 | -// 设备信息维护 service controller 等写在一起 | ||
| 2 | - | ||
| 3 | -angular.module('ScheduleApp').factory('DeviceInfoManageService', ['DeviceInfoManageService_g', function(service) { | ||
| 4 | - /** 当前的查询条件信息 */ | ||
| 5 | - var currentSearchCondition = {}; | ||
| 6 | - | ||
| 7 | - /** 当前第几页 */ | ||
| 8 | - var currentPageNo = 1; | ||
| 9 | - | ||
| 10 | - return { | ||
| 11 | - /** | ||
| 12 | - * 获取查询条件信息, | ||
| 13 | - * 用于给controller用来和页面数据绑定。 | ||
| 14 | - */ | ||
| 15 | - getSearchCondition: function() { | ||
| 16 | - return currentSearchCondition; | ||
| 17 | - }, | ||
| 18 | - /** | ||
| 19 | - * 重置查询条件信息。 | ||
| 20 | - */ | ||
| 21 | - resetSearchCondition: function() { | ||
| 22 | - var key; | ||
| 23 | - for (key in currentSearchCondition) { | ||
| 24 | - currentSearchCondition[key] = ""; | ||
| 25 | - } | ||
| 26 | - }, | ||
| 27 | - /** | ||
| 28 | - * 设置当前页码。 | ||
| 29 | - * @param cpn 从1开始,后台是从0开始的 | ||
| 30 | - */ | ||
| 31 | - setCurrentPageNo: function(cpn) { | ||
| 32 | - currentPageNo = cpn; | ||
| 33 | - }, | ||
| 34 | - /** | ||
| 35 | - * 组装查询参数,返回一个promise查询结果。 | ||
| 36 | - * @param params 查询参数 | ||
| 37 | - * @return 返回一个 promise | ||
| 38 | - */ | ||
| 39 | - getPage: function() { | ||
| 40 | - var params = currentSearchCondition; // 查询条件 | ||
| 41 | - params.page = currentPageNo - 1; // 服务端页码从0开始 | ||
| 42 | - return service.list(params).$promise; | ||
| 43 | - }, | ||
| 44 | - /** | ||
| 45 | - * 获取明细信息。 | ||
| 46 | - * @param id 车辆id | ||
| 47 | - * @return 返回一个 promise | ||
| 48 | - */ | ||
| 49 | - getDetail: function(id) { | ||
| 50 | - var params = {id: id}; | ||
| 51 | - return service.get(params).$promise; | ||
| 52 | - }, | ||
| 53 | - /** | ||
| 54 | - * 保存信息。 | ||
| 55 | - * @param obj 车辆详细信息 | ||
| 56 | - * @return 返回一个 promise | ||
| 57 | - */ | ||
| 58 | - saveDetail: function(obj) { | ||
| 59 | - return service.save(obj).$promise; | ||
| 60 | - }, | ||
| 61 | - /** | ||
| 62 | - * 删除信息。 | ||
| 63 | - * @param id 主键id | ||
| 64 | - * @returns {*|Function|promise|n} | ||
| 65 | - */ | ||
| 66 | - deleteDetail: function(id) { | ||
| 67 | - return service.delete({id: id}).$promise; | ||
| 68 | - } | ||
| 69 | - }; | ||
| 70 | - | ||
| 71 | -}]); | ||
| 72 | - | ||
| 73 | -angular.module('ScheduleApp').controller('DeviceInfoManageCtrl', ['DeviceInfoManageService', '$state', function(deviceInfoManageService, $state) { | ||
| 74 | - var self = this; | ||
| 75 | - | ||
| 76 | - // 切换到form状态 | ||
| 77 | - self.goForm = function() { | ||
| 78 | - //alert("切换"); | ||
| 79 | - $state.go("deviceInfoManage_form"); | ||
| 80 | - } | ||
| 81 | - | ||
| 82 | - | ||
| 83 | -}]); | ||
| 84 | - | ||
| 85 | -angular.module('ScheduleApp').controller('DeviceInfoManageListCtrl', ['DeviceInfoManageService', function(deviceInfoManageService) { | ||
| 86 | - var self = this; | ||
| 87 | - self.pageInfo = { | ||
| 88 | - totalItems : 0, | ||
| 89 | - currentPage : 1, | ||
| 90 | - infos: [] | ||
| 91 | - }; | ||
| 92 | - | ||
| 93 | - // 初始创建的时候,获取一次列表数据 | ||
| 94 | - deviceInfoManageService.getPage().then( | ||
| 95 | - function(result) { | ||
| 96 | - self.pageInfo.totalItems = result.totalElements; | ||
| 97 | - self.pageInfo.currentPage = result.number + 1; | ||
| 98 | - self.pageInfo.infos = result.content; | ||
| 99 | - deviceInfoManageService.setCurrentPageNo(result.number + 1); | ||
| 100 | - }, | ||
| 101 | - function(result) { | ||
| 102 | - alert("出错啦!"); | ||
| 103 | - } | ||
| 104 | - ); | ||
| 105 | - | ||
| 106 | - // 翻页的时候调用 | ||
| 107 | - self.pageChanaged = function() { | ||
| 108 | - deviceInfoManageService.setCurrentPageNo(self.pageInfo.currentPage); | ||
| 109 | - deviceInfoManageService.getPage().then( | ||
| 110 | - function(result) { | ||
| 111 | - self.pageInfo.totalItems = result.totalElements; | ||
| 112 | - self.pageInfo.currentPage = result.number + 1; | ||
| 113 | - self.pageInfo.infos = result.content; | ||
| 114 | - deviceInfoManageService.setCurrentPageNo(result.number + 1); | ||
| 115 | - }, | ||
| 116 | - function(result) { | ||
| 117 | - alert("出错啦!"); | ||
| 118 | - } | ||
| 119 | - ); | ||
| 120 | - }; | ||
| 121 | - // 获取查询条件数据 | ||
| 122 | - self.searchCondition = function() { | ||
| 123 | - return deviceInfoManageService.getSearchCondition(); | ||
| 124 | - }; | ||
| 125 | - // 重置查询条件 | ||
| 126 | - self.resetSearchCondition = function() { | ||
| 127 | - deviceInfoManageService.resetSearchCondition(); | ||
| 128 | - self.pageInfo.currentPage = 1; | ||
| 129 | - self.pageChanaged(); | ||
| 130 | - }; | ||
| 131 | - | ||
| 132 | - // 作废/撤销 | ||
| 133 | - self.toggleCde = function(id) { | ||
| 134 | - // TODO: | ||
| 135 | - deviceInfoManageService.deleteDetail(id).then( | ||
| 136 | - function(result) { | ||
| 137 | - if (result.message) { // 暂时这样做,之后全局拦截 | ||
| 138 | - alert("失败:" + result.message); | ||
| 139 | - } else { | ||
| 140 | - alert("成功!"); | ||
| 141 | - | ||
| 142 | - deviceInfoManageService.getPage().then( | ||
| 143 | - function(result) { | ||
| 144 | - self.pageInfo.totalItems = result.totalElements; | ||
| 145 | - self.pageInfo.currentPage = result.number + 1; | ||
| 146 | - self.pageInfo.infos = result.content; | ||
| 147 | - deviceInfoManageService.setCurrentPageNo(result.number + 1); | ||
| 148 | - }, | ||
| 149 | - function(result) { | ||
| 150 | - alert("出错啦!"); | ||
| 151 | - } | ||
| 152 | - ); | ||
| 153 | - } | ||
| 154 | - | ||
| 155 | - }, | ||
| 156 | - function(result) { | ||
| 157 | - alert("出错啦!" + result); | ||
| 158 | - } | ||
| 159 | - ); | ||
| 160 | - }; | ||
| 161 | - | ||
| 162 | -}]); | ||
| 163 | - | ||
| 164 | -angular.module('ScheduleApp').controller('DeviceInfoManageFormCtrl', ['DeviceInfoManageService', '$stateParams', '$state', function(deviceInfoManageService, $stateParams, $state) { | ||
| 165 | - var self = this; | ||
| 166 | - | ||
| 167 | - // 启用日期 日期控件开关 | ||
| 168 | - self.qyrqOpen = false; | ||
| 169 | - self.qyrq_open = function() { | ||
| 170 | - self.qyrqOpen = true; | ||
| 171 | - }; | ||
| 172 | - | ||
| 173 | - // 欲保存的busInfo信息,绑定 | ||
| 174 | - self.deviceInfoForSave = {}; | ||
| 175 | - | ||
| 176 | - // 获取传过来的id,有的话就是修改,获取一遍数据 | ||
| 177 | - var id = $stateParams.id; | ||
| 178 | - if (id) { | ||
| 179 | - self.deviceInfoForSave.id = id; | ||
| 180 | - deviceInfoManageService.getDetail(id).then( | ||
| 181 | - function(result) { | ||
| 182 | - var key; | ||
| 183 | - for (key in result) { | ||
| 184 | - self.deviceInfoForSave[key] = result[key]; | ||
| 185 | - } | ||
| 186 | - // 填写所有的 select 控件选中框数据 | ||
| 187 | - // 公司字典 | ||
| 188 | - if (self.deviceInfoForSave.gsName) { | ||
| 189 | - angular.forEach(self.gses, function(data) { | ||
| 190 | - if (self.deviceInfoForSave.gsName == data.gsmc) { | ||
| 191 | - self.deviceInfoForSave.gs_selected = data; | ||
| 192 | - } | ||
| 193 | - }); | ||
| 194 | - } | ||
| 195 | - }, | ||
| 196 | - function(result) { | ||
| 197 | - alert("出错啦!"); | ||
| 198 | - } | ||
| 199 | - ); | ||
| 200 | - } | ||
| 201 | - | ||
| 202 | - // 提交方法 | ||
| 203 | - self.submit = function() { | ||
| 204 | - console.log(self.deviceInfoForSave); | ||
| 205 | - deviceInfoManageService.saveDetail(self.deviceInfoForSave).then( | ||
| 206 | - function(result) { | ||
| 207 | - // TODO:弹出框方式以后改 | ||
| 208 | - if (result.status == 'SUCCESS') { | ||
| 209 | - alert("保存成功!"); | ||
| 210 | - $state.go("deviceInfoManage"); | ||
| 211 | - } else { | ||
| 212 | - alert("保存异常!"); | ||
| 213 | - } | ||
| 214 | - }, | ||
| 215 | - function(result) { | ||
| 216 | - // TODO:弹出框方式以后改 | ||
| 217 | - alert("出错啦!"); | ||
| 218 | - } | ||
| 219 | - ); | ||
| 220 | - }; | ||
| 221 | - | ||
| 222 | -}]); | ||
| 223 | - | ||
| 224 | -angular.module('ScheduleApp').controller('DeviceInfoManageDetailCtrl', ['DeviceInfoManageService', '$stateParams', function(deviceInfoManageService, $stateParams) { | ||
| 225 | - var self = this; | ||
| 226 | - self.title = ""; | ||
| 227 | - self.deviceInfoForDetail = {}; | ||
| 228 | - self.deviceInfoForDetail.id = $stateParams.id; | ||
| 229 | - | ||
| 230 | - // 当转向到此页面时,就获取明细信息并绑定 | ||
| 231 | - deviceInfoManageService.getDetail($stateParams.id).then( | ||
| 232 | - function(result) { | ||
| 233 | - var key; | ||
| 234 | - for (key in result) { | ||
| 235 | - self.deviceInfoForDetail[key] = result[key]; | ||
| 236 | - } | ||
| 237 | - | ||
| 238 | - self.title = "车辆 " + self.deviceInfoForDetail.clZbh + "设备信息"; | ||
| 239 | - }, | ||
| 240 | - function(result) { | ||
| 241 | - // TODO:弹出框方式以后改 | ||
| 242 | - alert("出错啦!"); | ||
| 243 | - } | ||
| 244 | - ); | 1 | +// 设备信息维护 service controller 等写在一起 |
| 2 | + | ||
| 3 | +angular.module('ScheduleApp').factory('DeviceInfoManageService', ['DeviceInfoManageService_g', function(service) { | ||
| 4 | + /** 当前的查询条件信息 */ | ||
| 5 | + var currentSearchCondition = {}; | ||
| 6 | + | ||
| 7 | + /** 当前第几页 */ | ||
| 8 | + var currentPageNo = 1; | ||
| 9 | + | ||
| 10 | + return { | ||
| 11 | + /** | ||
| 12 | + * 获取查询条件信息, | ||
| 13 | + * 用于给controller用来和页面数据绑定。 | ||
| 14 | + */ | ||
| 15 | + getSearchCondition: function() { | ||
| 16 | + return currentSearchCondition; | ||
| 17 | + }, | ||
| 18 | + /** | ||
| 19 | + * 重置查询条件信息。 | ||
| 20 | + */ | ||
| 21 | + resetSearchCondition: function() { | ||
| 22 | + var key; | ||
| 23 | + for (key in currentSearchCondition) { | ||
| 24 | + currentSearchCondition[key] = ""; | ||
| 25 | + } | ||
| 26 | + }, | ||
| 27 | + /** | ||
| 28 | + * 设置当前页码。 | ||
| 29 | + * @param cpn 从1开始,后台是从0开始的 | ||
| 30 | + */ | ||
| 31 | + setCurrentPageNo: function(cpn) { | ||
| 32 | + currentPageNo = cpn; | ||
| 33 | + }, | ||
| 34 | + /** | ||
| 35 | + * 组装查询参数,返回一个promise查询结果。 | ||
| 36 | + * @param params 查询参数 | ||
| 37 | + * @return 返回一个 promise | ||
| 38 | + */ | ||
| 39 | + getPage: function() { | ||
| 40 | + var params = currentSearchCondition; // 查询条件 | ||
| 41 | + params.page = currentPageNo - 1; // 服务端页码从0开始 | ||
| 42 | + return service.list(params).$promise; | ||
| 43 | + }, | ||
| 44 | + /** | ||
| 45 | + * 获取明细信息。 | ||
| 46 | + * @param id 车辆id | ||
| 47 | + * @return 返回一个 promise | ||
| 48 | + */ | ||
| 49 | + getDetail: function(id) { | ||
| 50 | + var params = {id: id}; | ||
| 51 | + return service.get(params).$promise; | ||
| 52 | + }, | ||
| 53 | + /** | ||
| 54 | + * 保存信息。 | ||
| 55 | + * @param obj 车辆详细信息 | ||
| 56 | + * @return 返回一个 promise | ||
| 57 | + */ | ||
| 58 | + saveDetail: function(obj) { | ||
| 59 | + return service.save(obj).$promise; | ||
| 60 | + }, | ||
| 61 | + /** | ||
| 62 | + * 删除信息。 | ||
| 63 | + * @param id 主键id | ||
| 64 | + * @returns {*|Function|promise|n} | ||
| 65 | + */ | ||
| 66 | + deleteDetail: function(id) { | ||
| 67 | + return service.delete({id: id}).$promise; | ||
| 68 | + } | ||
| 69 | + }; | ||
| 70 | + | ||
| 71 | +}]); | ||
| 72 | + | ||
| 73 | +angular.module('ScheduleApp').controller('DeviceInfoManageCtrl', ['DeviceInfoManageService', '$state', function(deviceInfoManageService, $state) { | ||
| 74 | + var self = this; | ||
| 75 | + | ||
| 76 | + // 切换到form状态 | ||
| 77 | + self.goForm = function() { | ||
| 78 | + //alert("切换"); | ||
| 79 | + $state.go("deviceInfoManage_form"); | ||
| 80 | + } | ||
| 81 | + | ||
| 82 | + | ||
| 83 | +}]); | ||
| 84 | + | ||
| 85 | +angular.module('ScheduleApp').controller('DeviceInfoManageListCtrl', ['DeviceInfoManageService', function(deviceInfoManageService) { | ||
| 86 | + var self = this; | ||
| 87 | + self.pageInfo = { | ||
| 88 | + totalItems : 0, | ||
| 89 | + currentPage : 1, | ||
| 90 | + infos: [] | ||
| 91 | + }; | ||
| 92 | + | ||
| 93 | + // 初始创建的时候,获取一次列表数据 | ||
| 94 | + deviceInfoManageService.getPage().then( | ||
| 95 | + function(result) { | ||
| 96 | + self.pageInfo.totalItems = result.totalElements; | ||
| 97 | + self.pageInfo.currentPage = result.number + 1; | ||
| 98 | + self.pageInfo.infos = result.content; | ||
| 99 | + deviceInfoManageService.setCurrentPageNo(result.number + 1); | ||
| 100 | + }, | ||
| 101 | + function(result) { | ||
| 102 | + alert("出错啦!"); | ||
| 103 | + } | ||
| 104 | + ); | ||
| 105 | + | ||
| 106 | + // 翻页的时候调用 | ||
| 107 | + self.pageChanaged = function() { | ||
| 108 | + deviceInfoManageService.setCurrentPageNo(self.pageInfo.currentPage); | ||
| 109 | + deviceInfoManageService.getPage().then( | ||
| 110 | + function(result) { | ||
| 111 | + self.pageInfo.totalItems = result.totalElements; | ||
| 112 | + self.pageInfo.currentPage = result.number + 1; | ||
| 113 | + self.pageInfo.infos = result.content; | ||
| 114 | + deviceInfoManageService.setCurrentPageNo(result.number + 1); | ||
| 115 | + }, | ||
| 116 | + function(result) { | ||
| 117 | + alert("出错啦!"); | ||
| 118 | + } | ||
| 119 | + ); | ||
| 120 | + }; | ||
| 121 | + // 获取查询条件数据 | ||
| 122 | + self.searchCondition = function() { | ||
| 123 | + return deviceInfoManageService.getSearchCondition(); | ||
| 124 | + }; | ||
| 125 | + // 重置查询条件 | ||
| 126 | + self.resetSearchCondition = function() { | ||
| 127 | + deviceInfoManageService.resetSearchCondition(); | ||
| 128 | + self.pageInfo.currentPage = 1; | ||
| 129 | + self.pageChanaged(); | ||
| 130 | + }; | ||
| 131 | + | ||
| 132 | + // 作废/撤销 | ||
| 133 | + self.toggleCde = function(id) { | ||
| 134 | + // TODO: | ||
| 135 | + deviceInfoManageService.deleteDetail(id).then( | ||
| 136 | + function(result) { | ||
| 137 | + if (result.message) { // 暂时这样做,之后全局拦截 | ||
| 138 | + alert("失败:" + result.message); | ||
| 139 | + } else { | ||
| 140 | + alert("成功!"); | ||
| 141 | + | ||
| 142 | + deviceInfoManageService.getPage().then( | ||
| 143 | + function(result) { | ||
| 144 | + self.pageInfo.totalItems = result.totalElements; | ||
| 145 | + self.pageInfo.currentPage = result.number + 1; | ||
| 146 | + self.pageInfo.infos = result.content; | ||
| 147 | + deviceInfoManageService.setCurrentPageNo(result.number + 1); | ||
| 148 | + }, | ||
| 149 | + function(result) { | ||
| 150 | + alert("出错啦!"); | ||
| 151 | + } | ||
| 152 | + ); | ||
| 153 | + } | ||
| 154 | + | ||
| 155 | + }, | ||
| 156 | + function(result) { | ||
| 157 | + alert("出错啦!" + result); | ||
| 158 | + } | ||
| 159 | + ); | ||
| 160 | + }; | ||
| 161 | + | ||
| 162 | +}]); | ||
| 163 | + | ||
| 164 | +angular.module('ScheduleApp').controller('DeviceInfoManageFormCtrl', ['DeviceInfoManageService', '$stateParams', '$state', function(deviceInfoManageService, $stateParams, $state) { | ||
| 165 | + var self = this; | ||
| 166 | + | ||
| 167 | + // 启用日期 日期控件开关 | ||
| 168 | + self.qyrqOpen = false; | ||
| 169 | + self.qyrq_open = function() { | ||
| 170 | + self.qyrqOpen = true; | ||
| 171 | + }; | ||
| 172 | + | ||
| 173 | + // 欲保存的busInfo信息,绑定 | ||
| 174 | + self.deviceInfoForSave = {}; | ||
| 175 | + | ||
| 176 | + // 获取传过来的id,有的话就是修改,获取一遍数据 | ||
| 177 | + var id = $stateParams.id; | ||
| 178 | + if (id) { | ||
| 179 | + self.deviceInfoForSave.id = id; | ||
| 180 | + deviceInfoManageService.getDetail(id).then( | ||
| 181 | + function(result) { | ||
| 182 | + var key; | ||
| 183 | + for (key in result) { | ||
| 184 | + self.deviceInfoForSave[key] = result[key]; | ||
| 185 | + } | ||
| 186 | + // 填写所有的 select 控件选中框数据 | ||
| 187 | + // 公司字典 | ||
| 188 | + if (self.deviceInfoForSave.gsName) { | ||
| 189 | + angular.forEach(self.gses, function(data) { | ||
| 190 | + if (self.deviceInfoForSave.gsName == data.gsmc) { | ||
| 191 | + self.deviceInfoForSave.gs_selected = data; | ||
| 192 | + } | ||
| 193 | + }); | ||
| 194 | + } | ||
| 195 | + }, | ||
| 196 | + function(result) { | ||
| 197 | + alert("出错啦!"); | ||
| 198 | + } | ||
| 199 | + ); | ||
| 200 | + } | ||
| 201 | + | ||
| 202 | + // 提交方法 | ||
| 203 | + self.submit = function() { | ||
| 204 | + console.log(self.deviceInfoForSave); | ||
| 205 | + deviceInfoManageService.saveDetail(self.deviceInfoForSave).then( | ||
| 206 | + function(result) { | ||
| 207 | + // TODO:弹出框方式以后改 | ||
| 208 | + if (result.status == 'SUCCESS') { | ||
| 209 | + alert("保存成功!"); | ||
| 210 | + $state.go("deviceInfoManage"); | ||
| 211 | + } else { | ||
| 212 | + alert("保存异常!"); | ||
| 213 | + } | ||
| 214 | + }, | ||
| 215 | + function(result) { | ||
| 216 | + // TODO:弹出框方式以后改 | ||
| 217 | + alert("出错啦!"); | ||
| 218 | + } | ||
| 219 | + ); | ||
| 220 | + }; | ||
| 221 | + | ||
| 222 | +}]); | ||
| 223 | + | ||
| 224 | +angular.module('ScheduleApp').controller('DeviceInfoManageDetailCtrl', ['DeviceInfoManageService', '$stateParams', function(deviceInfoManageService, $stateParams) { | ||
| 225 | + var self = this; | ||
| 226 | + self.title = ""; | ||
| 227 | + self.deviceInfoForDetail = {}; | ||
| 228 | + self.deviceInfoForDetail.id = $stateParams.id; | ||
| 229 | + | ||
| 230 | + // 当转向到此页面时,就获取明细信息并绑定 | ||
| 231 | + deviceInfoManageService.getDetail($stateParams.id).then( | ||
| 232 | + function(result) { | ||
| 233 | + var key; | ||
| 234 | + for (key in result) { | ||
| 235 | + self.deviceInfoForDetail[key] = result[key]; | ||
| 236 | + } | ||
| 237 | + | ||
| 238 | + self.title = "车辆 " + self.deviceInfoForDetail.clZbh + "设备信息"; | ||
| 239 | + }, | ||
| 240 | + function(result) { | ||
| 241 | + // TODO:弹出框方式以后改 | ||
| 242 | + alert("出错啦!"); | ||
| 243 | + } | ||
| 244 | + ); | ||
| 245 | }]); | 245 | }]); |
| 246 | \ No newline at end of file | 246 | \ No newline at end of file |
src/main/resources/static/pages/scheduleApp/module/basicInfo/deviceInfoManage/route.js
0 → 100644
| 1 | +// ui route 配置 | ||
| 2 | + | ||
| 3 | +/** 车辆设备信息模块配置route */ | ||
| 4 | +ScheduleApp.config([ | ||
| 5 | + '$stateProvider', | ||
| 6 | + '$urlRouterProvider', | ||
| 7 | + function($stateProvider, $urlRouterProvider) { | ||
| 8 | + // 默认路由 | ||
| 9 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 10 | + | ||
| 11 | + $stateProvider | ||
| 12 | + .state("deviceInfoManage", { // index页面 | ||
| 13 | + url: '/deviceInfoManage', | ||
| 14 | + views: { | ||
| 15 | + "": { | ||
| 16 | + templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/index.html' | ||
| 17 | + }, | ||
| 18 | + "deviceInfoManage_list@deviceInfoManage": { | ||
| 19 | + templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/list.html' | ||
| 20 | + } | ||
| 21 | + }, | ||
| 22 | + | ||
| 23 | + resolve: { | ||
| 24 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 25 | + return $ocLazyLoad.load({ | ||
| 26 | + name: 'deviceInfoManage_module', | ||
| 27 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 28 | + files: [ | ||
| 29 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 30 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 31 | + "pages/scheduleApp/module/basicInfo/deviceInfoManage/module.js" | ||
| 32 | + ] | ||
| 33 | + }); | ||
| 34 | + }] | ||
| 35 | + } | ||
| 36 | + }) | ||
| 37 | + .state("deviceInfoManage_form", { // 添加设备信息form | ||
| 38 | + url: '/deviceInfoManage_form', | ||
| 39 | + views: { | ||
| 40 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/form.html'} | ||
| 41 | + }, | ||
| 42 | + resolve: { | ||
| 43 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 44 | + return $ocLazyLoad.load({ | ||
| 45 | + name: 'deviceInfoManage_form_module', | ||
| 46 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 47 | + files: [ | ||
| 48 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 49 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 50 | + "pages/scheduleApp/module/basicInfo/deviceInfoManage/module.js" | ||
| 51 | + ] | ||
| 52 | + }); | ||
| 53 | + }] | ||
| 54 | + } | ||
| 55 | + }) | ||
| 56 | + .state("deviceInfoManage_edit", { // 修改设备信息form | ||
| 57 | + url: '/deviceInfoManage_edit/:id', | ||
| 58 | + views: { | ||
| 59 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/edit.html'} | ||
| 60 | + }, | ||
| 61 | + resolve: { | ||
| 62 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 63 | + return $ocLazyLoad.load({ | ||
| 64 | + name: 'deviceInfoManage_edit_module', | ||
| 65 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 66 | + files: [ | ||
| 67 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 68 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 69 | + "pages/scheduleApp/module/basicInfo/deviceInfoManage/module.js" | ||
| 70 | + ] | ||
| 71 | + }); | ||
| 72 | + }] | ||
| 73 | + } | ||
| 74 | + }) | ||
| 75 | + .state("deviceInfoManage_detail", { // 详细信息页面 | ||
| 76 | + url: '/deviceInfoManage_detail/:id', | ||
| 77 | + views: { | ||
| 78 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/detail.html'} | ||
| 79 | + }, | ||
| 80 | + resolve: { | ||
| 81 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 82 | + return $ocLazyLoad.load({ | ||
| 83 | + name: 'deviceInfoManage_detail_module', | ||
| 84 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 85 | + files: [ | ||
| 86 | + "pages/scheduleApp/module/basicInfo/deviceInfoManage/module.js" | ||
| 87 | + ] | ||
| 88 | + }); | ||
| 89 | + }] | ||
| 90 | + } | ||
| 91 | + }) | ||
| 92 | + | ||
| 93 | + } | ||
| 94 | +]); | ||
| 0 | \ No newline at end of file | 95 | \ No newline at end of file |
src/main/resources/static/pages/scheduleApp/module/basicInfo/employeeInfoManage/dist/employeeInfoManage.dist.html deleted
100644 → 0
src/main/resources/static/pages/scheduleApp/module/basicInfo/employeeInfoManage/employeeInfoManage.js renamed to src/main/resources/static/pages/scheduleApp/module/basicInfo/employeeInfoManage/module.js
| 1 | -// 人员信息管理 service controller等写在一起 | ||
| 2 | - | ||
| 3 | -angular.module('ScheduleApp').factory('EmployeeInfoManageService', ['EmployeeInfoManageService_g', function(service) { | ||
| 4 | - | ||
| 5 | - /** 当前的查询条件信息 */ | ||
| 6 | - var currentSearchCondition = { | ||
| 7 | - //"carCode_like" : "", | ||
| 8 | - //"insideCode_like" : "", | ||
| 9 | - //"equipmentCode_like" : "", | ||
| 10 | - //"carPlate_like" : "" | ||
| 11 | - }; | ||
| 12 | - | ||
| 13 | - /** 当前第几页 */ | ||
| 14 | - var currentPageNo = 1; | ||
| 15 | - | ||
| 16 | - return { | ||
| 17 | - /** | ||
| 18 | - * 获取查询条件信息, | ||
| 19 | - * 用于给controller用来和页面数据绑定。 | ||
| 20 | - */ | ||
| 21 | - getSearchCondition: function() { | ||
| 22 | - return currentSearchCondition; | ||
| 23 | - }, | ||
| 24 | - /** | ||
| 25 | - * 重置查询条件信息。 | ||
| 26 | - */ | ||
| 27 | - resetSearchCondition: function() { | ||
| 28 | - var key; | ||
| 29 | - for (key in currentSearchCondition) { | ||
| 30 | - currentSearchCondition[key] = undefined; | ||
| 31 | - } | ||
| 32 | - currentPageNo = 1; | ||
| 33 | - }, | ||
| 34 | - /** | ||
| 35 | - * 设置当前页码。 | ||
| 36 | - * @param cpn 从1开始,后台是从0开始的 | ||
| 37 | - */ | ||
| 38 | - setCurrentPageNo: function(cpn) { | ||
| 39 | - currentPageNo = cpn; | ||
| 40 | - }, | ||
| 41 | - /** | ||
| 42 | - * 组装查询参数,返回一个promise查询结果。 | ||
| 43 | - * @param params 查询参数 | ||
| 44 | - * @return 返回一个 promise | ||
| 45 | - */ | ||
| 46 | - getPage: function() { | ||
| 47 | - var params = currentSearchCondition; // 查询条件 | ||
| 48 | - params.page = currentPageNo - 1; // 服务端页码从0开始 | ||
| 49 | - return service.rest.list(params).$promise; | ||
| 50 | - }, | ||
| 51 | - /** | ||
| 52 | - * 获取明细信息。 | ||
| 53 | - * @param id 车辆id | ||
| 54 | - * @return 返回一个 promise | ||
| 55 | - */ | ||
| 56 | - getDetail: function(id) { | ||
| 57 | - var params = {id: id}; | ||
| 58 | - return service.rest.get(params).$promise; | ||
| 59 | - }, | ||
| 60 | - /** | ||
| 61 | - * 保存信息。 | ||
| 62 | - * @param obj 车辆详细信息 | ||
| 63 | - * @return 返回一个 promise | ||
| 64 | - */ | ||
| 65 | - saveDetail: function(obj) { | ||
| 66 | - return service.rest.save(obj).$promise; | ||
| 67 | - }, | ||
| 68 | - /** | ||
| 69 | - * 数据导出。 | ||
| 70 | - * @returns {*|Function|promise|n} | ||
| 71 | - */ | ||
| 72 | - dataExport: function() { | ||
| 73 | - return service.dataTools.dataExport().$promise; | ||
| 74 | - } | ||
| 75 | - } | ||
| 76 | - | ||
| 77 | -}]); | ||
| 78 | - | ||
| 79 | -angular.module('ScheduleApp').controller('EmployeeInfoManageCtrl', [ | ||
| 80 | - 'EmployeeInfoManageService', '$state', '$uibModal', 'FileDownload_g', | ||
| 81 | - function(employeeInfoManageService, $state, $uibModal, fileDownload) { | ||
| 82 | - var self = this; | ||
| 83 | - | ||
| 84 | - // 切换到form状态 | ||
| 85 | - self.goForm = function() { | ||
| 86 | - //alert("切换"); | ||
| 87 | - $state.go("employeeInfoManage_form"); | ||
| 88 | - } | ||
| 89 | - | ||
| 90 | - // 导入excel | ||
| 91 | - self.importData = function() { | ||
| 92 | - // large方式弹出模态对话框 | ||
| 93 | - var modalInstance = $uibModal.open({ | ||
| 94 | - templateUrl: '/pages/scheduleApp/module/basicInfo/employeeInfoManage/dataImport.html', | ||
| 95 | - size: "lg", | ||
| 96 | - animation: true, | ||
| 97 | - backdrop: 'static', | ||
| 98 | - resolve: { | ||
| 99 | - // 可以传值给controller | ||
| 100 | - }, | ||
| 101 | - windowClass: 'center-modal', | ||
| 102 | - controller: "EmployInfoManageToolsCtrl", | ||
| 103 | - controllerAs: "ctrl", | ||
| 104 | - bindToController: true | ||
| 105 | - }); | ||
| 106 | - modalInstance.result.then( | ||
| 107 | - function() { | ||
| 108 | - console.log("dataImport.html打开"); | ||
| 109 | - }, | ||
| 110 | - function() { | ||
| 111 | - console.log("dataImport.html消失"); | ||
| 112 | - } | ||
| 113 | - ); | ||
| 114 | - }; | ||
| 115 | - | ||
| 116 | - // 导出excel | ||
| 117 | - self.exportData = function() { | ||
| 118 | - employeeInfoManageService.dataExport().then( | ||
| 119 | - function(result) { | ||
| 120 | - fileDownload.downloadFile(result.data, "application/octet-stream", "人员基础信息.xls"); | ||
| 121 | - }, | ||
| 122 | - function(result) { | ||
| 123 | - console.log("exportData failed:" + result); | ||
| 124 | - } | ||
| 125 | - ); | ||
| 126 | - }; | ||
| 127 | -}]); | ||
| 128 | - | ||
| 129 | -angular.module('ScheduleApp').controller('EmployInfoManageToolsCtrl', ['$modalInstance', 'FileUploader', function($modalInstance, FileUploader) { | ||
| 130 | - var self = this; | ||
| 131 | - | ||
| 132 | - // 关闭窗口 | ||
| 133 | - self.close = function() { | ||
| 134 | - $modalInstance.dismiss("cancel"); | ||
| 135 | - }; | ||
| 136 | - | ||
| 137 | - self.clearInputFile = function() { | ||
| 138 | - angular.element("input[type='file']").val(null); | ||
| 139 | - }; | ||
| 140 | - | ||
| 141 | - // 上传文件组件 | ||
| 142 | - self.uploader = new FileUploader({ | ||
| 143 | - url: "/personnel/dataImport", | ||
| 144 | - filters: [] // 用于过滤文件,比如只允许导入excel | ||
| 145 | - }); | ||
| 146 | - self.uploader.onAfterAddingFile = function(fileItem) | ||
| 147 | - { | ||
| 148 | - console.info('onAfterAddingFile', fileItem); | ||
| 149 | - console.log(self.uploader.queue.length); | ||
| 150 | - if (self.uploader.queue.length > 1) | ||
| 151 | - self.uploader.removeFromQueue(0); | ||
| 152 | - }; | ||
| 153 | - self.uploader.onSuccessItem = function(fileItem, response, status, headers) | ||
| 154 | - { | ||
| 155 | - console.info('onSuccessItem', fileItem, response, status, headers); | ||
| 156 | - }; | ||
| 157 | - self.uploader.onErrorItem = function(fileItem, response, status, headers) | ||
| 158 | - { | ||
| 159 | - console.info('onErrorItem', fileItem, response, status, headers); | ||
| 160 | - }; | ||
| 161 | - | ||
| 162 | -}]); | ||
| 163 | - | ||
| 164 | -angular.module('ScheduleApp').controller('EmployeeInfoManageListCtrl', ['EmployeeInfoManageService', function(employeeInfoManageService) { | ||
| 165 | - var self = this; | ||
| 166 | - self.pageInfo = { | ||
| 167 | - totalItems : 0, | ||
| 168 | - currentPage : 1, | ||
| 169 | - infos: [] | ||
| 170 | - }; | ||
| 171 | - | ||
| 172 | - // 初始创建的时候,获取一次列表数据 | ||
| 173 | - employeeInfoManageService.getPage().then( | ||
| 174 | - function(result) { | ||
| 175 | - self.pageInfo.totalItems = result.totalElements; | ||
| 176 | - self.pageInfo.currentPage = result.number + 1; | ||
| 177 | - self.pageInfo.infos = result.content; | ||
| 178 | - employeeInfoManageService.setCurrentPageNo(result.number + 1); | ||
| 179 | - }, | ||
| 180 | - function(result) { | ||
| 181 | - alert("出错啦!"); | ||
| 182 | - } | ||
| 183 | - ); | ||
| 184 | - | ||
| 185 | - //$scope.$watch("ctrl.pageInfo.currentPage", function() { | ||
| 186 | - // alert("dfdfdf"); | ||
| 187 | - //}); | ||
| 188 | - | ||
| 189 | - // 翻页的时候调用 | ||
| 190 | - self.pageChanaged = function() { | ||
| 191 | - employeeInfoManageService.setCurrentPageNo(self.pageInfo.currentPage); | ||
| 192 | - employeeInfoManageService.getPage().then( | ||
| 193 | - function(result) { | ||
| 194 | - self.pageInfo.totalItems = result.totalElements; | ||
| 195 | - self.pageInfo.currentPage = result.number + 1; | ||
| 196 | - self.pageInfo.infos = result.content; | ||
| 197 | - employeeInfoManageService.setCurrentPageNo(result.number + 1); | ||
| 198 | - }, | ||
| 199 | - function(result) { | ||
| 200 | - alert("出错啦!"); | ||
| 201 | - } | ||
| 202 | - ); | ||
| 203 | - }; | ||
| 204 | - // 获取查询条件数据 | ||
| 205 | - self.searchCondition = function() { | ||
| 206 | - return employeeInfoManageService.getSearchCondition(); | ||
| 207 | - }; | ||
| 208 | - // 重置查询条件 | ||
| 209 | - self.resetSearchCondition = function() { | ||
| 210 | - employeeInfoManageService.resetSearchCondition(); | ||
| 211 | - self.pageInfo.currentPage = 1; | ||
| 212 | - self.pageChanaged(); | ||
| 213 | - }; | ||
| 214 | -}]); | ||
| 215 | - | ||
| 216 | -angular.module('ScheduleApp').controller('EmployeeInfoManageFormCtrl', ['EmployeeInfoManageService', '$stateParams', '$state', function(employeeInfoManageService, $stateParams, $state) { | ||
| 217 | - var self = this; | ||
| 218 | - | ||
| 219 | - // 欲保存的busInfo信息,绑定 | ||
| 220 | - self.employeeInfoForSave = {}; | ||
| 221 | - | ||
| 222 | - // 获取传过来的id,有的话就是修改,获取一遍数据 | ||
| 223 | - var id = $stateParams.id; | ||
| 224 | - if (id) { | ||
| 225 | - self.employeeInfoForSave.id = id; | ||
| 226 | - employeeInfoManageService.getDetail(id).then( | ||
| 227 | - function(result) { | ||
| 228 | - var key; | ||
| 229 | - for (key in result) { | ||
| 230 | - self.employeeInfoForSave[key] = result[key]; | ||
| 231 | - } | ||
| 232 | - }, | ||
| 233 | - function(result) { | ||
| 234 | - alert("出错啦!"); | ||
| 235 | - } | ||
| 236 | - ); | ||
| 237 | - } | ||
| 238 | - | ||
| 239 | - // 提交方法 | ||
| 240 | - self.submit = function() { | ||
| 241 | - console.log(self.employeeInfoForSave); | ||
| 242 | - employeeInfoManageService.saveDetail(self.employeeInfoForSave).then( | ||
| 243 | - function(result) { | ||
| 244 | - // TODO:弹出框方式以后改 | ||
| 245 | - if (result.status == 'SUCCESS') { | ||
| 246 | - alert("保存成功!"); | ||
| 247 | - $state.go("employeeInfoManage"); | ||
| 248 | - } else { | ||
| 249 | - alert("保存异常!"); | ||
| 250 | - } | ||
| 251 | - }, | ||
| 252 | - function(result) { | ||
| 253 | - // TODO:弹出框方式以后改 | ||
| 254 | - alert("出错啦!"); | ||
| 255 | - } | ||
| 256 | - ); | ||
| 257 | - }; | ||
| 258 | - | ||
| 259 | - | ||
| 260 | -}]); | ||
| 261 | - | ||
| 262 | -angular.module('ScheduleApp').controller('EmployeeInfoManageDetailCtrl', ['EmployeeInfoManageService', '$stateParams', function(employeeInfoManageService, $stateParams) { | ||
| 263 | - var self = this; | ||
| 264 | - self.title = ""; | ||
| 265 | - self.employeeInfoForDetail = {}; | ||
| 266 | - self.employeeInfoForDetail.id = $stateParams.id; | ||
| 267 | - | ||
| 268 | - // 当转向到此页面时,就获取明细信息并绑定 | ||
| 269 | - employeeInfoManageService.getDetail($stateParams.id).then( | ||
| 270 | - function(result) { | ||
| 271 | - var key; | ||
| 272 | - for (key in result) { | ||
| 273 | - self.employeeInfoForDetail[key] = result[key]; | ||
| 274 | - } | ||
| 275 | - | ||
| 276 | - self.title = "员工 " + self.employeeInfoForDetail.personnelName + " 详细信息"; | ||
| 277 | - }, | ||
| 278 | - function(result) { | ||
| 279 | - // TODO:弹出框方式以后改 | ||
| 280 | - alert("出错啦!"); | ||
| 281 | - } | ||
| 282 | - ); | ||
| 283 | -}]); | ||
| 284 | - | 1 | +// 人员信息管理 service controller等写在一起 |
| 2 | + | ||
| 3 | +angular.module('ScheduleApp').factory('EmployeeInfoManageService', ['EmployeeInfoManageService_g', function(service) { | ||
| 4 | + | ||
| 5 | + /** 当前的查询条件信息 */ | ||
| 6 | + var currentSearchCondition = { | ||
| 7 | + //"carCode_like" : "", | ||
| 8 | + //"insideCode_like" : "", | ||
| 9 | + //"equipmentCode_like" : "", | ||
| 10 | + //"carPlate_like" : "" | ||
| 11 | + }; | ||
| 12 | + | ||
| 13 | + /** 当前第几页 */ | ||
| 14 | + var currentPageNo = 1; | ||
| 15 | + | ||
| 16 | + return { | ||
| 17 | + /** | ||
| 18 | + * 获取查询条件信息, | ||
| 19 | + * 用于给controller用来和页面数据绑定。 | ||
| 20 | + */ | ||
| 21 | + getSearchCondition: function() { | ||
| 22 | + return currentSearchCondition; | ||
| 23 | + }, | ||
| 24 | + /** | ||
| 25 | + * 重置查询条件信息。 | ||
| 26 | + */ | ||
| 27 | + resetSearchCondition: function() { | ||
| 28 | + var key; | ||
| 29 | + for (key in currentSearchCondition) { | ||
| 30 | + currentSearchCondition[key] = undefined; | ||
| 31 | + } | ||
| 32 | + currentPageNo = 1; | ||
| 33 | + }, | ||
| 34 | + /** | ||
| 35 | + * 设置当前页码。 | ||
| 36 | + * @param cpn 从1开始,后台是从0开始的 | ||
| 37 | + */ | ||
| 38 | + setCurrentPageNo: function(cpn) { | ||
| 39 | + currentPageNo = cpn; | ||
| 40 | + }, | ||
| 41 | + /** | ||
| 42 | + * 组装查询参数,返回一个promise查询结果。 | ||
| 43 | + * @param params 查询参数 | ||
| 44 | + * @return 返回一个 promise | ||
| 45 | + */ | ||
| 46 | + getPage: function() { | ||
| 47 | + var params = currentSearchCondition; // 查询条件 | ||
| 48 | + params.page = currentPageNo - 1; // 服务端页码从0开始 | ||
| 49 | + return service.rest.list(params).$promise; | ||
| 50 | + }, | ||
| 51 | + /** | ||
| 52 | + * 获取明细信息。 | ||
| 53 | + * @param id 车辆id | ||
| 54 | + * @return 返回一个 promise | ||
| 55 | + */ | ||
| 56 | + getDetail: function(id) { | ||
| 57 | + var params = {id: id}; | ||
| 58 | + return service.rest.get(params).$promise; | ||
| 59 | + }, | ||
| 60 | + /** | ||
| 61 | + * 保存信息。 | ||
| 62 | + * @param obj 车辆详细信息 | ||
| 63 | + * @return 返回一个 promise | ||
| 64 | + */ | ||
| 65 | + saveDetail: function(obj) { | ||
| 66 | + return service.rest.save(obj).$promise; | ||
| 67 | + }, | ||
| 68 | + /** | ||
| 69 | + * 数据导出。 | ||
| 70 | + * @returns {*|Function|promise|n} | ||
| 71 | + */ | ||
| 72 | + dataExport: function() { | ||
| 73 | + return service.dataTools.dataExport().$promise; | ||
| 74 | + } | ||
| 75 | + } | ||
| 76 | + | ||
| 77 | +}]); | ||
| 78 | + | ||
| 79 | +angular.module('ScheduleApp').controller('EmployeeInfoManageCtrl', [ | ||
| 80 | + 'EmployeeInfoManageService', '$state', '$uibModal', 'FileDownload_g', | ||
| 81 | + function(employeeInfoManageService, $state, $uibModal, fileDownload) { | ||
| 82 | + var self = this; | ||
| 83 | + | ||
| 84 | + // 切换到form状态 | ||
| 85 | + self.goForm = function() { | ||
| 86 | + //alert("切换"); | ||
| 87 | + $state.go("employeeInfoManage_form"); | ||
| 88 | + } | ||
| 89 | + | ||
| 90 | + // 导入excel | ||
| 91 | + self.importData = function() { | ||
| 92 | + // large方式弹出模态对话框 | ||
| 93 | + var modalInstance = $uibModal.open({ | ||
| 94 | + templateUrl: '/pages/scheduleApp/module/basicInfo/employeeInfoManage/dataImport.html', | ||
| 95 | + size: "lg", | ||
| 96 | + animation: true, | ||
| 97 | + backdrop: 'static', | ||
| 98 | + resolve: { | ||
| 99 | + // 可以传值给controller | ||
| 100 | + }, | ||
| 101 | + windowClass: 'center-modal', | ||
| 102 | + controller: "EmployInfoManageToolsCtrl", | ||
| 103 | + controllerAs: "ctrl", | ||
| 104 | + bindToController: true | ||
| 105 | + }); | ||
| 106 | + modalInstance.result.then( | ||
| 107 | + function() { | ||
| 108 | + console.log("dataImport.html打开"); | ||
| 109 | + }, | ||
| 110 | + function() { | ||
| 111 | + console.log("dataImport.html消失"); | ||
| 112 | + } | ||
| 113 | + ); | ||
| 114 | + }; | ||
| 115 | + | ||
| 116 | + // 导出excel | ||
| 117 | + self.exportData = function() { | ||
| 118 | + employeeInfoManageService.dataExport().then( | ||
| 119 | + function(result) { | ||
| 120 | + fileDownload.downloadFile(result.data, "application/octet-stream", "人员基础信息.xls"); | ||
| 121 | + }, | ||
| 122 | + function(result) { | ||
| 123 | + console.log("exportData failed:" + result); | ||
| 124 | + } | ||
| 125 | + ); | ||
| 126 | + }; | ||
| 127 | + }]); | ||
| 128 | + | ||
| 129 | +angular.module('ScheduleApp').controller('EmployInfoManageToolsCtrl', ['$modalInstance', 'FileUploader', function($modalInstance, FileUploader) { | ||
| 130 | + var self = this; | ||
| 131 | + | ||
| 132 | + // 关闭窗口 | ||
| 133 | + self.close = function() { | ||
| 134 | + $modalInstance.dismiss("cancel"); | ||
| 135 | + }; | ||
| 136 | + | ||
| 137 | + self.clearInputFile = function() { | ||
| 138 | + angular.element("input[type='file']").val(null); | ||
| 139 | + }; | ||
| 140 | + | ||
| 141 | + // 上传文件组件 | ||
| 142 | + self.uploader = new FileUploader({ | ||
| 143 | + url: "/personnel/dataImport", | ||
| 144 | + filters: [] // 用于过滤文件,比如只允许导入excel | ||
| 145 | + }); | ||
| 146 | + self.uploader.onAfterAddingFile = function(fileItem) | ||
| 147 | + { | ||
| 148 | + console.info('onAfterAddingFile', fileItem); | ||
| 149 | + console.log(self.uploader.queue.length); | ||
| 150 | + if (self.uploader.queue.length > 1) | ||
| 151 | + self.uploader.removeFromQueue(0); | ||
| 152 | + }; | ||
| 153 | + self.uploader.onSuccessItem = function(fileItem, response, status, headers) | ||
| 154 | + { | ||
| 155 | + console.info('onSuccessItem', fileItem, response, status, headers); | ||
| 156 | + }; | ||
| 157 | + self.uploader.onErrorItem = function(fileItem, response, status, headers) | ||
| 158 | + { | ||
| 159 | + console.info('onErrorItem', fileItem, response, status, headers); | ||
| 160 | + }; | ||
| 161 | + | ||
| 162 | +}]); | ||
| 163 | + | ||
| 164 | +angular.module('ScheduleApp').controller('EmployeeInfoManageListCtrl', ['EmployeeInfoManageService', function(employeeInfoManageService) { | ||
| 165 | + var self = this; | ||
| 166 | + self.pageInfo = { | ||
| 167 | + totalItems : 0, | ||
| 168 | + currentPage : 1, | ||
| 169 | + infos: [] | ||
| 170 | + }; | ||
| 171 | + | ||
| 172 | + // 初始创建的时候,获取一次列表数据 | ||
| 173 | + employeeInfoManageService.getPage().then( | ||
| 174 | + function(result) { | ||
| 175 | + self.pageInfo.totalItems = result.totalElements; | ||
| 176 | + self.pageInfo.currentPage = result.number + 1; | ||
| 177 | + self.pageInfo.infos = result.content; | ||
| 178 | + employeeInfoManageService.setCurrentPageNo(result.number + 1); | ||
| 179 | + }, | ||
| 180 | + function(result) { | ||
| 181 | + alert("出错啦!"); | ||
| 182 | + } | ||
| 183 | + ); | ||
| 184 | + | ||
| 185 | + //$scope.$watch("ctrl.pageInfo.currentPage", function() { | ||
| 186 | + // alert("dfdfdf"); | ||
| 187 | + //}); | ||
| 188 | + | ||
| 189 | + // 翻页的时候调用 | ||
| 190 | + self.pageChanaged = function() { | ||
| 191 | + employeeInfoManageService.setCurrentPageNo(self.pageInfo.currentPage); | ||
| 192 | + employeeInfoManageService.getPage().then( | ||
| 193 | + function(result) { | ||
| 194 | + self.pageInfo.totalItems = result.totalElements; | ||
| 195 | + self.pageInfo.currentPage = result.number + 1; | ||
| 196 | + self.pageInfo.infos = result.content; | ||
| 197 | + employeeInfoManageService.setCurrentPageNo(result.number + 1); | ||
| 198 | + }, | ||
| 199 | + function(result) { | ||
| 200 | + alert("出错啦!"); | ||
| 201 | + } | ||
| 202 | + ); | ||
| 203 | + }; | ||
| 204 | + // 获取查询条件数据 | ||
| 205 | + self.searchCondition = function() { | ||
| 206 | + return employeeInfoManageService.getSearchCondition(); | ||
| 207 | + }; | ||
| 208 | + // 重置查询条件 | ||
| 209 | + self.resetSearchCondition = function() { | ||
| 210 | + employeeInfoManageService.resetSearchCondition(); | ||
| 211 | + self.pageInfo.currentPage = 1; | ||
| 212 | + self.pageChanaged(); | ||
| 213 | + }; | ||
| 214 | +}]); | ||
| 215 | + | ||
| 216 | +angular.module('ScheduleApp').controller('EmployeeInfoManageFormCtrl', ['EmployeeInfoManageService', '$stateParams', '$state', function(employeeInfoManageService, $stateParams, $state) { | ||
| 217 | + var self = this; | ||
| 218 | + | ||
| 219 | + // 欲保存的busInfo信息,绑定 | ||
| 220 | + self.employeeInfoForSave = {}; | ||
| 221 | + | ||
| 222 | + // 获取传过来的id,有的话就是修改,获取一遍数据 | ||
| 223 | + var id = $stateParams.id; | ||
| 224 | + if (id) { | ||
| 225 | + self.employeeInfoForSave.id = id; | ||
| 226 | + employeeInfoManageService.getDetail(id).then( | ||
| 227 | + function(result) { | ||
| 228 | + var key; | ||
| 229 | + for (key in result) { | ||
| 230 | + self.employeeInfoForSave[key] = result[key]; | ||
| 231 | + } | ||
| 232 | + }, | ||
| 233 | + function(result) { | ||
| 234 | + alert("出错啦!"); | ||
| 235 | + } | ||
| 236 | + ); | ||
| 237 | + } | ||
| 238 | + | ||
| 239 | + // 提交方法 | ||
| 240 | + self.submit = function() { | ||
| 241 | + console.log(self.employeeInfoForSave); | ||
| 242 | + employeeInfoManageService.saveDetail(self.employeeInfoForSave).then( | ||
| 243 | + function(result) { | ||
| 244 | + // TODO:弹出框方式以后改 | ||
| 245 | + if (result.status == 'SUCCESS') { | ||
| 246 | + alert("保存成功!"); | ||
| 247 | + $state.go("employeeInfoManage"); | ||
| 248 | + } else { | ||
| 249 | + alert("保存异常!"); | ||
| 250 | + } | ||
| 251 | + }, | ||
| 252 | + function(result) { | ||
| 253 | + // TODO:弹出框方式以后改 | ||
| 254 | + alert("出错啦!"); | ||
| 255 | + } | ||
| 256 | + ); | ||
| 257 | + }; | ||
| 258 | + | ||
| 259 | + | ||
| 260 | +}]); | ||
| 261 | + | ||
| 262 | +angular.module('ScheduleApp').controller('EmployeeInfoManageDetailCtrl', ['EmployeeInfoManageService', '$stateParams', function(employeeInfoManageService, $stateParams) { | ||
| 263 | + var self = this; | ||
| 264 | + self.title = ""; | ||
| 265 | + self.employeeInfoForDetail = {}; | ||
| 266 | + self.employeeInfoForDetail.id = $stateParams.id; | ||
| 267 | + | ||
| 268 | + // 当转向到此页面时,就获取明细信息并绑定 | ||
| 269 | + employeeInfoManageService.getDetail($stateParams.id).then( | ||
| 270 | + function(result) { | ||
| 271 | + var key; | ||
| 272 | + for (key in result) { | ||
| 273 | + self.employeeInfoForDetail[key] = result[key]; | ||
| 274 | + } | ||
| 275 | + | ||
| 276 | + self.title = "员工 " + self.employeeInfoForDetail.personnelName + " 详细信息"; | ||
| 277 | + }, | ||
| 278 | + function(result) { | ||
| 279 | + // TODO:弹出框方式以后改 | ||
| 280 | + alert("出错啦!"); | ||
| 281 | + } | ||
| 282 | + ); | ||
| 283 | +}]); | ||
| 284 | + |
src/main/resources/static/pages/scheduleApp/module/basicInfo/employeeInfoManage/route.js
0 → 100644
| 1 | +// ui route 配置 | ||
| 2 | + | ||
| 3 | +/** 人员基础信息模块配置route */ | ||
| 4 | +ScheduleApp.config([ | ||
| 5 | + '$stateProvider', | ||
| 6 | + '$urlRouterProvider', | ||
| 7 | + function($stateProvider, $urlRouterProvider) { | ||
| 8 | + // 默认路由 | ||
| 9 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 10 | + | ||
| 11 | + $stateProvider | ||
| 12 | + .state("employeeInfoManage", { // index页面 | ||
| 13 | + url: '/employeeInfoManage', | ||
| 14 | + views: { | ||
| 15 | + "": { | ||
| 16 | + templateUrl: 'pages/scheduleApp/module/basicInfo/employeeInfoManage/index.html' | ||
| 17 | + }, | ||
| 18 | + "employeeInfoManage_list@employeeInfoManage": { | ||
| 19 | + templateUrl: 'pages/scheduleApp/module/basicInfo/employeeInfoManage/list.html' | ||
| 20 | + } | ||
| 21 | + }, | ||
| 22 | + | ||
| 23 | + resolve: { | ||
| 24 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 25 | + return $ocLazyLoad.load({ | ||
| 26 | + name: 'employeeInfoManage_module', | ||
| 27 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 28 | + files: [ | ||
| 29 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 30 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 31 | + "assets/bower_components/angular-file-upload/dist/angular-file-upload.min.js", | ||
| 32 | + "pages/scheduleApp/module/basicInfo/employeeInfoManage/module.js" | ||
| 33 | + ] | ||
| 34 | + }); | ||
| 35 | + }] | ||
| 36 | + } | ||
| 37 | + }) | ||
| 38 | + .state("employeeInfoManage_form", { // 添加人员信息form | ||
| 39 | + url: '/employeeInfoManage_form', | ||
| 40 | + views: { | ||
| 41 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/employeeInfoManage/form.html'} | ||
| 42 | + }, | ||
| 43 | + resolve: { | ||
| 44 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 45 | + return $ocLazyLoad.load({ | ||
| 46 | + name: 'employeeInfoManage_form_module', | ||
| 47 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 48 | + files: [ | ||
| 49 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 50 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 51 | + "pages/scheduleApp/module/basicInfo/employeeInfoManage/module.js" | ||
| 52 | + ] | ||
| 53 | + }); | ||
| 54 | + }] | ||
| 55 | + } | ||
| 56 | + }) | ||
| 57 | + .state("employeeInfoManage_edit", { // 修改人员信息form | ||
| 58 | + url: '/employeeInfoManage_edit/:id', | ||
| 59 | + views: { | ||
| 60 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/employeeInfoManage/edit.html'} | ||
| 61 | + }, | ||
| 62 | + resolve: { | ||
| 63 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 64 | + return $ocLazyLoad.load({ | ||
| 65 | + name: 'employeeInfoManage_edit_module', | ||
| 66 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 67 | + files: [ | ||
| 68 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 69 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 70 | + "pages/scheduleApp/module/basicInfo/employeeInfoManage/module.js" | ||
| 71 | + ] | ||
| 72 | + }); | ||
| 73 | + }] | ||
| 74 | + } | ||
| 75 | + }) | ||
| 76 | + .state("employeeInfoManage_detail", { // 详细信息页面 | ||
| 77 | + url: '/employeeInfoManage_detail/:id', | ||
| 78 | + views: { | ||
| 79 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/employeeInfoManage/detail.html'} | ||
| 80 | + }, | ||
| 81 | + resolve: { | ||
| 82 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 83 | + return $ocLazyLoad.load({ | ||
| 84 | + name: 'employeeInfoManage_detail_module', | ||
| 85 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 86 | + files: [ | ||
| 87 | + "pages/scheduleApp/module/basicInfo/employeeInfoManage/module.js" | ||
| 88 | + ] | ||
| 89 | + }); | ||
| 90 | + }] | ||
| 91 | + } | ||
| 92 | + }) | ||
| 93 | + | ||
| 94 | +}]); | ||
| 0 | \ No newline at end of file | 95 | \ No newline at end of file |
src/main/resources/static/pages/scheduleApp/module/common/prj-common-directive.js
| @@ -118,105 +118,105 @@ angular.module('ScheduleApp').directive('remoteValidation', [ | @@ -118,105 +118,105 @@ angular.module('ScheduleApp').directive('remoteValidation', [ | ||
| 118 | } | 118 | } |
| 119 | ]); | 119 | ]); |
| 120 | 120 | ||
| 121 | -/** | ||
| 122 | - * remoteValidatiot2指令,远程数据验证验证,作为属性放在某个指令上,依赖与指令的ngModel(专门用于时刻表sheet验证)。 | ||
| 123 | - * 属性如下: | ||
| 124 | - * remotevtype(必须):验证类型(在service中有对应映射),如rvtype="xl" | ||
| 125 | - * remotevparam(必须):后端判定查询参数,如rvparam={{ {'xl.id_eq': '123'} | json }} | ||
| 126 | - * | ||
| 127 | - */ | ||
| 128 | -angular.module('ScheduleApp').directive('remoteValidationt2', [ | ||
| 129 | - '$$SearchInfoService_g', | ||
| 130 | - function($$SearchInfoService_g) { | ||
| 131 | - return { | ||
| 132 | - restrict: "A", // 属性 | ||
| 133 | - require: "^ngModel", // 依赖所属指令的ngModel | ||
| 134 | - compile: function(tElem, tAttrs) { | ||
| 135 | - // 验证属性 | ||
| 136 | - if (!tAttrs["remotevtype"]) { // 验证类型 | ||
| 137 | - throw new Error("remotevtype属性必须填写"); | ||
| 138 | - } else if (!$$SearchInfoService_g.validate[tAttrs["remotevtype"]]) { | ||
| 139 | - throw new Error(!tAttrs["remotevtype"] + "验证类型不存在"); | ||
| 140 | - } | ||
| 141 | - if (!tAttrs["remotevparam"]) { // 查询参数 | ||
| 142 | - throw new Error("remotevparam属性必须填写"); | ||
| 143 | - } | ||
| 144 | - | ||
| 145 | - // 监听获取的数据 | ||
| 146 | - var $watch_rvtype = undefined; | ||
| 147 | - var $watch_rvparam_obj = undefined; | ||
| 148 | - | ||
| 149 | - // 验证数据 | ||
| 150 | - var $$internal_validate = function(ngModelCtrl, scope) { | ||
| 151 | - if ($watch_rvtype && $watch_rvparam_obj) { | ||
| 152 | - // 获取查询参数模版 | ||
| 153 | - var paramTemplate = $$SearchInfoService_g.validate[$watch_rvtype].template; | ||
| 154 | - if (!paramTemplate) { | ||
| 155 | - throw new Error($watch_rvtype + "查询模版不存在"); | ||
| 156 | - } | ||
| 157 | - // 判定如果参数对象不全,没有完全和模版参数里对应上,则不验证 | ||
| 158 | - var isParamAll = true; | ||
| 159 | - for (var key in paramTemplate) { | ||
| 160 | - if (!$watch_rvparam_obj[key]) { | ||
| 161 | - isParamAll = false; | ||
| 162 | - break; | ||
| 163 | - } | ||
| 164 | - } | ||
| 165 | - if (!isParamAll) { | ||
| 166 | - ngModelCtrl.$setValidity('remote', true); | ||
| 167 | - } else { // 开始验证 | ||
| 168 | - $$SearchInfoService_g.validate[$watch_rvtype].remote.do( | ||
| 169 | - $watch_rvparam_obj, | ||
| 170 | - function(result) { | ||
| 171 | - if (result.status == "SUCCESS") { | ||
| 172 | - ngModelCtrl.$setValidity('remote', true); | ||
| 173 | - } else { | ||
| 174 | - ngModelCtrl.$setValidity('remote', false); | ||
| 175 | - scope.ctrl.ttInfoDetailManageForForm.sheetvaliddesc = result.msg; | ||
| 176 | - } | ||
| 177 | - }, | ||
| 178 | - function(result) { | ||
| 179 | - alert("出错拉"); | ||
| 180 | - ngModelCtrl.$setValidity('remote', true); | ||
| 181 | - } | ||
| 182 | - ); | ||
| 183 | - } | ||
| 184 | - } | ||
| 185 | - }; | ||
| 186 | - | ||
| 187 | - return { | ||
| 188 | - pre: function(scope, element, attr) { | ||
| 189 | - | ||
| 190 | - }, | ||
| 191 | - | ||
| 192 | - post: function(scope, element, attr, ngModelCtrl) { | ||
| 193 | - /** | ||
| 194 | - * 监控验证类型属性变化。 | ||
| 195 | - */ | ||
| 196 | - attr.$observe("remotevtype", function(value) { | ||
| 197 | - if (value && value != "") { | ||
| 198 | - $watch_rvtype = value; | ||
| 199 | - $$internal_validate(ngModelCtrl, scope); | ||
| 200 | - } | ||
| 201 | - }); | ||
| 202 | - /** | ||
| 203 | - * 监控查询结果属性变化。 | ||
| 204 | - */ | ||
| 205 | - attr.$observe("remotevparam", function(value) { | ||
| 206 | - if (value && value != "") { | ||
| 207 | - //if (!ngModelCtrl.$dirty) { // 没有修改过模型数据,不验证 | ||
| 208 | - // return; | ||
| 209 | - //} | ||
| 210 | - $watch_rvparam_obj = JSON.parse(value); | ||
| 211 | - $$internal_validate(ngModelCtrl, scope); | ||
| 212 | - } | ||
| 213 | - }); | ||
| 214 | - } | ||
| 215 | - }; | ||
| 216 | - } | ||
| 217 | - } | ||
| 218 | - } | ||
| 219 | -]); | 121 | +/** |
| 122 | + * remoteValidatiot2指令,远程数据验证验证,作为属性放在某个指令上,依赖与指令的ngModel(专门用于时刻表sheet验证)。 | ||
| 123 | + * 属性如下: | ||
| 124 | + * remotevtype(必须):验证类型(在service中有对应映射),如rvtype="xl" | ||
| 125 | + * remotevparam(必须):后端判定查询参数,如rvparam={{ {'xl.id_eq': '123'} | json }} | ||
| 126 | + * | ||
| 127 | + */ | ||
| 128 | +angular.module('ScheduleApp').directive('remoteValidationt2', [ | ||
| 129 | + '$$SearchInfoService_g', | ||
| 130 | + function($$SearchInfoService_g) { | ||
| 131 | + return { | ||
| 132 | + restrict: "A", // 属性 | ||
| 133 | + require: "^ngModel", // 依赖所属指令的ngModel | ||
| 134 | + compile: function(tElem, tAttrs) { | ||
| 135 | + // 验证属性 | ||
| 136 | + if (!tAttrs["remotevtype"]) { // 验证类型 | ||
| 137 | + throw new Error("remotevtype属性必须填写"); | ||
| 138 | + } else if (!$$SearchInfoService_g.validate[tAttrs["remotevtype"]]) { | ||
| 139 | + throw new Error(!tAttrs["remotevtype"] + "验证类型不存在"); | ||
| 140 | + } | ||
| 141 | + if (!tAttrs["remotevparam"]) { // 查询参数 | ||
| 142 | + throw new Error("remotevparam属性必须填写"); | ||
| 143 | + } | ||
| 144 | + | ||
| 145 | + // 监听获取的数据 | ||
| 146 | + var $watch_rvtype = undefined; | ||
| 147 | + var $watch_rvparam_obj = undefined; | ||
| 148 | + | ||
| 149 | + // 验证数据 | ||
| 150 | + var $$internal_validate = function(ngModelCtrl, scope) { | ||
| 151 | + if ($watch_rvtype && $watch_rvparam_obj) { | ||
| 152 | + // 获取查询参数模版 | ||
| 153 | + var paramTemplate = $$SearchInfoService_g.validate[$watch_rvtype].template; | ||
| 154 | + if (!paramTemplate) { | ||
| 155 | + throw new Error($watch_rvtype + "查询模版不存在"); | ||
| 156 | + } | ||
| 157 | + // 判定如果参数对象不全,没有完全和模版参数里对应上,则不验证 | ||
| 158 | + var isParamAll = true; | ||
| 159 | + for (var key in paramTemplate) { | ||
| 160 | + if (!$watch_rvparam_obj[key]) { | ||
| 161 | + isParamAll = false; | ||
| 162 | + break; | ||
| 163 | + } | ||
| 164 | + } | ||
| 165 | + if (!isParamAll) { | ||
| 166 | + ngModelCtrl.$setValidity('remote', true); | ||
| 167 | + } else { // 开始验证 | ||
| 168 | + $$SearchInfoService_g.validate[$watch_rvtype].remote.do( | ||
| 169 | + $watch_rvparam_obj, | ||
| 170 | + function(result) { | ||
| 171 | + if (result.status == "SUCCESS") { | ||
| 172 | + ngModelCtrl.$setValidity('remote', true); | ||
| 173 | + } else { | ||
| 174 | + ngModelCtrl.$setValidity('remote', false); | ||
| 175 | + scope.ctrl.ttInfoDetailManageForForm.sheetvaliddesc = result.msg; | ||
| 176 | + } | ||
| 177 | + }, | ||
| 178 | + function(result) { | ||
| 179 | + alert("出错拉"); | ||
| 180 | + ngModelCtrl.$setValidity('remote', true); | ||
| 181 | + } | ||
| 182 | + ); | ||
| 183 | + } | ||
| 184 | + } | ||
| 185 | + }; | ||
| 186 | + | ||
| 187 | + return { | ||
| 188 | + pre: function(scope, element, attr) { | ||
| 189 | + | ||
| 190 | + }, | ||
| 191 | + | ||
| 192 | + post: function(scope, element, attr, ngModelCtrl) { | ||
| 193 | + /** | ||
| 194 | + * 监控验证类型属性变化。 | ||
| 195 | + */ | ||
| 196 | + attr.$observe("remotevtype", function(value) { | ||
| 197 | + if (value && value != "") { | ||
| 198 | + $watch_rvtype = value; | ||
| 199 | + $$internal_validate(ngModelCtrl, scope); | ||
| 200 | + } | ||
| 201 | + }); | ||
| 202 | + /** | ||
| 203 | + * 监控查询结果属性变化。 | ||
| 204 | + */ | ||
| 205 | + attr.$observe("remotevparam", function(value) { | ||
| 206 | + if (value && value != "") { | ||
| 207 | + //if (!ngModelCtrl.$dirty) { // 没有修改过模型数据,不验证 | ||
| 208 | + // return; | ||
| 209 | + //} | ||
| 210 | + $watch_rvparam_obj = JSON.parse(value); | ||
| 211 | + $$internal_validate(ngModelCtrl, scope); | ||
| 212 | + } | ||
| 213 | + }); | ||
| 214 | + } | ||
| 215 | + }; | ||
| 216 | + } | ||
| 217 | + } | ||
| 218 | + } | ||
| 219 | +]); | ||
| 220 | 220 | ||
| 221 | 221 | ||
| 222 | angular.module('ScheduleApp').directive("saSelect", ['$timeout', function($timeout) { | 222 | angular.module('ScheduleApp').directive("saSelect", ['$timeout', function($timeout) { |
src/main/resources/static/pages/scheduleApp/module/common/prj-common-ui-route-state.js
| 1 | -// ui route 配置 | ||
| 2 | - | ||
| 3 | -/** 配置所有模块页面route */ | ||
| 4 | -ScheduleApp.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { | ||
| 5 | - // 默认路由 | ||
| 6 | - //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 7 | - | ||
| 8 | - $stateProvider | ||
| 9 | - // 车辆基础信息模块配置 | ||
| 10 | - .state("busInfoManage", { | ||
| 11 | - url: '/busInfoManage', | ||
| 12 | - views: { | ||
| 13 | - "": { | ||
| 14 | - templateUrl: 'pages/scheduleApp/module/basicInfo/busInfoManage/index.html' | ||
| 15 | - }, | ||
| 16 | - "busInfoManage_list@busInfoManage": { | ||
| 17 | - templateUrl: 'pages/scheduleApp/module/basicInfo/busInfoManage/list.html' | ||
| 18 | - } | ||
| 19 | - }, | ||
| 20 | - | ||
| 21 | - resolve: { | ||
| 22 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 23 | - return $ocLazyLoad.load({ | ||
| 24 | - name: 'busInfoManage_module', | ||
| 25 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 26 | - files: [ | ||
| 27 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 28 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 29 | - "assets/bower_components/angular-file-upload/dist/angular-file-upload.min.js", | ||
| 30 | - "pages/scheduleApp/module/basicInfo/busInfoManage/busInfoManage.js" | ||
| 31 | - ] | ||
| 32 | - }); | ||
| 33 | - }] | ||
| 34 | - } | ||
| 35 | - }) | ||
| 36 | - .state("busInfoManage_form", { | ||
| 37 | - url: '/busInfoManage_form', | ||
| 38 | - views: { | ||
| 39 | - "": {templateUrl: 'pages/scheduleApp/module/basicInfo/busInfoManage/form.html'} | ||
| 40 | - }, | ||
| 41 | - resolve: { | ||
| 42 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 43 | - return $ocLazyLoad.load({ | ||
| 44 | - name: 'busInfoManage_form_module', | ||
| 45 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 46 | - files: [ | ||
| 47 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 48 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 49 | - "pages/scheduleApp/module/basicInfo/busInfoManage/busInfoManage.js" | ||
| 50 | - ] | ||
| 51 | - }); | ||
| 52 | - }] | ||
| 53 | - } | ||
| 54 | - }) | ||
| 55 | - .state("busInfoManage_edit", { | ||
| 56 | - url: '/busInfoManage_edit/:id', | ||
| 57 | - views: { | ||
| 58 | - "": {templateUrl: 'pages/scheduleApp/module/basicInfo/busInfoManage/edit.html'} | ||
| 59 | - }, | ||
| 60 | - resolve: { | ||
| 61 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 62 | - return $ocLazyLoad.load({ | ||
| 63 | - name: 'busInfoManage_edit_module', | ||
| 64 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 65 | - files: [ | ||
| 66 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 67 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 68 | - "pages/scheduleApp/module/basicInfo/busInfoManage/busInfoManage.js" | ||
| 69 | - ] | ||
| 70 | - }); | ||
| 71 | - }] | ||
| 72 | - } | ||
| 73 | - }) | ||
| 74 | - .state("busInfoManage_detail", { | ||
| 75 | - url: '/busInfoManage_detail/:id', | ||
| 76 | - views: { | ||
| 77 | - "": {templateUrl: 'pages/scheduleApp/module/basicInfo/busInfoManage/detail.html'} | ||
| 78 | - }, | ||
| 79 | - resolve: { | ||
| 80 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 81 | - return $ocLazyLoad.load({ | ||
| 82 | - name: 'busInfoManage_detail_module', | ||
| 83 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 84 | - files: [ | ||
| 85 | - "pages/scheduleApp/module/basicInfo/busInfoManage/busInfoManage.js" | ||
| 86 | - ] | ||
| 87 | - }); | ||
| 88 | - }] | ||
| 89 | - } | ||
| 90 | - }) | ||
| 91 | - | ||
| 92 | - // 人员基础信息模块配置 | ||
| 93 | - .state("employeeInfoManage", { | ||
| 94 | - url: '/employeeInfoManage', | ||
| 95 | - views: { | ||
| 96 | - "": { | ||
| 97 | - templateUrl: 'pages/scheduleApp/module/basicInfo/employeeInfoManage/index.html' | ||
| 98 | - }, | ||
| 99 | - "employeeInfoManage_list@employeeInfoManage": { | ||
| 100 | - templateUrl: 'pages/scheduleApp/module/basicInfo/employeeInfoManage/list.html' | ||
| 101 | - } | ||
| 102 | - }, | ||
| 103 | - | ||
| 104 | - resolve: { | ||
| 105 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 106 | - return $ocLazyLoad.load({ | ||
| 107 | - name: 'employeeInfoManage_module', | ||
| 108 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 109 | - files: [ | ||
| 110 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 111 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 112 | - "assets/bower_components/angular-file-upload/dist/angular-file-upload.min.js", | ||
| 113 | - "pages/scheduleApp/module/basicInfo/employeeInfoManage/employeeInfoManage.js" | ||
| 114 | - ] | ||
| 115 | - }); | ||
| 116 | - }] | ||
| 117 | - } | ||
| 118 | - }) | ||
| 119 | - .state("employeeInfoManage_form", { | ||
| 120 | - url: '/employeeInfoManage_form', | ||
| 121 | - views: { | ||
| 122 | - "": {templateUrl: 'pages/scheduleApp/module/basicInfo/employeeInfoManage/form.html'} | ||
| 123 | - }, | ||
| 124 | - resolve: { | ||
| 125 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 126 | - return $ocLazyLoad.load({ | ||
| 127 | - name: 'employeeInfoManage_form_module', | ||
| 128 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 129 | - files: [ | ||
| 130 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 131 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 132 | - "pages/scheduleApp/module/basicInfo/employeeInfoManage/employeeInfoManage.js" | ||
| 133 | - ] | ||
| 134 | - }); | ||
| 135 | - }] | ||
| 136 | - } | ||
| 137 | - }) | ||
| 138 | - .state("employeeInfoManage_edit", { | ||
| 139 | - url: '/employeeInfoManage_edit/:id', | ||
| 140 | - views: { | ||
| 141 | - "": {templateUrl: 'pages/scheduleApp/module/basicInfo/employeeInfoManage/edit.html'} | ||
| 142 | - }, | ||
| 143 | - resolve: { | ||
| 144 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 145 | - return $ocLazyLoad.load({ | ||
| 146 | - name: 'employeeInfoManage_edit_module', | ||
| 147 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 148 | - files: [ | ||
| 149 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 150 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 151 | - "pages/scheduleApp/module/basicInfo/employeeInfoManage/employeeInfoManage.js" | ||
| 152 | - ] | ||
| 153 | - }); | ||
| 154 | - }] | ||
| 155 | - } | ||
| 156 | - }) | ||
| 157 | - .state("employeeInfoManage_detail", { | ||
| 158 | - url: '/employeeInfoManage_detail/:id', | ||
| 159 | - views: { | ||
| 160 | - "": {templateUrl: 'pages/scheduleApp/module/basicInfo/employeeInfoManage/detail.html'} | ||
| 161 | - }, | ||
| 162 | - resolve: { | ||
| 163 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 164 | - return $ocLazyLoad.load({ | ||
| 165 | - name: 'employeeInfoManage_detail_module', | ||
| 166 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 167 | - files: [ | ||
| 168 | - "pages/scheduleApp/module/basicInfo/employeeInfoManage/employeeInfoManage.js" | ||
| 169 | - ] | ||
| 170 | - }); | ||
| 171 | - }] | ||
| 172 | - } | ||
| 173 | - }) | ||
| 174 | - | ||
| 175 | - // 车辆设备信息模块配置 | ||
| 176 | - .state("deviceInfoManage", { | ||
| 177 | - url: '/deviceInfoManage', | ||
| 178 | - views: { | ||
| 179 | - "": { | ||
| 180 | - templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/index.html' | ||
| 181 | - }, | ||
| 182 | - "deviceInfoManage_list@deviceInfoManage": { | ||
| 183 | - templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/list.html' | ||
| 184 | - } | ||
| 185 | - }, | ||
| 186 | - | ||
| 187 | - resolve: { | ||
| 188 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 189 | - return $ocLazyLoad.load({ | ||
| 190 | - name: 'deviceInfoManage_module', | ||
| 191 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 192 | - files: [ | ||
| 193 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 194 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 195 | - "pages/scheduleApp/module/basicInfo/deviceInfoManage/deviceInfoManage.js" | ||
| 196 | - ] | ||
| 197 | - }); | ||
| 198 | - }] | ||
| 199 | - } | ||
| 200 | - }) | ||
| 201 | - .state("deviceInfoManage_form", { | ||
| 202 | - url: '/deviceInfoManage_form', | ||
| 203 | - views: { | ||
| 204 | - "": {templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/form.html'} | ||
| 205 | - }, | ||
| 206 | - resolve: { | ||
| 207 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 208 | - return $ocLazyLoad.load({ | ||
| 209 | - name: 'deviceInfoManage_form_module', | ||
| 210 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 211 | - files: [ | ||
| 212 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 213 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 214 | - "pages/scheduleApp/module/basicInfo/deviceInfoManage/deviceInfoManage.js" | ||
| 215 | - ] | ||
| 216 | - }); | ||
| 217 | - }] | ||
| 218 | - } | ||
| 219 | - }) | ||
| 220 | - .state("deviceInfoManage_edit", { | ||
| 221 | - url: '/deviceInfoManage_edit/:id', | ||
| 222 | - views: { | ||
| 223 | - "": {templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/edit.html'} | ||
| 224 | - }, | ||
| 225 | - resolve: { | ||
| 226 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 227 | - return $ocLazyLoad.load({ | ||
| 228 | - name: 'deviceInfoManage_edit_module', | ||
| 229 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 230 | - files: [ | ||
| 231 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 232 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 233 | - "pages/scheduleApp/module/basicInfo/deviceInfoManage/deviceInfoManage.js" | ||
| 234 | - ] | ||
| 235 | - }); | ||
| 236 | - }] | ||
| 237 | - } | ||
| 238 | - }) | ||
| 239 | - .state("deviceInfoManage_detail", { | ||
| 240 | - url: '/deviceInfoManage_detail/:id', | ||
| 241 | - views: { | ||
| 242 | - "": {templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/detail.html'} | ||
| 243 | - }, | ||
| 244 | - resolve: { | ||
| 245 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 246 | - return $ocLazyLoad.load({ | ||
| 247 | - name: 'deviceInfoManage_detail_module', | ||
| 248 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 249 | - files: [ | ||
| 250 | - "pages/scheduleApp/module/basicInfo/deviceInfoManage/deviceInfoManage.js" | ||
| 251 | - ] | ||
| 252 | - }); | ||
| 253 | - }] | ||
| 254 | - } | ||
| 255 | - }) | ||
| 256 | - | ||
| 257 | - // 车辆配置模块 | ||
| 258 | - .state("busConfig", { | ||
| 259 | - url: '/busConfig', | ||
| 260 | - views: { | ||
| 261 | - "": { | ||
| 262 | - templateUrl: 'pages/scheduleApp/module/core/busConfig/index.html' | ||
| 263 | - }, | ||
| 264 | - "busConfig_list@busConfig": { | ||
| 265 | - templateUrl: 'pages/scheduleApp/module/core/busConfig/list.html' | ||
| 266 | - } | ||
| 267 | - }, | ||
| 268 | - | ||
| 269 | - resolve: { | ||
| 270 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 271 | - return $ocLazyLoad.load({ | ||
| 272 | - name: 'busConfig_module', | ||
| 273 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 274 | - files: [ | ||
| 275 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 276 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 277 | - "assets/bower_components/angular-file-upload/dist/angular-file-upload.min.js", | ||
| 278 | - "pages/scheduleApp/module/core/busConfig/busConfig.js" | ||
| 279 | - ] | ||
| 280 | - }); | ||
| 281 | - }] | ||
| 282 | - } | ||
| 283 | - }) | ||
| 284 | - .state("busConfig_form", { | ||
| 285 | - url: '/busConfig_form', | ||
| 286 | - views: { | ||
| 287 | - "": {templateUrl: 'pages/scheduleApp/module/core/busConfig/form.html'} | ||
| 288 | - }, | ||
| 289 | - resolve: { | ||
| 290 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 291 | - return $ocLazyLoad.load({ | ||
| 292 | - name: 'busConfig_form_module', | ||
| 293 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 294 | - files: [ | ||
| 295 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 296 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 297 | - "pages/scheduleApp/module/core/busConfig/busConfig.js" | ||
| 298 | - ] | ||
| 299 | - }); | ||
| 300 | - }] | ||
| 301 | - } | ||
| 302 | - }) | ||
| 303 | - .state("busConfig_edit", { | ||
| 304 | - url: '/busConfig_edit/:id', | ||
| 305 | - views: { | ||
| 306 | - "": {templateUrl: 'pages/scheduleApp/module/core/busConfig/edit.html'} | ||
| 307 | - }, | ||
| 308 | - resolve: { | ||
| 309 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 310 | - return $ocLazyLoad.load({ | ||
| 311 | - name: 'busConfig_edit_module', | ||
| 312 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 313 | - files: [ | ||
| 314 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 315 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 316 | - "pages/scheduleApp/module/core/busConfig/busConfig.js" | ||
| 317 | - ] | ||
| 318 | - }); | ||
| 319 | - }] | ||
| 320 | - } | ||
| 321 | - }) | ||
| 322 | - .state("busConfig_detail", { | ||
| 323 | - url: '/busConfig_detail/:id', | ||
| 324 | - views: { | ||
| 325 | - "": {templateUrl: 'pages/scheduleApp/module/core/busConfig/detail.html'} | ||
| 326 | - }, | ||
| 327 | - resolve: { | ||
| 328 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 329 | - return $ocLazyLoad.load({ | ||
| 330 | - name: 'busConfig_detail_module', | ||
| 331 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 332 | - files: [ | ||
| 333 | - "pages/scheduleApp/module/core/busConfig/busConfig.js" | ||
| 334 | - ] | ||
| 335 | - }); | ||
| 336 | - }] | ||
| 337 | - } | ||
| 338 | - }) | ||
| 339 | - | ||
| 340 | - // 人员配置模块 | ||
| 341 | - .state("employeeConfig", { | ||
| 342 | - url: '/employeeConfig', | ||
| 343 | - views: { | ||
| 344 | - "": { | ||
| 345 | - templateUrl: 'pages/scheduleApp/module/core/employeeConfig/index.html' | ||
| 346 | - }, | ||
| 347 | - "employeeConfig_list@employeeConfig": { | ||
| 348 | - templateUrl: 'pages/scheduleApp/module/core/employeeConfig/list.html' | ||
| 349 | - } | ||
| 350 | - }, | ||
| 351 | - | ||
| 352 | - resolve: { | ||
| 353 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 354 | - return $ocLazyLoad.load({ | ||
| 355 | - name: 'employeeConfig_module', | ||
| 356 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 357 | - files: [ | ||
| 358 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 359 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 360 | - "assets/bower_components/angular-file-upload/dist/angular-file-upload.min.js", | ||
| 361 | - "pages/scheduleApp/module/core/employeeConfig/employeeConfig.js" | ||
| 362 | - ] | ||
| 363 | - }); | ||
| 364 | - }] | ||
| 365 | - } | ||
| 366 | - }) | ||
| 367 | - .state("employeeConfig_form", { | ||
| 368 | - url: '/employeeConfig_form', | ||
| 369 | - views: { | ||
| 370 | - "": {templateUrl: 'pages/scheduleApp/module/core/employeeConfig/form.html'} | ||
| 371 | - }, | ||
| 372 | - resolve: { | ||
| 373 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 374 | - return $ocLazyLoad.load({ | ||
| 375 | - name: 'employeeConfig_form_module', | ||
| 376 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 377 | - files: [ | ||
| 378 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 379 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 380 | - "pages/scheduleApp/module/core/employeeConfig/employeeConfig.js" | ||
| 381 | - ] | ||
| 382 | - }); | ||
| 383 | - }] | ||
| 384 | - } | ||
| 385 | - }) | ||
| 386 | - .state("employeeConfig_edit", { | ||
| 387 | - url: '/employeeConfig_edit/:id', | ||
| 388 | - views: { | ||
| 389 | - "": {templateUrl: 'pages/scheduleApp/module/core/employeeConfig/edit.html'} | ||
| 390 | - }, | ||
| 391 | - resolve: { | ||
| 392 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 393 | - return $ocLazyLoad.load({ | ||
| 394 | - name: 'employeeConfig_edit_module', | ||
| 395 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 396 | - files: [ | ||
| 397 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 398 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 399 | - "pages/scheduleApp/module/core/employeeConfig/employeeConfig.js" | ||
| 400 | - ] | ||
| 401 | - }); | ||
| 402 | - }] | ||
| 403 | - } | ||
| 404 | - }) | ||
| 405 | - .state("employeeConfig_detail", { | ||
| 406 | - url: '/employeeConfig_detail/:id', | ||
| 407 | - views: { | ||
| 408 | - "": {templateUrl: 'pages/scheduleApp/module/core/employeeConfig/detail.html'} | ||
| 409 | - }, | ||
| 410 | - resolve: { | ||
| 411 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 412 | - return $ocLazyLoad.load({ | ||
| 413 | - name: 'employeeConfig_detail_module', | ||
| 414 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 415 | - files: [ | ||
| 416 | - "pages/scheduleApp/module/core/employeeConfig/employeeConfig.js" | ||
| 417 | - ] | ||
| 418 | - }); | ||
| 419 | - }] | ||
| 420 | - } | ||
| 421 | - }) | ||
| 422 | - | ||
| 423 | - // 路牌管理 | ||
| 424 | - .state("guideboardManage", { | ||
| 425 | - url: '/guideboardManage', | ||
| 426 | - views: { | ||
| 427 | - "": { | ||
| 428 | - templateUrl: 'pages/scheduleApp/module/core/guideboardManage/index.html' | ||
| 429 | - }, | ||
| 430 | - "guideboardManage_list@guideboardManage": { | ||
| 431 | - templateUrl: 'pages/scheduleApp/module/core/guideboardManage/list.html' | ||
| 432 | - } | ||
| 433 | - }, | ||
| 434 | - | ||
| 435 | - resolve: { | ||
| 436 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 437 | - return $ocLazyLoad.load({ | ||
| 438 | - name: 'guideboardManage_module', | ||
| 439 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 440 | - files: [ | ||
| 441 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 442 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 443 | - "assets/bower_components/angular-file-upload/dist/angular-file-upload.min.js", | ||
| 444 | - "pages/scheduleApp/module/core/guideboardManage/guideboardManage.js" | ||
| 445 | - ] | ||
| 446 | - }); | ||
| 447 | - }] | ||
| 448 | - } | ||
| 449 | - }) | ||
| 450 | - .state("guideboardManage_detail", { | ||
| 451 | - url: '/guideboardManage_detail/:id', | ||
| 452 | - views: { | ||
| 453 | - "": {templateUrl: 'pages/scheduleApp/module/core/guideboardManage/detail.html'} | ||
| 454 | - }, | ||
| 455 | - resolve: { | ||
| 456 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 457 | - return $ocLazyLoad.load({ | ||
| 458 | - name: 'guideboardManage_detail_module', | ||
| 459 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 460 | - files: [ | ||
| 461 | - "pages/scheduleApp/module/core/guideboardManage/guideboardManage.js" | ||
| 462 | - ] | ||
| 463 | - }); | ||
| 464 | - }] | ||
| 465 | - } | ||
| 466 | - }) | ||
| 467 | - | ||
| 468 | - | ||
| 469 | - // 时刻表管理 | ||
| 470 | - .state("timeTableManage", { | ||
| 471 | - url: '/timeTableManage', | ||
| 472 | - views: { | ||
| 473 | - "": { | ||
| 474 | - templateUrl: 'pages/scheduleApp/module/core/timeTableManage/index.html' | ||
| 475 | - }, | ||
| 476 | - "timeTableManage_list@timeTableManage": { | ||
| 477 | - templateUrl: 'pages/scheduleApp/module/core/timeTableManage/list.html' | ||
| 478 | - } | ||
| 479 | - }, | ||
| 480 | - | ||
| 481 | - resolve: { | ||
| 482 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 483 | - return $ocLazyLoad.load({ | ||
| 484 | - name: 'timeTableManage_module', | ||
| 485 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 486 | - files: [ | ||
| 487 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 488 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 489 | - "assets/bower_components/angular-file-upload/dist/angular-file-upload.min.js", | ||
| 490 | - "pages/scheduleApp/module/core/timeTableManage/timeTableManage.js" | ||
| 491 | - ] | ||
| 492 | - }); | ||
| 493 | - }] | ||
| 494 | - } | ||
| 495 | - }) | ||
| 496 | - .state("timeTableManage_form", { | ||
| 497 | - url: '/timeTableManage_form', | ||
| 498 | - views: { | ||
| 499 | - "": {templateUrl: 'pages/scheduleApp/module/core/timeTableManage/form.html'} | ||
| 500 | - }, | ||
| 501 | - resolve: { | ||
| 502 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 503 | - return $ocLazyLoad.load({ | ||
| 504 | - name: 'timeTableManage_form_module', | ||
| 505 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 506 | - files: [ | ||
| 507 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 508 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 509 | - "pages/scheduleApp/module/core/timeTableManage/timeTableManage.js" | ||
| 510 | - ] | ||
| 511 | - }); | ||
| 512 | - }] | ||
| 513 | - } | ||
| 514 | - }) | ||
| 515 | - .state("timeTableManage_edit", { | ||
| 516 | - url: '/timeTableManage_edit/:id', | ||
| 517 | - views: { | ||
| 518 | - "": {templateUrl: 'pages/scheduleApp/module/core/timeTableManage/edit.html'} | ||
| 519 | - }, | ||
| 520 | - resolve: { | ||
| 521 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 522 | - return $ocLazyLoad.load({ | ||
| 523 | - name: 'timeTableManage_edit_module', | ||
| 524 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 525 | - files: [ | ||
| 526 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 527 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 528 | - "pages/scheduleApp/module/core/timeTableManage/timeTableManage.js" | ||
| 529 | - ] | ||
| 530 | - }); | ||
| 531 | - }] | ||
| 532 | - } | ||
| 533 | - }) | ||
| 534 | - .state("timeTableManage_detail", { | ||
| 535 | - url: '/timeTableManage_detail/:id', | ||
| 536 | - views: { | ||
| 537 | - "": {templateUrl: 'pages/scheduleApp/module/core/timeTableManage/detail.html'} | ||
| 538 | - }, | ||
| 539 | - resolve: { | ||
| 540 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 541 | - return $ocLazyLoad.load({ | ||
| 542 | - name: 'timeTableManage_detail_module', | ||
| 543 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 544 | - files: [ | ||
| 545 | - "pages/scheduleApp/module/core/timeTableManage/timeTableManage.js" | ||
| 546 | - ] | ||
| 547 | - }); | ||
| 548 | - }] | ||
| 549 | - } | ||
| 550 | - }) | ||
| 551 | - .state("timeTableDetailInfoManage", { | ||
| 552 | - url: '/timeTableDetailInfoManage/:xlid/:ttid/:xlname/:ttname', | ||
| 553 | - views: { | ||
| 554 | - "": {templateUrl: 'pages/scheduleApp/module/core/timeTableManage/detail_info.html'} | ||
| 555 | - }, | ||
| 556 | - resolve: { | ||
| 557 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 558 | - return $ocLazyLoad.load({ | ||
| 559 | - name: 'timeTableDetailInfoManage_module', | ||
| 560 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 561 | - files: [ | ||
| 562 | - "pages/scheduleApp/module/core/timeTableManage/timeTableDetailManage.js" | ||
| 563 | - ] | ||
| 564 | - }); | ||
| 565 | - }] | ||
| 566 | - } | ||
| 567 | - }) | ||
| 568 | - .state("timeTableDetailInfoManage_detail_edit", { | ||
| 569 | - url: '/timeTableDetailInfoManage_detail_edit/:id/:xlid/:ttid/:xlname/:ttname', | ||
| 570 | - views: { | ||
| 571 | - "": {templateUrl: 'pages/scheduleApp/module/core/timeTableManage/detail_info_edit.html'} | ||
| 572 | - }, | ||
| 573 | - resolve: { | ||
| 574 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 575 | - return $ocLazyLoad.load({ | ||
| 576 | - name: 'timeTableDetailInfoManage_module', | ||
| 577 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 578 | - files: [ | ||
| 579 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 580 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 581 | - "pages/scheduleApp/module/core/timeTableManage/timeTableDetailManage.js" | ||
| 582 | - ] | ||
| 583 | - }); | ||
| 584 | - }] | ||
| 585 | - } | ||
| 586 | - }) | ||
| 587 | - | ||
| 588 | - // 时刻表管理(新版本) | ||
| 589 | - .state("ttInfoManage", { // 时刻表基础信息界面 | ||
| 590 | - url: '/ttInfoManage', | ||
| 591 | - views: { | ||
| 592 | - "": { | ||
| 593 | - templateUrl: 'pages/scheduleApp/module/core/ttInfoManage/index.html' | ||
| 594 | - }, | ||
| 595 | - "ttInfoManage_list@ttInfoManage": { | ||
| 596 | - templateUrl: 'pages/scheduleApp/module/core/ttInfoManage/list.html' | ||
| 597 | - } | ||
| 598 | - }, | ||
| 599 | - | ||
| 600 | - resolve: { | ||
| 601 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 602 | - return $ocLazyLoad.load({ | ||
| 603 | - name: 'ttInfoManage_module', | ||
| 604 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 605 | - files: [ | ||
| 606 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 607 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 608 | - "pages/scheduleApp/module/core/ttInfoManage/main.js" | ||
| 609 | - ] | ||
| 610 | - }); | ||
| 611 | - }] | ||
| 612 | - } | ||
| 613 | - }) | ||
| 614 | - .state("ttInfoManage_form", { | ||
| 615 | - url: '/ttInfoManage_form', | ||
| 616 | - views: { | ||
| 617 | - "": {templateUrl: 'pages/scheduleApp/module/core/ttInfoManage/form.html'} | ||
| 618 | - }, | ||
| 619 | - resolve: { | ||
| 620 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 621 | - return $ocLazyLoad.load({ | ||
| 622 | - name: 'ttInfoManage_form_module', | ||
| 623 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 624 | - files: [ | ||
| 625 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 626 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 627 | - "pages/scheduleApp/module/core/ttInfoManage/main.js" | ||
| 628 | - ] | ||
| 629 | - }); | ||
| 630 | - }] | ||
| 631 | - } | ||
| 632 | - }) | ||
| 633 | - .state("ttInfoManage_edit", { | ||
| 634 | - url: '/ttInfoManage_edit/:id', | ||
| 635 | - views: { | ||
| 636 | - "": {templateUrl: 'pages/scheduleApp/module/core/ttInfoManage/edit.html'} | ||
| 637 | - }, | ||
| 638 | - resolve: { | ||
| 639 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 640 | - return $ocLazyLoad.load({ | ||
| 641 | - name: 'ttInfoManage_edit_module', | ||
| 642 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 643 | - files: [ | ||
| 644 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 645 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 646 | - "pages/scheduleApp/module/core/ttInfoManage/main.js" | ||
| 647 | - ] | ||
| 648 | - }); | ||
| 649 | - }] | ||
| 650 | - } | ||
| 651 | - }) | ||
| 652 | - .state("ttInfoManage_detail", { | ||
| 653 | - url: '/ttInfoManage_detail/:id', | ||
| 654 | - views: { | ||
| 655 | - "": {templateUrl: 'pages/scheduleApp/module/core/ttInfoManage/detail.html'} | ||
| 656 | - }, | ||
| 657 | - resolve: { | ||
| 658 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 659 | - return $ocLazyLoad.load({ | ||
| 660 | - name: 'ttInfoManage_detail_module', | ||
| 661 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 662 | - files: [ | ||
| 663 | - "pages/scheduleApp/module/core/ttInfoManage/main.js" | ||
| 664 | - ] | ||
| 665 | - }); | ||
| 666 | - }] | ||
| 667 | - } | ||
| 668 | - }) | ||
| 669 | - .state("ttInfoDetailManage_form", { | ||
| 670 | - url: '/ttInfoDetailManage_form/:xlid/:ttid/:xlname/:ttname', | ||
| 671 | - views: { | ||
| 672 | - "": {templateUrl: 'pages/scheduleApp/module/core/ttInfoDetailManage/form.html'} | ||
| 673 | - }, | ||
| 674 | - resolve: { | ||
| 675 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 676 | - return $ocLazyLoad.load({ | ||
| 677 | - name: 'ttInfoDetailManage_form_module', | ||
| 678 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 679 | - files: [ | ||
| 680 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 681 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 682 | - "assets/bower_components/angular-file-upload/dist/angular-file-upload.min.js", | ||
| 683 | - "pages/scheduleApp/module/core/ttInfoDetailManage/main.js" | ||
| 684 | - ] | ||
| 685 | - }); | ||
| 686 | - }] | ||
| 687 | - } | ||
| 688 | - }) | ||
| 689 | - .state("ttInfoDetailManage_edit", { | ||
| 690 | - url: '/ttInfoDetailManage_edit/:xlid/:ttid/:xlname/:ttname', | ||
| 691 | - views: { | ||
| 692 | - "": {templateUrl: 'pages/scheduleApp/module/core/ttInfoDetailManage/edit.html'} | ||
| 693 | - }, | ||
| 694 | - resolve: { | ||
| 695 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 696 | - return $ocLazyLoad.load({ | ||
| 697 | - name: 'ttInfoDetailManage_edit_module', | ||
| 698 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 699 | - files: [ | ||
| 700 | - "pages/scheduleApp/module/core/ttInfoDetailManage/timeTableDetailManage_old.js" | ||
| 701 | - ] | ||
| 702 | - }); | ||
| 703 | - }] | ||
| 704 | - } | ||
| 705 | - }) | ||
| 706 | - .state("ttInfoDetailManage_detail_edit", { | ||
| 707 | - url: '/ttInfoDetailManage_detail_edit/:id/:xlid/:ttid/:xlname/:ttname', | ||
| 708 | - views: { | ||
| 709 | - "": {templateUrl: 'pages/scheduleApp/module/core/ttInfoDetailManage/edit-detail.html'} | ||
| 710 | - }, | ||
| 711 | - resolve: { | ||
| 712 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 713 | - return $ocLazyLoad.load({ | ||
| 714 | - name: 'ttInfoDetailManage_detail_edit_module', | ||
| 715 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 716 | - files: [ | ||
| 717 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 718 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 719 | - "pages/scheduleApp/module/core/ttInfoDetailManage/timeTableDetailManage_old.js" | ||
| 720 | - ] | ||
| 721 | - }); | ||
| 722 | - }] | ||
| 723 | - } | ||
| 724 | - }) | ||
| 725 | - | ||
| 726 | - | ||
| 727 | - | ||
| 728 | - | ||
| 729 | - | ||
| 730 | - | ||
| 731 | - | ||
| 732 | - | ||
| 733 | - | ||
| 734 | - | ||
| 735 | - | ||
| 736 | - | ||
| 737 | - | ||
| 738 | - | ||
| 739 | - | ||
| 740 | - | ||
| 741 | - | ||
| 742 | - | ||
| 743 | - | ||
| 744 | - | ||
| 745 | - | ||
| 746 | - // 排班规则管理模块 | ||
| 747 | - .state("scheduleRuleManage", { | ||
| 748 | - url: '/scheduleRuleManage', | ||
| 749 | - views: { | ||
| 750 | - "": { | ||
| 751 | - templateUrl: 'pages/scheduleApp/module/core/scheduleRuleManage/index.html' | ||
| 752 | - }, | ||
| 753 | - "scheduleRuleManage_list@scheduleRuleManage": { | ||
| 754 | - templateUrl: 'pages/scheduleApp/module/core/scheduleRuleManage/list.html' | ||
| 755 | - } | ||
| 756 | - }, | ||
| 757 | - | ||
| 758 | - resolve: { | ||
| 759 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 760 | - return $ocLazyLoad.load({ | ||
| 761 | - name: 'scheduleRuleManage_module', | ||
| 762 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 763 | - files: [ | ||
| 764 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 765 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 766 | - "pages/scheduleApp/module/core/scheduleRuleManage/scheduleRuleManage.js" | ||
| 767 | - ] | ||
| 768 | - }); | ||
| 769 | - }] | ||
| 770 | - } | ||
| 771 | - }) | ||
| 772 | - .state("scheduleRuleManage_form", { | ||
| 773 | - url: '/scheduleRuleManage_form', | ||
| 774 | - views: { | ||
| 775 | - "": {templateUrl: 'pages/scheduleApp/module/core/scheduleRuleManage/form.html'} | ||
| 776 | - }, | ||
| 777 | - resolve: { | ||
| 778 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 779 | - return $ocLazyLoad.load({ | ||
| 780 | - name: 'scheduleRuleManage_form_module', | ||
| 781 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 782 | - files: [ | ||
| 783 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 784 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 785 | - "pages/scheduleApp/module/core/scheduleRuleManage/scheduleRuleManage.js" | ||
| 786 | - ] | ||
| 787 | - }); | ||
| 788 | - }] | ||
| 789 | - } | ||
| 790 | - }) | ||
| 791 | - .state("scheduleRuleManage_edit", { | ||
| 792 | - url: '/scheduleRuleManage_edit/:id', | ||
| 793 | - views: { | ||
| 794 | - "": {templateUrl: 'pages/scheduleApp/module/core/scheduleRuleManage/edit.html'} | ||
| 795 | - }, | ||
| 796 | - resolve: { | ||
| 797 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 798 | - return $ocLazyLoad.load({ | ||
| 799 | - name: 'scheduleRuleManage_edit_module', | ||
| 800 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 801 | - files: [ | ||
| 802 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 803 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 804 | - "pages/scheduleApp/module/core/scheduleRuleManage/scheduleRuleManage.js" | ||
| 805 | - ] | ||
| 806 | - }); | ||
| 807 | - }] | ||
| 808 | - } | ||
| 809 | - }) | ||
| 810 | - .state("scheduleRuleManage_detail", { | ||
| 811 | - url: '/scheduleRuleManage_detail/:id', | ||
| 812 | - views: { | ||
| 813 | - "": {templateUrl: 'pages/scheduleApp/module/core/scheduleRuleManage/detail.html'} | ||
| 814 | - }, | ||
| 815 | - resolve: { | ||
| 816 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 817 | - return $ocLazyLoad.load({ | ||
| 818 | - name: 'scheduleRuleManage_detail_module', | ||
| 819 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 820 | - files: [ | ||
| 821 | - "pages/scheduleApp/module/core/scheduleRuleManage/scheduleRuleManage.js" | ||
| 822 | - ] | ||
| 823 | - }); | ||
| 824 | - }] | ||
| 825 | - } | ||
| 826 | - }) | ||
| 827 | - | ||
| 828 | - // 套跑管理模块 | ||
| 829 | - .state("rerunManage", { | ||
| 830 | - url: '/rerunManage', | ||
| 831 | - views: { | ||
| 832 | - "": { | ||
| 833 | - templateUrl: 'pages/scheduleApp/module/core/rerunManage/index.html' | ||
| 834 | - }, | ||
| 835 | - "rerunManage_list@rerunManage": { | ||
| 836 | - templateUrl: 'pages/scheduleApp/module/core/rerunManage/list.html' | ||
| 837 | - } | ||
| 838 | - }, | ||
| 839 | - | ||
| 840 | - resolve: { | ||
| 841 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 842 | - return $ocLazyLoad.load({ | ||
| 843 | - name: 'rerunManage_module', | ||
| 844 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 845 | - files: [ | ||
| 846 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 847 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 848 | - "pages/scheduleApp/module/core/rerunManage/main.js" | ||
| 849 | - ] | ||
| 850 | - }); | ||
| 851 | - }] | ||
| 852 | - } | ||
| 853 | - }) | ||
| 854 | - .state("rerunManage_form", { | ||
| 855 | - url: '/rerunManage_form', | ||
| 856 | - views: { | ||
| 857 | - "": {templateUrl: 'pages/scheduleApp/module/core/rerunManage/form.html'} | ||
| 858 | - }, | ||
| 859 | - resolve: { | ||
| 860 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 861 | - return $ocLazyLoad.load({ | ||
| 862 | - name: 'rerunManage_form_module', | ||
| 863 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 864 | - files: [ | ||
| 865 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 866 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 867 | - "pages/scheduleApp/module/core/rerunManage/main.js" | ||
| 868 | - ] | ||
| 869 | - }); | ||
| 870 | - }] | ||
| 871 | - } | ||
| 872 | - }) | ||
| 873 | - .state("rerunManage_edit", { | ||
| 874 | - url: '/rerunManage_edit/:id', | ||
| 875 | - views: { | ||
| 876 | - "": {templateUrl: 'pages/scheduleApp/module/core/rerunManage/edit.html'} | ||
| 877 | - }, | ||
| 878 | - resolve: { | ||
| 879 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 880 | - return $ocLazyLoad.load({ | ||
| 881 | - name: 'rerunManage_edit_module', | ||
| 882 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 883 | - files: [ | ||
| 884 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 885 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 886 | - "pages/scheduleApp/module/core/rerunManage/main.js" | ||
| 887 | - ] | ||
| 888 | - }); | ||
| 889 | - }] | ||
| 890 | - } | ||
| 891 | - }) | ||
| 892 | - .state("rerunManage_detail", { | ||
| 893 | - url: '/rerunManage_detail/:id', | ||
| 894 | - views: { | ||
| 895 | - "": {templateUrl: 'pages/scheduleApp/module/core/rerunManage/detail.html'} | ||
| 896 | - }, | ||
| 897 | - resolve: { | ||
| 898 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 899 | - return $ocLazyLoad.load({ | ||
| 900 | - name: 'rerunManage_detail_module', | ||
| 901 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 902 | - files: [ | ||
| 903 | - "pages/scheduleApp/module/core/rerunManage/main.js" | ||
| 904 | - ] | ||
| 905 | - }); | ||
| 906 | - }] | ||
| 907 | - } | ||
| 908 | - }) | ||
| 909 | - | ||
| 910 | - // 排班计划管理模块 | ||
| 911 | - .state("schedulePlanManage", { | ||
| 912 | - url: '/schedulePlanManage', | ||
| 913 | - views: { | ||
| 914 | - "": { | ||
| 915 | - templateUrl: 'pages/scheduleApp/module/core/schedulePlanManage/index.html' | ||
| 916 | - }, | ||
| 917 | - "schedulePlanManage_list@schedulePlanManage": { | ||
| 918 | - templateUrl: 'pages/scheduleApp/module/core/schedulePlanManage/list.html' | ||
| 919 | - } | ||
| 920 | - }, | ||
| 921 | - | ||
| 922 | - resolve: { | ||
| 923 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 924 | - return $ocLazyLoad.load({ | ||
| 925 | - name: 'schedulePlanManage_module', | ||
| 926 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 927 | - files: [ | ||
| 928 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 929 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 930 | - "pages/scheduleApp/module/core/schedulePlanManage/schedulePlanManage.js" | ||
| 931 | - ] | ||
| 932 | - }); | ||
| 933 | - }] | ||
| 934 | - } | ||
| 935 | - }) | ||
| 936 | - .state("schedulePlanManage_form", { | ||
| 937 | - url: '/schedulePlanManage_form', | ||
| 938 | - views: { | ||
| 939 | - "": { | ||
| 940 | - templateUrl: 'pages/scheduleApp/module/core/schedulePlanManage/form.html' | ||
| 941 | - } | ||
| 942 | - }, | ||
| 943 | - | ||
| 944 | - resolve: { | ||
| 945 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 946 | - return $ocLazyLoad.load({ | ||
| 947 | - name: 'schedulePlanManage_form_module', | ||
| 948 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 949 | - files: [ | ||
| 950 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 951 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 952 | - "pages/scheduleApp/module/core/schedulePlanManage/schedulePlanManage.js" | ||
| 953 | - ] | ||
| 954 | - }); | ||
| 955 | - }] | ||
| 956 | - } | ||
| 957 | - }) | ||
| 958 | - | ||
| 959 | - // 排班计划明细管理模块 | ||
| 960 | - .state("schedulePlanInfoManage", { | ||
| 961 | - url: '/schedulePlanInfoManage/:spid/:xlname/:ttname/:stime/:etime', | ||
| 962 | - views: { | ||
| 963 | - "": { | ||
| 964 | - templateUrl: 'pages/scheduleApp/module/core/schedulePlanManage/index_info.html' | ||
| 965 | - }, | ||
| 966 | - "schedulePlanInfoManage_list@schedulePlanInfoManage": { | ||
| 967 | - templateUrl: 'pages/scheduleApp/module/core/schedulePlanManage/list_info.html' | ||
| 968 | - } | ||
| 969 | - }, | ||
| 970 | - | ||
| 971 | - resolve: { | ||
| 972 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 973 | - return $ocLazyLoad.load({ | ||
| 974 | - name: 'schedulePlanInfoManage_module', | ||
| 975 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 976 | - files: [ | ||
| 977 | - "pages/scheduleApp/module/core/schedulePlanManage/schedulePlanInfoManage.js" | ||
| 978 | - ] | ||
| 979 | - }); | ||
| 980 | - }] | ||
| 981 | - } | ||
| 982 | - }) | ||
| 983 | - | ||
| 984 | - // 排班调度值勤日报模块 | ||
| 985 | - .state("schedulePlanReportManage", { | ||
| 986 | - url: '/schedulePlanReportManage', | ||
| 987 | - views: { | ||
| 988 | - "": { | ||
| 989 | - templateUrl: 'pages/scheduleApp/module/core/schedulePlanManage/index_report.html' | ||
| 990 | - }, | ||
| 991 | - "schedulePlanReportManage_list@schedulePlanReportManage": { | ||
| 992 | - templateUrl: 'pages/scheduleApp/module/core/schedulePlanManage/list_report.html' | ||
| 993 | - } | ||
| 994 | - }, | ||
| 995 | - | ||
| 996 | - resolve: { | ||
| 997 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 998 | - return $ocLazyLoad.load({ | ||
| 999 | - name: 'schedulePlanManage_module', | ||
| 1000 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 1001 | - files: [ | ||
| 1002 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 1003 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 1004 | - "pages/scheduleApp/module/core/schedulePlanManage/schedulePlanReportManage.js" | ||
| 1005 | - ] | ||
| 1006 | - }); | ||
| 1007 | - }] | ||
| 1008 | - } | ||
| 1009 | - }) | ||
| 1010 | - | ||
| 1011 | - .state("schedulePlanReportManage_edit", { | ||
| 1012 | - url: '/schedulePlanReportManage_edit', | ||
| 1013 | - params: {type: 0, groupInfo: null}, | ||
| 1014 | - views: { | ||
| 1015 | - "": { | ||
| 1016 | - templateUrl: 'pages/scheduleApp/module/core/schedulePlanManage/edit_report.html' | ||
| 1017 | - } | ||
| 1018 | - }, | ||
| 1019 | - | ||
| 1020 | - resolve: { | ||
| 1021 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 1022 | - return $ocLazyLoad.load({ | ||
| 1023 | - name: 'schedulePlanReportManage_edit_module', | ||
| 1024 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 1025 | - files: [ | ||
| 1026 | - "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 1027 | - "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 1028 | - "pages/scheduleApp/module/core/schedulePlanManage/schedulePlanReportManage.js" | ||
| 1029 | - ] | ||
| 1030 | - }); | ||
| 1031 | - }] | ||
| 1032 | - } | ||
| 1033 | - }) | ||
| 1034 | - | ||
| 1035 | - // 线路运营概览模块 | ||
| 1036 | - .state("busLineInfoStat", { | ||
| 1037 | - url: '/busLineInfoStat', | ||
| 1038 | - views: { | ||
| 1039 | - "": { | ||
| 1040 | - templateUrl: 'pages/scheduleApp/module/core/busLineInfoStat/index.html' | ||
| 1041 | - }, | ||
| 1042 | - "busLineInfoStat_list@busLineInfoStat": { | ||
| 1043 | - templateUrl: 'pages/scheduleApp/module/core/busLineInfoStat/list.html' | ||
| 1044 | - } | ||
| 1045 | - }, | ||
| 1046 | - | ||
| 1047 | - resolve: { | ||
| 1048 | - deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 1049 | - return $ocLazyLoad.load({ | ||
| 1050 | - name: 'busLineInfoStat_module', | ||
| 1051 | - insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 1052 | - files: [ | ||
| 1053 | - "pages/scheduleApp/module/core/busLineInfoStat/busLineInfoStat.js" | ||
| 1054 | - ] | ||
| 1055 | - }); | ||
| 1056 | - }] | ||
| 1057 | - } | ||
| 1058 | - }) | ||
| 1059 | - | ||
| 1060 | - | ||
| 1061 | - | ||
| 1062 | - | ||
| 1063 | - | ||
| 1064 | - // TODO: | ||
| 1065 | - | ||
| 1066 | - ; | ||
| 1067 | -}]); | ||
| 1068 | \ No newline at end of file | 1 | \ No newline at end of file |
| 2 | +//所有模块ui route 配置// ui route 配置 | ||
| 3 | + | ||
| 4 | +/** 车辆基础信息模块配置route */ | ||
| 5 | +ScheduleApp.config([ | ||
| 6 | + '$stateProvider', | ||
| 7 | + '$urlRouterProvider', | ||
| 8 | + function($stateProvider, $urlRouterProvider) { | ||
| 9 | + // 默认路由 | ||
| 10 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 11 | + | ||
| 12 | + $stateProvider | ||
| 13 | + .state("busInfoManage", { // index页面 | ||
| 14 | + url: '/busInfoManage', | ||
| 15 | + views: { | ||
| 16 | + "": { | ||
| 17 | + templateUrl: 'pages/scheduleApp/module/basicInfo/busInfoManage/index.html' | ||
| 18 | + }, | ||
| 19 | + "busInfoManage_list@busInfoManage": { | ||
| 20 | + templateUrl: 'pages/scheduleApp/module/basicInfo/busInfoManage/list.html' | ||
| 21 | + } | ||
| 22 | + }, | ||
| 23 | + | ||
| 24 | + resolve: { | ||
| 25 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 26 | + return $ocLazyLoad.load({ | ||
| 27 | + name: 'busInfoManage_module', | ||
| 28 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 29 | + files: [ | ||
| 30 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 31 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 32 | + "assets/bower_components/angular-file-upload/dist/angular-file-upload.min.js", | ||
| 33 | + "pages/scheduleApp/module/basicInfo/busInfoManage/module.js" | ||
| 34 | + ] | ||
| 35 | + }); | ||
| 36 | + }] | ||
| 37 | + } | ||
| 38 | + }) | ||
| 39 | + .state("busInfoManage_form", { // 添加车辆form | ||
| 40 | + url: '/busInfoManage_form', | ||
| 41 | + views: { | ||
| 42 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/busInfoManage/form.html'} | ||
| 43 | + }, | ||
| 44 | + resolve: { | ||
| 45 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 46 | + return $ocLazyLoad.load({ | ||
| 47 | + name: 'busInfoManage_form_module', | ||
| 48 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 49 | + files: [ | ||
| 50 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 51 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 52 | + "pages/scheduleApp/module/basicInfo/busInfoManage/module.js" | ||
| 53 | + ] | ||
| 54 | + }); | ||
| 55 | + }] | ||
| 56 | + } | ||
| 57 | + }) | ||
| 58 | + .state("busInfoManage_edit", { // 修改车辆form | ||
| 59 | + url: '/busInfoManage_edit/:id', | ||
| 60 | + views: { | ||
| 61 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/busInfoManage/edit.html'} | ||
| 62 | + }, | ||
| 63 | + resolve: { | ||
| 64 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 65 | + return $ocLazyLoad.load({ | ||
| 66 | + name: 'busInfoManage_edit_module', | ||
| 67 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 68 | + files: [ | ||
| 69 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 70 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 71 | + "pages/scheduleApp/module/basicInfo/busInfoManage/module.js" | ||
| 72 | + ] | ||
| 73 | + }); | ||
| 74 | + }] | ||
| 75 | + } | ||
| 76 | + }) | ||
| 77 | + .state("busInfoManage_detail", { // 车辆详细信息 | ||
| 78 | + url: '/busInfoManage_detail/:id', | ||
| 79 | + views: { | ||
| 80 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/busInfoManage/detail.html'} | ||
| 81 | + }, | ||
| 82 | + resolve: { | ||
| 83 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 84 | + return $ocLazyLoad.load({ | ||
| 85 | + name: 'busInfoManage_detail_module', | ||
| 86 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 87 | + files: [ | ||
| 88 | + "pages/scheduleApp/module/basicInfo/busInfoManage/module.js" | ||
| 89 | + ] | ||
| 90 | + }); | ||
| 91 | + }] | ||
| 92 | + } | ||
| 93 | + }) | ||
| 94 | + } | ||
| 95 | +]); | ||
| 96 | +// ui route 配置 | ||
| 97 | + | ||
| 98 | +/** 车辆设备信息模块配置route */ | ||
| 99 | +ScheduleApp.config([ | ||
| 100 | + '$stateProvider', | ||
| 101 | + '$urlRouterProvider', | ||
| 102 | + function($stateProvider, $urlRouterProvider) { | ||
| 103 | + // 默认路由 | ||
| 104 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 105 | + | ||
| 106 | + $stateProvider | ||
| 107 | + .state("deviceInfoManage", { // index页面 | ||
| 108 | + url: '/deviceInfoManage', | ||
| 109 | + views: { | ||
| 110 | + "": { | ||
| 111 | + templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/index.html' | ||
| 112 | + }, | ||
| 113 | + "deviceInfoManage_list@deviceInfoManage": { | ||
| 114 | + templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/list.html' | ||
| 115 | + } | ||
| 116 | + }, | ||
| 117 | + | ||
| 118 | + resolve: { | ||
| 119 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 120 | + return $ocLazyLoad.load({ | ||
| 121 | + name: 'deviceInfoManage_module', | ||
| 122 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 123 | + files: [ | ||
| 124 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 125 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 126 | + "pages/scheduleApp/module/basicInfo/deviceInfoManage/module.js" | ||
| 127 | + ] | ||
| 128 | + }); | ||
| 129 | + }] | ||
| 130 | + } | ||
| 131 | + }) | ||
| 132 | + .state("deviceInfoManage_form", { // 添加设备信息form | ||
| 133 | + url: '/deviceInfoManage_form', | ||
| 134 | + views: { | ||
| 135 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/form.html'} | ||
| 136 | + }, | ||
| 137 | + resolve: { | ||
| 138 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 139 | + return $ocLazyLoad.load({ | ||
| 140 | + name: 'deviceInfoManage_form_module', | ||
| 141 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 142 | + files: [ | ||
| 143 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 144 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 145 | + "pages/scheduleApp/module/basicInfo/deviceInfoManage/module.js" | ||
| 146 | + ] | ||
| 147 | + }); | ||
| 148 | + }] | ||
| 149 | + } | ||
| 150 | + }) | ||
| 151 | + .state("deviceInfoManage_edit", { // 修改设备信息form | ||
| 152 | + url: '/deviceInfoManage_edit/:id', | ||
| 153 | + views: { | ||
| 154 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/edit.html'} | ||
| 155 | + }, | ||
| 156 | + resolve: { | ||
| 157 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 158 | + return $ocLazyLoad.load({ | ||
| 159 | + name: 'deviceInfoManage_edit_module', | ||
| 160 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 161 | + files: [ | ||
| 162 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 163 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 164 | + "pages/scheduleApp/module/basicInfo/deviceInfoManage/module.js" | ||
| 165 | + ] | ||
| 166 | + }); | ||
| 167 | + }] | ||
| 168 | + } | ||
| 169 | + }) | ||
| 170 | + .state("deviceInfoManage_detail", { // 详细信息页面 | ||
| 171 | + url: '/deviceInfoManage_detail/:id', | ||
| 172 | + views: { | ||
| 173 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/detail.html'} | ||
| 174 | + }, | ||
| 175 | + resolve: { | ||
| 176 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 177 | + return $ocLazyLoad.load({ | ||
| 178 | + name: 'deviceInfoManage_detail_module', | ||
| 179 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 180 | + files: [ | ||
| 181 | + "pages/scheduleApp/module/basicInfo/deviceInfoManage/module.js" | ||
| 182 | + ] | ||
| 183 | + }); | ||
| 184 | + }] | ||
| 185 | + } | ||
| 186 | + }) | ||
| 187 | + | ||
| 188 | + } | ||
| 189 | +]); | ||
| 190 | +// ui route 配置 | ||
| 191 | + | ||
| 192 | +/** 人员基础信息模块配置route */ | ||
| 193 | +ScheduleApp.config([ | ||
| 194 | + '$stateProvider', | ||
| 195 | + '$urlRouterProvider', | ||
| 196 | + function($stateProvider, $urlRouterProvider) { | ||
| 197 | + // 默认路由 | ||
| 198 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 199 | + | ||
| 200 | + $stateProvider | ||
| 201 | + .state("employeeInfoManage", { // index页面 | ||
| 202 | + url: '/employeeInfoManage', | ||
| 203 | + views: { | ||
| 204 | + "": { | ||
| 205 | + templateUrl: 'pages/scheduleApp/module/basicInfo/employeeInfoManage/index.html' | ||
| 206 | + }, | ||
| 207 | + "employeeInfoManage_list@employeeInfoManage": { | ||
| 208 | + templateUrl: 'pages/scheduleApp/module/basicInfo/employeeInfoManage/list.html' | ||
| 209 | + } | ||
| 210 | + }, | ||
| 211 | + | ||
| 212 | + resolve: { | ||
| 213 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 214 | + return $ocLazyLoad.load({ | ||
| 215 | + name: 'employeeInfoManage_module', | ||
| 216 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 217 | + files: [ | ||
| 218 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 219 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 220 | + "assets/bower_components/angular-file-upload/dist/angular-file-upload.min.js", | ||
| 221 | + "pages/scheduleApp/module/basicInfo/employeeInfoManage/module.js" | ||
| 222 | + ] | ||
| 223 | + }); | ||
| 224 | + }] | ||
| 225 | + } | ||
| 226 | + }) | ||
| 227 | + .state("employeeInfoManage_form", { // 添加人员信息form | ||
| 228 | + url: '/employeeInfoManage_form', | ||
| 229 | + views: { | ||
| 230 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/employeeInfoManage/form.html'} | ||
| 231 | + }, | ||
| 232 | + resolve: { | ||
| 233 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 234 | + return $ocLazyLoad.load({ | ||
| 235 | + name: 'employeeInfoManage_form_module', | ||
| 236 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 237 | + files: [ | ||
| 238 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 239 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 240 | + "pages/scheduleApp/module/basicInfo/employeeInfoManage/module.js" | ||
| 241 | + ] | ||
| 242 | + }); | ||
| 243 | + }] | ||
| 244 | + } | ||
| 245 | + }) | ||
| 246 | + .state("employeeInfoManage_edit", { // 修改人员信息form | ||
| 247 | + url: '/employeeInfoManage_edit/:id', | ||
| 248 | + views: { | ||
| 249 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/employeeInfoManage/edit.html'} | ||
| 250 | + }, | ||
| 251 | + resolve: { | ||
| 252 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 253 | + return $ocLazyLoad.load({ | ||
| 254 | + name: 'employeeInfoManage_edit_module', | ||
| 255 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 256 | + files: [ | ||
| 257 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 258 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 259 | + "pages/scheduleApp/module/basicInfo/employeeInfoManage/module.js" | ||
| 260 | + ] | ||
| 261 | + }); | ||
| 262 | + }] | ||
| 263 | + } | ||
| 264 | + }) | ||
| 265 | + .state("employeeInfoManage_detail", { // 详细信息页面 | ||
| 266 | + url: '/employeeInfoManage_detail/:id', | ||
| 267 | + views: { | ||
| 268 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/employeeInfoManage/detail.html'} | ||
| 269 | + }, | ||
| 270 | + resolve: { | ||
| 271 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 272 | + return $ocLazyLoad.load({ | ||
| 273 | + name: 'employeeInfoManage_detail_module', | ||
| 274 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 275 | + files: [ | ||
| 276 | + "pages/scheduleApp/module/basicInfo/employeeInfoManage/module.js" | ||
| 277 | + ] | ||
| 278 | + }); | ||
| 279 | + }] | ||
| 280 | + } | ||
| 281 | + }) | ||
| 282 | + | ||
| 283 | +}]); | ||
| 284 | +// ui route 配置 | ||
| 285 | + | ||
| 286 | +/** 车辆配置模块页面route */ | ||
| 287 | +ScheduleApp.config([ | ||
| 288 | + '$stateProvider', | ||
| 289 | + '$urlRouterProvider', | ||
| 290 | + function($stateProvider, $urlRouterProvider) { | ||
| 291 | + // 默认路由 | ||
| 292 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 293 | + | ||
| 294 | + $stateProvider | ||
| 295 | + .state("busConfig", { // index主页面 | ||
| 296 | + url: '/busConfig', | ||
| 297 | + views: { | ||
| 298 | + "": { | ||
| 299 | + templateUrl: 'pages/scheduleApp/module/core/busConfig/index.html' | ||
| 300 | + }, | ||
| 301 | + "busConfig_list@busConfig": { | ||
| 302 | + templateUrl: 'pages/scheduleApp/module/core/busConfig/list.html' | ||
| 303 | + } | ||
| 304 | + }, | ||
| 305 | + | ||
| 306 | + resolve: { | ||
| 307 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 308 | + return $ocLazyLoad.load({ | ||
| 309 | + name: 'busConfig_module', | ||
| 310 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 311 | + files: [ | ||
| 312 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 313 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 314 | + "assets/bower_components/angular-file-upload/dist/angular-file-upload.min.js", | ||
| 315 | + "pages/scheduleApp/module/core/busConfig/module.js" | ||
| 316 | + ] | ||
| 317 | + }); | ||
| 318 | + }] | ||
| 319 | + } | ||
| 320 | + }) | ||
| 321 | + .state("busConfig_form", { // 添加页面 | ||
| 322 | + url: '/busConfig_form', | ||
| 323 | + views: { | ||
| 324 | + "": {templateUrl: 'pages/scheduleApp/module/core/busConfig/form.html'} | ||
| 325 | + }, | ||
| 326 | + resolve: { | ||
| 327 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 328 | + return $ocLazyLoad.load({ | ||
| 329 | + name: 'busConfig_form_module', | ||
| 330 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 331 | + files: [ | ||
| 332 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 333 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 334 | + "pages/scheduleApp/module/core/busConfig/module.js" | ||
| 335 | + ] | ||
| 336 | + }); | ||
| 337 | + }] | ||
| 338 | + } | ||
| 339 | + }) | ||
| 340 | + .state("busConfig_edit", { // 修改页面 | ||
| 341 | + url: '/busConfig_edit/:id', | ||
| 342 | + views: { | ||
| 343 | + "": {templateUrl: 'pages/scheduleApp/module/core/busConfig/edit.html'} | ||
| 344 | + }, | ||
| 345 | + resolve: { | ||
| 346 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 347 | + return $ocLazyLoad.load({ | ||
| 348 | + name: 'busConfig_edit_module', | ||
| 349 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 350 | + files: [ | ||
| 351 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 352 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 353 | + "pages/scheduleApp/module/core/busConfig/module.js" | ||
| 354 | + ] | ||
| 355 | + }); | ||
| 356 | + }] | ||
| 357 | + } | ||
| 358 | + }) | ||
| 359 | + .state("busConfig_detail", { // 详细信息页面 | ||
| 360 | + url: '/busConfig_detail/:id', | ||
| 361 | + views: { | ||
| 362 | + "": {templateUrl: 'pages/scheduleApp/module/core/busConfig/detail.html'} | ||
| 363 | + }, | ||
| 364 | + resolve: { | ||
| 365 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 366 | + return $ocLazyLoad.load({ | ||
| 367 | + name: 'busConfig_detail_module', | ||
| 368 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 369 | + files: [ | ||
| 370 | + "pages/scheduleApp/module/core/busConfig/module.js" | ||
| 371 | + ] | ||
| 372 | + }); | ||
| 373 | + }] | ||
| 374 | + } | ||
| 375 | + }); | ||
| 376 | + } | ||
| 377 | +]); | ||
| 378 | + | ||
| 379 | + | ||
| 380 | + | ||
| 381 | +// ui route 配置 | ||
| 382 | + | ||
| 383 | +/** 线路运营概览配置route */ | ||
| 384 | +ScheduleApp.config([ | ||
| 385 | + '$stateProvider', | ||
| 386 | + '$urlRouterProvider', | ||
| 387 | + function($stateProvider, $urlRouterProvider) { | ||
| 388 | + // 默认路由 | ||
| 389 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 390 | + | ||
| 391 | + $stateProvider | ||
| 392 | + .state("busLineInfoStat", { // index页面 | ||
| 393 | + url: '/busLineInfoStat', | ||
| 394 | + views: { | ||
| 395 | + "": { | ||
| 396 | + templateUrl: 'pages/scheduleApp/module/core/busLineInfoStat/index.html' | ||
| 397 | + }, | ||
| 398 | + "busLineInfoStat_list@busLineInfoStat": { | ||
| 399 | + templateUrl: 'pages/scheduleApp/module/core/busLineInfoStat/list.html' | ||
| 400 | + } | ||
| 401 | + }, | ||
| 402 | + | ||
| 403 | + resolve: { | ||
| 404 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 405 | + return $ocLazyLoad.load({ | ||
| 406 | + name: 'busLineInfoStat_module', | ||
| 407 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 408 | + files: [ | ||
| 409 | + "pages/scheduleApp/module/core/busLineInfoStat/module.js" | ||
| 410 | + ] | ||
| 411 | + }); | ||
| 412 | + }] | ||
| 413 | + } | ||
| 414 | + }); | ||
| 415 | + | ||
| 416 | + } | ||
| 417 | +]); | ||
| 418 | +// ui route 配置 | ||
| 419 | + | ||
| 420 | +/** 人员配置模块页面route */ | ||
| 421 | +ScheduleApp.config([ | ||
| 422 | + '$stateProvider', | ||
| 423 | + '$urlRouterProvider', | ||
| 424 | + function($stateProvider, $urlRouterProvider) { | ||
| 425 | + // 默认路由 | ||
| 426 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 427 | + | ||
| 428 | + $stateProvider | ||
| 429 | + .state("employeeConfig", { // index页面 | ||
| 430 | + url: '/employeeConfig', | ||
| 431 | + views: { | ||
| 432 | + "": { | ||
| 433 | + templateUrl: 'pages/scheduleApp/module/core/employeeConfig/index.html' | ||
| 434 | + }, | ||
| 435 | + "employeeConfig_list@employeeConfig": { | ||
| 436 | + templateUrl: 'pages/scheduleApp/module/core/employeeConfig/list.html' | ||
| 437 | + } | ||
| 438 | + }, | ||
| 439 | + | ||
| 440 | + resolve: { | ||
| 441 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 442 | + return $ocLazyLoad.load({ | ||
| 443 | + name: 'employeeConfig_module', | ||
| 444 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 445 | + files: [ | ||
| 446 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 447 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 448 | + "assets/bower_components/angular-file-upload/dist/angular-file-upload.min.js", | ||
| 449 | + "pages/scheduleApp/module/core/employeeConfig/module.js" | ||
| 450 | + ] | ||
| 451 | + }); | ||
| 452 | + }] | ||
| 453 | + } | ||
| 454 | + }) | ||
| 455 | + .state("employeeConfig_form", { // 添加人员配置form | ||
| 456 | + url: '/employeeConfig_form', | ||
| 457 | + views: { | ||
| 458 | + "": {templateUrl: 'pages/scheduleApp/module/core/employeeConfig/form.html'} | ||
| 459 | + }, | ||
| 460 | + resolve: { | ||
| 461 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 462 | + return $ocLazyLoad.load({ | ||
| 463 | + name: 'employeeConfig_form_module', | ||
| 464 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 465 | + files: [ | ||
| 466 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 467 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 468 | + "pages/scheduleApp/module/core/employeeConfig/module.js" | ||
| 469 | + ] | ||
| 470 | + }); | ||
| 471 | + }] | ||
| 472 | + } | ||
| 473 | + }) | ||
| 474 | + .state("employeeConfig_edit", { // 修改人员配置form | ||
| 475 | + url: '/employeeConfig_edit/:id', | ||
| 476 | + views: { | ||
| 477 | + "": {templateUrl: 'pages/scheduleApp/module/core/employeeConfig/edit.html'} | ||
| 478 | + }, | ||
| 479 | + resolve: { | ||
| 480 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 481 | + return $ocLazyLoad.load({ | ||
| 482 | + name: 'employeeConfig_edit_module', | ||
| 483 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 484 | + files: [ | ||
| 485 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 486 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 487 | + "pages/scheduleApp/module/core/employeeConfig/module.js" | ||
| 488 | + ] | ||
| 489 | + }); | ||
| 490 | + }] | ||
| 491 | + } | ||
| 492 | + }) | ||
| 493 | + .state("employeeConfig_detail", { // 详细信息页面 | ||
| 494 | + url: '/employeeConfig_detail/:id', | ||
| 495 | + views: { | ||
| 496 | + "": {templateUrl: 'pages/scheduleApp/module/core/employeeConfig/detail.html'} | ||
| 497 | + }, | ||
| 498 | + resolve: { | ||
| 499 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 500 | + return $ocLazyLoad.load({ | ||
| 501 | + name: 'employeeConfig_detail_module', | ||
| 502 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 503 | + files: [ | ||
| 504 | + "pages/scheduleApp/module/core/employeeConfig/module.js" | ||
| 505 | + ] | ||
| 506 | + }); | ||
| 507 | + }] | ||
| 508 | + } | ||
| 509 | + }) | ||
| 510 | + | ||
| 511 | + } | ||
| 512 | +]); | ||
| 513 | +// ui route 配置 | ||
| 514 | + | ||
| 515 | +/** 路牌管理配置所有模块页面route */ | ||
| 516 | +ScheduleApp.config([ | ||
| 517 | + '$stateProvider', | ||
| 518 | + '$urlRouterProvider', | ||
| 519 | + function($stateProvider, $urlRouterProvider) { | ||
| 520 | + // 默认路由 | ||
| 521 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 522 | + | ||
| 523 | + $stateProvider | ||
| 524 | + .state("guideboardManage", { // index页面 | ||
| 525 | + url: '/guideboardManage', | ||
| 526 | + views: { | ||
| 527 | + "": { | ||
| 528 | + templateUrl: 'pages/scheduleApp/module/core/guideboardManage/index.html' | ||
| 529 | + }, | ||
| 530 | + "guideboardManage_list@guideboardManage": { | ||
| 531 | + templateUrl: 'pages/scheduleApp/module/core/guideboardManage/list.html' | ||
| 532 | + } | ||
| 533 | + }, | ||
| 534 | + | ||
| 535 | + resolve: { | ||
| 536 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 537 | + return $ocLazyLoad.load({ | ||
| 538 | + name: 'guideboardManage_module', | ||
| 539 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 540 | + files: [ | ||
| 541 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 542 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 543 | + "assets/bower_components/angular-file-upload/dist/angular-file-upload.min.js", | ||
| 544 | + "pages/scheduleApp/module/core/guideboardManage/module.js" | ||
| 545 | + ] | ||
| 546 | + }); | ||
| 547 | + }] | ||
| 548 | + } | ||
| 549 | + }) | ||
| 550 | + .state("guideboardManage_detail", { // 详细信息页面 | ||
| 551 | + url: '/guideboardManage_detail/:id', | ||
| 552 | + views: { | ||
| 553 | + "": {templateUrl: 'pages/scheduleApp/module/core/guideboardManage/detail.html'} | ||
| 554 | + }, | ||
| 555 | + resolve: { | ||
| 556 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 557 | + return $ocLazyLoad.load({ | ||
| 558 | + name: 'guideboardManage_detail_module', | ||
| 559 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 560 | + files: [ | ||
| 561 | + "pages/scheduleApp/module/core/guideboardManage/module.js" | ||
| 562 | + ] | ||
| 563 | + }); | ||
| 564 | + }] | ||
| 565 | + } | ||
| 566 | + }) | ||
| 567 | + | ||
| 568 | +}]); | ||
| 569 | +// ui route 配置 | ||
| 570 | + | ||
| 571 | +/** 套跑管理模块配置页面route */ | ||
| 572 | +ScheduleApp.config([ | ||
| 573 | + '$stateProvider', | ||
| 574 | + '$urlRouterProvider', | ||
| 575 | + function($stateProvider, $urlRouterProvider) { | ||
| 576 | + // 默认路由 | ||
| 577 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 578 | + | ||
| 579 | + $stateProvider | ||
| 580 | + .state("rerunManage", { // index页面 | ||
| 581 | + url: '/rerunManage', | ||
| 582 | + views: { | ||
| 583 | + "": { | ||
| 584 | + templateUrl: 'pages/scheduleApp/module/core/rerunManage/index.html' | ||
| 585 | + }, | ||
| 586 | + "rerunManage_list@rerunManage": { | ||
| 587 | + templateUrl: 'pages/scheduleApp/module/core/rerunManage/list.html' | ||
| 588 | + } | ||
| 589 | + }, | ||
| 590 | + | ||
| 591 | + resolve: { | ||
| 592 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 593 | + return $ocLazyLoad.load({ | ||
| 594 | + name: 'rerunManage_module', | ||
| 595 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 596 | + files: [ | ||
| 597 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 598 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 599 | + "pages/scheduleApp/module/core/rerunManage/module.js" | ||
| 600 | + ] | ||
| 601 | + }); | ||
| 602 | + }] | ||
| 603 | + } | ||
| 604 | + }) | ||
| 605 | + .state("rerunManage_form", { // 添加套跑form | ||
| 606 | + url: '/rerunManage_form', | ||
| 607 | + views: { | ||
| 608 | + "": {templateUrl: 'pages/scheduleApp/module/core/rerunManage/form.html'} | ||
| 609 | + }, | ||
| 610 | + resolve: { | ||
| 611 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 612 | + return $ocLazyLoad.load({ | ||
| 613 | + name: 'rerunManage_form_module', | ||
| 614 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 615 | + files: [ | ||
| 616 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 617 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 618 | + "pages/scheduleApp/module/core/rerunManage/module.js" | ||
| 619 | + ] | ||
| 620 | + }); | ||
| 621 | + }] | ||
| 622 | + } | ||
| 623 | + }) | ||
| 624 | + .state("rerunManage_edit", { // 修改套跑form | ||
| 625 | + url: '/rerunManage_edit/:id', | ||
| 626 | + views: { | ||
| 627 | + "": {templateUrl: 'pages/scheduleApp/module/core/rerunManage/edit.html'} | ||
| 628 | + }, | ||
| 629 | + resolve: { | ||
| 630 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 631 | + return $ocLazyLoad.load({ | ||
| 632 | + name: 'rerunManage_edit_module', | ||
| 633 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 634 | + files: [ | ||
| 635 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 636 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 637 | + "pages/scheduleApp/module/core/rerunManage/module.js" | ||
| 638 | + ] | ||
| 639 | + }); | ||
| 640 | + }] | ||
| 641 | + } | ||
| 642 | + }) | ||
| 643 | + .state("rerunManage_detail", { // 详细信息页面 | ||
| 644 | + url: '/rerunManage_detail/:id', | ||
| 645 | + views: { | ||
| 646 | + "": {templateUrl: 'pages/scheduleApp/module/core/rerunManage/detail.html'} | ||
| 647 | + }, | ||
| 648 | + resolve: { | ||
| 649 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 650 | + return $ocLazyLoad.load({ | ||
| 651 | + name: 'rerunManage_detail_module', | ||
| 652 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 653 | + files: [ | ||
| 654 | + "pages/scheduleApp/module/core/rerunManage/module.js" | ||
| 655 | + ] | ||
| 656 | + }); | ||
| 657 | + }] | ||
| 658 | + } | ||
| 659 | + }) | ||
| 660 | + } | ||
| 661 | +]); | ||
| 662 | +// ui route 配置 | ||
| 663 | + | ||
| 664 | +/** 排班计划管理配置route */ | ||
| 665 | +ScheduleApp.config([ | ||
| 666 | + '$stateProvider', | ||
| 667 | + '$urlRouterProvider', | ||
| 668 | + function($stateProvider, $urlRouterProvider) { | ||
| 669 | + // 默认路由 | ||
| 670 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 671 | + | ||
| 672 | + $stateProvider | ||
| 673 | + .state("schedulePlanManage", { // index页面 | ||
| 674 | + url: '/schedulePlanManage', | ||
| 675 | + views: { | ||
| 676 | + "": { | ||
| 677 | + templateUrl: 'pages/scheduleApp/module/core/schedulePlanManage/index.html' | ||
| 678 | + }, | ||
| 679 | + "schedulePlanManage_list@schedulePlanManage": { | ||
| 680 | + templateUrl: 'pages/scheduleApp/module/core/schedulePlanManage/list.html' | ||
| 681 | + } | ||
| 682 | + }, | ||
| 683 | + | ||
| 684 | + resolve: { | ||
| 685 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 686 | + return $ocLazyLoad.load({ | ||
| 687 | + name: 'schedulePlanManage_module', | ||
| 688 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 689 | + files: [ | ||
| 690 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 691 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 692 | + "pages/scheduleApp/module/core/schedulePlanManage/module.js" | ||
| 693 | + ] | ||
| 694 | + }); | ||
| 695 | + }] | ||
| 696 | + } | ||
| 697 | + }) | ||
| 698 | + .state("schedulePlanManage_form", { // 添加排班计划form | ||
| 699 | + url: '/schedulePlanManage_form', | ||
| 700 | + views: { | ||
| 701 | + "": { | ||
| 702 | + templateUrl: 'pages/scheduleApp/module/core/schedulePlanManage/form.html' | ||
| 703 | + } | ||
| 704 | + }, | ||
| 705 | + | ||
| 706 | + resolve: { | ||
| 707 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 708 | + return $ocLazyLoad.load({ | ||
| 709 | + name: 'schedulePlanManage_form_module', | ||
| 710 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 711 | + files: [ | ||
| 712 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 713 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 714 | + "pages/scheduleApp/module/core/schedulePlanManage/module.js" | ||
| 715 | + ] | ||
| 716 | + }); | ||
| 717 | + }] | ||
| 718 | + } | ||
| 719 | + }) | ||
| 720 | + | ||
| 721 | + | ||
| 722 | + } | ||
| 723 | +]); | ||
| 724 | +// ui route 配置 | ||
| 725 | + | ||
| 726 | +/** 排班计划明细配置route */ | ||
| 727 | +ScheduleApp.config([ | ||
| 728 | + '$stateProvider', | ||
| 729 | + '$urlRouterProvider', | ||
| 730 | + function($stateProvider, $urlRouterProvider) { | ||
| 731 | + // 默认路由 | ||
| 732 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 733 | + | ||
| 734 | + $stateProvider | ||
| 735 | + // 排班计划明细管理模块 | ||
| 736 | + .state("schedulePlanInfoManage", { | ||
| 737 | + url: '/schedulePlanInfoManage/:spid/:xlname/:ttname/:stime/:etime', | ||
| 738 | + views: { | ||
| 739 | + "": { | ||
| 740 | + templateUrl: 'pages/scheduleApp/module/core/schedulePlanManage/info/index_info.html' | ||
| 741 | + }, | ||
| 742 | + "schedulePlanInfoManage_list@schedulePlanInfoManage": { | ||
| 743 | + templateUrl: 'pages/scheduleApp/module/core/schedulePlanManage/info/list_info.html' | ||
| 744 | + } | ||
| 745 | + }, | ||
| 746 | + | ||
| 747 | + resolve: { | ||
| 748 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 749 | + return $ocLazyLoad.load({ | ||
| 750 | + name: 'schedulePlanInfoManage_module', | ||
| 751 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 752 | + files: [ | ||
| 753 | + "pages/scheduleApp/module/core/schedulePlanManage/info/module.js" | ||
| 754 | + ] | ||
| 755 | + }); | ||
| 756 | + }] | ||
| 757 | + } | ||
| 758 | + }); | ||
| 759 | + | ||
| 760 | + } | ||
| 761 | +]); | ||
| 762 | +// ui route 配置 | ||
| 763 | + | ||
| 764 | +/** 排班调度值勤日报配置route */ | ||
| 765 | +ScheduleApp.config([ | ||
| 766 | + '$stateProvider', | ||
| 767 | + '$urlRouterProvider', | ||
| 768 | + function($stateProvider, $urlRouterProvider) { | ||
| 769 | + // 默认路由 | ||
| 770 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 771 | + | ||
| 772 | + $stateProvider | ||
| 773 | + .state("schedulePlanReportManage", { | ||
| 774 | + url: '/schedulePlanReportManage', | ||
| 775 | + views: { | ||
| 776 | + "": { | ||
| 777 | + templateUrl: 'pages/scheduleApp/module/core/schedulePlanManage/report/index_report.html' | ||
| 778 | + }, | ||
| 779 | + "schedulePlanReportManage_list@schedulePlanReportManage": { | ||
| 780 | + templateUrl: 'pages/scheduleApp/module/core/schedulePlanManage/report/list_report.html' | ||
| 781 | + } | ||
| 782 | + }, | ||
| 783 | + | ||
| 784 | + resolve: { | ||
| 785 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 786 | + return $ocLazyLoad.load({ | ||
| 787 | + name: 'schedulePlanManage_module', | ||
| 788 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 789 | + files: [ | ||
| 790 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 791 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 792 | + "pages/scheduleApp/module/core/schedulePlanManage/report/module.js" | ||
| 793 | + ] | ||
| 794 | + }); | ||
| 795 | + }] | ||
| 796 | + } | ||
| 797 | + }) | ||
| 798 | + .state("schedulePlanReportManage_edit", { | ||
| 799 | + url: '/schedulePlanReportManage_edit', | ||
| 800 | + params: {type: 0, groupInfo: null}, | ||
| 801 | + views: { | ||
| 802 | + "": { | ||
| 803 | + templateUrl: 'pages/scheduleApp/module/core/schedulePlanManage/report/edit_report.html' | ||
| 804 | + } | ||
| 805 | + }, | ||
| 806 | + | ||
| 807 | + resolve: { | ||
| 808 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 809 | + return $ocLazyLoad.load({ | ||
| 810 | + name: 'schedulePlanReportManage_edit_module', | ||
| 811 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 812 | + files: [ | ||
| 813 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 814 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 815 | + "pages/scheduleApp/module/core/schedulePlanManage/report/module.js" | ||
| 816 | + ] | ||
| 817 | + }); | ||
| 818 | + }] | ||
| 819 | + } | ||
| 820 | + }); | ||
| 821 | + | ||
| 822 | + } | ||
| 823 | +]); | ||
| 824 | +// ui route 配置 | ||
| 825 | + | ||
| 826 | +/** 排班规则模块配置route */ | ||
| 827 | +ScheduleApp.config([ | ||
| 828 | + '$stateProvider', | ||
| 829 | + '$urlRouterProvider', | ||
| 830 | + function($stateProvider, $urlRouterProvider) { | ||
| 831 | + // 默认路由 | ||
| 832 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 833 | + | ||
| 834 | + $stateProvider | ||
| 835 | + .state("scheduleRuleManage", { // index页面 | ||
| 836 | + url: '/scheduleRuleManage', | ||
| 837 | + views: { | ||
| 838 | + "": { | ||
| 839 | + templateUrl: 'pages/scheduleApp/module/core/scheduleRuleManage/index.html' | ||
| 840 | + }, | ||
| 841 | + "scheduleRuleManage_list@scheduleRuleManage": { | ||
| 842 | + templateUrl: 'pages/scheduleApp/module/core/scheduleRuleManage/list.html' | ||
| 843 | + } | ||
| 844 | + }, | ||
| 845 | + | ||
| 846 | + resolve: { | ||
| 847 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 848 | + return $ocLazyLoad.load({ | ||
| 849 | + name: 'scheduleRuleManage_module', | ||
| 850 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 851 | + files: [ | ||
| 852 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 853 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 854 | + "pages/scheduleApp/module/core/scheduleRuleManage/module.js" | ||
| 855 | + ] | ||
| 856 | + }); | ||
| 857 | + }] | ||
| 858 | + } | ||
| 859 | + }) | ||
| 860 | + .state("scheduleRuleManage_form", { // 添加排班规则form | ||
| 861 | + url: '/scheduleRuleManage_form', | ||
| 862 | + views: { | ||
| 863 | + "": {templateUrl: 'pages/scheduleApp/module/core/scheduleRuleManage/form.html'} | ||
| 864 | + }, | ||
| 865 | + resolve: { | ||
| 866 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 867 | + return $ocLazyLoad.load({ | ||
| 868 | + name: 'scheduleRuleManage_form_module', | ||
| 869 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 870 | + files: [ | ||
| 871 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 872 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 873 | + "pages/scheduleApp/module/core/scheduleRuleManage/module.js" | ||
| 874 | + ] | ||
| 875 | + }); | ||
| 876 | + }] | ||
| 877 | + } | ||
| 878 | + }) | ||
| 879 | + .state("scheduleRuleManage_edit", { // 修改排班规则form | ||
| 880 | + url: '/scheduleRuleManage_edit/:id', | ||
| 881 | + views: { | ||
| 882 | + "": {templateUrl: 'pages/scheduleApp/module/core/scheduleRuleManage/edit.html'} | ||
| 883 | + }, | ||
| 884 | + resolve: { | ||
| 885 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 886 | + return $ocLazyLoad.load({ | ||
| 887 | + name: 'scheduleRuleManage_edit_module', | ||
| 888 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 889 | + files: [ | ||
| 890 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 891 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 892 | + "pages/scheduleApp/module/core/scheduleRuleManage/module.js" | ||
| 893 | + ] | ||
| 894 | + }); | ||
| 895 | + }] | ||
| 896 | + } | ||
| 897 | + }) | ||
| 898 | + .state("scheduleRuleManage_detail", { // 详细信息 | ||
| 899 | + url: '/scheduleRuleManage_detail/:id', | ||
| 900 | + views: { | ||
| 901 | + "": {templateUrl: 'pages/scheduleApp/module/core/scheduleRuleManage/detail.html'} | ||
| 902 | + }, | ||
| 903 | + resolve: { | ||
| 904 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 905 | + return $ocLazyLoad.load({ | ||
| 906 | + name: 'scheduleRuleManage_detail_module', | ||
| 907 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 908 | + files: [ | ||
| 909 | + "pages/scheduleApp/module/core/scheduleRuleManage/module.js" | ||
| 910 | + ] | ||
| 911 | + }); | ||
| 912 | + }] | ||
| 913 | + } | ||
| 914 | + }) | ||
| 915 | + } | ||
| 916 | +]); | ||
| 917 | +// ui route 配置 | ||
| 918 | + | ||
| 919 | +/** 时刻表管理配置route */ | ||
| 920 | +ScheduleApp.config([ | ||
| 921 | + '$stateProvider', | ||
| 922 | + '$urlRouterProvider', | ||
| 923 | + function($stateProvider, $urlRouterProvider) { | ||
| 924 | + // 默认路由 | ||
| 925 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 926 | + | ||
| 927 | + $stateProvider | ||
| 928 | + .state("ttInfoManage", { // index页面 | ||
| 929 | + url: '/ttInfoManage', | ||
| 930 | + views: { | ||
| 931 | + "": { | ||
| 932 | + templateUrl: 'pages/scheduleApp/module/core/ttInfoManage/index.html' | ||
| 933 | + }, | ||
| 934 | + "ttInfoManage_list@ttInfoManage": { | ||
| 935 | + templateUrl: 'pages/scheduleApp/module/core/ttInfoManage/list.html' | ||
| 936 | + } | ||
| 937 | + }, | ||
| 938 | + | ||
| 939 | + resolve: { | ||
| 940 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 941 | + return $ocLazyLoad.load({ | ||
| 942 | + name: 'ttInfoManage_module', | ||
| 943 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 944 | + files: [ | ||
| 945 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 946 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 947 | + "pages/scheduleApp/module/core/ttInfoManage/module.js" | ||
| 948 | + ] | ||
| 949 | + }); | ||
| 950 | + }] | ||
| 951 | + } | ||
| 952 | + }) | ||
| 953 | + .state("ttInfoManage_form", { // 添加时刻表信息form | ||
| 954 | + url: '/ttInfoManage_form', | ||
| 955 | + views: { | ||
| 956 | + "": {templateUrl: 'pages/scheduleApp/module/core/ttInfoManage/form.html'} | ||
| 957 | + }, | ||
| 958 | + resolve: { | ||
| 959 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 960 | + return $ocLazyLoad.load({ | ||
| 961 | + name: 'ttInfoManage_form_module', | ||
| 962 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 963 | + files: [ | ||
| 964 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 965 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 966 | + "pages/scheduleApp/module/core/ttInfoManage/module.js" | ||
| 967 | + ] | ||
| 968 | + }); | ||
| 969 | + }] | ||
| 970 | + } | ||
| 971 | + }) | ||
| 972 | + .state("ttInfoManage_edit", { // 修改时刻表信息form | ||
| 973 | + url: '/ttInfoManage_edit/:id', | ||
| 974 | + views: { | ||
| 975 | + "": {templateUrl: 'pages/scheduleApp/module/core/ttInfoManage/edit.html'} | ||
| 976 | + }, | ||
| 977 | + resolve: { | ||
| 978 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 979 | + return $ocLazyLoad.load({ | ||
| 980 | + name: 'ttInfoManage_edit_module', | ||
| 981 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 982 | + files: [ | ||
| 983 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 984 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 985 | + "pages/scheduleApp/module/core/ttInfoManage/module.js" | ||
| 986 | + ] | ||
| 987 | + }); | ||
| 988 | + }] | ||
| 989 | + } | ||
| 990 | + }) | ||
| 991 | + .state("ttInfoManage_detail", { // 时刻表详细信息 | ||
| 992 | + url: '/ttInfoManage_detail/:id', | ||
| 993 | + views: { | ||
| 994 | + "": {templateUrl: 'pages/scheduleApp/module/core/ttInfoManage/detail.html'} | ||
| 995 | + }, | ||
| 996 | + resolve: { | ||
| 997 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 998 | + return $ocLazyLoad.load({ | ||
| 999 | + name: 'ttInfoManage_detail_module', | ||
| 1000 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 1001 | + files: [ | ||
| 1002 | + "pages/scheduleApp/module/core/ttInfoManage/module.js" | ||
| 1003 | + ] | ||
| 1004 | + }); | ||
| 1005 | + }] | ||
| 1006 | + } | ||
| 1007 | + }); | ||
| 1008 | + | ||
| 1009 | + | ||
| 1010 | + } | ||
| 1011 | +]); | ||
| 1012 | +// ui route 配置 | ||
| 1013 | + | ||
| 1014 | +/** 时刻表编辑管理配置route */ | ||
| 1015 | +ScheduleApp.config([ | ||
| 1016 | + '$stateProvider', | ||
| 1017 | + '$urlRouterProvider', | ||
| 1018 | + function($stateProvider, $urlRouterProvider) { | ||
| 1019 | + // 默认路由 | ||
| 1020 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 1021 | + | ||
| 1022 | + $stateProvider | ||
| 1023 | + .state("ttInfoDetailManage_form", { // 时刻表明细导入 | ||
| 1024 | + url: '/ttInfoDetailManage_form/:xlid/:ttid/:xlname/:ttname', | ||
| 1025 | + views: { | ||
| 1026 | + "": {templateUrl: 'pages/scheduleApp/module/core/ttInfoManage/detailedit/form.html'} | ||
| 1027 | + }, | ||
| 1028 | + resolve: { | ||
| 1029 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 1030 | + return $ocLazyLoad.load({ | ||
| 1031 | + name: 'ttInfoDetailManage_form_module', | ||
| 1032 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 1033 | + files: [ | ||
| 1034 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 1035 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 1036 | + "assets/bower_components/angular-file-upload/dist/angular-file-upload.min.js", | ||
| 1037 | + "pages/scheduleApp/module/core/ttInfoManage/detailedit/module.js" | ||
| 1038 | + ] | ||
| 1039 | + }); | ||
| 1040 | + }] | ||
| 1041 | + } | ||
| 1042 | + }) | ||
| 1043 | + .state("ttInfoDetailManage_edit", { // 时刻表详细信息编辑 | ||
| 1044 | + url: '/ttInfoDetailManage_edit/:xlid/:ttid/:xlname/:ttname', | ||
| 1045 | + views: { | ||
| 1046 | + "": {templateUrl: 'pages/scheduleApp/module/core/ttInfoManage/detailedit/edit.html'} | ||
| 1047 | + }, | ||
| 1048 | + resolve: { | ||
| 1049 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 1050 | + return $ocLazyLoad.load({ | ||
| 1051 | + name: 'ttInfoDetailManage_edit_module', | ||
| 1052 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 1053 | + files: [ | ||
| 1054 | + "pages/scheduleApp/module/core/ttInfoManage/detailedit/timeTableDetailManage_old.js" | ||
| 1055 | + ] | ||
| 1056 | + }); | ||
| 1057 | + }] | ||
| 1058 | + } | ||
| 1059 | + }) | ||
| 1060 | + .state("ttInfoDetailManage_detail_edit", { // 时刻表详细信息单元格编辑 | ||
| 1061 | + url: '/ttInfoDetailManage_detail_edit/:id/:xlid/:ttid/:xlname/:ttname', | ||
| 1062 | + views: { | ||
| 1063 | + "": {templateUrl: 'pages/scheduleApp/module/core/ttInfoManage/detailedit/edit-detail.html'} | ||
| 1064 | + }, | ||
| 1065 | + resolve: { | ||
| 1066 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 1067 | + return $ocLazyLoad.load({ | ||
| 1068 | + name: 'ttInfoDetailManage_detail_edit_module', | ||
| 1069 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 1070 | + files: [ | ||
| 1071 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 1072 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 1073 | + "pages/scheduleApp/module/core/ttInfoManage/detailedit/timeTableDetailManage_old.js" | ||
| 1074 | + ] | ||
| 1075 | + }); | ||
| 1076 | + }] | ||
| 1077 | + } | ||
| 1078 | + }); | ||
| 1079 | + | ||
| 1080 | + } | ||
| 1081 | +]); | ||
| 1069 | \ No newline at end of file | 1082 | \ No newline at end of file |
src/main/resources/static/pages/scheduleApp/module/core/busConfig/dist/busConfig.dist.html deleted
100644 → 0
| 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> | ||
| 9 | - <a href="/pages/home.html" data-pjax>首页</a> | ||
| 10 | - <i class="fa fa-circle"></i> | ||
| 11 | - </li> | ||
| 12 | - <li> | ||
| 13 | - <span class="active">运营计划管理</span> | ||
| 14 | - <i class="fa fa-circle"></i> | ||
| 15 | - </li> | ||
| 16 | - <li> | ||
| 17 | - <span class="active">车俩配置</span> | ||
| 18 | - </li> | ||
| 19 | -</ul> | ||
| 20 | - | ||
| 21 | -<div class="row" id="busConfig" ng-app="busConfigApp"> | ||
| 22 | - <div class="col-md-12" ng-controller="busConfigCtrl as bcc"> | ||
| 23 | - <div class="portlet light bordered"> | ||
| 24 | - <div class="portlet-title"> | ||
| 25 | - <div class="caption font-dark"> | ||
| 26 | - <i class="fa fa-database font-dark"></i> | ||
| 27 | - <span class="caption-subject bold uppercase">配置表</span> | ||
| 28 | - </div> | ||
| 29 | - <div class="actions"> | ||
| 30 | - <a href="javascirpt:" class="btn btn-circle blue"> | ||
| 31 | - <i class="fa fa-plus"></i> | ||
| 32 | - 添加配置 | ||
| 33 | - </a> | ||
| 34 | - <div class="btn-group"> | ||
| 35 | - <a href="javascript:" class="btn red btn-outline btn-circle" data-toggle="dropdown"> | ||
| 36 | - <i class="fa fa-share"></i> | ||
| 37 | - <span>系统工具</span> | ||
| 38 | - <i class="fa fa-angle-down"></i> | ||
| 39 | - </a> | ||
| 40 | - <ul class="dropdown-menu pull-right"> | ||
| 41 | - <li> | ||
| 42 | - <a href="javascript:" class="tool-action"> | ||
| 43 | - <i class="fa fa-file-excel-o"></i> | ||
| 44 | - 导出excel | ||
| 45 | - </a> | ||
| 46 | - </li> | ||
| 47 | - <li class="divider"></li> | ||
| 48 | - <li> | ||
| 49 | - <a href="javascript:" class="tool-action"> | ||
| 50 | - <i class="fa fa-refresh"></i> | ||
| 51 | - 刷行数据 | ||
| 52 | - </a> | ||
| 53 | - </li> | ||
| 54 | - </ul> | ||
| 55 | - </div> | ||
| 56 | - </div> | ||
| 57 | - </div> | ||
| 58 | - | ||
| 59 | - <div class="portlet-body"> | ||
| 60 | - <table class="table table-striped table-bordered table-hover table-checkable order-column" id="busConfigInfoTable"> | ||
| 61 | - <thead> | ||
| 62 | - <tr> | ||
| 63 | - <th> | ||
| 64 | - <input type="checkbox" class="group-checkable" data-set="#busConfigInfoTable.checkboxes"/> | ||
| 65 | - </th> | ||
| 66 | - <th>线路名称</th> | ||
| 67 | - <th>自编号</th> | ||
| 68 | - <th>设备编号</th> | ||
| 69 | - <th>启用日期</th> | ||
| 70 | - <th>终止日期</th> | ||
| 71 | - <th>停车点</th> | ||
| 72 | - <th>操作</th> | ||
| 73 | - </tr> | ||
| 74 | - </thead> | ||
| 75 | - <tbody> | ||
| 76 | - <tr ng-repeat="info in bcc.infos" class="odd gradeX"> | ||
| 77 | - <td> | ||
| 78 | - <input type="checkbox" class="checkboxes"/> | ||
| 79 | - </td> | ||
| 80 | - <td> | ||
| 81 | - <span ng-bind="info.xl"></span> | ||
| 82 | - </td> | ||
| 83 | - <td> | ||
| 84 | - <span ng-bind="info.clZbh"></span> | ||
| 85 | - </td> | ||
| 86 | - <td> | ||
| 87 | - <span ng-bind="info.sbbh"></span> | ||
| 88 | - </td> | ||
| 89 | - <td> | ||
| 90 | - <span ng-bind="info.qyrq | date:'yyyy-MM-dd HH:mm:ss'"></span> | ||
| 91 | - </td> | ||
| 92 | - <td> | ||
| 93 | - <span ng-bind="info.zzrq | date:'yyyy-MM-dd HH:mm:ss'"></span> | ||
| 94 | - </td> | ||
| 95 | - <td> | ||
| 96 | - <span ng-bind="info.tcd"></span> | ||
| 97 | - </td> | ||
| 98 | - </tr> | ||
| 99 | - </tbody> | ||
| 100 | - </table> | ||
| 101 | - | ||
| 102 | - <div style="text-align: right;"> | ||
| 103 | - <uib-pagination total-items="bcc.totalItems" | ||
| 104 | - ng-model="bcc.currentPage" | ||
| 105 | - ng-change="bcc.pageChanged()" | ||
| 106 | - previous-text="上一页" | ||
| 107 | - next-text="下一页"> | ||
| 108 | - </uib-pagination> | ||
| 109 | - </div> | ||
| 110 | - | ||
| 111 | - </div> | ||
| 112 | - </div> | ||
| 113 | - </div> | ||
| 114 | -</div> | ||
| 115 | - | ||
| 116 | -<script>angular.module("busConfigApp",["ngResource","ui.bootstrap"]).factory("BusConfigInfo",["$resource",function(a){return a("/cci",{},{list:{method:"GET"}})}]);</script> | ||
| 117 | -<script>angular.module("busConfigApp").controller("busConfigCtrl",["BusConfigInfo",function(a){var b=this;b.totalItems=64,b.currentPage=4,b.infos=[],b.pageChanged=function(){console.log("页面调转到:"+b.currentPage)},a.list(function(a){console.log("后台返回记录数:"+a.content.length),b.infos=a.content})}]);</script> | ||
| 118 | - | ||
| 119 | -<script type="text/javascript"> | ||
| 120 | - angular.bootstrap(document.getElementById("busConfig"), ["busConfigApp"]); | ||
| 121 | -</script> | ||
| 122 | \ No newline at end of file | 0 | \ No newline at end of file |
src/main/resources/static/pages/scheduleApp/module/core/busConfig/dist/controller.min.js deleted
100644 → 0
| 1 | -angular.module("busConfigApp").controller("busConfigCtrl",["BusConfigInfo",function(a){var b=this;b.totalItems=64,b.currentPage=4,b.infos=[],b.pageChanged=function(){console.log("页面调转到:"+b.currentPage)},a.list(function(a){console.log("后台返回记录数:"+a.content.length),b.infos=a.content})}]); | ||
| 2 | \ No newline at end of file | 0 | \ No newline at end of file |
src/main/resources/static/pages/scheduleApp/module/core/busConfig/dist/service.min.js deleted
100644 → 0
src/main/resources/static/pages/scheduleApp/module/core/busConfig/list.html
| @@ -10,6 +10,7 @@ | @@ -10,6 +10,7 @@ | ||
| 10 | <th style="width: 150px;">启用日期</th> | 10 | <th style="width: 150px;">启用日期</th> |
| 11 | <th style="width: 150px;">终止日期</th> | 11 | <th style="width: 150px;">终止日期</th> |
| 12 | <th >停车点</th> | 12 | <th >停车点</th> |
| 13 | + <th style="width: 80px;" >状态</th> | ||
| 13 | <th style="width: 21%">操作</th> | 14 | <th style="width: 21%">操作</th> |
| 14 | </tr> | 15 | </tr> |
| 15 | <tr role="row" class="filter"> | 16 | <tr role="row" class="filter"> |
| @@ -34,6 +35,11 @@ | @@ -34,6 +35,11 @@ | ||
| 34 | <td></td> | 35 | <td></td> |
| 35 | <td></td> | 36 | <td></td> |
| 36 | <td> | 37 | <td> |
| 38 | + <label class="checkbox-inline input"> | ||
| 39 | + <input type="checkbox" ng-model="ctrl.searchCondition()['isCancel_eq']" />作废 | ||
| 40 | + </label> | ||
| 41 | + </td> | ||
| 42 | + <td> | ||
| 37 | <button class="btn btn-sm green btn-outline filter-submit margin-bottom" | 43 | <button class="btn btn-sm green btn-outline filter-submit margin-bottom" |
| 38 | ng-click="ctrl.pageChanaged()"> | 44 | ng-click="ctrl.pageChanaged()"> |
| 39 | <i class="fa fa-search"></i> 搜索</button> | 45 | <i class="fa fa-search"></i> 搜索</button> |
| @@ -67,6 +73,10 @@ | @@ -67,6 +73,10 @@ | ||
| 67 | <span ng-bind="info.tcd"></span> | 73 | <span ng-bind="info.tcd"></span> |
| 68 | </td> | 74 | </td> |
| 69 | <td> | 75 | <td> |
| 76 | + <span class="glyphicon glyphicon-ok" ng-if="info.isCancel == '0'"></span> | ||
| 77 | + <span class="glyphicon glyphicon-remove" ng-if="info.isCancel == '1'"></span> | ||
| 78 | + </td> | ||
| 79 | + <td> | ||
| 70 | <!--<a href="details.html?lineId={{obj.id}}" class="btn default blue-stripe btn-sm"> 详细 </a>--> | 80 | <!--<a href="details.html?lineId={{obj.id}}" class="btn default blue-stripe btn-sm"> 详细 </a>--> |
| 71 | <!--<a href="edit.html?lineId={{obj.id}}" class="btn default blue-stripe btn-sm"> 修改 </a>--> | 81 | <!--<a href="edit.html?lineId={{obj.id}}" class="btn default blue-stripe btn-sm"> 修改 </a>--> |
| 72 | <a ui-sref="busConfig_detail({id: info.id})" class="btn btn-info btn-sm"> 详细 </a> | 82 | <a ui-sref="busConfig_detail({id: info.id})" class="btn btn-info btn-sm"> 详细 </a> |