Commit bf160935669d5c00490e92267e90c5ed9b8c49f4

Authored by 徐烜
1 parent 498f999a

update

Showing 65 changed files with 284 additions and 0 deletions
src/main/resources/static/index.html
... ... @@ -90,6 +90,10 @@ tr.row-active td {
90 90 padding: 3.3px 0;
91 91 }
92 92 </style>
  93 +
  94 +<!-- ocLazyLoading载入文件的位置 -->
  95 +<link id="ng_load_plugins_before" />
  96 +
93 97 </head>
94 98 <body class="page-container-bg-solid page-header-fixed page-sidebar-closed-hide-logo page-sidebar-fixed">
95 99 <div class="page-header navbar navbar-fixed-top">
... ... @@ -194,6 +198,13 @@ tr.row-active td {
194 198 </div>
195 199 <div class="page-content-wrapper">
196 200 <div class="page-content" id="pjax-container"></div>
  201 +
  202 + <div class="page-content" ng-app="ScheduleApp" id="route-container">
  203 + <div ng-controller="ScheduleAppController">
  204 + <div ui-view class="fade-in-up"> </div>
  205 + </div>
  206 + </div>
  207 +
197 208 </div>
198 209 </div>
199 210  
... ... @@ -221,6 +232,26 @@ tr.row-active td {
221 232 </li>
222 233 {{/each}}
223 234 {{/each}}
  235 +
  236 +<li class="heading">
  237 + <h3 class="uppercase">测试用例</h3>
  238 +</li>
  239 +<li class="nav-item">
  240 + <a href="javascript:;" class="nav-link nav-toggle ">
  241 + <i class="fa fa-cloud"></i>
  242 + <span class="title">用例组1</span>
  243 + <span class="arrow"></span>
  244 + </a>
  245 + <ul class="sub-menu">
  246 + <li class="nav-item ">
  247 + <a href="#/busConfig.html" class="nav-link ">
  248 + <span class="title">用例1</span>
  249 + </a>
  250 + </li>
  251 + </ul>
  252 +</li>
  253 +
  254 +
224 255 </script>
225 256 <!--[if lt IE 9]>
226 257 <script src="assets/plugins/respond.min.js"></script>
... ... @@ -291,6 +322,9 @@ tr.row-active td {
291 322 <script src="assets/bower_components/oclazyload/dist/ocLazyLoad.min.js"></script>
292 323 <script src="assets/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script>
293 324  
  325 +<!-- schedule计划调度AngularJS模块主js -->
  326 +<script src="pages/scheduleApp/module/main.js"></script>
  327 +
294 328  
295 329 <script type="text/javascript">
296 330  
... ...
src/main/resources/static/pages/schedulePlan/.bowerrc renamed to src/main/resources/static/pages/scheduleApp/.bowerrc
src/main/resources/static/pages/schedulePlan/.jshintrc renamed to src/main/resources/static/pages/scheduleApp/.jshintrc
src/main/resources/static/pages/schedulePlan/Gruntfile.js renamed to src/main/resources/static/pages/scheduleApp/Gruntfile.js
src/main/resources/static/pages/schedulePlan/bower.json renamed to src/main/resources/static/pages/scheduleApp/bower.json
src/main/resources/static/pages/schedulePlan/app/basicInfo/busInfoManage/busInfoManage.html renamed to src/main/resources/static/pages/scheduleApp/module/basicInfo/busInfoManage/busInfoManage.html
src/main/resources/static/pages/schedulePlan/app/basicInfo/busInfoManage/dist/busInfoManage.dist.html renamed to src/main/resources/static/pages/scheduleApp/module/basicInfo/busInfoManage/dist/busInfoManage.dist.html
src/main/resources/static/pages/schedulePlan/app/basicInfo/deviceInfoManage/deviceInfoManage.html renamed to src/main/resources/static/pages/scheduleApp/module/basicInfo/deviceInfoManage/deviceInfoManage.html
src/main/resources/static/pages/schedulePlan/app/basicInfo/deviceInfoManage/dist/deviceInfoManage.dist.html renamed to src/main/resources/static/pages/scheduleApp/module/basicInfo/deviceInfoManage/dist/deviceInfoManage.dist.html
src/main/resources/static/pages/schedulePlan/app/basicInfo/employeeInfoManage/dist/employeeInfoManage.dist.html renamed to src/main/resources/static/pages/scheduleApp/module/basicInfo/employeeInfoManage/dist/employeeInfoManage.dist.html
src/main/resources/static/pages/schedulePlan/app/basicInfo/employeeInfoManage/employeeInfoManage.html renamed to src/main/resources/static/pages/scheduleApp/module/basicInfo/employeeInfoManage/employeeInfoManage.html
src/main/resources/static/pages/schedulePlan/app/core/busConfig/busConfig.html renamed to src/main/resources/static/pages/scheduleApp/module/core/busConfig/busConfig.html
src/main/resources/static/pages/scheduleApp/module/core/busConfig/busConfig2.html 0 → 100644
  1 +<div class="page-head">
  2 + <div class="page-title">
  3 + <h1>车辆配置</h1>
  4 + </div>
  5 +</div>
  6 +
  7 +<ul class="page-breadcrumb breadcrumb">
  8 + <li>
  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="col-md-12" ng-controller="busConfigCtrl as bcc">
  22 + <div class="portlet light bordered">
  23 + <div class="portlet-title">
  24 + <div class="caption font-dark">
  25 + <i class="fa fa-database font-dark"></i>
  26 + <span class="caption-subject bold uppercase">配置表</span>
  27 + </div>
  28 + <div class="actions">
  29 + <a href="javascirpt:" class="btn btn-circle blue">
  30 + <i class="fa fa-plus"></i>
  31 + 添加配置
  32 + </a>
  33 + <div class="btn-group">
  34 + <a href="javascript:" class="btn red btn-outline btn-circle" data-toggle="dropdown">
  35 + <i class="fa fa-share"></i>
  36 + <span>系统工具</span>
  37 + <i class="fa fa-angle-down"></i>
  38 + </a>
  39 + <ul class="dropdown-menu pull-right">
  40 + <li>
  41 + <a href="javascript:" class="tool-action">
  42 + <i class="fa fa-file-excel-o"></i>
  43 + 导出excel
  44 + </a>
  45 + </li>
  46 + <li class="divider"></li>
  47 + <li>
  48 + <a href="javascript:" class="tool-action">
  49 + <i class="fa fa-refresh"></i>
  50 + 刷行数据
  51 + </a>
  52 + </li>
  53 + </ul>
  54 + </div>
  55 + </div>
  56 + </div>
  57 +
  58 + <div class="portlet-body">
  59 + <table class="table table-striped table-bordered table-hover table-checkable order-column" id="busConfigInfoTable">
  60 + <thead>
  61 + <tr>
  62 + <th>
  63 + <input type="checkbox" class="group-checkable" data-set="#busConfigInfoTable.checkboxes"/>
  64 + </th>
  65 + <th>线路名称</th>
  66 + <th>自编号</th>
  67 + <th>设备编号</th>
  68 + <th>启用日期</th>
  69 + <th>终止日期</th>
  70 + <th>停车点</th>
  71 + <th>操作</th>
  72 + </tr>
  73 + </thead>
  74 + <tbody>
  75 + <tr ng-repeat="info in bcc.infos" class="odd gradeX">
  76 + <td>
  77 + <input type="checkbox" class="checkboxes"/>
  78 + </td>
  79 + <td>
  80 + <span ng-bind="info.xl"></span>
  81 + </td>
  82 + <td>
  83 + <span ng-bind="info.zbh"></span>
  84 + </td>
  85 + <td>
  86 + <span ng-bind="info.sbbh"></span>
  87 + </td>
  88 + <td>
  89 + <span ng-bind="info.qyrq | date:'yyyy-MM-dd HH:mm:ss'"></span>
  90 + </td>
  91 + <td>
  92 + <span ng-bind="info.zzrq | date:'yyyy-MM-dd HH:mm:ss'"></span>
  93 + </td>
  94 + <td>
  95 + <span ng-bind="info.tcd"></span>
  96 + </td>
  97 + </tr>
  98 + </tbody>
  99 + </table>
  100 +
  101 + <div style="text-align: right;">
  102 + <uib-pagination total-items="bcc.totalItems"
  103 + ng-model="bcc.currentPage"
  104 + ng-change="bcc.pageChanged()"
  105 + previous-text="上一页"
  106 + next-text="下一页">
  107 + </uib-pagination>
  108 + </div>
  109 +
  110 + </div>
  111 + </div>
  112 +</div>
0 113 \ No newline at end of file
... ...
src/main/resources/static/pages/schedulePlan/app/core/busConfig/controller.js renamed to src/main/resources/static/pages/scheduleApp/module/core/busConfig/controller.js
src/main/resources/static/pages/scheduleApp/module/core/busConfig/controller2.js 0 → 100644
  1 +// 车辆配置控制器放在这里
  2 +
  3 +angular.module('ScheduleApp')
  4 + .controller('busConfigCtrl', ['BusConfigInfo', function(BusConfigInfo) {
  5 + var self = this;
  6 + self.totalItems = 64;
  7 + self.currentPage = 4;
  8 + self.infos = [];
  9 + self.pageChanged = function() {
  10 + console.log("页面调转到:" + self.currentPage);
  11 + };
  12 +
  13 + BusConfigInfo.list(function(result) {
  14 + console.log("后台返回记录数:" + result.content.length);
  15 + self.infos = result.content;
  16 + });
  17 + }]);
0 18 \ No newline at end of file
... ...
src/main/resources/static/pages/schedulePlan/app/core/busConfig/dist/busConfig.dist.html renamed to src/main/resources/static/pages/scheduleApp/module/core/busConfig/dist/busConfig.dist.html
src/main/resources/static/pages/schedulePlan/app/core/busConfig/dist/controller.min.js renamed to src/main/resources/static/pages/scheduleApp/module/core/busConfig/dist/controller.min.js
src/main/resources/static/pages/schedulePlan/app/core/busConfig/dist/service.min.js renamed to src/main/resources/static/pages/scheduleApp/module/core/busConfig/dist/service.min.js
src/main/resources/static/pages/schedulePlan/app/core/busConfig/service.js renamed to src/main/resources/static/pages/scheduleApp/module/core/busConfig/service.js
src/main/resources/static/pages/scheduleApp/module/core/busConfig/service2.js 0 → 100644
  1 +// 车辆配置服务放在这里
  2 +
  3 +angular.module('ScheduleApp').factory('BusConfigInfo', ['$resource', function($resource) {
  4 + return $resource(
  5 + '/cci',
  6 + {},
  7 + {
  8 + list: {
  9 + method: 'GET'
  10 + }
  11 + }
  12 + );
  13 +}]);
... ...
src/main/resources/static/pages/schedulePlan/app/core/busLineInfoOverview/busLineInfoOverview.html renamed to src/main/resources/static/pages/scheduleApp/module/core/busLineInfoOverview/busLineInfoOverview.html
src/main/resources/static/pages/schedulePlan/app/core/busLineInfoOverview/controller.js renamed to src/main/resources/static/pages/scheduleApp/module/core/busLineInfoOverview/controller.js
src/main/resources/static/pages/schedulePlan/app/core/busLineInfoOverview/dist/busLineInfoOverview.dist.html renamed to src/main/resources/static/pages/scheduleApp/module/core/busLineInfoOverview/dist/busLineInfoOverview.dist.html
src/main/resources/static/pages/schedulePlan/app/core/busLineInfoOverview/dist/controller.min.js renamed to src/main/resources/static/pages/scheduleApp/module/core/busLineInfoOverview/dist/controller.min.js
src/main/resources/static/pages/schedulePlan/app/core/busLineInfoOverview/dist/service.min.js renamed to src/main/resources/static/pages/scheduleApp/module/core/busLineInfoOverview/dist/service.min.js
src/main/resources/static/pages/schedulePlan/app/core/busLineInfoOverview/service.js renamed to src/main/resources/static/pages/scheduleApp/module/core/busLineInfoOverview/service.js
src/main/resources/static/pages/schedulePlan/app/core/dispatchManage/dispatchManage.html renamed to src/main/resources/static/pages/scheduleApp/module/core/dispatchManage/dispatchManage.html
src/main/resources/static/pages/schedulePlan/app/core/dispatchManage/dist/dispatchManage.dist.html renamed to src/main/resources/static/pages/scheduleApp/module/core/dispatchManage/dist/dispatchManage.dist.html
src/main/resources/static/pages/schedulePlan/app/core/employeeConfig/controller.js renamed to src/main/resources/static/pages/scheduleApp/module/core/employeeConfig/controller.js
src/main/resources/static/pages/schedulePlan/app/core/employeeConfig/dist/controller.min.js renamed to src/main/resources/static/pages/scheduleApp/module/core/employeeConfig/dist/controller.min.js
src/main/resources/static/pages/schedulePlan/app/core/employeeConfig/dist/employeeConfig.dist.html renamed to src/main/resources/static/pages/scheduleApp/module/core/employeeConfig/dist/employeeConfig.dist.html
src/main/resources/static/pages/schedulePlan/app/core/employeeConfig/dist/service.min.js renamed to src/main/resources/static/pages/scheduleApp/module/core/employeeConfig/dist/service.min.js
src/main/resources/static/pages/schedulePlan/app/core/employeeConfig/employeeConfig.html renamed to src/main/resources/static/pages/scheduleApp/module/core/employeeConfig/employeeConfig.html
src/main/resources/static/pages/schedulePlan/app/core/employeeConfig/service.js renamed to src/main/resources/static/pages/scheduleApp/module/core/employeeConfig/service.js
src/main/resources/static/pages/schedulePlan/app/core/guideboardManage/controller.js renamed to src/main/resources/static/pages/scheduleApp/module/core/guideboardManage/controller.js
src/main/resources/static/pages/schedulePlan/app/core/guideboardManage/dist/controller.min.js renamed to src/main/resources/static/pages/scheduleApp/module/core/guideboardManage/dist/controller.min.js
src/main/resources/static/pages/schedulePlan/app/core/guideboardManage/dist/guideboardManage.dist.html renamed to src/main/resources/static/pages/scheduleApp/module/core/guideboardManage/dist/guideboardManage.dist.html
src/main/resources/static/pages/schedulePlan/app/core/guideboardManage/dist/service.min.js renamed to src/main/resources/static/pages/scheduleApp/module/core/guideboardManage/dist/service.min.js
src/main/resources/static/pages/schedulePlan/app/core/guideboardManage/guideboardManage.html renamed to src/main/resources/static/pages/scheduleApp/module/core/guideboardManage/guideboardManage.html
src/main/resources/static/pages/schedulePlan/app/core/guideboardManage/service.js renamed to src/main/resources/static/pages/scheduleApp/module/core/guideboardManage/service.js
src/main/resources/static/pages/schedulePlan/app/core/rerunManage/dist/rerunManage.dist.html renamed to src/main/resources/static/pages/scheduleApp/module/core/rerunManage/dist/rerunManage.dist.html
src/main/resources/static/pages/schedulePlan/app/core/rerunManage/rerunManage.html renamed to src/main/resources/static/pages/scheduleApp/module/core/rerunManage/rerunManage.html
src/main/resources/static/pages/schedulePlan/app/core/schedulePlanManage/dist/schedulePlanManage.dist.html renamed to src/main/resources/static/pages/scheduleApp/module/core/schedulePlanManage/dist/schedulePlanManage.dist.html
src/main/resources/static/pages/schedulePlan/app/core/schedulePlanManage/schedulePlanManage.html renamed to src/main/resources/static/pages/scheduleApp/module/core/schedulePlanManage/schedulePlanManage.html
src/main/resources/static/pages/schedulePlan/app/core/scheduleRuleManage/dist/scheduleRuleManage.dist.html renamed to src/main/resources/static/pages/scheduleApp/module/core/scheduleRuleManage/dist/scheduleRuleManage.dist.html
src/main/resources/static/pages/schedulePlan/app/core/scheduleRuleManage/scheduleRuleManage.html renamed to src/main/resources/static/pages/scheduleApp/module/core/scheduleRuleManage/scheduleRuleManage.html
src/main/resources/static/pages/schedulePlan/app/core/timeTableManage/controller.js renamed to src/main/resources/static/pages/scheduleApp/module/core/timeTableManage/controller.js
src/main/resources/static/pages/schedulePlan/app/core/timeTableManage/dist/controller.min.js renamed to src/main/resources/static/pages/scheduleApp/module/core/timeTableManage/dist/controller.min.js
src/main/resources/static/pages/schedulePlan/app/core/timeTableManage/dist/service.min.js renamed to src/main/resources/static/pages/scheduleApp/module/core/timeTableManage/dist/service.min.js
src/main/resources/static/pages/schedulePlan/app/core/timeTableManage/dist/timeTableDetail.html renamed to src/main/resources/static/pages/scheduleApp/module/core/timeTableManage/dist/timeTableDetail.html
src/main/resources/static/pages/schedulePlan/app/core/timeTableManage/dist/timeTableList.html renamed to src/main/resources/static/pages/scheduleApp/module/core/timeTableManage/dist/timeTableList.html
src/main/resources/static/pages/schedulePlan/app/core/timeTableManage/dist/timeTableManage.html renamed to src/main/resources/static/pages/scheduleApp/module/core/timeTableManage/dist/timeTableManage.html
src/main/resources/static/pages/schedulePlan/app/core/timeTableManage/service.js renamed to src/main/resources/static/pages/scheduleApp/module/core/timeTableManage/service.js
src/main/resources/static/pages/schedulePlan/app/core/timeTableManage/timeTableDetail.html renamed to src/main/resources/static/pages/scheduleApp/module/core/timeTableManage/timeTableDetail.html
src/main/resources/static/pages/schedulePlan/app/core/timeTableManage/timeTableList.html renamed to src/main/resources/static/pages/scheduleApp/module/core/timeTableManage/timeTableList.html
src/main/resources/static/pages/schedulePlan/app/core/timeTableManage/timeTableManage.html renamed to src/main/resources/static/pages/scheduleApp/module/core/timeTableManage/timeTableManage.html
src/main/resources/static/pages/schedulePlan/app/demo/demo1.html renamed to src/main/resources/static/pages/scheduleApp/module/demo/demo1.html
src/main/resources/static/pages/schedulePlan/app/demo/demo1.js renamed to src/main/resources/static/pages/scheduleApp/module/demo/demo1.js
src/main/resources/static/pages/schedulePlan/app/demo/dist/demo1.dist.html renamed to src/main/resources/static/pages/scheduleApp/module/demo/dist/demo1.dist.html
src/main/resources/static/pages/schedulePlan/app/demo/dist/demo1.min.js renamed to src/main/resources/static/pages/scheduleApp/module/demo/dist/demo1.min.js
src/main/resources/static/pages/scheduleApp/module/main.js 0 → 100644
  1 +/** shcedule 营运计划App module */
  2 +
  3 +var ScheduleApp = angular.module('ScheduleApp', [
  4 + 'ui.router', // ui-route跳转
  5 + 'ui.bootstrap', // ui bootstrap封装
  6 + 'oc.lazyLoad', // 动态加载模块(html,js,css等)
  7 + 'ngSanitize', // 净化html标签,配合ng-bind-html使用
  8 + 'ngResource' // resource服务
  9 +]);
  10 +
  11 +ScheduleApp.config(['$httpProvider', function($httpProvider) {
  12 + $httpProvider.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";
  13 +}]);
  14 +
  15 +/** ocLazyLoader 配置 */
  16 +ScheduleApp.config(['$ocLazyLoadProvider', function($ocLazyLoadProvider) {
  17 + $ocLazyLoadProvider.config({
  18 + // TODO:全局配置在这里
  19 + });
  20 +}]);
  21 +
  22 +/** 配置全局配置信息 */
  23 +ScheduleApp.factory('settings', ['$rootScope', function($rootScope) {
  24 + // 封装 settings服务,并设置给 $rootScope同名对象
  25 + var settings = {
  26 + // TODO:
  27 + };
  28 +
  29 + $rootScope.settings = settings;
  30 +
  31 + return settings;
  32 +}]);
  33 +
  34 +/** Schedule App 主应用控制器 */
  35 +ScheduleApp.controller('ScheduleAppController', ['$scope', function($scope) {
  36 + $scope.$on('$viewContentLoaded', function(event) {
  37 + console.log("子页面已载入:" + event);
  38 + });
  39 +}]);
  40 +
  41 +/** 配置所有模块页面route */
  42 +ScheduleApp.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {
  43 + // 默认路由
  44 + //$urlRouterProvider.otherwise('/busConfig.html');
  45 +
  46 + $stateProvider
  47 + // 车辆配置模块
  48 + .state('busConfig', {
  49 + url: '/busConfig.html',
  50 + templateUrl: 'pages/scheduleApp/module/core/busConfig/busConfig2.html',
  51 + data: {},
  52 + controller: 'busConfigCtrl',
  53 + resolve: {
  54 + deps: ['$ocLazyLoad', function($ocLazyLoad) {
  55 + return $ocLazyLoad.load({
  56 + name: 'busConfig_module',
  57 + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置
  58 + files: [
  59 + 'pages/scheduleApp/module/core/busConfig/service2.js',
  60 + 'pages/scheduleApp/module/core/busConfig/controller2.js'
  61 + ]
  62 + });
  63 + }]
  64 + }
  65 + })
  66 + // 路牌管理
  67 + .state('guideboardManage', {
  68 + url: '/guideboardManage.html',
  69 + templateUrl: 'pages/scheduleApp/module/core/guideboardManage/guideboardManage.html',
  70 + data: {},
  71 + controller: 'guideboardManageCtrl',
  72 + resolve: {
  73 + deps: ['$ocLazyLoad', function($ocLazyLoad) {
  74 + return $ocLazyLoad.load({
  75 + name: ''
  76 + });
  77 + }]
  78 + }
  79 + });
  80 +}]);
  81 +
  82 +
  83 +
  84 +
  85 +
  86 +
  87 +
  88 +
  89 +
  90 +
  91 +
  92 +
  93 +
  94 +
  95 +
  96 +
  97 +
  98 +
  99 +
  100 +
  101 +
  102 +
  103 +
  104 +
  105 +
  106 +
  107 +
  108 +
... ...
src/main/resources/static/pages/schedulePlan/app/other/.gitkeep renamed to src/main/resources/static/pages/scheduleApp/module/other/.gitkeep
src/main/resources/static/pages/schedulePlan/package.json renamed to src/main/resources/static/pages/scheduleApp/package.json
src/main/resources/static/pages/schedulePlan/test/karma.conf.js renamed to src/main/resources/static/pages/scheduleApp/test/karma.conf.js
src/main/resources/static/pages/schedulePlan/test/protractor-conf.js renamed to src/main/resources/static/pages/scheduleApp/test/protractor-conf.js