config.router.js 135 KB

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