Commit 70d54492 authored by 华国豪's avatar 华国豪 🙄

1

parent 6279386f
......@@ -121,11 +121,15 @@
<p><span class="red year6"></span>年,您的客户来自哪里</p>
</div>
<div class="line_box">
<div class="xianlu margint-20">
<div class="xianlu">
<div id="xianluEchart">
</div>
</div>
<div class="nianling margint-20">
<div class="nianling">
<div id="nianlingEchart">
</div>
</div>
</div>
</div>
......@@ -140,6 +144,7 @@
<script type="text/javascript" src="../js/md5.js"></script>
<script type="text/javascript" src="../js/mian.js"></script>
<script type="text/javascript" src="../js/layer/layer.js"></script>
<script type="text/javascript" src="https://www.echartsjs.com/zh/dist/echarts-gl.min.js"></script>
<script type="text/javascript">
var str = location.href,
param = str.substr(str.indexOf("?")+1),
......@@ -190,6 +195,19 @@
TextContentList = dataObj.evaluateList.TextContentList
createDM()
}
//客户
var LineOrder = {
LineName: [],
TotalGuest: []
}
if(dataObj.LineOrder.length) {
dataObj.LineOrder.map(x=>{
LineOrder.LineName.push(x.LineName)
LineOrder.TotalGuest.push(x.TotalGuest)
})
creatEchart(LineOrder)
}
} else {
layer.msg(res.message)
}
......@@ -356,6 +374,12 @@
obj.style.left=run +'px';
}, 20)
}
var myChart1 = echarts.init(document.getElementById('xianluEchart'));
var myChart2 = echarts.init(document.getElementById('nianlingEchart'));
function creatEchart(data){
myChart1.setOption(option);
}
</script>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment