Преглед на файлове

fix(upgrade): filter out inactive devices

remove the timeout time of the api to ensure that data must be obtained
Casper Dai преди 2 години
родител
ревизия
832e0fdbb0
променени са 2 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 2 1
      src/views/platform/upgrade/deploy/components/DeviceTypeTree.vue
  2. 1 1
      src/views/platform/upgrade/deploy/index.vue

+ 2 - 1
src/views/platform/upgrade/deploy/components/DeviceTypeTree.vue

@@ -98,10 +98,11 @@ export default {
         this.loading = false
       })
     },
-    fetchDevices (total = 999) {
+    fetchDevices (total = 9999) {
       return this.invoke({
         pageNum: 1,
         pageSize: total,
+        activate: 1,
         name: this.deviceName
       }).then(({ data, totalCount }) => {
         if (totalCount > total) {

+ 1 - 1
src/views/platform/upgrade/deploy/index.vue

@@ -284,7 +284,7 @@ export default {
       }
     },
     getDevicesByTenant (params) {
-      return getDevicesByTenant(this.tenant.path, params)
+      return getDevicesByTenant(this.tenant.path, params, { timeout: 0 })
     },
     onChooseDevices (devices) {
       this.$slectedDevices = devices