liudan 2 months ago
parent 8c00f1ee9a
commit a9e1b740e8
  1. BIN
      大屏/src/assets/title.png
  2. 10
      大屏/src/pages/index.vue
  3. 16
      大屏/src/pages/pie.vue
  4. 2
      大屏/src/router/index.js

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 97 KiB

@ -73,7 +73,7 @@
<div class="devicePic">
<div id="device"></div>
<div class="picCircle">
<img src="@/assets/circle.png" alt="" class="circle"/>
<!-- <img src="@/assets/circle.png" alt="" class="circle"/> -->
<span>{{deviceTotal}}</span>
</div>
</div>
@ -346,6 +346,10 @@ export default {
// }
// }
});
window.addEventListener('resize', function() {
// ECharts
myChart3.resize();
});
},
setWorkInfo(){
// domecharts
@ -432,6 +436,10 @@ export default {
}
]
});
window.addEventListener('resize', function() {
// ECharts
myChart3.resize();
});
},
fakaHandle(){
this.dialog1=!this.dialog1;

@ -1,5 +1,5 @@
<template>
<div ref="pie3d" style="width: 100%;height: 100%;position: relative;z-index:3" />
<div id="pie3d" style="width: 100%;height: 100%;position: relative;z-index:3" />
</template>
<script>
import * as echarts from 'echarts';
@ -64,8 +64,17 @@ export default {
}
},
mounted() {
this.myChart = echarts.init(this.$refs.pie3d);
this.init()
this.$nextTick(()=>{
this.myChart = echarts.init(document.getElementById('pie3d'));
window.addEventListener('resize', ()=>{
// ECharts
this.myChart.resize();
});
this.init()
})
},
methods: {
//
@ -75,6 +84,7 @@ export default {
this.myChart.setOption(this.option);
//
this.bindListen(this.myChart);
},
//
bindListen(myChart) {

@ -5,7 +5,7 @@ const router = new VueRouter({
routes: [
{
path: '/',
redirect:'/page1',
redirect:'/index',
},
{
name: 'index',

Loading…
Cancel
Save