fix(物联网): 功能添加kw,解决多选未生效bug,升级1.0.34

This commit is contained in:
风花一世月 2024-08-07 19:36:26 +08:00
parent ae550f1941
commit 648f3c4ca9
2 changed files with 7 additions and 4 deletions

View File

@ -2,8 +2,8 @@
"name" : "物联网可视化",
"appid" : "__UNI__604B8F1",
"description" : "",
"versionName" : "1.0.32",
"versionCode" : 1032,
"versionName" : "1.0.34",
"versionCode" : 1034,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@ -175,13 +175,16 @@
if(this.verification()){
let obj = {};
this.dataList.forEach((item)=>{
obj[item.ioKey]=item.value
if(item.checked){
obj[item.ioKey]=item.value
}
})
let params = {
ac:'write',
d:this.devId,
pk:this.pk,
p:obj
p:obj,
kw:this.abilityObj.identifier
}
this.$api.iotsApi.downDeviceAbility(params).then(res => {
console.log("下发数据成功",res)