123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421 |
- 'use strict';
- /**
- * Config for the router
- */
- app.config(['$authProvider', '$httpProvider', '$stateProvider', '$urlRouterProvider', '$controllerProvider', '$compileProvider', '$filterProvider', '$provide', '$ocLazyLoadProvider', 'JS_REQUIRES',
- function ($authProvider, $httpProvider, $stateProvider, $urlRouterProvider, $controllerProvider, $compileProvider, $filterProvider, $provide, $ocLazyLoadProvider, jsRequires) {
- $httpProvider.interceptors.push([
- '$injector',
- function ($injector) {
- return {
- request: function (req) {
- $injector.invoke([
- '$http',
- function ($http) {
- // console.log(req);
- }
- ]);
- return req;
- },
- response: function (resp) {
- $injector.invoke([
- '$http',
- function ($http) {
- // console.log(resp);
- }
- ]);
- return resp;
- },
- responseError: function (resp) {
- $injector.invoke([
- '$http',
- function ($http) {
- // console.log(resp);
- }
- ]);
- return $injector.get('$q').reject(resp);
- }
- };
- }
- ]);
- //$authProvider,
- app.controller = $controllerProvider.register;
- app.directive = $compileProvider.directive;
- app.filter = $filterProvider.register;
- app.factory = $provide.factory;
- app.service = $provide.service;
- app.constant = $provide.constant;
- app.value = $provide.value;
- $authProvider.configure({
- // apiUrl: 'http://192.168.2.63/service',
- // apiUrl: 'http://localhost/service',//本地
- // apiUrl: 'http://192.168.3.101/service', //101
- apiUrl: 'http://' + document.domain + '/service', //139
- // tokenValidationPath: '/auth/validate_token',
- signOutUrl: '/auth/logout2',
- emailSignInPath: '/auth/loginEncrypt',
- // confirmationSuccessUrl: window.location.href,
- // passwordResetPath: '/auth/password',
- // passwordUpdatePath: '/auth/password',
- // passwordResetSuccessUrl: window.location.href,
- storage: 'cookies',
- forceValidateToken: true,
- validateOnPageLoad: true,
- // authProviderPaths: {
- // local: '/auth/login'
- // },
- // tokenFormat: {
- // "access-token": "{{ token }}",
- // // client: "{{ clientId }}",
- // expiry: "{{ expiry }}"
- // // uid: "{{ uid }}"
- // },
- cookieOps: {
- // path: "/",
- expires: 9999,
- expirationUnit: 'seconds',
- // secure: false,
- // domain: 'dashitech.com'
- },
- // handleLoginResponse: function(response, authscope) {
- // var authData = {
- // };
- // // console.log(response);
- // // console.log(authscope);
- // // if(response.sessionId==null){
- // // authData.error = 400;
- // // }else{
- // response.data.user.menu = response.data.menu;
- // authData = {
- // auth_token: 123456,
- // // client_id: 1,
- // expiry: response.data.expiry
- // // uid: response.data.user.id
- // };
- // angular.extend(authData,response.data.user);
- // return authData;
- // // }
- // // return authData;
- // },
- parseExpiry: function (headers) {
- // convert from UTC ruby (seconds) to UTC js (milliseconds)
- return 1e3 * parseInt(headers['expiry'], 10) || null
- },
- handleLoginResponse: function (response, authscope) {
- // console.log(response);
- var authData = {
- };
- var heads = authscope.retrieveData("auth_headers")
- if (response.state == "201") {
- if (!response.data.user) {
- response.data.user = {};
- }
- response.data.user.menu = response.data.menu;
- // authData = {
- // auth_token: heads['access-token'],
- // expiry: heads['expiry']
- // };
- // if (response.data.user.loginExtension) {
- // $rootScope.start(response.data.user.loginExtension);
- // }
- angular.extend(authData, response.data.user);
- // return authData;
- } else if (response.state == "200") {
- if (!response.data.user) {
- response.data.user = {};
- }
- response.data.user.menu = response.data.menu;
- // authData = {
- // auth_token: heads['access-token'],
- // expiry: heads['expiry']
- // };
- angular.extend(authData, response.data.user);
- // return authData;
- } else if (response.state == "500") {
- authData.error = 500;
- } else {
- authData.error = 400;
- }
- // }
- return authData;
- },
- handleAccountUpdateResponse: function (response) {
- return response;
- },
- handleTokenValidationResponse: function (response) {
- var authData = {
- };
- if (response.state == 200) {
- if (!response.data.user) {
- response.data.user = {};
- }
- response.data.user['menu'] = response.data.menu;
- // if (response.data.user.loginExtension) {
- // $rootScope.start(response.data.loginExtension);
- // }
- // sessionStorage.userdata = JSON.stringify(response.data.user);
- angular.extend(authData, response.data.user);
- } else {
- authData.error = 501;
- }
- return authData;
- }
- });
- // LAZY MODULES
- $ocLazyLoadProvider.config({
- debug: false,
- events: true,
- modules: jsRequires.modules
- });
- // APPLICATION ROUTES
- // -----------------------------------
- // if (!$httpProvider.defaults.headers.get) {
- // $httpProvider.defaults.headers.get = {};
- // }
- // $httpProvider.defaults.headers.common["X-Requested-with"] = 'XMLHttpRequest';
- // $httpProvider.defaults.headers.get['Cache-Control'] = 'no-cache';
- // $httpProvider.defaults.headers.get['Pragma'] = 'no-cache';
- // For any unmatched url, redirect to /app/dashboard
- // $urlRouterProvider.otherwise("/app/knowledge/forum");
- $urlRouterProvider.otherwise("/login/signin");
- //
- // Set up the states
- $stateProvider.state('app', {
- url: "/app",
- templateUrl: "assets/views/app.html",
- resolve: loadSequence('modernizr', 'moment', 'angularMoment', 'uiSwitch', 'perfect-scrollbar-plugin', 'toaster', 'ngAside', 'vAccordion', 'sweet-alert', 'chartjs', 'tc.chartjs', 'oitozero.ngSweetAlert', 'ladda', 'angular-ladda', 'chatCtrl'),
- abstract: true
- // }).state('app.dashboard', {
- // url: "/dashboard{userinform}",
- // templateUrl: "assets/views/dashboard/newdash.html",
- // 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'),
- // title: 'dashboard.MAIN',
- // ncyBreadcrumb: {
- // label: 'Dashboard'
- // }
- })
- .state('app.dashboard', {
- url: "/dashboard{userinform}",
- templateUrl: "assets/views/dashboard/newdash.html",
- 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'),
- title: 'dashboard.MAIN',
- ncyBreadcrumb: {
- label: 'Dashboard'
- }
- })
- .state('app.newOrder', {
- url: "/newOrder",
- templateUrl: "assets/views/newOrder.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'newOrderCtrl'),
- title: 'dashboard.MAIN',
- ncyBreadcrumb: {
- label: 'Dashboard'
- }
- })
- .state('app.D3new', {
- url: "/D3new",
- templateUrl: "assets/views/means/D3new.html",
- resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'D3a', 'D3new'),
- title: 'dashboard.MAIN',
- ncyBreadcrumb: {
- label: 'Dashboard'
- }
- })
- .state('childpape', {
- url: '/childpape/{starttime}/{endtime}/{model}',
- templateUrl: "assets/views/report/childpape.html",
- 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'),
- title: 'report.LISTDesc',
- ncyBreadcrumb: {
- label: 'Report View'
- }
- })
- .state('cmdbmap', {
- url: "/cmdbmap",
- templateUrl: "assets/views/means/D3two.html",
- 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'),
- title: 'dashboard.MAIN',
- ncyBreadcrumb: {
- label: 'Dashboard'
- }
- }).state('cmdbcontrast', {
- url: '/cmdbcontrast/{model}',
- templateUrl: "assets/views/means/cmdbcontrast.html",
- 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'),
- title: 'means.LIST',
- pdKey: 'applicationForm',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'means list'
- }
- }).state('dashlefttop', {
- url: "/dashlefttop",
- templateUrl: "assets/views/dashboard/tpl/largedashboard/dash-lefttop.html",
- resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'largedashboardCtrl'),
- title: 'dashboard.MAIN',
- ncyBreadcrumb: {
- label: 'Dashboard'
- }
- })
- .state('dashleftbottom', {
- url: "/dashleftbottom",
- templateUrl: "assets/views/dashboard/tpl/largedashboard/dash-leftbottom.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.mask', 'largedashboardCtrl'),
- title: 'dashboard.MAIN',
- ncyBreadcrumb: {
- label: 'Dashboard'
- }
- }).state('dashrighttop', {
- url: "/dashrighttop",
- templateUrl: "assets/views/dashboard/tpl/largedashboard/dash-righttop.html",
- resolve: loadSequence('jquery-sparkline', 'moment', 'ladda', 'charts', 'nodatachart', 'chartthree', 'largedashboardCtrl'),
- title: 'dashboard.MAIN',
- ncyBreadcrumb: {
- label: 'Dashboard'
- }
- }).state('dashrightbottom', {
- url: "/dashrightbottom",
- templateUrl: "assets/views/dashboard/tpl/largedashboard/dash-rightbottom.html",
- resolve: loadSequence('jquery-nestable-plugin', 'spin', 'moment', 'ladda', 'charts', 'chartthree', 'largedashboardCtrl'),
- title: 'dashboard.MAIN',
- ncyBreadcrumb: {
- label: 'Dashboard'
- }
- }).state('app.desk', {
- url: '/desk',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'desk',
- // pdKey: 'bpm_incident',
- ncyBreadcrumb: {
- label: 'desk'
- }
- // 告警转事件列表
- }).state('app.desk.jry_emergency', {
- url: '/jry_emergency',
- templateUrl: "assets/views/desk/jry_emergency.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'jry_emergencyCtrl'),
- title: 'chart.LIST',
- // pdKey: 'bpm_incident',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'chart'
- }
- }).state('app.desk.chart', {
- url: '/chart',
- templateUrl: "assets/views/desk/chart.html",
- resolve: loadSequence('jquery-sparkline', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'chartCtrl'),
- // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'moment', 'mwl.calendar', 'ui.grid', 'chartCtrl'),
- title: 'chart.LIST',
- // pdKey: 'bpm_incident',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'chart'
- }
- }).state('app.desk.record', {
- url: '/record',
- templateUrl: "assets/views/desk/record.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'recordCtrl'),
- title: 'record.LIST',
- // pdKey: 'bpm_incident',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new watch'
- }
- }).state('app.desk.calllog', {
- url: '/calllog',
- templateUrl: "assets/views/desk/calllog.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'calllogCtrl'),
- title: 'record.LIST',
- // pdKey: 'bpm_incident',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new watch'
- }
- }).state('app.desk.detail', {
- url: '/detail/{model}',
- templateUrl: "assets/views/desk/jry_wxDetail.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'jry_wxDetailCtrl'),
- title: 'record.LIST',
- // pdKey: 'bpm_incident',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new watch'
- }
- }).state('app.desk.form_editor', {
- url: '/form_editor/{formKey}/{service}/{model}',
- templateUrl: "assets/views/system/tpl/detail.html",
- title: 'ui-form',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'chartCtrl', 'customformCtrl', 'sysformCtrl'),
- ncyBreadcrumb: {
- label: 'ui-form'
- }
- }).state('app.file', {
- url: '/file',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'file',
- pdKey: 'bpm_file',
- ncyBreadcrumb: {
- label: 'File'
- }
- // 文档管理
- }).state('app.file.manage', {
- url: '/list',
- templateUrl: "assets/views/file/list.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'jry_fileCtrl'),
- // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'angularBootstrapNavTree', 'jry_fileCtrl'),
- title: 'incident.LIST',
- pdKey: 'bpm_file',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'file list'
- }
- // 索引管理
- }).state('app.file.indexes', {
- url: '/indexes',
- templateUrl: "assets/views/file/indexes.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'jry_indexesCtrl'),
- title: 'incident.LIST',
- pdKey: 'bpm_file',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'file list'
- }
- // 引入文件
- }).state('app.file.open_indexes', {
- url: '/indexes/{fileMessage}',
- templateUrl: "assets/views/file/open_indexes.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'jry_open_indexesCtrl'),
- title: 'incident.LIST',
- pdKey: 'bpm_file',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'file list'
- }
- //任务管理--jry
- }).state('app.task', {
- url: '/task',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'task',
- pdKey: 'bpm_task',
- ncyBreadcrumb: {
- label: 'Task'
- }
- // 新建任务
- }).state('app.task.newTask', {
- url: '/newTask',
- templateUrl: "assets/views/task/taskForm.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'taskFormCtr'),
- title: 'knowledge.NEW',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new knowledge'
- }
- //任务表单
- }).state('app.task.editTask', {
- url: '/editTask/{formKey}/{model}',
- templateUrl: "assets/views/task/taskForm.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'ui.select', 'angularBootstrapNavTree', 'customformCtrl', 'taskFormCtr'),
- title: 'knowledge.NEW',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new knowledge'
- }
- // 任务清单
- }).state('app.task.taskDetailed', {
- url: '/detailed',
- templateUrl: "assets/views/task/taskDetailed.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'taskDetailedCtr'),
- title: 'knowledge.NEW',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new knowledge'
- }
- // 月度任务
- }).state('app.task.moonTask', {
- url: '/moonTask',
- templateUrl: "assets/views/task/moonTask.html",
- 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'),
- title: 'knowledge.List',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'list knowledge'
- }
- // 任务列表
- }).state('app.task.taskList', {
- url: '/taskList',
- templateUrl: "assets/views/task/taskList.html",
- 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'),
- title: 'knowledge.List',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'list knowledge'
- }
- }).state('app.incident', {
- url: '/incident',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'incident',
- pdKey: 'bpm_incident',
- ncyBreadcrumb: {
- label: 'Incident'
- }
- }).state('app.incident.list', {
- url: '/list/{model}',
- templateUrl: "assets/views/incident/list.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'incidentCtrl'),
- title: 'incident.LIST',
- pdKey: 'bpm_incident',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'incident list'
- }
- }).state('app.incident.editor', {
- url: '/editor/{taskId}/{processInstanceId}/{dataId}',
- templateUrl: "assets/views/customform/index.html",
- 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'),
- title: 'incident.NEW',
- pdKey: 'bpm_incident',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new incident'
- }
- }).state('app.incident.watch', {
- url: '/watch/{model}',
- templateUrl: "assets/views/customform/index.html",
- resolve: loadSequence('jquery-sparkline', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
- title: 'incident.NEW',
- pdKey: 'bpm_incident',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new incident'
- }
- }).state('app.incident.detail', {
- url: '/detail/:formKey/:pdKey/:dataId/:taskId/:processInstanceId/:isChart/:isRecord',
- templateUrl: "assets/views/customform/detail.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'customformDetailCtrl', 'sanitize'),
- title: 'form detail',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'detail'
- }
- }).state('app.incident.follow', {
- url: '/follow/{processInstanceId}',
- templateUrl: "assets/views/customform/indexfollow.html",
- resolve: loadSequence('jquery-sparkline', 'ui.mask', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'incidentCtrl'),
- // title: 'incident.LIST',
- pdKey: 'bpm_incident',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new incident'
- }
- }).state('app.incident.title', {
- url: '/editor/{model}/{myData}',
- templateUrl: "assets/views/customform/index.html",
- 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'),
- title: 'incident.NEW',
- pdKey: 'bpm_incident',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new incident'
- }
- })
- .state('app.incident.chart', {
- url: '/chart/{model}',
- templateUrl: "assets/views/customform/index.html",
- 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'),
- title: 'incident.NEW',
- pdKey: 'bpm_incident',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new incident'
- }
- })
- //服务请求页面路由
- .state('app.reService', {
- url: '/reService',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'reService',
- pdKey: 'bpm_reService',
- ncyBreadcrumb: {
- label: 'reService'
- }
- })
- //服务请求>服务列表
- .state('app.reService.manager', {
- url: '/manager',
- templateUrl: "assets/views/reService/manager.html",
- 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'),
- title: 'reService.VIEW',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'reService list'
- }
- })
- //服务请求>新建服务事件
- .state('app.reService.newService', {
- url: '/newService/{pdKey}/{formUiStart}/{formUiEdit}/{formUiName}/{userId}',
- templateUrl: "assets/views/customform/index.html",
- 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'),
- title: 'reService.NEW',
- // pdKey: 'bpm_reService',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new reService'
- }
- })
- //服务请求>服务请求编辑
- .state('app.reService.editor', {
- url: '/editor/{taskId}/{processInstanceId}/{pdKey}/{formUiEdit}',
- templateUrl: "assets/views/customform/index.html",
- 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'),
- title: 'reService.NEW',
- pdKey: 'bpm_reService',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new reService'
- }
- })
- //服务请求>服务请求查看
- .state('app.reService.detail', {
- url: '/detail/{formKey}/{dataId}/{taskId}/{processInstanceId}/{pdKey}',
- templateUrl: "assets/views/customform/detail.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'customformDetailCtrl'),
- title: 'form detail',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'detail'
- }
- })
- .state('app.watch', {
- url: '/watch',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'watch',
- pdKey: 'bpm_watch',
- ncyBreadcrumb: {
- label: 'watch'
- }
- }).state('app.watch.list', {
- url: '/list',
- templateUrl: "assets/views/watch/watch.html",
- resolve: loadSequence('jquery-sparkline', 'ui.grid', 'watchCtrl'),
- title: 'watch.LIST',
- pdKey: 'bpm_watch',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'watch list'
- }
- })
- .state('app.problem', {
- url: '/problem',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'problem',
- pdKey: 'bpm_problem',
- ncyBreadcrumb: {
- label: 'Problem'
- }
- }).state('app.problem.list', {
- url: '/list',
- templateUrl: "assets/views/problem/list.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'problemCtrl'),
- title: 'problem.LIST',
- pdKey: 'bpm_problem',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'problem list'
- }
- }).state('app.problem.editor', {
- url: '/editor/{taskId}/{processInstanceId}/{dataId}',
- templateUrl: "assets/views/customform/index.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
- title: 'problem.NEW',
- pdKey: 'bpm_problem',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new problem'
- }
- }).state('app.problem.incident', {
- url: '/incident/{model}',
- templateUrl: "assets/views/customform/index.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
- title: 'problem.NEW',
- pdKey: 'bpm_problem',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new problem'
- }
- }).state('app.change.problem', {
- url: '/change/{model}',
- templateUrl: "assets/views/customform/index.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
- title: 'change.NEW',
- pdKey: 'bpm_change',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new change'
- }
- })
- .state('app.change', {
- url: '/change',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'change',
- pdKey: 'bpm_change',
- ncyBreadcrumb: {
- label: 'Change'
- }
- }).state('app.change.list', {
- url: '/list',
- templateUrl: "assets/views/change/list.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'changeCtrl'),
- title: 'change.LIST',
- pdKey: 'bpm_change',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'rfc list'
- } //incident
- }).state('app.change.editor', {
- url: '/editor/{taskId}/{processInstanceId}/{dataId}',
- templateUrl: "assets/views/customform/index.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
- title: 'change.NEW',
- pdKey: 'bpm_change',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new rfc'
- }
- }).state('app.change.incident', {
- url: '/incident/{model}',
- templateUrl: "assets/views/customform/index.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
- title: 'change.NEW',
- pdKey: 'bpm_change',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new rfc'
- }
- })
- .state('app.change.release', {
- url: '/release/{model}',
- templateUrl: "assets/views/customform/index.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
- title: 'change.NEW',
- pdKey: 'bpm_release',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new rfc'
- }
- }).state('app.report', {
- url: '/report',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'Report Elements',
- ncyBreadcrumb: {
- label: 'Report Elements'
- }
- }).state('app.report.view', {
- url: '/elements',
- templateUrl: "assets/views/report/report.html",
- resolve: loadSequence('jquery-sparkline', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'reportCtrl'),
- title: 'report.LISTDesc',
- ncyBreadcrumb: {
- label: 'Report View'
- }
- }).state('app.report.charging', {
- url: '/charging',
- templateUrl: "assets/views/report/charging.html",
- resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'chargingCtrl'),
- title: 'report.LISTDesc',
- ncyBreadcrumb: {
- label: 'Report View'
- }
- }).state('app.report.nxreport', {
- url: '/nxreport',
- templateUrl: "assets/views/report/nxreport.html",
- // resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'spin', 'ladda', 'angular-ladda', 'moment', 'nxreportCtrl'),
- resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'nxreportCtrl'),
- title: 'report.LISTDesc',
- ncyBreadcrumb: {
- label: 'Report View'
- }
- }).state('app.report.deck_report', {
- url: '/deck_report',
- templateUrl: "assets/views/report/deck_report.html",
- // resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'spin', 'ladda', 'angular-ladda', 'moment', 'nxreportCtrl'),
- resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'deck_reportCtrl'),
- title: 'report.LISTDesc',
- ncyBreadcrumb: {
- label: 'Report View'
- }
- }).state('app.report.incident_report', {
- url: '/incident_report',
- templateUrl: "assets/views/report/incident_report.html",
- // resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'spin', 'ladda', 'angular-ladda', 'moment', 'nxreportCtrl'),
- resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'spin', 'ladda', 'angular-ladda', 'moment', 'incident_reportCtrl'),
- title: 'report.LISTDesc',
- ncyBreadcrumb: {
- label: 'Report View'
- }
- }).state('app.report.service_form', {//服务台报表-seimin
- url: '/service_form',
- templateUrl: "assets/views/report/service_form.html",
- resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'moment', 'service_formCtrl'),
- title: 'report.LISTDesc',
- ncyBreadcrumb: {
- label: 'Report View'
- }
- }).state('app.report.event_form', {//事件报表-seimin
- url: '/event_form',
- templateUrl: "assets/views/report/event_form.html",
- resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'spin', 'ladda', 'angular-ladda', 'moment', 'event_formCtrl'),
- title: 'report.LISTDesc',
- ncyBreadcrumb: {
- label: 'Report View'
- }
- }).state('app.release', {
- url: '/release',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'release',
- pdKey: 'bpm_release',
- ncyBreadcrumb: {
- label: 'release'
- }
- }).state('app.release.list', {
- url: '/list',
- templateUrl: "assets/views/release/list.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'releaseCtrl'),
- title: 'release.LIST',
- pdKey: 'bpm_release',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'release list'
- }
- }).state('app.release.editor', {
- url: '/editor/{taskId}/{processInstanceId}/{dataId}',
- templateUrl: "assets/views/customform/index.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
- title: 'release.NEW',
- pdKey: 'bpm_release',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new release'
- }
- })
- .state('app.process', {
- url: '/process',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'Process',
- ncyBreadcrumb: {
- label: 'Process'
- }
- }).state('app.process.list', {
- url: '/list',
- templateUrl: "assets/views/process/list.html",
- title: 'process.LIST',
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'processCtrl'),
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'Process list'
- }
- }).state('app.process.modeler', {
- url: '/modeler/{modelId}',
- templateUrl: "assets/views/process/modeler.html",
- resolve: loadSequence('jquery-sparkline', 'bpmn-js-properties', 'processCtrl'),
- title: 'process.MODELER',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'modeler'
- }
- })
- .state('app.cmdb', {
- url: '/cmdb',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'CMDB',
- ncyBreadcrumb: {
- label: 'CMDB'
- }
- }).state('app.cmdb.plist', {
- url: '/plist',
- templateUrl: "assets/views/cmdb/plist.html",
- title: 'configuremanagerdb.PLIST',
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'cmdbCtrl'),
- pdKey: 'bpm_configure',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'cmdbList'
- }
- }).state('app.cmdb.modeler', {
- url: '/editor/{taskId}/{processInstanceId}',
- templateUrl: "assets/views/customform/index.html",
- title: 'configuremanagerdb.MODELER',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'd3', 'customformCtrl'),
- pdKey: 'bpm_configure',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'modeler'
- }
- })
- .state('app.cmdb.list', {
- url: '/list',
- templateUrl: "assets/views/cmdb/list.html",
- title: 'configuremanagerdb.LIST',
- resolve: loadSequence('spin', 'ladda', 'angular-ladda', 'jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'ui.grid', 'customformCtrl', 'cmdbListCtrl'),
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'cmdbList'
- }
- }).state('app.cmdb.viewer', {
- url: '/view/{modelId}',
- templateUrl: "assets/views/cmdb/view.html",
- resolve: loadSequence('jquery-sparkline', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'd3', 'cmdbViewCtrl'),
- title: 'configuremanagerdb.VIEW',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'cmdb viewer'
- }
- }).state('app.cmdb.change', {
- url: '/change/{model}',
- templateUrl: "assets/views/customform/index.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
- title: 'configuremanagerdb.MODELER',
- pdKey: 'bpm_configure',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new rfc'
- }
- })
- .state('app.knowledge', {
- url: '/knowledge',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'knowledge',
- ncyBreadcrumb: {
- label: 'knowledge'
- }
- }).state('app.knowledge.manager', {
- url: '/manager/{model}',
- templateUrl: "assets/views/knowledge/manager.html",
- 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'),
- title: 'knowledgebase.VIEW',
- // params: { "fromstate": null },
- cache: false,
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'knowledge list'
- }
- }).state('app.knowledge.forum', {
- url: '/forum',
- templateUrl: "assets/views/knowledge/forum.html",
- resolve: loadSequence('jquery-sparkline', 'jquery-nestable-plugin', 'ng-nestable', 'moment', 'ckeditor-plugin', 'ckeditor', 'ladda', 'angular-ladda', 'ngTable', 'knowledgeCtrl'),
- title: 'knowledgebase.LIST',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'knowledge forum'
- }
- }).state('app.knowledge.examine', {
- url: '/examine',
- templateUrl: "assets/views/knowledge/examine.html",
- 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'),
- title: 'knowledgebase.VIEW',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'knowledge list'
- }
- }).state('app.knowledge.create', {
- url: '/create/{formKey}/{service}/{model}',
- templateUrl: "assets/views/knowledgeform.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
- title: 'knowledge.NEW',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new knowledge'
- }
- }).state('app.knowledge.leve', {
- url: '/create/{formKey}/{service}/{model}/{history}',
- templateUrl: "assets/views/knowledgeform.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
- title: 'knowledge.NEW',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new knowledge'
- }
- }).state('app.knowledge.jry_lishi', {
- url: '/jry_lishi/{formKey}/{service}/{model}/{history}',
- templateUrl: "assets/views/knowledgelishi.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
- title: 'knowledge.NEW',
- // pdKey: 'knowledge',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new knowledge'
- }
- }).state('app.knowledge.jry_save_history_data', {
- url: '/jry_save_history_data/{model}',
- templateUrl: "assets/views/jry_save_history_data.html",
- resolve: loadSequence('jquery-sparkline', 'jry_save_history_dataCtrl'),
- }).state('app.knowledge.editor', {
- url: '/editor/{formKey}/{service}/{model}/{history}',
- templateUrl: "assets/views/knowledgeform.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
- title: 'knowledge.NEW',
- icon: 'fa-tint',
- params: {
- "fromstate": null
- },
- ncyBreadcrumb: {
- label: 'new knowledge'
- }
- }).state('app.knowledge.jry_shenhe', {
- url: '/jry_shenhe/{formKey}/{service}/{model}/{history}',
- templateUrl: "assets/views/knowledgeshenhe.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
- title: 'knowledge.NEW',
- icon: 'fa-tint',
- params: {
- "fromstate": null
- },
- ncyBreadcrumb: {
- label: 'new knowledge'
- }
- }).state('app.knowledge.detail', {
- url: '/detail/{formKey}/{service}/{model}/{history}',
- templateUrl: "assets/views/knowledgedetail.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'knowledgeformCtrl'),
- title: 'knowledge.NEW',
- // pdKey: 'knowledge',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new knowledge'
- }
- })
- .state('app.scheduling', {
- url: '/scheduling',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'scheduling',
- pdKey: 'bpm_scheduling',
- ncyBreadcrumb: {
- label: 'knowledge'
- }
- }).state('app.scheduling.myscheduling', {
- url: '/myscheduling',
- templateUrl: "assets/views/scheduling/mine.html",
- resolve: loadSequence('moment', 'mwl.calendar', 'ui.select', 'calendarCtrl', 'schedulingCtrl'),
- title: 'scheduling.MINE',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'scheduling'
- }
- })
- .state('app.scheduling.schedulecalendar', {
- url: '/schedule',
- templateUrl: "assets/views/scheduling/calendar.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'moment', 'mwl.calendar', 'ui.select', 'calendarCtrl', 'angularFileUpload', 'schedulingCtrl'),
- title: 'scheduling.CALENDAR',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'scheduling'
- }
- })
- // .state('app.scheduling.schedulecalendar',{
- // url: '/schedule',
- // templateUrl: "assets/views/scheduling/matrialcalendar.html",
- // resolve: loadSequence('jquery-sparkline', 'spin','ladda', 'angular-ladda','moment', 'material-calendar', 'ui.select', 'schedulingCtrl'),
- // title: 'scheduling.CALENDAR',
- // icon: 'fa-tint',
- // ncyBreadcrumb: {
- // label: 'scheduling'
- // }
- // })
- .state('app.scheduling.list', {
- url: '/list',
- templateUrl: "assets/views/scheduling/list.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'angularFileUpload', 'schedulingCtrl'),
- title: 'scheduling.LIST',
- pdKey: 'bpm_schedule',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'scheduling'
- }
- }).state('app.scheduling.editor', {
- url: '/editor/{taskId}/{processInstanceId}/{id}',
- templateUrl: "assets/views/customform/index.html",
- title: 'scheduling.MODELER',
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'schedulingCtrl', 'customformCtrl'),
- pdKey: 'bpm_schedule',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'modeler'
- }
- }).state('app.scheduling.shift', {
- url: '/shift',
- templateUrl: "assets/views/scheduling/shift.html",
- resolve: loadSequence('jquery-sparkline', 'schedulingCtrl'),
- title: 'scheduling.SHIFT',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'scheduling shift'
- }
- }).state('app.scheduling.shiftrecord', {
- url: '/shiftrecord',
- templateUrl: "assets/views/scheduling/shiftrecord.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'schedulingCtrl'),
- title: 'scheduling.SHIFTRECORD',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'scheduling record'
- }
- }).state('app.means', {
- url: '/means',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'means',
- // pdKey: 'bpm_means',
- ncyBreadcrumb: {
- label: 'means'
- }
- }).state('app.means.list', {
- url: '/list',
- templateUrl: "assets/views/means/means.html",
- 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'),
- title: 'means.LIST',
- // pdKey: 'bpm_means',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'means list'
- }
- }).state('app.means.applylist', {
- url: '/applylist',
- templateUrl: "assets/views/means/meansapplylist.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'meansapplyListCtrl'),
- title: 'means.LIST',
- pdKey: 'applicationForm',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'means list'
- }
- }).state('app.means.applyediter', {
- url: '/applyediter/{taskId}/{processInstanceId}/{id}',
- templateUrl: "assets/views/means/cmdbform.html",
- 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'),
- title: 'means.NEW',
- pdKey: 'bpm_applicationForm',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new means'
- }
- }).state('app.means.outediter', {
- url: '/outediter/{taskId}/{processInstanceId}/{id}',
- templateUrl: "assets/views/means/cmdbform.html",
- 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'),
- title: 'means.NEW',
- pdKey: 'bpm_applicationForm_subtract',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new means'
- }
- }).state('app.means.meansmap', {
- url: '/meansmap',
- templateUrl: "assets/views/means/meansMap.html",
- 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'),
- title: 'means.NEW',
- // pdKey: 'bpm_applicationForm_subtract',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new means'
- }
- }).state('app.means.auditlist', {
- url: '/auditlist',
- templateUrl: "assets/views/means/cmdbauditlist.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'cmdbauditlistCtrl'),
- title: 'means.LIST',
- pdKey: 'applicationForm',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'means list'
- }
- }).state('app.means.newaudit', {
- url: '/newaudit',
- templateUrl: "assets/views/means/cmdbauditdetail.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'cmdbauditdetailCtrl'),
- title: 'means.LIST',
- pdKey: 'applicationForm',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'means list'
- }
- }).state('app.means.auditeditor', {
- url: '/auditeditor/{model}',
- templateUrl: "assets/views/means/cmdbauditeditor.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'cmdbauditeditorCtrl'),
- title: 'means.LIST',
- pdKey: 'applicationForm',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'means list'
- }
- // })
- // .state('cmdbcontrast', {
- // url: '/cmdbcontrast/{model}',
- // templateUrl: "assets/views/means/cmdbcontrast.html",
- // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'Timeline', 'cmdbcontrastCtrl'),
- // title: 'means.LIST',
- // pdKey: 'applicationForm',
- // icon: 'ti-list',
- // ncyBreadcrumb: {
- // label: 'means list'
- // }
- }).state('app.means.bill', {
- url: '/bill/{formKey}/{service}/{model}',
- templateUrl: "assets/views/means/meansBill.html",
- 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'),
- title: 'means.NEW',
- // pdKey: 'bpm_means',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new means'
- }
- }).state('app.means.view', {
- url: '/bill/{formKey}/{service}/{model}',
- templateUrl: "assets/views/means/meansview.html",
- 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'),
- title: 'means.NEW',
- // pdKey: 'bpm_means',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new means'
- }
- }).state('app.means.editor', {
- url: '/editor/{formKey}/{service}',
- templateUrl: "assets/views/means/tpl/meansform.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'ladda', 'angular-ladda', 'angularBootstrapNavTree', 'customformCtrl', 'meansformCtrl'),
- title: 'means.NEW',
- // pdKey: 'bpm_means',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new means'
- }
- }).state('app.means.detail', {
- // url: '/detail/{formKey}/{service}',
- url: '/detail/:formKey/:pdKey/:dataId/:taskId/:processInstanceId/:id',
- templateUrl: "assets/views/means/tpl/meansdetailform.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'ngTable', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'ladda', 'angular-ladda', 'angularBootstrapNavTree', 'customformCtrl', 'meansdetailCtrl'),
- title: 'means.NEW',
- // pdKey: 'bpm_means',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new means'
- }
- }) // 固定资产列表
- .state('app.means.listd', {
- url: '/fixed_list',
- templateUrl: "assets/views/fixed/list.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'fixedCtrl'),
- })
- // 固定查看
- .state('app.means.fixed_see', {
- url: '/fixed_see/{gdzc_label}/{gdzc_item}/{idd}',
- templateUrl: "assets/views/fixed/see.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'gdzc_seeCtrl'),
- })
- // 固定资产属性
- .state('app.means.fixed_see.attribute', {
- url: '/attribute/{gdzc_label1}/{gdzc_item1}',
- templateUrl: "assets/views/fixed/attribute.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'gdzc_attributeCtrl'),
- })
- // 固定操作历史
- .state('app.means.fixed_see.history', {
- url: '/history/{idd}',
- templateUrl: "assets/views/fixed/history.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'gdzc_historyCtrl'),
- })
- // 固定关联流程
- .state('app.means.fixed_see.relation', {
- url: '/relation/{idd}',
- templateUrl: "assets/views/fixed/relation.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'gdzc_relationCtrl'),
- })
- // 固定编辑
- .state('app.means.fixed_edit', {
- url: '/fixed_edit/{formKey}/{service}/{model}',
- templateUrl: "assets/views/fixed/gdzc_edit.html",
- 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'),
- title: 'means.NEW',
- // pdKey: 'bpm_means',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'new means'
- }
- })
- // 业务系统列表
- .state('app.means.business_list', {
- url: '/business_list',
- templateUrl: "assets/views/business/list.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'businessCtrl'),
- })
- // 耗材列表
- .state('app.means.consumables_list', {
- url: '/consumables_list',
- templateUrl: "assets/views/consumables/list.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'hc_consumablesCtrl'),
- })
- // 耗材查看
- .state('app.means.consumables_see', {
- url: '/consumables_see/{idd}',
- templateUrl: "assets/views/consumables/see.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'hc_seeCtrl'),
- })
- // 耗材操作历史
- .state('app.means.consumables_see.operation_history', {
- url: '/operation_history/{idd}',
- templateUrl: "assets/views/consumables/operation_history.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'hc_historyCtrl'),
- }) // 耗材关联流程
- // 耗材关联流程
- .state('app.means.consumables_see.relation', {
- url: '/relation/{idd}',
- templateUrl: "assets/views/consumables/relation.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'hc_relationCtrl'),
- }).state('app.inspection', {
- url: '/inspection',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'inspection',
- // pdKey: 'bpm_means',
- ncyBreadcrumb: {
- label: 'inspection'
- }
- })
- //巡检管理>巡检计划
- .state('app.inspection.inspectPlan', {
- url: '/inspectPlan',
- templateUrl: "assets/views/inspect/inspectPlan.html",
- resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'inspectPlanCtrl'),
- title: 'inspection.LIST',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'inspection list'
- }
- })
- //巡检管理>巡检列表
- .state('app.inspection.inspectList', {
- url: '/inspectList',
- templateUrl: "assets/views/inspect/inspectList.html",
- resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'inspectListCtrl'),
- title: 'inspection.LIST',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'inspection list'
- }
- })
- //巡检管理>巡检计划编辑
- .state('app.inspection.editor', {
- url: '/editor/{formKey}/{service}/{model}/{labelTree}',
- templateUrl: "assets/views/form.html",
- title: 'ui-form',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'spin', 'ladda', 'angular-ladda', 'angularFileUpload', 'multi.select.tree', 'moment', 'customformCtrl', 'inspectForm'),
- ncyBreadcrumb: {
- label: 'ui-form'
- }
- })
- //巡检管理>巡检计划查看
- .state('app.inspection.form', {
- url: '/form/{formKey}/{service}/{model}',
- templateUrl: "assets/views/system/tpl/detail.html",
- title: 'ui-form',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'ui.grid', 'formly', 'angularFormly', 'spin', 'ladda', 'angular-ladda', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'inspectForm'),
- ncyBreadcrumb: {
- label: 'ui-form'
- }
- })
- //巡检列表>巡检列表编辑
- .state('app.inspection.inspectListEditor', {
- url: '/inspectListEditor/{pdKey}/{taskId}/{processInstanceId}/{formUiEdit}/{model}/{dataId}',
- // url: '/editor',
- templateUrl: "assets/views/customform/index.html",
- 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'),
- title: 'form editor',
- // pdKey: 'inspectionListForm',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'editor'
- }
- })
- //巡检列表>巡检列表查看
- .state('app.inspection.inspectListdetail', {
- url: '/inspectListdetail/{pdKey}/{taskId}/{processInstanceId}/{formKey}/{model}/{dataId}',
- // url: '/inspectListdetail/:formUiName/:taskId/:processInstanceId',
- templateUrl: "assets/views/customform/detail.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'customformDetailCtrl'),
- title: 'form detail',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'detail'
- }
- })
- //系统列表
- .state('app.system', {
- url: '/system',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'System Elements',
- ncyBreadcrumb: {
- label: 'System Elements'
- }
- //事件分类设置--jry
- }).state('app.system.jry_incidentSet', {
- url: '/jry_incidentSet',
- templateUrl: "assets/views/system/jry_incidentSet.html",
- // resolve: loadSequence( 'jquery-sparkline', 'spin', 'ladda', 'angular-ladda','ui.select', 'multi.select.tree', 'angularBootstrapNavTree','jry_incidentSetCt'),
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'moment', 'angularPrint', 'angularFileUpload', 'ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'jry_incidentSetCt'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- // title: 'incident.LIST',
- // pdKey: 'bpm_incident',
- // icon: 'ti-list',
- // ncyBreadcrumb: {
- // label: 'incident list'
- // }
- }).state('app.system.easyform', {
- url: '/easyform',
- templateUrl: "assets/views/system/easyform/easyform.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'nya-bs-select', 'mwl.calendar', 'customformCtrl', 'easyformCtrl'),
- title: 'easy form',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'easyform'
- }
- }).state('app.system.pzxgl', {
- url: '/pzxgl',
- templateUrl: "assets/views/system/pzxgl_wt.html",
- 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'),
- title: 'pzxgl',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'pzxgl'
- }
- }).state('app.system.qxgl', {
- url: '/qxgl',
- templateUrl: "assets/views/system/qxgl_wt.html",
- 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'),
- title: 'pzxgl',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'qxgl'
- }
- // 服务指南
- }).state('app.system.information', {
- url: '/information',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'Process Plan',
- ncyBreadcrumb: {
- label: 'Process Plan'
- }
- // 服务指南分类
- }).state('app.system.information.category', {
- url: '/category',
- templateUrl: "assets/views/system/informationCate.html",
- 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'),
- title: 'knowledge.VIEW',
- ncyBreadcrumb: {
- label: 'knowledge list'
- }
- }).state('app.system.information.list', {
- url: '/list',
- templateUrl: "assets/views/system/information.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'moment', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'informationCtrl'),
- title: 'information',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'information'
- }
- // 流程节点
- }).state('app.system.processNode', {
- url: '/processNode',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'processNode Plan',
- ncyBreadcrumb: {
- label: 'processNode Plan'
- }
- }).state('app.system.processNode.list', {
- url: '/list',
- templateUrl: "assets/views/system/processNode.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'moment', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'processNodeCtrl'),
- title: 'processNode',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'processNode'
- }
- }).state('app.system.notification', {//消息通知管理
- url: '/notification',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'notification Plan',
- ncyBreadcrumb: {
- label: 'notification Plan'
- }
- }).state('app.system.notification.list', {
- url: '/list',
- templateUrl: "assets/views/system/notification.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'moment', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'notificationCtrl'),
- title: 'notification',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'notification'
- }
- }).state('app.system.organization', {
- url: '/organization',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'System Elements',
- ncyBreadcrumb: {
- label: 'System Elements'
- }
- }).state('app.system.organization.place', {
- url: '/place',
- templateUrl: "assets/views/system/organization/place.html",
- resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'checklist-model', 'placeCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- // 耗材分类维护
- }).state('app.system.organization.hc_flwh', {
- url: '/hc_flwh',
- templateUrl: "assets/views/system/organization/hc_flwh.html",
- resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'hc_flwhCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- //管理单位维护
- }).state('app.system.organization.ywxt_gldw', {
- url: '/ywxt_gldw',
- templateUrl: "assets/views/system/organization/ywxt_gldw.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ui.select', 'ladda', 'angular-ladda', 'ui.grid', 'ywxt_gldwCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- }).state('app.system.organization.worktime', {
- url: '/worktime',
- templateUrl: "assets/views/system/organization/worktime.html",
- resolve: loadSequence('jquery-nestable-plugin', 'ui.select', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'worktimeCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- }).state('app.system.organization.dept', {
- url: '/dept',
- templateUrl: "assets/views/system/organization/dept.html",
- 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'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- }).state('app.system.organization.serverslevel', {
- url: '/serverslevel',
- templateUrl: "assets/views/system/organization/serverslevel.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'serverslevelCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- }).state('app.system.userdesign', {
- url: '/userdesign',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'System Elements',
- ncyBreadcrumb: {
- label: 'System Elements'
- }
- }).state('app.system.userdesign.schedulecalendar', {
- url: '/schedule',
- templateUrl: "assets/views/system/user/matrialcalendar.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'moment', 'material-calendar', 'ui.select', 'schedulingplanCtrl'),
- title: 'scheduling.CALENDAR',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'scheduling'
- }
- }).state('app.system.userdesign.group', {
- url: '/group',
- templateUrl: "assets/views/system/user/group.html",
- title: 'scheduling.CALENDAR',
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'xeditable', 'angular-ladda', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'groupCtrl'),
- ncyBreadcrumb: {
- label: 'User List Manager'
- }
- // }).state('app.system.userdesign.group', {
- // url: '/group',
- // templateUrl: "assets/views/system/user/group.html",
- // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'ui.grid', 'groupCtrl'),
- // title: 'scheduling.CALENDAR',
- // icon: 'fa-tint',
- // ncyBreadcrumb: {
- // label: 'scheduling'
- // }
- }).state('app.system.userdesign.scheduletime', {
- url: '/scheduletime',
- templateUrl: "assets/views/system/user/scheduletime.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'scheduletimeCtrl'),
- title: 'scheduling.CALENDAR',
- icon: 'fa-tint',
- ncyBreadcrumb: {
- label: 'scheduling'
- }
- }).state('app.system.processdesign', {
- url: '/processdesign',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'Process Plan',
- ncyBreadcrumb: {
- label: 'Process Plan'
- }
- }).state('app.system.processdesign.incidentplan', {
- url: '/incidentplan',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'Process Plan',
- ncyBreadcrumb: {
- label: 'Process Plan'
- }
- }).state('app.system.processdesign.incidentplan.category', {
- url: '/category',
- templateUrl: "assets/views/system/processdesign/incidentplan/incidentcategory.html",
- resolve: loadSequence('ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'incidentcateCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- // 事件设置
- }).state('app.system.processdesign.incidentplan.incidentSetUp', {
- url: '/incidentSetUp',
- templateUrl: "assets/views/system/processdesign/incidentplan/incidentSetUp.html",
- resolve: loadSequence('ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'incidentSetUpCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- }).state('app.system.processdesign.incidentplan.servicetype', {
- url: '/servicetype',
- templateUrl: "assets/views/system/processdesign/incidentplan/servicetype.html",
- 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'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- }).state('app.system.processdesign.incidentplan.source', {
- url: '/source',
- templateUrl: "assets/views/system/processdesign/incidentplan/incidentsource.html",
- 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'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- }).state('app.system.processdesign.incidentplan.closecode', {
- url: '/closecode',
- templateUrl: "assets/views/system/processdesign/incidentplan/closecode.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'closecodeCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- }).state('app.system.processdesign.incidentplan.influence', {
- url: '/influence',
- templateUrl: "assets/views/system/processdesign/incidentplan/influence.html",
- resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'influenceCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- }).state('app.system.processdesign.incidentplan.emergency', {
- url: '/emergency',
- templateUrl: "assets/views/system/processdesign/incidentplan/emergency.html",
- resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'emergencyCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- }).state('app.system.processdesign.incidentplan.priority', {
- url: '/priority',
- templateUrl: "assets/views/system/processdesign/incidentplan/priority.html",
- resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'ui.select', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'priorityCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- }).state('app.system.processdesign.incidentplan.prioritymatrix', {
- url: '/prioritymatrix',
- templateUrl: "assets/views/system/processdesign/incidentplan/prioritymatrix.html",
- resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'ui.select', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'xeditableCtrl', 'prioritymatrixCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- }).state('app.system.navmanager', {
- url: '/navmanager',
- templateUrl: "assets/views/system/navmanager.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'xeditable', 'angular-ladda', 'ui.select', 'multi.select.tree', 'angularTree', 'navmanagerCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- }).state('app.system.navmanager.aa', {
- url: '/aa',
- // templateUrl: "测试123",
- template: "测试123"
- }).state('app.system.navmanager.form', {
- url: '/forms/{formKey}/{service}/{model}',
- templateUrl: "assets/views/system/tpl/form.html",
- title: 'ui-form',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
- ncyBreadcrumb: {
- label: 'ui-form'
- }
- })
- .state('app.system.systemmanager', {
- url: '/systemmanager',
- templateUrl: "assets/views/system/systemmanager.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'systemmanagerCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- })
- //系统配置seimin
- .state('app.system.sysconfig', {
- url: '/sysconfig',
- templateUrl: "assets/views/system/sysconfig.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'sysconfigCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- })
- //微信配置seimin
- .state('app.system.wxconfig', {
- url: '/wxconfig',
- templateUrl: "assets/views/system/wxconfig.html",
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'wxconfigCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- })
- //system user
- .state('app.system.user', {
- url: '/user',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'User Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- })
- .state('app.system.userdesign.requester', {
- url: '/requester',
- templateUrl: "assets/views/system/user/requester.html",
- title: 'User List Manager',
- resolve: loadSequence('jquery-sparkline', 'spin', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ladda', 'angular-ladda', 'ui.grid', 'angularFileUpload', 'requestermgrCtrl'),
- ncyBreadcrumb: {
- label: 'User List Manager'
- }
- }).state('app.system.user.user', {
- url: '/users',
- templateUrl: "assets/views/system/user/users.html",
- title: 'User List Manager',
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'usermgrCtrl'),
- ncyBreadcrumb: {
- label: 'User List Manager'
- }
- }).state('app.system.user.role', {
- url: '/roles',
- templateUrl: "assets/views/system/user/role.html",
- title: 'User List Manager',
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'angularBootstrapNavTree', 'ui.grid', 'rolemgrCtrl'),
- ncyBreadcrumb: {
- label: 'User List Manager'
- }
- }).state('app.system.user.power', {
- url: '/power',
- templateUrl: "assets/views/system/user/power.html",
- title: 'User List Manager',
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'xeditable', 'angular-ladda', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'powerCtrl'),
- ncyBreadcrumb: {
- label: 'User List Manager'
- }
- }).state('app.system.dashboard', {
- url: '/dashboard',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'User Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- }).state('app.system.dashboard.editor', {
- url: '/editor',
- templateUrl: "assets/views/system/dashboard/dashboardeditor.html",
- title: 'User List Manager',
- resolve: loadSequence('jquery-nestable-plugin', 'spin', 'ladda', 'angular-ladda', 'ng-nestable', 'ngTable', 'ckeditor', 'jquery-sparkline', 'sortable', 'ui.select',
- 'ui.mask', 'api-check', 'formly', 'moment', 'mwl.calendar', 'angularFormly', 'customformCtrl', 'dashboardnewCtrl'),
- // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'xeditable', 'angular-ladda', 'ui.select', 'multi.select.tree', 'touchspin-plugin', 'angularTree', 'angularBootstrapNavTree', 'dashboardnewCtrl'),
- ncyBreadcrumb: {
- label: 'User List Manager'
- }
- }).state('app.system.dashboard.create', {
- url: '/create',
- templateUrl: "assets/views/system/dashboard/dashboardAdd.html",
- title: 'User List Manager',
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'ui.select', 'dashboardAddCtrl'),
- ncyBreadcrumb: {
- label: 'User List Manager'
- }
- }).state('app.system.form', {
- url: '/forms/{formKey}/{service}/{model}/{isNoticeEdit}/{isServiceGuideEdit}',
- templateUrl: "assets/views/system/tpl/form.html",
- title: 'ui-form',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'angularBootstrapNavTree', 'customformCtrl', 'sysformCtrl'),
- ncyBreadcrumb: {
- label: 'ui-form'
- }
- }).state('app.system.form_editor', {
- url: '/form_editor/{formKey}/{service}/{model}',
- templateUrl: "assets/views/system/tpl/detail.html",
- title: 'ui-form',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
- ncyBreadcrumb: {
- label: 'ui-form'
- }
- }).state('app.system.form_role', {
- url: '/form_role/{formKey}/{service}/{model}',
- templateUrl: "assets/views/system/tpl/form.html",
- title: 'ui-form',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
- ncyBreadcrumb: {
- label: 'ui-form'
- }
- }).state('app.system.user.requester', {
- url: '/requester/{formKey}/{service}/{model}',
- // url: '/forms/{model}/{service}/{fields}/{url}/{cancelUrl}/{extjson}',
- templateUrl: "assets/views/system/tpl/form.html",
- title: 'ui-form',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'spin', 'ladda', 'angular-ladda', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
- ncyBreadcrumb: {
- label: 'ui-form'
- }
- }).state('app.system.selfDefinedReport', {
- // 自定义报表
- url: '/selfDefinedReport',
- templateUrl: "assets/views/system/selfDefinedReport/selfDefinedReport.html",
- resolve: loadSequence('jquery-nestable-plugin', 'angularBootstrapNavTree', 'angularFileUpload', 'ui.select', 'spin', 'ui.grid', 'xeditable', 'checklist-model', 'echarts', 'selfDefinedReportCtrl'),
- title: 'Nav Manager',
- ncyBreadcrumb: {
- label: 'User Manager'
- }
- }).state('app.system.knowledge', {
- url: '/knowledge',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'Process Plan',
- ncyBreadcrumb: {
- label: 'Process Plan'
- }
- }).state('app.system.knowledge.knowledgebase', {
- url: '/knowledgebase',
- templateUrl: "assets/views/system/knowledge.html",
- 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'),
- title: 'knowledge.VIEW',
- ncyBreadcrumb: {
- label: 'knowledge list'
- }
- }).state('app.system.knowledge.category', {
- url: '/category',
- templateUrl: "assets/views/system/processdesign/knowledgedesign/knowledgecategore.html",
- 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'),
- title: 'knowledge.VIEW',
- ncyBreadcrumb: {
- label: 'knowledge list'
- }
- // 公告管理
- }).state('app.system.notice', {
- url: '/notice',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'Process Plan',
- ncyBreadcrumb: {
- label: 'Process Plan'
- }
- }).state('app.system.notice.list', {
- url: '/list',
- templateUrl: "assets/views/system/notice/notice.html",
- title: 'User List Manager',
- resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.select', 'moment', 'angularBootstrapNavTree', 'multi.select.tree', 'ui.grid', 'noticeCtrl'),
- ncyBreadcrumb: {
- label: 'User List Manager'
- }
- }) //end system
- .state('app.externalservice', {
- url: '/externalservice',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'externalservice',
- // pdKey: 'bpm_means',
- ncyBreadcrumb: {
- label: 'externalservice'
- }
- }).state('app.externalservice.dnsmanagelist', {
- url: '/dnsmanagelist',
- templateUrl: "assets/views/externalservice/dnsmanage.html",
- 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'),
- title: 'dnsmanage.VIEW',
- ncyBreadcrumb: {
- label: 'dnsmanage list'
- }
- }).state('app.externalservice.dnsmanageedit', {
- url: '/dnsmanageedit/{formKey}/{service}/{model}',
- templateUrl: "assets/views/system/tpl/form.html",
- title: 'ui-form',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
- ncyBreadcrumb: {
- label: 'ui-form'
- }
- }).state('app.externalservice.emailhandlelist', {
- url: '/emailhandlelist',
- templateUrl: "assets/views/externalservice/emailhandle.html",
- 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'),
- title: 'dnsmanage.VIEW',
- ncyBreadcrumb: {
- label: 'dnsmanage list'
- }
- }).state('app.externalservice.emailhandleedit', {
- url: '/emailhandleedit/{formKey}/{service}/{model}',
- templateUrl: "assets/views/system/tpl/form.html",
- title: 'ui-form',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
- ncyBreadcrumb: {
- label: 'ui-form'
- }
- }).state('app.externalservice.networkapply', {
- url: '/networkapply',
- templateUrl: "assets/views/externalservice/network/networkapply.html",
- 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'),
- title: 'dnsmanage.VIEW',
- ncyBreadcrumb: {
- label: 'dnsmanage list'
- }
- }).state('app.externalservice.networkapplyedit', {
- url: '/networkapplyedit/{formKey}/{service}/{model}',
- templateUrl: "assets/views/system/tpl/form.html",
- title: 'ui-form',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
- ncyBreadcrumb: {
- label: 'ui-form'
- }
- }).state('app.externalservice.ipapply', {
- url: '/ipapply',
- templateUrl: "assets/views/externalservice/network/ipapply.html",
- 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'),
- title: 'dnsmanage.VIEW',
- ncyBreadcrumb: {
- label: 'dnsmanage list'
- }
- }).state('app.externalservice.ipapplyedit', {
- url: '/ipapplyedit/{formKey}/{service}/{model}',
- templateUrl: "assets/views/system/tpl/form.html",
- title: 'ui-form',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
- ncyBreadcrumb: {
- label: 'ui-form'
- }
- }).state('app.externalservice.roommanage', {
- url: '/roommanage',
- templateUrl: "assets/views/externalservice/roommanage.html",
- 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'),
- title: 'dnsmanage.VIEW',
- ncyBreadcrumb: {
- label: 'dnsmanage list'
- }
- }).state('app.externalservice.roommanageedit', {
- url: '/roommanageedit/{formKey}/{service}/{model}',
- templateUrl: "assets/views/system/tpl/form.html",
- title: 'ui-form',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'sysformCtrl'),
- ncyBreadcrumb: {
- label: 'ui-form'
- }
- }).state('app.externalservice.faultrepair', {
- url: '/faultrepair',
- templateUrl: "assets/views/externalservice/faultrepair.html",
- 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'),
- title: 'dnsmanage.VIEW',
- ncyBreadcrumb: {
- label: 'dnsmanage list'
- }
- }).state('app.externalservice.faultrepairedit', {
- url: '/faultrepairedit/{formKey}/{service}/{model}',
- templateUrl: "assets/views/system/tpl/form.html",
- title: 'ui-form',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
- ncyBreadcrumb: {
- label: 'ui-form'
- }
- }).state('app.externalservice.automaticlogin', {
- url: '/automaticlogin',
- templateUrl: "assets/views/externalservice/automaticlogin.html",
- 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'),
- title: 'dnsmanage.VIEW',
- ncyBreadcrumb: {
- label: 'dnsmanage list'
- }
- }).state('app.externalservice.automaticloginedit', {
- url: '/automaticloginedit/{formKey}/{service}/{model}',
- templateUrl: "assets/views/system/tpl/form.html",
- title: 'ui-form',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
- ncyBreadcrumb: {
- label: 'ui-form'
- }
- }).state('app.externalservice.nsm', {
- url: '/nsm',
- templateUrl: "assets/views/externalservice/nsm.html",
- 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'),
- title: 'dnsmanage.VIEW',
- ncyBreadcrumb: {
- label: 'dnsmanage list'
- }
- }).state('app.externalservice.nsmedit', {
- url: '/nsmedit/{formKey}/{service}/{model}',
- templateUrl: "assets/views/system/tpl/form.html",
- title: 'ui-form',
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
- ncyBreadcrumb: {
- label: 'ui-form'
- }
- })
- .state('app.ui', {
- url: '/ui',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'UI Elements',
- ncyBreadcrumb: {
- label: 'UI Elements'
- }
- }).state('app.ui.elements', {
- url: '/elements',
- templateUrl: "assets/views/ui_elements.html",
- title: 'Elements',
- icon: 'ti-layout-media-left-alt',
- ncyBreadcrumb: {
- label: 'Elements'
- }
- }).state('app.ui.buttons', {
- url: '/buttons',
- templateUrl: "assets/views/ui_buttons.html",
- title: 'Buttons',
- resolve: loadSequence('spin', 'ladda', 'angular-ladda', 'laddaCtrl'),
- ncyBreadcrumb: {
- label: 'Buttons'
- }
- }).state('app.ui.links', {
- url: '/links',
- templateUrl: "assets/views/ui_links.html",
- title: 'Link Effects',
- ncyBreadcrumb: {
- label: 'Link Effects'
- }
- }).state('app.ui.icons', {
- url: '/icons',
- templateUrl: "assets/views/ui_icons.html",
- title: 'Font Awesome Icons',
- ncyBreadcrumb: {
- label: 'Font Awesome Icons'
- },
- resolve: loadSequence('iconsCtrl')
- }).state('app.ui.lineicons', {
- url: '/line-icons',
- templateUrl: "assets/views/ui_line_icons.html",
- title: 'Linear Icons',
- ncyBreadcrumb: {
- label: 'Linear Icons'
- },
- resolve: loadSequence('iconsCtrl')
- }).state('app.ui.modals', {
- url: '/modals',
- templateUrl: "assets/views/ui_modals.html",
- title: 'Modals',
- ncyBreadcrumb: {
- label: 'Modals'
- },
- resolve: loadSequence('asideCtrl')
- }).state('app.ui.toggle', {
- url: '/toggle',
- templateUrl: "assets/views/ui_toggle.html",
- title: 'Toggle',
- ncyBreadcrumb: {
- label: 'Toggle'
- }
- }).state('app.ui.tabs_accordions', {
- url: '/accordions',
- templateUrl: "assets/views/ui_tabs_accordions.html",
- title: "Tabs & Accordions",
- ncyBreadcrumb: {
- label: 'Tabs & Accordions'
- },
- resolve: loadSequence('vAccordionCtrl')
- }).state('app.ui.panels', {
- url: '/panels',
- templateUrl: "assets/views/ui_panels.html",
- title: 'Panels',
- ncyBreadcrumb: {
- label: 'Panels'
- }
- }).state('app.ui.notifications', {
- url: '/notifications',
- templateUrl: "assets/views/ui_notifications.html",
- title: 'Notifications',
- ncyBreadcrumb: {
- label: 'Notifications'
- },
- resolve: loadSequence('toasterCtrl', 'sweetAlertCtrl')
- }).state('app.ui.treeview', {
- url: '/treeview',
- templateUrl: "assets/views/ui_tree.html",
- title: 'TreeView',
- ncyBreadcrumb: {
- label: 'Treeview'
- },
- resolve: loadSequence('angularBootstrapNavTree', 'treeCtrl')
- }).state('app.ui.media', {
- url: '/media',
- templateUrl: "assets/views/ui_media.html",
- title: 'Media',
- ncyBreadcrumb: {
- label: 'Media'
- }
- }).state('app.ui.nestable', {
- url: '/nestable2',
- templateUrl: "assets/views/ui_nestable.html",
- title: 'Nestable List',
- ncyBreadcrumb: {
- label: 'Nestable List'
- },
- resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'nestableCtrl')
- }).state('app.ui.typography', {
- url: '/typography',
- templateUrl: "assets/views/ui_typography.html",
- title: 'Typography',
- ncyBreadcrumb: {
- label: 'Typography'
- }
- }).state('app.table', {
- url: '/table',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'Tables',
- ncyBreadcrumb: {
- label: 'Tables'
- }
- }).state('app.table.basic', {
- url: '/basic',
- templateUrl: "assets/views/table_basic.html",
- title: 'Basic Tables',
- ncyBreadcrumb: {
- label: 'Basic'
- }
- }).state('app.table.responsive', {
- url: '/responsive',
- templateUrl: "assets/views/table_responsive.html",
- title: 'Responsive Tables',
- ncyBreadcrumb: {
- label: 'Responsive'
- }
- }).state('app.table.data', {
- url: '/data',
- templateUrl: "assets/views/table_data.html",
- title: 'ngTable',
- ncyBreadcrumb: {
- label: 'ngTable'
- },
- resolve: loadSequence('ngTable', 'ngTableCtrl')
- }).state('app.table.export', {
- url: '/export',
- templateUrl: "assets/views/table_export.html",
- title: 'Table'
- }).state('app.form', {
- url: '/form',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'Forms',
- ncyBreadcrumb: {
- label: 'Forms'
- }
- }).state('app.form.elements', {
- url: '/elements',
- templateUrl: "assets/views/form_elements.html",
- title: 'Forms Elements',
- ncyBreadcrumb: {
- label: 'Elements'
- },
- resolve: loadSequence('ui.select', 'monospaced.elastic', 'ui.mask', 'touchspin-plugin', 'selectCtrl')
- }).state('app.form.xeditable', {
- url: '/xeditable',
- templateUrl: "assets/views/form_xeditable.html",
- title: 'Angular X-Editable',
- ncyBreadcrumb: {
- label: 'X-Editable'
- },
- resolve: loadSequence('xeditable', 'checklist-model', 'xeditableCtrl')
- }).state('app.form.texteditor', {
- url: '/editor',
- templateUrl: "assets/views/form_text_editor.html",
- title: 'Text Editor',
- ncyBreadcrumb: {
- label: 'Text Editor'
- },
- resolve: loadSequence('ckeditor-plugin', 'ckeditor', 'ckeditorCtrl')
- }).state('app.form.wizard', {
- url: '/wizard',
- templateUrl: "assets/views/form_wizard.html",
- title: 'Form Wizard',
- ncyBreadcrumb: {
- label: 'Wizard'
- },
- resolve: loadSequence('wizardCtrl')
- }).state('app.form.validation', {
- url: '/validation',
- templateUrl: "assets/views/form_validation.html",
- title: 'Form Validation',
- ncyBreadcrumb: {
- label: 'Validation'
- },
- resolve: loadSequence('validationCtrl')
- }).state('app.form.cropping', {
- url: '/image-cropping',
- templateUrl: "assets/views/form_image_cropping.html",
- title: 'Image Cropping',
- ncyBreadcrumb: {
- label: 'Image Cropping'
- },
- resolve: loadSequence('ngImgCrop', 'cropCtrl')
- }).state('app.form.upload', {
- url: '/file-upload',
- templateUrl: "assets/views/form_file_upload.html",
- title: 'Multiple File Upload',
- ncyBreadcrumb: {
- label: 'File Upload'
- },
- resolve: loadSequence('angularFileUpload', 'uploadCtrl')
- }).state('app.pages', {
- url: '/pages',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'Pages',
- ncyBreadcrumb: {
- label: 'Pages'
- }
- }).state('app.pages.user', {
- url: '/user',
- templateUrl: "assets/views/pages_user_profile.html",
- title: 'User Profile',
- ncyBreadcrumb: {
- label: 'User Profile'
- },
- resolve: loadSequence('flow', 'userCtrl')
- }).state('app.pages.invoice', {
- url: '/invoice',
- templateUrl: "assets/views/pages_invoice.html",
- title: 'Invoice',
- ncyBreadcrumb: {
- label: 'Invoice'
- }
- }).state('app.pages.timeline', {
- url: '/timeline',
- templateUrl: "assets/views/pages_timeline.html",
- title: 'Timeline',
- ncyBreadcrumb: {
- label: 'Timeline'
- },
- resolve: loadSequence('ngMap')
- }).state('app.pages.calendar', {
- url: '/calendar',
- templateUrl: "assets/views/pages_calendar.html",
- title: 'Calendar',
- ncyBreadcrumb: {
- label: 'Calendar'
- },
- resolve: loadSequence('moment', 'mwl.calendar', 'calendarCtrl')
- }).state('app.pages.messages', {
- url: '/messages',
- templateUrl: "assets/views/pages_messages.html",
- resolve: loadSequence('truncate', 'htmlToPlaintext', 'inboxCtrl')
- }).state('app.pages.messages.inbox', {
- url: '/inbox/:inboxID',
- templateUrl: "assets/views/pages_inbox.html",
- controller: 'ViewMessageCrtl'
- }).state('app.pages.blank', {
- url: '/blank',
- templateUrl: "assets/views/pages_blank_page.html",
- ncyBreadcrumb: {
- label: 'Starter Page'
- }
- }).state('app.utilities', {
- url: '/utilities',
- template: '<div ui-view class="fade-in-up"></div>',
- title: 'Utilities',
- ncyBreadcrumb: {
- label: 'Utilities'
- }
- }).state('app.utilities.search', {
- url: '/search',
- templateUrl: "assets/views/utility_search_result.html",
- title: 'Search Results',
- ncyBreadcrumb: {
- label: 'Search Results'
- }
- }).state('app.utilities.pricing', {
- url: '/pricing',
- templateUrl: "assets/views/utility_pricing_table.html",
- title: 'Pricing Table',
- ncyBreadcrumb: {
- label: 'Pricing Table'
- }
- }).state('app.maps', {
- url: "/maps",
- templateUrl: "assets/views/maps.html",
- resolve: loadSequence('ngMap', 'mapsCtrl'),
- title: "Maps",
- ncyBreadcrumb: {
- label: 'Maps'
- }
- }).state('app.charts', {
- url: "/charts",
- templateUrl: "assets/views/charts.html",
- resolve: loadSequence('chartjs', 'tc.chartjs', 'chartsCtrl'),
- title: "Charts",
- ncyBreadcrumb: {
- label: 'Charts'
- }
- }).state('app.documentation', {
- url: "/documentation",
- templateUrl: "assets/views/documentation.html",
- title: "Documentation",
- ncyBreadcrumb: {
- label: 'Documentation'
- }
- }).state('error', {
- url: '/error',
- template: '<div ui-view class="fade-in-up"></div>'
- }).state('error.404', {
- url: '/404',
- templateUrl: "assets/views/utility_404.html"
- }).state('error.500', {
- url: '/500',
- templateUrl: "assets/views/utility_500.html"
- })
- //custom form
- .state('app.customform', {
- url: '/customform',
- templateUrl: 'assets/views/customform/index.html',
- resolve: loadSequence('jquery-sparkline', 'ckeditor-plugin', 'ckeditor', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl'),
- title: 'Customform',
- ncyBreadcrumb: {
- label: 'Customform'
- }
- })
- .state('app.detail', {
- url: '/detail/:formKey/:pdKey/:dataId/:taskId/:processInstanceId',
- templateUrl: "assets/views/customform/detail.html",
- resolve: loadSequence('jquery-sparkline', 'api-check', 'formly', 'angularFormly', 'angularFileUpload', 'multi.select.tree', 'customformCtrl', 'customformDetailCtrl'),
- title: 'form detail',
- icon: 'ti-list',
- ncyBreadcrumb: {
- label: 'detail'
- }
- })
- // Login routes
- .state('login', {
- url: '/login',
- template: '<div ui-view class="fade-in-right-big smooth"></div>',
- abstract: true
- }).state('login.signin', {
- url: '/signin',
- templateUrl: "assets/views/login_login.html",
- resolve: loadSequence('sweet-alert', 'oitozero.ngSweetAlert', 'morph', 'loginCtrl')
- }).state('login.license', {
- url: '/license',
- templateUrl: "assets/views/license.html",
- resolve: loadSequence('sweet-alert', 'oitozero.ngSweetAlert', 'morph', 'licenseCtrl')
- }).state('login.forgot', {
- url: '/forgot',
- templateUrl: "assets/views/login_forgot.html"
- })
- /*.state('login.registration', {
- url: '/registration',
- templateUrl: "assets/views/login_registration.html"
- })*/
- .state('login.lockscreen', {
- url: '/lock',
- templateUrl: "assets/views/login_lock_screen.html"
- })
- // .state('login.changepassword', {
- // url: '/changepassword',
- // templateUrl: "assets/views/changepassword.html",
- // resolve: loadSequence('jquery-sparkline', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'passwordCtrl'),
- // title: 'changepassword',
- // icon: 'ti-list',
- // ncyBreadcrumb: {
- // label: 'changepassword'
- // }
- // });
- // Generates a resolve object previously configured in constant.JS_REQUIRES (config.constant.js)
- function loadSequence() {
- var _args = arguments;
- return {
- deps: ['$ocLazyLoad', '$q',
- function ($ocLL, $q) {
- var promise = $q.when(1);
- for (var i = 0, len = _args.length; i < len; i++) {
- promise = promiseThen(_args[i]);
- }
- return promise;
- function promiseThen(_arg) {
- if (typeof _arg == 'function')
- return promise.then(_arg);
- else
- return promise.then(function () {
- var nowLoad = requiredData(_arg);
- if (!nowLoad)
- return $.error('Route resolve: Bad resource name [' + _arg + ']');
- return $ocLL.load(nowLoad);
- });
- }
- function requiredData(name) {
- if (jsRequires.modules)
- for (var m in jsRequires.modules)
- if (jsRequires.modules[m].name && jsRequires.modules[m].name === name)
- return jsRequires.modules[m];
- return jsRequires.scripts && jsRequires.scripts[name];
- }
- }
- ]
- };
- }
- }
- ]);
|