cheat.vue 1.22 KB
<!-- 顾客行为分析 -->
<template>
    <div>
        <!-- 顶部区域 S-->
        <div class="ipage_top">
            <div class="tit"><img :src="bindIcon('renyuan')"/>{{title||chartData.title}}</div>
            <div class="acts"></div>
        </div>
        <div class="ichart">
            <heat-chart ref="chart" :cdata="chartData" tval="actMove"></heat-chart>
        </div>
    </div>
</template>

<script>
import mixin from './mixin';
import mallData from '@/components/Echarts/data';
export default {
    mixins: [mixin],
    data() {
        return {
        }
    },
    created() {
        
    },
    methods: {
        loadChartData(params){
            this.chartId = this.getChartId(this.ckey);
            if(this.chartId){
               this.ajaxModuleData().then(data=>{
                  this.setChartData(data);
               });
            }else{
               this.setChartData(); 
            }
        },
        setChartData(data){
            this.chartData = Object.assign({},data/*mallData.body.TimeMove*/,{
                otherConf:{
                    isObjValue:true,
                    hideVisualMap:true
                }
            });
        }
    }
}
</script>

<style  lang="less">

</style>