信息化数值默认值

This commit is contained in:
熊丽君
2021-12-28 18:23:57 +08:00
parent fc8088c903
commit 39866e1133
2 changed files with 20 additions and 5 deletions

View File

@ -11,7 +11,7 @@
><span class="num2"></span> ><span class="num2"></span>
</div> </div>
<div style="width: 100%"> <div style="width: 100%">
<progressBar :percentage="percentage" v-if="percentage" /> <progressBar :percentage="percentage" />
</div> </div>
</div> </div>
<div class="data-item"> <div class="data-item">
@ -70,12 +70,21 @@ export default {
}, },
data() { data() {
return { return {
dataInfo: {}, dataInfo: {
informationInvested:0,
informationTargetInveste:0,
alreadyNetworkOperation:0,
targetNetworkOperation:0,
alreadyDeviceAccess:0,
targetDeviceAccess:0,
alreadyBusinessCoverage:0,
targetBusinessCoverage:0,
},
} }
}, },
computed: { computed: {
percentage() { percentage() {
return (this.dataInfo.informationInvested / this.dataInfo.informationTargetInveste) * 100 return (this.dataInfo.informationInvested / this.dataInfo.informationTargetInveste) * 100 || 0
}, },
}, },
mounted() {}, mounted() {},

View File

@ -157,8 +157,14 @@ export default {
data() { data() {
return { return {
dataList: [], dataList: [],
totalAndRate: {}, totalAndRate: {
totalAndRateTwo: {}, total:0,
rate:0
},
totalAndRateTwo: {
total:0,
rate:0
},
index: 0, index: 0,
chart: null, chart: null,
colorList, colorList,