|
@@ -78,7 +78,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 地图 -->
|
|
|
- <supermap ref="supermap" style="width: 100%;height: 100vh;" @preview="preview">
|
|
|
+ <supermap ref="supermap" style="width: 100%;height: 100vh;" @preview="preview" @jump="jump">
|
|
|
</supermap>
|
|
|
<!-- 右侧 -->
|
|
|
<div class="rightbar" :class="indentright" ref="right">
|
|
@@ -202,7 +202,7 @@
|
|
|
this.getTreeselect()
|
|
|
this.deptId = Cookies.get("deptId")
|
|
|
// this.getSensorListByDeptIds()
|
|
|
- this.getMonitorDeviceAndDataList()
|
|
|
+ this.getMonitorDeviceAndDataLists()
|
|
|
this.getDlblistBydeptIds()
|
|
|
this.chuanSet()
|
|
|
this.selectDeviceType(-1)
|
|
@@ -273,7 +273,6 @@
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
-
|
|
|
// 根据名称筛选部门树
|
|
|
deptName(val) {
|
|
|
this.$refs.tree.filter(val)
|
|
@@ -288,6 +287,9 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ jump() { // 跳转大喇叭页面
|
|
|
+ window.open("https://sts.sty1818.com");
|
|
|
+ },
|
|
|
chuanSet()
|
|
|
{
|
|
|
let that =this
|
|
@@ -955,11 +957,21 @@
|
|
|
},
|
|
|
chuanClick() {
|
|
|
|
|
|
+ this.onLa = false
|
|
|
+ this.onShe = false
|
|
|
+ this.onChuan = true
|
|
|
this.localMark = 'chuan'
|
|
|
this.placeholderMsg = "请输入传感器名称"
|
|
|
//this.getSensorListByDeptId()
|
|
|
this.getMonitorDeviceAndDataList()
|
|
|
},
|
|
|
+ //传感器2
|
|
|
+ getMonitorDeviceAndDataLists() {
|
|
|
+ let that = this
|
|
|
+ getMonitorDeviceAndDataList(this.deptId).then((res) => {
|
|
|
+ that.sensorNum = res.data.length
|
|
|
+ })
|
|
|
+ },
|
|
|
// 大喇叭
|
|
|
getDlblistBydeptId() {
|
|
|
let that = this;
|
|
@@ -982,7 +994,7 @@
|
|
|
lat: 43.02,
|
|
|
icon: "marker",
|
|
|
bindPopupHtml: "",
|
|
|
- click: i,
|
|
|
+ click: 'jump',
|
|
|
parameter: "",
|
|
|
name: "",
|
|
|
keepBindPopup: false,
|