1 |
- "use strict";app.controller("meanshistoryCtrl",["$rootScope","$scope","$state","$timeout","$injector","$parse","$interval","$modal","$stateParams","$aside","SweetAlert","toaster","i18nService","uiGridConstants","uiGridGroupingConstants","ngTableParams","Restangular","api_user_data","api_bpm_domain","api_configure_data","api_cmdb","api_configure_form",function(t,a,e,n,i,s,o,c,r,d,p,u,l,m,g,f,$,_,I,b,h,v){a.meanshistory=[{}]}]),app.controller("meansincidentCtrl",["$rootScope","$scope","$state","$stateParams","$aside","SweetAlert","toaster","ngTableParams","Restangular","api_bpm_domain","api_bpm_data",function(t,a,e,n,i,s,o,c,r,d,p){if(a.changeview=function(t){e.go("app.incident.detail",{formKey:"incident_back",pdKey:"incident",dataId:t.id,taskId:t.taskId,processInstanceId:t.processInstanceId})},n.model){var u=JSON.parse(n.model),l=u.model.name+"-"+u.model.uuid,m={incident:{configurationItems:l},idx:0,sum:5};p.fetchDataList("incident",m).then(function(t){if(200==t.status){t.list;a.tableParams=new c({page:1,count:5},{total:t.totalNum,getData:function(t,a){var e={incident:{configurationItems:l},idx:a.page()-1,sum:5};p.fetchDataList("incident",e).then(function(e){var n=e.list;t.resolve(n.slice(0*a.count(),a.page()*a.count()))})}})}})}}]),app.controller("meansproblemCtrl",["$rootScope","$scope","$state","$stateParams","$aside","SweetAlert","toaster","ngTableParams","Restangular","api_bpm_domain",function(t,a,e,n,i,s,o,c,r,d){a.changeview=function(t){e.go("app.incident.detail",{formKey:"incident_back",pdKey:"incident",dataId:t.id,taskId:t.taskId,processInstanceId:t.processInstanceId})};var p={assignee:3,candidateGroups:3,idx:0,sum:5};d.fetchtask("bpm_incident",p).then(function(t){t.data;a.tableParams=new c({page:1,count:5},{total:t.resultCount,getData:function(t,a){var e={assignee:3,candidateGroups:3,idx:a.page()-1,sum:5};d.fetchtask("bpm_incident",e).then(function(e){var n=e.data;t.resolve(n.slice(0*a.count(),a.page()*a.count()))})}})})}]),app.controller("meanschangeCtrl",["$rootScope","$scope","$state","$stateParams","$aside","SweetAlert","toaster","ngTableParams","Restangular","api_bpm_domain",function(t,a,e,n,i,s,o,c,r,d){a.changeview=function(t){e.go("app.incident.detail",{formKey:"incident_back",pdKey:"incident",dataId:t.id,taskId:t.taskId,processInstanceId:t.processInstanceId})};var p={assignee:3,candidateGroups:3,idx:0,sum:5};d.fetchtask("bpm_incident",p).then(function(t){t.data;a.tableParams=new c({page:1,count:5},{total:t.resultCount,getData:function(t,a){var e={assignee:3,candidateGroups:3,idx:a.page()-1,sum:5};d.fetchtask("bpm_incident",e).then(function(e){var n=e.data;t.resolve(n.slice(0*a.count(),a.page()*a.count()))})}})})}]);
|