|
@@ -1,6 +1,6 @@
|
|
|
import {
|
|
import {
|
|
|
addDevice, addSubDevice, delDevice, delDeviceMul, delDeviceTag,
|
|
addDevice, addSubDevice, delDevice, delDeviceMul, delDeviceTag,
|
|
|
- getDeviceById, getDeviceCount, getDeviceList, getDeviceMsgList, addDeviceMsg, getDeviceTag, getSubDeviceList, updateDeviceLabel, addDeviceCmd, getDeviceCmdList
|
|
|
|
|
|
|
+ getDeviceById, getDeviceCount, getDeviceList, getDeviceMsgList, addDeviceMsg, getDeviceTag, getSubDeviceList, updateDeviceLabel, addDeviceCmd, getDeviceCmdList, addDeviceTag
|
|
|
} from '@/api/iot/device'
|
|
} from '@/api/iot/device'
|
|
|
import { DeviceMsgEnum } from '@/enum/common'
|
|
import { DeviceMsgEnum } from '@/enum/common'
|
|
|
import { message } from 'ant-design-vue'
|
|
import { message } from 'ant-design-vue'
|
|
@@ -86,7 +86,7 @@ export class DeviceContriller {
|
|
|
message.success('新增成功')
|
|
message.success('新增成功')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- static async pageTag (params: {deviceId: number | string}) {
|
|
|
|
|
|
|
+ static async ListTag (params: {deviceId: number | string}) {
|
|
|
return await getDeviceTag(params)
|
|
return await getDeviceTag(params)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -95,6 +95,11 @@ export class DeviceContriller {
|
|
|
message.success('删除标签成功')
|
|
message.success('删除标签成功')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ static async postTag (data: IOT.API.DEVICE.DeviceTag[]) {
|
|
|
|
|
+ await addDeviceTag(data)
|
|
|
|
|
+ message.success('新增标签成功')
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
static async updateLabel (data: {id: string, deviceLabel: string}) {
|
|
static async updateLabel (data: {id: string, deviceLabel: string}) {
|
|
|
await updateDeviceLabel(data)
|
|
await updateDeviceLabel(data)
|
|
|
}
|
|
}
|