8 files modified
5 files added
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2025-01-04 20:09:53 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2025-01-04 20:11:47 |
| | | * @LastEditTime: 2025-02-12 18:44:23 |
| | | * @FilePath: \bigScreen\src\api\space\space.js |
| | | * @Description: |
| | | * |
| | |
| | | method: 'post', |
| | | data, |
| | | }) |
| | | } |
| | | |
| | | export const spatialAnalysisPoint = (params) => { |
| | | const url = `/yw/emergencySpace/spatialAnalysisPoint` |
| | | return request({ |
| | | url, |
| | | method: 'get', |
| | | params, |
| | | }) |
| | | } |
| | |
| | | menuName: '救援队伍', |
| | | path: '/layout/single/rt' |
| | | }, |
| | | // { |
| | | // menuName: '突发事件模拟', |
| | | // path: '/layout/map/main/pd' |
| | | // }, |
| | | { |
| | | menuName: '突发事件模拟', |
| | | path: '/layout/map/main/pd' |
| | | }, |
| | | // { |
| | | // menuName: '作战图', |
| | | // path: '/layout/single/ochart' |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-10-31 10:47:29 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2025-01-13 19:28:23 |
| | | * @LastEditTime: 2025-02-12 19:57:40 |
| | | * @FilePath: \bigScreen\src\pages\map\components\scomponents\layersControl.vue |
| | | * @Description: |
| | | * |
| | |
| | | backgroundIcon: VITE_APP_BASE + 'img/mapicon/fxy-yb.png', |
| | | showPanel: false, |
| | | layerName: 'fxyOrdinary', |
| | | customWx: true, |
| | | incident: (e) => { |
| | | const { attrParams } = e.overlay |
| | | // 删除 |
| | |
| | | backgroundIcon: VITE_APP_BASE + 'img/mapicon/fxy-zd-b.png', |
| | | showPanel: false, |
| | | layerName: 'fxyLarger', |
| | | customWx: true, |
| | | incident: (e) => { |
| | | const { attrParams } = e.overlay |
| | | // 删除 |
| | |
| | | backgroundIcon: VITE_APP_BASE + 'img/mapicon/fxy-jd.png', |
| | | showPanel: false, |
| | | layerName: 'fxyLargerB', |
| | | customWx: true, |
| | | incident: (e) => { |
| | | const { attrParams } = e.overlay |
| | | // 删除 |
| | |
| | | backgroundIcon: VITE_APP_BASE + 'img/mapicon/fxy-zd.png', |
| | | showPanel: false, |
| | | layerName: 'fxyZdLarger', |
| | | customWx: true, |
| | | incident: (e) => { |
| | | const { attrParams } = e.overlay |
| | | // 删除 |
| | |
| | | return |
| | | } |
| | | |
| | | if (mapStore.startCustomWx && item.customWx) { |
| | | EventBus.emit('wxEntityClick', e) |
| | | return |
| | | } |
| | | |
| | | incident(e) |
| | | }) |
| | | |
| New file |
| | |
| | | <template> |
| | | <!-- <div class="box"> |
| | | <div class="login"> |
| | | <div class="logintitle"> |
| | | 新干化工园区“一园一策一图”VR平台 |
| | | </div> |
| | | <div class="getingo"> |
| | | <p class="title">用户登录</p> |
| | | <el-input type="text" class="input username" v-model="loginForm.username" /> |
| | | <el-input type="password" class="input password" v-model="loginForm.password" /> |
| | | <el-button class="loginto" type="primary" @click="login">登录</el-button> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { useRouter, useRoute } from 'vue-router' |
| | | let router = useRouter() |
| | | import { ElLoading } from 'element-plus' |
| | | import { useLogin } from 'store/login' |
| | | const store = useLogin() |
| | | |
| | | const loginForm = reactive({ |
| | | //租户ID |
| | | tenantId: '000000', |
| | | //部门ID |
| | | deptId: '', |
| | | //角色ID |
| | | roleId: '', |
| | | //用户名 |
| | | username: 'admin', |
| | | //密码 |
| | | password: 'rcgyy@2024', |
| | | //账号类型 |
| | | type: 'account', |
| | | //验证码的值 |
| | | code: '', |
| | | //验证码的索引 |
| | | key: '', |
| | | //预加载白色背景 |
| | | image: |
| | | 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7', |
| | | flag: 1, |
| | | }) |
| | | |
| | | store.LoginByUsername(loginForm).then(res => { |
| | | router.push({ |
| | | path: '/layout' |
| | | }) |
| | | }).catch(() => { |
| | | }) |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .box { |
| | | width: 100vw; |
| | | height: 100vh; |
| | | box-sizing: border-box; |
| | | |
| | | .login { |
| | | width: 100%; |
| | | height: 100%; |
| | | background: url('../assets/images/login-bg.png'); |
| | | background-size: 100% 100%; |
| | | position: relative; |
| | | |
| | | .logintitle { |
| | | position: absolute; |
| | | top: 18%; |
| | | right: 25%; |
| | | transform: translateX(50%); |
| | | font-size: 40px; |
| | | color: #00afe9; |
| | | } |
| | | |
| | | .getingo { |
| | | width: 500px; |
| | | position: absolute; |
| | | text-align: center; |
| | | top: 45%; |
| | | right: 25%; |
| | | transform: translateY(-40%) translateX(50%); |
| | | color: #ffffff; |
| | | padding: 30px; |
| | | background: url('../assets/images/login-content-bg.png'), |
| | | url('../assets/images/left-top.png') no-repeat left top, |
| | | url('../assets/images/left-bottom.png') no-repeat left bottom, |
| | | url('../assets/images/right-top.png') no-repeat right top, |
| | | url('../assets/images/right-bottom.png') no-repeat right bottom; |
| | | background-repeat: no-repeat; |
| | | background-size: 100% 100%, 25px, 25px, 25px, 25px; |
| | | |
| | | .title { |
| | | font-size: 20px; |
| | | } |
| | | |
| | | :deep().el-input__inner { |
| | | padding: 0px; |
| | | } |
| | | |
| | | .input { |
| | | margin: 30px 0; |
| | | width: 300px; |
| | | padding: 10px 10px 10px 40px; |
| | | background-color: rgba(0, 0, 0, 0); |
| | | color: #ffffff; |
| | | border-width: 0px; |
| | | font-size: 18px; |
| | | } |
| | | |
| | | .username { |
| | | background: url('../assets/images/login-input.png') no-repeat, |
| | | url('../assets/images/user-icon.png') no-repeat 10px center; |
| | | background-size: 100% 100%, 20px; |
| | | } |
| | | |
| | | .password { |
| | | background: url('../assets/images/login-input.png') no-repeat, |
| | | url('../assets/images/password-icon.png') no-repeat 10px center; |
| | | background-size: 100% 100%, 20px; |
| | | } |
| | | |
| | | .loginto { |
| | | width: 300px; |
| | | margin: 30px 0; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | menuName: '救援队伍', |
| | | path: '/layout/single/rt' |
| | | }, |
| | | // { |
| | | // menuName: '突发事件模拟', |
| | | // path: '/layout/map/main/pd' |
| | | // }, |
| | | { |
| | | menuName: '突发事件模拟', |
| | | path: '/layout/map/main/pd' |
| | | }, |
| | | // { |
| | | // menuName: '作战图', |
| | | // path: '/layout/single/ochart' |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-10-25 16:35:31 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2025-01-07 18:55:42 |
| | | * @LastEditTime: 2025-02-11 14:39:11 |
| | | * @FilePath: \bigScreen\src\router\index.js |
| | | * @Description: |
| | | * |
| | |
| | | isAuth: false, |
| | | }, |
| | | }, |
| | | |
| | | { |
| | | path: '/sign', |
| | | name: '免登录', |
| | | component: () => import('@/pages/sign.vue'), |
| | | meta: { |
| | | keepAlive: true, |
| | | isTab: false, |
| | | isAuth: false, |
| | | }, |
| | | }, |
| | | |
| | | { |
| | | path: '/layout', |
| | | name: 'layout', |
| | | redirect: '/layout/map/main/survey', |
| | | redirect: '/layout/map/main/default', |
| | | component: layout, |
| | | children: [ |
| | | { |
| | |
| | | name: 'main', |
| | | component: mainLayout, |
| | | children: [ |
| | | { |
| | | path: 'default', |
| | | meta: { |
| | | title: '首页' |
| | | }, |
| | | component: () => import('@/views/default/index.vue') |
| | | }, |
| | | |
| | | { |
| | | path: 'survey', |
| | | meta: { |
| | |
| | | }, |
| | | component: () => import('@/views/pac/index.vue') |
| | | }, |
| | | // { |
| | | // path: 'pd', |
| | | // meta: { |
| | | // title: '突发事件模拟' |
| | | // }, |
| | | // component: () => import('@/views/pd/index.vue') |
| | | // }, |
| | | { |
| | | path: 'pd', |
| | | meta: { |
| | | title: '突发事件模拟' |
| | | }, |
| | | component: () => import('@/views/pd/index.vue') |
| | | }, |
| | | ] |
| | | }, |
| | | |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-10-28 18:24:16 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2025-01-15 14:35:23 |
| | | * @LastEditTime: 2025-02-12 18:21:51 |
| | | * @FilePath: \bigScreen\src\store\map.js |
| | | * @Description: |
| | | * |
| | |
| | | loadMap: false, |
| | | pointHeight: 64, |
| | | editPoint: false, |
| | | startCustomWx: false, |
| | | showPreLevel: false, |
| | | }), |
| | | |
| | | // 相当于 Vuex 的 getters,用于计算状态 |
| | |
| | | |
| | | setEditPoint (flag) { |
| | | this.editPoint = flag |
| | | } |
| | | }, |
| | | |
| | | setStartCustomWx (flag) { |
| | | this.startCustomWx = flag |
| | | }, |
| | | |
| | | setShowPreLevel (flag) { |
| | | this.showPreLevel = flag |
| | | }, |
| | | } |
| | | }) |
| New file |
| | |
| | | <!-- |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2023-03-10 15:27:59 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2025-02-11 16:20:01 |
| | | * @FilePath: \bigScreen\src\views\default\index.vue |
| | | * @Description: 综合设计 |
| | | * |
| | | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. |
| | | --> |
| | | <script setup> |
| | | import EventBus from 'utils/bus' |
| | | onMounted(() => { |
| | | EventBus.emit('restHandleCheckChange', `7`) |
| | | }) |
| | | |
| | | onUnmounted(() => { |
| | | EventBus.emit('restHandleDelChange', `7`) |
| | | }) |
| | | </script> |
| | | |
| | | <template> |
| | | <div class="container page-container"> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <style lang="scss" scoped> |
| | | .container { |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | </style> |
| New file |
| | |
| | | <!-- |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2023-03-13 14:54:26 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-11-27 14:30:53 |
| | | * @FilePath: \bigScreen\src\views\pac\components\box\fireSource.vue |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. |
| | | --> |
| | | <script setup> |
| | | import { Picture } from '@element-plus/icons-vue' |
| | | |
| | | import publicContent from './publicContent.vue' |
| | | import { getAssetsFile } from 'utils/utils' |
| | | const one = getAssetsFile('one.png', '/img') |
| | | const two = getAssetsFile('two.png', '/img') |
| | | const three = getAssetsFile('three.png', '/img') |
| | | import { usePointStore } from 'store/usepoint' |
| | | const pointStore = usePointStore() |
| | | const sharedData = computed(() => pointStore.sharedData) |
| | | |
| | | let indexValue = ref(1) |
| | | |
| | | watch(sharedData, (newValue) => { |
| | | indexValue.value = newValue |
| | | }) |
| | | </script> |
| | | |
| | | <template> |
| | | <public-content> |
| | | <template #content> |
| | | <div class="content_box"> |
| | | <div v-if="indexValue == 1"> |
| | | <div> |
| | | <!-- <img :src="one" alt=""> --> |
| | | <el-image :src="one" :zoom-rate="1.2" :max-scale="7" :min-scale="0.2" :preview-src-list="[one]" |
| | | :initial-index="4" fit="cover"> |
| | | <template #error> |
| | | <div class="image-slot"> |
| | | <el-icon> |
| | | <Picture /> |
| | | </el-icon> |
| | | </div> |
| | | </template> |
| | | </el-image> |
| | | </div> |
| | | <div class="content_text"> |
| | | 第一级应急防控体系,即事故废水不出企业,事故发生时,首先启动一级防控。关闭所有可能外溢事故污水的外排口,利用企业自身的围堰、应急池等环境应急防控设施,将污水控制在企业厂区内部。园区内所有企业均设置相应的事故应急池,企业雨水(清下水)排口设有监管部门控制的阀门。一旦发生物料泄漏及火灾等安全生产事故,相关企业快速断开雨水排口,联动打开事故应急池,将事故废水和消防尾水导入事故应急池。事故结束后,应急事故池中的废水进入厂区自身污水处理站处理,无污水处理站的企业按照监测结果进入园区污水处理厂处理。 |
| | | </div> |
| | | </div> |
| | | |
| | | <div v-if="indexValue == 2" class="content_img_text"> |
| | | <div> |
| | | <!-- <img :src="two" alt=""> --> |
| | | <el-image :src="two" :zoom-rate="1.2" :max-scale="7" :min-scale="0.2" :preview-src-list="[two]" |
| | | :initial-index="4" fit="cover"> |
| | | <template #error> |
| | | <div class="image-slot"> |
| | | <el-icon> |
| | | <Picture /> |
| | | </el-icon> |
| | | </div> |
| | | </template> |
| | | </el-image> |
| | | </div> |
| | | <div class="content_text_box"> |
| | | <div class="content_text"> |
| | | 一级防控能力不足时,启动二级防控。通过专用管道或临时转输措施,与相邻企业应急池、园区公共应急池等互联互通,拦截处置事故污水。第二级应急防控体系,即事故废水不出园区,事故废水储存在园区公共应急池及园区内雨水管网公共空间内。 |
| | | </div> |
| | | |
| | | <div class="content_text"> |
| | | (1)公共应急池的选址。建设园区公共应急池或利用园区内干枯河道、低洼地带等进行改造,并设置独立管网进行事故废水的收集和输送,保证每家企业内部应急池与公共应急池有效连通;在事故废水超过设计标准的情况下,也可有效利用雨水管网分段建设闸门井进行废水容纳。一旦园区内企业发生事故,且消防尾水过量超出企业自身防控能力时,开启园区公共应急池阀门,企业内部无法收纳的消防事故水将通过应急管网流入公共应急池,将事故废水控制在园区应急池内,不进入区内河道。事故结束后,对公共应急池内收纳的事故废水进行监测,若达标,则就近排入河道;若不达标,则分批次用槽车送入园区污水处理厂处理。 |
| | | </div> |
| | | |
| | | <div class="content_text"> |
| | | (2)公共应急池容量设计。根据《化工园区事故应急设施(池)建设标准》(T/CPCIF 0049—2020)进行公共应急池设置,以化工集中区产生事故废水外排量最大的一个企业计算。 |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div v-if="indexValue == 3"> |
| | | <div> |
| | | <!-- <img :src="three" alt=""> --> |
| | | <el-image :src="three" :zoom-rate="1.2" :max-scale="7" :min-scale="0.2" :preview-src-list="[three]" |
| | | :initial-index="4" fit="cover"> |
| | | <template #error> |
| | | <div class="image-slot"> |
| | | <el-icon> |
| | | <Picture /> |
| | | </el-icon> |
| | | </div> |
| | | </template> |
| | | </el-image> |
| | | </div> |
| | | <div class="content_text"> |
| | | 事态进一步扩大,污水进入园区内水体,启动三级防控。利用化工集中区内的坑塘、河道、沟渠以及周边水系等,构建环境应急防控空间,对进出园区的水体实施封闭或分段管控。结合化工集中区区实际,确定事故废水通过雨污管网在进入赣江前有效拦截,当发生重大企业突发环境事故或危化品运输车辆侧翻等事故时,事故废水流入化工集中区内水体,立即关闭应急闸坝,污染河道使用移动闸截断污染团(带);同时根据污染团(带)所在位置,就近闸断园区内部河道形成临时应急池,防止污染团从园区内水系进一步扩散至外环境。事故结束后,对临时应急空间内水质进行监测,若达标,则开启河道应急闸坝;若不达标,则将临时应急空间内污水由水泵将河水分批次送入公共应急池,进一步送园区污水处理厂处理。 |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </template> |
| | | </public-content> |
| | | </template> |
| | | |
| | | <style lang="scss" scoped> |
| | | .content_box { |
| | | color: #fff; |
| | | // overflow: scroll; |
| | | } |
| | | |
| | | .content_box img { |
| | | width: 100%; |
| | | } |
| | | |
| | | .content_text_box { |
| | | height: 530px; |
| | | overflow: hidden; |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | |
| | | .content_box .content_text { |
| | | // 首行缩进 |
| | | text-indent: 2em; |
| | | width: 100%; |
| | | line-height: 25px; |
| | | // 字间距 |
| | | letter-spacing: 2px; |
| | | font-size: 16px; |
| | | } |
| | | </style> |
| New file |
| | |
| | | <!-- |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2023-03-13 14:54:26 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-10-25 18:33:46 |
| | | * @FilePath: \bigScreen\src\views\statistics\components\box\publicContent.vue |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. |
| | | --> |
| | | <script setup> |
| | | |
| | | </script> |
| | | |
| | | <template> |
| | | <div class="content"> |
| | | <slot name="content"></slot> |
| | | </div> |
| | | </template> |
| | | |
| | | <style lang="scss" scoped> |
| | | .content { |
| | | padding: 20px 0; |
| | | height: calc(100% - 32px); |
| | | } |
| | | </style> |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-11-09 15:41:35 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-12-18 09:39:00 |
| | | * @LastEditTime: 2025-02-12 20:00:22 |
| | | * @FilePath: \bigScreen\src\views\pd\components\dynamicPanel.vue |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2024 by shuishen, All Rights Reserved. |
| | | --> |
| | | <script setup> |
| | | import EventBus from 'utils/bus' |
| | | |
| | | const { VITE_APP_BASE } = import.meta.env |
| | | |
| | | const emit = defineEmits(['closePanel']) |
| | | import { onUnmounted } from 'vue' |
| | | |
| | | import { spatialAnalysisPoint } from "@/api/space/space" |
| | | |
| | | import { useMap } from 'store/map' |
| | | const mapStore = useMap() |
| | | import { usePointStore } from 'store/usepoint' |
| | | const pointStore = usePointStore() |
| | | |
| | | onMounted(() => { |
| | | pointStore.updateSharedData(1) |
| | | }) |
| | | |
| | | let lineTime = null |
| | | let timeOne = null |
| | |
| | | const panelData = reactive({ |
| | | data: [ |
| | | { |
| | | type: 'demo', |
| | | key: 1, |
| | | title: '典型案例1', |
| | | content: '南片区松节油储罐区泄漏事故: 南片区某企业松节油储罐泄漏,如不采取措施,将造成污染事故,影响到赣江下游水质。', |
| | | title: '典型案例', |
| | | content: '化工园区罐区泄漏事故: 化工园区某企业储罐泄漏,如不采取措施,将造成污染事故,影响到长江下游水质。', |
| | | |
| | | oneCentent: '2024年11月11日11时,南片区某公司松节油储罐泄漏。企业关闭前置阀门切断泄漏源,向罐内适量注水,抬高液位。', |
| | | oneCentent: '2024年11月11日11时,化工园区某企业储罐泄漏。企业关闭前置阀门切断泄漏源,向罐内适量注水,抬高液位。', |
| | | onePointPosition: { |
| | | lng: 115.10175740, |
| | | lat: 27.27356477 |
| | | lng: 115.60652633, |
| | | lat: 29.80893013, |
| | | alt: 19 |
| | | }, |
| | | onetime: 0, |
| | | |
| | | twoContent: '启动应急池的使用,将泄漏的松节油引导至应急池中。', |
| | | twoContent: '启动应急池的使用,将泄漏的化学原料引导至应急池中。', |
| | | twoPointPosition: { |
| | | lng: 115.10198913, |
| | | lat: 27.27343615 |
| | | lng: 115.6074303, |
| | | lat: 29.80929992, |
| | | alt: 17 |
| | | }, |
| | | twotime: 5000, |
| | | |
| | | lineCenter: { |
| | | lng: 115.10343807, |
| | | lat: 27.27256126 |
| | | lng: 115.60786813, |
| | | lat: 29.80937902, |
| | | alt: 30 |
| | | }, |
| | | linePosition: '115.10341051,27.27251643,64;115.10357817,27.27278003,64', |
| | | linePosition: '115.60782622,29.80955698,30;115.60783535,29.80913790,30', |
| | | lineTime: 5000, |
| | | |
| | | threeContent: '企业采取紧急措施后,还有部分松节油进入厂外雨水管网。', |
| | | threePointPosition: { |
| | | lng: 115.10343807, |
| | | lat: 27.27256126 |
| | | lng: 115.60782622, |
| | | lat: 29.80955698, |
| | | alt: 30 |
| | | }, |
| | | threetime: 15000, |
| | | |
| | | fourContent: '关闭绿源污水处理厂旁雨水排口,拦截污染水体。', |
| | | fourContent: '关闭园区闸坝,拦截污染水体。', |
| | | fourPointPosition: { |
| | | lng: 115.10870094, |
| | | lat: 27.27185349 |
| | | lng: 115.6269944, |
| | | lat: 29.80695862, |
| | | alt: 5 |
| | | }, |
| | | fourtime: 15000, |
| | | |
| | | fiveContent: '启用绿源污水处理厂事故应急池,将已拦截废水泵入应急池。', |
| | | fiveContent: '应急指挥部指导企业处理受污染废水, 监测公共应急池水质 ,根据水质情况分批次进入生化系统处理。', |
| | | fivePointPosition: { |
| | | lng: 115.10814596, |
| | | lat: 27.27257473 |
| | | lng: 115.62761928, |
| | | lat: 29.80836521, |
| | | alt: 7 |
| | | }, |
| | | fivetime: 20000, |
| | | |
| | | sixContent: '应急指挥部指导企业处理受污染废水, 监测公共应急池水质 ,根据水质情况分批次进入生化系统处理。', |
| | | sixPointPosition: { |
| | | lng: 115.10843364, |
| | | lat: 27.27320219 |
| | | }, |
| | | sixtime: 25000, |
| | | }, |
| | | |
| | | { |
| | | type: 'custom', |
| | | key: 2, |
| | | title: '典型案例2', |
| | | content: '北片区碱类腐蚀性物质泄漏事故: 北片区某企业在生产过程中操作失误,大量含碱废水泄漏,如不采取措施,将造成污染事故,影响到赣江下游水质。', |
| | | |
| | | oneCentent: '2024年09月16日14时,北片区某公司在生产过程中操作失误,大量含碱废水泄漏。企业关闭前置阀门,切断泄漏源。', |
| | | onePointPosition: { |
| | | lng: 115.10467136, |
| | | lat: 27.29415383 |
| | | }, |
| | | onetime: 0, |
| | | |
| | | twoContent: '企业通过砂土等筑堤堵截泄漏废水,并引流至事故应急池。', |
| | | twoPointPosition: { |
| | | lng: 115.10545440, |
| | | lat: 27.29439753 |
| | | }, |
| | | twotime: 10000, |
| | | |
| | | lineCenter: { |
| | | lng: 115.10627858, |
| | | lat: 27.29434439 |
| | | }, |
| | | linePosition: '115.10627726,27.29408853,64;115.10627703,27.29456132,64', |
| | | lineTime: 5000, |
| | | |
| | | threeContent: '企业通过紧急处理,还有部分事故废水进入厂外雨水管网。', |
| | | threePointPosition: { |
| | | lng: 115.10627858, |
| | | lat: 27.29434439 |
| | | }, |
| | | threetime: 10000, |
| | | |
| | | fourContent: '园区关闭北区雨水排口闸阀(拟建),拦截污染水体。', |
| | | fourPointPosition: { |
| | | lng: 115.10629605, |
| | | lat: 27.29785816 |
| | | }, |
| | | fourtime: 10000, |
| | | |
| | | fiveContent: '园区启用北区公共应急池(拟建),将已拦截废水泵入应急池。', |
| | | fivePointPosition: { |
| | | lng: 115.106600, |
| | | lat: 27.296891 |
| | | }, |
| | | fivetime: 15000, |
| | | |
| | | sixContent: '将拦截废水从应急池中通过北区污水提升泵站以及金工大道污水管网转移至绿源污水处理厂进行处置。', |
| | | sixPointPosition: { |
| | | lng: 115.10814596, |
| | | lat: 27.27257473 |
| | | }, |
| | | sixtime: 20000, |
| | | |
| | | sevenContent: '排口下游展开应急监测,确保废水没有进入周边水系。', |
| | | sevenPointPosition: { |
| | | lng: 115.10542509, |
| | | lat: 27.29924475 |
| | | }, |
| | | seventime: 25000 |
| | | }, |
| | | |
| | | { |
| | | key: 3, |
| | | title: '典型案例3', |
| | | content: '危险化学品运输事故: 北片区某企业的危化品运输车辆发生侧翻,大量盐酸流至路面,如不采取措施,将造成污染事故,影响到赣江下游水质。', |
| | | |
| | | showModel: true, |
| | | |
| | | |
| | | oneCentent: '2024年09月16日14时,北片区某公司的危化品运输车辆发生侧翻,大量盐酸流至路面。', |
| | | onePointPosition: { |
| | | lng: 115.10639803, |
| | | lat: 27.27848014 |
| | | }, |
| | | onetime: 10000, |
| | | |
| | | twoContent: '立即关闭雨水闸阀。', |
| | | twoPointPosition: { |
| | | lng: 115.10665321, |
| | | lat: 27.27720681 |
| | | }, |
| | | twotime: 13000, |
| | | |
| | | threeContent: '调度金龙水库清水,稀释污染团。', |
| | | threePointPosition: { |
| | | lng: 115.10488545, |
| | | lat: 27.27678110 |
| | | }, |
| | | threetime: 13000, |
| | | |
| | | fourContent: '转输至江西粤鹏环保高新技术开发有限公司事故应急池。', |
| | | fourPointPosition: { |
| | | lng: 115.10499264, |
| | | lat: 27.28048591 |
| | | }, |
| | | fourtime: 18000, |
| | | |
| | | fiveContent: '转输至江西腾龙源环保科技有限公司事故应急池。', |
| | | fivePointPosition: { |
| | | lng: 115.10332118, |
| | | lat: 27.27831698 |
| | | }, |
| | | fivetime: 23000, |
| | | |
| | | sixContent: '根据应急监测方案,立即开展监测,确保污染废水未进入外界水体。', |
| | | sixPointPosition: { |
| | | lng: 115.10665321, |
| | | lat: 27.27720681 |
| | | }, |
| | | sixtime: 28000, |
| | | title: '自定义案例', |
| | | content: '自定义风险源:化工园区某企业发生化学原料危害品泄漏,如不采取措施,将造成污染事故,影响到长江下游水质', |
| | | }, |
| | | ] |
| | | }) |
| | |
| | | }) |
| | | |
| | | tc.addTrack(track) |
| | | let startClick = false |
| | | |
| | | const synth = window.speechSynthesis |
| | | |
| | |
| | | } |
| | | |
| | | const publicFun = (item) => { |
| | | if (startClick) pointStore.updateSharedData(3) |
| | | |
| | | let fourCenter = DC.Position.fromObject(item.fourPointPosition) |
| | | let fourCircle = new DC.Circle(fourCenter, 30) |
| | | fourCircle.setStyle({ |
| | |
| | | dynamicVectorLayer.addOverlay(fourCircle) |
| | | |
| | | let fourContent = new DC.DivIcon( |
| | | new DC.Position(item.fourPointPosition.lng, item.fourPointPosition.lat, 70), |
| | | new DC.Position(item.fourPointPosition.lng, item.fourPointPosition.lat, item.fourPointPosition.alt), |
| | | `<div class="dynamic-map-popup"> |
| | | <div class="content-wrap"> |
| | | <div class="content"> |
| | |
| | | |
| | | window.$viewer.flyToPosition(new DC.Position(item.fourPointPosition.lng, item.fourPointPosition.lat, 400, 0, -90, 0), () => { |
| | | speak(item.fourContent, () => { |
| | | let fiveCenter = DC.Position.fromObject(item.fivePointPosition) |
| | | let fiveCircle = new DC.Circle(fiveCenter, 10) |
| | | fiveCircle.setStyle({ |
| | | material: new DC.CircleWaveMaterialProperty({ |
| | | color: DC.Color.fromRandom(), |
| | | speed: 20, |
| | | count: 5, |
| | | gradient: 0.5 |
| | | if (item.fivePointPosition) { |
| | | let fiveCenter = DC.Position.fromObject(item.fivePointPosition) |
| | | let fiveCircle = new DC.Circle(fiveCenter, 10) |
| | | fiveCircle.setStyle({ |
| | | material: new DC.CircleWaveMaterialProperty({ |
| | | color: DC.Color.fromRandom(), |
| | | speed: 20, |
| | | count: 5, |
| | | gradient: 0.5 |
| | | }) |
| | | }) |
| | | }) |
| | | dynamicVectorLayer.addOverlay(fiveCircle) |
| | | dynamicVectorLayer.addOverlay(fiveCircle) |
| | | |
| | | let fiveContent = new DC.DivIcon( |
| | | new DC.Position(item.fivePointPosition.lng, item.fivePointPosition.lat, 70), |
| | | `<div class="dynamic-event-profile-map-popup"> |
| | | let fiveContent = new DC.DivIcon( |
| | | new DC.Position(item.fivePointPosition.lng, item.fivePointPosition.lat, item.fivePointPosition.alt), |
| | | `<div class="dynamic-event-profile-map-popup"> |
| | | <div class="content-wrap"> |
| | | <div class="content"> |
| | | <p>${item.fiveContent}</p> |
| | |
| | | </div> |
| | | <div class="arrow"></div> |
| | | </div>` |
| | | ) |
| | | dynamicHtmlLayer.addOverlay(fiveContent) |
| | | // 执行对应的事件函数 |
| | | window.$viewer.flyToPosition(new DC.Position(item.fivePointPosition.lng, item.fivePointPosition.lat, 400, 0, -90, 0), () => { |
| | | speak(item.fiveContent, () => { |
| | | if (item.sixPointPosition) { |
| | | let sixCenter = DC.Position.fromObject(item.sixPointPosition) |
| | | let sixCircle = new DC.Circle(sixCenter, 10) |
| | | sixCircle.setStyle({ |
| | | material: new DC.CircleWaveMaterialProperty({ |
| | | color: DC.Color.fromRandom(), |
| | | speed: 20, |
| | | count: 5, |
| | | gradient: 0.5 |
| | | ) |
| | | dynamicHtmlLayer.addOverlay(fiveContent) |
| | | // 执行对应的事件函数 |
| | | window.$viewer.flyToPosition(new DC.Position(item.fivePointPosition.lng, item.fivePointPosition.lat, 400, 0, -90, 0), () => { |
| | | speak(item.fiveContent, () => { |
| | | if (item.sixPointPosition) { |
| | | let sixCenter = DC.Position.fromObject(item.sixPointPosition) |
| | | let sixCircle = new DC.Circle(sixCenter, 10) |
| | | sixCircle.setStyle({ |
| | | material: new DC.CircleWaveMaterialProperty({ |
| | | color: DC.Color.fromRandom(), |
| | | speed: 20, |
| | | count: 5, |
| | | gradient: 0.5 |
| | | }) |
| | | }) |
| | | }) |
| | | dynamicVectorLayer.addOverlay(sixCircle) |
| | | dynamicVectorLayer.addOverlay(sixCircle) |
| | | |
| | | let sixContent = new DC.DivIcon( |
| | | new DC.Position(item.sixPointPosition.lng, item.sixPointPosition.lat, 70), |
| | | `<div class="dynamic-map-popup"> |
| | | let sixContent = new DC.DivIcon( |
| | | new DC.Position(item.sixPointPosition.lng, item.sixPointPosition.lat, 70), |
| | | `<div class="dynamic-map-popup"> |
| | | <div class="content-wrap"> |
| | | <div class="content"> |
| | | <p>${item.sixContent}</p> |
| | |
| | | </div> |
| | | <div class="arrow"></div> |
| | | </div>` |
| | | ) |
| | | dynamicHtmlLayer.addOverlay(sixContent) |
| | | // 执行对应的事件函数 |
| | | window.$viewer.flyToPosition(new DC.Position(item.sixPointPosition.lng, item.sixPointPosition.lat, 400, 0, -90, 0), () => { |
| | | speak(item.sixContent, () => { |
| | | if (item.sevenPointPosition) { |
| | | let sevenCenter = DC.Position.fromObject(item.sevenPointPosition) |
| | | let sevenCircle = new DC.Circle(sevenCenter, 10) |
| | | sevenCircle.setStyle({ |
| | | material: new DC.CircleWaveMaterialProperty({ |
| | | color: DC.Color.fromRandom(), |
| | | speed: 20, |
| | | count: 5, |
| | | gradient: 0.5 |
| | | ) |
| | | dynamicHtmlLayer.addOverlay(sixContent) |
| | | // 执行对应的事件函数 |
| | | window.$viewer.flyToPosition(new DC.Position(item.sixPointPosition.lng, item.sixPointPosition.lat, 400, 0, -90, 0), () => { |
| | | speak(item.sixContent, () => { |
| | | if (item.sevenPointPosition) { |
| | | let sevenCenter = DC.Position.fromObject(item.sevenPointPosition) |
| | | let sevenCircle = new DC.Circle(sevenCenter, 10) |
| | | sevenCircle.setStyle({ |
| | | material: new DC.CircleWaveMaterialProperty({ |
| | | color: DC.Color.fromRandom(), |
| | | speed: 20, |
| | | count: 5, |
| | | gradient: 0.5 |
| | | }) |
| | | }) |
| | | }) |
| | | dynamicVectorLayer.addOverlay(sevenCircle) |
| | | dynamicVectorLayer.addOverlay(sevenCircle) |
| | | |
| | | let sevenContent = new DC.DivIcon( |
| | | new DC.Position(item.sevenPointPosition.lng, item.sevenPointPosition.lat, 70), |
| | | `<div class="dynamic-event-profile-map-popup"> |
| | | let sevenContent = new DC.DivIcon( |
| | | new DC.Position(item.sevenPointPosition.lng, item.sevenPointPosition.lat, 70), |
| | | `<div class="dynamic-event-profile-map-popup"> |
| | | <div class="content-wrap"> |
| | | <div class="content"> |
| | | <p>${item.sevenContent}</p> |
| | |
| | | </div> |
| | | <div class="arrow"></div> |
| | | </div>` |
| | | ) |
| | | dynamicHtmlLayer.addOverlay(sevenContent) |
| | | // 执行对应的事件函数 |
| | | window.$viewer.flyToPosition(new DC.Position(item.sevenPointPosition.lng, item.sevenPointPosition.lat, 400, 0, -90, 0), () => { |
| | | speak(item.sevenContent) |
| | | }, 3) |
| | | } |
| | | }) |
| | | }, 3) |
| | | } |
| | | }) |
| | | }, 3) |
| | | ) |
| | | dynamicHtmlLayer.addOverlay(sevenContent) |
| | | // 执行对应的事件函数 |
| | | window.$viewer.flyToPosition(new DC.Position(item.sevenPointPosition.lng, item.sevenPointPosition.lat, 400, 0, -90, 0), () => { |
| | | speak(item.sevenContent) |
| | | }, 3) |
| | | } |
| | | }) |
| | | }, 3) |
| | | } |
| | | }) |
| | | }, 3) |
| | | } |
| | | }) |
| | | }, 3) |
| | | } |
| | | |
| | | const twoFun = (item, cb = () => { }) => { |
| | | if (startClick) pointStore.updateSharedData(1) |
| | | |
| | | let twoCenter = DC.Position.fromObject(item.twoPointPosition) |
| | | let twoCircle = new DC.Circle(twoCenter, 10) |
| | | twoCircle.setStyle({ |
| | |
| | | dynamicVectorLayer.addOverlay(twoCircle) |
| | | |
| | | let twoContent = new DC.DivIcon( |
| | | new DC.Position(item.twoPointPosition.lng, item.twoPointPosition.lat, 70), |
| | | new DC.Position(item.twoPointPosition.lng, item.twoPointPosition.lat, item.twoPointPosition.alt), |
| | | `<div class="dynamic-event-profile-map-popup"> |
| | | <div class="content-wrap"> |
| | | <div class="content"> |
| | |
| | | |
| | | dynamicLineVectorLayer.addOverlay(polyline) |
| | | } else { |
| | | if (startClick) pointStore.updateSharedData(2) |
| | | |
| | | let threeCenter = DC.Position.fromObject(item.threePointPosition) |
| | | let threeCircle = new DC.Circle(threeCenter, 30) |
| | | threeCircle.setStyle({ |
| | |
| | | } |
| | | |
| | | let threeContent = new DC.DivIcon( |
| | | new DC.Position(item.threePointPosition.lng, item.threePointPosition.lat, 70), |
| | | new DC.Position(item.threePointPosition.lng, item.threePointPosition.lat, item.threePointPosition.alt), |
| | | `<div class="dynamic-event-profile-map-popup"> |
| | | <div class="content-wrap"> |
| | | <div class="content"> |
| | |
| | | }) |
| | | }, 3) |
| | | } |
| | | const parseLineString = (lineString) => { |
| | | // 移除 "LINESTRING(" 和 ")" |
| | | const cleanedString = lineString.replace(/^LINESTRING\(/, '').replace(/\)$/, '') |
| | | |
| | | const schemeStart = (item) => { |
| | | // 使用逗号分割成坐标对字符串数组 |
| | | const coordinatePairsString = cleanedString.split(',') |
| | | |
| | | // 将每个坐标对字符串转换为数组,并解析成浮点数 |
| | | const coordinatesArray = coordinatePairsString.map(pair => { |
| | | const [lon, lat] = pair.trim().split(' ') |
| | | return [parseFloat(lon), parseFloat(lat)] |
| | | }) |
| | | |
| | | return coordinatesArray |
| | | } |
| | | |
| | | let publicEventHandle = { |
| | | oneCentent: 'xx年xx月xx日,企业发生化学原料危害品泄漏。', |
| | | onePointPosition: { |
| | | lng: null, |
| | | lat: null, |
| | | alt: null |
| | | }, |
| | | onetime: 0, |
| | | |
| | | twoContent: '关闭所有可能外溢事故污水的外排口,利用企业自身的围堰、应急池等环境应急防控设施,将污水控制在企业厂区内部。', |
| | | twoPointPosition: { |
| | | lng: null, |
| | | lat: null, |
| | | alt: null |
| | | }, |
| | | twotime: 5000, |
| | | |
| | | threeContent: '通过专用管道或临时转输措施,与相邻企业应急池、园区公共应急池等互联互通,拦截处置事故污水。', |
| | | threePointPosition: { |
| | | lng: null, |
| | | lat: null, |
| | | alt: null |
| | | }, |
| | | threetime: 15000, |
| | | |
| | | fourContent: '利用化工集中区内的坑塘、河道、沟渠以及周边水系等,构建环境应急防控空间,对进出园区的水体实施封闭或分段管控。', |
| | | fourPointPosition: { |
| | | lng: null, |
| | | lat: null, |
| | | alt: null |
| | | }, |
| | | fourtime: 15000, |
| | | } |
| | | |
| | | const wxEntityClick = (e) => { |
| | | const { attrParams } = e.overlay |
| | | clearAll() |
| | | pointStore.updateSharedData(1) |
| | | mapStore.setShowPreLevel(true) |
| | | |
| | | spatialAnalysisPoint({ |
| | | lng: attrParams.lng, |
| | | lat: attrParams.lat |
| | | }).then(res => { |
| | | let arr = res.data.data |
| | | |
| | | publicEventHandle.onePointPosition = { |
| | | lng: attrParams.lng, |
| | | lat: attrParams.lat, |
| | | alt: 16 |
| | | } |
| | | |
| | | arr.forEach(item => { |
| | | if (item.preLevel == 1) { |
| | | publicEventHandle.twoPointPosition = { |
| | | lng: item.lng, |
| | | lat: item.lat, |
| | | alt: item.ele |
| | | } |
| | | } |
| | | if (item.preLevel == 2 && item.geom) { |
| | | var line = window.$turf.lineString(parseLineString(item.geom)) |
| | | var pt = window.$turf.point([attrParams.lng, attrParams.lat]) |
| | | var snapped = window.$turf.nearestPointOnLine(line, pt, { units: "miles" }) |
| | | publicEventHandle.threePointPosition = { |
| | | lng: snapped.geometry.coordinates[0], |
| | | lat: snapped.geometry.coordinates[1], |
| | | alt: 30 |
| | | } |
| | | } |
| | | |
| | | if (item.preLevel == 3) { |
| | | publicEventHandle.fourPointPosition = { |
| | | lng: item.lng, |
| | | lat: item.lat, |
| | | alt: item.ele |
| | | } |
| | | } |
| | | }) |
| | | |
| | | timeOne = setTimeout(() => { |
| | | function oneLoad () { |
| | | let oneCenter = DC.Position.fromObject(publicEventHandle.onePointPosition) |
| | | let oneCircle = new DC.Circle(oneCenter, 20) |
| | | oneCircle.setStyle({ |
| | | material: new DC.CircleWaveMaterialProperty({ |
| | | color: DC.Color.RED.withAlpha(0.9), |
| | | speed: 20, |
| | | count: 5, |
| | | gradient: 0.5 |
| | | }) |
| | | }) |
| | | dynamicVectorLayer.addOverlay(oneCircle) |
| | | |
| | | let oneCentent = new DC.DivIcon( |
| | | new DC.Position(publicEventHandle.onePointPosition.lng, publicEventHandle.onePointPosition.lat, publicEventHandle.onePointPosition.alt), |
| | | `<div class="dynamic-map-popup"> |
| | | <div class="content-wrap"> |
| | | <div class="content"> |
| | | <p>${publicEventHandle.oneCentent}</p> |
| | | </div> |
| | | </div> |
| | | <div class="arrow"></div> |
| | | </div>` |
| | | // <p>特征污染物:${publicEventHandle.specificPollutant}</p> |
| | | ) |
| | | dynamicHtmlLayer.addOverlay(oneCentent) |
| | | |
| | | speak(publicEventHandle.oneCentent, () => { |
| | | twoFun(publicEventHandle, () => { |
| | | createLinePath(publicEventHandle, () => { |
| | | publicFun(publicEventHandle) |
| | | }) |
| | | }) |
| | | }) |
| | | } |
| | | if (publicEventHandle.showModel) { |
| | | oneLoad() |
| | | } else { |
| | | window.$viewer.flyToPosition(new DC.Position(publicEventHandle.onePointPosition.lng, publicEventHandle.onePointPosition.lat, 400, 0, -90, 0), () => { |
| | | oneLoad() |
| | | }, 3) |
| | | } |
| | | }, publicEventHandle.onetime) |
| | | }) |
| | | } |
| | | |
| | | EventBus.on('wxEntityClick', wxEntityClick) |
| | | |
| | | const schemeStart = (item, type) => { |
| | | emit('closePanel') |
| | | clearAll() |
| | | |
| | | if (item.showModel) { |
| | | window.$viewer.flyToPosition("115.10587903,27.28374884,400,0,-90", () => { |
| | | track.setModel(VITE_APP_BASE + 'gltf/car.gltf', { |
| | | show: true, |
| | | scale: 0.0025, |
| | | // nodeTransformations: { |
| | | // rotation: window.$Cesium.Quaternion.fromHeadingPitchRoll(window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0)), |
| | | // } |
| | | }) |
| | | if (type == 1) { |
| | | if (startClick) { |
| | | EventBus.emit('restHandleDelChange', `4-1`) |
| | | EventBus.emit('restHandleDelChange', `4-2`) |
| | | EventBus.emit('restHandleDelChange', `4-3`) |
| | | EventBus.emit('restHandleDelChange', `4-9`) |
| | | } |
| | | |
| | | tc.play() |
| | | tc.viewTrack(track, { |
| | | mode: '2', |
| | | pitch: -45, |
| | | range: 400 |
| | | }) |
| | | }) |
| | | } |
| | | if (item.showModel) { |
| | | window.$viewer.flyToPosition("115.10587903,27.28374884,400,0,-90", () => { |
| | | track.setModel(VITE_APP_BASE + 'gltf/car.gltf', { |
| | | show: true, |
| | | scale: 0.0025, |
| | | // nodeTransformations: { |
| | | // rotation: window.$Cesium.Quaternion.fromHeadingPitchRoll(window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0)), |
| | | // } |
| | | }) |
| | | |
| | | timeOne = setTimeout(() => { |
| | | function oneLoad () { |
| | | let oneCenter = DC.Position.fromObject(item.onePointPosition) |
| | | let oneCircle = new DC.Circle(oneCenter, 20) |
| | | oneCircle.setStyle({ |
| | | material: new DC.CircleWaveMaterialProperty({ |
| | | color: DC.Color.RED.withAlpha(0.9), |
| | | speed: 20, |
| | | count: 5, |
| | | gradient: 0.5 |
| | | tc.play() |
| | | tc.viewTrack(track, { |
| | | mode: '2', |
| | | pitch: -45, |
| | | range: 400 |
| | | }) |
| | | }) |
| | | dynamicVectorLayer.addOverlay(oneCircle) |
| | | } |
| | | |
| | | let oneCentent = new DC.DivIcon( |
| | | new DC.Position(item.onePointPosition.lng, item.onePointPosition.lat, 70), |
| | | `<div class="dynamic-map-popup"> |
| | | timeOne = setTimeout(() => { |
| | | function oneLoad () { |
| | | let oneCenter = DC.Position.fromObject(item.onePointPosition) |
| | | let oneCircle = new DC.Circle(oneCenter, 20) |
| | | oneCircle.setStyle({ |
| | | material: new DC.CircleWaveMaterialProperty({ |
| | | color: DC.Color.RED.withAlpha(0.9), |
| | | speed: 20, |
| | | count: 5, |
| | | gradient: 0.5 |
| | | }) |
| | | }) |
| | | dynamicVectorLayer.addOverlay(oneCircle) |
| | | |
| | | let oneCentent = new DC.DivIcon( |
| | | new DC.Position(item.onePointPosition.lng, item.onePointPosition.lat, item.onePointPosition.alt), |
| | | `<div class="dynamic-map-popup"> |
| | | <div class="content-wrap"> |
| | | <div class="content"> |
| | | <p>${item.oneCentent}</p> |
| | |
| | | </div> |
| | | <div class="arrow"></div> |
| | | </div>` |
| | | // <p>特征污染物:${item.specificPollutant}</p> |
| | | ) |
| | | dynamicHtmlLayer.addOverlay(oneCentent) |
| | | // <p>特征污染物:${item.specificPollutant}</p> |
| | | ) |
| | | dynamicHtmlLayer.addOverlay(oneCentent) |
| | | |
| | | speak(item.oneCentent, () => { |
| | | if (item.key == 2) { |
| | | twoFun(item, () => { |
| | | createLinePath(item, () => { |
| | | publicFun(item) |
| | | speak(item.oneCentent, () => { |
| | | if (item.key == 2) { |
| | | twoFun(item, () => { |
| | | createLinePath(item, () => { |
| | | publicFun(item) |
| | | }) |
| | | }) |
| | | }) |
| | | } else if (item.key == 1) { |
| | | twoFun(item, () => { |
| | | createLinePath(item, () => { |
| | | publicFun(item) |
| | | } else if (item.key == 1) { |
| | | twoFun(item, () => { |
| | | createLinePath(item, () => { |
| | | publicFun(item) |
| | | }) |
| | | }) |
| | | }) |
| | | } else { |
| | | twoFun(item, () => { |
| | | createLinePath(item, () => { |
| | | publicFun(item) |
| | | } else { |
| | | twoFun(item, () => { |
| | | createLinePath(item, () => { |
| | | publicFun(item) |
| | | }) |
| | | }) |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | if (item.showModel) { |
| | | oneLoad() |
| | | } else { |
| | | window.$viewer.flyToPosition(new DC.Position(item.onePointPosition.lng, item.onePointPosition.lat, 400, 0, -90, 0), () => { |
| | | } |
| | | }) |
| | | } |
| | | if (item.showModel) { |
| | | oneLoad() |
| | | }, 3) |
| | | } |
| | | }, item.onetime) |
| | | } else { |
| | | window.$viewer.flyToPosition(new DC.Position(item.onePointPosition.lng, item.onePointPosition.lat, 400, 0, -90, 0), () => { |
| | | oneLoad() |
| | | }, 3) |
| | | } |
| | | }, item.onetime) |
| | | |
| | | startClick = false |
| | | mapStore.setStartCustomWx(startClick) |
| | | } else { |
| | | startClick = true |
| | | mapStore.setStartCustomWx(startClick) |
| | | EventBus.emit('restHandleCheckChange', `4`) |
| | | } |
| | | } |
| | | |
| | | const clearAll = () => { |
| | | mapStore.setShowPreLevel(false) |
| | | window.speechSynthesis.cancel() |
| | | |
| | | lineTime && (clearTimeout(lineTime), lineTime = null) |
| | |
| | | } |
| | | |
| | | onUnmounted(() => { |
| | | if (startClick) { |
| | | EventBus.emit('restHandleDelChange', `4-1`) |
| | | EventBus.emit('restHandleDelChange', `4-2`) |
| | | EventBus.emit('restHandleDelChange', `4-3`) |
| | | EventBus.emit('restHandleDelChange', `4-9`) |
| | | } |
| | | mapStore.setStartCustomWx(false) |
| | | EventBus.off('wxEntityClick', wxEntityClick) |
| | | |
| | | clearAll() |
| | | |
| | | tc.clear() |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="footer-btn"> |
| | | <div class="start-btn" @click="schemeStart(item)"> |
| | | <div class="footer-btn" v-show="item.type == 'demo'"> |
| | | <div class="start-btn" @click="schemeStart(item, 1)"> |
| | | 开始模拟 |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="footer-btn" v-show="item.type != 'demo'"> |
| | | <div class="start-btn" @click="schemeStart(item, 2)"> |
| | | 自定义风险源 |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | .start-btn, |
| | | .start-btn:focus, |
| | | .start-btn:hover { |
| | | padding: 0 10px; |
| | | display: inline-block; |
| | | position: relative; |
| | | min-width: 96px; |
| New file |
| | |
| | | <!-- |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2023-03-10 15:27:59 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-10-26 14:49:05 |
| | | * @FilePath: \bigScreen\src\views\survey\components\rightContainer.vue |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. |
| | | --> |
| | | <script setup> |
| | | import fireSource from './box/fireSource.vue' |
| | | </script> |
| | | |
| | | <template> |
| | | <div class="right-container"> |
| | | <div class="fire-source box"> |
| | | <title-box> |
| | | <template #titleName> |
| | | </template> |
| | | </title-box> |
| | | <fire-source></fire-source> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <style lang="scss" scoped> |
| | | .right-container { |
| | | display: flex; |
| | | flex-direction: column; |
| | | padding: 20px; |
| | | position: absolute; |
| | | top: 0; |
| | | right: 0; |
| | | width: 440px; |
| | | height: 100%; |
| | | pointer-events: auto; |
| | | // background: none; |
| | | |
| | | .box { |
| | | margin-top: 20px; |
| | | |
| | | .header { |
| | | height: 32px; |
| | | background: url(/img/bg/sub-title.png) no-repeat; |
| | | } |
| | | } |
| | | |
| | | .fire-source { |
| | | flex: 3; |
| | | } |
| | | |
| | | .occur-statistics { |
| | | flex: 3; |
| | | } |
| | | |
| | | .fire-trend { |
| | | flex: 4; |
| | | } |
| | | |
| | | .box:first-child { |
| | | margin-top: 0; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2023-03-10 15:27:59 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-11-25 20:33:22 |
| | | * @LastEditTime: 2025-02-12 19:37:16 |
| | | * @FilePath: \bigScreen\src\views\pd\index.vue |
| | | * @Description: 综合设计 |
| | | * |
| | |
| | | import dynamicPanel from './components/dynamicPanel.vue' |
| | | import { CaretLeft, CaretRight } from '@element-plus/icons-vue' |
| | | import { nextTick, onUnmounted } from 'vue' |
| | | import rightContainer from './components/rightContainer.vue' |
| | | |
| | | import { useMap } from 'store/map' |
| | | const mapStore = useMap() |
| | | |
| | | const showPanel = ref(true) |
| | | |
| | |
| | | } |
| | | |
| | | nextTick(() => { |
| | | EventBus.emit('restHandleCheckChange', `3-3-4`) |
| | | EventBus.emit('restHandleCheckChange', `3-9`) |
| | | }) |
| | | |
| | | onUnmounted(() => { |
| | | EventBus.emit('restHandleDelChange', `3-3-4`) |
| | | EventBus.emit('restHandleDelChange', `3-9`) |
| | | }) |
| | | </script> |
| | | |
| | |
| | | </div> |
| | | |
| | | <dynamic-panel v-show="showPanel" @closePanel="showPanelChange"></dynamic-panel> |
| | | |
| | | <right-container v-show="mapStore.showPreLevel"></right-container> |
| | | </div> |
| | | </template> |
| | | |