完善6170报警功能,图片压缩大小
This commit is contained in:
@ -314,6 +314,7 @@
|
||||
selectedItemIndex: 0,
|
||||
radioList: ['M', 'S'],
|
||||
radioSelected: 0, // -1表示未选中任何项
|
||||
deviceType:''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@ -336,7 +337,16 @@
|
||||
// 联机设备
|
||||
selectMode() {
|
||||
uni.navigateTo({
|
||||
url:'/pages/210/onlineDevice/index'
|
||||
url:'/pages/210/onlineDevice/index',
|
||||
events: {
|
||||
ack: function(data) {}
|
||||
},
|
||||
success: (res) => {
|
||||
// 页面跳转成功后的回调函数
|
||||
res.eventChannel.emit('onlineDevice', {
|
||||
data: this.deviceType
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
// 人员信息登录
|
||||
@ -666,10 +676,13 @@
|
||||
title: '加载中...'
|
||||
})
|
||||
eventChannel.on('deviceControl', (data) => {
|
||||
console.log(data,'这是传过来的惨呼啊');
|
||||
this.itemInfo = data.data;
|
||||
this.deviceID = data.data.id;
|
||||
this.navTitle = data.data.deviceName;
|
||||
this.apiType = data.apiType
|
||||
this.deviceType=data.deviceType
|
||||
|
||||
// 根据 apiType 设置右图标的显示状态
|
||||
this.isRightIconVisible = this.apiType === 'listA';
|
||||
// 初始化并连接MQTT
|
||||
|
Reference in New Issue
Block a user