config.router.js 129 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480
  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.plan', {
  1305. url: '/plan',
  1306. template: '<div ui-view class="fade-in-up"></div>',
  1307. title: 'plan Elements',
  1308. ncyBreadcrumb: {
  1309. label: 'plan Elements'
  1310. }
  1311. })
  1312. //计划任务>定时报告
  1313. .state('app.plan.timingMessageSending', {
  1314. url: '/timingMessageSending',
  1315. templateUrl: "assets/views/plan/timingMessageSending.html",
  1316. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'timingMessageSendingCtrl'),
  1317. title: 'inspection.LIST',
  1318. icon: 'ti-list',
  1319. ncyBreadcrumb: {
  1320. label: 'inspection list'
  1321. }
  1322. })
  1323. //巡检管理>巡检计划
  1324. .state('app.inspection.inspectPlan', {
  1325. url: '/inspectPlan',
  1326. templateUrl: "assets/views/inspect/inspectPlan.html",
  1327. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'inspectPlanCtrl'),
  1328. title: 'inspection.LIST',
  1329. icon: 'ti-list',
  1330. ncyBreadcrumb: {
  1331. label: 'inspection list'
  1332. }
  1333. })
  1334. //巡检管理>巡检列表
  1335. .state('app.inspection.inspectList', {
  1336. url: '/inspectList',
  1337. templateUrl: "assets/views/inspect/inspectList.html",
  1338. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'inspectListCtrl'),
  1339. title: 'inspection.LIST',
  1340. icon: 'ti-list',
  1341. ncyBreadcrumb: {
  1342. label: 'inspection list'
  1343. }
  1344. })
  1345. //巡检管理>巡检计划编辑
  1346. .state('app.inspection.editor', {
  1347. url: '/editor/{formKey}/{service}/{model}/{labelTree}',
  1348. templateUrl: "assets/views/form.html",
  1349. title: 'ui-form',
  1350. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'spin', 'ladda', 'angular-ladda', 'angularFileUpload', 'multi.select.tree', 'moment', 'customformCtrl', 'inspectForm'),
  1351. ncyBreadcrumb: {
  1352. label: 'ui-form'
  1353. }
  1354. })
  1355. //巡检管理>巡检计划查看
  1356. .state('app.inspection.form', {
  1357. url: '/form/{formKey}/{service}/{model}',
  1358. templateUrl: "assets/views/system/tpl/detail.html",
  1359. title: 'ui-form',
  1360. resolve: loadSequence('jquery-sparkline', 'api-check', 'ui.grid', 'formly', 'angularFormly', 'spin', 'ladda', 'angular-ladda', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'inspectForm'),
  1361. ncyBreadcrumb: {
  1362. label: 'ui-form'
  1363. }
  1364. })
  1365. //巡检列表>巡检列表编辑
  1366. .state('app.inspection.inspectListEditor', {
  1367. url: '/inspectListEditor/{pdKey}/{taskId}/{processInstanceId}/{formUiEdit}/{model}/{dataId}',
  1368. // url: '/editor',
  1369. templateUrl: "assets/views/customform/index.html",
  1370. 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'),
  1371. title: 'form editor',
  1372. // pdKey: 'inspectionListForm',
  1373. icon: 'fa-tint',
  1374. ncyBreadcrumb: {
  1375. label: 'editor'
  1376. }
  1377. })
  1378. //巡检列表>巡检列表查看
  1379. .state('app.inspection.inspectListdetail', {
  1380. url: '/inspectListdetail/{pdKey}/{taskId}/{processInstanceId}/{formKey}/{model}/{dataId}',
  1381. // url: '/inspectListdetail/:formUiName/:taskId/:processInstanceId',
  1382. templateUrl: "assets/views/customform/detail.html",
  1383. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'customformDetailCtrl'),
  1384. title: 'form detail',
  1385. icon: 'ti-list',
  1386. ncyBreadcrumb: {
  1387. label: 'detail'
  1388. }
  1389. })
  1390. //系统列表
  1391. .state('app.system', {
  1392. url: '/system',
  1393. template: '<div ui-view class="fade-in-up"></div>',
  1394. title: 'System Elements',
  1395. ncyBreadcrumb: {
  1396. label: 'System Elements'
  1397. }
  1398. //事件分类设置--jry
  1399. }).state('app.system.jry_incidentSet', {
  1400. url: '/jry_incidentSet',
  1401. templateUrl: "assets/views/system/jry_incidentSet.html",
  1402. // resolve: loadSequence( 'jquery-sparkline', 'spin', 'ladda', 'angular-ladda','ui.select', 'multi.select.tree', 'angularBootstrapNavTree','jry_incidentSetCt'),
  1403. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'jry_incidentSetCt'),
  1404. title: 'Nav Manager',
  1405. ncyBreadcrumb: {
  1406. label: 'User Manager'
  1407. }
  1408. // title: 'incident.LIST',
  1409. // pdKey: 'bpm_incident',
  1410. // icon: 'ti-list',
  1411. // ncyBreadcrumb: {
  1412. // label: 'incident list'
  1413. // }
  1414. }).state('app.system.easyform', {
  1415. url: '/easyform',
  1416. templateUrl: "assets/views/system/easyform/easyform.html",
  1417. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'nya-bs-select', 'mwl.calendar', 'customformCtrl', 'easyformCtrl'),
  1418. title: 'easy form',
  1419. icon: 'ti-list',
  1420. ncyBreadcrumb: {
  1421. label: 'easyform'
  1422. }
  1423. }).state('app.system.pzxgl', {
  1424. url: '/pzxgl',
  1425. templateUrl: "assets/views/system/pzxgl_wt.html",
  1426. 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'),
  1427. title: 'pzxgl',
  1428. icon: 'ti-list',
  1429. ncyBreadcrumb: {
  1430. label: 'pzxgl'
  1431. }
  1432. }).state('app.system.qxgl', {
  1433. url: '/qxgl',
  1434. templateUrl: "assets/views/system/qxgl_wt.html",
  1435. 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'),
  1436. title: 'pzxgl',
  1437. icon: 'ti-list',
  1438. ncyBreadcrumb: {
  1439. label: 'qxgl'
  1440. }
  1441. // 服务指南
  1442. }).state('app.system.information', {
  1443. url: '/information',
  1444. template: '<div ui-view class="fade-in-up"></div>',
  1445. title: 'Process Plan',
  1446. ncyBreadcrumb: {
  1447. label: 'Process Plan'
  1448. }
  1449. // 服务指南分类
  1450. }).state('app.system.information.category', {
  1451. url: '/category',
  1452. templateUrl: "assets/views/system/informationCate.html",
  1453. 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'),
  1454. title: 'knowledge.VIEW',
  1455. ncyBreadcrumb: {
  1456. label: 'knowledge list'
  1457. }
  1458. }).state('app.system.information.list', {
  1459. url: '/list',
  1460. templateUrl: "assets/views/system/information.html",
  1461. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'moment', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'informationCtrl'),
  1462. title: 'information',
  1463. icon: 'ti-list',
  1464. ncyBreadcrumb: {
  1465. label: 'information'
  1466. }
  1467. // 流程节点
  1468. }).state('app.system.processNode', {
  1469. url: '/processNode',
  1470. template: '<div ui-view class="fade-in-up"></div>',
  1471. title: 'processNode Plan',
  1472. ncyBreadcrumb: {
  1473. label: 'processNode Plan'
  1474. }
  1475. }).state('app.system.processNode.list', {
  1476. url: '/list',
  1477. templateUrl: "assets/views/system/processNode.html",
  1478. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'moment', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'processNodeCtrl'),
  1479. title: 'processNode',
  1480. icon: 'ti-list',
  1481. ncyBreadcrumb: {
  1482. label: 'processNode'
  1483. }
  1484. }).state('app.system.notification', {//消息通知管理
  1485. url: '/notification',
  1486. template: '<div ui-view class="fade-in-up"></div>',
  1487. title: 'notification Plan',
  1488. ncyBreadcrumb: {
  1489. label: 'notification Plan'
  1490. }
  1491. }).state('app.system.notification.list', {
  1492. url: '/list',
  1493. templateUrl: "assets/views/system/notification.html",
  1494. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'moment', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'notificationCtrl'),
  1495. title: 'notification',
  1496. icon: 'ti-list',
  1497. ncyBreadcrumb: {
  1498. label: 'notification'
  1499. }
  1500. }).state('app.system.organization', {
  1501. url: '/organization',
  1502. template: '<div ui-view class="fade-in-up"></div>',
  1503. title: 'System Elements',
  1504. ncyBreadcrumb: {
  1505. label: 'System Elements'
  1506. }
  1507. }).state('app.system.organization.place', {
  1508. url: '/place',
  1509. templateUrl: "assets/views/system/organization/place.html",
  1510. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'checklist-model', 'placeCtrl'),
  1511. title: 'Nav Manager',
  1512. ncyBreadcrumb: {
  1513. label: 'User Manager'
  1514. }
  1515. // 查号管理
  1516. }).state('app.system.phoneList', {
  1517. url: '/phoneList',
  1518. templateUrl: "assets/views/system/phoneList.html",
  1519. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'checklist-model', 'phoneListCtrl'),
  1520. title: 'Nav Manager',
  1521. ncyBreadcrumb: {
  1522. label: 'User Manager'
  1523. }
  1524. // 耗材分类维护
  1525. }).state('app.system.organization.hc_flwh', {
  1526. url: '/hc_flwh',
  1527. templateUrl: "assets/views/system/organization/hc_flwh.html",
  1528. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'hc_flwhCtrl'),
  1529. title: 'Nav Manager',
  1530. ncyBreadcrumb: {
  1531. label: 'User Manager'
  1532. }
  1533. //管理单位维护
  1534. }).state('app.system.organization.ywxt_gldw', {
  1535. url: '/ywxt_gldw',
  1536. templateUrl: "assets/views/system/organization/ywxt_gldw.html",
  1537. resolve: loadSequence('jquery-sparkline', 'spin', 'ui.select', 'ladda', 'angular-ladda', 'ui.grid', 'ywxt_gldwCtrl'),
  1538. title: 'Nav Manager',
  1539. ncyBreadcrumb: {
  1540. label: 'User Manager'
  1541. }
  1542. }).state('app.system.organization.worktime', {
  1543. url: '/worktime',
  1544. templateUrl: "assets/views/system/organization/worktime.html",
  1545. resolve: loadSequence('jquery-nestable-plugin', 'ui.select', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'worktimeCtrl'),
  1546. title: 'Nav Manager',
  1547. ncyBreadcrumb: {
  1548. label: 'User Manager'
  1549. }
  1550. }).state('app.system.organization.dept', {
  1551. url: '/dept',
  1552. templateUrl: "assets/views/system/organization/dept.html",
  1553. 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'),
  1554. title: 'Nav Manager',
  1555. ncyBreadcrumb: {
  1556. label: 'User Manager'
  1557. }
  1558. }).state('app.system.organization.serverslevel', {
  1559. url: '/serverslevel',
  1560. templateUrl: "assets/views/system/organization/serverslevel.html",
  1561. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'serverslevelCtrl'),
  1562. title: 'Nav Manager',
  1563. ncyBreadcrumb: {
  1564. label: 'User Manager'
  1565. }
  1566. }).state('app.system.userdesign', {
  1567. url: '/userdesign',
  1568. template: '<div ui-view class="fade-in-up"></div>',
  1569. title: 'System Elements',
  1570. ncyBreadcrumb: {
  1571. label: 'System Elements'
  1572. }
  1573. }).state('app.system.userdesign.schedulecalendar', {
  1574. url: '/schedule',
  1575. templateUrl: "assets/views/system/user/matrialcalendar.html",
  1576. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'moment', 'material-calendar', 'ui.select', 'schedulingplanCtrl'),
  1577. title: 'scheduling.CALENDAR',
  1578. icon: 'fa-tint',
  1579. ncyBreadcrumb: {
  1580. label: 'scheduling'
  1581. }
  1582. }).state('app.system.userdesign.group', {
  1583. url: '/group',
  1584. templateUrl: "assets/views/system/user/group.html",
  1585. title: 'scheduling.CALENDAR',
  1586. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'xeditable', 'angular-ladda', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'groupCtrl'),
  1587. ncyBreadcrumb: {
  1588. label: 'User List Manager'
  1589. }
  1590. // }).state('app.system.userdesign.group', {
  1591. // url: '/group',
  1592. // templateUrl: "assets/views/system/user/group.html",
  1593. // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'ui.grid', 'groupCtrl'),
  1594. // title: 'scheduling.CALENDAR',
  1595. // icon: 'fa-tint',
  1596. // ncyBreadcrumb: {
  1597. // label: 'scheduling'
  1598. // }
  1599. }).state('app.system.userdesign.scheduletime', {
  1600. url: '/scheduletime',
  1601. templateUrl: "assets/views/system/user/scheduletime.html",
  1602. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'scheduletimeCtrl'),
  1603. title: 'scheduling.CALENDAR',
  1604. icon: 'fa-tint',
  1605. ncyBreadcrumb: {
  1606. label: 'scheduling'
  1607. }
  1608. }).state('app.system.processdesign', {
  1609. url: '/processdesign',
  1610. template: '<div ui-view class="fade-in-up"></div>',
  1611. title: 'Process Plan',
  1612. ncyBreadcrumb: {
  1613. label: 'Process Plan'
  1614. }
  1615. }).state('app.system.processdesign.incidentplan', {
  1616. url: '/incidentplan',
  1617. template: '<div ui-view class="fade-in-up"></div>',
  1618. title: 'Process Plan',
  1619. ncyBreadcrumb: {
  1620. label: 'Process Plan'
  1621. }
  1622. }).state('app.system.processdesign.incidentplan.category', {
  1623. url: '/category',
  1624. templateUrl: "assets/views/system/processdesign/incidentplan/incidentcategory.html",
  1625. resolve: loadSequence('ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'incidentcateCtrl'),
  1626. title: 'Nav Manager',
  1627. ncyBreadcrumb: {
  1628. label: 'User Manager'
  1629. }
  1630. // 事件设置
  1631. }).state('app.system.processdesign.incidentplan.incidentSetUp', {
  1632. url: '/incidentSetUp',
  1633. templateUrl: "assets/views/system/processdesign/incidentplan/incidentSetUp.html",
  1634. resolve: loadSequence('ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'incidentSetUpCtrl'),
  1635. title: 'Nav Manager',
  1636. ncyBreadcrumb: {
  1637. label: 'User Manager'
  1638. }
  1639. }).state('app.system.processdesign.incidentplan.servicetype', {
  1640. url: '/servicetype',
  1641. templateUrl: "assets/views/system/processdesign/incidentplan/servicetype.html",
  1642. 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'),
  1643. title: 'Nav Manager',
  1644. ncyBreadcrumb: {
  1645. label: 'User Manager'
  1646. }
  1647. }).state('app.system.processdesign.incidentplan.source', {
  1648. url: '/source',
  1649. templateUrl: "assets/views/system/processdesign/incidentplan/incidentsource.html",
  1650. 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'),
  1651. title: 'Nav Manager',
  1652. ncyBreadcrumb: {
  1653. label: 'User Manager'
  1654. }
  1655. }).state('app.system.processdesign.incidentplan.closecode', {
  1656. url: '/closecode',
  1657. templateUrl: "assets/views/system/processdesign/incidentplan/closecode.html",
  1658. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'closecodeCtrl'),
  1659. title: 'Nav Manager',
  1660. ncyBreadcrumb: {
  1661. label: 'User Manager'
  1662. }
  1663. }).state('app.system.processdesign.incidentplan.influence', {
  1664. url: '/influence',
  1665. templateUrl: "assets/views/system/processdesign/incidentplan/influence.html",
  1666. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'influenceCtrl'),
  1667. title: 'Nav Manager',
  1668. ncyBreadcrumb: {
  1669. label: 'User Manager'
  1670. }
  1671. }).state('app.system.processdesign.incidentplan.emergency', {
  1672. url: '/emergency',
  1673. templateUrl: "assets/views/system/processdesign/incidentplan/emergency.html",
  1674. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'emergencyCtrl'),
  1675. title: 'Nav Manager',
  1676. ncyBreadcrumb: {
  1677. label: 'User Manager'
  1678. }
  1679. }).state('app.system.processdesign.incidentplan.priority', {
  1680. url: '/priority',
  1681. templateUrl: "assets/views/system/processdesign/incidentplan/priority.html",
  1682. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'ui.select', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'priorityCtrl'),
  1683. title: 'Nav Manager',
  1684. ncyBreadcrumb: {
  1685. label: 'User Manager'
  1686. }
  1687. }).state('app.system.processdesign.incidentplan.prioritymatrix', {
  1688. url: '/prioritymatrix',
  1689. templateUrl: "assets/views/system/processdesign/incidentplan/prioritymatrix.html",
  1690. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'ui.select', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'prioritymatrixCtrl'),
  1691. title: 'Nav Manager',
  1692. ncyBreadcrumb: {
  1693. label: 'User Manager'
  1694. }
  1695. }).state('app.system.navmanager', {
  1696. url: '/navmanager',
  1697. templateUrl: "assets/views/system/navmanager.html",
  1698. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'xeditable', 'angular-ladda', 'ui.select', 'multi.select.tree', 'angularTree', 'navmanagerCtrl'),
  1699. title: 'Nav Manager',
  1700. ncyBreadcrumb: {
  1701. label: 'User Manager'
  1702. }
  1703. }).state('app.system.navmanager.aa', {
  1704. url: '/aa',
  1705. // templateUrl: "测试123",
  1706. template: "测试123"
  1707. }).state('app.system.navmanager.form', {
  1708. url: '/forms/{formKey}/{service}/{model}',
  1709. templateUrl: "assets/views/system/tpl/form.html",
  1710. title: 'ui-form',
  1711. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1712. ncyBreadcrumb: {
  1713. label: 'ui-form'
  1714. }
  1715. })
  1716. .state('app.system.systemmanager', {
  1717. url: '/systemmanager',
  1718. templateUrl: "assets/views/system/systemmanager.html",
  1719. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'systemmanagerCtrl'),
  1720. title: 'Nav Manager',
  1721. ncyBreadcrumb: {
  1722. label: 'User Manager'
  1723. }
  1724. })
  1725. //系统配置seimin
  1726. .state('app.system.sysconfig', {
  1727. url: '/sysconfig',
  1728. templateUrl: "assets/views/system/sysconfig.html",
  1729. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'sysconfigCtrl'),
  1730. title: 'Nav Manager',
  1731. ncyBreadcrumb: {
  1732. label: 'User Manager'
  1733. }
  1734. })
  1735. //微信配置seimin
  1736. .state('app.system.wxconfig', {
  1737. url: '/wxconfig',
  1738. templateUrl: "assets/views/system/wxconfig.html",
  1739. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'wxconfigCtrl'),
  1740. title: 'Nav Manager',
  1741. ncyBreadcrumb: {
  1742. label: 'User Manager'
  1743. }
  1744. })
  1745. //system user
  1746. .state('app.system.user', {
  1747. url: '/user',
  1748. template: '<div ui-view class="fade-in-up"></div>',
  1749. title: 'User Manager',
  1750. ncyBreadcrumb: {
  1751. label: 'User Manager'
  1752. }
  1753. })
  1754. .state('app.system.userdesign.requester', {
  1755. url: '/requester',
  1756. templateUrl: "assets/views/system/user/requester.html",
  1757. title: 'User List Manager',
  1758. resolve: loadSequence('jquery-sparkline', 'spin', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ladda', 'angular-ladda', 'ui.grid', 'angularFileUpload', 'requestermgrCtrl'),
  1759. ncyBreadcrumb: {
  1760. label: 'User List Manager'
  1761. }
  1762. }).state('app.system.user.user', {
  1763. url: '/users',
  1764. templateUrl: "assets/views/system/user/users.html",
  1765. title: 'User List Manager',
  1766. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'usermgrCtrl'),
  1767. ncyBreadcrumb: {
  1768. label: 'User List Manager'
  1769. }
  1770. }).state('app.system.thirdPartyCompany', {
  1771. url: '/thirdPartyCompany',
  1772. templateUrl: "assets/views/system/thirdPartyCompany.html",
  1773. title: 'User List Manager',
  1774. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'thirdPartyCompanyCtrl'),
  1775. ncyBreadcrumb: {
  1776. label: 'User List Manager'
  1777. }
  1778. }).state('app.system.user.role', {
  1779. url: '/roles',
  1780. templateUrl: "assets/views/system/user/role.html",
  1781. title: 'User List Manager',
  1782. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'angularBootstrapNavTree', 'ui.grid', 'rolemgrCtrl'),
  1783. ncyBreadcrumb: {
  1784. label: 'User List Manager'
  1785. }
  1786. }).state('app.system.user.power', {
  1787. url: '/power',
  1788. templateUrl: "assets/views/system/user/power.html",
  1789. title: 'User List Manager',
  1790. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'xeditable', 'angular-ladda', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'powerCtrl'),
  1791. ncyBreadcrumb: {
  1792. label: 'User List Manager'
  1793. }
  1794. }).state('app.system.dashboard', {
  1795. url: '/dashboard',
  1796. template: '<div ui-view class="fade-in-up"></div>',
  1797. title: 'User Manager',
  1798. ncyBreadcrumb: {
  1799. label: 'User Manager'
  1800. }
  1801. }).state('app.system.dashboard.editor', {
  1802. url: '/editor',
  1803. templateUrl: "assets/views/system/dashboard/dashboardeditor.html",
  1804. title: 'User List Manager',
  1805. resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'ng-nestable', 'ngTable', 'ckeditor', 'jquery-sparkline', 'sortable', 'ui.select',
  1806. 'ui.mask', 'api-check', 'formly', 'moment', 'mwl.calendar', 'angularFormly', 'customformCtrl', 'dashboardnewCtrl'),
  1807. // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'xeditable', 'angular-ladda', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'dashboardnewCtrl'),
  1808. ncyBreadcrumb: {
  1809. label: 'User List Manager'
  1810. }
  1811. }).state('app.system.dashboard.create', {
  1812. url: '/create',
  1813. templateUrl: "assets/views/system/dashboard/dashboardAdd.html",
  1814. title: 'User List Manager',
  1815. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'ui.select', 'dashboardAddCtrl'),
  1816. ncyBreadcrumb: {
  1817. label: 'User List Manager'
  1818. }
  1819. }).state('app.system.form', {
  1820. url: '/forms/{formKey}/{service}/{model}/{isNoticeEdit}/{isServiceGuideEdit}',
  1821. templateUrl: "assets/views/system/tpl/form.html",
  1822. title: 'ui-form',
  1823. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'sysformCtrl'),
  1824. ncyBreadcrumb: {
  1825. label: 'ui-form'
  1826. }
  1827. }).state('app.system.form_editor', {
  1828. url: '/form_editor/{formKey}/{service}/{model}',
  1829. templateUrl: "assets/views/system/tpl/detail.html",
  1830. title: 'ui-form',
  1831. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1832. ncyBreadcrumb: {
  1833. label: 'ui-form'
  1834. }
  1835. }).state('app.system.form_role', {
  1836. url: '/form_role/{formKey}/{service}/{model}',
  1837. templateUrl: "assets/views/system/tpl/form.html",
  1838. title: 'ui-form',
  1839. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1840. ncyBreadcrumb: {
  1841. label: 'ui-form'
  1842. }
  1843. }).state('app.system.user.requester', {
  1844. url: '/requester/{formKey}/{service}/{model}',
  1845. // url: '/forms/{model}/{service}/{fields}/{url}/{cancelUrl}/{extjson}',
  1846. templateUrl: "assets/views/system/tpl/form.html",
  1847. title: 'ui-form',
  1848. resolve: loadSequence('jquery-sparkline', 'api-check', 'spin', 'ladda', 'angular-ladda', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1849. ncyBreadcrumb: {
  1850. label: 'ui-form'
  1851. }
  1852. }).state('app.system.selfDefinedReport', {
  1853. // 自定义报表
  1854. url: '/selfDefinedReport',
  1855. templateUrl: "assets/views/system/selfDefinedReport/selfDefinedReport.html",
  1856. resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'ui.select', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'echarts', 'selfDefinedReportCtrl'),
  1857. title: 'Nav Manager',
  1858. ncyBreadcrumb: {
  1859. label: 'User Manager'
  1860. }
  1861. }).state('app.system.knowledge', {
  1862. url: '/knowledge',
  1863. template: '<div ui-view class="fade-in-up"></div>',
  1864. title: 'Process Plan',
  1865. ncyBreadcrumb: {
  1866. label: 'Process Plan'
  1867. }
  1868. }).state('app.system.knowledge.knowledgebase', {
  1869. url: '/knowledgebase',
  1870. templateUrl: "assets/views/system/knowledge.html",
  1871. 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'),
  1872. title: 'knowledge.VIEW',
  1873. ncyBreadcrumb: {
  1874. label: 'knowledge list'
  1875. }
  1876. }).state('app.system.knowledge.category', {
  1877. url: '/category',
  1878. templateUrl: "assets/views/system/processdesign/knowledgedesign/knowledgecategore.html",
  1879. 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'),
  1880. title: 'knowledge.VIEW',
  1881. ncyBreadcrumb: {
  1882. label: 'knowledge list'
  1883. }
  1884. // 公告管理
  1885. }).state('app.system.notice', {
  1886. url: '/notice',
  1887. template: '<div ui-view class="fade-in-up"></div>',
  1888. title: 'Process Plan',
  1889. ncyBreadcrumb: {
  1890. label: 'Process Plan'
  1891. }
  1892. }).state('app.system.notice.list', {
  1893. url: '/list',
  1894. templateUrl: "assets/views/system/notice/notice.html",
  1895. title: 'User List Manager',
  1896. resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'moment', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'noticeCtrl'),
  1897. ncyBreadcrumb: {
  1898. label: 'User List Manager'
  1899. }
  1900. }) //end system
  1901. .state('app.externalservice', {
  1902. url: '/externalservice',
  1903. template: '<div ui-view class="fade-in-up"></div>',
  1904. title: 'externalservice',
  1905. // pdKey: 'bpm_means',
  1906. ncyBreadcrumb: {
  1907. label: 'externalservice'
  1908. }
  1909. }).state('app.externalservice.dnsmanagelist', {
  1910. url: '/dnsmanagelist',
  1911. templateUrl: "assets/views/externalservice/dnsmanage.html",
  1912. 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'),
  1913. title: 'dnsmanage.VIEW',
  1914. ncyBreadcrumb: {
  1915. label: 'dnsmanage list'
  1916. }
  1917. }).state('app.externalservice.dnsmanageedit', {
  1918. url: '/dnsmanageedit/{formKey}/{service}/{model}',
  1919. templateUrl: "assets/views/system/tpl/form.html",
  1920. title: 'ui-form',
  1921. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1922. ncyBreadcrumb: {
  1923. label: 'ui-form'
  1924. }
  1925. }).state('app.externalservice.emailhandlelist', {
  1926. url: '/emailhandlelist',
  1927. templateUrl: "assets/views/externalservice/emailhandle.html",
  1928. 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'),
  1929. title: 'dnsmanage.VIEW',
  1930. ncyBreadcrumb: {
  1931. label: 'dnsmanage list'
  1932. }
  1933. }).state('app.externalservice.emailhandleedit', {
  1934. url: '/emailhandleedit/{formKey}/{service}/{model}',
  1935. templateUrl: "assets/views/system/tpl/form.html",
  1936. title: 'ui-form',
  1937. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1938. ncyBreadcrumb: {
  1939. label: 'ui-form'
  1940. }
  1941. }).state('app.externalservice.networkapply', {
  1942. url: '/networkapply',
  1943. templateUrl: "assets/views/externalservice/network/networkapply.html",
  1944. 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'),
  1945. title: 'dnsmanage.VIEW',
  1946. ncyBreadcrumb: {
  1947. label: 'dnsmanage list'
  1948. }
  1949. }).state('app.externalservice.networkapplyedit', {
  1950. url: '/networkapplyedit/{formKey}/{service}/{model}',
  1951. templateUrl: "assets/views/system/tpl/form.html",
  1952. title: 'ui-form',
  1953. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1954. ncyBreadcrumb: {
  1955. label: 'ui-form'
  1956. }
  1957. }).state('app.externalservice.ipapply', {
  1958. url: '/ipapply',
  1959. templateUrl: "assets/views/externalservice/network/ipapply.html",
  1960. 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'),
  1961. title: 'dnsmanage.VIEW',
  1962. ncyBreadcrumb: {
  1963. label: 'dnsmanage list'
  1964. }
  1965. }).state('app.externalservice.ipapplyedit', {
  1966. url: '/ipapplyedit/{formKey}/{service}/{model}',
  1967. templateUrl: "assets/views/system/tpl/form.html",
  1968. title: 'ui-form',
  1969. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  1970. ncyBreadcrumb: {
  1971. label: 'ui-form'
  1972. }
  1973. }).state('app.externalservice.roommanage', {
  1974. url: '/roommanage',
  1975. templateUrl: "assets/views/externalservice/roommanage.html",
  1976. 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'),
  1977. title: 'dnsmanage.VIEW',
  1978. ncyBreadcrumb: {
  1979. label: 'dnsmanage list'
  1980. }
  1981. }).state('app.externalservice.roommanageedit', {
  1982. url: '/roommanageedit/{formKey}/{service}/{model}',
  1983. templateUrl: "assets/views/system/tpl/form.html",
  1984. title: 'ui-form',
  1985. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
  1986. ncyBreadcrumb: {
  1987. label: 'ui-form'
  1988. }
  1989. }).state('app.externalservice.faultrepair', {
  1990. url: '/faultrepair',
  1991. templateUrl: "assets/views/externalservice/faultrepair.html",
  1992. 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'),
  1993. title: 'dnsmanage.VIEW',
  1994. ncyBreadcrumb: {
  1995. label: 'dnsmanage list'
  1996. }
  1997. }).state('app.externalservice.faultrepairedit', {
  1998. url: '/faultrepairedit/{formKey}/{service}/{model}',
  1999. templateUrl: "assets/views/system/tpl/form.html",
  2000. title: 'ui-form',
  2001. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  2002. ncyBreadcrumb: {
  2003. label: 'ui-form'
  2004. }
  2005. }).state('app.externalservice.automaticlogin', {
  2006. url: '/automaticlogin',
  2007. templateUrl: "assets/views/externalservice/automaticlogin.html",
  2008. 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'),
  2009. title: 'dnsmanage.VIEW',
  2010. ncyBreadcrumb: {
  2011. label: 'dnsmanage list'
  2012. }
  2013. }).state('app.externalservice.automaticloginedit', {
  2014. url: '/automaticloginedit/{formKey}/{service}/{model}',
  2015. templateUrl: "assets/views/system/tpl/form.html",
  2016. title: 'ui-form',
  2017. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  2018. ncyBreadcrumb: {
  2019. label: 'ui-form'
  2020. }
  2021. }).state('app.externalservice.nsm', {
  2022. url: '/nsm',
  2023. templateUrl: "assets/views/externalservice/nsm.html",
  2024. 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'),
  2025. title: 'dnsmanage.VIEW',
  2026. ncyBreadcrumb: {
  2027. label: 'dnsmanage list'
  2028. }
  2029. }).state('app.externalservice.nsmedit', {
  2030. url: '/nsmedit/{formKey}/{service}/{model}',
  2031. templateUrl: "assets/views/system/tpl/form.html",
  2032. title: 'ui-form',
  2033. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  2034. ncyBreadcrumb: {
  2035. label: 'ui-form'
  2036. }
  2037. })
  2038. .state('app.ui', {
  2039. url: '/ui',
  2040. template: '<div ui-view class="fade-in-up"></div>',
  2041. title: 'UI Elements',
  2042. ncyBreadcrumb: {
  2043. label: 'UI Elements'
  2044. }
  2045. }).state('app.ui.elements', {
  2046. url: '/elements',
  2047. templateUrl: "assets/views/ui_elements.html",
  2048. title: 'Elements',
  2049. icon: 'ti-layout-media-left-alt',
  2050. ncyBreadcrumb: {
  2051. label: 'Elements'
  2052. }
  2053. }).state('app.ui.buttons', {
  2054. url: '/buttons',
  2055. templateUrl: "assets/views/ui_buttons.html",
  2056. title: 'Buttons',
  2057. resolve: loadSequence('spin', 'ladda', 'angular-ladda', 'laddaCtrl'),
  2058. ncyBreadcrumb: {
  2059. label: 'Buttons'
  2060. }
  2061. }).state('app.ui.links', {
  2062. url: '/links',
  2063. templateUrl: "assets/views/ui_links.html",
  2064. title: 'Link Effects',
  2065. ncyBreadcrumb: {
  2066. label: 'Link Effects'
  2067. }
  2068. }).state('app.ui.icons', {
  2069. url: '/icons',
  2070. templateUrl: "assets/views/ui_icons.html",
  2071. title: 'Font Awesome Icons',
  2072. ncyBreadcrumb: {
  2073. label: 'Font Awesome Icons'
  2074. },
  2075. resolve: loadSequence('iconsCtrl')
  2076. }).state('app.ui.lineicons', {
  2077. url: '/line-icons',
  2078. templateUrl: "assets/views/ui_line_icons.html",
  2079. title: 'Linear Icons',
  2080. ncyBreadcrumb: {
  2081. label: 'Linear Icons'
  2082. },
  2083. resolve: loadSequence('iconsCtrl')
  2084. }).state('app.ui.modals', {
  2085. url: '/modals',
  2086. templateUrl: "assets/views/ui_modals.html",
  2087. title: 'Modals',
  2088. ncyBreadcrumb: {
  2089. label: 'Modals'
  2090. },
  2091. resolve: loadSequence('asideCtrl')
  2092. }).state('app.ui.toggle', {
  2093. url: '/toggle',
  2094. templateUrl: "assets/views/ui_toggle.html",
  2095. title: 'Toggle',
  2096. ncyBreadcrumb: {
  2097. label: 'Toggle'
  2098. }
  2099. }).state('app.ui.tabs_accordions', {
  2100. url: '/accordions',
  2101. templateUrl: "assets/views/ui_tabs_accordions.html",
  2102. title: "Tabs & Accordions",
  2103. ncyBreadcrumb: {
  2104. label: 'Tabs & Accordions'
  2105. },
  2106. resolve: loadSequence('vAccordionCtrl')
  2107. }).state('app.ui.panels', {
  2108. url: '/panels',
  2109. templateUrl: "assets/views/ui_panels.html",
  2110. title: 'Panels',
  2111. ncyBreadcrumb: {
  2112. label: 'Panels'
  2113. }
  2114. }).state('app.ui.notifications', {
  2115. url: '/notifications',
  2116. templateUrl: "assets/views/ui_notifications.html",
  2117. title: 'Notifications',
  2118. ncyBreadcrumb: {
  2119. label: 'Notifications'
  2120. },
  2121. resolve: loadSequence('toasterCtrl', 'sweetAlertCtrl')
  2122. }).state('app.ui.treeview', {
  2123. url: '/treeview',
  2124. templateUrl: "assets/views/ui_tree.html",
  2125. title: 'TreeView',
  2126. ncyBreadcrumb: {
  2127. label: 'Treeview'
  2128. },
  2129. resolve: loadSequence('angularBootstrapNavTree', 'treeCtrl')
  2130. }).state('app.ui.media', {
  2131. url: '/media',
  2132. templateUrl: "assets/views/ui_media.html",
  2133. title: 'Media',
  2134. ncyBreadcrumb: {
  2135. label: 'Media'
  2136. }
  2137. }).state('app.ui.nestable', {
  2138. url: '/nestable2',
  2139. templateUrl: "assets/views/ui_nestable.html",
  2140. title: 'Nestable List',
  2141. ncyBreadcrumb: {
  2142. label: 'Nestable List'
  2143. },
  2144. resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'nestableCtrl')
  2145. }).state('app.ui.typography', {
  2146. url: '/typography',
  2147. templateUrl: "assets/views/ui_typography.html",
  2148. title: 'Typography',
  2149. ncyBreadcrumb: {
  2150. label: 'Typography'
  2151. }
  2152. }).state('app.table', {
  2153. url: '/table',
  2154. template: '<div ui-view class="fade-in-up"></div>',
  2155. title: 'Tables',
  2156. ncyBreadcrumb: {
  2157. label: 'Tables'
  2158. }
  2159. }).state('app.table.basic', {
  2160. url: '/basic',
  2161. templateUrl: "assets/views/table_basic.html",
  2162. title: 'Basic Tables',
  2163. ncyBreadcrumb: {
  2164. label: 'Basic'
  2165. }
  2166. }).state('app.table.responsive', {
  2167. url: '/responsive',
  2168. templateUrl: "assets/views/table_responsive.html",
  2169. title: 'Responsive Tables',
  2170. ncyBreadcrumb: {
  2171. label: 'Responsive'
  2172. }
  2173. }).state('app.table.data', {
  2174. url: '/data',
  2175. templateUrl: "assets/views/table_data.html",
  2176. title: 'ngTable',
  2177. ncyBreadcrumb: {
  2178. label: 'ngTable'
  2179. },
  2180. resolve: loadSequence('ngTable', 'ngTableCtrl')
  2181. }).state('app.table.export', {
  2182. url: '/export',
  2183. templateUrl: "assets/views/table_export.html",
  2184. title: 'Table'
  2185. }).state('app.form', {
  2186. url: '/form',
  2187. template: '<div ui-view class="fade-in-up"></div>',
  2188. title: 'Forms',
  2189. ncyBreadcrumb: {
  2190. label: 'Forms'
  2191. }
  2192. }).state('app.form.elements', {
  2193. url: '/elements',
  2194. templateUrl: "assets/views/form_elements.html",
  2195. title: 'Forms Elements',
  2196. ncyBreadcrumb: {
  2197. label: 'Elements'
  2198. },
  2199. resolve: loadSequence('ui.select', 'monospaced.elastic', 'ui.mask', 'touchspin-plugin', 'selectCtrl')
  2200. }).state('app.form.xeditable', {
  2201. url: '/xeditable',
  2202. templateUrl: "assets/views/form_xeditable.html",
  2203. title: 'Angular X-Editable',
  2204. ncyBreadcrumb: {
  2205. label: 'X-Editable'
  2206. },
  2207. resolve: loadSequence('xeditable', 'checklist-model', 'xeditableCtrl')
  2208. }).state('app.form.texteditor', {
  2209. url: '/editor',
  2210. templateUrl: "assets/views/form_text_editor.html",
  2211. title: 'Text Editor',
  2212. ncyBreadcrumb: {
  2213. label: 'Text Editor'
  2214. },
  2215. resolve: loadSequence('ckeditor-plugin', 'ckeditor', 'ckeditorCtrl')
  2216. }).state('app.form.wizard', {
  2217. url: '/wizard',
  2218. templateUrl: "assets/views/form_wizard.html",
  2219. title: 'Form Wizard',
  2220. ncyBreadcrumb: {
  2221. label: 'Wizard'
  2222. },
  2223. resolve: loadSequence('wizardCtrl')
  2224. }).state('app.form.validation', {
  2225. url: '/validation',
  2226. templateUrl: "assets/views/form_validation.html",
  2227. title: 'Form Validation',
  2228. ncyBreadcrumb: {
  2229. label: 'Validation'
  2230. },
  2231. resolve: loadSequence('validationCtrl')
  2232. }).state('app.form.cropping', {
  2233. url: '/image-cropping',
  2234. templateUrl: "assets/views/form_image_cropping.html",
  2235. title: 'Image Cropping',
  2236. ncyBreadcrumb: {
  2237. label: 'Image Cropping'
  2238. },
  2239. resolve: loadSequence('ngImgCrop', 'cropCtrl')
  2240. }).state('app.form.upload', {
  2241. url: '/file-upload',
  2242. templateUrl: "assets/views/form_file_upload.html",
  2243. title: 'Multiple File Upload',
  2244. ncyBreadcrumb: {
  2245. label: 'File Upload'
  2246. },
  2247. resolve: loadSequence('angularFileUpload', 'uploadCtrl')
  2248. }).state('app.pages', {
  2249. url: '/pages',
  2250. template: '<div ui-view class="fade-in-up"></div>',
  2251. title: 'Pages',
  2252. ncyBreadcrumb: {
  2253. label: 'Pages'
  2254. }
  2255. }).state('app.pages.user', {
  2256. url: '/user',
  2257. templateUrl: "assets/views/pages_user_profile.html",
  2258. title: 'User Profile',
  2259. ncyBreadcrumb: {
  2260. label: 'User Profile'
  2261. },
  2262. resolve: loadSequence('flow', 'userCtrl')
  2263. }).state('app.pages.invoice', {
  2264. url: '/invoice',
  2265. templateUrl: "assets/views/pages_invoice.html",
  2266. title: 'Invoice',
  2267. ncyBreadcrumb: {
  2268. label: 'Invoice'
  2269. }
  2270. }).state('app.pages.timeline', {
  2271. url: '/timeline',
  2272. templateUrl: "assets/views/pages_timeline.html",
  2273. title: 'Timeline',
  2274. ncyBreadcrumb: {
  2275. label: 'Timeline'
  2276. },
  2277. resolve: loadSequence('ngMap')
  2278. }).state('app.pages.calendar', {
  2279. url: '/calendar',
  2280. templateUrl: "assets/views/pages_calendar.html",
  2281. title: 'Calendar',
  2282. ncyBreadcrumb: {
  2283. label: 'Calendar'
  2284. },
  2285. resolve: loadSequence('moment', 'mwl.calendar', 'calendarCtrl')
  2286. }).state('app.pages.messages', {
  2287. url: '/messages',
  2288. templateUrl: "assets/views/pages_messages.html",
  2289. resolve: loadSequence('truncate', 'htmlToPlaintext', 'inboxCtrl')
  2290. }).state('app.pages.messages.inbox', {
  2291. url: '/inbox/:inboxID',
  2292. templateUrl: "assets/views/pages_inbox.html",
  2293. controller: 'ViewMessageCrtl'
  2294. }).state('app.pages.blank', {
  2295. url: '/blank',
  2296. templateUrl: "assets/views/pages_blank_page.html",
  2297. ncyBreadcrumb: {
  2298. label: 'Starter Page'
  2299. }
  2300. }).state('app.utilities', {
  2301. url: '/utilities',
  2302. template: '<div ui-view class="fade-in-up"></div>',
  2303. title: 'Utilities',
  2304. ncyBreadcrumb: {
  2305. label: 'Utilities'
  2306. }
  2307. }).state('app.utilities.search', {
  2308. url: '/search',
  2309. templateUrl: "assets/views/utility_search_result.html",
  2310. title: 'Search Results',
  2311. ncyBreadcrumb: {
  2312. label: 'Search Results'
  2313. }
  2314. }).state('app.utilities.pricing', {
  2315. url: '/pricing',
  2316. templateUrl: "assets/views/utility_pricing_table.html",
  2317. title: 'Pricing Table',
  2318. ncyBreadcrumb: {
  2319. label: 'Pricing Table'
  2320. }
  2321. }).state('app.maps', {
  2322. url: "/maps",
  2323. templateUrl: "assets/views/maps.html",
  2324. resolve: loadSequence('ngMap', 'mapsCtrl'),
  2325. title: "Maps",
  2326. ncyBreadcrumb: {
  2327. label: 'Maps'
  2328. }
  2329. }).state('app.charts', {
  2330. url: "/charts",
  2331. templateUrl: "assets/views/charts.html",
  2332. resolve: loadSequence('chartjs', 'tc.chartjs', 'chartsCtrl'),
  2333. title: "Charts",
  2334. ncyBreadcrumb: {
  2335. label: 'Charts'
  2336. }
  2337. }).state('app.documentation', {
  2338. url: "/documentation",
  2339. templateUrl: "assets/views/documentation.html",
  2340. title: "Documentation",
  2341. ncyBreadcrumb: {
  2342. label: 'Documentation'
  2343. }
  2344. }).state('error', {
  2345. url: '/error',
  2346. template: '<div ui-view class="fade-in-up"></div>'
  2347. }).state('error.404', {
  2348. url: '/404',
  2349. templateUrl: "assets/views/utility_404.html"
  2350. }).state('error.500', {
  2351. url: '/500',
  2352. templateUrl: "assets/views/utility_500.html"
  2353. })
  2354. //custom form
  2355. .state('app.customform', {
  2356. url: '/customform',
  2357. templateUrl: 'assets/views/customform/index.html',
  2358. resolve: loadSequence('jquery-sparkline', 'ckeditor-plugin', 'ckeditor', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
  2359. title: 'Customform',
  2360. ncyBreadcrumb: {
  2361. label: 'Customform'
  2362. }
  2363. })
  2364. .state('app.detail', {
  2365. url: '/detail/:formKey/:pdKey/:dataId/:taskId/:processInstanceId',
  2366. templateUrl: "assets/views/customform/detail.html",
  2367. resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'customformDetailCtrl'),
  2368. title: 'form detail',
  2369. icon: 'ti-list',
  2370. ncyBreadcrumb: {
  2371. label: 'detail'
  2372. }
  2373. })
  2374. // Login routes
  2375. .state('login', {
  2376. url: '/login',
  2377. template: '<div ui-view class="fade-in-right-big smooth"></div>',
  2378. abstract: true
  2379. }).state('login.signin', {
  2380. url: '/signin',
  2381. templateUrl: "assets/views/login_login.html",
  2382. resolve: loadSequence('sweet-alert', 'oitozero.ngSweetAlert', 'morph', 'loginCtrl')
  2383. }).state('login.license', {
  2384. url: '/license',
  2385. templateUrl: "assets/views/license.html",
  2386. resolve: loadSequence('sweet-alert', 'oitozero.ngSweetAlert', 'morph', 'licenseCtrl')
  2387. }).state('login.forgot', {
  2388. url: '/forgot',
  2389. templateUrl: "assets/views/login_forgot.html"
  2390. })
  2391. /*.state('login.registration', {
  2392. url: '/registration',
  2393. templateUrl: "assets/views/login_registration.html"
  2394. })*/
  2395. .state('login.lockscreen', {
  2396. url: '/lock',
  2397. templateUrl: "assets/views/login_lock_screen.html"
  2398. })
  2399. // .state('login.changepassword', {
  2400. // url: '/changepassword',
  2401. // templateUrl: "assets/views/changepassword.html",
  2402. // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'passwordCtrl'),
  2403. // title: 'changepassword',
  2404. // icon: 'ti-list',
  2405. // ncyBreadcrumb: {
  2406. // label: 'changepassword'
  2407. // }
  2408. // });
  2409. // Generates a resolve object previously configured in constant.JS_REQUIRES (config.constant.js)
  2410. function loadSequence() {
  2411. var _args = arguments;
  2412. return {
  2413. deps: ['$ocLazyLoad', '$q',
  2414. function ($ocLL, $q) {
  2415. var promise = $q.when(1);
  2416. for (var i = 0, len = _args.length; i < len; i++) {
  2417. promise = promiseThen(_args[i]);
  2418. }
  2419. return promise;
  2420. function promiseThen(_arg) {
  2421. if (typeof _arg == 'function')
  2422. return promise.then(_arg);
  2423. else
  2424. return promise.then(function () {
  2425. var nowLoad = requiredData(_arg);
  2426. if (!nowLoad)
  2427. return $.error('Route resolve: Bad resource name [' + _arg + ']');
  2428. return $ocLL.load(nowLoad);
  2429. });
  2430. }
  2431. function requiredData(name) {
  2432. if (jsRequires.modules)
  2433. for (var m in jsRequires.modules)
  2434. if (jsRequires.modules[m].name && jsRequires.modules[m].name === name)
  2435. return jsRequires.modules[m];
  2436. return jsRequires.scripts && jsRequires.scripts[name];
  2437. }
  2438. }
  2439. ]
  2440. };
  2441. }
  2442. }
  2443. ]);