config.router.js 128 KB

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