vue2 数据大屏 大桥及隧道数据分析大屏
视频演示
效果截图
项目信息
项目ID:505
开发环境:nodejs 24
开发框架:vue2 vite js
标准分辨率:1920 * 1080
演示地址
演示demo:vue2 数据大屏 大桥及隧道数据分析大屏
模块列表
系统运营情况
大桥桥梁
监测点明细与处置状态
告警信息
隧道信息
大桥全景图
项目依赖
{
"name": "505_daqiaosuidao_vue2",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"build-qiniu": "vite build && node ./qiniu.js",
"preview": "vite preview"
},
"dependencies": {
"@meruem117/vue-seamless-scroll": "0.0.19",
"autoprefixer": "10.5.0",
"core-js": "3.49.0",
"echarts": "5.6.0",
"echarts-extension-amap": "1.12.0",
"echarts-faguang": "1.0.0",
"echarts-gl": "2.1.0",
"echarts-liquidfill": "3.1.0",
"echarts-wordcloud": "2.1.0",
"element-ui": "2.15.14",
"gsap": "3.15.0",
"lottie-web": "5.13.0",
"pinia": "2.3.1",
"postcss": "8.5.15",
"postcss-loader": "7.3.4",
"postcss-pxtorem": "5.1.1",
"qiniu": "7.8.0",
"qs": "6.10.1",
"sass": "1.59.3",
"three": "0.164.1",
"vite-plugin-vue2": "2.0.3",
"vue": "2.7.16",
"vue-router": "3.6.5",
"vuex": "3.6.2",
"wow.js": "1.2.2",
"@photo-sphere-viewer/autorotate-plugin": "5.7.4",
"@photo-sphere-viewer/core": "5.7.4",
"@photo-sphere-viewer/markers-plugin": "5.7.4"
},
"devDependencies": {
"@vitejs/plugin-vue2": "2.3.4",
"vite": "5.4.21",
"vue-template-compiler": "2.7.16"
}
}
部分代码
<template>
<div class="home">
<bg></bg>
<top name="大桥及隧道数据分析大屏" class="wow slideInDown"></top>
<div class="topbg"></div>
<div class="homeMain2" name="大桥全景图" data-module-id="大桥全景图">
<item6></item6>
</div>
<div class="homeMain">
<div class="homeMainLeft">
<LeftPanel>
<div class="homeMainLeftInner">
<div class="item1">
<item name="系统运营情况" :duration="0.5"
:lottieData="lottieIcons[0]"
:delay="0">
<item1></item1>
</item>
</div>
<div class="item2">
<item name="大桥桥梁" :duration="0.5"
:lottieData="lottieIcons[1]"
:delay="0.5">
<item2></item2>
</item>
</div>
</div>
</LeftPanel>
</div>
<div class="homeMainCenter">
<div class="item1"></div>
<div class="item2">
<BottomPanel>
<div class="item2Inner">
<item name="监测点明细与处置状态" :duration="0.5"
:lottieData="lottieIcons[4]"
:type="2"
:delay="0">
<item5></item5>
</item>
</div>
</BottomPanel>
</div>
</div>
<div class="homeMainRight">
<RightPanel>
<div class="homeMainRightInner">
<div class="item1">
<item name="告警信息" :duration="0.5"
:lottieData="lottieIcons[2]"
:delay="0">
<item3></item3>
</item>
</div>
<div class="item2">
<item name="隧道信息" :duration="0.5"
:lottieData="lottieIcons[3]"
:delay="0.5">
<item4></item4>
</item>
</div>
</div>
</RightPanel>
</div>
</div>
</div>
</template>
<script>
import WOW from "wow.js";
import top from "@/components/top/index.vue";
import bg from '@/components/bg/index.vue'
import item from "@/components/item/index.vue";
import item1 from "./components/item1/index.vue";
import item2 from "./components/item2/index.vue";
import item3 from "./components/item3/index.vue";
import item4 from "./components/item4/index.vue";
import item5 from "./components/item5/index.vue";
import item6 from "./components/item6/index.vue";
import LeftPanel from "@/components/Panel/LeftPanel.vue";
import RightPanel from "@/components/Panel/RightPanel.vue";
import BottomPanel from "@/components/Panel/BottomPanel.vue";
import icon1 from '@/fonts/lottieIcon/1.json'
import icon2 from '@/fonts/lottieIcon/2.json'
import icon3 from '@/fonts/lottieIcon/3.json'
import icon4 from '@/fonts/lottieIcon/4.json'
import icon5 from '@/fonts/lottieIcon/5.json'
import icon6 from '@/fonts/lottieIcon/6.json'
import icon7 from '@/fonts/lottieIcon/7.json'
import icon8 from '@/fonts/lottieIcon/8.json'
export default {
name: "Home",
components: {
top,
item,
bg,
item1,
item2,
item3,
item4,
item5,
item6,
LeftPanel,
RightPanel,
BottomPanel
},
data() {
return {
refreshTimerId: null,
AUTO_REFRESH_MS: 30 * 60 * 1000,
lottieIcons: [icon1, icon2, icon3, icon4, icon5, icon6, icon7, icon8]
}
},
mounted() {
const wow = new WOW();
wow.init();
this.refreshTimerId = window.setInterval(() => {
window.location.reload();
}, this.AUTO_REFRESH_MS);
},
beforeDestroy() {
// 组件销毁时清除定时器,防止内存泄漏
if (this.refreshTimerId) {
clearInterval(this.refreshTimerId);
this.refreshTimerId = null;
}
}
}
</script>
项目文件目录
├── .git
├── public // 静态资源公共目录
├── src // 源代码目录
│ ├── components // 可复用的 Vue 组件
│ ├── config // 配置文件目录
│ ├── fonts // 字体文件目录
│ ├── router // Vue Router 配置
│ ├── store // Vuex 状态管理
│ ├── utils // 工具函数目录
│ ├── view // 页面级组件
│ │ └── home // 【home】页面组件
│ │ └── components // 组件子目录
│ │ ├── item1 // 【系统运营情况】
│ │ ├── item2 // 【大桥桥梁】
│ │ ├── item3 // 【告警信息】
│ │ ├── item4 // 【隧道信息】
│ │ ├── item5 // 【监测点明细与处置状态】
│ │ └── item6 // 【大桥全景图】
│ ├── App.vue // 根组件
│ ├── main.js // 全局脚本文件,项目的入口
│ └── style.css
├── index.html // 入口 HTML 文件
├── jsconfig.json // JS/TS 路径映射配置
├── package.json // 项目配置文件
├── pnpm-lock.yaml
├── postcss.config.cjs // PostCSS 配置
├── qiniu-upload-prefiex.js // 七牛配置文件
├── qiniu.js // 七牛上传文件
├── README.md // 项目说明文件
└── vite.config.js // Vite 构建配置
项目说明
数据非真实数据,仅做效果展示
更多大屏
源码下载
项目基于vue2+vite+js 开发
获取代码前请确保具备相关开发基础
本项目为纯前端大屏,无后端支持
默认数据为模拟数据,实际使用时需接入真实数据源
请在确认需求后再获取相关资料
当前为vue2版本,如果需要vue3版本请访问:大桥及隧道数据分析大屏 - vue3 数据大屏






