百分数超100

This commit is contained in:
chenjianan
2019-03-09 10:32:45 +08:00
parent 25d104f87c
commit 184c7b151a
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,7 @@
<el-progress <el-progress
:text-inside="true" :text-inside="true"
:stroke-width="18" :stroke-width="18"
:percentage="parseFloat((100*scope.row.合同到货总数/scope.row.合同采购总数).toFixed(2))" :percentage="scope.row.到货进度 = (100*(Number(scope.row.合同到货总数))/scope.row.合同采购总数) > 100 ? 100 : Number((100*(Number(scope.row.合同到货总数))/scope.row.合同采购总数).toFixed(2))"
status="success"/> status="success"/>
</template> </template>
</el-table-column> </el-table-column>

View File

@@ -95,7 +95,7 @@
<el-progress <el-progress
:text-inside="true" :text-inside="true"
:stroke-width="18" :stroke-width="18"
:percentage="(100*(Number(scope.row.已付金额))/scope.row.合同总额).toFixed(2)" :percentage="scope.row.付款进度 = (100*(Number(scope.row.已付金额))/scope.row.合同总额) > 100 ? 100 : Number((100*(Number(scope.row.已付金额))/scope.row.合同总额).toFixed(2))"
status="success"/> status="success"/>
</template> </template>
</el-table-column> </el-table-column>