config.router.js 128 KB

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