config.router.js 127 KB

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