Commit 1219fe0e authored by yht15023815643's avatar yht15023815643

风险概览

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