@@ -96,6 +96,7 @@
import fxd from '@/assets/images/zhps/fxd.png'; //风险点
import qxgw from '@/assets/images/zhps/qxgw.png'; //缺陷管网
import yld from '@/assets/images/zhps/yld.png'; //易涝点
+import bus from '@/bus';
const AllData = reactive({});
const tableData = ref([
{ name: '易涝点', num: '7', Imgurl: yld, dw: '处' },
@@ -145,6 +146,12 @@
function partClick(val) {
partName.value = val.name;
if (partName.value == '风险点') {
+ bus.emit('setLayerVisible', { layername: 'fengXianPoint', isCheck: true });
+ bus.emit('setLayerVisible', { layername: 'yiLaoPoint', isCheck: false });
+ newfiberMapbox.map.easeTo({
+ center: [109.488, 36.596],
+ zoom: 13,
+ });
dataList.value = [
{ num: '1', yls: '长青路石油小', wz: '石油小区后门' },
{ num: '2', yls: '长青路纺织花园车', wz: '太阳鸟健身房' },
@@ -156,7 +163,7 @@
{ num: '8', yls: '马家湾博城至培植中学', wz: '博城至培植中学门前' },
{ num: '9', yls: '百米大道延安小学十字', wz: '百米大道延安小学十字' },
];
- } else if (partName.value == '管网编号') {
+ } else if (partName.value == '缺陷管网') {
dataList.value = [
{ num: '1', yls: 'WS6091104WS6091110', wz: '双拥大道东十里铺' },
{ num: '2', yls: 'WS6091204WS6091110', wz: '百米大道永安路' },
@@ -169,6 +176,12 @@
{ num: '9', yls: 'WS6091404WS6091110 ', wz: '百米大道延安小学十字' },
];
} else {
+ bus.emit('setLayerVisible', { layername: 'fengXianPoint', isCheck: false });
+ bus.emit('setLayerVisible', { layername: 'yiLaoPoint', isCheck: true });
+ newfiberMapbox.map.easeTo({
+ center: [109.488, 36.596],
+ zoom: 13,
+ });
dataList.value = [
{ num: '1', yls: '永安路', wz: '百米大道永安路' },
{ num: '2', yls: '永昌路北口', wz: '双拥大道永昌路' },
@@ -182,6 +195,10 @@
];
}
}
+onBeforeUnmount(() => {
+ bus.emit('setLayerVisible', { layername: 'fengXianPoint', isCheck: false });
+ bus.emit('setLayerVisible', { layername: 'yiLaoPoint', isCheck: false });
+});