Переглянути джерело

fix: the device of other tenants can be obtained during allocation

Casper Dai 2 роки тому
батько
коміт
6f7209df6e
2 змінених файлів з 5 додано та 4 видалено
  1. 1 1
      src/views/external/index.vue
  2. 4 3
      src/views/realm/assign/api.js

+ 1 - 1
src/views/external/index.vue

@@ -93,7 +93,7 @@ export default {
   },
   computed: {
     dialogTitle () {
-      return this.mesh.id ? '编辑网点' : '新增网点'
+      return this.mesh.meshId ? '编辑网点' : '新增网点'
     }
   },
   methods: {

+ 4 - 3
src/views/realm/assign/api.js

@@ -1,7 +1,8 @@
 import request from '@/utils/request'
 import {
   messageSend,
-  confirmAndSend
+  confirmAndSend,
+  addTenant
 } from '@/api/base'
 
 export function getBoundDevices (query, options) {
@@ -22,10 +23,10 @@ export function getDevices (query, options) {
   return request({
     url: '/device/unassigned/page',
     method: 'GET',
-    params: {
+    params: addTenant({
       pageIndex, pageSize,
       ...params
-    },
+    }),
     ...options
   })
 }