|
|
@@ -18,7 +18,7 @@ import { getUserGroups } from '@/api/user'
|
|
|
import {
|
|
|
getProducts,
|
|
|
getDevicesByAdmin,
|
|
|
- getDevicesByOrg,
|
|
|
+ getDevicesByRelation,
|
|
|
bindDeviceToObject,
|
|
|
unbindDevice
|
|
|
} from '@/api/device'
|
|
|
@@ -100,16 +100,11 @@ export default {
|
|
|
getDevices (params) {
|
|
|
const queryParams = { ...params }
|
|
|
if (this.isGroup) {
|
|
|
- if (this.value === this.tenant.path) {
|
|
|
- queryParams.tenant = this.value
|
|
|
- } else {
|
|
|
- queryParams.org = this.value
|
|
|
- queryParams.flag = 1
|
|
|
- }
|
|
|
+ queryParams.org = this.value
|
|
|
} else {
|
|
|
queryParams.user = this.value
|
|
|
}
|
|
|
- return getDevicesByOrg(queryParams)
|
|
|
+ return getDevicesByRelation(queryParams)
|
|
|
},
|
|
|
onAdd () {
|
|
|
this.$refs.tableDialog.show()
|