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

中广

parent 7558f9db
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com * @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27 * @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com * @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 * @FilePath: /zghywpc-vue/src/views/fmegl/fmekpigl/index.vue
--> -->
<template> <template>
...@@ -42,6 +42,12 @@ ...@@ -42,6 +42,12 @@
} }
</script> </script>
<style >
#LOADING {
display: none!important;
}
</style>
<style lang="scss" scoped> <style lang="scss" scoped>
.fmezbpgl { .fmezbpgl {
position: relative position: relative
......
...@@ -91,6 +91,9 @@ ...@@ -91,6 +91,9 @@
} }
}, },
beforeDestroy() {
clearInterval(this.timer)
},
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.edckpi = this.$echarts.init(this.$refs.dckpi) this.edckpi = this.$echarts.init(this.$refs.dckpi)
...@@ -99,9 +102,9 @@ ...@@ -99,9 +102,9 @@
this.efmetj = this.$echarts.init(this.$refs.fmetj) this.efmetj = this.$echarts.init(this.$refs.fmetj)
/* 生成图表*/ /* 生成图表*/
this.initAll() this.initAll()
// this.timer = setInterval(() => { this.timer = setInterval(() => {
// this.initAll() this.initAll()
// }, 1000 * 10) }, 1000 * 5)
}) })
}, },
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com * @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27 * @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com * @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 * @FilePath: /zghywpc-vue/src/views/fmegl/fmezbpgl/index.vue
--> -->
<template> <template>
...@@ -41,7 +41,11 @@ ...@@ -41,7 +41,11 @@
} }
</script> </script>
<style >
#LOADING {
display: none!important;
}
</style>
<style lang="scss" scoped> <style lang="scss" scoped>
.fmezbpgl { .fmezbpgl {
position: relative position: relative
......
...@@ -232,6 +232,7 @@ ...@@ -232,6 +232,7 @@
export default { export default {
data() { data() {
return { return {
timer:null,
optionsData: [{ optionsData: [{
id: 1, id: 1,
name: "一月份" name: "一月份"
...@@ -304,11 +305,20 @@ ...@@ -304,11 +305,20 @@
} }
}, },
beforeDestroy() {
clearInterval(this.timer)
},
mounted() { mounted() {
this.init() this.queryAll()
this.initMonth() this.timer = setInterval(()=>{
this.queryAll()
},5*1000)
}, },
methods: { methods: {
queryAll(){
this.init()
this.initMonth()
},
init() { init() {
this.$post('fme/ufmezbp/query', { this.$post('fme/ufmezbp/query', {
year: this.queryParams.year, year: this.queryParams.year,
...@@ -368,6 +378,7 @@ ...@@ -368,6 +378,7 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.showMain { .showMain {
height: calc(100% - 50px); height: calc(100% - 50px);
width: 100%; 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