测试场景

master
xce 2026-01-26 16:43:56 +08:00
parent 4fd68347e0
commit b53dee2c4d
1 changed files with 20 additions and 0 deletions

View File

@ -382,7 +382,27 @@ export default {
}
})
},
testFunction() {
uni.showModal({
title: '操作提示:',
content: '确定' + (status === 1 ? "运行" : "暂停") + '【' + this.selectedText + '】设备?',
cancelText: '取消',
confirmText: '确定',
success: (res) => {
if (res.confirm) {
//
this.message = JSON.stringify({[type]: status})
//
this.publishMessage();
//
this.deviceType = type;
//todo
// this.testAuto(type);
}
}
})
},
makeSpecialData(msgData, tag) {
const div10 = (v) => (v == null ? null : Math.round((Number(v)/10)*10)/10);