Browse Source

大屏表刷新

master
x_ying 2 years ago
parent
commit
e7e10835ce
  1. 10
      src/views/components/echarts/lendAcross.vue
  2. 11
      src/views/components/echarts/typePie.vue
  3. 2
      src/views/environmentalScreen/index.vue

10
src/views/components/echarts/lendAcross.vue

@ -34,8 +34,13 @@ export default {
data() { data() {
return { return {
chart: null, chart: null,
timer: null,
elendData: this.lendData
timer: null
// elendData: this.lendData
}
},
computed: {
elendData() {
return this.lendData
} }
}, },
watch: { watch: {
@ -61,6 +66,7 @@ export default {
if (this.refreshtime) { if (this.refreshtime) {
this.timer = setInterval(() => { this.timer = setInterval(() => {
// this.elendData = [] // this.elendData = []
console.log(this.lendData, this.elendData, '**')
this.drawChart() this.drawChart()
}, this.refreshtime) }, this.refreshtime)
} else { } else {

11
src/views/components/echarts/typePie.vue

@ -34,8 +34,13 @@ export default {
data() { data() {
return { return {
chart: null, chart: null,
timer: null,
etypeData: this.typeData
timer: null
// etypeData: this.typeData
}
},
computed: {
etypeData() {
return this.typeData
} }
}, },
watch: { watch: {
@ -60,6 +65,8 @@ export default {
refreshEchart() { refreshEchart() {
if (this.refreshtime) { if (this.refreshtime) {
this.timer = setInterval(() => { this.timer = setInterval(() => {
console.log(this.typeData, this.etypeData, '==')
this.drawChart() this.drawChart()
}, this.refreshtime) }, this.refreshtime)
} else { } else {

2
src/views/environmentalScreen/index.vue

@ -332,8 +332,6 @@ export default {
return { return {
nowDate: '', nowDate: '',
timer: null, timer: null,
lendData: [],
typeData: [],
className: ['readRoomContainer', 'collateRoomContainer'], className: ['readRoomContainer', 'collateRoomContainer'],
roomId: 'D6490DA3D4261E8C26D0E3', roomId: 'D6490DA3D4261E8C26D0E3',
allDisplayConfigData: [], allDisplayConfigData: [],

Loading…
Cancel
Save