|
@@ -10,7 +10,8 @@
|
|
|
width: `${length / 200}px`,
|
|
|
height: `${width / 200}px`,
|
|
|
position: 'relative',
|
|
|
-
|
|
|
+ left: `${xOffset / 100}rpx`,
|
|
|
+ top: `${yOffset / 100}rpx`,
|
|
|
overflow: 'hidden',
|
|
|
}"
|
|
|
:class="[
|
|
@@ -316,7 +317,9 @@ export default {
|
|
|
methods: {
|
|
|
getdevInfo(devId) {
|
|
|
this.$http
|
|
|
- .get(`wap/device/queryDeviceInfoById/${devId}`, {})
|
|
|
+ .get(`wap/device/queryDeviceInfoById`, {
|
|
|
+ devId: devId,
|
|
|
+ })
|
|
|
.then((res) => {
|
|
|
if (res.data.data) {
|
|
|
this.devInfo = res.data.data;
|
|
@@ -416,6 +419,7 @@ export default {
|
|
|
);
|
|
|
}
|
|
|
});
|
|
|
+ this.isInitAlarm = true;
|
|
|
});
|
|
|
client.on("disconnect", () => {
|
|
|
console.log("MQTT不在连接");
|
|
@@ -461,6 +465,7 @@ export default {
|
|
|
if (item.length < 4) return;
|
|
|
const [x, y, z, id] = item;
|
|
|
currentIds.add(id);
|
|
|
+ console.log(currentIds, 9999);
|
|
|
if (!(id in this.targetPoints)) {
|
|
|
this.targetPoints[id] = {
|
|
|
x,
|
|
@@ -764,24 +769,16 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
- try {
|
|
|
- const devItem = this.parseDeviceItem(options.devItem);
|
|
|
- const { devId, clientId } = devItem;
|
|
|
- this.connectMQTT(clientId, devId);
|
|
|
- this.getFrequency(devId);
|
|
|
- this.getdevInfo(devId);
|
|
|
- this.getdevRoomInfo(devId);
|
|
|
- } catch (error) {
|
|
|
- uni.showToast({
|
|
|
- title: "设备信息格式错误",
|
|
|
- icon: "none",
|
|
|
- });
|
|
|
- }
|
|
|
+ const devItem = this.parseDeviceItem(options.devItem);
|
|
|
+ const { devId, clientId } = devItem;
|
|
|
+ this.connectMQTT(clientId, devId);
|
|
|
+ this.getFrequency(devId);
|
|
|
+ this.getdevInfo(devId);
|
|
|
+ this.getdevRoomInfo(devId);
|
|
|
this.autoPlayinterval = setTimeout(() => {
|
|
|
this.autoSwipe();
|
|
|
}, 3000);
|
|
|
this.getCurrentDate();
|
|
|
- this.isInitAlarm = true;
|
|
|
},
|
|
|
onUnload() {
|
|
|
this.isInitAlarm = false;
|
|
@@ -860,7 +857,7 @@ export default {
|
|
|
background-image: url("http://jkld.radar-power.com//uploadFiles/framework/file/20250620/toilet_bg.png");
|
|
|
background-repeat: no-repeat;
|
|
|
background-position: center;
|
|
|
- transform: scale(2.5);
|
|
|
+ transform: scale(2.2);
|
|
|
|
|
|
.moduleContent {
|
|
|
overflow: hidden;
|