Commit 1219fe0e authored by yht15023815643's avatar yht15023815643

风险概览

parent 23581658
<template>
<div class="app-container clue-container">
<div class="common-title">风险概览</div>
<div class="flex-box clue-box" v-if="count>0">
<div class="flex-box clue-box" v-if="viewData[0].value>0">
<div class="clue-echarts"><div id="echartsRisk" style="width: 100%;height:300px; margin: 0 auto;"></div></div>
<div class="table-item">
<el-table
......@@ -120,7 +120,6 @@ export default {
bl:''
},
],
count:0,
}
},
created() {
......@@ -142,12 +141,11 @@ export default {
this.viewData.sort((a, b) => {
return a.value < b.value ? 1 : -1;
})
for(var i in this.viewData){
if(this.viewData[i].value>0){
this.count = this.viewData[i].value
this.$nextTick(()=>{
if(this.viewData[0].value>0){
this.getDT();
}
}
this.getDT()
})
},
getDT(){
let myChart = echarts.init(document.getElementById("echartsRisk"))
......
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