config.router.js 135 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575
  1. 'use strict';
  2. /**
  3. * Config for the router
  4. */
  5. app.config(['$authProvider', '$httpProvider', '$stateProvider', '$urlRouterProvider', '$controllerProvider', '$compileProvider', '$filterProvider', '$provide', '$ocLazyLoadProvider', 'JS_REQUIRES',
  6. function ($authProvider, $httpProvider, $stateProvider, $urlRouterProvider, $controllerProvider, $compileProvider, $filterProvider, $provide, $ocLazyLoadProvider, jsRequires) {
  7. $httpProvider.interceptors.push([
  8. '$injector',
  9. function ($injector) {
  10. return {
  11. request: function (req) {
  12. $injector.invoke([
  13. '$http',
  14. function ($http) {
  15. // console.log(req);
  16. }
  17. ]);
  18. return req;
  19. },
  20. response: function (resp) {
  21. $injector.invoke([
  22. '$http','$state',
  23. function ($http,$state) {
  24. // if(resp.status == 302){
  25. // $state.go('login.signin');
  26. // }
  27. }
  28. ]);
  29. return resp;
  30. },
  31. responseError: function (resp) {
  32. $injector.invoke([
  33. '$http','$state',
  34. function ($http,$state) {
  35. if(resp.status == 444){
  36. // $state.go('login.signin');
  37. if(window.location.hash !== '#/login/signin'){
  38. window.location.href = location.origin;
  39. }
  40. }
  41. }
  42. ]);
  43. return $injector.get('$q').reject(resp);
  44. }
  45. };
  46. }
  47. ]);
  48. //$authProvider,
  49. app.controller = $controllerProvider.register;
  50. app.directive = $compileProvider.directive;
  51. app.filter = $filterProvider.register;
  52. app.factory = $provide.factory;
  53. app.service = $provide.service;
  54. app.constant = $provide.constant;
  55. app.value = $provide.value;
  56. $authProvider.configure({
  57. // apiUrl: 'http://192.168.2.63/service',
  58. // apiUrl: 'http://localhost/service',//本地
  59. // apiUrl: 'http://192.168.3.101/service', //101
  60. apiUrl: 'http://' + document.domain + '/service', //139
  61. // tokenValidationPath: '/auth/validate_token',
  62. signOutUrl: '/auth/logout2',
  63. emailSignInPath: '/auth/loginEncrypt',
  64. // confirmationSuccessUrl: window.location.href,
  65. // passwordResetPath: '/auth/password',
  66. // passwordUpdatePath: '/auth/password',
  67. // passwordResetSuccessUrl: window.location.href,
  68. storage: 'cookies',
  69. forceValidateToken: true,
  70. validateOnPageLoad: true,
  71. // authProviderPaths: {
  72. // local: '/auth/login'
  73. // },
  74. // tokenFormat: {
  75. // "access-token": "{{ token }}",
  76. // // client: "{{ clientId }}",
  77. // expiry: "{{ expiry }}"
  78. // // uid: "{{ uid }}"
  79. // },
  80. cookieOps: {
  81. // path: "/",
  82. expires: 9999,
  83. expirationUnit: 'seconds',
  84. // secure: false,
  85. // domain: 'dashitech.com'
  86. },
  87. // handleLoginResponse: function(response, authscope) {
  88. // var authData = {
  89. // };
  90. // // console.log(response);
  91. // // console.log(authscope);
  92. // // if(response.sessionId==null){
  93. // // authData.error = 400;
  94. // // }else{
  95. // response.data.user.menu = response.data.menu;
  96. // authData = {
  97. // auth_token: 123456,
  98. // // client_id: 1,
  99. // expiry: response.data.expiry
  100. // // uid: response.data.user.id
  101. // };
  102. // angular.extend(authData,response.data.user);
  103. // return authData;
  104. // // }
  105. // // return authData;
  106. // },
  107. parseExpiry: function (headers) {
  108. // convert from UTC ruby (seconds) to UTC js (milliseconds)
  109. return 1e3 * parseInt(headers['expiry'], 10) || null
  110. },
  111. handleLoginResponse: function (response, authscope) {
  112. // console.log(response);
  113. var authData = {
  114. };
  115. var heads = authscope.retrieveData("auth_headers")
  116. if (response.state == "201") {
  117. if (!response.data.user) {
  118. response.data.user = {};
  119. }
  120. response.data.user.menu = response.data.menu;
  121. // authData = {
  122. // auth_token: heads['access-token'],
  123. // expiry: heads['expiry']
  124. // };
  125. // if (response.data.user.loginExtension) {
  126. // $rootScope.start(response.data.user.loginExtension);
  127. // }
  128. angular.extend(authData, response.data.user);
  129. // return authData;
  130. } else if (response.state == "200") {
  131. if (!response.data.user) {
  132. response.data.user = {};
  133. }
  134. response.data.user.menu = response.data.menu;
  135. // authData = {
  136. // auth_token: heads['access-token'],
  137. // expiry: heads['expiry']
  138. // };
  139. angular.extend(authData, response.data.user);
  140. // return authData;
  141. } else if (response.state == "500") {
  142. authData.error = 500;
  143. } else {
  144. authData.error = 400;
  145. }
  146. // }
  147. return authData;
  148. },
  149. handleAccountUpdateResponse: function (response) {
  150. return response;
  151. },
  152. handleTokenValidationResponse: function (response) {
  153. var authData = {
  154. };
  155. if (response.state == 200) {
  156. if (!response.data.user) {
  157. response.data.user = {};
  158. }
  159. response.data.user['menu'] = response.data.menu;
  160. // if (response.data.user.loginExtension) {
  161. // $rootScope.start(response.data.loginExtension);
  162. // }
  163. // sessionStorage.userdata = JSON.stringify(response.data.user);
  164. angular.extend(authData, response.data.user);
  165. } else {
  166. authData.error = 501;
  167. }
  168. return authData;
  169. }
  170. });
  171. // LAZY MODULES
  172. $ocLazyLoadProvider.config({
  173. debug: false,
  174. events: true,
  175. modules: jsRequires.modules
  176. });
  177. // APPLICATION ROUTES
  178. // -----------------------------------
  179. // if (!$httpProvider.defaults.headers.get) {
  180. // $httpProvider.defaults.headers.get = {};
  181. // }
  182. // $httpProvider.defaults.headers.common["X-Requested-with"] = 'XMLHttpRequest';
  183. // $httpProvider.defaults.headers.get['Cache-Control'] = 'no-cache';
  184. // $httpProvider.defaults.headers.get['Pragma'] = 'no-cache';
  185. // For any unmatched url, redirect to /app/dashboard
  186. // $urlRouterProvider.otherwise("/app/knowledge/forum");
  187. $urlRouterProvider.otherwise("/");
  188. //
  189. // Set up the states
  190. $stateProvider.state('app', {
  191. url: "/app",
  192. templateUrl: "assets/views/app.html",
  193. resolve: loadSequence('modernizr', 'moment', 'angularMoment', 'uiSwitch', 'perfect-scrollbar-plugin', 'toaster', 'ngAside', 'vAccordion', 'sweet-alert', 'chartjs', 'tc.chartjs', 'oitozero.ngSweetAlert', 'ladda', 'angular-ladda', 'chatCtrl'),
  194. abstract: true
  195. // }).state('app.dashboard', {
  196. // url: "/dashboard{userinform}",
  197. // templateUrl: "assets/views/dashboard/newdash.html",
  198. // resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'ng-nestable', 'ngTable', 'ckeditor', 'jquery-sparkline', 'sortable', 'ui.mask', 'api-check', 'formly', 'moment', 'mwl.calendar', 'angularFormly', 'customformCtrl', 'newdashCtrl'),
  199. // title: 'dashboard.MAIN',
  200. // ncyBreadcrumb: {
  201. // label: 'Dashboard'
  202. // }
  203. })
  204. .state('app.dashboard', {
  205. url: "/dashboard{userinform}",
  206. templateUrl: "assets/views/dashboard/newdash.html",
  207. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'ng-nestable', 'ngTable', 'ckeditor', 'jquery-sparkline', 'sortable', 'ui.mask', 'api-check', 'formly', 'moment', 'mwl.calendar', 'calendarCtrl', 'angularFormly', 'customformCtrl', 'newdashCtrl'),
  208. title: 'dashboard.MAIN',
  209. ncyBreadcrumb: {
  210. label: 'Dashboard'
  211. }
  212. })
  213. .state('app.newOrder', {
  214. url: "/newOrder",
  215. templateUrl: "assets/views/newOrder.html",
  216. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'newOrderCtrl'),
  217. title: 'dashboard.MAIN',
  218. ncyBreadcrumb: {
  219. label: 'Dashboard'
  220. }
  221. })
  222. .state('app.D3new', {
  223. url: "/D3new",
  224. templateUrl: "assets/views/means/D3new.html",
  225. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'D3a', 'D3new'),
  226. title: 'dashboard.MAIN',
  227. ncyBreadcrumb: {
  228. label: 'Dashboard'
  229. }
  230. })
  231. .state('childpape', {
  232. url: '/childpape/{starttime}/{endtime}/{model}',
  233. templateUrl: "assets/views/report/childpape.html",
  234. resolve: loadSequence('modernizr', 'moment', 'angularMoment', 'ui.grid', 'uiSwitch', 'perfect-scrollbar-plugin', 'toaster', 'ngAside', 'vAccordion', 'sweet-alert', 'chartjs', 'tc.chartjs', 'oitozero.ngSweetAlert', 'ladda', 'angular-ladda', 'ui.select', 'angularBootstrapNavTree', 'angularFileUpload', 'multi.select.tree', 'childpapeCtrl'),
  235. title: 'report.LISTDesc',
  236. ncyBreadcrumb: {
  237. label: 'Report View'
  238. }
  239. })
  240. .state('cmdbmap', {
  241. url: "/cmdbmap",
  242. templateUrl: "assets/views/means/D3two.html",
  243. resolve: loadSequence('modernizr', 'moment', 'angularMoment', 'ui.grid', 'uiSwitch', 'perfect-scrollbar-plugin', 'toaster', 'ngAside', 'vAccordion', 'sweet-alert', 'chartjs', 'tc.chartjs', 'oitozero.ngSweetAlert', 'ladda', 'angular-ladda', 'ui.select', 'angularBootstrapNavTree', 'angularFileUpload', 'multi.select.tree', 'D3a', 'D3new'),
  244. title: 'dashboard.MAIN',
  245. ncyBreadcrumb: {
  246. label: 'Dashboard'
  247. }
  248. }).state('cmdbcontrast', {
  249. url: '/cmdbcontrast/{model}',
  250. templateUrl: "assets/views/means/cmdbcontrast.html",
  251. resolve: loadSequence('modernizr', 'moment', 'angularMoment', 'uiSwitch', 'perfect-scrollbar-plugin', 'toaster', 'ngAside', 'vAccordion', 'sweet-alert', 'chartjs', 'tc.chartjs', 'oitozero.ngSweetAlert', 'jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'Timeline', 'cmdbcontrastCtrl'),
  252. title: 'means.LIST',
  253. pdKey: 'applicationForm',
  254. icon: 'ti-list',
  255. ncyBreadcrumb: {
  256. label: 'means list'
  257. }
  258. }).state('dashlefttop', {
  259. url: "/dashlefttop",
  260. templateUrl: "assets/views/dashboard/tpl/largedashboard/dash-lefttop.html",
  261. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'largedashboardCtrl'),
  262. title: 'dashboard.MAIN',
  263. ncyBreadcrumb: {
  264. label: 'Dashboard'
  265. }
  266. })
  267. .state('dashleftbottom', {
  268. url: "/dashleftbottom",
  269. templateUrl: "assets/views/dashboard/tpl/largedashboard/dash-leftbottom.html",
  270. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.mask', 'largedashboardCtrl'),
  271. title: 'dashboard.MAIN',
  272. ncyBreadcrumb: {
  273. label: 'Dashboard'
  274. }
  275. }).state('dashrighttop', {
  276. url: "/dashrighttop",
  277. templateUrl: "assets/views/dashboard/tpl/largedashboard/dash-righttop.html",
  278. resolve: loadSequence('jquery-sparkline', 'moment', 'ladda', 'charts', 'nodatachart', 'chartthree', 'largedashboardCtrl'),
  279. title: 'dashboard.MAIN',
  280. ncyBreadcrumb: {
  281. label: 'Dashboard'
  282. }
  283. }).state('dashrightbottom', {
  284. url: "/dashrightbottom",
  285. templateUrl: "assets/views/dashboard/tpl/largedashboard/dash-rightbottom.html",
  286. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'moment', 'ladda', 'charts', 'chartthree', 'largedashboardCtrl'),
  287. title: 'dashboard.MAIN',
  288. ncyBreadcrumb: {
  289. label: 'Dashboard'
  290. }
  291. }).state('app.desk', {
  292. url: '/desk',
  293. template: '<div ui-view class="fade-in-up"></div>',
  294. title: 'desk',
  295. // pdKey: 'bpm_incident',
  296. ncyBreadcrumb: {
  297. label: 'desk'
  298. }
  299. // 告警转事件列表
  300. }).state('app.desk.jry_emergency', {
  301. url: '/jry_emergency',
  302. templateUrl: "assets/views/desk/jry_emergency.html",
  303. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'jry_emergencyCtrl'),
  304. title: 'chart.LIST',
  305. // pdKey: 'bpm_incident',
  306. icon: 'ti-list',
  307. ncyBreadcrumb: {
  308. label: 'chart'
  309. }
  310. }).state('app.desk.chart', {
  311. url: '/chart/:tab',
  312. templateUrl: "assets/views/desk/chart.html",
  313. resolve: loadSequence('jquery-sparkline', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'chartCtrl'),
  314. // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'moment', 'mwl.calendar', 'ui.grid', 'chartCtrl'),
  315. title: 'chart.LIST',
  316. // pdKey: 'bpm_incident',
  317. icon: 'ti-list',
  318. ncyBreadcrumb: {
  319. label: 'chart'
  320. }
  321. }).state('app.desk.record', {
  322. url: '/record',
  323. templateUrl: "assets/views/desk/record.html",
  324. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'ui.select', 'moment', 'recordCtrl'),
  325. title: 'record.LIST',
  326. // pdKey: 'bpm_incident',
  327. icon: 'fa-tint',
  328. ncyBreadcrumb: {
  329. label: 'new watch'
  330. }
  331. }).state('app.desk.calllog', {
  332. url: '/calllog',
  333. templateUrl: "assets/views/desk/calllog.html",
  334. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'calllogCtrl'),
  335. title: 'record.LIST',
  336. // pdKey: 'bpm_incident',
  337. icon: 'fa-tint',
  338. ncyBreadcrumb: {
  339. label: 'new watch'
  340. }
  341. }).state('app.desk.detail', {
  342. url: '/detail/{model}',
  343. templateUrl: "assets/views/desk/jry_wxDetail.html",
  344. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'jry_wxDetailCtrl'),
  345. title: 'record.LIST',
  346. // pdKey: 'bpm_incident',
  347. icon: 'fa-tint',
  348. ncyBreadcrumb: {
  349. label: 'new watch'
  350. }
  351. }).state('app.desk.form_editor', {
  352. url: '/form_editor/{formKey}/{service}/{model}',
  353. templateUrl: "assets/views/system/tpl/detail.html",
  354. title: 'ui-form',
  355. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'chartCtrl', 'customformCtrl', 'sysformCtrl'),
  356. ncyBreadcrumb: {
  357. label: 'ui-form'
  358. }
  359. }).state('app.file', {
  360. url: '/file',
  361. template: '<div ui-view class="fade-in-up"></div>',
  362. title: 'file',
  363. pdKey: 'bpm_file',
  364. ncyBreadcrumb: {
  365. label: 'File'
  366. }
  367. // 文档管理
  368. }).state('app.file.manage', {
  369. url: '/list',
  370. templateUrl: "assets/views/file/list.html",
  371. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'jry_fileCtrl'),
  372. // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'angularBootstrapNavTree', 'jry_fileCtrl'),
  373. title: 'incident.LIST',
  374. pdKey: 'bpm_file',
  375. icon: 'ti-list',
  376. ncyBreadcrumb: {
  377. label: 'file list'
  378. }
  379. // 索引管理
  380. }).state('app.file.indexes', {
  381. url: '/indexes',
  382. templateUrl: "assets/views/file/indexes.html",
  383. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'jry_indexesCtrl'),
  384. title: 'incident.LIST',
  385. pdKey: 'bpm_file',
  386. icon: 'ti-list',
  387. ncyBreadcrumb: {
  388. label: 'file list'
  389. }
  390. // 引入文件
  391. }).state('app.file.open_indexes', {
  392. url: '/indexes/{fileMessage}',
  393. templateUrl: "assets/views/file/open_indexes.html",
  394. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'jry_open_indexesCtrl'),
  395. title: 'incident.LIST',
  396. pdKey: 'bpm_file',
  397. icon: 'ti-list',
  398. ncyBreadcrumb: {
  399. label: 'file list'
  400. }
  401. //任务管理--jry
  402. }).state('app.task', {
  403. url: '/task',
  404. template: '<div ui-view class="fade-in-up"></div>',
  405. title: 'task',
  406. pdKey: 'bpm_task',
  407. ncyBreadcrumb: {
  408. label: 'Task'
  409. }
  410. // 新建任务
  411. }).state('app.task.newTask', {
  412. url: '/newTask',
  413. templateUrl: "assets/views/task/taskForm.html",
  414. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'taskFormCtr'),
  415. title: 'knowledge.NEW',
  416. icon: 'fa-tint',
  417. ncyBreadcrumb: {
  418. label: 'new knowledge'
  419. }
  420. //上下班管理
  421. }).state('app.working', {
  422. url: '/working',
  423. template: '<div ui-view class="fade-in-up"></div>',
  424. title: 'working',
  425. pdKey: 'bpm_working',
  426. ncyBreadcrumb: {
  427. label: 'working'
  428. }
  429. // 上下班管理
  430. }).state('app.working.manage', {
  431. url: '/manage',
  432. templateUrl: "assets/views/working/manage.html",
  433. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'angularTree', 'customformCtrl', 'workingFormCtr'),
  434. title: 'working.manage',
  435. icon: 'fa-tint',
  436. ncyBreadcrumb: {
  437. label: 'working.manage'
  438. }
  439. //任务表单
  440. }).state('app.task.editTask', {
  441. url: '/editTask/{formKey}/{model}',
  442. templateUrl: "assets/views/task/taskForm.html",
  443. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'ui.select', 'angularBootstrapNavTree', 'customformCtrl', 'taskFormCtr'),
  444. title: 'knowledge.NEW',
  445. icon: 'fa-tint',
  446. ncyBreadcrumb: {
  447. label: 'new knowledge'
  448. }
  449. // 任务清单
  450. }).state('app.task.taskDetailed', {
  451. url: '/detailed',
  452. templateUrl: "assets/views/task/taskDetailed.html",
  453. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'taskDetailedCtr'),
  454. title: 'knowledge.NEW',
  455. icon: 'fa-tint',
  456. ncyBreadcrumb: {
  457. label: 'new knowledge'
  458. }
  459. // 月度任务
  460. }).state('app.task.moonTask', {
  461. url: '/moonTask',
  462. templateUrl: "assets/views/task/moonTask.html",
  463. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'api-check', 'formly', 'angularFormly', 'ui.grid', 'moment', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'ui.select', 'angularBootstrapNavTree', 'moonTaskCtrl'),
  464. title: 'knowledge.List',
  465. icon: 'fa-tint',
  466. ncyBreadcrumb: {
  467. label: 'list knowledge'
  468. }
  469. // 任务列表
  470. }).state('app.task.taskList', {
  471. url: '/taskList',
  472. templateUrl: "assets/views/task/taskList.html",
  473. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'api-check', 'formly', 'angularFormly', 'ui.grid', 'moment', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'ui.select', 'angularBootstrapNavTree', 'taskListCtrl'),
  474. title: 'knowledge.List',
  475. icon: 'fa-tint',
  476. ncyBreadcrumb: {
  477. label: 'list knowledge'
  478. }
  479. }).state('app.incident', {
  480. url: '/incident',
  481. template: '<div ui-view class="fade-in-up"></div>',
  482. title: 'incident',
  483. pdKey: 'bpm_incident',
  484. ncyBreadcrumb: {
  485. label: 'Incident'
  486. }
  487. }).state('app.incident.list', {
  488. url: '/list/{model}/:tab/:state/:date',
  489. templateUrl: "assets/views/incident/list.html",
  490. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'incidentCtrl'),
  491. title: 'incident.LIST',
  492. pdKey: 'bpm_incident',
  493. icon: 'ti-list',
  494. ncyBreadcrumb: {
  495. label: 'incident list'
  496. }
  497. }).state('app.working.history', {
  498. url: '/history/:tab/:state',
  499. templateUrl: "assets/views/working/list.html",
  500. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'workingHistoryFormCtr'),
  501. title: 'incident.LIST',
  502. pdKey: 'bpm_incident',
  503. icon: 'ti-list',
  504. ncyBreadcrumb: {
  505. label: 'incident list'
  506. }
  507. }).state('app.incident.editor', {
  508. url: '/editor/{taskId}/{processInstanceId}/{dataId}',
  509. templateUrl: "assets/views/customform/index.html",
  510. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ng-nestable', 'monospaced.elastic', 'touchspin-plugin', 'ckeditor-plugin', 'ckeditor', 'ladda', 'angular-ladda', 'jquery-sparkline', 'ngTable', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  511. title: 'incident.NEW',
  512. pdKey: 'bpm_incident',
  513. icon: 'fa-tint',
  514. ncyBreadcrumb: {
  515. label: 'new incident'
  516. }
  517. }).state('app.incident.watch', {
  518. url: '/watch/{model}',
  519. templateUrl: "assets/views/customform/index.html",
  520. resolve: loadSequence('jquery-sparkline', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  521. title: 'incident.NEW',
  522. pdKey: 'bpm_incident',
  523. icon: 'fa-tint',
  524. ncyBreadcrumb: {
  525. label: 'new incident'
  526. }
  527. }).state('app.incident.detail', {
  528. url: '/detail/:formKey/:pdKey/:dataId/:taskId/:processInstanceId/:isChart/:isRecord',
  529. templateUrl: "assets/views/customform/detail.html",
  530. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'customformDetailCtrl', 'sanitize'),
  531. title: 'form detail',
  532. icon: 'ti-list',
  533. ncyBreadcrumb: {
  534. label: 'detail'
  535. }
  536. }).state('app.incident.follow', {
  537. url: '/follow/{processInstanceId}',
  538. templateUrl: "assets/views/customform/indexfollow.html",
  539. resolve: loadSequence('jquery-sparkline', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'incidentCtrl'),
  540. // title: 'incident.LIST',
  541. pdKey: 'bpm_incident',
  542. icon: 'fa-tint',
  543. ncyBreadcrumb: {
  544. label: 'new incident'
  545. }
  546. }).state('app.incident.title', {
  547. url: '/editor/{model}/{myData}',
  548. templateUrl: "assets/views/customform/index.html",
  549. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'ng-nestable', 'monospaced.elastic', 'touchspin-plugin', 'ckeditor-plugin', 'ckeditor', 'spin', 'ladda', 'angular-ladda', 'jquery-sparkline', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  550. title: 'incident.NEW',
  551. pdKey: 'bpm_incident',
  552. icon: 'fa-tint',
  553. ncyBreadcrumb: {
  554. label: 'new incident'
  555. }
  556. })
  557. .state('app.incident.chart', {
  558. url: '/chart/{model}',
  559. templateUrl: "assets/views/customform/index.html",
  560. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'ng-nestable', 'monospaced.elastic', 'touchspin-plugin', 'ckeditor-plugin', 'ckeditor', 'spin', 'ladda', 'angular-ladda', 'jquery-sparkline', 'ngTable', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  561. title: 'incident.NEW',
  562. pdKey: 'bpm_incident',
  563. icon: 'fa-tint',
  564. ncyBreadcrumb: {
  565. label: 'new incident'
  566. }
  567. })
  568. //服务请求页面路由
  569. .state('app.reService', {
  570. url: '/reService',
  571. template: '<div ui-view class="fade-in-up"></div>',
  572. title: 'reService',
  573. pdKey: 'bpm_reService',
  574. ncyBreadcrumb: {
  575. label: 'reService'
  576. }
  577. })
  578. //服务请求>服务列表
  579. .state('app.reService.manager', {
  580. url: '/manager',
  581. templateUrl: "assets/views/reService/manager.html",
  582. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'angularBootstrapNavTree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'reServiceCtrl'),
  583. title: 'reService.VIEW',
  584. icon: 'ti-list',
  585. ncyBreadcrumb: {
  586. label: 'reService list'
  587. }
  588. })
  589. //服务请求>新建服务事件
  590. .state('app.reService.newService', {
  591. url: '/newService/{pdKey}/{formUiStart}/{formUiEdit}/{formUiName}/{userId}',
  592. templateUrl: "assets/views/customform/index.html",
  593. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'ng-nestable', 'monospaced.elastic', 'touchspin-plugin', 'ckeditor-plugin', 'ckeditor', 'spin', 'ladda', 'angular-ladda', 'jquery-sparkline', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  594. title: 'reService.NEW',
  595. // pdKey: 'bpm_reService',
  596. icon: 'fa-tint',
  597. ncyBreadcrumb: {
  598. label: 'new reService'
  599. }
  600. })
  601. //服务请求>服务请求编辑
  602. .state('app.reService.editor', {
  603. url: '/editor/{taskId}/{processInstanceId}/{pdKey}/{formUiEdit}',
  604. templateUrl: "assets/views/customform/index.html",
  605. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'ng-nestable', 'monospaced.elastic', 'touchspin-plugin', 'ckeditor-plugin', 'ckeditor', 'jquery-sparkline', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  606. title: 'reService.NEW',
  607. pdKey: 'bpm_reService',
  608. icon: 'fa-tint',
  609. ncyBreadcrumb: {
  610. label: 'new reService'
  611. }
  612. })
  613. //服务请求>服务请求查看
  614. .state('app.reService.detail', {
  615. url: '/detail/{formKey}/{dataId}/{taskId}/{processInstanceId}/{pdKey}',
  616. templateUrl: "assets/views/customform/detail.html",
  617. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'customformDetailCtrl'),
  618. title: 'form detail',
  619. icon: 'ti-list',
  620. ncyBreadcrumb: {
  621. label: 'detail'
  622. }
  623. })
  624. .state('app.watch', {
  625. url: '/watch',
  626. template: '<div ui-view class="fade-in-up"></div>',
  627. title: 'watch',
  628. pdKey: 'bpm_watch',
  629. ncyBreadcrumb: {
  630. label: 'watch'
  631. }
  632. }).state('app.watch.list', {
  633. url: '/list',
  634. templateUrl: "assets/views/watch/watch.html",
  635. resolve: loadSequence('jquery-sparkline', 'ui.grid', 'watchCtrl'),
  636. title: 'watch.LIST',
  637. pdKey: 'bpm_watch',
  638. icon: 'ti-list',
  639. ncyBreadcrumb: {
  640. label: 'watch list'
  641. }
  642. })
  643. .state('app.problem', {
  644. url: '/problem',
  645. template: '<div ui-view class="fade-in-up"></div>',
  646. title: 'problem',
  647. pdKey: 'bpm_problem',
  648. ncyBreadcrumb: {
  649. label: 'Problem'
  650. }
  651. }).state('app.problem.list', {
  652. url: '/list',
  653. templateUrl: "assets/views/problem/list.html",
  654. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'problemCtrl'),
  655. title: 'problem.LIST',
  656. pdKey: 'bpm_problem',
  657. icon: 'ti-list',
  658. ncyBreadcrumb: {
  659. label: 'problem list'
  660. }
  661. }).state('app.problem.editor', {
  662. url: '/editor/{taskId}/{processInstanceId}/{dataId}',
  663. templateUrl: "assets/views/customform/index.html",
  664. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  665. title: 'problem.NEW',
  666. pdKey: 'bpm_problem',
  667. icon: 'fa-tint',
  668. ncyBreadcrumb: {
  669. label: 'new problem'
  670. }
  671. }).state('app.problem.incident', {
  672. url: '/incident/{model}',
  673. templateUrl: "assets/views/customform/index.html",
  674. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  675. title: 'problem.NEW',
  676. pdKey: 'bpm_problem',
  677. icon: 'fa-tint',
  678. ncyBreadcrumb: {
  679. label: 'new problem'
  680. }
  681. }).state('app.change.problem', {
  682. url: '/change/{model}',
  683. templateUrl: "assets/views/customform/index.html",
  684. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  685. title: 'change.NEW',
  686. pdKey: 'bpm_change',
  687. icon: 'fa-tint',
  688. ncyBreadcrumb: {
  689. label: 'new change'
  690. }
  691. })
  692. .state('app.change', {
  693. url: '/change',
  694. template: '<div ui-view class="fade-in-up"></div>',
  695. title: 'change',
  696. pdKey: 'bpm_change',
  697. ncyBreadcrumb: {
  698. label: 'Change'
  699. }
  700. }).state('app.change.list', {
  701. url: '/list',
  702. templateUrl: "assets/views/change/list.html",
  703. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'changeCtrl'),
  704. title: 'change.LIST',
  705. pdKey: 'bpm_change',
  706. icon: 'ti-list',
  707. ncyBreadcrumb: {
  708. label: 'rfc list'
  709. } //incident
  710. }).state('app.change.editor', {
  711. url: '/editor/{taskId}/{processInstanceId}/{dataId}',
  712. templateUrl: "assets/views/customform/index.html",
  713. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  714. title: 'change.NEW',
  715. pdKey: 'bpm_change',
  716. icon: 'fa-tint',
  717. ncyBreadcrumb: {
  718. label: 'new rfc'
  719. }
  720. }).state('app.change.incident', {
  721. url: '/incident/{model}',
  722. templateUrl: "assets/views/customform/index.html",
  723. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  724. title: 'change.NEW',
  725. pdKey: 'bpm_change',
  726. icon: 'fa-tint',
  727. ncyBreadcrumb: {
  728. label: 'new rfc'
  729. }
  730. })
  731. .state('app.change.release', {
  732. url: '/release/{model}',
  733. templateUrl: "assets/views/customform/index.html",
  734. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  735. title: 'change.NEW',
  736. pdKey: 'bpm_release',
  737. icon: 'fa-tint',
  738. ncyBreadcrumb: {
  739. label: 'new rfc'
  740. }
  741. }).state('app.report', {
  742. url: '/report',
  743. template: '<div ui-view class="fade-in-up"></div>',
  744. title: 'Report Elements',
  745. ncyBreadcrumb: {
  746. label: 'Report Elements'
  747. }
  748. }).state('app.report.view', {
  749. url: '/elements',
  750. templateUrl: "assets/views/report/report.html",
  751. resolve: loadSequence('jquery-sparkline', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'reportCtrl'),
  752. title: 'report.LISTDesc',
  753. ncyBreadcrumb: {
  754. label: 'Report View'
  755. }
  756. }).state('app.report.charging', {
  757. url: '/charging',
  758. templateUrl: "assets/views/report/charging.html",
  759. resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'chargingCtrl'),
  760. title: 'report.LISTDesc',
  761. ncyBreadcrumb: {
  762. label: 'Report View'
  763. }
  764. }).state('app.report.analysis', {
  765. url: '/analysis',
  766. templateUrl: "assets/views/report/analysis.html",
  767. resolve: loadSequence('jquery-sparkline', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'reportanalysisCtrl'),
  768. title: 'report.LISTDesc',
  769. ncyBreadcrumb: {
  770. label: 'Report View'
  771. }
  772. }).state('app.report.handlepeople', {
  773. url: '/handlepeople',
  774. templateUrl: "assets/views/report/handlepeople.html",
  775. resolve: loadSequence('jquery-sparkline', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'reporthandlepeopleCtrl'),
  776. title: 'report.LISTDesc',
  777. ncyBreadcrumb: {
  778. label: 'Report View'
  779. }
  780. }).state('app.report.handlegroup', {
  781. url: '/handlegroup',
  782. templateUrl: "assets/views/report/handlegroup.html",
  783. resolve: loadSequence('jquery-sparkline', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'reporthandlegroupCtrl'),
  784. title: 'report.LISTDesc',
  785. ncyBreadcrumb: {
  786. label: 'Report View'
  787. }
  788. }).state('app.report.suorce', {
  789. url: '/suorce',
  790. templateUrl: "assets/views/report/suorce.html",
  791. resolve: loadSequence('jquery-sparkline', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'reportsuorceCtrl'),
  792. title: 'report.LISTDesc',
  793. ncyBreadcrumb: {
  794. label: 'Report View'
  795. }
  796. }).state('app.report.catergry', {
  797. url: '/catergry',
  798. templateUrl: "assets/views/report/catergry.html",
  799. resolve: loadSequence('jquery-sparkline', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'reportcatergryCtrl'),
  800. title: 'report.LISTDesc',
  801. ncyBreadcrumb: {
  802. label: 'Report View'
  803. }
  804. }).state('app.report.efficiency', {
  805. url: '/efficiency',
  806. templateUrl: "assets/views/report/efficiency.html",
  807. resolve: loadSequence('jquery-sparkline', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'reportefficiencyCtrl'),
  808. title: 'report.LISTDesc',
  809. ncyBreadcrumb: {
  810. label: 'Report View'
  811. }
  812. }).state('app.report.nxreport', {
  813. url: '/nxreport',
  814. templateUrl: "assets/views/report/nxreport.html",
  815. // resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'spin', 'ladda', 'angular-ladda', 'moment', 'nxreportCtrl'),
  816. resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'nxreportCtrl'),
  817. title: 'report.LISTDesc',
  818. ncyBreadcrumb: {
  819. label: 'Report View'
  820. }
  821. }).state('app.report.deck_report', {
  822. url: '/deck_report',
  823. templateUrl: "assets/views/report/deck_report.html",
  824. // resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'spin', 'ladda', 'angular-ladda', 'moment', 'nxreportCtrl'),
  825. resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'deck_reportCtrl'),
  826. title: 'report.LISTDesc',
  827. ncyBreadcrumb: {
  828. label: 'Report View'
  829. }
  830. }).state('app.report.incident_report', {
  831. url: '/incident_report',
  832. templateUrl: "assets/views/report/incident_report.html",
  833. // resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'spin', 'ladda', 'angular-ladda', 'moment', 'nxreportCtrl'),
  834. resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'spin', 'ladda', 'angular-ladda', 'moment', 'incident_reportCtrl'),
  835. title: 'report.LISTDesc',
  836. ncyBreadcrumb: {
  837. label: 'Report View'
  838. }
  839. }).state('app.report.service_form', {//服务台报表-seimin
  840. url: '/service_form',
  841. templateUrl: "assets/views/report/service_form.html",
  842. resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'service_formCtrl'),
  843. title: 'report.LISTDesc',
  844. ncyBreadcrumb: {
  845. label: 'Report View'
  846. }
  847. }).state('app.report.event_form', {//事件报表-seimin
  848. url: '/event_form',
  849. templateUrl: "assets/views/report/event_form.html",
  850. resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'spin', 'ladda', 'angular-ladda', 'moment', 'event_formCtrl'),
  851. title: 'report.LISTDesc',
  852. ncyBreadcrumb: {
  853. label: 'Report View'
  854. }
  855. }).state('app.release', {
  856. url: '/release',
  857. template: '<div ui-view class="fade-in-up"></div>',
  858. title: 'release',
  859. pdKey: 'bpm_release',
  860. ncyBreadcrumb: {
  861. label: 'release'
  862. }
  863. }).state('app.release.list', {
  864. url: '/list',
  865. templateUrl: "assets/views/release/list.html",
  866. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'releaseCtrl'),
  867. title: 'release.LIST',
  868. pdKey: 'bpm_release',
  869. icon: 'ti-list',
  870. ncyBreadcrumb: {
  871. label: 'release list'
  872. }
  873. }).state('app.release.editor', {
  874. url: '/editor/{taskId}/{processInstanceId}/{dataId}',
  875. templateUrl: "assets/views/customform/index.html",
  876. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  877. title: 'release.NEW',
  878. pdKey: 'bpm_release',
  879. icon: 'fa-tint',
  880. ncyBreadcrumb: {
  881. label: 'new release'
  882. }
  883. })
  884. .state('app.process', {
  885. url: '/process',
  886. template: '<div ui-view class="fade-in-up"></div>',
  887. title: 'Process',
  888. ncyBreadcrumb: {
  889. label: 'Process'
  890. }
  891. }).state('app.process.list', {
  892. url: '/list',
  893. templateUrl: "assets/views/process/list.html",
  894. title: 'process.LIST',
  895. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'processCtrl'),
  896. icon: 'ti-list',
  897. ncyBreadcrumb: {
  898. label: 'Process list'
  899. }
  900. }).state('app.process.modeler', {
  901. url: '/modeler/{modelId}',
  902. templateUrl: "assets/views/process/modeler.html",
  903. resolve: loadSequence('jquery-sparkline', 'bpmn-js-properties', 'processCtrl'),
  904. title: 'process.MODELER',
  905. icon: 'fa-tint',
  906. ncyBreadcrumb: {
  907. label: 'modeler'
  908. }
  909. })
  910. .state('app.cmdb', {
  911. url: '/cmdb',
  912. template: '<div ui-view class="fade-in-up"></div>',
  913. title: 'CMDB',
  914. ncyBreadcrumb: {
  915. label: 'CMDB'
  916. }
  917. }).state('app.cmdb.plist', {
  918. url: '/plist',
  919. templateUrl: "assets/views/cmdb/plist.html",
  920. title: 'configuremanagerdb.PLIST',
  921. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'cmdbCtrl'),
  922. pdKey: 'bpm_configure',
  923. icon: 'ti-list',
  924. ncyBreadcrumb: {
  925. label: 'cmdbList'
  926. }
  927. }).state('app.cmdb.modeler', {
  928. url: '/editor/{taskId}/{processInstanceId}',
  929. templateUrl: "assets/views/customform/index.html",
  930. title: 'configuremanagerdb.MODELER',
  931. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  932. pdKey: 'bpm_configure',
  933. icon: 'ti-list',
  934. ncyBreadcrumb: {
  935. label: 'modeler'
  936. }
  937. })
  938. .state('app.cmdb.list', {
  939. url: '/list',
  940. templateUrl: "assets/views/cmdb/list.html",
  941. title: 'configuremanagerdb.LIST',
  942. resolve: loadSequence('spin', 'ladda', 'angular-ladda', 'jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'ui.grid', 'customformCtrl', 'cmdbListCtrl'),
  943. icon: 'ti-list',
  944. ncyBreadcrumb: {
  945. label: 'cmdbList'
  946. }
  947. }).state('app.cmdb.viewer', {
  948. url: '/view/{modelId}',
  949. templateUrl: "assets/views/cmdb/view.html",
  950. resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'd3', 'cmdbViewCtrl'),
  951. title: 'configuremanagerdb.VIEW',
  952. icon: 'fa-tint',
  953. ncyBreadcrumb: {
  954. label: 'cmdb viewer'
  955. }
  956. }).state('app.cmdb.change', {
  957. url: '/change/{model}',
  958. templateUrl: "assets/views/customform/index.html",
  959. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  960. title: 'configuremanagerdb.MODELER',
  961. pdKey: 'bpm_configure',
  962. icon: 'fa-tint',
  963. ncyBreadcrumb: {
  964. label: 'new rfc'
  965. }
  966. })
  967. .state('app.knowledge', {
  968. url: '/knowledge',
  969. template: '<div ui-view class="fade-in-up"></div>',
  970. title: 'knowledge',
  971. ncyBreadcrumb: {
  972. label: 'knowledge'
  973. }
  974. }).state('app.knowledge.manager', {
  975. url: '/manager/{model}',
  976. templateUrl: "assets/views/knowledge/manager.html",
  977. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'ng-nestable', 'monospaced.elastic', 'touchspin-plugin', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'ui.grid', 'knowledgeCtrl'),
  978. title: 'knowledgebase.VIEW',
  979. // params: { "fromstate": null },
  980. cache: false,
  981. icon: 'ti-list',
  982. ncyBreadcrumb: {
  983. label: 'knowledge list'
  984. }
  985. }).state('app.knowledge.forum', {
  986. url: '/forum',
  987. templateUrl: "assets/views/knowledge/forum.html",
  988. resolve: loadSequence('jquery-sparkline', 'jquery-nestable-plugin', 'ng-nestable', 'moment', 'ckeditor-plugin', 'ckeditor', 'ladda', 'angular-ladda', 'ngTable', 'knowledgeCtrl'),
  989. title: 'knowledgebase.LIST',
  990. icon: 'fa-tint',
  991. ncyBreadcrumb: {
  992. label: 'knowledge forum'
  993. }
  994. }).state('app.knowledge.examine', {
  995. url: '/examine',
  996. templateUrl: "assets/views/knowledge/examine.html",
  997. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'angularBootstrapNavTree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'knowledgeExamineCtrl'),
  998. title: 'knowledgebase.VIEW',
  999. icon: 'ti-list',
  1000. ncyBreadcrumb: {
  1001. label: 'knowledge list'
  1002. }
  1003. }).state('app.knowledge.create', {
  1004. url: '/create/{formKey}/{service}/{model}',
  1005. templateUrl: "assets/views/knowledgeform.html",
  1006. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
  1007. title: 'knowledge.NEW',
  1008. icon: 'fa-tint',
  1009. ncyBreadcrumb: {
  1010. label: 'new knowledge'
  1011. }
  1012. }).state('app.knowledge.leve', {
  1013. url: '/create/{formKey}/{service}/{model}/{history}',
  1014. templateUrl: "assets/views/knowledgeform.html",
  1015. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
  1016. title: 'knowledge.NEW',
  1017. icon: 'fa-tint',
  1018. ncyBreadcrumb: {
  1019. label: 'new knowledge'
  1020. }
  1021. }).state('app.knowledge.jry_lishi', {
  1022. url: '/jry_lishi/{formKey}/{service}/{model}/{history}',
  1023. templateUrl: "assets/views/knowledgelishi.html",
  1024. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
  1025. title: 'knowledge.NEW',
  1026. // pdKey: 'knowledge',
  1027. icon: 'fa-tint',
  1028. ncyBreadcrumb: {
  1029. label: 'new knowledge'
  1030. }
  1031. }).state('app.knowledge.jry_save_history_data', {
  1032. url: '/jry_save_history_data/{model}',
  1033. templateUrl: "assets/views/jry_save_history_data.html",
  1034. resolve: loadSequence('jquery-sparkline', 'jry_save_history_dataCtrl'),
  1035. }).state('app.knowledge.editor', {
  1036. url: '/editor/{formKey}/{service}/{model}/{history}',
  1037. templateUrl: "assets/views/knowledgeform.html",
  1038. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
  1039. title: 'knowledge.NEW',
  1040. icon: 'fa-tint',
  1041. params: {
  1042. "fromstate": null
  1043. },
  1044. ncyBreadcrumb: {
  1045. label: 'new knowledge'
  1046. }
  1047. }).state('app.knowledge.jry_shenhe', {
  1048. url: '/jry_shenhe/{formKey}/{service}/{model}/{history}',
  1049. templateUrl: "assets/views/knowledgeshenhe.html",
  1050. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
  1051. title: 'knowledge.NEW',
  1052. icon: 'fa-tint',
  1053. params: {
  1054. "fromstate": null
  1055. },
  1056. ncyBreadcrumb: {
  1057. label: 'new knowledge'
  1058. }
  1059. }).state('app.knowledge.detail', {
  1060. url: '/detail/{formKey}/{service}/{model}/{history}',
  1061. templateUrl: "assets/views/knowledgedetail.html",
  1062. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
  1063. title: 'knowledge.NEW',
  1064. // pdKey: 'knowledge',
  1065. icon: 'fa-tint',
  1066. ncyBreadcrumb: {
  1067. label: 'new knowledge'
  1068. }
  1069. })
  1070. .state('app.scheduling', {
  1071. url: '/scheduling',
  1072. template: '<div ui-view class="fade-in-up"></div>',
  1073. title: 'scheduling',
  1074. pdKey: 'bpm_scheduling',
  1075. ncyBreadcrumb: {
  1076. label: 'knowledge'
  1077. }
  1078. }).state('app.scheduling.myscheduling', {
  1079. url: '/myscheduling',
  1080. templateUrl: "assets/views/scheduling/mine.html",
  1081. resolve: loadSequence('moment', 'mwl.calendar', 'ui.select', 'calendarCtrl', 'schedulingCtrl'),
  1082. title: 'scheduling.MINE',
  1083. icon: 'fa-tint',
  1084. ncyBreadcrumb: {
  1085. label: 'scheduling'
  1086. }
  1087. })
  1088. .state('app.scheduling.schedulecalendar', {
  1089. url: '/schedule',
  1090. templateUrl: "assets/views/scheduling/calendar.html",
  1091. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'moment', 'mwl.calendar', 'ui.select', 'calendarCtrl', 'angularFileUpload', 'schedulingCtrl'),
  1092. title: 'scheduling.CALENDAR',
  1093. icon: 'fa-tint',
  1094. ncyBreadcrumb: {
  1095. label: 'scheduling'
  1096. }
  1097. })
  1098. // .state('app.scheduling.schedulecalendar',{
  1099. // url: '/schedule',
  1100. // templateUrl: "assets/views/scheduling/matrialcalendar.html",
  1101. // resolve: loadSequence('jquery-sparkline', 'spin','ladda', 'angular-ladda','moment', 'material-calendar', 'ui.select', 'schedulingCtrl'),
  1102. // title: 'scheduling.CALENDAR',
  1103. // icon: 'fa-tint',
  1104. // ncyBreadcrumb: {
  1105. // label: 'scheduling'
  1106. // }
  1107. // })
  1108. .state('app.scheduling.list', {
  1109. url: '/list',
  1110. templateUrl: "assets/views/scheduling/list.html",
  1111. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'angularFileUpload', 'schedulingCtrl'),
  1112. title: 'scheduling.LIST',
  1113. pdKey: 'bpm_schedule',
  1114. icon: 'fa-tint',
  1115. ncyBreadcrumb: {
  1116. label: 'scheduling'
  1117. }
  1118. }).state('app.scheduling.editor', {
  1119. url: '/editor/{taskId}/{processInstanceId}/{id}',
  1120. templateUrl: "assets/views/customform/index.html",
  1121. title: 'scheduling.MODELER',
  1122. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'schedulingCtrl', 'customformCtrl'),
  1123. pdKey: 'bpm_schedule',
  1124. icon: 'ti-list',
  1125. ncyBreadcrumb: {
  1126. label: 'modeler'
  1127. }
  1128. }).state('app.scheduling.shift', {
  1129. url: '/shift',
  1130. templateUrl: "assets/views/scheduling/shift.html",
  1131. resolve: loadSequence('jquery-sparkline', 'schedulingCtrl'),
  1132. title: 'scheduling.SHIFT',
  1133. icon: 'fa-tint',
  1134. ncyBreadcrumb: {
  1135. label: 'scheduling shift'
  1136. }
  1137. }).state('app.scheduling.shiftrecord', {
  1138. url: '/shiftrecord',
  1139. templateUrl: "assets/views/scheduling/shiftrecord.html",
  1140. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'schedulingCtrl'),
  1141. title: 'scheduling.SHIFTRECORD',
  1142. icon: 'fa-tint',
  1143. ncyBreadcrumb: {
  1144. label: 'scheduling record'
  1145. }
  1146. }).state('app.means', {
  1147. url: '/means',
  1148. template: '<div ui-view class="fade-in-up"></div>',
  1149. title: 'means',
  1150. // pdKey: 'bpm_means',
  1151. ncyBreadcrumb: {
  1152. label: 'means'
  1153. }
  1154. }).state('app.means.list', {
  1155. url: '/list',
  1156. templateUrl: "assets/views/means/means.html",
  1157. resolve: loadSequence('jquery-nestable-plugin', 'xeditable', 'checklist-model', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'angularPrint', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'qrcideCtrl', 'meansCtrl'),
  1158. title: 'means.LIST',
  1159. // pdKey: 'bpm_means',
  1160. icon: 'ti-list',
  1161. ncyBreadcrumb: {
  1162. label: 'means list'
  1163. }
  1164. }).state('app.means.applylist', {
  1165. url: '/applylist',
  1166. templateUrl: "assets/views/means/meansapplylist.html",
  1167. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'meansapplyListCtrl'),
  1168. title: 'means.LIST',
  1169. pdKey: 'applicationForm',
  1170. icon: 'ti-list',
  1171. ncyBreadcrumb: {
  1172. label: 'means list'
  1173. }
  1174. }).state('app.means.applyediter', {
  1175. url: '/applyediter/{taskId}/{processInstanceId}/{id}',
  1176. templateUrl: "assets/views/means/cmdbform.html",
  1177. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'spin', 'ladda', 'angular-ladda', 'angularFileUpload', 'multi.select.tree', 'moment', 'customformCtrl', 'ui.select', 'angularBootstrapNavTree', 'touchspin-plugin', 'angularTree', 'ngTable', 'customformCtrl', 'cmdbformCtrl'),
  1178. title: 'means.NEW',
  1179. pdKey: 'bpm_applicationForm',
  1180. icon: 'fa-tint',
  1181. ncyBreadcrumb: {
  1182. label: 'new means'
  1183. }
  1184. }).state('app.means.outediter', {
  1185. url: '/outediter/{taskId}/{processInstanceId}/{id}',
  1186. templateUrl: "assets/views/means/cmdbform.html",
  1187. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ui.grid', 'spin', 'ladda', 'angular-ladda', 'angularFileUpload', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'ngTable', 'customformCtrl', 'cmdbformCtrl'),
  1188. title: 'means.NEW',
  1189. pdKey: 'bpm_applicationForm_subtract',
  1190. icon: 'fa-tint',
  1191. ncyBreadcrumb: {
  1192. label: 'new means'
  1193. }
  1194. }).state('app.means.meansmap', {
  1195. url: '/meansmap',
  1196. templateUrl: "assets/views/means/meansMap.html",
  1197. resolve: loadSequence('jquery-sparkline', 'echarttwo', 'ngTable', 'ui.select', 'api-check', 'formly', 'angularFormly', 'ui.grid', 'd3', 'angularBootstrapNavTree', 'angularFileUpload', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'spin', 'ladda', 'angular-ladda', 'customformCtrl', 'meansformCtrl', 'meanshistoryCtrl', 'meansMapCtrl'),
  1198. title: 'means.NEW',
  1199. // pdKey: 'bpm_applicationForm_subtract',
  1200. icon: 'fa-tint',
  1201. ncyBreadcrumb: {
  1202. label: 'new means'
  1203. }
  1204. }).state('app.means.auditlist', {
  1205. url: '/auditlist',
  1206. templateUrl: "assets/views/means/cmdbauditlist.html",
  1207. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'cmdbauditlistCtrl'),
  1208. title: 'means.LIST',
  1209. pdKey: 'applicationForm',
  1210. icon: 'ti-list',
  1211. ncyBreadcrumb: {
  1212. label: 'means list'
  1213. }
  1214. }).state('app.means.newaudit', {
  1215. url: '/newaudit',
  1216. templateUrl: "assets/views/means/cmdbauditdetail.html",
  1217. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'cmdbauditdetailCtrl'),
  1218. title: 'means.LIST',
  1219. pdKey: 'applicationForm',
  1220. icon: 'ti-list',
  1221. ncyBreadcrumb: {
  1222. label: 'means list'
  1223. }
  1224. }).state('app.means.auditeditor', {
  1225. url: '/auditeditor/{model}',
  1226. templateUrl: "assets/views/means/cmdbauditeditor.html",
  1227. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'cmdbauditeditorCtrl'),
  1228. title: 'means.LIST',
  1229. pdKey: 'applicationForm',
  1230. icon: 'ti-list',
  1231. ncyBreadcrumb: {
  1232. label: 'means list'
  1233. }
  1234. // })
  1235. // .state('cmdbcontrast', {
  1236. // url: '/cmdbcontrast/{model}',
  1237. // templateUrl: "assets/views/means/cmdbcontrast.html",
  1238. // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'Timeline', 'cmdbcontrastCtrl'),
  1239. // title: 'means.LIST',
  1240. // pdKey: 'applicationForm',
  1241. // icon: 'ti-list',
  1242. // ncyBreadcrumb: {
  1243. // label: 'means list'
  1244. // }
  1245. }).state('app.means.bill', {
  1246. url: '/bill/{formKey}/{service}/{model}',
  1247. templateUrl: "assets/views/means/meansBill.html",
  1248. resolve: loadSequence('jquery-sparkline', 'ngTable', 'ui.select', 'api-check', 'formly', 'angularFormly', 'ui.grid', 'd3', 'angularBootstrapNavTree', 'angularFileUpload', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'spin', 'ladda', 'angular-ladda', 'customformCtrl', 'meansviewCtrl', 'meansformCtrl', 'meanshistoryCtrl'),
  1249. title: 'means.NEW',
  1250. // pdKey: 'bpm_means',
  1251. icon: 'fa-tint',
  1252. ncyBreadcrumb: {
  1253. label: 'new means'
  1254. }
  1255. }).state('app.means.view', {
  1256. url: '/bill/{formKey}/{service}/{model}',
  1257. templateUrl: "assets/views/means/meansview.html",
  1258. resolve: loadSequence('jquery-sparkline', 'ngTable', 'ui.select', 'api-check', 'formly', 'angularFormly', 'ui.grid', 'd3', 'angularBootstrapNavTree', 'angularFileUpload', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'spin', 'ladda', 'angular-ladda', 'customformCtrl', 'meansviewCtrl', 'meansformCtrl', 'meanshistoryCtrl'),
  1259. title: 'means.NEW',
  1260. // pdKey: 'bpm_means',
  1261. icon: 'fa-tint',
  1262. ncyBreadcrumb: {
  1263. label: 'new means'
  1264. }
  1265. }).state('app.means.editor', {
  1266. url: '/editor/{formKey}/{service}',
  1267. templateUrl: "assets/views/means/tpl/meansform.html",
  1268. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'ladda', 'angular-ladda', 'angularBootstrapNavTree', 'customformCtrl', 'meansformCtrl'),
  1269. title: 'means.NEW',
  1270. // pdKey: 'bpm_means',
  1271. icon: 'fa-tint',
  1272. ncyBreadcrumb: {
  1273. label: 'new means'
  1274. }
  1275. }).state('app.means.detail', {
  1276. // url: '/detail/{formKey}/{service}',
  1277. url: '/detail/:formKey/:pdKey/:dataId/:taskId/:processInstanceId/:id',
  1278. templateUrl: "assets/views/means/tpl/meansdetailform.html",
  1279. resolve: loadSequence('jquery-sparkline', 'api-check', 'ngTable', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'ladda', 'angular-ladda', 'angularBootstrapNavTree', 'customformCtrl', 'meansdetailCtrl'),
  1280. title: 'means.NEW',
  1281. // pdKey: 'bpm_means',
  1282. icon: 'fa-tint',
  1283. ncyBreadcrumb: {
  1284. label: 'new means'
  1285. }
  1286. }) // 固定资产列表
  1287. .state('app.means.listd', {
  1288. url: '/fixed_list',
  1289. templateUrl: "assets/views/fixed/list.html",
  1290. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'fixedCtrl'),
  1291. })
  1292. // 固定查看
  1293. .state('app.means.fixed_see', {
  1294. url: '/fixed_see/{gdzc_label}/{gdzc_item}/{idd}',
  1295. templateUrl: "assets/views/fixed/see.html",
  1296. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'gdzc_seeCtrl'),
  1297. })
  1298. // 固定资产属性
  1299. .state('app.means.fixed_see.attribute', {
  1300. url: '/attribute/{gdzc_label1}/{gdzc_item1}',
  1301. templateUrl: "assets/views/fixed/attribute.html",
  1302. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'gdzc_attributeCtrl'),
  1303. })
  1304. // 固定操作历史
  1305. .state('app.means.fixed_see.history', {
  1306. url: '/history/{idd}',
  1307. templateUrl: "assets/views/fixed/history.html",
  1308. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'gdzc_historyCtrl'),
  1309. })
  1310. // 固定关联流程
  1311. .state('app.means.fixed_see.relation', {
  1312. url: '/relation/{idd}',
  1313. templateUrl: "assets/views/fixed/relation.html",
  1314. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'gdzc_relationCtrl'),
  1315. })
  1316. // 固定编辑
  1317. .state('app.means.fixed_edit', {
  1318. url: '/fixed_edit/{formKey}/{service}/{model}',
  1319. templateUrl: "assets/views/fixed/gdzc_edit.html",
  1320. resolve: loadSequence('jquery-sparkline', 'ngTable', 'ui.select', 'api-check', 'formly', 'angularFormly', 'ui.grid', 'd3', 'angularBootstrapNavTree', 'angularFileUpload', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'spin', 'ladda', 'angular-ladda', 'customformCtrl', 'meansviewCtrl', 'gdzc_meansformCtrl', 'meanshistoryCtrl'),
  1321. title: 'means.NEW',
  1322. // pdKey: 'bpm_means',
  1323. icon: 'fa-tint',
  1324. ncyBreadcrumb: {
  1325. label: 'new means'
  1326. }
  1327. })
  1328. // 业务系统列表
  1329. .state('app.means.business_list', {
  1330. url: '/business_list',
  1331. templateUrl: "assets/views/business/list.html",
  1332. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'businessCtrl'),
  1333. })
  1334. // 耗材列表
  1335. .state('app.means.consumables_list', {
  1336. url: '/consumables_list',
  1337. templateUrl: "assets/views/consumables/list.html",
  1338. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'hc_consumablesCtrl'),
  1339. })
  1340. // 耗材查看
  1341. .state('app.means.consumables_see', {
  1342. url: '/consumables_see/{idd}',
  1343. templateUrl: "assets/views/consumables/see.html",
  1344. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'hc_seeCtrl'),
  1345. })
  1346. // 耗材操作历史
  1347. .state('app.means.consumables_see.operation_history', {
  1348. url: '/operation_history/{idd}',
  1349. templateUrl: "assets/views/consumables/operation_history.html",
  1350. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'hc_historyCtrl'),
  1351. }) // 耗材关联流程
  1352. // 耗材关联流程
  1353. .state('app.means.consumables_see.relation', {
  1354. url: '/relation/{idd}',
  1355. templateUrl: "assets/views/consumables/relation.html",
  1356. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'hc_relationCtrl'),
  1357. }).state('app.inspection', {
  1358. url: '/inspection',
  1359. template: '<div ui-view class="fade-in-up"></div>',
  1360. title: 'inspection',
  1361. // pdKey: 'bpm_means',
  1362. ncyBreadcrumb: {
  1363. label: 'inspection'
  1364. }
  1365. })
  1366. //计划任务
  1367. .state('app.plan', {
  1368. url: '/plan',
  1369. template: '<div ui-view class="fade-in-up"></div>',
  1370. title: 'plan Elements',
  1371. ncyBreadcrumb: {
  1372. label: 'plan Elements'
  1373. }
  1374. })
  1375. //计划任务>定时报告
  1376. .state('app.plan.timingMessageSending', {
  1377. url: '/timingMessageSending',
  1378. templateUrl: "assets/views/plan/timingMessageSending.html",
  1379. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'timingMessageSendingCtrl'),
  1380. title: 'inspection.LIST',
  1381. icon: 'ti-list',
  1382. ncyBreadcrumb: {
  1383. label: 'inspection list'
  1384. }
  1385. })
  1386. //巡检管理>巡检计划
  1387. .state('app.inspection.inspectPlan', {
  1388. url: '/inspectPlan',
  1389. templateUrl: "assets/views/inspect/inspectPlan.html",
  1390. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'inspectPlanCtrl'),
  1391. title: 'inspection.LIST',
  1392. icon: 'ti-list',
  1393. ncyBreadcrumb: {
  1394. label: 'inspection list'
  1395. }
  1396. })
  1397. //管理事件>积分管理
  1398. .state('app.incident.integral', {
  1399. url: '/integral',
  1400. templateUrl: "assets/views/inspect/integral.html",
  1401. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'integralCtrl'),
  1402. title: 'integral.LIST',
  1403. icon: 'ti-list',
  1404. ncyBreadcrumb: {
  1405. label: 'integral list'
  1406. }
  1407. })
  1408. //巡检管理>巡检报告
  1409. .state('app.inspection.inspectReport', {
  1410. url: '/inspectReport',
  1411. templateUrl: "assets/views/inspect/inspectReport.html",
  1412. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'inspectReportCtrl'),
  1413. title: 'inspection.LIST',
  1414. icon: 'ti-list',
  1415. ncyBreadcrumb: {
  1416. label: 'inspection list'
  1417. }
  1418. })
  1419. //巡检管理>巡检列表
  1420. .state('app.inspection.inspectList', {
  1421. url: '/inspectList',
  1422. templateUrl: "assets/views/inspect/inspectList.html",
  1423. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'inspectListCtrl'),
  1424. title: 'inspection.LIST',
  1425. icon: 'ti-list',
  1426. ncyBreadcrumb: {
  1427. label: 'inspection list'
  1428. }
  1429. })
  1430. //巡检管理>巡检计划编辑
  1431. .state('app.inspection.editor', {
  1432. url: '/editor/{formKey}/{service}/{model}/{labelTree}',
  1433. templateUrl: "assets/views/form.html",
  1434. title: 'ui-form',
  1435. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'spin', 'ladda', 'angular-ladda', 'angularFileUpload', 'multi.select.tree', 'moment', 'customformCtrl', 'inspectForm'),
  1436. ncyBreadcrumb: {
  1437. label: 'ui-form'
  1438. }
  1439. })
  1440. //巡检管理>巡检计划查看
  1441. .state('app.inspection.form', {
  1442. url: '/form/{formKey}/{service}/{model}',
  1443. templateUrl: "assets/views/system/tpl/detail.html",
  1444. title: 'ui-form',
  1445. resolve: loadSequence('jquery-sparkline', 'api-check', 'ui.grid', 'formly', 'angularFormly', 'spin', 'ladda', 'angular-ladda', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'inspectForm'),
  1446. ncyBreadcrumb: {
  1447. label: 'ui-form'
  1448. }
  1449. })
  1450. //巡检列表>巡检列表编辑
  1451. .state('app.inspection.inspectListEditor', {
  1452. url: '/inspectListEditor/{pdKey}/{taskId}/{processInstanceId}/{formUiEdit}/{model}/{dataId}',
  1453. // url: '/editor',
  1454. templateUrl: "assets/views/customform/index.html",
  1455. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'ng-nestable', 'monospaced.elastic', 'touchspin-plugin', 'ckeditor-plugin', 'ckeditor', 'spin', 'ladda', 'angular-ladda', 'jquery-sparkline', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  1456. title: 'form editor',
  1457. // pdKey: 'inspectionListForm',
  1458. icon: 'fa-tint',
  1459. ncyBreadcrumb: {
  1460. label: 'editor'
  1461. }
  1462. })
  1463. //巡检列表>巡检列表查看
  1464. .state('app.inspection.inspectListdetail', {
  1465. url: '/inspectListdetail/{pdKey}/{taskId}/{processInstanceId}/{formKey}/{model}/{dataId}',
  1466. // url: '/inspectListdetail/:formUiName/:taskId/:processInstanceId',
  1467. templateUrl: "assets/views/customform/detail.html",
  1468. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'customformDetailCtrl'),
  1469. title: 'form detail',
  1470. icon: 'ti-list',
  1471. ncyBreadcrumb: {
  1472. label: 'detail'
  1473. }
  1474. })
  1475. //系统列表
  1476. .state('app.system', {
  1477. url: '/system',
  1478. template: '<div ui-view class="fade-in-up"></div>',
  1479. title: 'System Elements',
  1480. ncyBreadcrumb: {
  1481. label: 'System Elements'
  1482. }
  1483. //事件分类设置--jry
  1484. }).state('app.system.jry_incidentSet', {
  1485. url: '/jry_incidentSet',
  1486. templateUrl: "assets/views/system/jry_incidentSet.html",
  1487. // resolve: loadSequence( 'jquery-sparkline', 'spin', 'ladda', 'angular-ladda','ui.select', 'multi.select.tree', 'angularBootstrapNavTree','jry_incidentSetCt'),
  1488. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'jry_incidentSetCt'),
  1489. title: 'Nav Manager',
  1490. ncyBreadcrumb: {
  1491. label: 'User Manager'
  1492. }
  1493. // title: 'incident.LIST',
  1494. // pdKey: 'bpm_incident',
  1495. // icon: 'ti-list',
  1496. // ncyBreadcrumb: {
  1497. // label: 'incident list'
  1498. // }
  1499. }).state('app.system.easyform', {
  1500. url: '/easyform',
  1501. templateUrl: "assets/views/system/easyform/easyform.html",
  1502. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'nya-bs-select', 'mwl.calendar', 'customformCtrl', 'easyformCtrl'),
  1503. title: 'easy form',
  1504. icon: 'ti-list',
  1505. ncyBreadcrumb: {
  1506. label: 'easyform'
  1507. }
  1508. }).state('app.system.pzxgl', {
  1509. url: '/pzxgl',
  1510. templateUrl: "assets/views/system/pzxgl_wt.html",
  1511. resolve: loadSequence('ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'nya-bs-select', 'mwl.calendar', 'ngDraggable', 'pzxgl_wt'),
  1512. title: 'pzxgl',
  1513. icon: 'ti-list',
  1514. ncyBreadcrumb: {
  1515. label: 'pzxgl'
  1516. }
  1517. }).state('app.system.qxgl', {
  1518. url: '/qxgl',
  1519. templateUrl: "assets/views/system/qxgl_wt.html",
  1520. resolve: loadSequence('ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'nya-bs-select', 'mwl.calendar', 'ngDraggable', 'angularTree', 'qxgl_wt'),
  1521. title: 'pzxgl',
  1522. icon: 'ti-list',
  1523. ncyBreadcrumb: {
  1524. label: 'qxgl'
  1525. }
  1526. // 服务指南
  1527. }).state('app.system.information', {
  1528. url: '/information',
  1529. template: '<div ui-view class="fade-in-up"></div>',
  1530. title: 'Process Plan',
  1531. ncyBreadcrumb: {
  1532. label: 'Process Plan'
  1533. }
  1534. // 服务指南分类
  1535. }).state('app.system.information.category', {
  1536. url: '/category',
  1537. templateUrl: "assets/views/system/informationCate.html",
  1538. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'informationCateCtrl'),
  1539. title: 'knowledge.VIEW',
  1540. ncyBreadcrumb: {
  1541. label: 'knowledge list'
  1542. }
  1543. }).state('app.system.information.list', {
  1544. url: '/list',
  1545. templateUrl: "assets/views/system/information.html",
  1546. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'moment', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'informationCtrl'),
  1547. title: 'information',
  1548. icon: 'ti-list',
  1549. ncyBreadcrumb: {
  1550. label: 'information'
  1551. }
  1552. // 流程节点
  1553. }).state('app.system.processNode', {
  1554. url: '/processNode',
  1555. template: '<div ui-view class="fade-in-up"></div>',
  1556. title: 'processNode Plan',
  1557. ncyBreadcrumb: {
  1558. label: 'processNode Plan'
  1559. }
  1560. }).state('app.system.processNode.list', {
  1561. url: '/list',
  1562. templateUrl: "assets/views/system/processNode.html",
  1563. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'moment', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'processNodeCtrl'),
  1564. title: 'processNode',
  1565. icon: 'ti-list',
  1566. ncyBreadcrumb: {
  1567. label: 'processNode'
  1568. }
  1569. }).state('app.system.notification', {//消息通知管理
  1570. url: '/notification',
  1571. template: '<div ui-view class="fade-in-up"></div>',
  1572. title: 'notification Plan',
  1573. ncyBreadcrumb: {
  1574. label: 'notification Plan'
  1575. }
  1576. }).state('app.system.notification.list', {
  1577. url: '/list',
  1578. templateUrl: "assets/views/system/notification.html",
  1579. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'moment', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'notificationCtrl'),
  1580. title: 'notification',
  1581. icon: 'ti-list',
  1582. ncyBreadcrumb: {
  1583. label: 'notification'
  1584. }
  1585. }).state('app.system.organization', {
  1586. url: '/organization',
  1587. template: '<div ui-view class="fade-in-up"></div>',
  1588. title: 'System Elements',
  1589. ncyBreadcrumb: {
  1590. label: 'System Elements'
  1591. }
  1592. }).state('app.system.organization.place', {
  1593. url: '/place',
  1594. templateUrl: "assets/views/system/organization/place.html",
  1595. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'checklist-model', 'placeCtrl'),
  1596. title: 'Nav Manager',
  1597. ncyBreadcrumb: {
  1598. label: 'User Manager'
  1599. }
  1600. // 查号管理
  1601. }).state('app.system.phoneList', {
  1602. url: '/phoneList',
  1603. templateUrl: "assets/views/system/phoneList.html",
  1604. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'checklist-model', 'phoneListCtrl'),
  1605. title: 'Nav Manager',
  1606. ncyBreadcrumb: {
  1607. label: 'User Manager'
  1608. }
  1609. // 耗材分类维护
  1610. }).state('app.system.organization.hc_flwh', {
  1611. url: '/hc_flwh',
  1612. templateUrl: "assets/views/system/organization/hc_flwh.html",
  1613. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'hc_flwhCtrl'),
  1614. title: 'Nav Manager',
  1615. ncyBreadcrumb: {
  1616. label: 'User Manager'
  1617. }
  1618. //管理单位维护
  1619. }).state('app.system.organization.ywxt_gldw', {
  1620. url: '/ywxt_gldw',
  1621. templateUrl: "assets/views/system/organization/ywxt_gldw.html",
  1622. resolve: loadSequence('jquery-sparkline', 'spin', 'ui.select', 'ladda', 'angular-ladda', 'ui.grid', 'ywxt_gldwCtrl'),
  1623. title: 'Nav Manager',
  1624. ncyBreadcrumb: {
  1625. label: 'User Manager'
  1626. }
  1627. }).state('app.system.organization.worktime', {
  1628. url: '/worktime',
  1629. templateUrl: "assets/views/system/organization/worktime.html",
  1630. resolve: loadSequence('jquery-nestable-plugin', 'ui.select', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'worktimeCtrl'),
  1631. title: 'Nav Manager',
  1632. ncyBreadcrumb: {
  1633. label: 'User Manager'
  1634. }
  1635. }).state('app.system.organization.dept', {
  1636. url: '/dept',
  1637. templateUrl: "assets/views/system/organization/dept.html",
  1638. resolve: loadSequence('jquery-sparkline', 'spin', 'ui.select', 'ladda', 'angular-ladda', 'ui.grid', 'jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'checklist-model', 'deptCtrl'),
  1639. title: 'Nav Manager',
  1640. ncyBreadcrumb: {
  1641. label: 'User Manager'
  1642. }
  1643. }).state('app.system.hospital', {
  1644. url: '/hospital',
  1645. templateUrl: "assets/views/system/hospital.html",
  1646. resolve: loadSequence('jquery-sparkline', 'spin', 'ui.select', 'ladda', 'angular-ladda', 'ui.grid', 'jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'checklist-model', 'hospitalCtrl'),
  1647. title: 'Nav Manager',
  1648. ncyBreadcrumb: {
  1649. label: 'User Manager'
  1650. }
  1651. }).state('app.system.organization.serverslevel', {
  1652. url: '/serverslevel',
  1653. templateUrl: "assets/views/system/organization/serverslevel.html",
  1654. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'serverslevelCtrl'),
  1655. title: 'Nav Manager',
  1656. ncyBreadcrumb: {
  1657. label: 'User Manager'
  1658. }
  1659. }).state('app.system.userdesign', {
  1660. url: '/userdesign',
  1661. template: '<div ui-view class="fade-in-up"></div>',
  1662. title: 'System Elements',
  1663. ncyBreadcrumb: {
  1664. label: 'System Elements'
  1665. }
  1666. }).state('app.system.userdesign.schedulecalendar', {
  1667. url: '/schedule',
  1668. templateUrl: "assets/views/system/user/matrialcalendar.html",
  1669. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'moment', 'material-calendar', 'ui.select', 'schedulingplanCtrl'),
  1670. title: 'scheduling.CALENDAR',
  1671. icon: 'fa-tint',
  1672. ncyBreadcrumb: {
  1673. label: 'scheduling'
  1674. }
  1675. }).state('app.system.userdesign.group', {
  1676. url: '/group',
  1677. templateUrl: "assets/views/system/user/group.html",
  1678. title: 'scheduling.CALENDAR',
  1679. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'xeditable', 'angular-ladda', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'groupCtrl'),
  1680. ncyBreadcrumb: {
  1681. label: 'User List Manager'
  1682. }
  1683. // }).state('app.system.userdesign.group', {
  1684. // url: '/group',
  1685. // templateUrl: "assets/views/system/user/group.html",
  1686. // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'ui.grid', 'groupCtrl'),
  1687. // title: 'scheduling.CALENDAR',
  1688. // icon: 'fa-tint',
  1689. // ncyBreadcrumb: {
  1690. // label: 'scheduling'
  1691. // }
  1692. }).state('app.system.userdesign.scheduletime', {
  1693. url: '/scheduletime',
  1694. templateUrl: "assets/views/system/user/scheduletime.html",
  1695. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'scheduletimeCtrl'),
  1696. title: 'scheduling.CALENDAR',
  1697. icon: 'fa-tint',
  1698. ncyBreadcrumb: {
  1699. label: 'scheduling'
  1700. }
  1701. }).state('app.system.processdesign', {
  1702. url: '/processdesign',
  1703. template: '<div ui-view class="fade-in-up"></div>',
  1704. title: 'Process Plan',
  1705. ncyBreadcrumb: {
  1706. label: 'Process Plan'
  1707. }
  1708. }).state('app.system.processdesign.incidentplan', {
  1709. url: '/incidentplan',
  1710. template: '<div ui-view class="fade-in-up"></div>',
  1711. title: 'Process Plan',
  1712. ncyBreadcrumb: {
  1713. label: 'Process Plan'
  1714. }
  1715. }).state('app.system.processdesign.incidentplan.category', {
  1716. url: '/category',
  1717. templateUrl: "assets/views/system/processdesign/incidentplan/incidentcategory.html",
  1718. resolve: loadSequence('ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'incidentcateCtrl'),
  1719. title: 'Nav Manager',
  1720. ncyBreadcrumb: {
  1721. label: 'User Manager'
  1722. }
  1723. // 事件设置
  1724. }).state('app.system.processdesign.incidentplan.incidentSetUp', {
  1725. url: '/incidentSetUp',
  1726. templateUrl: "assets/views/system/processdesign/incidentplan/incidentSetUp.html",
  1727. resolve: loadSequence('ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'incidentSetUpCtrl'),
  1728. title: 'Nav Manager',
  1729. ncyBreadcrumb: {
  1730. label: 'User Manager'
  1731. }
  1732. }).state('app.system.processdesign.incidentplan.servicetype', {
  1733. url: '/servicetype',
  1734. templateUrl: "assets/views/system/processdesign/incidentplan/servicetype.html",
  1735. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'multi.select.tree', 'touchspin-plugin', 'angularBootstrapNavTree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'servicetypeCtrl'),
  1736. title: 'Nav Manager',
  1737. ncyBreadcrumb: {
  1738. label: 'User Manager'
  1739. }
  1740. }).state('app.system.processdesign.incidentplan.source', {
  1741. url: '/source',
  1742. templateUrl: "assets/views/system/processdesign/incidentplan/incidentsource.html",
  1743. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'angularBootstrapNavTree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'incidentsourceCtrl'),
  1744. title: 'Nav Manager',
  1745. ncyBreadcrumb: {
  1746. label: 'User Manager'
  1747. }
  1748. }).state('app.system.processdesign.incidentplan.closecode', {
  1749. url: '/closecode',
  1750. templateUrl: "assets/views/system/processdesign/incidentplan/closecode.html",
  1751. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'closecodeCtrl'),
  1752. title: 'Nav Manager',
  1753. ncyBreadcrumb: {
  1754. label: 'User Manager'
  1755. }
  1756. }).state('app.system.processdesign.incidentplan.influence', {
  1757. url: '/influence',
  1758. templateUrl: "assets/views/system/processdesign/incidentplan/influence.html",
  1759. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'influenceCtrl'),
  1760. title: 'Nav Manager',
  1761. ncyBreadcrumb: {
  1762. label: 'User Manager'
  1763. }
  1764. }).state('app.system.processdesign.incidentplan.emergency', {
  1765. url: '/emergency',
  1766. templateUrl: "assets/views/system/processdesign/incidentplan/emergency.html",
  1767. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'emergencyCtrl'),
  1768. title: 'Nav Manager',
  1769. ncyBreadcrumb: {
  1770. label: 'User Manager'
  1771. }
  1772. }).state('app.system.processdesign.incidentplan.priority', {
  1773. url: '/priority',
  1774. templateUrl: "assets/views/system/processdesign/incidentplan/priority.html",
  1775. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'ui.select', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'priorityCtrl'),
  1776. title: 'Nav Manager',
  1777. ncyBreadcrumb: {
  1778. label: 'User Manager'
  1779. }
  1780. }).state('app.system.processdesign.incidentplan.prioritymatrix', {
  1781. url: '/prioritymatrix',
  1782. templateUrl: "assets/views/system/processdesign/incidentplan/prioritymatrix.html",
  1783. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'ui.select', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'prioritymatrixCtrl'),
  1784. title: 'Nav Manager',
  1785. ncyBreadcrumb: {
  1786. label: 'User Manager'
  1787. }
  1788. }).state('app.system.navmanager', {
  1789. url: '/navmanager',
  1790. templateUrl: "assets/views/system/navmanager.html",
  1791. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'xeditable', 'angular-ladda', 'ui.select', 'multi.select.tree', 'angularTree', 'navmanagerCtrl'),
  1792. title: 'Nav Manager',
  1793. ncyBreadcrumb: {
  1794. label: 'User Manager'
  1795. }
  1796. }).state('app.system.navmanager.aa', {
  1797. url: '/aa',
  1798. // templateUrl: "测试123",
  1799. template: "测试123"
  1800. }).state('app.system.navmanager.form', {
  1801. url: '/forms/{formKey}/{service}/{model}',
  1802. templateUrl: "assets/views/system/tpl/form.html",
  1803. title: 'ui-form',
  1804. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1805. ncyBreadcrumb: {
  1806. label: 'ui-form'
  1807. }
  1808. })
  1809. .state('app.system.systemmanager', {
  1810. url: '/systemmanager',
  1811. templateUrl: "assets/views/system/systemmanager.html",
  1812. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'systemmanagerCtrl'),
  1813. title: 'Nav Manager',
  1814. ncyBreadcrumb: {
  1815. label: 'User Manager'
  1816. }
  1817. })
  1818. //系统配置seimin
  1819. .state('app.system.sysconfig', {
  1820. url: '/sysconfig',
  1821. templateUrl: "assets/views/system/sysconfig.html",
  1822. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'ui.select', 'sysconfigCtrl'),
  1823. title: 'Nav Manager',
  1824. ncyBreadcrumb: {
  1825. label: 'User Manager'
  1826. }
  1827. })
  1828. //微信配置seimin
  1829. .state('app.system.wxconfig', {
  1830. url: '/wxconfig',
  1831. templateUrl: "assets/views/system/wxconfig.html",
  1832. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'wxconfigCtrl'),
  1833. title: 'Nav Manager',
  1834. ncyBreadcrumb: {
  1835. label: 'User Manager'
  1836. }
  1837. })
  1838. //system user
  1839. .state('app.system.user', {
  1840. url: '/user',
  1841. template: '<div ui-view class="fade-in-up"></div>',
  1842. title: 'User Manager',
  1843. ncyBreadcrumb: {
  1844. label: 'User Manager'
  1845. }
  1846. })
  1847. .state('app.system.userdesign.requester', {
  1848. url: '/requester',
  1849. templateUrl: "assets/views/system/user/requester.html",
  1850. title: 'User List Manager',
  1851. resolve: loadSequence('jquery-sparkline', 'spin', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ladda', 'angular-ladda', 'ui.grid', 'angularFileUpload', 'requestermgrCtrl'),
  1852. ncyBreadcrumb: {
  1853. label: 'User List Manager'
  1854. }
  1855. }).state('app.system.user.user', {
  1856. url: '/users',
  1857. templateUrl: "assets/views/system/user/users.html",
  1858. title: 'User List Manager',
  1859. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'usermgrCtrl'),
  1860. ncyBreadcrumb: {
  1861. label: 'User List Manager'
  1862. }
  1863. }).state('app.system.thirdPartyCompany', {
  1864. url: '/thirdPartyCompany',
  1865. templateUrl: "assets/views/system/thirdPartyCompany.html",
  1866. title: 'User List Manager',
  1867. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'thirdPartyCompanyCtrl'),
  1868. ncyBreadcrumb: {
  1869. label: 'User List Manager'
  1870. }
  1871. }).state('app.system.user.role', {
  1872. url: '/roles',
  1873. templateUrl: "assets/views/system/user/role.html",
  1874. title: 'User List Manager',
  1875. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'angularBootstrapNavTree', 'ui.grid', 'rolemgrCtrl'),
  1876. ncyBreadcrumb: {
  1877. label: 'User List Manager'
  1878. }
  1879. }).state('app.system.user.power', {
  1880. url: '/power',
  1881. templateUrl: "assets/views/system/user/power.html",
  1882. title: 'User List Manager',
  1883. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'xeditable', 'angular-ladda', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'powerCtrl'),
  1884. ncyBreadcrumb: {
  1885. label: 'User List Manager'
  1886. }
  1887. }).state('app.system.dashboard', {
  1888. url: '/dashboard',
  1889. template: '<div ui-view class="fade-in-up"></div>',
  1890. title: 'User Manager',
  1891. ncyBreadcrumb: {
  1892. label: 'User Manager'
  1893. }
  1894. }).state('app.system.dashboard.editor', {
  1895. url: '/editor',
  1896. templateUrl: "assets/views/system/dashboard/dashboardeditor.html",
  1897. title: 'User List Manager',
  1898. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'ng-nestable', 'ngTable', 'ckeditor', 'jquery-sparkline', 'sortable', 'ui.select',
  1899. 'ui.mask', 'api-check', 'formly', 'moment', 'mwl.calendar', 'angularFormly', 'customformCtrl', 'dashboardnewCtrl'),
  1900. // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'xeditable', 'angular-ladda', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'dashboardnewCtrl'),
  1901. ncyBreadcrumb: {
  1902. label: 'User List Manager'
  1903. }
  1904. }).state('app.system.dashboard.create', {
  1905. url: '/create',
  1906. templateUrl: "assets/views/system/dashboard/dashboardAdd.html",
  1907. title: 'User List Manager',
  1908. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'ui.select', 'dashboardAddCtrl'),
  1909. ncyBreadcrumb: {
  1910. label: 'User List Manager'
  1911. }
  1912. }).state('app.system.form', {
  1913. url: '/forms/{formKey}/{service}/{model}/{isNoticeEdit}/{isServiceGuideEdit}',
  1914. templateUrl: "assets/views/system/tpl/form.html",
  1915. title: 'ui-form',
  1916. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'sysformCtrl'),
  1917. ncyBreadcrumb: {
  1918. label: 'ui-form'
  1919. }
  1920. }).state('app.system.form_editor', {
  1921. url: '/form_editor/{formKey}/{service}/{model}',
  1922. templateUrl: "assets/views/system/tpl/detail.html",
  1923. title: 'ui-form',
  1924. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1925. ncyBreadcrumb: {
  1926. label: 'ui-form'
  1927. }
  1928. }).state('app.system.form_role', {
  1929. url: '/form_role/{formKey}/{service}/{model}',
  1930. templateUrl: "assets/views/system/tpl/form.html",
  1931. title: 'ui-form',
  1932. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1933. ncyBreadcrumb: {
  1934. label: 'ui-form'
  1935. }
  1936. }).state('app.system.user.requester', {
  1937. url: '/requester/{formKey}/{service}/{model}',
  1938. // url: '/forms/{model}/{service}/{fields}/{url}/{cancelUrl}/{extjson}',
  1939. templateUrl: "assets/views/system/tpl/form.html",
  1940. title: 'ui-form',
  1941. resolve: loadSequence('jquery-sparkline', 'api-check', 'spin', 'ladda', 'angular-ladda', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1942. ncyBreadcrumb: {
  1943. label: 'ui-form'
  1944. }
  1945. }).state('app.system.selfDefinedReport', {
  1946. // 自定义报表
  1947. url: '/selfDefinedReport',
  1948. templateUrl: "assets/views/system/selfDefinedReport/selfDefinedReport.html",
  1949. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'ui.select', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'echarts', 'selfDefinedReportCtrl'),
  1950. title: 'Nav Manager',
  1951. ncyBreadcrumb: {
  1952. label: 'User Manager'
  1953. }
  1954. }).state('app.system.knowledge', {
  1955. url: '/knowledge',
  1956. template: '<div ui-view class="fade-in-up"></div>',
  1957. title: 'Process Plan',
  1958. ncyBreadcrumb: {
  1959. label: 'Process Plan'
  1960. }
  1961. }).state('app.system.knowledge.knowledgebase', {
  1962. url: '/knowledgebase',
  1963. templateUrl: "assets/views/system/knowledge.html",
  1964. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'angularBootstrapNavTree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'knowledgebaseCtrl'),
  1965. title: 'knowledge.VIEW',
  1966. ncyBreadcrumb: {
  1967. label: 'knowledge list'
  1968. }
  1969. }).state('app.system.knowledge.category', {
  1970. url: '/category',
  1971. templateUrl: "assets/views/system/processdesign/knowledgedesign/knowledgecategore.html",
  1972. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'knowkedgecateCtrl'),
  1973. title: 'knowledge.VIEW',
  1974. ncyBreadcrumb: {
  1975. label: 'knowledge list'
  1976. }
  1977. // 公告管理
  1978. }).state('app.system.notice', {
  1979. url: '/notice',
  1980. template: '<div ui-view class="fade-in-up"></div>',
  1981. title: 'Process Plan',
  1982. ncyBreadcrumb: {
  1983. label: 'Process Plan'
  1984. }
  1985. }).state('app.system.notice.list', {
  1986. url: '/list',
  1987. templateUrl: "assets/views/system/notice/notice.html",
  1988. title: 'User List Manager',
  1989. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'moment', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'noticeCtrl'),
  1990. ncyBreadcrumb: {
  1991. label: 'User List Manager'
  1992. }
  1993. }) //end system
  1994. .state('app.externalservice', {
  1995. url: '/externalservice',
  1996. template: '<div ui-view class="fade-in-up"></div>',
  1997. title: 'externalservice',
  1998. // pdKey: 'bpm_means',
  1999. ncyBreadcrumb: {
  2000. label: 'externalservice'
  2001. }
  2002. }).state('app.externalservice.dnsmanagelist', {
  2003. url: '/dnsmanagelist',
  2004. templateUrl: "assets/views/externalservice/dnsmanage.html",
  2005. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'dnsmanageCtrl'),
  2006. title: 'dnsmanage.VIEW',
  2007. ncyBreadcrumb: {
  2008. label: 'dnsmanage list'
  2009. }
  2010. }).state('app.externalservice.dnsmanageedit', {
  2011. url: '/dnsmanageedit/{formKey}/{service}/{model}',
  2012. templateUrl: "assets/views/system/tpl/form.html",
  2013. title: 'ui-form',
  2014. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  2015. ncyBreadcrumb: {
  2016. label: 'ui-form'
  2017. }
  2018. }).state('app.externalservice.emailhandlelist', {
  2019. url: '/emailhandlelist',
  2020. templateUrl: "assets/views/externalservice/emailhandle.html",
  2021. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'emailhandleCtrl'),
  2022. title: 'dnsmanage.VIEW',
  2023. ncyBreadcrumb: {
  2024. label: 'dnsmanage list'
  2025. }
  2026. }).state('app.externalservice.emailhandleedit', {
  2027. url: '/emailhandleedit/{formKey}/{service}/{model}',
  2028. templateUrl: "assets/views/system/tpl/form.html",
  2029. title: 'ui-form',
  2030. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  2031. ncyBreadcrumb: {
  2032. label: 'ui-form'
  2033. }
  2034. }).state('app.externalservice.networkapply', {
  2035. url: '/networkapply',
  2036. templateUrl: "assets/views/externalservice/network/networkapply.html",
  2037. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'networkapplyCtrl'),
  2038. title: 'dnsmanage.VIEW',
  2039. ncyBreadcrumb: {
  2040. label: 'dnsmanage list'
  2041. }
  2042. }).state('app.externalservice.networkapplyedit', {
  2043. url: '/networkapplyedit/{formKey}/{service}/{model}',
  2044. templateUrl: "assets/views/system/tpl/form.html",
  2045. title: 'ui-form',
  2046. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  2047. ncyBreadcrumb: {
  2048. label: 'ui-form'
  2049. }
  2050. }).state('app.externalservice.ipapply', {
  2051. url: '/ipapply',
  2052. templateUrl: "assets/views/externalservice/network/ipapply.html",
  2053. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'ipapplyCtrl'),
  2054. title: 'dnsmanage.VIEW',
  2055. ncyBreadcrumb: {
  2056. label: 'dnsmanage list'
  2057. }
  2058. }).state('app.externalservice.ipapplyedit', {
  2059. url: '/ipapplyedit/{formKey}/{service}/{model}',
  2060. templateUrl: "assets/views/system/tpl/form.html",
  2061. title: 'ui-form',
  2062. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  2063. ncyBreadcrumb: {
  2064. label: 'ui-form'
  2065. }
  2066. }).state('app.externalservice.roommanage', {
  2067. url: '/roommanage',
  2068. templateUrl: "assets/views/externalservice/roommanage.html",
  2069. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'roommanageCtrl'),
  2070. title: 'dnsmanage.VIEW',
  2071. ncyBreadcrumb: {
  2072. label: 'dnsmanage list'
  2073. }
  2074. }).state('app.externalservice.roommanageedit', {
  2075. url: '/roommanageedit/{formKey}/{service}/{model}',
  2076. templateUrl: "assets/views/system/tpl/form.html",
  2077. title: 'ui-form',
  2078. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  2079. ncyBreadcrumb: {
  2080. label: 'ui-form'
  2081. }
  2082. }).state('app.externalservice.faultrepair', {
  2083. url: '/faultrepair',
  2084. templateUrl: "assets/views/externalservice/faultrepair.html",
  2085. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'faultrepairCtrl'),
  2086. title: 'dnsmanage.VIEW',
  2087. ncyBreadcrumb: {
  2088. label: 'dnsmanage list'
  2089. }
  2090. }).state('app.externalservice.faultrepairedit', {
  2091. url: '/faultrepairedit/{formKey}/{service}/{model}',
  2092. templateUrl: "assets/views/system/tpl/form.html",
  2093. title: 'ui-form',
  2094. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  2095. ncyBreadcrumb: {
  2096. label: 'ui-form'
  2097. }
  2098. }).state('app.externalservice.automaticlogin', {
  2099. url: '/automaticlogin',
  2100. templateUrl: "assets/views/externalservice/automaticlogin.html",
  2101. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'automaticloginCtrl'),
  2102. title: 'dnsmanage.VIEW',
  2103. ncyBreadcrumb: {
  2104. label: 'dnsmanage list'
  2105. }
  2106. }).state('app.externalservice.automaticloginedit', {
  2107. url: '/automaticloginedit/{formKey}/{service}/{model}',
  2108. templateUrl: "assets/views/system/tpl/form.html",
  2109. title: 'ui-form',
  2110. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  2111. ncyBreadcrumb: {
  2112. label: 'ui-form'
  2113. }
  2114. }).state('app.externalservice.nsm', {
  2115. url: '/nsm',
  2116. templateUrl: "assets/views/externalservice/nsm.html",
  2117. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'nsmCtrl'),
  2118. title: 'dnsmanage.VIEW',
  2119. ncyBreadcrumb: {
  2120. label: 'dnsmanage list'
  2121. }
  2122. }).state('app.externalservice.nsmedit', {
  2123. url: '/nsmedit/{formKey}/{service}/{model}',
  2124. templateUrl: "assets/views/system/tpl/form.html",
  2125. title: 'ui-form',
  2126. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  2127. ncyBreadcrumb: {
  2128. label: 'ui-form'
  2129. }
  2130. })
  2131. .state('app.ui', {
  2132. url: '/ui',
  2133. template: '<div ui-view class="fade-in-up"></div>',
  2134. title: 'UI Elements',
  2135. ncyBreadcrumb: {
  2136. label: 'UI Elements'
  2137. }
  2138. }).state('app.ui.elements', {
  2139. url: '/elements',
  2140. templateUrl: "assets/views/ui_elements.html",
  2141. title: 'Elements',
  2142. icon: 'ti-layout-media-left-alt',
  2143. ncyBreadcrumb: {
  2144. label: 'Elements'
  2145. }
  2146. }).state('app.ui.buttons', {
  2147. url: '/buttons',
  2148. templateUrl: "assets/views/ui_buttons.html",
  2149. title: 'Buttons',
  2150. resolve: loadSequence('spin', 'ladda', 'angular-ladda', 'laddaCtrl'),
  2151. ncyBreadcrumb: {
  2152. label: 'Buttons'
  2153. }
  2154. }).state('app.ui.links', {
  2155. url: '/links',
  2156. templateUrl: "assets/views/ui_links.html",
  2157. title: 'Link Effects',
  2158. ncyBreadcrumb: {
  2159. label: 'Link Effects'
  2160. }
  2161. }).state('app.ui.icons', {
  2162. url: '/icons',
  2163. templateUrl: "assets/views/ui_icons.html",
  2164. title: 'Font Awesome Icons',
  2165. ncyBreadcrumb: {
  2166. label: 'Font Awesome Icons'
  2167. },
  2168. resolve: loadSequence('iconsCtrl')
  2169. }).state('app.ui.lineicons', {
  2170. url: '/line-icons',
  2171. templateUrl: "assets/views/ui_line_icons.html",
  2172. title: 'Linear Icons',
  2173. ncyBreadcrumb: {
  2174. label: 'Linear Icons'
  2175. },
  2176. resolve: loadSequence('iconsCtrl')
  2177. }).state('app.ui.modals', {
  2178. url: '/modals',
  2179. templateUrl: "assets/views/ui_modals.html",
  2180. title: 'Modals',
  2181. ncyBreadcrumb: {
  2182. label: 'Modals'
  2183. },
  2184. resolve: loadSequence('asideCtrl')
  2185. }).state('app.ui.toggle', {
  2186. url: '/toggle',
  2187. templateUrl: "assets/views/ui_toggle.html",
  2188. title: 'Toggle',
  2189. ncyBreadcrumb: {
  2190. label: 'Toggle'
  2191. }
  2192. }).state('app.ui.tabs_accordions', {
  2193. url: '/accordions',
  2194. templateUrl: "assets/views/ui_tabs_accordions.html",
  2195. title: "Tabs & Accordions",
  2196. ncyBreadcrumb: {
  2197. label: 'Tabs & Accordions'
  2198. },
  2199. resolve: loadSequence('vAccordionCtrl')
  2200. }).state('app.ui.panels', {
  2201. url: '/panels',
  2202. templateUrl: "assets/views/ui_panels.html",
  2203. title: 'Panels',
  2204. ncyBreadcrumb: {
  2205. label: 'Panels'
  2206. }
  2207. }).state('app.ui.notifications', {
  2208. url: '/notifications',
  2209. templateUrl: "assets/views/ui_notifications.html",
  2210. title: 'Notifications',
  2211. ncyBreadcrumb: {
  2212. label: 'Notifications'
  2213. },
  2214. resolve: loadSequence('toasterCtrl', 'sweetAlertCtrl')
  2215. }).state('app.ui.treeview', {
  2216. url: '/treeview',
  2217. templateUrl: "assets/views/ui_tree.html",
  2218. title: 'TreeView',
  2219. ncyBreadcrumb: {
  2220. label: 'Treeview'
  2221. },
  2222. resolve: loadSequence('angularBootstrapNavTree', 'treeCtrl')
  2223. }).state('app.ui.media', {
  2224. url: '/media',
  2225. templateUrl: "assets/views/ui_media.html",
  2226. title: 'Media',
  2227. ncyBreadcrumb: {
  2228. label: 'Media'
  2229. }
  2230. }).state('app.ui.nestable', {
  2231. url: '/nestable2',
  2232. templateUrl: "assets/views/ui_nestable.html",
  2233. title: 'Nestable List',
  2234. ncyBreadcrumb: {
  2235. label: 'Nestable List'
  2236. },
  2237. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'nestableCtrl')
  2238. }).state('app.ui.typography', {
  2239. url: '/typography',
  2240. templateUrl: "assets/views/ui_typography.html",
  2241. title: 'Typography',
  2242. ncyBreadcrumb: {
  2243. label: 'Typography'
  2244. }
  2245. }).state('app.table', {
  2246. url: '/table',
  2247. template: '<div ui-view class="fade-in-up"></div>',
  2248. title: 'Tables',
  2249. ncyBreadcrumb: {
  2250. label: 'Tables'
  2251. }
  2252. }).state('app.table.basic', {
  2253. url: '/basic',
  2254. templateUrl: "assets/views/table_basic.html",
  2255. title: 'Basic Tables',
  2256. ncyBreadcrumb: {
  2257. label: 'Basic'
  2258. }
  2259. }).state('app.table.responsive', {
  2260. url: '/responsive',
  2261. templateUrl: "assets/views/table_responsive.html",
  2262. title: 'Responsive Tables',
  2263. ncyBreadcrumb: {
  2264. label: 'Responsive'
  2265. }
  2266. }).state('app.table.data', {
  2267. url: '/data',
  2268. templateUrl: "assets/views/table_data.html",
  2269. title: 'ngTable',
  2270. ncyBreadcrumb: {
  2271. label: 'ngTable'
  2272. },
  2273. resolve: loadSequence('ngTable', 'ngTableCtrl')
  2274. }).state('app.table.export', {
  2275. url: '/export',
  2276. templateUrl: "assets/views/table_export.html",
  2277. title: 'Table'
  2278. }).state('app.form', {
  2279. url: '/form',
  2280. template: '<div ui-view class="fade-in-up"></div>',
  2281. title: 'Forms',
  2282. ncyBreadcrumb: {
  2283. label: 'Forms'
  2284. }
  2285. }).state('app.form.elements', {
  2286. url: '/elements',
  2287. templateUrl: "assets/views/form_elements.html",
  2288. title: 'Forms Elements',
  2289. ncyBreadcrumb: {
  2290. label: 'Elements'
  2291. },
  2292. resolve: loadSequence('ui.select', 'monospaced.elastic', 'ui.mask', 'touchspin-plugin', 'selectCtrl')
  2293. }).state('app.form.xeditable', {
  2294. url: '/xeditable',
  2295. templateUrl: "assets/views/form_xeditable.html",
  2296. title: 'Angular X-Editable',
  2297. ncyBreadcrumb: {
  2298. label: 'X-Editable'
  2299. },
  2300. resolve: loadSequence('xeditable', 'checklist-model', 'xeditableCtrl')
  2301. }).state('app.form.texteditor', {
  2302. url: '/editor',
  2303. templateUrl: "assets/views/form_text_editor.html",
  2304. title: 'Text Editor',
  2305. ncyBreadcrumb: {
  2306. label: 'Text Editor'
  2307. },
  2308. resolve: loadSequence('ckeditor-plugin', 'ckeditor', 'ckeditorCtrl')
  2309. }).state('app.form.wizard', {
  2310. url: '/wizard',
  2311. templateUrl: "assets/views/form_wizard.html",
  2312. title: 'Form Wizard',
  2313. ncyBreadcrumb: {
  2314. label: 'Wizard'
  2315. },
  2316. resolve: loadSequence('wizardCtrl')
  2317. }).state('app.form.validation', {
  2318. url: '/validation',
  2319. templateUrl: "assets/views/form_validation.html",
  2320. title: 'Form Validation',
  2321. ncyBreadcrumb: {
  2322. label: 'Validation'
  2323. },
  2324. resolve: loadSequence('validationCtrl')
  2325. }).state('app.form.cropping', {
  2326. url: '/image-cropping',
  2327. templateUrl: "assets/views/form_image_cropping.html",
  2328. title: 'Image Cropping',
  2329. ncyBreadcrumb: {
  2330. label: 'Image Cropping'
  2331. },
  2332. resolve: loadSequence('ngImgCrop', 'cropCtrl')
  2333. }).state('app.form.upload', {
  2334. url: '/file-upload',
  2335. templateUrl: "assets/views/form_file_upload.html",
  2336. title: 'Multiple File Upload',
  2337. ncyBreadcrumb: {
  2338. label: 'File Upload'
  2339. },
  2340. resolve: loadSequence('angularFileUpload', 'uploadCtrl')
  2341. }).state('app.pages', {
  2342. url: '/pages',
  2343. template: '<div ui-view class="fade-in-up"></div>',
  2344. title: 'Pages',
  2345. ncyBreadcrumb: {
  2346. label: 'Pages'
  2347. }
  2348. }).state('app.pages.user', {
  2349. url: '/user',
  2350. templateUrl: "assets/views/pages_user_profile.html",
  2351. title: 'User Profile',
  2352. ncyBreadcrumb: {
  2353. label: 'User Profile'
  2354. },
  2355. resolve: loadSequence('flow', 'userCtrl')
  2356. }).state('app.pages.invoice', {
  2357. url: '/invoice',
  2358. templateUrl: "assets/views/pages_invoice.html",
  2359. title: 'Invoice',
  2360. ncyBreadcrumb: {
  2361. label: 'Invoice'
  2362. }
  2363. }).state('app.pages.timeline', {
  2364. url: '/timeline',
  2365. templateUrl: "assets/views/pages_timeline.html",
  2366. title: 'Timeline',
  2367. ncyBreadcrumb: {
  2368. label: 'Timeline'
  2369. },
  2370. resolve: loadSequence('ngMap')
  2371. }).state('app.pages.calendar', {
  2372. url: '/calendar',
  2373. templateUrl: "assets/views/pages_calendar.html",
  2374. title: 'Calendar',
  2375. ncyBreadcrumb: {
  2376. label: 'Calendar'
  2377. },
  2378. resolve: loadSequence('moment', 'mwl.calendar', 'calendarCtrl')
  2379. }).state('app.pages.messages', {
  2380. url: '/messages',
  2381. templateUrl: "assets/views/pages_messages.html",
  2382. resolve: loadSequence('truncate', 'htmlToPlaintext', 'inboxCtrl')
  2383. }).state('app.pages.messages.inbox', {
  2384. url: '/inbox/:inboxID',
  2385. templateUrl: "assets/views/pages_inbox.html",
  2386. controller: 'ViewMessageCrtl'
  2387. }).state('app.pages.blank', {
  2388. url: '/blank',
  2389. templateUrl: "assets/views/pages_blank_page.html",
  2390. ncyBreadcrumb: {
  2391. label: 'Starter Page'
  2392. }
  2393. }).state('app.utilities', {
  2394. url: '/utilities',
  2395. template: '<div ui-view class="fade-in-up"></div>',
  2396. title: 'Utilities',
  2397. ncyBreadcrumb: {
  2398. label: 'Utilities'
  2399. }
  2400. }).state('app.utilities.search', {
  2401. url: '/search',
  2402. templateUrl: "assets/views/utility_search_result.html",
  2403. title: 'Search Results',
  2404. ncyBreadcrumb: {
  2405. label: 'Search Results'
  2406. }
  2407. }).state('app.utilities.pricing', {
  2408. url: '/pricing',
  2409. templateUrl: "assets/views/utility_pricing_table.html",
  2410. title: 'Pricing Table',
  2411. ncyBreadcrumb: {
  2412. label: 'Pricing Table'
  2413. }
  2414. }).state('app.maps', {
  2415. url: "/maps",
  2416. templateUrl: "assets/views/maps.html",
  2417. resolve: loadSequence('ngMap', 'mapsCtrl'),
  2418. title: "Maps",
  2419. ncyBreadcrumb: {
  2420. label: 'Maps'
  2421. }
  2422. }).state('app.charts', {
  2423. url: "/charts",
  2424. templateUrl: "assets/views/charts.html",
  2425. resolve: loadSequence('chartjs', 'tc.chartjs', 'chartsCtrl'),
  2426. title: "Charts",
  2427. ncyBreadcrumb: {
  2428. label: 'Charts'
  2429. }
  2430. }).state('app.documentation', {
  2431. url: "/documentation",
  2432. templateUrl: "assets/views/documentation.html",
  2433. title: "Documentation",
  2434. ncyBreadcrumb: {
  2435. label: 'Documentation'
  2436. }
  2437. }).state('error', {
  2438. url: '/error',
  2439. template: '<div ui-view class="fade-in-up"></div>'
  2440. }).state('error.404', {
  2441. url: '/404',
  2442. templateUrl: "assets/views/utility_404.html"
  2443. }).state('error.500', {
  2444. url: '/500',
  2445. templateUrl: "assets/views/utility_500.html"
  2446. })
  2447. //custom form
  2448. .state('app.customform', {
  2449. url: '/customform',
  2450. templateUrl: 'assets/views/customform/index.html',
  2451. resolve: loadSequence('jquery-sparkline', 'ckeditor-plugin', 'ckeditor', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  2452. title: 'Customform',
  2453. ncyBreadcrumb: {
  2454. label: 'Customform'
  2455. }
  2456. })
  2457. .state('app.detail', {
  2458. url: '/detail/:formKey/:pdKey/:dataId/:taskId/:processInstanceId',
  2459. templateUrl: "assets/views/customform/detail.html",
  2460. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'customformDetailCtrl'),
  2461. title: 'form detail',
  2462. icon: 'ti-list',
  2463. ncyBreadcrumb: {
  2464. label: 'detail'
  2465. }
  2466. })
  2467. // Login routes
  2468. .state('login', {
  2469. url: '/login',
  2470. template: '<div ui-view class="fade-in-right-big smooth"></div>',
  2471. abstract: true
  2472. }).state('login.signin', {
  2473. url: '/signin',
  2474. templateUrl: "assets/views/login_login.html",
  2475. resolve: loadSequence('sweet-alert', 'oitozero.ngSweetAlert', 'morph', 'loginCtrl')
  2476. }).state('login.license', {
  2477. url: '/license',
  2478. templateUrl: "assets/views/license.html",
  2479. resolve: loadSequence('sweet-alert', 'oitozero.ngSweetAlert', 'morph', 'licenseCtrl')
  2480. }).state('login.forgot', {
  2481. url: '/forgot',
  2482. templateUrl: "assets/views/login_forgot.html"
  2483. })
  2484. /*.state('login.registration', {
  2485. url: '/registration',
  2486. templateUrl: "assets/views/login_registration.html"
  2487. })*/
  2488. .state('login.lockscreen', {
  2489. url: '/lock',
  2490. templateUrl: "assets/views/login_lock_screen.html"
  2491. })
  2492. // .state('login.changepassword', {
  2493. // url: '/changepassword',
  2494. // templateUrl: "assets/views/changepassword.html",
  2495. // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'passwordCtrl'),
  2496. // title: 'changepassword',
  2497. // icon: 'ti-list',
  2498. // ncyBreadcrumb: {
  2499. // label: 'changepassword'
  2500. // }
  2501. // });
  2502. // Generates a resolve object previously configured in constant.JS_REQUIRES (config.constant.js)
  2503. function loadSequence() {
  2504. var _args = arguments;
  2505. return {
  2506. deps: ['$ocLazyLoad', '$q',
  2507. function ($ocLL, $q) {
  2508. var promise = $q.when(1);
  2509. for (var i = 0, len = _args.length; i < len; i++) {
  2510. promise = promiseThen(_args[i]);
  2511. }
  2512. return promise;
  2513. function promiseThen(_arg) {
  2514. if (typeof _arg == 'function')
  2515. return promise.then(_arg);
  2516. else
  2517. return promise.then(function () {
  2518. var nowLoad = requiredData(_arg);
  2519. if (!nowLoad)
  2520. return $.error('Route resolve: Bad resource name [' + _arg + ']');
  2521. return $ocLL.load(nowLoad);
  2522. });
  2523. }
  2524. function requiredData(name) {
  2525. if (jsRequires.modules)
  2526. for (var m in jsRequires.modules)
  2527. if (jsRequires.modules[m].name && jsRequires.modules[m].name === name)
  2528. return jsRequires.modules[m];
  2529. return jsRequires.scripts && jsRequires.scripts[name];
  2530. }
  2531. }
  2532. ]
  2533. };
  2534. }
  2535. }
  2536. ]);