6170控制设备接口,添加参数imei

This commit is contained in:
fengerli
2025-08-11 11:24:21 +08:00
parent b78ec21152
commit d8edb9f31e
3 changed files with 140 additions and 7 deletions

View File

@ -484,7 +484,8 @@
let data = {
deviceId: this.deviceID,
instructValue: this.sliderValue + '.00'
instructValue: this.sliderValue + '.00',
deviceImei:this.itemInfo.deviceImei
}
lightBrightnessSettings(data).then((res) => {
if (res.code !== 200) {
@ -502,7 +503,8 @@
let data = {
deviceId: this.apiType === 'listA' ? this.deviceID : this.itemInfo.deviceId,
instructValue: this.sliderValue + '.00'
instructValue: this.sliderValue + '.00',
deviceImei:this.itemInfo.deviceImei
}
lightBrightnessSettings(data).then((res) => {
if (res.code == 200) {
@ -581,7 +583,8 @@
this.selectedItemIndex = this.selectedItemIndex;
let data = {
deviceId: this.apiType === 'listA' ? this.deviceID : this.itemInfo.deviceId,
instructValue: selectedItem.instructValue
instructValue: selectedItem.instructValue,
deviceImei:this.itemInfo.deviceImei
}
lightModeSettings(data).then((res) => {
if (res.code == 200) {
@ -607,7 +610,8 @@
const instructValue = this.isLaserOn ? 0 : 1;
let data = {
deviceId: this.apiType === 'listA' ? this.deviceID : this.itemInfo.deviceId,
instructValue: instructValue
instructValue: instructValue,
deviceImei:this.itemInfo.deviceImei
}
laserModeSettings(data).then((res) => {
if (res.code == 200) {
@ -690,6 +694,7 @@
name: 'file',
formData: {
deviceId: this.apiType === 'listA' ? this.deviceID : this.itemInfo.deviceId,
deviceImei:this.itemInfo.deviceImei
},
header: {
'Authorization': 'Bearer ' + getToken(),