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:
@@ -1318,7 +1318,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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1327,16 +1331,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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1386,7 +1385,11 @@ const calculateCustomSummary = (options: any) => {
|
||||
count_durasi_response = 0
|
||||
total_durasi_response = 0
|
||||
} else if (options.summaryProcess === 'finalize') {
|
||||
options.totalValue = total_durasi_response / count_durasi_response
|
||||
options.totalValue = isFinite(total_durasi_response / count_durasi_response)
|
||||
? 0
|
||||
: total_durasi_response == 0
|
||||
? 0
|
||||
: total_durasi_response / count_durasi_response
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1411,7 +1414,11 @@ const calculateCustomSummary = (options: any) => {
|
||||
count_durasi_recovery = 0
|
||||
total_durasi_recovery = 0
|
||||
} else if (options.summaryProcess === 'finalize') {
|
||||
options.totalValue = total_durasi_recovery / count_durasi_recovery
|
||||
options.totalValue = isFinite(total_durasi_recovery / count_durasi_recovery)
|
||||
? 0
|
||||
: total_durasi_recovery == 0
|
||||
? 0
|
||||
: total_durasi_recovery / count_durasi_recovery
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1449,7 +1456,13 @@ const filterData = async (params: any) => {
|
||||
|
||||
if (uid?.id != 0) {
|
||||
groupList.forEach((item, index) => {
|
||||
if (item.caption == 'Semua Unit' || item.caption == 'Regional') {
|
||||
if (item.caption == 'Semua Unit') {
|
||||
groupList.splice(index, 1)
|
||||
}
|
||||
})
|
||||
|
||||
groupList.forEach((item, index) => {
|
||||
if (item.caption == 'Regional') {
|
||||
groupList.splice(index, 1)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user