Commit 6be14290 authored by 李苏's avatar 李苏 💬

中广

parent 7558f9db
......@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-30 10:15:06
* @LastEditTime: 2024-12-27 10:23:04
* @FilePath: /zghywpc-vue/src/views/fmegl/fmekpigl/index.vue
-->
<template>
......@@ -42,6 +42,12 @@
}
</script>
<style >
#LOADING {
display: none!important;
}
</style>
<style lang="scss" scoped>
.fmezbpgl {
position: relative
......
......@@ -91,6 +91,9 @@
}
},
beforeDestroy() {
clearInterval(this.timer)
},
mounted() {
this.$nextTick(() => {
this.edckpi = this.$echarts.init(this.$refs.dckpi)
......@@ -99,9 +102,9 @@
this.efmetj = this.$echarts.init(this.$refs.fmetj)
/* 生成图表*/
this.initAll()
// this.timer = setInterval(() => {
// this.initAll()
// }, 1000 * 10)
this.timer = setInterval(() => {
this.initAll()
}, 1000 * 5)
})
},
......
......@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-29 15:28:24
* @LastEditTime: 2024-12-27 10:19:42
* @FilePath: /zghywpc-vue/src/views/fmegl/fmezbpgl/index.vue
-->
<template>
......@@ -41,7 +41,11 @@
}
</script>
<style >
#LOADING {
display: none!important;
}
</style>
<style lang="scss" scoped>
.fmezbpgl {
position: relative
......
......@@ -232,6 +232,7 @@
export default {
data() {
return {
timer:null,
optionsData: [{
id: 1,
name: "一月份"
......@@ -304,11 +305,20 @@
}
},
beforeDestroy() {
clearInterval(this.timer)
},
mounted() {
this.queryAll()
this.timer = setInterval(()=>{
this.queryAll()
},5*1000)
},
methods: {
queryAll(){
this.init()
this.initMonth()
},
methods: {
init() {
this.$post('fme/ufmezbp/query', {
year: this.queryParams.year,
......@@ -368,6 +378,7 @@
</script>
<style lang="scss" scoped>
.showMain {
height: calc(100% - 50px);
width: 100%;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment