config.router.js 132 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538
  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/:handUserId/:acceptorId/:isDirectProcess/:source',
  484. templateUrl: "assets/views/incident/list.html",
  485. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'incidentCtrl'),
  486. title: 'incident.LIST',
  487. pdKey: 'bpm_incident',
  488. icon: 'ti-list',
  489. ncyBreadcrumb: {
  490. label: 'incident list'
  491. }
  492. }).state('app.working.history', {
  493. url: '/history/:tab/:state',
  494. templateUrl: "assets/views/working/list.html",
  495. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'workingHistoryFormCtr'),
  496. title: 'incident.LIST',
  497. pdKey: 'bpm_incident',
  498. icon: 'ti-list',
  499. ncyBreadcrumb: {
  500. label: 'incident list'
  501. }
  502. }).state('app.incident.editor', {
  503. url: '/editor/{taskId}/{processInstanceId}/{dataId}',
  504. templateUrl: "assets/views/customform/index.html",
  505. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ng-nestable', 'monospaced.elastic', 'touchspin-plugin', 'ckeditor-plugin', 'ckeditor', 'ladda', 'angular-ladda', 'jquery-sparkline', 'ngTable', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  506. title: 'incident.NEW',
  507. pdKey: 'bpm_incident',
  508. icon: 'fa-tint',
  509. ncyBreadcrumb: {
  510. label: 'new incident'
  511. }
  512. }).state('app.incident.watch', {
  513. url: '/watch/{model}',
  514. templateUrl: "assets/views/customform/index.html",
  515. resolve: loadSequence('jquery-sparkline', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  516. title: 'incident.NEW',
  517. pdKey: 'bpm_incident',
  518. icon: 'fa-tint',
  519. ncyBreadcrumb: {
  520. label: 'new incident'
  521. }
  522. }).state('app.incident.detail', {
  523. url: '/detail/:formKey/:pdKey/:dataId/:taskId/:processInstanceId/:isChart/:isRecord',
  524. templateUrl: "assets/views/customform/detail.html",
  525. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'customformDetailCtrl', 'sanitize'),
  526. title: 'form detail',
  527. icon: 'ti-list',
  528. ncyBreadcrumb: {
  529. label: 'detail'
  530. }
  531. }).state('app.incident.follow', {
  532. url: '/follow/{processInstanceId}',
  533. templateUrl: "assets/views/customform/indexfollow.html",
  534. resolve: loadSequence('jquery-sparkline', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'incidentCtrl'),
  535. // title: 'incident.LIST',
  536. pdKey: 'bpm_incident',
  537. icon: 'fa-tint',
  538. ncyBreadcrumb: {
  539. label: 'new incident'
  540. }
  541. }).state('app.incident.title', {
  542. url: '/editor/{model}/{myData}',
  543. templateUrl: "assets/views/customform/index.html",
  544. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'ng-nestable', 'monospaced.elastic', 'touchspin-plugin', 'ckeditor-plugin', 'ckeditor', 'spin', 'ladda', 'angular-ladda', 'jquery-sparkline', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  545. title: 'incident.NEW',
  546. pdKey: 'bpm_incident',
  547. icon: 'fa-tint',
  548. ncyBreadcrumb: {
  549. label: 'new incident'
  550. }
  551. })
  552. .state('app.incident.chart', {
  553. url: '/chart/{model}',
  554. templateUrl: "assets/views/customform/index.html",
  555. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'ng-nestable', 'monospaced.elastic', 'touchspin-plugin', 'ckeditor-plugin', 'ckeditor', 'spin', 'ladda', 'angular-ladda', 'jquery-sparkline', 'ngTable', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  556. title: 'incident.NEW',
  557. pdKey: 'bpm_incident',
  558. icon: 'fa-tint',
  559. ncyBreadcrumb: {
  560. label: 'new incident'
  561. }
  562. })
  563. //服务请求页面路由
  564. .state('app.reService', {
  565. url: '/reService',
  566. template: '<div ui-view class="fade-in-up"></div>',
  567. title: 'reService',
  568. pdKey: 'bpm_reService',
  569. ncyBreadcrumb: {
  570. label: 'reService'
  571. }
  572. })
  573. //服务请求>服务列表
  574. .state('app.reService.manager', {
  575. url: '/manager',
  576. templateUrl: "assets/views/reService/manager.html",
  577. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'angularBootstrapNavTree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'reServiceCtrl'),
  578. title: 'reService.VIEW',
  579. icon: 'ti-list',
  580. ncyBreadcrumb: {
  581. label: 'reService list'
  582. }
  583. })
  584. //服务请求>新建服务事件
  585. .state('app.reService.newService', {
  586. url: '/newService/{pdKey}/{formUiStart}/{formUiEdit}/{formUiName}/{userId}',
  587. templateUrl: "assets/views/customform/index.html",
  588. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'ng-nestable', 'monospaced.elastic', 'touchspin-plugin', 'ckeditor-plugin', 'ckeditor', 'spin', 'ladda', 'angular-ladda', 'jquery-sparkline', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  589. title: 'reService.NEW',
  590. // pdKey: 'bpm_reService',
  591. icon: 'fa-tint',
  592. ncyBreadcrumb: {
  593. label: 'new reService'
  594. }
  595. })
  596. //服务请求>服务请求编辑
  597. .state('app.reService.editor', {
  598. url: '/editor/{taskId}/{processInstanceId}/{pdKey}/{formUiEdit}',
  599. templateUrl: "assets/views/customform/index.html",
  600. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'ng-nestable', 'monospaced.elastic', 'touchspin-plugin', 'ckeditor-plugin', 'ckeditor', 'jquery-sparkline', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  601. title: 'reService.NEW',
  602. pdKey: 'bpm_reService',
  603. icon: 'fa-tint',
  604. ncyBreadcrumb: {
  605. label: 'new reService'
  606. }
  607. })
  608. //服务请求>服务请求查看
  609. .state('app.reService.detail', {
  610. url: '/detail/{formKey}/{dataId}/{taskId}/{processInstanceId}/{pdKey}',
  611. templateUrl: "assets/views/customform/detail.html",
  612. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'customformDetailCtrl'),
  613. title: 'form detail',
  614. icon: 'ti-list',
  615. ncyBreadcrumb: {
  616. label: 'detail'
  617. }
  618. })
  619. .state('app.watch', {
  620. url: '/watch',
  621. template: '<div ui-view class="fade-in-up"></div>',
  622. title: 'watch',
  623. pdKey: 'bpm_watch',
  624. ncyBreadcrumb: {
  625. label: 'watch'
  626. }
  627. }).state('app.watch.list', {
  628. url: '/list',
  629. templateUrl: "assets/views/watch/watch.html",
  630. resolve: loadSequence('jquery-sparkline', 'ui.grid', 'watchCtrl'),
  631. title: 'watch.LIST',
  632. pdKey: 'bpm_watch',
  633. icon: 'ti-list',
  634. ncyBreadcrumb: {
  635. label: 'watch list'
  636. }
  637. })
  638. .state('app.problem', {
  639. url: '/problem',
  640. template: '<div ui-view class="fade-in-up"></div>',
  641. title: 'problem',
  642. pdKey: 'bpm_problem',
  643. ncyBreadcrumb: {
  644. label: 'Problem'
  645. }
  646. }).state('app.problem.list', {
  647. url: '/list',
  648. templateUrl: "assets/views/problem/list.html",
  649. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'problemCtrl'),
  650. title: 'problem.LIST',
  651. pdKey: 'bpm_problem',
  652. icon: 'ti-list',
  653. ncyBreadcrumb: {
  654. label: 'problem list'
  655. }
  656. }).state('app.problem.editor', {
  657. url: '/editor/{taskId}/{processInstanceId}/{dataId}',
  658. templateUrl: "assets/views/customform/index.html",
  659. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  660. title: 'problem.NEW',
  661. pdKey: 'bpm_problem',
  662. icon: 'fa-tint',
  663. ncyBreadcrumb: {
  664. label: 'new problem'
  665. }
  666. }).state('app.problem.incident', {
  667. url: '/incident/{model}',
  668. templateUrl: "assets/views/customform/index.html",
  669. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  670. title: 'problem.NEW',
  671. pdKey: 'bpm_problem',
  672. icon: 'fa-tint',
  673. ncyBreadcrumb: {
  674. label: 'new problem'
  675. }
  676. }).state('app.change.problem', {
  677. url: '/change/{model}',
  678. templateUrl: "assets/views/customform/index.html",
  679. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  680. title: 'change.NEW',
  681. pdKey: 'bpm_change',
  682. icon: 'fa-tint',
  683. ncyBreadcrumb: {
  684. label: 'new change'
  685. }
  686. })
  687. .state('app.change', {
  688. url: '/change',
  689. template: '<div ui-view class="fade-in-up"></div>',
  690. title: 'change',
  691. pdKey: 'bpm_change',
  692. ncyBreadcrumb: {
  693. label: 'Change'
  694. }
  695. }).state('app.change.list', {
  696. url: '/list',
  697. templateUrl: "assets/views/change/list.html",
  698. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'changeCtrl'),
  699. title: 'change.LIST',
  700. pdKey: 'bpm_change',
  701. icon: 'ti-list',
  702. ncyBreadcrumb: {
  703. label: 'rfc list'
  704. } //incident
  705. }).state('app.change.editor', {
  706. url: '/editor/{taskId}/{processInstanceId}/{dataId}',
  707. templateUrl: "assets/views/customform/index.html",
  708. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  709. title: 'change.NEW',
  710. pdKey: 'bpm_change',
  711. icon: 'fa-tint',
  712. ncyBreadcrumb: {
  713. label: 'new rfc'
  714. }
  715. }).state('app.change.incident', {
  716. url: '/incident/{model}',
  717. templateUrl: "assets/views/customform/index.html",
  718. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  719. title: 'change.NEW',
  720. pdKey: 'bpm_change',
  721. icon: 'fa-tint',
  722. ncyBreadcrumb: {
  723. label: 'new rfc'
  724. }
  725. })
  726. .state('app.change.release', {
  727. url: '/release/{model}',
  728. templateUrl: "assets/views/customform/index.html",
  729. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  730. title: 'change.NEW',
  731. pdKey: 'bpm_release',
  732. icon: 'fa-tint',
  733. ncyBreadcrumb: {
  734. label: 'new rfc'
  735. }
  736. }).state('app.performance', {
  737. url: '/performance',
  738. template: '<div ui-view class="fade-in-up"></div>',
  739. title: 'Performance Elements',
  740. ncyBreadcrumb: {
  741. label: 'Performance Elements'
  742. }
  743. }).state('app.performance.servicePerformance', {
  744. url: '/servicePerformance',
  745. templateUrl: "assets/views/performance/servicePerformance.html",
  746. resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'servicePerformanceCtrl'),
  747. title: 'Performance.LISTDesc',
  748. ncyBreadcrumb: {
  749. label: 'Performance View'
  750. }
  751. }).state('app.performance.scoreConfigurationPerformance', {
  752. url: '/scoreConfigurationPerformance',
  753. templateUrl: "assets/views/performance/scoreConfigurationPerformance.html",
  754. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'scoreConfigurationPerformanceCtrl'),
  755. title: 'Performance.LISTDesc',
  756. ncyBreadcrumb: {
  757. label: 'Performance View'
  758. }
  759. }).state('app.report', {
  760. url: '/report',
  761. template: '<div ui-view class="fade-in-up"></div>',
  762. title: 'Report Elements',
  763. ncyBreadcrumb: {
  764. label: 'Report Elements'
  765. }
  766. }).state('app.report.view', {
  767. url: '/elements',
  768. templateUrl: "assets/views/report/report.html",
  769. resolve: loadSequence('jquery-sparkline', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'reportCtrl'),
  770. title: 'report.LISTDesc',
  771. ncyBreadcrumb: {
  772. label: 'Report View'
  773. }
  774. }).state('app.report.charging', {
  775. url: '/charging',
  776. templateUrl: "assets/views/report/charging.html",
  777. resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'chargingCtrl'),
  778. title: 'report.LISTDesc',
  779. ncyBreadcrumb: {
  780. label: 'Report View'
  781. }
  782. }).state('app.report.nxreport', {
  783. url: '/nxreport',
  784. templateUrl: "assets/views/report/nxreport.html",
  785. // resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'spin', 'ladda', 'angular-ladda', 'moment', 'nxreportCtrl'),
  786. resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'nxreportCtrl'),
  787. title: 'report.LISTDesc',
  788. ncyBreadcrumb: {
  789. label: 'Report View'
  790. }
  791. }).state('app.report.deck_report', {
  792. url: '/deck_report',
  793. templateUrl: "assets/views/report/deck_report.html",
  794. // resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'spin', 'ladda', 'angular-ladda', 'moment', 'nxreportCtrl'),
  795. resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'deck_reportCtrl'),
  796. title: 'report.LISTDesc',
  797. ncyBreadcrumb: {
  798. label: 'Report View'
  799. }
  800. }).state('app.report.incident_report', {
  801. url: '/incident_report',
  802. templateUrl: "assets/views/report/incident_report.html",
  803. // resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'spin', 'ladda', 'angular-ladda', 'moment', 'nxreportCtrl'),
  804. resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'spin', 'ladda', 'angular-ladda', 'moment', 'incident_reportCtrl'),
  805. title: 'report.LISTDesc',
  806. ncyBreadcrumb: {
  807. label: 'Report View'
  808. }
  809. }).state('app.report.service_form', {//服务台报表-seimin
  810. url: '/service_form',
  811. templateUrl: "assets/views/report/service_form.html",
  812. resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'service_formCtrl'),
  813. title: 'report.LISTDesc',
  814. ncyBreadcrumb: {
  815. label: 'Report View'
  816. }
  817. }).state('app.report.event_form', {//事件报表-seimin
  818. url: '/event_form',
  819. templateUrl: "assets/views/report/event_form.html",
  820. resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'spin', 'ladda', 'angular-ladda', 'moment', 'event_formCtrl'),
  821. title: 'report.LISTDesc',
  822. ncyBreadcrumb: {
  823. label: 'Report View'
  824. }
  825. }).state('app.release', {
  826. url: '/release',
  827. template: '<div ui-view class="fade-in-up"></div>',
  828. title: 'release',
  829. pdKey: 'bpm_release',
  830. ncyBreadcrumb: {
  831. label: 'release'
  832. }
  833. }).state('app.release.list', {
  834. url: '/list',
  835. templateUrl: "assets/views/release/list.html",
  836. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'releaseCtrl'),
  837. title: 'release.LIST',
  838. pdKey: 'bpm_release',
  839. icon: 'ti-list',
  840. ncyBreadcrumb: {
  841. label: 'release list'
  842. }
  843. }).state('app.release.editor', {
  844. url: '/editor/{taskId}/{processInstanceId}/{dataId}',
  845. templateUrl: "assets/views/customform/index.html",
  846. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  847. title: 'release.NEW',
  848. pdKey: 'bpm_release',
  849. icon: 'fa-tint',
  850. ncyBreadcrumb: {
  851. label: 'new release'
  852. }
  853. })
  854. .state('app.process', {
  855. url: '/process',
  856. template: '<div ui-view class="fade-in-up"></div>',
  857. title: 'Process',
  858. ncyBreadcrumb: {
  859. label: 'Process'
  860. }
  861. }).state('app.process.list', {
  862. url: '/list',
  863. templateUrl: "assets/views/process/list.html",
  864. title: 'process.LIST',
  865. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'processCtrl'),
  866. icon: 'ti-list',
  867. ncyBreadcrumb: {
  868. label: 'Process list'
  869. }
  870. }).state('app.process.modeler', {
  871. url: '/modeler/{modelId}',
  872. templateUrl: "assets/views/process/modeler.html",
  873. resolve: loadSequence('jquery-sparkline', 'bpmn-js-properties', 'processCtrl'),
  874. title: 'process.MODELER',
  875. icon: 'fa-tint',
  876. ncyBreadcrumb: {
  877. label: 'modeler'
  878. }
  879. })
  880. .state('app.cmdb', {
  881. url: '/cmdb',
  882. template: '<div ui-view class="fade-in-up"></div>',
  883. title: 'CMDB',
  884. ncyBreadcrumb: {
  885. label: 'CMDB'
  886. }
  887. }).state('app.cmdb.plist', {
  888. url: '/plist',
  889. templateUrl: "assets/views/cmdb/plist.html",
  890. title: 'configuremanagerdb.PLIST',
  891. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'cmdbCtrl'),
  892. pdKey: 'bpm_configure',
  893. icon: 'ti-list',
  894. ncyBreadcrumb: {
  895. label: 'cmdbList'
  896. }
  897. }).state('app.cmdb.modeler', {
  898. url: '/editor/{taskId}/{processInstanceId}',
  899. templateUrl: "assets/views/customform/index.html",
  900. title: 'configuremanagerdb.MODELER',
  901. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
  902. pdKey: 'bpm_configure',
  903. icon: 'ti-list',
  904. ncyBreadcrumb: {
  905. label: 'modeler'
  906. }
  907. })
  908. .state('app.cmdb.list', {
  909. url: '/list',
  910. templateUrl: "assets/views/cmdb/list.html",
  911. title: 'configuremanagerdb.LIST',
  912. resolve: loadSequence('spin', 'ladda', 'angular-ladda', 'jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'ui.grid', 'customformCtrl', 'cmdbListCtrl'),
  913. icon: 'ti-list',
  914. ncyBreadcrumb: {
  915. label: 'cmdbList'
  916. }
  917. }).state('app.cmdb.viewer', {
  918. url: '/view/{modelId}',
  919. templateUrl: "assets/views/cmdb/view.html",
  920. resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'd3', 'cmdbViewCtrl'),
  921. title: 'configuremanagerdb.VIEW',
  922. icon: 'fa-tint',
  923. ncyBreadcrumb: {
  924. label: 'cmdb viewer'
  925. }
  926. }).state('app.cmdb.change', {
  927. url: '/change/{model}',
  928. templateUrl: "assets/views/customform/index.html",
  929. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  930. title: 'configuremanagerdb.MODELER',
  931. pdKey: 'bpm_configure',
  932. icon: 'fa-tint',
  933. ncyBreadcrumb: {
  934. label: 'new rfc'
  935. }
  936. })
  937. .state('app.knowledge', {
  938. url: '/knowledge',
  939. template: '<div ui-view class="fade-in-up"></div>',
  940. title: 'knowledge',
  941. ncyBreadcrumb: {
  942. label: 'knowledge'
  943. }
  944. }).state('app.knowledge.manager', {
  945. url: '/manager/{model}',
  946. templateUrl: "assets/views/knowledge/manager.html",
  947. 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'),
  948. title: 'knowledgebase.VIEW',
  949. // params: { "fromstate": null },
  950. cache: false,
  951. icon: 'ti-list',
  952. ncyBreadcrumb: {
  953. label: 'knowledge list'
  954. }
  955. }).state('app.knowledge.forum', {
  956. url: '/forum',
  957. templateUrl: "assets/views/knowledge/forum.html",
  958. resolve: loadSequence('jquery-sparkline', 'jquery-nestable-plugin', 'ng-nestable', 'moment', 'ckeditor-plugin', 'ckeditor', 'ladda', 'angular-ladda', 'ngTable', 'knowledgeCtrl'),
  959. title: 'knowledgebase.LIST',
  960. icon: 'fa-tint',
  961. ncyBreadcrumb: {
  962. label: 'knowledge forum'
  963. }
  964. }).state('app.knowledge.examine', {
  965. url: '/examine',
  966. templateUrl: "assets/views/knowledge/examine.html",
  967. 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'),
  968. title: 'knowledgebase.VIEW',
  969. icon: 'ti-list',
  970. ncyBreadcrumb: {
  971. label: 'knowledge list'
  972. }
  973. }).state('app.knowledge.create', {
  974. url: '/create/{formKey}/{service}/{model}',
  975. templateUrl: "assets/views/knowledgeform.html",
  976. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
  977. title: 'knowledge.NEW',
  978. icon: 'fa-tint',
  979. ncyBreadcrumb: {
  980. label: 'new knowledge'
  981. }
  982. }).state('app.knowledge.leve', {
  983. url: '/create/{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. ncyBreadcrumb: {
  989. label: 'new knowledge'
  990. }
  991. }).state('app.knowledge.jry_lishi', {
  992. url: '/jry_lishi/{formKey}/{service}/{model}/{history}',
  993. templateUrl: "assets/views/knowledgelishi.html",
  994. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
  995. title: 'knowledge.NEW',
  996. // pdKey: 'knowledge',
  997. icon: 'fa-tint',
  998. ncyBreadcrumb: {
  999. label: 'new knowledge'
  1000. }
  1001. }).state('app.knowledge.jry_save_history_data', {
  1002. url: '/jry_save_history_data/{model}',
  1003. templateUrl: "assets/views/jry_save_history_data.html",
  1004. resolve: loadSequence('jquery-sparkline', 'jry_save_history_dataCtrl'),
  1005. }).state('app.knowledge.editor', {
  1006. url: '/editor/{formKey}/{service}/{model}/{history}',
  1007. templateUrl: "assets/views/knowledgeform.html",
  1008. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
  1009. title: 'knowledge.NEW',
  1010. icon: 'fa-tint',
  1011. params: {
  1012. "fromstate": null
  1013. },
  1014. ncyBreadcrumb: {
  1015. label: 'new knowledge'
  1016. }
  1017. }).state('app.knowledge.jry_shenhe', {
  1018. url: '/jry_shenhe/{formKey}/{service}/{model}/{history}',
  1019. templateUrl: "assets/views/knowledgeshenhe.html",
  1020. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
  1021. title: 'knowledge.NEW',
  1022. icon: 'fa-tint',
  1023. params: {
  1024. "fromstate": null
  1025. },
  1026. ncyBreadcrumb: {
  1027. label: 'new knowledge'
  1028. }
  1029. }).state('app.knowledge.detail', {
  1030. url: '/detail/{formKey}/{service}/{model}/{history}',
  1031. templateUrl: "assets/views/knowledgedetail.html",
  1032. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
  1033. title: 'knowledge.NEW',
  1034. // pdKey: 'knowledge',
  1035. icon: 'fa-tint',
  1036. ncyBreadcrumb: {
  1037. label: 'new knowledge'
  1038. }
  1039. })
  1040. .state('app.scheduling', {
  1041. url: '/scheduling',
  1042. template: '<div ui-view class="fade-in-up"></div>',
  1043. title: 'scheduling',
  1044. pdKey: 'bpm_scheduling',
  1045. ncyBreadcrumb: {
  1046. label: 'knowledge'
  1047. }
  1048. }).state('app.scheduling.myscheduling', {
  1049. url: '/myscheduling',
  1050. templateUrl: "assets/views/scheduling/mine.html",
  1051. resolve: loadSequence('moment', 'mwl.calendar', 'ui.select', 'calendarCtrl', 'schedulingCtrl'),
  1052. title: 'scheduling.MINE',
  1053. icon: 'fa-tint',
  1054. ncyBreadcrumb: {
  1055. label: 'scheduling'
  1056. }
  1057. })
  1058. .state('app.scheduling.schedulecalendar', {
  1059. url: '/schedule',
  1060. templateUrl: "assets/views/scheduling/calendar.html",
  1061. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'moment', 'mwl.calendar', 'ui.select', 'calendarCtrl', 'angularFileUpload', 'schedulingCtrl'),
  1062. title: 'scheduling.CALENDAR',
  1063. icon: 'fa-tint',
  1064. ncyBreadcrumb: {
  1065. label: 'scheduling'
  1066. }
  1067. })
  1068. // .state('app.scheduling.schedulecalendar',{
  1069. // url: '/schedule',
  1070. // templateUrl: "assets/views/scheduling/matrialcalendar.html",
  1071. // resolve: loadSequence('jquery-sparkline', 'spin','ladda', 'angular-ladda','moment', 'material-calendar', 'ui.select', 'schedulingCtrl'),
  1072. // title: 'scheduling.CALENDAR',
  1073. // icon: 'fa-tint',
  1074. // ncyBreadcrumb: {
  1075. // label: 'scheduling'
  1076. // }
  1077. // })
  1078. .state('app.scheduling.list', {
  1079. url: '/list',
  1080. templateUrl: "assets/views/scheduling/list.html",
  1081. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'angularFileUpload', 'schedulingCtrl'),
  1082. title: 'scheduling.LIST',
  1083. pdKey: 'bpm_schedule',
  1084. icon: 'fa-tint',
  1085. ncyBreadcrumb: {
  1086. label: 'scheduling'
  1087. }
  1088. }).state('app.scheduling.editor', {
  1089. url: '/editor/{taskId}/{processInstanceId}/{id}',
  1090. templateUrl: "assets/views/customform/index.html",
  1091. title: 'scheduling.MODELER',
  1092. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'schedulingCtrl', 'customformCtrl'),
  1093. pdKey: 'bpm_schedule',
  1094. icon: 'ti-list',
  1095. ncyBreadcrumb: {
  1096. label: 'modeler'
  1097. }
  1098. }).state('app.scheduling.shift', {
  1099. url: '/shift',
  1100. templateUrl: "assets/views/scheduling/shift.html",
  1101. resolve: loadSequence('jquery-sparkline', 'schedulingCtrl'),
  1102. title: 'scheduling.SHIFT',
  1103. icon: 'fa-tint',
  1104. ncyBreadcrumb: {
  1105. label: 'scheduling shift'
  1106. }
  1107. }).state('app.scheduling.shiftrecord', {
  1108. url: '/shiftrecord',
  1109. templateUrl: "assets/views/scheduling/shiftrecord.html",
  1110. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'schedulingCtrl'),
  1111. title: 'scheduling.SHIFTRECORD',
  1112. icon: 'fa-tint',
  1113. ncyBreadcrumb: {
  1114. label: 'scheduling record'
  1115. }
  1116. }).state('app.means', {
  1117. url: '/means',
  1118. template: '<div ui-view class="fade-in-up"></div>',
  1119. title: 'means',
  1120. // pdKey: 'bpm_means',
  1121. ncyBreadcrumb: {
  1122. label: 'means'
  1123. }
  1124. }).state('app.means.list', {
  1125. url: '/list',
  1126. templateUrl: "assets/views/means/means.html",
  1127. 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'),
  1128. title: 'means.LIST',
  1129. // pdKey: 'bpm_means',
  1130. icon: 'ti-list',
  1131. ncyBreadcrumb: {
  1132. label: 'means list'
  1133. }
  1134. }).state('app.means.applylist', {
  1135. url: '/applylist',
  1136. templateUrl: "assets/views/means/meansapplylist.html",
  1137. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'meansapplyListCtrl'),
  1138. title: 'means.LIST',
  1139. pdKey: 'applicationForm',
  1140. icon: 'ti-list',
  1141. ncyBreadcrumb: {
  1142. label: 'means list'
  1143. }
  1144. }).state('app.means.applyediter', {
  1145. url: '/applyediter/{taskId}/{processInstanceId}/{id}',
  1146. templateUrl: "assets/views/means/cmdbform.html",
  1147. 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'),
  1148. title: 'means.NEW',
  1149. pdKey: 'bpm_applicationForm',
  1150. icon: 'fa-tint',
  1151. ncyBreadcrumb: {
  1152. label: 'new means'
  1153. }
  1154. }).state('app.means.outediter', {
  1155. url: '/outediter/{taskId}/{processInstanceId}/{id}',
  1156. templateUrl: "assets/views/means/cmdbform.html",
  1157. 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'),
  1158. title: 'means.NEW',
  1159. pdKey: 'bpm_applicationForm_subtract',
  1160. icon: 'fa-tint',
  1161. ncyBreadcrumb: {
  1162. label: 'new means'
  1163. }
  1164. }).state('app.means.meansmap', {
  1165. url: '/meansmap',
  1166. templateUrl: "assets/views/means/meansMap.html",
  1167. 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'),
  1168. title: 'means.NEW',
  1169. // pdKey: 'bpm_applicationForm_subtract',
  1170. icon: 'fa-tint',
  1171. ncyBreadcrumb: {
  1172. label: 'new means'
  1173. }
  1174. }).state('app.means.auditlist', {
  1175. url: '/auditlist',
  1176. templateUrl: "assets/views/means/cmdbauditlist.html",
  1177. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'cmdbauditlistCtrl'),
  1178. title: 'means.LIST',
  1179. pdKey: 'applicationForm',
  1180. icon: 'ti-list',
  1181. ncyBreadcrumb: {
  1182. label: 'means list'
  1183. }
  1184. }).state('app.means.newaudit', {
  1185. url: '/newaudit',
  1186. templateUrl: "assets/views/means/cmdbauditdetail.html",
  1187. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'cmdbauditdetailCtrl'),
  1188. title: 'means.LIST',
  1189. pdKey: 'applicationForm',
  1190. icon: 'ti-list',
  1191. ncyBreadcrumb: {
  1192. label: 'means list'
  1193. }
  1194. }).state('app.means.auditeditor', {
  1195. url: '/auditeditor/{model}',
  1196. templateUrl: "assets/views/means/cmdbauditeditor.html",
  1197. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'cmdbauditeditorCtrl'),
  1198. title: 'means.LIST',
  1199. pdKey: 'applicationForm',
  1200. icon: 'ti-list',
  1201. ncyBreadcrumb: {
  1202. label: 'means list'
  1203. }
  1204. // })
  1205. // .state('cmdbcontrast', {
  1206. // url: '/cmdbcontrast/{model}',
  1207. // templateUrl: "assets/views/means/cmdbcontrast.html",
  1208. // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'Timeline', 'cmdbcontrastCtrl'),
  1209. // title: 'means.LIST',
  1210. // pdKey: 'applicationForm',
  1211. // icon: 'ti-list',
  1212. // ncyBreadcrumb: {
  1213. // label: 'means list'
  1214. // }
  1215. }).state('app.means.bill', {
  1216. url: '/bill/{formKey}/{service}/{model}',
  1217. templateUrl: "assets/views/means/meansBill.html",
  1218. 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'),
  1219. title: 'means.NEW',
  1220. // pdKey: 'bpm_means',
  1221. icon: 'fa-tint',
  1222. ncyBreadcrumb: {
  1223. label: 'new means'
  1224. }
  1225. }).state('app.means.view', {
  1226. url: '/bill/{formKey}/{service}/{model}',
  1227. templateUrl: "assets/views/means/meansview.html",
  1228. 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'),
  1229. title: 'means.NEW',
  1230. // pdKey: 'bpm_means',
  1231. icon: 'fa-tint',
  1232. ncyBreadcrumb: {
  1233. label: 'new means'
  1234. }
  1235. }).state('app.means.editor', {
  1236. url: '/editor/{formKey}/{service}',
  1237. templateUrl: "assets/views/means/tpl/meansform.html",
  1238. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'ladda', 'angular-ladda', 'angularBootstrapNavTree', 'customformCtrl', 'meansformCtrl'),
  1239. title: 'means.NEW',
  1240. // pdKey: 'bpm_means',
  1241. icon: 'fa-tint',
  1242. ncyBreadcrumb: {
  1243. label: 'new means'
  1244. }
  1245. }).state('app.means.detail', {
  1246. // url: '/detail/{formKey}/{service}',
  1247. url: '/detail/:formKey/:pdKey/:dataId/:taskId/:processInstanceId/:id',
  1248. templateUrl: "assets/views/means/tpl/meansdetailform.html",
  1249. resolve: loadSequence('jquery-sparkline', 'api-check', 'ngTable', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'ladda', 'angular-ladda', 'angularBootstrapNavTree', 'customformCtrl', 'meansdetailCtrl'),
  1250. title: 'means.NEW',
  1251. // pdKey: 'bpm_means',
  1252. icon: 'fa-tint',
  1253. ncyBreadcrumb: {
  1254. label: 'new means'
  1255. }
  1256. }) // 固定资产列表
  1257. .state('app.means.listd', {
  1258. url: '/fixed_list',
  1259. templateUrl: "assets/views/fixed/list.html",
  1260. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'fixedCtrl'),
  1261. })
  1262. // 固定查看
  1263. .state('app.means.fixed_see', {
  1264. url: '/fixed_see/{gdzc_label}/{gdzc_item}/{idd}',
  1265. templateUrl: "assets/views/fixed/see.html",
  1266. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'gdzc_seeCtrl'),
  1267. })
  1268. // 固定资产属性
  1269. .state('app.means.fixed_see.attribute', {
  1270. url: '/attribute/{gdzc_label1}/{gdzc_item1}',
  1271. templateUrl: "assets/views/fixed/attribute.html",
  1272. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'gdzc_attributeCtrl'),
  1273. })
  1274. // 固定操作历史
  1275. .state('app.means.fixed_see.history', {
  1276. url: '/history/{idd}',
  1277. templateUrl: "assets/views/fixed/history.html",
  1278. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'gdzc_historyCtrl'),
  1279. })
  1280. // 固定关联流程
  1281. .state('app.means.fixed_see.relation', {
  1282. url: '/relation/{idd}',
  1283. templateUrl: "assets/views/fixed/relation.html",
  1284. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'gdzc_relationCtrl'),
  1285. })
  1286. // 固定编辑
  1287. .state('app.means.fixed_edit', {
  1288. url: '/fixed_edit/{formKey}/{service}/{model}',
  1289. templateUrl: "assets/views/fixed/gdzc_edit.html",
  1290. 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'),
  1291. title: 'means.NEW',
  1292. // pdKey: 'bpm_means',
  1293. icon: 'fa-tint',
  1294. ncyBreadcrumb: {
  1295. label: 'new means'
  1296. }
  1297. })
  1298. // 业务系统列表
  1299. .state('app.means.business_list', {
  1300. url: '/business_list',
  1301. templateUrl: "assets/views/business/list.html",
  1302. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'businessCtrl'),
  1303. })
  1304. // 耗材列表
  1305. .state('app.means.consumables_list', {
  1306. url: '/consumables_list',
  1307. templateUrl: "assets/views/consumables/list.html",
  1308. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'hc_consumablesCtrl'),
  1309. })
  1310. // 耗材查看
  1311. .state('app.means.consumables_see', {
  1312. url: '/consumables_see/{idd}',
  1313. templateUrl: "assets/views/consumables/see.html",
  1314. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'hc_seeCtrl'),
  1315. })
  1316. // 耗材操作历史
  1317. .state('app.means.consumables_see.operation_history', {
  1318. url: '/operation_history/{idd}',
  1319. templateUrl: "assets/views/consumables/operation_history.html",
  1320. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'hc_historyCtrl'),
  1321. }) // 耗材关联流程
  1322. // 耗材关联流程
  1323. .state('app.means.consumables_see.relation', {
  1324. url: '/relation/{idd}',
  1325. templateUrl: "assets/views/consumables/relation.html",
  1326. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'hc_relationCtrl'),
  1327. }).state('app.inspection', {
  1328. url: '/inspection',
  1329. template: '<div ui-view class="fade-in-up"></div>',
  1330. title: 'inspection',
  1331. // pdKey: 'bpm_means',
  1332. ncyBreadcrumb: {
  1333. label: 'inspection'
  1334. }
  1335. })
  1336. //计划任务
  1337. .state('app.plan', {
  1338. url: '/plan',
  1339. template: '<div ui-view class="fade-in-up"></div>',
  1340. title: 'plan Elements',
  1341. ncyBreadcrumb: {
  1342. label: 'plan Elements'
  1343. }
  1344. })
  1345. //计划任务>定时报告
  1346. .state('app.plan.timingMessageSending', {
  1347. url: '/timingMessageSending',
  1348. templateUrl: "assets/views/plan/timingMessageSending.html",
  1349. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'timingMessageSendingCtrl'),
  1350. title: 'inspection.LIST',
  1351. icon: 'ti-list',
  1352. ncyBreadcrumb: {
  1353. label: 'inspection list'
  1354. }
  1355. })
  1356. //巡检管理>巡检计划
  1357. .state('app.inspection.inspectPlan', {
  1358. url: '/inspectPlan',
  1359. templateUrl: "assets/views/inspect/inspectPlan.html",
  1360. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'inspectPlanCtrl'),
  1361. title: 'inspection.LIST',
  1362. icon: 'ti-list',
  1363. ncyBreadcrumb: {
  1364. label: 'inspection list'
  1365. }
  1366. })
  1367. //巡检管理>巡检报告
  1368. .state('app.inspection.inspectReport', {
  1369. url: '/inspectReport',
  1370. templateUrl: "assets/views/inspect/inspectReport.html",
  1371. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'inspectReportCtrl'),
  1372. title: 'inspection.LIST',
  1373. icon: 'ti-list',
  1374. ncyBreadcrumb: {
  1375. label: 'inspection list'
  1376. }
  1377. })
  1378. //巡检管理>巡检列表
  1379. .state('app.inspection.inspectList', {
  1380. url: '/inspectList',
  1381. templateUrl: "assets/views/inspect/inspectList.html",
  1382. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'inspectListCtrl'),
  1383. title: 'inspection.LIST',
  1384. icon: 'ti-list',
  1385. ncyBreadcrumb: {
  1386. label: 'inspection list'
  1387. }
  1388. })
  1389. //巡检管理>巡检计划编辑
  1390. .state('app.inspection.editor', {
  1391. url: '/editor/{formKey}/{service}/{model}/{labelTree}',
  1392. templateUrl: "assets/views/form.html",
  1393. title: 'ui-form',
  1394. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'spin', 'ladda', 'angular-ladda', 'angularFileUpload', 'multi.select.tree', 'moment', 'customformCtrl', 'inspectForm'),
  1395. ncyBreadcrumb: {
  1396. label: 'ui-form'
  1397. }
  1398. })
  1399. //巡检管理>巡检范围设置
  1400. .state('app.inspectionScope', {
  1401. url: '/inspectionScope/{id}',
  1402. templateUrl: "assets/views/inspect/inspectionScope.html",
  1403. resolve: loadSequence('ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'inspectionScopeCtrl'),
  1404. title: 'Nav Manager',
  1405. ncyBreadcrumb: {
  1406. label: 'User Manager'
  1407. }
  1408. })
  1409. //巡检管理>巡检计划查看
  1410. .state('app.inspection.form', {
  1411. url: '/form/{formKey}/{service}/{model}',
  1412. templateUrl: "assets/views/system/tpl/detail.html",
  1413. title: 'ui-form',
  1414. resolve: loadSequence('jquery-sparkline', 'api-check', 'ui.grid', 'formly', 'angularFormly', 'spin', 'ladda', 'angular-ladda', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'inspectForm'),
  1415. ncyBreadcrumb: {
  1416. label: 'ui-form'
  1417. }
  1418. })
  1419. //巡检列表>巡检列表编辑
  1420. .state('app.inspection.inspectListEditor', {
  1421. url: '/inspectListEditor/{pdKey}/{taskId}/{processInstanceId}/{formUiEdit}/{model}/{dataId}',
  1422. // url: '/editor',
  1423. templateUrl: "assets/views/customform/index.html",
  1424. 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'),
  1425. title: 'form editor',
  1426. // pdKey: 'inspectionListForm',
  1427. icon: 'fa-tint',
  1428. ncyBreadcrumb: {
  1429. label: 'editor'
  1430. }
  1431. })
  1432. //巡检列表>巡检列表查看
  1433. .state('app.inspection.inspectListdetail', {
  1434. url: '/inspectListdetail/{pdKey}/{taskId}/{processInstanceId}/{formKey}/{model}/{dataId}',
  1435. // url: '/inspectListdetail/:formUiName/:taskId/:processInstanceId',
  1436. templateUrl: "assets/views/customform/detail.html",
  1437. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'customformDetailCtrl'),
  1438. title: 'form detail',
  1439. icon: 'ti-list',
  1440. ncyBreadcrumb: {
  1441. label: 'detail'
  1442. }
  1443. })
  1444. //系统列表
  1445. .state('app.system', {
  1446. url: '/system',
  1447. template: '<div ui-view class="fade-in-up"></div>',
  1448. title: 'System Elements',
  1449. ncyBreadcrumb: {
  1450. label: 'System Elements'
  1451. }
  1452. //事件分类设置--jry
  1453. }).state('app.system.jry_incidentSet', {
  1454. url: '/jry_incidentSet',
  1455. templateUrl: "assets/views/system/jry_incidentSet.html",
  1456. // resolve: loadSequence( 'jquery-sparkline', 'spin', 'ladda', 'angular-ladda','ui.select', 'multi.select.tree', 'angularBootstrapNavTree','jry_incidentSetCt'),
  1457. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'jry_incidentSetCt'),
  1458. title: 'Nav Manager',
  1459. ncyBreadcrumb: {
  1460. label: 'User Manager'
  1461. }
  1462. // title: 'incident.LIST',
  1463. // pdKey: 'bpm_incident',
  1464. // icon: 'ti-list',
  1465. // ncyBreadcrumb: {
  1466. // label: 'incident list'
  1467. // }
  1468. }).state('app.system.easyform', {
  1469. url: '/easyform',
  1470. templateUrl: "assets/views/system/easyform/easyform.html",
  1471. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'nya-bs-select', 'mwl.calendar', 'customformCtrl', 'easyformCtrl'),
  1472. title: 'easy form',
  1473. icon: 'ti-list',
  1474. ncyBreadcrumb: {
  1475. label: 'easyform'
  1476. }
  1477. }).state('app.system.pzxgl', {
  1478. url: '/pzxgl',
  1479. templateUrl: "assets/views/system/pzxgl_wt.html",
  1480. 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'),
  1481. title: 'pzxgl',
  1482. icon: 'ti-list',
  1483. ncyBreadcrumb: {
  1484. label: 'pzxgl'
  1485. }
  1486. }).state('app.system.qxgl', {
  1487. url: '/qxgl',
  1488. templateUrl: "assets/views/system/qxgl_wt.html",
  1489. 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'),
  1490. title: 'pzxgl',
  1491. icon: 'ti-list',
  1492. ncyBreadcrumb: {
  1493. label: 'qxgl'
  1494. }
  1495. // 服务指南
  1496. }).state('app.system.information', {
  1497. url: '/information',
  1498. template: '<div ui-view class="fade-in-up"></div>',
  1499. title: 'Process Plan',
  1500. ncyBreadcrumb: {
  1501. label: 'Process Plan'
  1502. }
  1503. // 服务指南分类
  1504. }).state('app.system.information.category', {
  1505. url: '/category',
  1506. templateUrl: "assets/views/system/informationCate.html",
  1507. 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'),
  1508. title: 'knowledge.VIEW',
  1509. ncyBreadcrumb: {
  1510. label: 'knowledge list'
  1511. }
  1512. }).state('app.system.information.list', {
  1513. url: '/list',
  1514. templateUrl: "assets/views/system/information.html",
  1515. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'moment', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'informationCtrl'),
  1516. title: 'information',
  1517. icon: 'ti-list',
  1518. ncyBreadcrumb: {
  1519. label: 'information'
  1520. }
  1521. // 流程节点
  1522. }).state('app.system.processNode', {
  1523. url: '/processNode',
  1524. template: '<div ui-view class="fade-in-up"></div>',
  1525. title: 'processNode Plan',
  1526. ncyBreadcrumb: {
  1527. label: 'processNode Plan'
  1528. }
  1529. }).state('app.system.processNode.list', {
  1530. url: '/list',
  1531. templateUrl: "assets/views/system/processNode.html",
  1532. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'moment', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'processNodeCtrl'),
  1533. title: 'processNode',
  1534. icon: 'ti-list',
  1535. ncyBreadcrumb: {
  1536. label: 'processNode'
  1537. }
  1538. }).state('app.system.notification', {//消息通知管理
  1539. url: '/notification',
  1540. template: '<div ui-view class="fade-in-up"></div>',
  1541. title: 'notification Plan',
  1542. ncyBreadcrumb: {
  1543. label: 'notification Plan'
  1544. }
  1545. }).state('app.system.notification.list', {
  1546. url: '/list',
  1547. templateUrl: "assets/views/system/notification.html",
  1548. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'moment', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'notificationCtrl'),
  1549. title: 'notification',
  1550. icon: 'ti-list',
  1551. ncyBreadcrumb: {
  1552. label: 'notification'
  1553. }
  1554. }).state('app.system.organization', {
  1555. url: '/organization',
  1556. template: '<div ui-view class="fade-in-up"></div>',
  1557. title: 'System Elements',
  1558. ncyBreadcrumb: {
  1559. label: 'System Elements'
  1560. }
  1561. }).state('app.system.organization.place', {
  1562. url: '/place',
  1563. templateUrl: "assets/views/system/organization/place.html",
  1564. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'checklist-model', 'placeCtrl'),
  1565. title: 'Nav Manager',
  1566. ncyBreadcrumb: {
  1567. label: 'User Manager'
  1568. }
  1569. // 查号管理
  1570. }).state('app.system.phoneList', {
  1571. url: '/phoneList',
  1572. templateUrl: "assets/views/system/phoneList.html",
  1573. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'checklist-model', 'phoneListCtrl'),
  1574. title: 'Nav Manager',
  1575. ncyBreadcrumb: {
  1576. label: 'User Manager'
  1577. }
  1578. // 耗材分类维护
  1579. }).state('app.system.organization.hc_flwh', {
  1580. url: '/hc_flwh',
  1581. templateUrl: "assets/views/system/organization/hc_flwh.html",
  1582. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'hc_flwhCtrl'),
  1583. title: 'Nav Manager',
  1584. ncyBreadcrumb: {
  1585. label: 'User Manager'
  1586. }
  1587. //管理单位维护
  1588. }).state('app.system.organization.ywxt_gldw', {
  1589. url: '/ywxt_gldw',
  1590. templateUrl: "assets/views/system/organization/ywxt_gldw.html",
  1591. resolve: loadSequence('jquery-sparkline', 'spin', 'ui.select', 'ladda', 'angular-ladda', 'ui.grid', 'ywxt_gldwCtrl'),
  1592. title: 'Nav Manager',
  1593. ncyBreadcrumb: {
  1594. label: 'User Manager'
  1595. }
  1596. }).state('app.system.organization.worktime', {
  1597. url: '/worktime',
  1598. templateUrl: "assets/views/system/organization/worktime.html",
  1599. resolve: loadSequence('jquery-nestable-plugin', 'ui.select', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'worktimeCtrl'),
  1600. title: 'Nav Manager',
  1601. ncyBreadcrumb: {
  1602. label: 'User Manager'
  1603. }
  1604. }).state('app.system.organization.dept', {
  1605. url: '/dept',
  1606. templateUrl: "assets/views/system/organization/dept.html",
  1607. 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'),
  1608. title: 'Nav Manager',
  1609. ncyBreadcrumb: {
  1610. label: 'User Manager'
  1611. }
  1612. }).state('app.system.organization.serverslevel', {
  1613. url: '/serverslevel',
  1614. templateUrl: "assets/views/system/organization/serverslevel.html",
  1615. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'serverslevelCtrl'),
  1616. title: 'Nav Manager',
  1617. ncyBreadcrumb: {
  1618. label: 'User Manager'
  1619. }
  1620. }).state('app.system.userdesign', {
  1621. url: '/userdesign',
  1622. template: '<div ui-view class="fade-in-up"></div>',
  1623. title: 'System Elements',
  1624. ncyBreadcrumb: {
  1625. label: 'System Elements'
  1626. }
  1627. }).state('app.system.userdesign.schedulecalendar', {
  1628. url: '/schedule',
  1629. templateUrl: "assets/views/system/user/matrialcalendar.html",
  1630. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'moment', 'material-calendar', 'ui.select', 'schedulingplanCtrl'),
  1631. title: 'scheduling.CALENDAR',
  1632. icon: 'fa-tint',
  1633. ncyBreadcrumb: {
  1634. label: 'scheduling'
  1635. }
  1636. }).state('app.system.userdesign.group', {
  1637. url: '/group',
  1638. templateUrl: "assets/views/system/user/group.html",
  1639. title: 'scheduling.CALENDAR',
  1640. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'xeditable', 'angular-ladda', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'groupCtrl'),
  1641. ncyBreadcrumb: {
  1642. label: 'User List Manager'
  1643. }
  1644. // }).state('app.system.userdesign.group', {
  1645. // url: '/group',
  1646. // templateUrl: "assets/views/system/user/group.html",
  1647. // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'ui.grid', 'groupCtrl'),
  1648. // title: 'scheduling.CALENDAR',
  1649. // icon: 'fa-tint',
  1650. // ncyBreadcrumb: {
  1651. // label: 'scheduling'
  1652. // }
  1653. }).state('app.system.userdesign.scheduletime', {
  1654. url: '/scheduletime',
  1655. templateUrl: "assets/views/system/user/scheduletime.html",
  1656. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'scheduletimeCtrl'),
  1657. title: 'scheduling.CALENDAR',
  1658. icon: 'fa-tint',
  1659. ncyBreadcrumb: {
  1660. label: 'scheduling'
  1661. }
  1662. }).state('app.system.processdesign', {
  1663. url: '/processdesign',
  1664. template: '<div ui-view class="fade-in-up"></div>',
  1665. title: 'Process Plan',
  1666. ncyBreadcrumb: {
  1667. label: 'Process Plan'
  1668. }
  1669. }).state('app.system.processdesign.incidentplan', {
  1670. url: '/incidentplan',
  1671. template: '<div ui-view class="fade-in-up"></div>',
  1672. title: 'Process Plan',
  1673. ncyBreadcrumb: {
  1674. label: 'Process Plan'
  1675. }
  1676. }).state('app.system.processdesign.incidentplan.category', {
  1677. url: '/category',
  1678. templateUrl: "assets/views/system/processdesign/incidentplan/incidentcategory.html",
  1679. resolve: loadSequence('ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'incidentcateCtrl'),
  1680. title: 'Nav Manager',
  1681. ncyBreadcrumb: {
  1682. label: 'User Manager'
  1683. }
  1684. // 事件设置
  1685. }).state('app.system.processdesign.incidentplan.incidentSetUp', {
  1686. url: '/incidentSetUp',
  1687. templateUrl: "assets/views/system/processdesign/incidentplan/incidentSetUp.html",
  1688. resolve: loadSequence('ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'incidentSetUpCtrl'),
  1689. title: 'Nav Manager',
  1690. ncyBreadcrumb: {
  1691. label: 'User Manager'
  1692. }
  1693. }).state('app.system.processdesign.incidentplan.servicetype', {
  1694. url: '/servicetype',
  1695. templateUrl: "assets/views/system/processdesign/incidentplan/servicetype.html",
  1696. 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'),
  1697. title: 'Nav Manager',
  1698. ncyBreadcrumb: {
  1699. label: 'User Manager'
  1700. }
  1701. }).state('app.system.processdesign.incidentplan.source', {
  1702. url: '/source',
  1703. templateUrl: "assets/views/system/processdesign/incidentplan/incidentsource.html",
  1704. 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'),
  1705. title: 'Nav Manager',
  1706. ncyBreadcrumb: {
  1707. label: 'User Manager'
  1708. }
  1709. }).state('app.system.processdesign.incidentplan.closecode', {
  1710. url: '/closecode',
  1711. templateUrl: "assets/views/system/processdesign/incidentplan/closecode.html",
  1712. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'closecodeCtrl'),
  1713. title: 'Nav Manager',
  1714. ncyBreadcrumb: {
  1715. label: 'User Manager'
  1716. }
  1717. }).state('app.system.processdesign.incidentplan.influence', {
  1718. url: '/influence',
  1719. templateUrl: "assets/views/system/processdesign/incidentplan/influence.html",
  1720. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'influenceCtrl'),
  1721. title: 'Nav Manager',
  1722. ncyBreadcrumb: {
  1723. label: 'User Manager'
  1724. }
  1725. }).state('app.system.processdesign.incidentplan.emergency', {
  1726. url: '/emergency',
  1727. templateUrl: "assets/views/system/processdesign/incidentplan/emergency.html",
  1728. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'emergencyCtrl'),
  1729. title: 'Nav Manager',
  1730. ncyBreadcrumb: {
  1731. label: 'User Manager'
  1732. }
  1733. }).state('app.system.processdesign.incidentplan.priority', {
  1734. url: '/priority',
  1735. templateUrl: "assets/views/system/processdesign/incidentplan/priority.html",
  1736. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'ui.select', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'priorityCtrl'),
  1737. title: 'Nav Manager',
  1738. ncyBreadcrumb: {
  1739. label: 'User Manager'
  1740. }
  1741. }).state('app.system.processdesign.incidentplan.prioritymatrix', {
  1742. url: '/prioritymatrix',
  1743. templateUrl: "assets/views/system/processdesign/incidentplan/prioritymatrix.html",
  1744. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'ui.select', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'prioritymatrixCtrl'),
  1745. title: 'Nav Manager',
  1746. ncyBreadcrumb: {
  1747. label: 'User Manager'
  1748. }
  1749. }).state('app.system.navmanager', {
  1750. url: '/navmanager',
  1751. templateUrl: "assets/views/system/navmanager.html",
  1752. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'xeditable', 'angular-ladda', 'ui.select', 'multi.select.tree', 'angularTree', 'navmanagerCtrl'),
  1753. title: 'Nav Manager',
  1754. ncyBreadcrumb: {
  1755. label: 'User Manager'
  1756. }
  1757. }).state('app.system.navmanager.aa', {
  1758. url: '/aa',
  1759. // templateUrl: "测试123",
  1760. template: "测试123"
  1761. }).state('app.system.navmanager.form', {
  1762. url: '/forms/{formKey}/{service}/{model}',
  1763. templateUrl: "assets/views/system/tpl/form.html",
  1764. title: 'ui-form',
  1765. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1766. ncyBreadcrumb: {
  1767. label: 'ui-form'
  1768. }
  1769. })
  1770. .state('app.system.systemmanager', {
  1771. url: '/systemmanager',
  1772. templateUrl: "assets/views/system/systemmanager.html",
  1773. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'systemmanagerCtrl'),
  1774. title: 'Nav Manager',
  1775. ncyBreadcrumb: {
  1776. label: 'User Manager'
  1777. }
  1778. })
  1779. //系统配置seimin
  1780. .state('app.system.sysconfig', {
  1781. url: '/sysconfig',
  1782. templateUrl: "assets/views/system/sysconfig.html",
  1783. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'sysconfigCtrl'),
  1784. title: 'Nav Manager',
  1785. ncyBreadcrumb: {
  1786. label: 'User Manager'
  1787. }
  1788. })
  1789. //微信配置seimin
  1790. .state('app.system.wxconfig', {
  1791. url: '/wxconfig',
  1792. templateUrl: "assets/views/system/wxconfig.html",
  1793. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'wxconfigCtrl'),
  1794. title: 'Nav Manager',
  1795. ncyBreadcrumb: {
  1796. label: 'User Manager'
  1797. }
  1798. })
  1799. //system user
  1800. .state('app.system.user', {
  1801. url: '/user',
  1802. template: '<div ui-view class="fade-in-up"></div>',
  1803. title: 'User Manager',
  1804. ncyBreadcrumb: {
  1805. label: 'User Manager'
  1806. }
  1807. })
  1808. .state('app.system.userdesign.requester', {
  1809. url: '/requester',
  1810. templateUrl: "assets/views/system/user/requester.html",
  1811. title: 'User List Manager',
  1812. resolve: loadSequence('jquery-sparkline', 'spin', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ladda', 'angular-ladda', 'ui.grid', 'angularFileUpload', 'requestermgrCtrl'),
  1813. ncyBreadcrumb: {
  1814. label: 'User List Manager'
  1815. }
  1816. }).state('app.system.user.user', {
  1817. url: '/users',
  1818. templateUrl: "assets/views/system/user/users.html",
  1819. title: 'User List Manager',
  1820. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'usermgrCtrl'),
  1821. ncyBreadcrumb: {
  1822. label: 'User List Manager'
  1823. }
  1824. }).state('app.system.thirdPartyCompany', {
  1825. url: '/thirdPartyCompany',
  1826. templateUrl: "assets/views/system/thirdPartyCompany.html",
  1827. title: 'User List Manager',
  1828. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'thirdPartyCompanyCtrl'),
  1829. ncyBreadcrumb: {
  1830. label: 'User List Manager'
  1831. }
  1832. }).state('app.system.user.role', {
  1833. url: '/roles',
  1834. templateUrl: "assets/views/system/user/role.html",
  1835. title: 'User List Manager',
  1836. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'angularBootstrapNavTree', 'ui.grid', 'rolemgrCtrl'),
  1837. ncyBreadcrumb: {
  1838. label: 'User List Manager'
  1839. }
  1840. }).state('app.system.user.power', {
  1841. url: '/power',
  1842. templateUrl: "assets/views/system/user/power.html",
  1843. title: 'User List Manager',
  1844. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'xeditable', 'angular-ladda', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'powerCtrl'),
  1845. ncyBreadcrumb: {
  1846. label: 'User List Manager'
  1847. }
  1848. }).state('app.system.dashboard', {
  1849. url: '/dashboard',
  1850. template: '<div ui-view class="fade-in-up"></div>',
  1851. title: 'User Manager',
  1852. ncyBreadcrumb: {
  1853. label: 'User Manager'
  1854. }
  1855. }).state('app.system.dashboard.editor', {
  1856. url: '/editor',
  1857. templateUrl: "assets/views/system/dashboard/dashboardeditor.html",
  1858. title: 'User List Manager',
  1859. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'ng-nestable', 'ngTable', 'ckeditor', 'jquery-sparkline', 'sortable', 'ui.select',
  1860. 'ui.mask', 'api-check', 'formly', 'moment', 'mwl.calendar', 'angularFormly', 'customformCtrl', 'dashboardnewCtrl'),
  1861. // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'xeditable', 'angular-ladda', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'dashboardnewCtrl'),
  1862. ncyBreadcrumb: {
  1863. label: 'User List Manager'
  1864. }
  1865. }).state('app.system.dashboard.create', {
  1866. url: '/create',
  1867. templateUrl: "assets/views/system/dashboard/dashboardAdd.html",
  1868. title: 'User List Manager',
  1869. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'ui.select', 'dashboardAddCtrl'),
  1870. ncyBreadcrumb: {
  1871. label: 'User List Manager'
  1872. }
  1873. }).state('app.system.form', {
  1874. url: '/forms/{formKey}/{service}/{model}/{isNoticeEdit}/{isServiceGuideEdit}',
  1875. templateUrl: "assets/views/system/tpl/form.html",
  1876. title: 'ui-form',
  1877. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'sysformCtrl'),
  1878. ncyBreadcrumb: {
  1879. label: 'ui-form'
  1880. }
  1881. }).state('app.system.form_editor', {
  1882. url: '/form_editor/{formKey}/{service}/{model}',
  1883. templateUrl: "assets/views/system/tpl/detail.html",
  1884. title: 'ui-form',
  1885. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1886. ncyBreadcrumb: {
  1887. label: 'ui-form'
  1888. }
  1889. }).state('app.system.form_role', {
  1890. url: '/form_role/{formKey}/{service}/{model}',
  1891. templateUrl: "assets/views/system/tpl/form.html",
  1892. title: 'ui-form',
  1893. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1894. ncyBreadcrumb: {
  1895. label: 'ui-form'
  1896. }
  1897. }).state('app.system.user.requester', {
  1898. url: '/requester/{formKey}/{service}/{model}',
  1899. // url: '/forms/{model}/{service}/{fields}/{url}/{cancelUrl}/{extjson}',
  1900. templateUrl: "assets/views/system/tpl/form.html",
  1901. title: 'ui-form',
  1902. resolve: loadSequence('jquery-sparkline', 'api-check', 'spin', 'ladda', 'angular-ladda', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1903. ncyBreadcrumb: {
  1904. label: 'ui-form'
  1905. }
  1906. }).state('app.system.selfDefinedReport', {
  1907. // 自定义报表
  1908. url: '/selfDefinedReport',
  1909. templateUrl: "assets/views/system/selfDefinedReport/selfDefinedReport.html",
  1910. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'ui.select', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'echarts', 'selfDefinedReportCtrl'),
  1911. title: 'Nav Manager',
  1912. ncyBreadcrumb: {
  1913. label: 'User Manager'
  1914. }
  1915. }).state('app.system.knowledge', {
  1916. url: '/knowledge',
  1917. template: '<div ui-view class="fade-in-up"></div>',
  1918. title: 'Process Plan',
  1919. ncyBreadcrumb: {
  1920. label: 'Process Plan'
  1921. }
  1922. }).state('app.system.knowledge.knowledgebase', {
  1923. url: '/knowledgebase',
  1924. templateUrl: "assets/views/system/knowledge.html",
  1925. 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'),
  1926. title: 'knowledge.VIEW',
  1927. ncyBreadcrumb: {
  1928. label: 'knowledge list'
  1929. }
  1930. }).state('app.system.knowledge.category', {
  1931. url: '/category',
  1932. templateUrl: "assets/views/system/processdesign/knowledgedesign/knowledgecategore.html",
  1933. 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'),
  1934. title: 'knowledge.VIEW',
  1935. ncyBreadcrumb: {
  1936. label: 'knowledge list'
  1937. }
  1938. // 公告管理
  1939. }).state('app.system.notice', {
  1940. url: '/notice',
  1941. template: '<div ui-view class="fade-in-up"></div>',
  1942. title: 'Process Plan',
  1943. ncyBreadcrumb: {
  1944. label: 'Process Plan'
  1945. }
  1946. }).state('app.system.notice.list', {
  1947. url: '/list',
  1948. templateUrl: "assets/views/system/notice/notice.html",
  1949. title: 'User List Manager',
  1950. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'moment', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'noticeCtrl'),
  1951. ncyBreadcrumb: {
  1952. label: 'User List Manager'
  1953. }
  1954. }) //end system
  1955. .state('app.externalservice', {
  1956. url: '/externalservice',
  1957. template: '<div ui-view class="fade-in-up"></div>',
  1958. title: 'externalservice',
  1959. // pdKey: 'bpm_means',
  1960. ncyBreadcrumb: {
  1961. label: 'externalservice'
  1962. }
  1963. }).state('app.externalservice.dnsmanagelist', {
  1964. url: '/dnsmanagelist',
  1965. templateUrl: "assets/views/externalservice/dnsmanage.html",
  1966. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'dnsmanageCtrl'),
  1967. title: 'dnsmanage.VIEW',
  1968. ncyBreadcrumb: {
  1969. label: 'dnsmanage list'
  1970. }
  1971. }).state('app.externalservice.dnsmanageedit', {
  1972. url: '/dnsmanageedit/{formKey}/{service}/{model}',
  1973. templateUrl: "assets/views/system/tpl/form.html",
  1974. title: 'ui-form',
  1975. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1976. ncyBreadcrumb: {
  1977. label: 'ui-form'
  1978. }
  1979. }).state('app.externalservice.emailhandlelist', {
  1980. url: '/emailhandlelist',
  1981. templateUrl: "assets/views/externalservice/emailhandle.html",
  1982. 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'),
  1983. title: 'dnsmanage.VIEW',
  1984. ncyBreadcrumb: {
  1985. label: 'dnsmanage list'
  1986. }
  1987. }).state('app.externalservice.emailhandleedit', {
  1988. url: '/emailhandleedit/{formKey}/{service}/{model}',
  1989. templateUrl: "assets/views/system/tpl/form.html",
  1990. title: 'ui-form',
  1991. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1992. ncyBreadcrumb: {
  1993. label: 'ui-form'
  1994. }
  1995. }).state('app.externalservice.networkapply', {
  1996. url: '/networkapply',
  1997. templateUrl: "assets/views/externalservice/network/networkapply.html",
  1998. 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'),
  1999. title: 'dnsmanage.VIEW',
  2000. ncyBreadcrumb: {
  2001. label: 'dnsmanage list'
  2002. }
  2003. }).state('app.externalservice.networkapplyedit', {
  2004. url: '/networkapplyedit/{formKey}/{service}/{model}',
  2005. templateUrl: "assets/views/system/tpl/form.html",
  2006. title: 'ui-form',
  2007. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  2008. ncyBreadcrumb: {
  2009. label: 'ui-form'
  2010. }
  2011. }).state('app.externalservice.ipapply', {
  2012. url: '/ipapply',
  2013. templateUrl: "assets/views/externalservice/network/ipapply.html",
  2014. 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'),
  2015. title: 'dnsmanage.VIEW',
  2016. ncyBreadcrumb: {
  2017. label: 'dnsmanage list'
  2018. }
  2019. }).state('app.externalservice.ipapplyedit', {
  2020. url: '/ipapplyedit/{formKey}/{service}/{model}',
  2021. templateUrl: "assets/views/system/tpl/form.html",
  2022. title: 'ui-form',
  2023. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  2024. ncyBreadcrumb: {
  2025. label: 'ui-form'
  2026. }
  2027. }).state('app.externalservice.roommanage', {
  2028. url: '/roommanage',
  2029. templateUrl: "assets/views/externalservice/roommanage.html",
  2030. 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'),
  2031. title: 'dnsmanage.VIEW',
  2032. ncyBreadcrumb: {
  2033. label: 'dnsmanage list'
  2034. }
  2035. }).state('app.externalservice.roommanageedit', {
  2036. url: '/roommanageedit/{formKey}/{service}/{model}',
  2037. templateUrl: "assets/views/system/tpl/form.html",
  2038. title: 'ui-form',
  2039. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  2040. ncyBreadcrumb: {
  2041. label: 'ui-form'
  2042. }
  2043. }).state('app.externalservice.faultrepair', {
  2044. url: '/faultrepair',
  2045. templateUrl: "assets/views/externalservice/faultrepair.html",
  2046. 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'),
  2047. title: 'dnsmanage.VIEW',
  2048. ncyBreadcrumb: {
  2049. label: 'dnsmanage list'
  2050. }
  2051. }).state('app.externalservice.faultrepairedit', {
  2052. url: '/faultrepairedit/{formKey}/{service}/{model}',
  2053. templateUrl: "assets/views/system/tpl/form.html",
  2054. title: 'ui-form',
  2055. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  2056. ncyBreadcrumb: {
  2057. label: 'ui-form'
  2058. }
  2059. }).state('app.externalservice.automaticlogin', {
  2060. url: '/automaticlogin',
  2061. templateUrl: "assets/views/externalservice/automaticlogin.html",
  2062. 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'),
  2063. title: 'dnsmanage.VIEW',
  2064. ncyBreadcrumb: {
  2065. label: 'dnsmanage list'
  2066. }
  2067. }).state('app.externalservice.automaticloginedit', {
  2068. url: '/automaticloginedit/{formKey}/{service}/{model}',
  2069. templateUrl: "assets/views/system/tpl/form.html",
  2070. title: 'ui-form',
  2071. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  2072. ncyBreadcrumb: {
  2073. label: 'ui-form'
  2074. }
  2075. }).state('app.externalservice.nsm', {
  2076. url: '/nsm',
  2077. templateUrl: "assets/views/externalservice/nsm.html",
  2078. 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'),
  2079. title: 'dnsmanage.VIEW',
  2080. ncyBreadcrumb: {
  2081. label: 'dnsmanage list'
  2082. }
  2083. }).state('app.externalservice.nsmedit', {
  2084. url: '/nsmedit/{formKey}/{service}/{model}',
  2085. templateUrl: "assets/views/system/tpl/form.html",
  2086. title: 'ui-form',
  2087. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  2088. ncyBreadcrumb: {
  2089. label: 'ui-form'
  2090. }
  2091. })
  2092. .state('app.ui', {
  2093. url: '/ui',
  2094. template: '<div ui-view class="fade-in-up"></div>',
  2095. title: 'UI Elements',
  2096. ncyBreadcrumb: {
  2097. label: 'UI Elements'
  2098. }
  2099. }).state('app.ui.elements', {
  2100. url: '/elements',
  2101. templateUrl: "assets/views/ui_elements.html",
  2102. title: 'Elements',
  2103. icon: 'ti-layout-media-left-alt',
  2104. ncyBreadcrumb: {
  2105. label: 'Elements'
  2106. }
  2107. }).state('app.ui.buttons', {
  2108. url: '/buttons',
  2109. templateUrl: "assets/views/ui_buttons.html",
  2110. title: 'Buttons',
  2111. resolve: loadSequence('spin', 'ladda', 'angular-ladda', 'laddaCtrl'),
  2112. ncyBreadcrumb: {
  2113. label: 'Buttons'
  2114. }
  2115. }).state('app.ui.links', {
  2116. url: '/links',
  2117. templateUrl: "assets/views/ui_links.html",
  2118. title: 'Link Effects',
  2119. ncyBreadcrumb: {
  2120. label: 'Link Effects'
  2121. }
  2122. }).state('app.ui.icons', {
  2123. url: '/icons',
  2124. templateUrl: "assets/views/ui_icons.html",
  2125. title: 'Font Awesome Icons',
  2126. ncyBreadcrumb: {
  2127. label: 'Font Awesome Icons'
  2128. },
  2129. resolve: loadSequence('iconsCtrl')
  2130. }).state('app.ui.lineicons', {
  2131. url: '/line-icons',
  2132. templateUrl: "assets/views/ui_line_icons.html",
  2133. title: 'Linear Icons',
  2134. ncyBreadcrumb: {
  2135. label: 'Linear Icons'
  2136. },
  2137. resolve: loadSequence('iconsCtrl')
  2138. }).state('app.ui.modals', {
  2139. url: '/modals',
  2140. templateUrl: "assets/views/ui_modals.html",
  2141. title: 'Modals',
  2142. ncyBreadcrumb: {
  2143. label: 'Modals'
  2144. },
  2145. resolve: loadSequence('asideCtrl')
  2146. }).state('app.ui.toggle', {
  2147. url: '/toggle',
  2148. templateUrl: "assets/views/ui_toggle.html",
  2149. title: 'Toggle',
  2150. ncyBreadcrumb: {
  2151. label: 'Toggle'
  2152. }
  2153. }).state('app.ui.tabs_accordions', {
  2154. url: '/accordions',
  2155. templateUrl: "assets/views/ui_tabs_accordions.html",
  2156. title: "Tabs & Accordions",
  2157. ncyBreadcrumb: {
  2158. label: 'Tabs & Accordions'
  2159. },
  2160. resolve: loadSequence('vAccordionCtrl')
  2161. }).state('app.ui.panels', {
  2162. url: '/panels',
  2163. templateUrl: "assets/views/ui_panels.html",
  2164. title: 'Panels',
  2165. ncyBreadcrumb: {
  2166. label: 'Panels'
  2167. }
  2168. }).state('app.ui.notifications', {
  2169. url: '/notifications',
  2170. templateUrl: "assets/views/ui_notifications.html",
  2171. title: 'Notifications',
  2172. ncyBreadcrumb: {
  2173. label: 'Notifications'
  2174. },
  2175. resolve: loadSequence('toasterCtrl', 'sweetAlertCtrl')
  2176. }).state('app.ui.treeview', {
  2177. url: '/treeview',
  2178. templateUrl: "assets/views/ui_tree.html",
  2179. title: 'TreeView',
  2180. ncyBreadcrumb: {
  2181. label: 'Treeview'
  2182. },
  2183. resolve: loadSequence('angularBootstrapNavTree', 'treeCtrl')
  2184. }).state('app.ui.media', {
  2185. url: '/media',
  2186. templateUrl: "assets/views/ui_media.html",
  2187. title: 'Media',
  2188. ncyBreadcrumb: {
  2189. label: 'Media'
  2190. }
  2191. }).state('app.ui.nestable', {
  2192. url: '/nestable2',
  2193. templateUrl: "assets/views/ui_nestable.html",
  2194. title: 'Nestable List',
  2195. ncyBreadcrumb: {
  2196. label: 'Nestable List'
  2197. },
  2198. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'nestableCtrl')
  2199. }).state('app.ui.typography', {
  2200. url: '/typography',
  2201. templateUrl: "assets/views/ui_typography.html",
  2202. title: 'Typography',
  2203. ncyBreadcrumb: {
  2204. label: 'Typography'
  2205. }
  2206. }).state('app.table', {
  2207. url: '/table',
  2208. template: '<div ui-view class="fade-in-up"></div>',
  2209. title: 'Tables',
  2210. ncyBreadcrumb: {
  2211. label: 'Tables'
  2212. }
  2213. }).state('app.table.basic', {
  2214. url: '/basic',
  2215. templateUrl: "assets/views/table_basic.html",
  2216. title: 'Basic Tables',
  2217. ncyBreadcrumb: {
  2218. label: 'Basic'
  2219. }
  2220. }).state('app.table.responsive', {
  2221. url: '/responsive',
  2222. templateUrl: "assets/views/table_responsive.html",
  2223. title: 'Responsive Tables',
  2224. ncyBreadcrumb: {
  2225. label: 'Responsive'
  2226. }
  2227. }).state('app.table.data', {
  2228. url: '/data',
  2229. templateUrl: "assets/views/table_data.html",
  2230. title: 'ngTable',
  2231. ncyBreadcrumb: {
  2232. label: 'ngTable'
  2233. },
  2234. resolve: loadSequence('ngTable', 'ngTableCtrl')
  2235. }).state('app.table.export', {
  2236. url: '/export',
  2237. templateUrl: "assets/views/table_export.html",
  2238. title: 'Table'
  2239. }).state('app.form', {
  2240. url: '/form',
  2241. template: '<div ui-view class="fade-in-up"></div>',
  2242. title: 'Forms',
  2243. ncyBreadcrumb: {
  2244. label: 'Forms'
  2245. }
  2246. }).state('app.form.elements', {
  2247. url: '/elements',
  2248. templateUrl: "assets/views/form_elements.html",
  2249. title: 'Forms Elements',
  2250. ncyBreadcrumb: {
  2251. label: 'Elements'
  2252. },
  2253. resolve: loadSequence('ui.select', 'monospaced.elastic', 'ui.mask', 'touchspin-plugin', 'selectCtrl')
  2254. }).state('app.form.xeditable', {
  2255. url: '/xeditable',
  2256. templateUrl: "assets/views/form_xeditable.html",
  2257. title: 'Angular X-Editable',
  2258. ncyBreadcrumb: {
  2259. label: 'X-Editable'
  2260. },
  2261. resolve: loadSequence('xeditable', 'checklist-model', 'xeditableCtrl')
  2262. }).state('app.form.texteditor', {
  2263. url: '/editor',
  2264. templateUrl: "assets/views/form_text_editor.html",
  2265. title: 'Text Editor',
  2266. ncyBreadcrumb: {
  2267. label: 'Text Editor'
  2268. },
  2269. resolve: loadSequence('ckeditor-plugin', 'ckeditor', 'ckeditorCtrl')
  2270. }).state('app.form.wizard', {
  2271. url: '/wizard',
  2272. templateUrl: "assets/views/form_wizard.html",
  2273. title: 'Form Wizard',
  2274. ncyBreadcrumb: {
  2275. label: 'Wizard'
  2276. },
  2277. resolve: loadSequence('wizardCtrl')
  2278. }).state('app.form.validation', {
  2279. url: '/validation',
  2280. templateUrl: "assets/views/form_validation.html",
  2281. title: 'Form Validation',
  2282. ncyBreadcrumb: {
  2283. label: 'Validation'
  2284. },
  2285. resolve: loadSequence('validationCtrl')
  2286. }).state('app.form.cropping', {
  2287. url: '/image-cropping',
  2288. templateUrl: "assets/views/form_image_cropping.html",
  2289. title: 'Image Cropping',
  2290. ncyBreadcrumb: {
  2291. label: 'Image Cropping'
  2292. },
  2293. resolve: loadSequence('ngImgCrop', 'cropCtrl')
  2294. }).state('app.form.upload', {
  2295. url: '/file-upload',
  2296. templateUrl: "assets/views/form_file_upload.html",
  2297. title: 'Multiple File Upload',
  2298. ncyBreadcrumb: {
  2299. label: 'File Upload'
  2300. },
  2301. resolve: loadSequence('angularFileUpload', 'uploadCtrl')
  2302. }).state('app.pages', {
  2303. url: '/pages',
  2304. template: '<div ui-view class="fade-in-up"></div>',
  2305. title: 'Pages',
  2306. ncyBreadcrumb: {
  2307. label: 'Pages'
  2308. }
  2309. }).state('app.pages.user', {
  2310. url: '/user',
  2311. templateUrl: "assets/views/pages_user_profile.html",
  2312. title: 'User Profile',
  2313. ncyBreadcrumb: {
  2314. label: 'User Profile'
  2315. },
  2316. resolve: loadSequence('flow', 'userCtrl')
  2317. }).state('app.pages.invoice', {
  2318. url: '/invoice',
  2319. templateUrl: "assets/views/pages_invoice.html",
  2320. title: 'Invoice',
  2321. ncyBreadcrumb: {
  2322. label: 'Invoice'
  2323. }
  2324. }).state('app.pages.timeline', {
  2325. url: '/timeline',
  2326. templateUrl: "assets/views/pages_timeline.html",
  2327. title: 'Timeline',
  2328. ncyBreadcrumb: {
  2329. label: 'Timeline'
  2330. },
  2331. resolve: loadSequence('ngMap')
  2332. }).state('app.pages.calendar', {
  2333. url: '/calendar',
  2334. templateUrl: "assets/views/pages_calendar.html",
  2335. title: 'Calendar',
  2336. ncyBreadcrumb: {
  2337. label: 'Calendar'
  2338. },
  2339. resolve: loadSequence('moment', 'mwl.calendar', 'calendarCtrl')
  2340. }).state('app.pages.messages', {
  2341. url: '/messages',
  2342. templateUrl: "assets/views/pages_messages.html",
  2343. resolve: loadSequence('truncate', 'htmlToPlaintext', 'inboxCtrl')
  2344. }).state('app.pages.messages.inbox', {
  2345. url: '/inbox/:inboxID',
  2346. templateUrl: "assets/views/pages_inbox.html",
  2347. controller: 'ViewMessageCrtl'
  2348. }).state('app.pages.blank', {
  2349. url: '/blank',
  2350. templateUrl: "assets/views/pages_blank_page.html",
  2351. ncyBreadcrumb: {
  2352. label: 'Starter Page'
  2353. }
  2354. }).state('app.utilities', {
  2355. url: '/utilities',
  2356. template: '<div ui-view class="fade-in-up"></div>',
  2357. title: 'Utilities',
  2358. ncyBreadcrumb: {
  2359. label: 'Utilities'
  2360. }
  2361. }).state('app.utilities.search', {
  2362. url: '/search',
  2363. templateUrl: "assets/views/utility_search_result.html",
  2364. title: 'Search Results',
  2365. ncyBreadcrumb: {
  2366. label: 'Search Results'
  2367. }
  2368. }).state('app.utilities.pricing', {
  2369. url: '/pricing',
  2370. templateUrl: "assets/views/utility_pricing_table.html",
  2371. title: 'Pricing Table',
  2372. ncyBreadcrumb: {
  2373. label: 'Pricing Table'
  2374. }
  2375. }).state('app.maps', {
  2376. url: "/maps",
  2377. templateUrl: "assets/views/maps.html",
  2378. resolve: loadSequence('ngMap', 'mapsCtrl'),
  2379. title: "Maps",
  2380. ncyBreadcrumb: {
  2381. label: 'Maps'
  2382. }
  2383. }).state('app.charts', {
  2384. url: "/charts",
  2385. templateUrl: "assets/views/charts.html",
  2386. resolve: loadSequence('chartjs', 'tc.chartjs', 'chartsCtrl'),
  2387. title: "Charts",
  2388. ncyBreadcrumb: {
  2389. label: 'Charts'
  2390. }
  2391. }).state('app.documentation', {
  2392. url: "/documentation",
  2393. templateUrl: "assets/views/documentation.html",
  2394. title: "Documentation",
  2395. ncyBreadcrumb: {
  2396. label: 'Documentation'
  2397. }
  2398. }).state('error', {
  2399. url: '/error',
  2400. template: '<div ui-view class="fade-in-up"></div>'
  2401. }).state('error.404', {
  2402. url: '/404',
  2403. templateUrl: "assets/views/utility_404.html"
  2404. }).state('error.500', {
  2405. url: '/500',
  2406. templateUrl: "assets/views/utility_500.html"
  2407. })
  2408. //custom form
  2409. .state('app.customform', {
  2410. url: '/customform',
  2411. templateUrl: 'assets/views/customform/index.html',
  2412. resolve: loadSequence('jquery-sparkline', 'ckeditor-plugin', 'ckeditor', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  2413. title: 'Customform',
  2414. ncyBreadcrumb: {
  2415. label: 'Customform'
  2416. }
  2417. })
  2418. .state('app.detail', {
  2419. url: '/detail/:formKey/:pdKey/:dataId/:taskId/:processInstanceId',
  2420. templateUrl: "assets/views/customform/detail.html",
  2421. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'customformDetailCtrl'),
  2422. title: 'form detail',
  2423. icon: 'ti-list',
  2424. ncyBreadcrumb: {
  2425. label: 'detail'
  2426. }
  2427. })
  2428. // Login routes
  2429. .state('login', {
  2430. url: '/login',
  2431. template: '<div ui-view class="fade-in-right-big smooth"></div>',
  2432. abstract: true
  2433. }).state('login.signin', {
  2434. url: '/signin',
  2435. templateUrl: "assets/views/login_login.html",
  2436. resolve: loadSequence('sweet-alert', 'oitozero.ngSweetAlert', 'morph', 'loginCtrl')
  2437. }).state('login.license', {
  2438. url: '/license',
  2439. templateUrl: "assets/views/license.html",
  2440. resolve: loadSequence('sweet-alert', 'oitozero.ngSweetAlert', 'morph', 'licenseCtrl')
  2441. }).state('login.forgot', {
  2442. url: '/forgot',
  2443. templateUrl: "assets/views/login_forgot.html"
  2444. })
  2445. /*.state('login.registration', {
  2446. url: '/registration',
  2447. templateUrl: "assets/views/login_registration.html"
  2448. })*/
  2449. .state('login.lockscreen', {
  2450. url: '/lock',
  2451. templateUrl: "assets/views/login_lock_screen.html"
  2452. })
  2453. // .state('login.changepassword', {
  2454. // url: '/changepassword',
  2455. // templateUrl: "assets/views/changepassword.html",
  2456. // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'passwordCtrl'),
  2457. // title: 'changepassword',
  2458. // icon: 'ti-list',
  2459. // ncyBreadcrumb: {
  2460. // label: 'changepassword'
  2461. // }
  2462. // });
  2463. // Generates a resolve object previously configured in constant.JS_REQUIRES (config.constant.js)
  2464. function loadSequence() {
  2465. var _args = arguments;
  2466. return {
  2467. deps: ['$ocLazyLoad', '$q',
  2468. function ($ocLL, $q) {
  2469. var promise = $q.when(1);
  2470. for (var i = 0, len = _args.length; i < len; i++) {
  2471. promise = promiseThen(_args[i]);
  2472. }
  2473. return promise;
  2474. function promiseThen(_arg) {
  2475. if (typeof _arg == 'function')
  2476. return promise.then(_arg);
  2477. else
  2478. return promise.then(function () {
  2479. var nowLoad = requiredData(_arg);
  2480. if (!nowLoad)
  2481. return $.error('Route resolve: Bad resource name [' + _arg + ']');
  2482. return $ocLL.load(nowLoad);
  2483. });
  2484. }
  2485. function requiredData(name) {
  2486. if (jsRequires.modules)
  2487. for (var m in jsRequires.modules)
  2488. if (jsRequires.modules[m].name && jsRequires.modules[m].name === name)
  2489. return jsRequires.modules[m];
  2490. return jsRequires.scripts && jsRequires.scripts[name];
  2491. }
  2492. }
  2493. ]
  2494. };
  2495. }
  2496. }
  2497. ]);