| | |
| | | <script setup> |
| | | import { getList } from "@/api/space/space" |
| | | import { onUnmounted, reactive } from 'vue' |
| | | |
| | | import { usePointStore } from 'store/usepoint' |
| | | const pointStore = usePointStore() |
| | | |
| | | const resData = reactive({ |
| | | data: [{ |
| | | label: '一级防控', |
| | |
| | | }, { |
| | | label: '二级防控', |
| | | value: '2', |
| | | type: 1, |
| | | type: 2, |
| | | // remark: '雨污水排口一体化闸阀、车间收集池、雨污管阀' |
| | | }, |
| | | { |
| | | label: '三级防控', |
| | | value: '3', |
| | | type: 1, |
| | | type: 3, |
| | | // remark: '事故应急池、雨水收集池' |
| | | } |
| | | ] |
| | | }) |
| | | |
| | | |
| | | const curSelect = ref('1') |
| | | let addTileLayers = {} |
| | | const handleCheckChange = (row) => { |
| | |
| | | |
| | | const tabClick = (item) => { |
| | | handleCheckChange(item) |
| | | pointStore.updateSharedData(item.type) |
| | | curSelect.value = item.value |
| | | } |
| | | |
| | |
| | | }) |
| | | |
| | | onMounted(() => { |
| | | pointStore.updateSharedData(1) |
| | | tabClick(resData.data[0]) |
| | | }) |
| | | |