|
|
|
@ -19,7 +19,7 @@
|
|
|
|
|
<div v-show="!msg"> |
|
|
|
|
<div class="data-area" v-spin="isSpin" style="height: 430px;"> |
|
|
|
|
<div class="col-md-7"> |
|
|
|
|
<div id="process-state-pie" style="height:260px;margin-top: 100px;"></div> |
|
|
|
|
<div id="process-state-pie" style="width:100%;height:260px;margin-top: 100px;"></div> |
|
|
|
|
</div> |
|
|
|
|
<div class="col-md-5"> |
|
|
|
|
<div class="table-small-model"> |
|
|
|
@ -52,6 +52,8 @@
|
|
|
|
|
import { mapActions } from 'vuex' |
|
|
|
|
import { pie } from './chartConfig' |
|
|
|
|
import Chart from '@/module/ana-charts' |
|
|
|
|
import echarts from 'echarts' |
|
|
|
|
import store from '@/conf/home/store' |
|
|
|
|
import mNoData from '@/module/components/noData/noData' |
|
|
|
|
import { stateType } from '@/conf/home/pages/projects/pages/_source/instanceConditions/common' |
|
|
|
|
export default { |
|
|
|
@ -87,7 +89,7 @@
|
|
|
|
|
value: v.count |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
const myChart = Chart.pie('#process-state-pie', this.processStateList, { title: '' }) |
|
|
|
|
const myChart = Chart.pie('#process-state-pie', this.processStateList, { title: '' }) |
|
|
|
|
myChart.echart.setOption(pie) |
|
|
|
|
// 首页不允许跳转 |
|
|
|
|
if (this.searchParams.projectId) { |
|
|
|
@ -112,6 +114,9 @@
|
|
|
|
|
this.isSpin = false |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
'$store.state.projects.sideBar': function() { |
|
|
|
|
echarts.init(document.getElementById('process-state-pie')).resize() |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
beforeCreate () { |
|
|
|
|