diff --git a/src/views/sponeScreen/evaluationKH/chanChuJiXiao.vue b/src/views/sponeScreen/evaluationKH/chanChuJiXiao.vue index 66b6399..ae77c3a 100644 --- a/src/views/sponeScreen/evaluationKH/chanChuJiXiao.vue +++ b/src/views/sponeScreen/evaluationKH/chanChuJiXiao.vue @@ -36,6 +36,7 @@
{{ quotaInfo.isCompliance == '1' ? '达标' : '不达标' }}
+ 佐证材料
{{ item }} @@ -53,6 +54,7 @@ import newfiberMapBoxVectorLayer from '@/views/sponeScreen/gisMF/mapboxVectorLayer.js'; import tuLi72X from '@/assets/newImgs/tuLi72X.png'; import kaifengPSFQ1 from '@/assets/geojson/kaifeng/kaifengPSFQ1.json'; +import { onBeforeUnmount } from 'vue'; const { proxy } = getCurrentInstance(); const tabList = ref([ @@ -60,12 +62,17 @@ { id: 'nlbz', name: '内涝标准' }, { id: 'nlxc', name: '内涝消除' }, ]); - const curTab = ref(''); const quotaInfo = ref({ isCompliance: 1 }); //改造措施数据 const tableData = ref([]); const waterLoggingData = ref([]); const waterLoggingDataByType = ref([]); +const currentYear = ref(2023); + +// 获取佐证材料 +function getZzcl() { + bus.emit('getZzclData', curTab.value); +} const tabClick = item => { curTab.value = item.id; @@ -342,10 +349,15 @@ onMounted(() => { getWaterlogging(); - setTimeout(() => { + // 切换年份 + bus.on('changeYearKH', e => { + currentYear.value = e; tabClick(tabList.value[0]); }); }); +onBeforeUnmount(() => { + bus.off('changeYearKH'); +}); diff --git a/src/views/sponeScreen/evaluationKH/chanChuJiXiao.vue b/src/views/sponeScreen/evaluationKH/chanChuJiXiao.vue index 66b6399..ae77c3a 100644 --- a/src/views/sponeScreen/evaluationKH/chanChuJiXiao.vue +++ b/src/views/sponeScreen/evaluationKH/chanChuJiXiao.vue @@ -36,6 +36,7 @@
{{ quotaInfo.isCompliance == '1' ? '达标' : '不达标' }}
+ 佐证材料
{{ item }} @@ -53,6 +54,7 @@ import newfiberMapBoxVectorLayer from '@/views/sponeScreen/gisMF/mapboxVectorLayer.js'; import tuLi72X from '@/assets/newImgs/tuLi72X.png'; import kaifengPSFQ1 from '@/assets/geojson/kaifeng/kaifengPSFQ1.json'; +import { onBeforeUnmount } from 'vue'; const { proxy } = getCurrentInstance(); const tabList = ref([ @@ -60,12 +62,17 @@ { id: 'nlbz', name: '内涝标准' }, { id: 'nlxc', name: '内涝消除' }, ]); - const curTab = ref(''); const quotaInfo = ref({ isCompliance: 1 }); //改造措施数据 const tableData = ref([]); const waterLoggingData = ref([]); const waterLoggingDataByType = ref([]); +const currentYear = ref(2023); + +// 获取佐证材料 +function getZzcl() { + bus.emit('getZzclData', curTab.value); +} const tabClick = item => { curTab.value = item.id; @@ -342,10 +349,15 @@ onMounted(() => { getWaterlogging(); - setTimeout(() => { + // 切换年份 + bus.on('changeYearKH', e => { + currentYear.value = e; tabClick(tabList.value[0]); }); }); +onBeforeUnmount(() => { + bus.off('changeYearKH'); +}); diff --git a/src/views/sponeScreen/evaluationKH/jiZhiJianShe.vue b/src/views/sponeScreen/evaluationKH/jiZhiJianShe.vue index 1573fee..6c56639 100644 --- a/src/views/sponeScreen/evaluationKH/jiZhiJianShe.vue +++ b/src/views/sponeScreen/evaluationKH/jiZhiJianShe.vue @@ -1,7 +1,7 @@