|
@@ -14,7 +14,7 @@
|
|
|
class="pir"
|
|
|
style="width: 100%; height: 170px"
|
|
|
/>
|
|
|
- <div v-if="tabData && this.pieData.filter(elm => elm.total).length" style="width: 205px;color: #333">
|
|
|
+ <div v-if="tabData && pieData.filter(elm => elm.total).length" style="width: 205px;color: #333">
|
|
|
本月{{ active }}类:
|
|
|
<span v-for="(item, itemIndex ) in tabData.qualityProcessAndRdEfficiencyCopywriters" :key="itemIndex">
|
|
|
<span>{{ item.type }}</span>
|
|
@@ -24,7 +24,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="detail-wrapper" :style="{marginTop : '10px'}">
|
|
|
- <div v-if="this.pieData.filter(elm => elm.total).length">
|
|
|
+ <div v-if="pieData.filter(elm => elm.total).length">
|
|
|
<div
|
|
|
v-for="(
|
|
|
item, itemIndex
|
|
@@ -64,7 +64,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-if="!this.pieData.filter(elm => elm.total).length" class="no-data">各业务线{{ active }}类质量流程&研发效率问题为 <span style="font-size: 16px">0</span>!</div>
|
|
|
+ <div v-if="!pieData.filter(elm => elm.total).length" class="no-data">各业务线{{ active }}类质量流程&研发效率问题为 <span style="font-size: 16px">0</span>!</div>
|
|
|
</div>
|
|
|
</boxCom>
|
|
|
</div>
|
|
@@ -130,7 +130,7 @@ export default {
|
|
|
},
|
|
|
echartsInit() {
|
|
|
this.pieData = this.tabData.qualityProcessAndRdEfficiencyCopywriters.filter(elm => elm.total)
|
|
|
- const subReportDetails = this.pieData.map(elm => {return elm.subReportDetails })
|
|
|
+ const subReportDetails = this.pieData.map(elm => { return elm.subReportDetails })
|
|
|
|
|
|
this.option = {
|
|
|
color: [
|
|
@@ -233,8 +233,8 @@ export default {
|
|
|
this.option.series[1].data = this.pieData.map(elm => {
|
|
|
return elm.subReportDetails
|
|
|
}).reduce((a, b) => a.concat(b)).filter(elm => elm.total)
|
|
|
- if(this.pieData.filter(elm => elm.total).length) {
|
|
|
- this.myChart.setOption(this.option)
|
|
|
+ if (this.pieData.filter(elm => elm.total).length) {
|
|
|
+ this.myChart.setOption(this.option)
|
|
|
}
|
|
|
}
|
|
|
}
|