|
@@ -15,8 +15,8 @@ appFormly.config(
|
15
|
15
|
function config(formlyConfigProvider) {
|
16
|
16
|
//格式转换方法 XXX-XXX转驼峰命名
|
17
|
17
|
});
|
18
|
|
-appFormly.controller('newDashCtrl', ['$rootScope', '$auth', '$scope', '$parse', '$injector', '$http', '$q', '$state', '$modal', '$timeout', '$interval', 'SweetAlert', 'i18nService', '$window', "ngTableParams", 'Restangular', 'UserRestangular', 'BpmRestangular', 'api_configure_form', 'api_bpm_domain', 'api_bpm_data', 'api_user_data', 'api_report', 'api_msg', 'api_bpm_schedule', 'api_newreport', 'api_statistic', "calendarConfig", "api_login",
|
19
|
|
- function($rootScope, $auth, $scope, $parse, $injector, $http, $q, $state, $modal, $timeout, $interval, SweetAlert, i18nService, $window, ngTableParams, Restangular, UserRestangular, BpmRestangular, api_configure_form, api_bpm_domain, api_bpm_data, api_user_data, api_report, api_msg, api_bpm_schedule, api_newreport, api_statistic, calendarConfig, api_login) {
|
|
18
|
+appFormly.controller('newDashCtrl', ['$rootScope', '$auth', '$scope', '$parse', '$injector', '$http', '$q', '$state', '$modal', '$timeout', '$interval', 'SweetAlert', 'i18nService', '$window', "ngTableParams", 'Restangular', 'UserRestangular', 'BpmRestangular', 'api_configure_form', 'api_bpm_domain', 'api_bpm_data','api_event_form', 'api_user_data', 'api_report', 'api_msg', 'api_bpm_schedule', 'api_newreport', 'api_statistic', "calendarConfig", "api_login",
|
|
19
|
+ function($rootScope, $auth, $scope, $parse, $injector, $http, $q, $state, $modal, $timeout, $interval, SweetAlert, i18nService, $window, ngTableParams, Restangular, UserRestangular, BpmRestangular, api_configure_form, api_bpm_domain, api_bpm_data,api_event_form, api_user_data, api_report, api_msg, api_bpm_schedule, api_newreport, api_statistic, calendarConfig, api_login) {
|
20
|
20
|
$scope.incidentlist = {};
|
21
|
21
|
$scope.bodyheight = {};
|
22
|
22
|
// $scope.tableParams = {};
|
|
@@ -1759,5 +1759,42 @@ appFormly.controller('newDashCtrl', ['$rootScope', '$auth', '$scope', '$parse',
|
1759
|
1759
|
// setInterval(function() {
|
1760
|
1760
|
// getinternetknow({ "user": 23 });
|
1761
|
1761
|
// }, 10000);
|
|
1762
|
+
|
|
1763
|
+ // 首页统计数据(新)
|
|
1764
|
+ $scope.managerIndexInfo = {};
|
|
1765
|
+ $scope.getDataIndex = function(){
|
|
1766
|
+ // 获取今日上下班情况
|
|
1767
|
+ api_bpm_data.getManagerIndexInfo({}).then(function(result) {
|
|
1768
|
+ $scope.managerIndexInfo = result.data;
|
|
1769
|
+ });
|
|
1770
|
+ // 当日工单情况
|
|
1771
|
+ api_event_form.fetchZhtjList({
|
|
1772
|
+ "startTime": moment(new Date()).format('YYYY-MM-DD'),
|
|
1773
|
+ "endTime": moment(new Date()).format('YYYY-MM-DD'),
|
|
1774
|
+ "sortData": 'total',
|
|
1775
|
+ "sortType": 'desc'
|
|
1776
|
+ }).then(function(result) {
|
|
1777
|
+ $scope.fetchZhtjList = result.title;
|
|
1778
|
+ });
|
|
1779
|
+ // 当日请求微信web
|
|
1780
|
+ api_event_form.fetchWebList({
|
|
1781
|
+ "startTime": moment(new Date()).format('YYYY-MM-DD'),
|
|
1782
|
+ "endTime": moment(new Date()).format('YYYY-MM-DD'),
|
|
1783
|
+ "sortData": 'total',
|
|
1784
|
+ "sortType": 'desc'
|
|
1785
|
+ }).then(function(result) {
|
|
1786
|
+ $scope.fetchWebList = result.title;
|
|
1787
|
+ });
|
|
1788
|
+ // 当日请求电话
|
|
1789
|
+ api_event_form.fetchDhtjList({
|
|
1790
|
+ "startTime": moment(new Date()).format('YYYY-MM-DD'),
|
|
1791
|
+ "endTime": moment(new Date()).format('YYYY-MM-DD'),
|
|
1792
|
+ "sortData": 'total',
|
|
1793
|
+ "sortType": 'desc'
|
|
1794
|
+ }).then(function(result) {
|
|
1795
|
+ $scope.fetchDhtjList = result.title;
|
|
1796
|
+ });
|
|
1797
|
+ }
|
|
1798
|
+ $scope.getDataIndex();
|
1762
|
1799
|
}
|
1763
|
1800
|
]);
|