Commit 5a442260553ca1e29d68ae3dc52566942f25dfd7
1 parent
839a2e4c
设备管理页面补充
Showing
1 changed file
with
91 additions
and
0 deletions
src/main/resources/static/pages/scheduleApp/module/common/prj-common-ui-route-state.js
| @@ -188,7 +188,98 @@ ScheduleApp.config([ | @@ -188,7 +188,98 @@ ScheduleApp.config([ | ||
| 188 | ]); | 188 | ]); |
| 189 | // ui route 配置 | 189 | // ui route 配置 |
| 190 | // ui route 配置 | 190 | // ui route 配置 |
| 191 | +/** 车辆设备信息模块配置route */ | ||
| 192 | +ScheduleApp.config([ | ||
| 193 | + '$stateProvider', | ||
| 194 | + '$urlRouterProvider', | ||
| 195 | + function($stateProvider, $urlRouterProvider) { | ||
| 196 | + // 默认路由 | ||
| 197 | + //$urlRouterProvider.otherwise('/busConfig.html'); | ||
| 198 | + | ||
| 199 | + $stateProvider | ||
| 200 | + .state("deviceInfoManage", { // index页面 | ||
| 201 | + url: '/deviceInfoManage', | ||
| 202 | + views: { | ||
| 203 | + "": { | ||
| 204 | + templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/index.html' | ||
| 205 | + }, | ||
| 206 | + "deviceInfoManage_list@deviceInfoManage": { | ||
| 207 | + templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/list.html' | ||
| 208 | + } | ||
| 209 | + }, | ||
| 210 | + | ||
| 211 | + resolve: { | ||
| 212 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 213 | + return $ocLazyLoad.load({ | ||
| 214 | + name: 'deviceInfoManage_module', | ||
| 215 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 216 | + files: [ | ||
| 217 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 218 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 219 | + "pages/scheduleApp/module/basicInfo/deviceInfoManage/module.js" | ||
| 220 | + ] | ||
| 221 | + }); | ||
| 222 | + }] | ||
| 223 | + } | ||
| 224 | + }) | ||
| 225 | + .state("deviceInfoManage_form", { // 添加设备信息form | ||
| 226 | + url: '/deviceInfoManage_form', | ||
| 227 | + views: { | ||
| 228 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/form.html'} | ||
| 229 | + }, | ||
| 230 | + resolve: { | ||
| 231 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 232 | + return $ocLazyLoad.load({ | ||
| 233 | + name: 'deviceInfoManage_form_module', | ||
| 234 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 235 | + files: [ | ||
| 236 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 237 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 238 | + "pages/scheduleApp/module/basicInfo/deviceInfoManage/module.js" | ||
| 239 | + ] | ||
| 240 | + }); | ||
| 241 | + }] | ||
| 242 | + } | ||
| 243 | + }) | ||
| 244 | + .state("deviceInfoManage_edit", { // 修改设备信息form | ||
| 245 | + url: '/deviceInfoManage_edit/:id', | ||
| 246 | + views: { | ||
| 247 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/edit.html'} | ||
| 248 | + }, | ||
| 249 | + resolve: { | ||
| 250 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 251 | + return $ocLazyLoad.load({ | ||
| 252 | + name: 'deviceInfoManage_edit_module', | ||
| 253 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 254 | + files: [ | ||
| 255 | + "assets/bower_components/angular-ui-select/dist/select.min.css", | ||
| 256 | + "assets/bower_components/angular-ui-select/dist/select.min.js", | ||
| 257 | + "pages/scheduleApp/module/basicInfo/deviceInfoManage/module.js" | ||
| 258 | + ] | ||
| 259 | + }); | ||
| 260 | + }] | ||
| 261 | + } | ||
| 262 | + }) | ||
| 263 | + .state("deviceInfoManage_detail", { // 详细信息页面 | ||
| 264 | + url: '/deviceInfoManage_detail/:id', | ||
| 265 | + views: { | ||
| 266 | + "": {templateUrl: 'pages/scheduleApp/module/basicInfo/deviceInfoManage/detail.html'} | ||
| 267 | + }, | ||
| 268 | + resolve: { | ||
| 269 | + deps: ['$ocLazyLoad', function($ocLazyLoad) { | ||
| 270 | + return $ocLazyLoad.load({ | ||
| 271 | + name: 'deviceInfoManage_detail_module', | ||
| 272 | + insertBefore: '#ng_load_plugins_before', // 动态载入模块时放置的位置 | ||
| 273 | + files: [ | ||
| 274 | + "pages/scheduleApp/module/basicInfo/deviceInfoManage/module.js" | ||
| 275 | + ] | ||
| 276 | + }); | ||
| 277 | + }] | ||
| 278 | + } | ||
| 279 | + }) | ||
| 191 | 280 | ||
| 281 | + } | ||
| 282 | +]); | ||
| 192 | /** 车辆设备信息模块配置route_sut */ | 283 | /** 车辆设备信息模块配置route_sut */ |
| 193 | ScheduleApp.config([ | 284 | ScheduleApp.config([ |
| 194 | '$stateProvider', | 285 | '$stateProvider', |