config.router.js 134 KB

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