config.router.js 134 KB

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