funnel.vue 1.8 KB
<!-- 逛店数量统计 -->
<!-- 停留时长统计 -->
<template>
    <div>
        <!-- 顶部区域 S-->
        <div class="ipage_top">
            <div class="tit"><img :src="bindIcon('xiansuo')"/>{{title||chartData.title}}</div>
            <div class="acts"></div>
        </div>
        <div class="ichart">
             <funnel-chart ref="chart" :cdata="chartData"></funnel-chart>
        </div>
    </div>
</template>

<script>
import mixin from './mixin';
import mallData from '@/components/Echarts/data';
/**********************************************************/
const chartsConfig = {
    default:{ //默认
        otherConf:{
            
        }
    }
};
/*******************************************************/
export default {
    mixins: [mixin],
    data() {
        return {
           configObj:{} 
        }
    },
    created() {
        
    },
    methods: {
        getChartsConfig(){
            return chartsConfig;
        },
        loadChartData(params){
            this.chartId = this.getChartId(this.ckey);
            if(this.chartId){
               this.ajaxModuleData().then(data=>{
                  this.setChartData(data.series[0]);
               });
            }else{
               this.setChartData(); 
            }
            /*this.$api.baseReport.reportZoneFunnelChart(params.dateType,{
                    zoneId: params.zoneIds,
                    date: params.startDate,
                    startDate:params.startDate,
                    endDate:params.endDate
                }).then(res => {
                  this.setChartData(res.data.data);
            });*/

            
        },
        setChartData(data){
            this.chartData = Object.assign({},data,{
                noProcess:true
            });
        }
    }
}
</script>

<style  lang="less">

</style>