config.router.js 130 KB

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