| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-10-31 10:47:29 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-12-02 21:12:23 |
| | | * @LastEditTime: 2024-12-02 22:04:17 |
| | | * @FilePath: \bigScreen\src\pages\map\components\scomponents\layersControl.vue |
| | | * @Description: |
| | | * |
| | |
| | | import EventBus from 'utils/bus' |
| | | import { usePointStore } from 'store/usepoint' |
| | | const pointStore = usePointStore() |
| | | import { useRouter } from 'vue-router'; |
| | | const router = useRouter(); |
| | | import { useRouter } from 'vue-router' |
| | | const router = useRouter() |
| | | |
| | | const { VITE_APP_BASE } = import.meta.env |
| | | // , '7', |
| | |
| | | showPanel: false, |
| | | layerName: 'gouqu' |
| | | }, |
| | | { |
| | | id: '3-9', |
| | | label: '废水处理站', |
| | | type: 'layer', |
| | | subType: 'labelPoint', |
| | | method: getList, |
| | | params: { |
| | | type: 9, |
| | | size: 1000 |
| | | // name: '吉水县绿源污水处理厂', |
| | | }, |
| | | backgroundIcon: VITE_APP_BASE + 'img/mapicon/wsclc.png', |
| | | className: 'xfs-box', |
| | | showPanel: false, |
| | | layerName: 'fsclz' |
| | | }, |
| | | // { |
| | | // id: '3-9', |
| | | // label: '废水处理站', |
| | | // type: 'layer', |
| | | // subType: 'labelPoint', |
| | | // method: getList, |
| | | // params: { |
| | | // type: 9, |
| | | // size: 1000 |
| | | // // name: '吉水县绿源污水处理厂', |
| | | // }, |
| | | // backgroundIcon: VITE_APP_BASE + 'img/mapicon/wsclc.png', |
| | | // className: 'xfs-box', |
| | | // showPanel: false, |
| | | // layerName: 'fsclz' |
| | | // }, |
| | | { |
| | | id: '3-10', |
| | | label: '排水口', |
| | |
| | | showPanel: false, |
| | | layerName: 'psk' |
| | | }, |
| | | { |
| | | id: '3-11', |
| | | label: '污水池', |
| | | type: 'layer', |
| | | subType: 'labelPoint', |
| | | method: getList, |
| | | params: { |
| | | type: 11, |
| | | size: 1000 |
| | | }, |
| | | backgroundIcon: VITE_APP_BASE + 'img/mapicon/wsc.png', |
| | | className: 'xfs-box', |
| | | showPanel: false, |
| | | layerName: 'wsc' |
| | | } |
| | | // { |
| | | // id: '3-11', |
| | | // label: '污水池', |
| | | // type: 'layer', |
| | | // subType: 'labelPoint', |
| | | // method: getList, |
| | | // params: { |
| | | // type: 11, |
| | | // size: 1000 |
| | | // }, |
| | | // backgroundIcon: VITE_APP_BASE + 'img/mapicon/wsc.png', |
| | | // className: 'xfs-box', |
| | | // showPanel: false, |
| | | // layerName: 'wsc' |
| | | // } |
| | | ] |
| | | }, |
| | | |
| | |
| | | // 监听当前路由路径的变化 |
| | | watch(() => router.currentRoute.value.path, |
| | | (newPath, oldPath) => { |
| | | console.log(`Current path changed from ${oldPath} to ${newPath}`); |
| | | console.log(`Current path changed from ${oldPath} to ${newPath}`) |
| | | closeAll() |
| | | }, |
| | | { immediate: true } |