NearThread.vue 1.16 KB
<!--
 * @Description: 
 * @Author: huyue
 * @Date: 2024-01-26 11:36:05
 * @LastEditors: huyue
 * @LastEditTime: 2024-07-10 15:14:45
-->
<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="'28.77vh'" 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: 30.51vw;
  height: 35.37vh;
  padding: 1vh 1vw 3.56vh;
  box-sizing: border-box;
  background-image: url(../../../assets/images/near-bg.png);
  background-size: 100% 100%;
  .bottom-line {
    width: 28.17vw;
    height: 0.23vh;
  }
}
</style>