mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
首页地图单击跳转
This commit is contained in:
@@ -519,6 +519,19 @@ export default {
|
||||
var myChart = echarts.init(this.$refs.map);
|
||||
var option;
|
||||
|
||||
// 单击事件
|
||||
myChart.on('click', (params) => {
|
||||
if (params.data.deviceId) {
|
||||
this.$router.push({
|
||||
path: '/iot/device-edit',
|
||||
query: {
|
||||
t: Date.now(),
|
||||
deviceId: params.data.deviceId,
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// 格式化数据
|
||||
let convertData = function (data, status) {
|
||||
var res = [];
|
||||
@@ -534,7 +547,8 @@ export default {
|
||||
firmwareVersion: data[i].firmwareVersion,
|
||||
networkAddress: data[i].networkAddress,
|
||||
productName: data[i].productName,
|
||||
activeTime: data[i].activeTime,
|
||||
activeTime: data[i].activeTime == null ? '' : data[i].activeTime,
|
||||
deviceId: data[i].deviceId,
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -951,7 +965,6 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
.description {
|
||||
font-size: 14px;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user