Conformance: feature update Conformance Rate Percentage calculation formula.
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
<section class="p-4 mr-0.5 space-y-2 h-full w-[calc(100vw_-_316px)] overflow-y-auto scrollbar float-right">
|
||||
<div v-show="isCoverPlate" class="w-[calc(100vw_-_300px)] h-screen-main fixed bottom-0 right-0 bg-gradient-to-tr from-neutral-500/50 to-neutral-900/50 z-[1]">
|
||||
</div>
|
||||
{{conformanceTempReportData}}
|
||||
<!-- title -->
|
||||
<p class="h2 text-base">Conformance Checking Results<span class="material-symbols-outlined text-base align-middle ml-2" v-tooltip.bottom="tooltip.results" type="text">info</span></p>
|
||||
<!-- total group -->
|
||||
@@ -301,7 +300,7 @@ export default {
|
||||
* @param {object} data new watch's value
|
||||
*/
|
||||
setConformanceTempReportData(data){
|
||||
let sum = Object.values(data.counts).reduce((acc, cur) => acc + cur, 0);
|
||||
let sum = data.counts.conforming + data.counts.not_conforming;
|
||||
let rate = ((data.counts.conforming / sum) * 100).toFixed(1);
|
||||
let isNullTime = value => value === null ? null : getNumberLabel((value / 86400).toFixed(1));
|
||||
let isNullCase = value => value === null ? null : getNumberLabel(value.toFixed(1));
|
||||
|
||||
Reference in New Issue
Block a user