|
@@ -221,7 +221,7 @@
|
|
<div>计划数:{{items.planNum}} {{items.planHour}}分钟 {{items.planCost}}元 </div>
|
|
<div>计划数:{{items.planNum}} {{items.planHour}}分钟 {{items.planCost}}元 </div>
|
|
<div>实际数:{{items.nowNum}} {{items.nowHour}}分钟 {{items.nowCost}}元</div>
|
|
<div>实际数:{{items.nowNum}} {{items.nowHour}}分钟 {{items.nowCost}}元</div>
|
|
<div v-if="!isViewUser">进度:{{items.progress}}</div>
|
|
<div v-if="!isViewUser">进度:{{items.progress}}</div>
|
|
- <div v-if="isViewUser">进度:{{ ((items.nowNum / items.planNum ) * 100).toFixed(0) }}%</div>
|
|
|
|
|
|
+ <div v-if="isViewUser">进度:{{ (((items.nowNum || 0) / (items.planNum || 0) ) * 100).toFixed(0) }}%</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -231,7 +231,7 @@
|
|
<div>计划数:{{scope.row.totalPlanNum}} {{scope.row.totalPlanHour}}分钟 {{scope.row.totalPlanCost}}元 </div>
|
|
<div>计划数:{{scope.row.totalPlanNum}} {{scope.row.totalPlanHour}}分钟 {{scope.row.totalPlanCost}}元 </div>
|
|
<div>实际数:{{scope.row.totalNowNum}} {{scope.row.totalNowHour}}分钟 {{scope.row.totalNowCost}}元</div>
|
|
<div>实际数:{{scope.row.totalNowNum}} {{scope.row.totalNowHour}}分钟 {{scope.row.totalNowCost}}元</div>
|
|
<div v-if="!isViewUser">进度:{{scope.row.totalProgress}}</div>
|
|
<div v-if="!isViewUser">进度:{{scope.row.totalProgress}}</div>
|
|
- <div v-if="isViewUser">进度:{{ ((scope.row.totalNowNum / scope.row.totalPlanNum ) * 100).toFixed(0) }}%</div>
|
|
|
|
|
|
+ <div v-if="isViewUser">进度:{{ (((scope.row.totalNowNum || 0) / (scope.row.totalPlanNum || 0) ) * 100).toFixed(0) }}%</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|