ViewSurface.vue 1.03 KB
<!--
 * @Author: 前端 qianduan01@didihu.com.cn
 * @Date: 2022-10-25 10:12:26
 * @LastEditors: 前端 qianduan01@didihu.com.cn
 * @LastEditTime: 2022-10-27 10:58:34
 * @FilePath: \dj-data-view\src\components\ViewSurface.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="surface box">
    <line-bar domId="surfaceChart" boxHeight="19.5vh" :dataList="dataList"></line-bar>
  </div>
</template>
<script type="text/ecmascript-6">
export default {
  name: 'ViewSurface',
  data() {
    return {
      dataList: []
    }
  },
  mounted() {
    this.getEnterpriseOverviewTrend()
  },
  methods: {
    getEnterpriseOverviewTrend() {
      this.api.customer.getEnterpriseOverviewTrend().then(res => {
        if(res.code == 0){
          this.dataList = res.data.dataList
        }
      })
    }
  }
}
</script>

<style scoped lang="scss">
.surface {
  height: 21.46vh;
  margin-bottom: 0.98vh;
}
</style>