NearThread.vue 1.14 KB
<!--
 * @Description: 
 * @Author: huyue
 * @Date: 2024-01-26 11:36:05
 * @LastEditors: huyue
 * @LastEditTime: 2024-01-26 21:47:43
-->
<template>
  <div class="near-thread-box">
    <BoxTitle :title="'近12个月的线索推送情况'" :fontSize="18"></BoxTitle>
    <img class="bottom-line" src="@/assets/images/bottomLine.png" alt="" />
    <BarChart ref="nearThreadChartRef" :height="'24.82vh'" domId="nearThreadChart" :dataList.sync="nearThreadDataList"></BarChart>
  </div>
</template>

<script>
import { nearThreadDataList } from '../const/index'
import BarChart from './BarChart.vue'
export default {
  name: 'NearThread',
  components: { BarChart },
  data() {
    return {
      nearThreadDataList
    }
  },

  mounted() {
    let _this = this;
    _this.$nextTick(function(){
      _this.$refs.nearThreadChartRef.drawBar()
    })
  },

  methods: {}
}
</script>

<style lang="scss" scoped>
.near-thread-box {
  width: 31.67vw;
  height: 35.37vh;
  padding: 1.85vh;
  box-sizing: border-box;
  background-image: url(../../../assets/images/near-bg.png);
  background-size: 100% 100%;
  .bottom-line {
    width: 16.28vw;
    height: 0.23vh;
  }
}
</style>