update code

dev-login
haha 2023-08-16 23:58:03 +08:00
parent f516c60810
commit ab3b77dbac
1 changed files with 3 additions and 2 deletions

View File

@ -134,7 +134,7 @@
<p>{{ prjPrcessText }}</p> <p>{{ prjPrcessText }}</p>
</div> </div>
</el-col> </el-col>
<el-col :span="16"> <el-col :span="16" :key="elSumKey">
<staff-survey-chart :height="220" :unit="'个'" :data="prjPrcessData" <staff-survey-chart :height="220" :unit="'个'" :data="prjPrcessData"
:width="140"></staff-survey-chart> :width="140"></staff-survey-chart>
</el-col> </el-col>
@ -223,6 +223,7 @@ export default {
}, },
data() { data() {
return { return {
elSumKey:0,
elKey: 0, elKey: 0,
prjInfo: {}, prjInfo: {},
loading: true, loading: true,
@ -545,7 +546,7 @@ export default {
let item=this.projectCategory.length>n?this.projectCategory[n]:null; let item=this.projectCategory.length>n?this.projectCategory[n]:null;
this.prjPrcessData[0].value=item && item.length>0?item[0].cnt:0; this.prjPrcessData[0].value=item && item.length>0?item[0].cnt:0;
this.prjPrcessData[1].value=item && item.length>1?item[1].cnt:0; this.prjPrcessData[1].value=item && item.length>1?item[1].cnt:0;
this.elKey++; this.elSumKey++;
}, },
// //
onWarningInfoNav(n) { onWarningInfoNav(n) {