แก้ เเสดงNaN
This commit is contained in:
parent
8876d481a9
commit
35e09e1b0b
2 changed files with 2 additions and 2 deletions
|
|
@ -160,7 +160,7 @@ function getDevelop() {
|
|||
(sum: number, e: any) => sum + e.summary,
|
||||
0
|
||||
);
|
||||
store.devScoreVal = total / rows.value.length;
|
||||
store.devScoreVal = data.length !== 0 ? total / rows.value.length : 0;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { ref, reactive } from "vue";
|
||||
import type { DataOption } from "@/modules/14_KPI/interface/index/Main";
|
||||
import type { FormQuery } from "@/modules/14_KPI/interface/request/Index";
|
||||
import type { FormQuery } from "@/modules/14_KPI/interface/request/index";
|
||||
|
||||
export const useKpiDataStore = defineStore("KPIDataAdmin", () => {
|
||||
const tabMainevaluator = ref<string>("1");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue