|
@@ -11,6 +11,12 @@
|
|
|
<script src="3ddemo/examples/js/loaders/DRACOLoader.js"></script>
|
|
|
<script src="3ddemo/examples/js/renderers/CSS3DRenderer.js"></script>
|
|
|
<script src="3ddemo/examples/js/renderers/CSS2DRenderer.js"></script>
|
|
|
+ <!-- 引入 Vue -->
|
|
|
+ <script src="https://unpkg.com/vue@2.6.14/dist/vue.min.js"></script>
|
|
|
+ <!-- 引入样式 -->
|
|
|
+ <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
|
|
|
+ <!-- 引入组件库 -->
|
|
|
+ <script src="https://unpkg.com/element-ui/lib/index.js"></script>
|
|
|
<script src="js/echarts.min.js"></script>
|
|
|
|
|
|
<style>
|
|
@@ -256,7 +262,7 @@
|
|
|
|
|
|
<body>
|
|
|
|
|
|
- <div class="container">
|
|
|
+ <div class="container" id="ggyq">
|
|
|
<div class="row">
|
|
|
<div class="col-sm-12">
|
|
|
<div class="model-container"
|
|
@@ -265,7 +271,7 @@
|
|
|
<canvas id="canvas-model-view" style="width: 100%;height: 100%;">您的浏览器不支持canvas!</canvas>
|
|
|
</div>
|
|
|
<div class="qjttitle"></div>
|
|
|
- <div class="nowtime">2024-09-06-11:30</div>
|
|
|
+ <div class="nowtime">{{currentTime }}</div>
|
|
|
<div class="onefloor conList">
|
|
|
<div class="floortitle">1号楼概览</div>
|
|
|
<div class="floorcontent">
|
|
@@ -392,7 +398,7 @@
|
|
|
<div class="pdgdf conList">
|
|
|
<div class="floortitle">大厅排队高低峰图</div>
|
|
|
<div class="floorcontent">
|
|
|
- <div id="pdgdfechart"></div>
|
|
|
+ <div id="pdgdfechart" style="width: 100%;height: 100%;"></div>
|
|
|
</div>
|
|
|
<div class="text">
|
|
|
<span style="font-size: 18px;font-weight: bold;margin-bottom: 5px;">地铁6号线</span>
|
|
@@ -619,15 +625,36 @@
|
|
|
</script>
|
|
|
</body>
|
|
|
<script>
|
|
|
+ // 初始化Vue实例
|
|
|
+ new Vue({
|
|
|
+ el: '#ggyq',
|
|
|
+ data: function () {
|
|
|
+ return {
|
|
|
+ currentTime: ""
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.updateTime();
|
|
|
+ setInterval(this.updateTime, 1000); // 每秒更新一次时间
|
|
|
+ },
|
|
|
+ beforeDestroy() {
|
|
|
+ this.stopClock();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ updateTime() {
|
|
|
+ const now = new Date();
|
|
|
+ this.currentTime = `${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate()} ${now.getHours()}:${now.getMinutes()}:${now.getSeconds()}`;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+</script>
|
|
|
+<script>
|
|
|
var chartDom = document.getElementById('pdgdfechart');
|
|
|
var myChart = echarts.init(chartDom);
|
|
|
var option;
|
|
|
|
|
|
option = {
|
|
|
- color: ['#80FFA5', '#00DDFF', '#37A2FF', '#FF0087', '#FFBF00'],
|
|
|
- title: {
|
|
|
- text: 'Gradient Stacked Area Chart'
|
|
|
- },
|
|
|
+ color: ['#80FFA5'],
|
|
|
tooltip: {
|
|
|
trigger: 'axis',
|
|
|
axisPointer: {
|
|
@@ -637,14 +664,6 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- legend: {
|
|
|
- data: ['Line 1', 'Line 2', 'Line 3', 'Line 4', 'Line 5']
|
|
|
- },
|
|
|
- toolbox: {
|
|
|
- feature: {
|
|
|
- saveAsImage: {}
|
|
|
- }
|
|
|
- },
|
|
|
grid: {
|
|
|
left: '3%',
|
|
|
right: '4%',
|
|
@@ -655,12 +674,18 @@
|
|
|
{
|
|
|
type: 'category',
|
|
|
boundaryGap: false,
|
|
|
- data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
|
|
|
+ data: ['9:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00']
|
|
|
}
|
|
|
],
|
|
|
yAxis: [
|
|
|
{
|
|
|
- type: 'value'
|
|
|
+ type: 'value',
|
|
|
+ axisTick: {
|
|
|
+ show: true // 显示Y轴刻度线
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: true
|
|
|
+ }
|
|
|
}
|
|
|
],
|
|
|
series: [
|
|
@@ -678,130 +703,18 @@
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
{
|
|
|
offset: 0,
|
|
|
- color: 'rgb(128, 255, 165)'
|
|
|
- },
|
|
|
- {
|
|
|
- offset: 1,
|
|
|
- color: 'rgb(1, 191, 236)'
|
|
|
- }
|
|
|
- ])
|
|
|
- },
|
|
|
- emphasis: {
|
|
|
- focus: 'series'
|
|
|
- },
|
|
|
- data: [140, 232, 101, 264, 90, 340, 250]
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Line 2',
|
|
|
- type: 'line',
|
|
|
- stack: 'Total',
|
|
|
- smooth: true,
|
|
|
- lineStyle: {
|
|
|
- width: 0
|
|
|
- },
|
|
|
- showSymbol: false,
|
|
|
- areaStyle: {
|
|
|
- opacity: 0.8,
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
- {
|
|
|
- offset: 0,
|
|
|
- color: 'rgb(0, 221, 255)'
|
|
|
- },
|
|
|
- {
|
|
|
- offset: 1,
|
|
|
- color: 'rgb(77, 119, 255)'
|
|
|
- }
|
|
|
- ])
|
|
|
- },
|
|
|
- emphasis: {
|
|
|
- focus: 'series'
|
|
|
- },
|
|
|
- data: [120, 282, 111, 234, 220, 340, 310]
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Line 3',
|
|
|
- type: 'line',
|
|
|
- stack: 'Total',
|
|
|
- smooth: true,
|
|
|
- lineStyle: {
|
|
|
- width: 0
|
|
|
- },
|
|
|
- showSymbol: false,
|
|
|
- areaStyle: {
|
|
|
- opacity: 0.8,
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
- {
|
|
|
- offset: 0,
|
|
|
- color: 'rgb(55, 162, 255)'
|
|
|
- },
|
|
|
- {
|
|
|
- offset: 1,
|
|
|
- color: 'rgb(116, 21, 219)'
|
|
|
- }
|
|
|
- ])
|
|
|
- },
|
|
|
- emphasis: {
|
|
|
- focus: 'series'
|
|
|
- },
|
|
|
- data: [320, 132, 201, 334, 190, 130, 220]
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Line 4',
|
|
|
- type: 'line',
|
|
|
- stack: 'Total',
|
|
|
- smooth: true,
|
|
|
- lineStyle: {
|
|
|
- width: 0
|
|
|
- },
|
|
|
- showSymbol: false,
|
|
|
- areaStyle: {
|
|
|
- opacity: 0.8,
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
- {
|
|
|
- offset: 0,
|
|
|
- color: 'rgb(255, 0, 135)'
|
|
|
- },
|
|
|
- {
|
|
|
- offset: 1,
|
|
|
- color: 'rgb(135, 0, 157)'
|
|
|
- }
|
|
|
- ])
|
|
|
- },
|
|
|
- emphasis: {
|
|
|
- focus: 'series'
|
|
|
- },
|
|
|
- data: [220, 402, 231, 134, 190, 230, 120]
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'Line 5',
|
|
|
- type: 'line',
|
|
|
- stack: 'Total',
|
|
|
- smooth: true,
|
|
|
- lineStyle: {
|
|
|
- width: 0
|
|
|
- },
|
|
|
- showSymbol: false,
|
|
|
- label: {
|
|
|
- show: true,
|
|
|
- position: 'top'
|
|
|
- },
|
|
|
- areaStyle: {
|
|
|
- opacity: 0.8,
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
- {
|
|
|
- offset: 0,
|
|
|
- color: 'rgb(255, 191, 0)'
|
|
|
+ color: 'rgb(17 126 202)'
|
|
|
},
|
|
|
{
|
|
|
offset: 1,
|
|
|
- color: 'rgb(224, 62, 76)'
|
|
|
+ color: 'rgb(192 215 231)'
|
|
|
}
|
|
|
])
|
|
|
},
|
|
|
emphasis: {
|
|
|
focus: 'series'
|
|
|
},
|
|
|
- data: [220, 302, 181, 234, 210, 290, 150]
|
|
|
+ data: [0, 32, 10, 64, 90, 40, 50, 20, 100, 30]
|
|
|
}
|
|
|
]
|
|
|
};
|