|
|
|
@ -436,7 +436,6 @@ const stats = reactive({
|
|
|
|
// 当前选中的总览卡片:total | pending | completed | high
|
|
|
|
// 当前选中的总览卡片:total | pending | completed | high
|
|
|
|
const activeStat = ref("total");
|
|
|
|
const activeStat = ref("total");
|
|
|
|
const parseStats = (res) => {
|
|
|
|
const parseStats = (res) => {
|
|
|
|
stats.total = res?.total || 0;
|
|
|
|
|
|
|
|
let payload = res?.data;
|
|
|
|
let payload = res?.data;
|
|
|
|
if (typeof payload === "string") {
|
|
|
|
if (typeof payload === "string") {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
@ -445,8 +444,10 @@ const parseStats = (res) => {
|
|
|
|
payload = {};
|
|
|
|
payload = {};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
stats.completed = Number(payload?.TotalStatus1 ?? 0);
|
|
|
|
stats.completed = Number(payload?.TotalStatus1 ?? 0);
|
|
|
|
stats.pending = Number(payload?.TotalStatus2 ?? 0);
|
|
|
|
stats.pending = Number(payload?.TotalStatus2 ?? 0);
|
|
|
|
|
|
|
|
stats.total = stats.completed + stats.pending;
|
|
|
|
stats.highPriority = Number(payload?.TotalPriority ?? 0);
|
|
|
|
stats.highPriority = Number(payload?.TotalPriority ?? 0);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|