Refactor DatePicker.vue to remove console.log statement

Refactor RGangguan_BerdasarMedia.vue to fix css-class typo
Refactor RKeluhan_BerdasarMedia.vue to update display-format and css-class
Refactor RGangguan_KTI.vue to remove 'Semua Unit' and 'Regional' from groupList
Refactor RGangguan_CTTM.vue to remove 'Semua Unit' and 'Regional' from groupList
Refactor Type11.vue to update placeholder and values in InputWithSuffix
Refactor RKeluhan_PerUnit.vue to update calculateCustomSummary function
This commit is contained in:
Dede Fuji Abdul
2024-04-09 17:17:31 +07:00
parent 5121789e19
commit 2253499600
19 changed files with 1028 additions and 211 deletions

View File

@@ -1050,7 +1050,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_selesai = 0
} else if (options.summaryProcess === 'finalize') {
options.totalValue = (total_selesai / total) * 100
options.totalValue = isFinite(total_selesai / total)
? 0
: total_selesai == 0
? 0
: (total_selesai / total) * 100
}
}
@@ -1059,16 +1063,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_inproses = 0
} else if (options.summaryProcess === 'finalize') {
options.totalValue = (total_inproses / total) * 100
}
}
if (options.name === 'persen_selesai') {
if (options.summaryProcess === 'start') {
total = 0
total_selesai = 0
} else if (options.summaryProcess === 'finalize') {
options.totalValue = (total_selesai / total) * 100
options.totalValue = isFinite(total_inproses / total)
? 0
: total_inproses == 0
? 0
: (total_inproses / total) * 100
}
}
@@ -1093,7 +1092,11 @@ const calculateCustomSummary = (options: any) => {
total_durasi_response = 0
count_durasi_response = 0
} else if (options.summaryProcess === 'finalize') {
options.totalValue = count_durasi_response / total_durasi_response
options.totalValue = isFinite(count_durasi_response / total_durasi_response)
? 0
: count_durasi_response == 0
? 0
: count_durasi_response / total_durasi_response
}
}
@@ -1118,7 +1121,11 @@ const calculateCustomSummary = (options: any) => {
count_durasi_recovery = 0
total_durasi_recovery = 0
} else if (options.summaryProcess === 'finalize') {
options.totalValue = count_durasi_recovery / total_durasi_recovery
options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery)
? 0
: count_durasi_recovery == 0
? 0
: count_durasi_recovery / total_durasi_recovery
}
}
}