config.router.js 126 KB

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