diff --git a/ruoyi-ui/src/components/BoardTopNav/index.vue b/ruoyi-ui/src/components/BoardTopNav/index.vue
index 62208af..986d5d8 100644
--- a/ruoyi-ui/src/components/BoardTopNav/index.vue
+++ b/ruoyi-ui/src/components/BoardTopNav/index.vue
@@ -60,9 +60,9 @@
导入
-
-
-
+
+
+
data.Header[e])
+ this.tableTh = Object.keys(data.Header).map(e => data.Header[e])
},
importf() {
this.uploadDialog = true
},
- async uploadSuccess(e){
+ async uploadSuccess(e) {
this.uploadDialog = false
const data = await getRedisFile(this.$store.getters.tenantId)
this.tableData = JSON.parse(data.content)
- this.tableTh = Object.keys(data.Header).map(e=>data.Header[e])
+ this.tableTh = Object.keys(data.Header).map(e => data.Header[e])
}
}
};
diff --git a/ruoyi-ui/src/views/board/equipmentMonitoring/index.vue b/ruoyi-ui/src/views/board/equipmentMonitoring/index.vue
index 396643e..a6cffde 100644
--- a/ruoyi-ui/src/views/board/equipmentMonitoring/index.vue
+++ b/ruoyi-ui/src/views/board/equipmentMonitoring/index.vue
@@ -98,6 +98,13 @@
+
+
+
+
@@ -106,9 +113,10 @@ import {
selectLatestDataByDeviceMode,
getDeviceModesBySceneId,
} from '@/api/board/equipmentMonitoring'
+import Sensor from '@/views/board/senso'
export default {
- components: {},
+ components: {Sensor},
data() {
return {
loading: false,
@@ -127,7 +135,9 @@ export default {
limit: 10,
total: 0,
deviceDataColumns: [],
- tableDataRow: []
+ tableDataRow: [],
+ dialogVisible:false,
+ dialogData:null
}
},
async mounted() {
@@ -196,7 +206,10 @@ export default {
toHistory(e, i) {
console.log(e)
console.log(i)
- this.$router.push({path: "/board/senso", query: {id: e, deviceModeId: i}});
+ this.dialogData = {id: e, deviceModeId: i}
+ this.dialogVisible = true
+
+ // this.$router.push({path: "/board/senso", query: {id: e, deviceModeId: i}});
}
}
};
diff --git a/ruoyi-ui/src/views/board/index/index.vue b/ruoyi-ui/src/views/board/index/index.vue
index e7ba351..389ef5f 100644
--- a/ruoyi-ui/src/views/board/index/index.vue
+++ b/ruoyi-ui/src/views/board/index/index.vue
@@ -780,12 +780,9 @@ export default {
position: [e.longitude, e.latitude],
title: `信息\n经度:${e.longitude}\n纬度:${e.latitude}\n名称:${e.deviceName}\n`,
offset: new AMap.Pixel(-15, -30),
- content: ``
});
marker.on('click', async () => {
if (markerIds.includes(e.deviceId)) {
diff --git a/ruoyi-ui/src/views/board/senso/index.vue b/ruoyi-ui/src/views/board/senso/index.vue
index 15eddd7..fd1603f 100644
--- a/ruoyi-ui/src/views/board/senso/index.vue
+++ b/ruoyi-ui/src/views/board/senso/index.vue
@@ -162,6 +162,7 @@ let mapMarker = null
let flag = true
export default {
components: {},
+ props:['dialogData'],
data() {
return {
mapOffset: 0,
@@ -189,9 +190,9 @@ export default {
zoom: 11,
center: [113.4, 23.35],
});
- if (this.$route.query.id) {
- this.deviceId = this.$route.query.id
- this.deviceModeId = this.$route.query.deviceModeId
+ if (this.$route.query.id || this.dialogData.id) {
+ this.deviceId = this.$route.query.id || this.dialogData.id
+ this.deviceModeId = this.$route.query.deviceModeId || this.dialogData.deviceModeId
}
await this.getData()
},
@@ -421,20 +422,22 @@ export default {