config.router.js 134 KB

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