whyczyk
2021-03-22 fc74998431982dc1385d2930adcf339cbf15ffd6
模块定时请求提交
6个文件已修改
49 ■■■■ 已修改文件
src/components/charts/abeamProChart.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/charts/imgPieChart.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/charts/latticeBar.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/charts/powerChart.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/charts/triangleBarChart.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/exhibition.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/charts/abeamProChart.vue
@@ -43,7 +43,7 @@
        let dataColor = posData.color;
        let bgColor = posData.bgColor;
        let yData = posData.yData;
        let radius = (this.$refs.chart.clientHeight / 3 - 7) > 0 ? this.$refs.chart.clientHeight / 3 - 7 : 0;
        let radius = (this.$refs.chart.clientHeight / 4 - 7) > 0 ? this.$refs.chart.clientHeight / 4 - 7 : 0;
        let data = posData.data;
        let max = posData[0];
        data.map(item => {
@@ -173,6 +173,13 @@
          this.$options.chartData = sendData;
          this.organizeData(sendData)
        } else {
          this.postData()
          setInterval(() => {
            this.postData()
          }, 3000)
        }
      },
      postData() {
          let userId = localStorage.getItem('userId');
          let params = {
            userId: userId
@@ -196,7 +203,6 @@
          }).catch((err) => {
            console.log(err)
          });
        }
      },
      resize() {
        setTimeout(() => {
@@ -230,6 +236,6 @@
  .flexCon .con {
    width: 100%;
    height: 70%;
    height: 80%;
  }
</style>
src/components/charts/imgPieChart.vue
@@ -168,6 +168,13 @@
          this.$options.chartData = sendData;
          this.organizeData(sendData)
        } else {
          this.postData()
          setInterval(() => {
            this.postData()
          }, 3000)
        }
      },
      postData() {
          let userId = localStorage.getItem('userId');
          let params = {
            userId: userId
@@ -190,7 +197,6 @@
          }).catch((err) => {
            console.log(err)
          });
        }
      },
      resize() {
        setTimeout(() => {
src/components/charts/latticeBar.vue
@@ -172,6 +172,13 @@
          this.$options.chartData = sendData;
          this.organizeData(sendData)
        } else {
          this.postData()
          setInterval(() => {
            this.postData()
          }, 3000)
        }
      },
      postData() {
          let userId = localStorage.getItem('userId');
          let params = {
            userId: userId
@@ -212,7 +219,6 @@
          }).catch((err) => {
            console.log(err)
          });
        }
      },
      resize() {
        setTimeout(() => {
src/components/charts/powerChart.vue
@@ -46,6 +46,15 @@
              chart.resize();
            })
          } else {
            this.postData()
            setInterval(() => {
              this.postData()
            }, 3000)
          }
        })
      },
      postData() {
            let userId = localStorage.getItem('userId');
            let params = {
              userId: userId
@@ -104,9 +113,6 @@
            }).catch((err) => {
              console.log(err)
            });
          }
        })
      },
      resize() {
        this.$refs.prossPieChart0.resize();
src/components/charts/triangleBarChart.vue
@@ -172,6 +172,13 @@
          this.$options.chartData = sendData;
          this.organizeData(sendData)
        } else {
          this.postData()
          setInterval(() => {
            this.postData()
          }, 3000)
        }
      },
      postData() {
          let userId = localStorage.getItem('userId');
          let params = {
            userId: userId
@@ -193,7 +200,6 @@
          }).catch((err) => {
            console.log(err)
          });
        }
      },
      resize() {
        setTimeout(() => {
src/pages/exhibition.vue
@@ -58,7 +58,6 @@
      })
    },
    methods: {
      // 加载布局数据
      loadLayout() {
        let sendData = {