|
|
@@ -451,7 +451,9 @@ const computedAllocatedEfficiency = useDebounceFn(function (row: ReportDetail) {
|
|
|
|
|
|
console.log('row', row)
|
|
|
|
|
|
- row.allocatedEfficiency = Number((row.allocatedTime / row.duration).toFixed(2))
|
|
|
+ console.log((row.allocatedTime / row.duration).toFixed(4))
|
|
|
+
|
|
|
+ row.allocatedEfficiency = Number(row.allocatedTime / row.duration)
|
|
|
}, 100)
|
|
|
|
|
|
const calculate = (row: ReportDetail) => {
|
|
|
@@ -868,7 +870,8 @@ const allocatedTimeDisabled = computed(() => {
|
|
|
align="center"
|
|
|
prop="allocatedEfficiency"
|
|
|
:formatter="
|
|
|
- (row) => (row.allocatedEfficiency ? `${row.allocatedEfficiency * 100}%` : '')
|
|
|
+ (row) =>
|
|
|
+ row.allocatedEfficiency ? `${(row.allocatedEfficiency * 100).toFixed(2)}%` : ''
|
|
|
"
|
|
|
/>
|
|
|
|