From 94c8c790b3fd25579b859142707b7d21eca01d4d Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 16 Dec 2024 20:08:02 +0800
Subject: [PATCH] 应急空间对应图标增加、园区范围显示增加
---
src/pages/map/components/scomponents/layersControl.vue | 30 +-
/dev/null | 687 -------------------------------------------------
src/views/pd/index.vue | 55 ---
src/views/pac/components/box/dataContent.vue | 16
public/img/mapicon/wd.png | 0
public/img/mapicon/zb.png | 0
public/img/mapicon/ql.png | 0
public/img/mapicon/sd.png | 0
public/img/mapicon/kt.png | 0
9 files changed, 27 insertions(+), 761 deletions(-)
diff --git a/public/img/mapicon/kt.png b/public/img/mapicon/kt.png
new file mode 100644
index 0000000..e1e345b
--- /dev/null
+++ b/public/img/mapicon/kt.png
Binary files differ
diff --git a/public/img/mapicon/ql.png b/public/img/mapicon/ql.png
new file mode 100644
index 0000000..4b3293c
--- /dev/null
+++ b/public/img/mapicon/ql.png
Binary files differ
diff --git a/public/img/mapicon/sd.png b/public/img/mapicon/sd.png
new file mode 100644
index 0000000..bed3a99
--- /dev/null
+++ b/public/img/mapicon/sd.png
Binary files differ
diff --git a/public/img/mapicon/wd.png b/public/img/mapicon/wd.png
new file mode 100644
index 0000000..7f5e0c8
--- /dev/null
+++ b/public/img/mapicon/wd.png
Binary files differ
diff --git a/public/img/mapicon/zb.png b/public/img/mapicon/zb.png
new file mode 100644
index 0000000..598232c
--- /dev/null
+++ b/public/img/mapicon/zb.png
Binary files differ
diff --git a/src/pages/map/components/scomponents/layersControl.vue b/src/pages/map/components/scomponents/layersControl.vue
index 6b55387..847184e 100644
--- a/src/pages/map/components/scomponents/layersControl.vue
+++ b/src/pages/map/components/scomponents/layersControl.vue
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2024-10-31 10:47:29
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-12-16 19:15:27
+ * @LastEditTime: 2024-12-16 20:01:40
* @FilePath: \bigScreen\src\pages\map\components\scomponents\layersControl.vue
* @Description:
*
@@ -293,10 +293,10 @@
type: 6,
size: 1000
},
- backgroundIcon: VITE_APP_BASE + 'img/mapicon/yjb.png',
- className: 'yjb-box',
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/kt.png',
+ className: 'sk-box',
showPanel: false,
- layerName: 'yjb',
+ layerName: 'kt',
incident: (e) => {
const { attrParams } = e.overlay
// 删除
@@ -338,7 +338,7 @@
backgroundIcon: VITE_APP_BASE + 'img/mapicon/gouqu.png',
className: 'xfs-box',
showPanel: false,
- layerName: 'gouqu'
+ layerName: 'mq'
},
{
id: '3-8',
@@ -350,10 +350,10 @@
type: 8,
size: 1000
},
- backgroundIcon: VITE_APP_BASE + 'img/mapicon/wsclc.png',
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/ql.png',
className: 'xfs-box',
showPanel: false,
- layerName: 'fsclz'
+ layerName: 'ql'
},
{
parentId: '3',
@@ -366,10 +366,10 @@
type: 9,
size: 1000
},
- backgroundIcon: VITE_APP_BASE + 'img/mapicon/psk.png',
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/sd.png',
className: 'xfs-box',
showPanel: false,
- layerName: 'psk',
+ layerName: 'sd',
incident: (e) => {
const { attrParams } = e.overlay
// 删除
@@ -406,10 +406,10 @@
type: 10,
size: 1000
},
- backgroundIcon: VITE_APP_BASE + 'img/mapicon/wsc.png',
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/wd.png',
className: 'xfs-box',
showPanel: false,
- layerName: 'wsc'
+ layerName: 'wd'
},
{
id: '3-11',
@@ -421,10 +421,10 @@
type: 11,
size: 1000
},
- backgroundIcon: VITE_APP_BASE + 'img/mapicon/wsc.png',
- className: 'xfs-box',
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/zb.png',
+ className: 'sk-box',
showPanel: false,
- layerName: 'wsc'
+ layerName: 'zb'
}
]
},
@@ -554,7 +554,7 @@
skipLevelOfDetail: true,
baseScreenSpaceError: 1024,
- maximumScreenSpaceError: 128, // 数值加大,能让最终成像变模糊
+ maximumScreenSpaceError: 8, // 数值加大,能让最终成像变模糊
skipScreenSpaceErrorFactor: 128,
skipLevels: 5,
immediatelyLoadDesiredLevelOfDetail: false,
diff --git a/src/views/pac/components/box/dataContent.vue b/src/views/pac/components/box/dataContent.vue
index 6dfb76b..d2f32b8 100644
--- a/src/views/pac/components/box/dataContent.vue
+++ b/src/views/pac/components/box/dataContent.vue
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2023-03-10 15:27:59
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-12-16 18:08:11
+ * @LastEditTime: 2024-12-16 20:04:29
* @FilePath: \bigScreen\src\views\pac\components\box\dataContent.vue
* @Description:
*
@@ -67,8 +67,8 @@
},
{
type: 6,
- backgroundIcon: VITE_APP_BASE + 'img/mapicon/yjb.png',
- className: 'yjb-box',
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/kt.png',
+ className: 'sk-box',
},
{
type: 7,
@@ -77,23 +77,23 @@
},
{
type: 8,
- backgroundIcon: VITE_APP_BASE + 'img/mapicon/wsclc.png',
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/ql.png',
className: 'xfs-box',
},
{
type: 9,
- backgroundIcon: VITE_APP_BASE + 'img/mapicon/psk.png',
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/sd.png',
className: 'xfs-box',
},
{
type: 10,
- backgroundIcon: VITE_APP_BASE + 'img/mapicon/wsc.png',
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/wd.png',
className: 'xfs-box',
},
{
type: 11,
- backgroundIcon: VITE_APP_BASE + 'img/mapicon/wsc.png',
- className: 'xfs-box',
+ backgroundIcon: VITE_APP_BASE + 'img/mapicon/zb.png',
+ className: 'sk-box',
}
]
diff --git a/src/views/pd/components/dynamicPanel copy.vue b/src/views/pd/components/dynamicPanel copy.vue
deleted file mode 100644
index ae38b6a..0000000
--- a/src/views/pd/components/dynamicPanel copy.vue
+++ /dev/null
@@ -1,642 +0,0 @@
-<!--
- * @Author: shuishen 1109946754@qq.com
- * @Date: 2024-11-09 15:41:35
- * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-11-28 19:36:24
- * @FilePath: \bigScreen\src\views\pd\components\dynamicPanel.vue
- * @Description:
- *
- * Copyright (c) 2024 by shuishen, All Rights Reserved.
--->
-<script setup>
-const { VITE_APP_BASE } = import.meta.env
-
-const emit = defineEmits(['closePanel'])
-import { onUnmounted } from 'vue'
-
-let lineTime = null
-let timeOne = null
-let timeTwo = null
-let timeThree = null
-let timeFour = null
-let timeFive = null
-
-const panelData = reactive({
- data: [
- {
- key: 1,
- title: '典型案例1',
- content: '南片区松节油储罐区泄漏事故: 南片区某企业松节油储罐泄漏,如不采取措施,将造成污染事故,影响到赣江下游水质。',
-
- oneCentent: '2024年11月11日11时,南片区某公司松节油储罐泄漏。企业关闭前置阀门切断泄漏源,向罐内适量注水,抬高液位。',
- onePointPosition: {
- lng: 115.10175740,
- lat: 27.27356477
- },
- onetime: 0,
-
- twoContent: '应立即启动应急池的使用,将泄漏的松节油引导至应急池中。',
- twoPointPosition: {
- lng: 115.10198913,
- lat: 27.27343615
- },
- twotime: 5000,
-
- lineCenter: {
- lng: 115.10343807,
- lat: 27.27256126
- },
- linePosition: '115.10341051,27.27251643,80;115.10357817,27.27278003,80',
- lineTime: 10000,
-
- threeContent: '关闭绿源污水处理厂旁雨水排口,拦截污染水体。',
- threePointPosition: {
- lng: 115.10921467,
- lat: 27.27166382
- },
- threetime: 15000,
-
- fourContent: '启用绿源污水处理厂事故应急池,将已拦截废水泵入应急池。',
- fourPointPosition: {
- lng: 115.10814596,
- lat: 27.27257473
- },
- fourtime: 20000,
-
- fiveContent: '应急指挥部指导企业处理受污染废水, 监测公共应急池水质 ,确保达标后安全转运至绿源污水处理厂。',
- fivePointPosition: {
- lng: 115.10843364,
- lat: 27.27320219
- },
- fivetime: 25000,
- },
- {
- key: 2,
- title: '典型案例2',
- content: '北片区碱类腐蚀性物质泄漏事故: 北片区某企业在生产过程中操作失误,大量含碱废水泄漏,如不采取措施,将造成污染事故,影响到赣江下游水质。',
-
- oneCentent: '2024年09月16日14时,北片区某公司在生产过程中操作失误,大量含碱废水泄漏。企业关闭前置阀门,切断泄漏源,用砂土等筑堤堵截泄漏液体或者引流到安全地点。',
- onePointPosition: {
- lng: 115.10467136,
- lat: 27.29415383
- },
- onetime: 0,
-
- lineCenter: {
- lng: 115.10627858,
- lat: 27.29434439
- },
- linePosition: '115.10627726,27.29408853,80;115.10627703,27.29456132,80',
- lineTime: 5000,
-
- twoContent: '园区关闭北区雨水排口,拦截污染水体。',
- twoPointPosition: {
- lng: 115.10542509,
- lat: 27.29924475
- },
- twotime: 10000,
-
- threeContent: '园区启用北区公共应急池(拟建),将已拦截废水泵入应急池。',
- threePointPosition: {
- lng: 115.106600,
- lat: 27.296891
- },
- threetime: 15000,
-
- fourContent: '将拦截废水从应急池中通过北区污水提升泵站转移至绿源污水处理厂进行处置。',
- fourPointPosition: {
- lng: 115.10814596,
- lat: 27.27257473
- },
- fourtime: 20000,
-
- fiveContent: '排口下游展开应急监测,确保废水没有进入周边水系。',
- fivePointPosition: {
- lng: 115.10921467,
- lat: 27.27166382
- },
- fivetime: 25000
- },
- {
- key: 3,
- title: '典型案例3',
- content: '危险化学品运输事故: 北片区某企业的危化品运输车辆发生侧翻,大量盐酸流至路面,如不采取措施,将造成污染事故,影响到赣江下游水质。',
-
- showModel: true,
-
-
- oneCentent: '2024年09月16日14时,北片区某公司的危化品运输车辆发生侧翻,大量盐酸流至路面。',
- onePointPosition: {
- lng: 115.10639786,
- lat: 27.28116943
- },
- onetime: 8000,
-
- twoContent: '调度金龙水库清水,稀释污染团。',
- twoPointPosition: {
- lng: 115.10488545,
- lat: 27.27678110
- },
- twotime: 13000,
-
- threeContent: '转输至江西粤鹏环保高新技术开发有限公司事故应急池、初期雨水池。',
- threePointPosition: {
- lng: 115.10545135,
- lat: 27.28043872
- },
- threetime: 18000,
-
- fourContent: '转输至江西腾龙源环保科技有限公司事故应急池、初期雨水池。',
- fourPointPosition: {
- lng: 115.10332118,
- lat: 27.27831698
- },
- fourtime: 23000,
- },
- ]
-})
-
-let dynamicVectorLayer = new DC.VectorLayer('dynamicVectorLayer').addTo(window.$viewer)
-let dynamicHtmlLayer = new DC.HtmlLayer('dynamicHtmlLayer').addTo(window.$viewer)
-let dynamicLineVectorLayer = new DC.VectorLayer('dynamicLineVectorLayer').addTo(window.$viewer)
-
-let modelPosition = [
- {
- lng: 115.10601196,
- lat: 27.28378838
- },
- {
- lng: 115.10602432,
- lat: 27.28339800
- },
- {
- lng: 115.10600450,
- lat: 27.28319338,
- },
- {
- lng: 115.10605031,
- lat: 27.28294272,
- },
- {
- lng: 115.10610404,
- lat: 27.28267996
- },
- {
- lng: 115.10614202,
- lat: 27.28248175
- },
- {
- lng: 115.10620011,
- lat: 27.28221311
- },
- {
- lng: 115.10640155,
- lat: 27.28121605
- },
-
-]
-
-let positions = modelPosition.map(i => [i.lng, i.lat, i.ele || 64].join(',')).join(';')
-let tc = new DC.TrackController(window.$viewer)
-let track = new DC.Track(positions, 5)
-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)),
- // }
-})
-
-tc.addTrack(track)
-
-const schemeStart = (item) => {
- 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)),
- // }
- })
-
- tc.play()
- tc.viewTrack(track, {
- mode: '2',
- pitch: -45,
- range: 400
- })
- })
- }
-
- 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, 70),
- `<div class="dynamic-map-popup">
- <div class="content-wrap">
- <div class="content">
- <p>${item.oneCentent}</p>
- </div>
- </div>
- <div class="arrow"></div>
- </div>`
- // <p>特征污染物:${item.specificPollutant}</p>
- )
- dynamicHtmlLayer.addOverlay(oneCentent)
- }
- if (item.showModel) {
- oneLoad()
- } else {
- window.$viewer.flyToPosition(new DC.Position(item.onePointPosition.lng, item.onePointPosition.lat, 400, 0, -90, 0), () => {
- oneLoad()
- }, 3)
- }
- }, item.onetime)
-
- item.linePosition && (lineTime = setTimeout(() => {
- let polyline = new DC.Polyline(item.linePosition)
- polyline.setStyle({
- width: 20,
- material: new DC.PolylineImageTrailMaterialProperty({
- color: DC.Color.RED,
- speed: 20,
- image: VITE_APP_BASE + 'img/mapicon/right.png',
- repeat: { x: 5, y: 1 }
- }),
- clampToGround: false
- })
-
- dynamicLineVectorLayer.addOverlay(polyline)
-
- window.$viewer.flyToPosition(new DC.Position(item.lineCenter.lng, item.lineCenter.lat, 400, 0, -90, 0), () => { }, 3)
- }, item.lineTime))
-
- timeTwo = setTimeout(() => {
- let twoCenter = DC.Position.fromObject(item.twoPointPosition)
- let twoCircle = new DC.Circle(twoCenter, 10)
- twoCircle.setStyle({
- material: new DC.CircleWaveMaterialProperty({
- color: DC.Color.fromRandom(),
- speed: 20,
- count: 5,
- gradient: 0.5
- })
- })
- dynamicVectorLayer.addOverlay(twoCircle)
-
- let twoContent = new DC.DivIcon(
- new DC.Position(item.twoPointPosition.lng, item.twoPointPosition.lat, 70),
- `<div class="dynamic-event-profile-map-popup">
- <div class="content-wrap">
- <div class="content">
- <p>${item.twoContent}</p>
- </div>
- </div>
- <div class="arrow"></div>
- </div>`
- // <p>特征污染物:${item.specificPollutant}</p>
- )
- dynamicHtmlLayer.addOverlay(twoContent)
- // 执行对应的事件函数
- window.$viewer.flyToPosition(new DC.Position(item.twoPointPosition.lng, item.twoPointPosition.lat, 400, 0, -90, 0), () => { }, 3)
- }, item.twotime)
-
- timeThree = setTimeout(() => {
- let threeCenter = DC.Position.fromObject(item.threePointPosition)
- let threeCircle = new DC.Circle(threeCenter, 30)
- threeCircle.setStyle({
- material: new DC.CircleWaveMaterialProperty({
- color: DC.Color.fromRandom(),
- speed: 20,
- count: 5,
- gradient: 0.5
- })
- })
- dynamicVectorLayer.addOverlay(threeCircle)
-
- let threeContent = new DC.DivIcon(
- new DC.Position(item.threePointPosition.lng, item.threePointPosition.lat, 70),
- `<div class="dynamic-map-popup">
- <div class="content-wrap">
- <div class="content">
- <p>${item.threeContent}</p>
- </div>
- </div>
- <div class="arrow"></div>
- </div>`
- )
- dynamicHtmlLayer.addOverlay(threeContent)
-
- window.$viewer.flyToPosition(new DC.Position(item.threePointPosition.lng, item.threePointPosition.lat, 400, 0, -90, 0), () => { }, 3)
- }, item.threetime)
-
- item.fourPointPosition && (timeFour = setTimeout(() => {
- let FourCenter = DC.Position.fromObject(item.fourPointPosition)
- let fourCircle = new DC.Circle(FourCenter, 10)
- fourCircle.setStyle({
- material: new DC.CircleWaveMaterialProperty({
- color: DC.Color.fromRandom(),
- speed: 20,
- count: 5,
- gradient: 0.5
- })
- })
- dynamicVectorLayer.addOverlay(fourCircle)
-
- let fourContent = new DC.DivIcon(
- new DC.Position(item.fourPointPosition.lng, item.fourPointPosition.lat, 70),
- `<div class="dynamic-event-profile-map-popup">
- <div class="content-wrap">
- <div class="content">
- <p>${item.fourContent}</p>
- </div>
- </div>
- <div class="arrow"></div>
- </div>`
- )
- dynamicHtmlLayer.addOverlay(fourContent)
- // 执行对应的事件函数
- window.$viewer.flyToPosition(new DC.Position(item.fourPointPosition.lng, item.fourPointPosition.lat, 400, 0, -90, 0), () => { }, 3)
- }, item.fourtime))
-
- item.fivePointPosition && (timeFive = setTimeout(() => {
- 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)
-
- let fiveContent = new DC.DivIcon(
- new DC.Position(item.fivePointPosition.lng, item.fivePointPosition.lat, 70),
- `<div class="dynamic-event-profile-map-popup">
- <div class="content-wrap">
- <div class="content">
- <p>${item.fiveContent}</p>
- </div>
- </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), () => { }, 3)
- }, item.fivetime))
-}
-
-const clearAll = () => {
- lineTime && (clearTimeout(lineTime), lineTime = null)
- timeOne && (clearTimeout(timeOne), timeOne = null)
- timeTwo && (clearTimeout(timeTwo), timeTwo = null)
- timeThree && (clearTimeout(timeThree), timeThree = null)
- timeFour && (clearTimeout(timeFour), timeFour = null)
- timeFive && (clearTimeout(timeFive), timeFive = null)
-
- track.setModel(VITE_APP_BASE + 'gltf/car.gltf', {
- show: false,
- scale: 0.0025,
- // nodeTransformations: {
- // rotation: window.$Cesium.Quaternion.fromHeadingPitchRoll(window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0)),
- // }
- })
-
- dynamicVectorLayer.clear()
- dynamicHtmlLayer.clear()
- dynamicLineVectorLayer.clear()
-}
-
-onUnmounted(() => {
- clearAll()
-
- tc.clear()
- dynamicVectorLayer && window.$viewer && window.$viewer.removeLayer(dynamicVectorLayer)
- dynamicHtmlLayer && window.$viewer && window.$viewer.removeLayer(dynamicHtmlLayer)
- dynamicLineVectorLayer && window.$viewer && window.$viewer.removeLayer(dynamicLineVectorLayer)
-
- tc = null
- track = null
- dynamicVectorLayer = null
- dynamicHtmlLayer = null
- dynamicLineVectorLayer = null
-})
-</script>
-
-<template>
- <div class="panel-container no-select">
- <el-carousel :autoplay="false" :interval="4000" type="card" height="360px">
- <el-carousel-item v-for="item, index in panelData.data" :key="index">
- <template #>
- <div class="content-box flex f-d-c">
- <div class="title">
- {{ item.title }}
- </div>
- <div class="content h0 flex-1">
- <div class="bg-box">
-
- </div>
-
- <div class="describe-box">
- {{ item.content }}
- </div>
- </div>
-
- <div class="footer-btn">
- <div class="start-btn" @click="schemeStart(item)">
- 开始模拟
- </div>
- </div>
- </div>
- </template>
- </el-carousel-item>
- </el-carousel>
- </div>
-</template>
-
-<style scoped lang="scss">
-.panel-container {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- margin: auto;
- width: 960px;
- height: 440px;
- pointer-events: all;
-
- ::v-deep(.el-carousel) {
- .el-carousel__item {
- background: #2E4274;
-
- .content-box {
- padding: 10px 0;
- width: 100%;
- height: 100%;
- color: #fff;
-
- .title {
- padding-left: 40px;
- height: 80px;
- line-height: 80px;
- font-size: 44px;
- font-weight: bold;
- font-style: initial;
- background: #3a7bd5;
- /* fallback for old browsers */
- background: -webkit-linear-gradient(to right, #3a7bd5, rgba(255, 255, 255, 0.1));
- /* Chrome 10-25, Safari 5.1-6 */
- background: linear-gradient(to right, #3a7bd5, rgba(255, 255, 255, 0.1));
- /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
- }
-
- .content {
- margin-top: 20px;
- padding: 0 20px;
-
- .describe-box {
- line-height: 36px;
- }
- }
-
- .footer-btn {
- margin-bottom: 40px;
- height: 40px;
- line-height: 40px;
- text-align: center;
- }
- }
- }
- }
-}
-
-.no-select {
- user-select: none;
- /* Standard syntax */
- -webkit-user-select: none;
- /* Safari/Chrome */
- -moz-user-select: none;
- /* Firefox */
- -ms-user-select: none;
- /* Internet Explorer/Edge */
-}
-
-.start-btn,
-.start-btn:focus,
-.start-btn:hover {
- display: inline-block;
- position: relative;
- min-width: 96px;
- border: none;
- border-radius: 8px;
- background: #491cc5;
- /* fallback for old browsers */
- background: -webkit-linear-gradient(to bottom, #491cc5, #5f80f5);
- /* Chrome 10-25, Safari 5.1-6 */
- background: linear-gradient(to bottom, #491cc5, #5f80f5);
- /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
-
- color: #fff;
- font-size: 1rem;
- font-weight: bold;
- text-align: center;
- text-decoration: none;
- text-transform: uppercase;
- box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
- transition: transform ease-in 0.1s, box-shadow ease-in 0.25s;
- transform: skewX(8deg);
-}
-
-.start-btn:before,
-.start-btn:after {
- content: "";
- display: block;
- position: absolute;
- width: 140%;
- height: 100%;
- left: -20%;
- z-index: -1000;
- transition: all ease-in-out 0.5s;
- background-repeat: no-repeat;
-}
-
-.start-btn:before {
- display: none;
- top: -75%;
- background-image: radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, transparent 20%, #3E56B2 20%, transparent 30%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, transparent 10%, #3E56B2 15%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%);
- background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%, 10% 10%, 18% 18%;
-}
-
-.start-btn:after {
- display: none;
- bottom: -75%;
- background-image: radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, transparent 10%, #3E56B2 15%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%);
- background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 10% 10%, 20% 20%;
-}
-
-.start-btn:active {
- transform: scale(0.9);
- background-color: #5e7ae9;
- box-shadow: 0 2px 25px rgba(94, 122, 233, .2);
-}
-
-.start-btn:active:before {
- display: block;
- animation: anim-top ease-in-out 0.75s forwards;
-}
-
-.start-btn:active:after {
- display: block;
- animation: anim-bottom ease-in-out 0.75s forwards;
-}
-
-@keyframes anim-top {
- 0% {
- background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%;
- }
-
- 50% {
- background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%;
- }
-
- 100% {
- background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%;
- background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
- }
-}
-
-@keyframes anim-bottom {
- 0% {
- background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%;
- }
-
- 50% {
- background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%;
- }
-
- 100% {
- background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%;
- background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
- }
-}
-</style>
\ No newline at end of file
diff --git a/src/views/pd/components/dynamicPanel.vue b/src/views/pd/components/dynamicPanel.vue
deleted file mode 100644
index 03487bd..0000000
--- a/src/views/pd/components/dynamicPanel.vue
+++ /dev/null
@@ -1,687 +0,0 @@
-<!--
- * @Author: shuishen 1109946754@qq.com
- * @Date: 2024-11-09 15:41:35
- * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-12-06 16:50:50
- * @FilePath: \bigScreen\src\views\pd\components\dynamicPanel.vue
- * @Description:
- *
- * Copyright (c) 2024 by shuishen, All Rights Reserved.
--->
-<script setup>
-const { VITE_APP_BASE } = import.meta.env
-
-const emit = defineEmits(['closePanel'])
-import { onUnmounted } from 'vue'
-
-let lineTime = null
-let timeOne = null
-let timeTwo = null
-let timeThree = null
-let timeFour = null
-let timeFive = null
-
-const panelData = reactive({
- data: [
- {
- key: 1,
- title: '典型案例1',
- content: '南片区松节油储罐区泄漏事故: 南片区某企业松节油储罐泄漏,如不采取措施,将造成污染事故,影响到赣江下游水质。',
-
- oneCentent: '2024年11月11日11时,南片区某公司松节油储罐泄漏。企业关闭前置阀门切断泄漏源,向罐内适量注水,抬高液位。',
- onePointPosition: {
- lng: 115.10175740,
- lat: 27.27356477
- },
- onetime: 0,
-
- twoContent: '应立即启动应急池的使用,将泄漏的松节油引导至应急池中。',
- twoPointPosition: {
- lng: 115.10198913,
- lat: 27.27343615
- },
- twotime: 5000,
-
- lineCenter: {
- lng: 115.10343807,
- lat: 27.27256126
- },
- linePosition: '115.10341051,27.27251643,64;115.10357817,27.27278003,64',
- lineTime: 5000,
-
- threeContent: '关闭绿源污水处理厂旁雨水排口,拦截污染水体。',
- threePointPosition: {
- lng: 115.10921467,
- lat: 27.27166382
- },
- threetime: 15000,
-
- fourContent: '启用绿源污水处理厂事故应急池,将已拦截废水泵入应急池。',
- fourPointPosition: {
- lng: 115.10814596,
- lat: 27.27257473
- },
- fourtime: 20000,
-
- fiveContent: '应急指挥部指导企业处理受污染废水, 监测公共应急池水质 ,确保达标后安全转运至绿源污水处理厂。',
- fivePointPosition: {
- lng: 115.10843364,
- lat: 27.27320219
- },
- fivetime: 25000,
- },
- {
- key: 2,
- title: '典型案例2',
- content: '北片区碱类腐蚀性物质泄漏事故: 北片区某企业在生产过程中操作失误,大量含碱废水泄漏,如不采取措施,将造成污染事故,影响到赣江下游水质。',
-
- oneCentent: '2024年09月16日14时,北片区某公司在生产过程中操作失误,大量含碱废水泄漏。企业关闭前置阀门,切断泄漏源,用砂土等筑堤堵截泄漏液体或者引流到安全地点。',
- onePointPosition: {
- lng: 115.10467136,
- lat: 27.29415383
- },
- onetime: 0,
-
- lineCenter: {
- lng: 115.10627858,
- lat: 27.29434439
- },
- linePosition: '115.10627726,27.29408853,64;115.10627703,27.29456132,64',
- lineTime: 5000,
-
- twoContent: '园区关闭北区雨水排口,拦截污染水体。',
- twoPointPosition: {
- lng: 115.10629605,
- lat: 27.29785816
- },
- twotime: 10000,
-
- threeContent: '园区启用北区公共应急池(拟建),将已拦截废水泵入应急池。',
- threePointPosition: {
- lng: 115.106600,
- lat: 27.296891
- },
- threetime: 15000,
-
- fourContent: '将拦截废水从应急池中通过北区污水提升泵站转移至绿源污水处理厂进行处置。',
- fourPointPosition: {
- lng: 115.10814596,
- lat: 27.27257473
- },
- fourtime: 20000,
-
- fiveContent: '排口下游展开应急监测,确保废水没有进入周边水系。',
- fivePointPosition: {
- lng: 115.10542509,
- lat: 27.29924475
- },
- fivetime: 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.10488545,
- lat: 27.27678110
- },
- twotime: 13000,
-
- threeContent: '转输至江西粤鹏环保高新技术开发有限公司事故应急池、初期雨水池。',
- threePointPosition: {
- lng: 115.10545135,
- lat: 27.28043872
- },
- threetime: 18000,
-
- fourContent: '转输至江西腾龙源环保科技有限公司事故应急池、初期雨水池。',
- fourPointPosition: {
- lng: 115.10332118,
- lat: 27.27831698
- },
- fourtime: 23000,
- },
- ]
-})
-
-let dynamicVectorLayer = new DC.VectorLayer('dynamicVectorLayer').addTo(window.$viewer)
-let dynamicHtmlLayer = new DC.HtmlLayer('dynamicHtmlLayer').addTo(window.$viewer)
-let dynamicLineVectorLayer = new DC.VectorLayer('dynamicLineVectorLayer').addTo(window.$viewer)
-
-let modelPosition = [
- {
- lng: 115.10640155,
- lat: 27.28121605
- },
- {
- lng: 115.10641953,
- lat: 27.28084006
- },
- {
- lng: 115.10641886,
- lat: 27.28026147
- },
- {
- lng: 115.10642486,
- lat: 27.27994712,
- },
- {
- lng: 115.10640964,
- lat: 27.27928393,
- },
- {
- lng: 115.10639803,
- lat: 27.27848014
- }
-]
-
-let positions = modelPosition.map(i => [i.lng, i.lat, i.ele || 64].join(',')).join(';')
-let tc = new DC.TrackController(window.$viewer)
-let track = new DC.Track(positions, 5)
-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)),
- // }
-})
-
-tc.addTrack(track)
-
-const synth = window.speechSynthesis
-
-
-const speak = (msg, continueFun = () => { }) => {
- let u = new SpeechSynthesisUtterance()
- let voices = synth.getVoices()
- u.text = msg
- u.rate = 2
- let findObj = voices.some(voice => voice.lang == 'zh-CN')
-
- if (!findObj) {
- u.lang = 'zh-TW'
- }
-
- u.onend = () => {
- continueFun()
- }
- synth.speak(u)
-}
-
-const publicFun = (item) => {
- let threeCenter = DC.Position.fromObject(item.threePointPosition)
- let threeCircle = new DC.Circle(threeCenter, 30)
- threeCircle.setStyle({
- material: new DC.CircleWaveMaterialProperty({
- color: DC.Color.fromRandom(),
- speed: 20,
- count: 5,
- gradient: 0.5
- })
- })
- dynamicVectorLayer.addOverlay(threeCircle)
-
- let threeContent = new DC.DivIcon(
- new DC.Position(item.threePointPosition.lng, item.threePointPosition.lat, 70),
- `<div class="dynamic-map-popup">
- <div class="content-wrap">
- <div class="content">
- <p>${item.threeContent}</p>
- </div>
- </div>
- <div class="arrow"></div>
- </div>`
- )
- dynamicHtmlLayer.addOverlay(threeContent)
-
- window.$viewer.flyToPosition(new DC.Position(item.threePointPosition.lng, item.threePointPosition.lat, 400, 0, -90, 0), () => {
- speak(item.threeContent, () => {
- let FourCenter = DC.Position.fromObject(item.fourPointPosition)
- let fourCircle = new DC.Circle(FourCenter, 10)
- fourCircle.setStyle({
- material: new DC.CircleWaveMaterialProperty({
- color: DC.Color.fromRandom(),
- speed: 20,
- count: 5,
- gradient: 0.5
- })
- })
- dynamicVectorLayer.addOverlay(fourCircle)
-
- let fourContent = new DC.DivIcon(
- new DC.Position(item.fourPointPosition.lng, item.fourPointPosition.lat, 70),
- `<div class="dynamic-event-profile-map-popup">
- <div class="content-wrap">
- <div class="content">
- <p>${item.fourContent}</p>
- </div>
- </div>
- <div class="arrow"></div>
- </div>`
- )
- dynamicHtmlLayer.addOverlay(fourContent)
- // 执行对应的事件函数
- window.$viewer.flyToPosition(new DC.Position(item.fourPointPosition.lng, item.fourPointPosition.lat, 400, 0, -90, 0), () => {
- speak(item.fourContent, () => {
- 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)
-
- let fiveContent = new DC.DivIcon(
- new DC.Position(item.fivePointPosition.lng, item.fivePointPosition.lat, 70),
- `<div class="dynamic-event-profile-map-popup">
- <div class="content-wrap">
- <div class="content">
- <p>${item.fiveContent}</p>
- </div>
- </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)
- }, 3)
- }
- })
- }, 3)
- })
- }, 3)
-}
-
-const twoFun = (item, cb = () => { }) => {
- let twoCenter = DC.Position.fromObject(item.twoPointPosition)
- let twoCircle = new DC.Circle(twoCenter, 10)
- twoCircle.setStyle({
- material: new DC.CircleWaveMaterialProperty({
- color: DC.Color.fromRandom(),
- speed: 20,
- count: 5,
- gradient: 0.5
- })
- })
- dynamicVectorLayer.addOverlay(twoCircle)
-
- let twoContent = new DC.DivIcon(
- new DC.Position(item.twoPointPosition.lng, item.twoPointPosition.lat, 70),
- `<div class="dynamic-event-profile-map-popup">
- <div class="content-wrap">
- <div class="content">
- <p>${item.twoContent}</p>
- </div>
- </div>
- <div class="arrow"></div>
- </div>`
- // <p>特征污染物:${item.specificPollutant}</p>
- )
- dynamicHtmlLayer.addOverlay(twoContent)
- // 执行对应的事件函数
- window.$viewer.flyToPosition(new DC.Position(item.twoPointPosition.lng, item.twoPointPosition.lat, 400, 0, -90, 0), () => {
- speak(item.twoContent, () => {
- cb()
- })
- }, 3)
-}
-
-const createLinePath = (item, cb = () => { }) => {
- let polyline = new DC.Polyline(item.linePosition)
- polyline.setStyle({
- width: 20,
- material: new DC.PolylineImageTrailMaterialProperty({
- color: DC.Color.RED,
- speed: 20,
- image: VITE_APP_BASE + 'img/mapicon/right.png',
- repeat: { x: 5, y: 1 }
- }),
- clampToGround: false
- })
-
- dynamicLineVectorLayer.addOverlay(polyline)
-
- window.$viewer.flyToPosition(new DC.Position(item.lineCenter.lng, item.lineCenter.lat, 400, 0, -90, 0), () => {
- lineTime = setTimeout(() => {
- cb()
- }, item.lineTime)
- }, 3)
-}
-
-const schemeStart = (item) => {
- 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)),
- // }
- })
-
- tc.play()
- tc.viewTrack(track, {
- mode: '2',
- pitch: -45,
- range: 400
- })
- })
- }
-
- 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, 70),
- `<div class="dynamic-map-popup">
- <div class="content-wrap">
- <div class="content">
- <p>${item.oneCentent}</p>
- </div>
- </div>
- <div class="arrow"></div>
- </div>`
- // <p>特征污染物:${item.specificPollutant}</p>
- )
- dynamicHtmlLayer.addOverlay(oneCentent)
-
- speak(item.oneCentent, () => {
- if (item.key == 2) {
- createLinePath(item, () => {
- twoFun(item, () => {
- publicFun(item)
- })
- })
- } else if (item.key == 1) {
- twoFun(item, () => {
- createLinePath(item, () => {
- publicFun(item)
- })
- })
- } else {
- twoFun(item, () => {
- publicFun(item)
- })
- }
- })
- }
- if (item.showModel) {
- oneLoad()
- } else {
- window.$viewer.flyToPosition(new DC.Position(item.onePointPosition.lng, item.onePointPosition.lat, 400, 0, -90, 0), () => {
- oneLoad()
- }, 3)
- }
- }, item.onetime)
-}
-
-const clearAll = () => {
- window.speechSynthesis.cancel()
-
- lineTime && (clearTimeout(lineTime), lineTime = null)
- timeOne && (clearTimeout(timeOne), timeOne = null)
- timeTwo && (clearTimeout(timeTwo), timeTwo = null)
- timeThree && (clearTimeout(timeThree), timeThree = null)
- timeFour && (clearTimeout(timeFour), timeFour = null)
- timeFive && (clearTimeout(timeFive), timeFive = null)
-
- track.setModel(VITE_APP_BASE + 'gltf/car.gltf', {
- show: false,
- scale: 0.0025,
- // nodeTransformations: {
- // rotation: window.$Cesium.Quaternion.fromHeadingPitchRoll(window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0), window.$Cesium.Math.toRadians(0)),
- // }
- })
-
- dynamicVectorLayer.clear()
- dynamicHtmlLayer.clear()
- dynamicLineVectorLayer.clear()
-}
-
-onUnmounted(() => {
- clearAll()
-
- tc.clear()
- dynamicVectorLayer && window.$viewer && window.$viewer.removeLayer(dynamicVectorLayer)
- dynamicHtmlLayer && window.$viewer && window.$viewer.removeLayer(dynamicHtmlLayer)
- dynamicLineVectorLayer && window.$viewer && window.$viewer.removeLayer(dynamicLineVectorLayer)
-
- tc = null
- track = null
- dynamicVectorLayer = null
- dynamicHtmlLayer = null
- dynamicLineVectorLayer = null
-})
-</script>
-
-<template>
- <div class="panel-container no-select">
- <el-carousel :autoplay="false" :interval="4000" type="card" height="360px">
- <el-carousel-item v-for="item, index in panelData.data" :key="index">
- <template #>
- <div class="content-box flex f-d-c">
- <div class="title">
- {{ item.title }}
- </div>
- <div class="content h0 flex-1">
- <div class="bg-box">
-
- </div>
-
- <div class="describe-box">
- {{ item.content }}
- </div>
- </div>
-
- <div class="footer-btn">
- <div class="start-btn" @click="schemeStart(item)">
- 开始模拟
- </div>
- </div>
- </div>
- </template>
- </el-carousel-item>
- </el-carousel>
- </div>
-</template>
-
-<style scoped lang="scss">
-.panel-container {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- margin: auto;
- width: 960px;
- height: 440px;
- pointer-events: all;
-
- ::v-deep(.el-carousel) {
- .el-carousel__item {
- background: #2E4274;
-
- .content-box {
- padding: 10px 0;
- width: 100%;
- height: 100%;
- color: #fff;
-
- .title {
- padding-left: 40px;
- height: 80px;
- line-height: 80px;
- font-size: 44px;
- font-weight: bold;
- font-style: initial;
- background: #3a7bd5;
- /* fallback for old browsers */
- background: -webkit-linear-gradient(to right, #3a7bd5, rgba(255, 255, 255, 0.1));
- /* Chrome 10-25, Safari 5.1-6 */
- background: linear-gradient(to right, #3a7bd5, rgba(255, 255, 255, 0.1));
- /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
- }
-
- .content {
- margin-top: 20px;
- padding: 0 20px;
-
- .describe-box {
- line-height: 36px;
- }
- }
-
- .footer-btn {
- margin-bottom: 40px;
- height: 40px;
- line-height: 40px;
- text-align: center;
- }
- }
- }
- }
-}
-
-.no-select {
- user-select: none;
- /* Standard syntax */
- -webkit-user-select: none;
- /* Safari/Chrome */
- -moz-user-select: none;
- /* Firefox */
- -ms-user-select: none;
- /* Internet Explorer/Edge */
-}
-
-.start-btn,
-.start-btn:focus,
-.start-btn:hover {
- display: inline-block;
- position: relative;
- min-width: 96px;
- border: none;
- border-radius: 8px;
- background: #491cc5;
- /* fallback for old browsers */
- background: -webkit-linear-gradient(to bottom, #491cc5, #5f80f5);
- /* Chrome 10-25, Safari 5.1-6 */
- background: linear-gradient(to bottom, #491cc5, #5f80f5);
- /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
-
- color: #fff;
- font-size: 1rem;
- font-weight: bold;
- text-align: center;
- text-decoration: none;
- text-transform: uppercase;
- box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
- transition: transform ease-in 0.1s, box-shadow ease-in 0.25s;
- transform: skewX(8deg);
-}
-
-.start-btn:before,
-.start-btn:after {
- content: "";
- display: block;
- position: absolute;
- width: 140%;
- height: 100%;
- left: -20%;
- z-index: -1000;
- transition: all ease-in-out 0.5s;
- background-repeat: no-repeat;
-}
-
-.start-btn:before {
- display: none;
- top: -75%;
- background-image: radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, transparent 20%, #3E56B2 20%, transparent 30%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, transparent 10%, #3E56B2 15%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%);
- background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%, 10% 10%, 18% 18%;
-}
-
-.start-btn:after {
- display: none;
- bottom: -75%;
- background-image: radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, transparent 10%, #3E56B2 15%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%), radial-gradient(circle, #3E56B2 20%, transparent 20%);
- background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 10% 10%, 20% 20%;
-}
-
-.start-btn:active {
- transform: scale(0.9);
- background-color: #5e7ae9;
- box-shadow: 0 2px 25px rgba(94, 122, 233, .2);
-}
-
-.start-btn:active:before {
- display: block;
- animation: anim-top ease-in-out 0.75s forwards;
-}
-
-.start-btn:active:after {
- display: block;
- animation: anim-bottom ease-in-out 0.75s forwards;
-}
-
-@keyframes anim-top {
- 0% {
- background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%;
- }
-
- 50% {
- background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%;
- }
-
- 100% {
- background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%;
- background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
- }
-}
-
-@keyframes anim-bottom {
- 0% {
- background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%;
- }
-
- 50% {
- background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%;
- }
-
- 100% {
- background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%;
- background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
- }
-}
-</style>
\ No newline at end of file
diff --git a/src/views/pd/index.vue b/src/views/pd/index.vue
index 64a2c87..9e63688 100644
--- a/src/views/pd/index.vue
+++ b/src/views/pd/index.vue
@@ -9,62 +9,15 @@
* Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
-->
<script setup>
-import EventBus from 'utils/bus'
-import dynamicPanel from './components/dynamicPanel.vue'
-import { CaretLeft, CaretRight } from '@element-plus/icons-vue'
-import { nextTick, onUnmounted } from 'vue'
-
-const showPanel = ref(true)
-
-const showPanelChange = () => {
- showPanel.value = !showPanel.value
-}
-
nextTick(() => {
- EventBus.emit('restHandleCheckChange', `3-3-4`)
+ // EventBus.emit('restHandleCheckChange', `3-3-4`)
})
onUnmounted(() => {
- EventBus.emit('restHandleDelChange', `3-3-4`)
+ // EventBus.emit('restHandleDelChange', `3-3-4`)
})
</script>
<template>
- <div class="container page-container">
- <div class="telescopic-panel" @click="showPanelChange">
- <el-icon v-show="showPanel">
- <CaretLeft />
- </el-icon>
- <el-icon v-show="!showPanel">
- <CaretRight />
- </el-icon>
- </div>
-
- <dynamic-panel v-show="showPanel" @closePanel="showPanelChange"></dynamic-panel>
- </div>
-</template>
-
-<style lang="scss" scoped>
-.container {
- position: absolute;
- width: 100%;
- height: 100%;
-
- .telescopic-panel {
- display: flex;
- align-items: center;
- justify-content: center;
- position: absolute;
- top: 50%;
- left: 0;
- width: 20px;
- height: 60px;
- border-radius: 0 6px 6px 0;
- box-shadow: inset 0 0 40px #409eff;
- pointer-events: all;
- color: #fff;
- transform: translate(0, -50%);
- cursor: pointer;
- }
-}
-</style>
\ No newline at end of file
+ <div></div>
+</template>
\ No newline at end of file
--
Gitblit v1.9.3