Browse Source

定时任务列表不显示问题,添加orgId增加查询条件

my-csc-config-file.git 4 years ago
parent
commit
a29aa936bc

+ 25 - 25
src/main/resources/static/app/intelligent/intelligentDetection/service/batchTaskSchemaService.js

@@ -1,19 +1,19 @@
1 1
 "use strict";
2
-angular.module('app.intelligent').service("bathcTaskSchemaService", function($http, $q, APP_CONFIG, $rootScope) {
2
+angular.module('app.intelligent').service("bathcTaskSchemaService", function ($http, $q, APP_CONFIG, $rootScope) {
3 3
 
4 4
     // 分页列表数据
5
-    this.getTaskSchemaPageInfo = function (pageInfo,search,type) {
5
+    this.getTaskSchemaPageInfo = function (pageInfo, search, type) {
6 6
         var d = $q.defer();
7 7
         $http({
8
-            method : 'GET',
9
-            url : APP_CONFIG.intelligentUrl + '/intelligents/task/getList',
10
-            params : {
11
-                pageNum : pageInfo.pageNum,
12
-                pageSize : pageInfo.pageSize,
13
-                tName : search == undefined ? "":search.tName,
14
-                tState : search == undefined ? "":search.tState,
15
-                tCategory : type,
16
-                orgId : $rootScope.orgInfo.orgId
8
+            method: 'GET',
9
+            url: APP_CONFIG.intelligentUrl + '/intelligents/task/getList',
10
+            params: {
11
+                pageNum: pageInfo.pageNum,
12
+                pageSize: pageInfo.pageSize,
13
+                orgId: $rootScope.orgInfo.orgId,
14
+                tName: search == undefined ? "" : search.tName,
15
+                tState: search == undefined ? "" : search.tState,
16
+                tCategory: type
17 17
             }
18 18
         }).then(function successCallback(response) {
19 19
             // 请求成功执行代码
@@ -26,13 +26,13 @@ angular.module('app.intelligent').service("bathcTaskSchemaService", function($ht
26 26
     };
27 27
 
28 28
     // 根据tId查询
29
-    this.loadDataById = function(tId) {
29
+    this.loadDataById = function (tId) {
30 30
         var d = $q.defer();
31 31
         $http({
32 32
             method: 'POST',
33 33
             url: APP_CONFIG.intelligentUrl + '/intelligents/task/getById',
34 34
             data: {
35
-                tId : tId
35
+                tId: tId
36 36
             }
37 37
         }).then(function successCallback(response) {
38 38
             d.resolve(response.data);
@@ -49,7 +49,7 @@ angular.module('app.intelligent').service("bathcTaskSchemaService", function($ht
49 49
             method: 'POST',
50 50
             url: APP_CONFIG.intelligentUrl + '/intelligents/task/save',
51 51
             data: {
52
-                taskSchemaJson : angular.toJson(taskSchema)
52
+                taskSchemaJson: angular.toJson(taskSchema)
53 53
             }
54 54
         }).then(function successCallback(response) {
55 55
             d.resolve(response.data);
@@ -66,7 +66,7 @@ angular.module('app.intelligent').service("bathcTaskSchemaService", function($ht
66 66
             method: 'POST',
67 67
             url: APP_CONFIG.intelligentUrl + '/intelligents/task/deleteById',
68 68
             data: {
69
-                id : id
69
+                id: id
70 70
             }
71 71
         }).then(function successCallback(response) {
72 72
             d.resolve(response.data);
@@ -76,18 +76,18 @@ angular.module('app.intelligent').service("bathcTaskSchemaService", function($ht
76 76
     }
77 77
 
78 78
     // 分页查询历史列表数据
79
-    this.getDetectionHistory = function (pageInfo,search,items) {
79
+    this.getDetectionHistory = function (pageInfo, search, items) {
80 80
         var d = $q.defer();
81 81
         $http({
82
-            method : 'GET',
83
-            url : APP_CONFIG.intelligentUrl + '/intelligents/task/getDetectionHistory',
84
-            params : {
85
-                pageNum : pageInfo.pageNum,
86
-                pageSize : pageInfo.pageSize,
87
-                vcfcode : search == undefined ? "":search.vcfcode,
88
-                time : search == undefined ? "":search.time,
89
-                tid : items.tid,
90
-                type : items.type
82
+            method: 'GET',
83
+            url: APP_CONFIG.intelligentUrl + '/intelligents/task/getDetectionHistory',
84
+            params: {
85
+                pageNum: pageInfo.pageNum,
86
+                pageSize: pageInfo.pageSize,
87
+                vcfcode: search == undefined ? "" : search.vcfcode,
88
+                time: search == undefined ? "" : search.time,
89
+                tid: items.tid,
90
+                type: items.type
91 91
             }
92 92
         }).then(function successCallback(response) {
93 93
             // 请求成功执行代码