Browse Source

单位树接口优化

zhengqiang 4 năm trước cách đây
mục cha
commit
d90e299c0e
43 tập tin đã thay đổi với 49 bổ sung53 xóa
  1. 1 1
      src/views/base/alarmConfig-list.vue
  2. 1 1
      src/views/base/applicationExamine-detail.vue
  3. 1 1
      src/views/base/applicationExamine-list.vue
  4. 1 1
      src/views/base/approvalConfig-detail.vue
  5. 1 1
      src/views/base/approvalConfig-list.vue
  6. 1 1
      src/views/base/cameraInfo-detail.vue
  7. 1 1
      src/views/base/cameraInfo-list.vue
  8. 1 1
      src/views/base/companyInfo-detail.vue
  9. 2 4
      src/views/base/companyInfo-list.vue
  10. 2 2
      src/views/base/companyPayment-detail.vue
  11. 2 2
      src/views/base/companyPayment-list.vue
  12. 1 1
      src/views/base/companyStructureInfo-detail.vue
  13. 1 1
      src/views/base/companyStructureInfo-list.vue
  14. 1 1
      src/views/base/deviceInfo-list.vue
  15. 1 1
      src/views/base/devicePerson-list.vue
  16. 1 1
      src/views/base/holidayInfo-list.vue
  17. 1 1
      src/views/base/messageInfo-send.vue
  18. 2 2
      src/views/base/messageNotice-detail.vue
  19. 1 1
      src/views/base/messageReceiver-list.vue
  20. 1 1
      src/views/base/messageSendCondition-detail.vue
  21. 1 1
      src/views/base/order-list.vue
  22. 1 1
      src/views/base/personApplication-detail.vue
  23. 1 1
      src/views/base/personDeviceLog-list.vue
  24. 1 1
      src/views/base/personHealthLedger-list-detalExport.vue
  25. 1 1
      src/views/base/personHealthLedger-list.vue
  26. 2 4
      src/views/base/personInfo-list.vue
  27. 1 1
      src/views/base/personPopedom-detail.vue
  28. 1 1
      src/views/base/punchLocation-detail.vue
  29. 1 1
      src/views/base/punchLocation-list.vue
  30. 1 1
      src/views/base/temperatureRecord-list.vue
  31. 1 1
      src/views/base/warningPusher-list.vue
  32. 1 1
      src/views/base/workOver-list.vue
  33. 1 1
      src/views/base/workSchedule-company.vue
  34. 1 1
      src/views/base/workSchedule-list.vue
  35. 1 1
      src/views/business/billPush-checkIn-list.vue
  36. 2 2
      src/views/business/billPush-list.vue
  37. 1 1
      src/views/business/clockOut-list.vue
  38. 1 1
      src/views/business/fillAttendance-list.vue
  39. 1 1
      src/views/business/requestForLeave-list.vue
  40. 1 1
      src/views/business/workAttendance-list.vue
  41. 1 1
      src/views/business/workScheduleReport.vue
  42. 1 1
      src/views/old/oldPersonInfo-list.vue
  43. 1 1
      src/views/sys/user-list.vue

+ 1 - 1
src/views/base/alarmConfig-list.vue

@@ -566,7 +566,7 @@ export default {
     var self = this;
     this.changePage(1);
 
-    companyInfoApi.list().then(function (response) {
+    companyInfoApi.treeList().then(function (response) {
       var jsonData = response.data;
       if (jsonData.result) {
         self.companyResult = jsonData.data;

+ 1 - 1
src/views/base/applicationExamine-detail.vue

@@ -177,7 +177,7 @@ export default {
   },
   created() {
     var self = this;
-    companyInfoApi.list().then(function (response) {
+    companyInfoApi.treeList().then(function (response) {
       var jsonData = response.data;
       if (jsonData.result) {
         if (jsonData.data != null && jsonData.data != "") {

+ 1 - 1
src/views/base/applicationExamine-list.vue

@@ -304,7 +304,7 @@ export default {
   },
   created() {
     var self = this;
-    companyInfoApi.list().then(function (response) {
+    companyInfoApi.treeList().then(function (response) {
       var jsonData = response.data;
       if (jsonData.result) {
         if (jsonData.data != null && jsonData.data != "") {

+ 1 - 1
src/views/base/approvalConfig-detail.vue

@@ -138,7 +138,7 @@ export default {
   },
   created() {
     var self = this;
-    companyInfoApi.list().then(function (response) {
+    companyInfoApi.treeList().then(function (response) {
       var jsonData = response.data;
       if (jsonData.result) {
         if (jsonData.data != null && jsonData.data != "") {

+ 1 - 1
src/views/base/approvalConfig-list.vue

@@ -191,7 +191,7 @@ export default {
   },
   created() {
     var self = this;
-    companyInfoApi.list().then(function (response) {
+    companyInfoApi.treeList().then(function (response) {
       var jsonData = response.data;
       if (jsonData.result) {
         if (jsonData.data != null && jsonData.data != "") {

+ 1 - 1
src/views/base/cameraInfo-detail.vue

@@ -201,7 +201,7 @@ export default {
     },
   },
   created() {
-    companyInfoApi.list().then((response)=>{
+    companyInfoApi.treeList().then((response)=>{
       var jsonData = response.data;
 
       if (jsonData.result) {

+ 1 - 1
src/views/base/cameraInfo-list.vue

@@ -484,7 +484,7 @@ export default {
     }
   },
   created() {
-    companyInfoApi.list().then((response)=>{
+    companyInfoApi.treeList().then((response)=>{
       var jsonData = response.data;
       if (jsonData.result) {
         this.companyList = jsonData.data;

+ 1 - 1
src/views/base/companyInfo-detail.vue

@@ -361,7 +361,7 @@ export default {
   },
   created() {
     var self = this;
-    companyInfoApi.list().then(function (response) {
+    companyInfoApi.treeList().then(function (response) {
       var jsonData = response.data;
       if (jsonData.result) {
         self.companyResult = jsonData.data;

+ 2 - 4
src/views/base/companyInfo-list.vue

@@ -403,7 +403,7 @@ export default {
       this.sceneData = jsonData.data;
     });
 
-    companyInfoApi.list().then(function (response) {
+    companyInfoApi.treeList().then(function (response) {
       var jsonData = response.data;
       if (jsonData.result) {
         self.companyResult = jsonData.data;
@@ -425,9 +425,7 @@ export default {
       this.queryModel.parentId = value;
     },
     loadTree() {
-      var formData = new FormData();
-
-      companyInfoApi.loadChildren(formData).then((resp) => {
+      companyInfoApi.treeList().then((resp) => {
         var jsonData = resp.data;
 
         if (jsonData.result) {

+ 2 - 2
src/views/base/companyPayment-detail.vue

@@ -219,7 +219,7 @@ export default {
             });
         },
         loadTree() {
-            companyInfoApi.list().then(resp => {
+            companyInfoApi.treeList().then(resp => {
                 var jsonData = resp.data;
 
                 if (jsonData.result) {
@@ -233,7 +233,7 @@ export default {
     mounted: function () {
         var self = this;
 
-        companyInfoApi.list().then((resp) => {
+        companyInfoApi.treeList().then((resp) => {
             var jsonData = resp.data;
             this.companyList = jsonData.data;
         });

+ 2 - 2
src/views/base/companyPayment-list.vue

@@ -279,7 +279,7 @@ export default {
             });
         },
         loadTree() {
-            companyInfoApi.list().then(resp => {
+            companyInfoApi.treeList().then(resp => {
                 var jsonData = resp.data;
 
                 if (jsonData.result) {
@@ -318,7 +318,7 @@ export default {
     mounted() {
         this.changePage(1);
 
-        companyInfoApi.list().then((resp) => {
+        companyInfoApi.treeList().then((resp) => {
             var jsonData = resp.data;
             this.companyList = jsonData.data;
         });

+ 1 - 1
src/views/base/companyStructureInfo-detail.vue

@@ -160,7 +160,7 @@ export default {
   created() {
     var self = this;
 
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
       if (jsonData.result) {
         self.companyResult = jsonData.data;

+ 1 - 1
src/views/base/companyStructureInfo-list.vue

@@ -198,7 +198,7 @@ export default {
   created() {
     var self = this;
 
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
       if (jsonData.result) {
         self.companyResult = jsonData.data;

+ 1 - 1
src/views/base/deviceInfo-list.vue

@@ -502,7 +502,7 @@ export default {
     });
 
     var self = this;
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
       if (jsonData.result) {
         self.companyResult = jsonData.data;

+ 1 - 1
src/views/base/devicePerson-list.vue

@@ -380,7 +380,7 @@ export default {
   created() {
     var self = this;
 
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
       if (jsonData.result) {
         if (jsonData.data != null && jsonData.data != "") {

+ 1 - 1
src/views/base/holidayInfo-list.vue

@@ -290,7 +290,7 @@ export default {
   },
   created() {
     var self = this;
-    companyInfoApi.list().then(function (response) {
+    companyInfoApi.treeList().then(function (response) {
       var jsonData = response.data;
       if (jsonData.result) {
         self.companyResult = jsonData.data;

+ 1 - 1
src/views/base/messageInfo-send.vue

@@ -350,7 +350,7 @@ export default {
   created() {
     var self = this;
 
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
 
       if (jsonData.result) {

+ 2 - 2
src/views/base/messageNotice-detail.vue

@@ -172,7 +172,7 @@ export default {
   },
   created() {
     var self = this;
-    companyInfoApi.list().then(function (response) {
+    companyInfoApi.treeList().then(function (response) {
       var jsonData = response.data;
       if (jsonData.result) {
         self.companyResult = jsonData.data;
@@ -261,7 +261,7 @@ export default {
 
     var self = this;
 
-    companyInfoApi.list().then(function (response) {
+    companyInfoApi.treeList().then(function (response) {
       var jsonData = response.data;
       if (jsonData.result) {
         self.companyResult = jsonData.data;

+ 1 - 1
src/views/base/messageReceiver-list.vue

@@ -315,7 +315,7 @@ export default {
   created() {
     var self = this;
 
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
 
       if (jsonData.result) {

+ 1 - 1
src/views/base/messageSendCondition-detail.vue

@@ -175,7 +175,7 @@ export default {
   mounted: function () {
     var self = this;
 
-    companyInfoApi.list().then(function (response) {
+    companyInfoApi.treeList().then(function (response) {
       var jsonData = response.data;
 
       if (jsonData.result) {

+ 1 - 1
src/views/base/order-list.vue

@@ -567,7 +567,7 @@ export default {
     created() {
         var self = this;
 
-        companyInfoApi.list().then(response => {
+        companyInfoApi.treeList().then(response => {
             var jsonData = response.data;
             this.companyList = jsonData.data;
         });

+ 1 - 1
src/views/base/personApplication-detail.vue

@@ -73,7 +73,7 @@ export default {
       this.$emit("close", false);
     },
     loadTree() {
-      companyInfoApi.list().then(resp => {
+      companyInfoApi.treeList().then(resp => {
         var jsonData = resp.data;
 
         if (jsonData.result) {

+ 1 - 1
src/views/base/personDeviceLog-list.vue

@@ -241,7 +241,7 @@ export default {
     var self = this;
     this.getCurrentMonthFirst();
 
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
       if (jsonData.result) {
         if (jsonData.data != null && jsonData.data != "") {

+ 1 - 1
src/views/base/personHealthLedger-list-detalExport.vue

@@ -127,7 +127,7 @@ export default {
   },
   created() {
     var self = this;
-    companyInfoApi.list().then(function (response) {
+    companyInfoApi.treeList().then(function (response) {
       var jsonData = response.data;
       if (jsonData.result) {
         self.companyResult = jsonData.data;

+ 1 - 1
src/views/base/personHealthLedger-list.vue

@@ -306,7 +306,7 @@ export default {
       this.healthData = jsonData.data;
     });
 
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
       if (jsonData.result) {
         self.companyResult = jsonData.data;

+ 2 - 4
src/views/base/personInfo-list.vue

@@ -930,7 +930,7 @@ export default {
   created() {
     var self = this;
 
-    companyInfoApi.list().then(function (response) {
+    companyInfoApi.treeList().then(function (response) {
       var jsonData = response.data;
       if (jsonData.result) {
         if (jsonData.data != null && jsonData.data != "") {
@@ -991,9 +991,7 @@ export default {
       this.queryModel.parentId = value;
     },
     loadTree() {
-      var formData = new FormData();
-
-      companyInfoApi.loadChildren(formData).then((resp) => {
+      companyInfoApi.treeList().then((resp) => {
         var jsonData = resp.data;
 
         if (jsonData.result) {

+ 1 - 1
src/views/base/personPopedom-detail.vue

@@ -183,7 +183,7 @@ export default {
   },
   created() {
     var self = this;
-    companyInfoApi.list().then(function (response) {
+    companyInfoApi.treeList().then(function (response) {
       var jsonData = response.data;
       if (jsonData.result) {
         if (jsonData.data != null && jsonData.data != "") {

+ 1 - 1
src/views/base/punchLocation-detail.vue

@@ -70,7 +70,7 @@ export default {
   },
   created() {
     var self = this;
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
       if (jsonData.result) {
         if (jsonData.data != null && jsonData.data != "") {

+ 1 - 1
src/views/base/punchLocation-list.vue

@@ -200,7 +200,7 @@ export default {
   },
   created() {
     var self = this;
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
       if (jsonData.result) {
         if (jsonData.data != null && jsonData.data != "") {

+ 1 - 1
src/views/base/temperatureRecord-list.vue

@@ -191,7 +191,7 @@ export default {
   },
   created() {
     var self = this;
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
       if (jsonData.result) {
         if (jsonData.data != null && jsonData.data != "") {

+ 1 - 1
src/views/base/warningPusher-list.vue

@@ -378,7 +378,7 @@ export default {
     var self = this;
     this.changePage(1);
 
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
       if (jsonData.result) {
         self.companyResult = jsonData.data;

+ 1 - 1
src/views/base/workOver-list.vue

@@ -236,7 +236,7 @@ export default {
       }
     },
     loadTree() {
-      companyInfoApi.list().then(resp => {
+      companyInfoApi.treeList().then(resp => {
         var jsonData = resp.data;
 
         if (jsonData.result) {

+ 1 - 1
src/views/base/workSchedule-company.vue

@@ -142,7 +142,7 @@ export default {
   created() {
     var self = this;
 
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
       if (jsonData.result) {
         self.companyResult = jsonData.data;

+ 1 - 1
src/views/base/workSchedule-list.vue

@@ -238,7 +238,7 @@ export default {
   created() {
     var self = this;
 
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
       if (jsonData.result) {
         self.companyResult = jsonData.data;

+ 1 - 1
src/views/business/billPush-checkIn-list.vue

@@ -368,7 +368,7 @@ export default {
             this.showModal = true;
         },
         loadTree() {
-            companyInfoApi.list().then(resp => {
+            companyInfoApi.treeList().then(resp => {
                 var jsonData = resp.data;
 
                 if (jsonData.result) {

+ 2 - 2
src/views/business/billPush-list.vue

@@ -390,7 +390,7 @@ export default {
     created() {        
         this.loadTree();
 
-        // companyInfoApi.list().then((response)=>{
+        // companyInfoApi.treeList().then((response)=>{
         //     var jsonData = response.data;
         //     this.companyList = jsonData.data;
         // });
@@ -476,7 +476,7 @@ export default {
             this.showModal = true;
         },
         loadTree() {
-            companyInfoApi.list().then(resp => {
+            companyInfoApi.treeList().then(resp => {
                 var jsonData = resp.data;
 
                 if (jsonData.result) {

+ 1 - 1
src/views/business/clockOut-list.vue

@@ -162,7 +162,7 @@ export default {
       this.typeData = jsonData.data;
     });
 
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
       if (jsonData.result) {
         if (jsonData.data != null && jsonData.data != "") {

+ 1 - 1
src/views/business/fillAttendance-list.vue

@@ -155,7 +155,7 @@ export default {
       this.typeData = jsonData.data;
     });
 
-    companyInfoApi.list().then((response)=>{
+    companyInfoApi.treeList().then((response)=>{
       var jsonData = response.data;
       
       if (jsonData.result) {

+ 1 - 1
src/views/business/requestForLeave-list.vue

@@ -222,7 +222,7 @@ export default {
       }
     },
     loadTree() {
-      companyInfoApi.list().then(resp => {
+      companyInfoApi.treeList().then(resp => {
         var jsonData = resp.data;
 
         if (jsonData.result) {

+ 1 - 1
src/views/business/workAttendance-list.vue

@@ -252,7 +252,7 @@ export default {
   },
   created() {
     var self = this;
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
       if (jsonData.result) {
         if (jsonData.data != null && jsonData.data != "") {

+ 1 - 1
src/views/business/workScheduleReport.vue

@@ -210,7 +210,7 @@ export default {
   },
   created() {
     var self = this;
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
       if (jsonData.result) {
         if (jsonData.data != null && jsonData.data != "") {

+ 1 - 1
src/views/old/oldPersonInfo-list.vue

@@ -841,7 +841,7 @@ export default {
   created() {
     var self = this;
 
-    companyInfoApi.list().then(function (response) {
+    companyInfoApi.treeList().then(function (response) {
       var jsonData = response.data;
       if (jsonData.result) {
         if (jsonData.data != null && jsonData.data != "") {

+ 1 - 1
src/views/sys/user-list.vue

@@ -395,7 +395,7 @@ export default {
     var self = this;
     this.changePage(1);
 
-    companyInfoApi.list().then(function(response) {
+    companyInfoApi.treeList().then(function(response) {
       var jsonData = response.data;
       if (jsonData.result) {
         self.companyResult = jsonData.data;