admin home statistics data
This commit is contained in:
@ -6,29 +6,51 @@ import { getResearchStatistic } from "@/api/admin/research/home";
|
||||
const statisticsList = ref([
|
||||
{
|
||||
label: "专利数量",
|
||||
value: 32,
|
||||
value: 0,
|
||||
unit: "项",
|
||||
},
|
||||
{
|
||||
label: "成果数量",
|
||||
value: 13,
|
||||
value: 0,
|
||||
unit: "个",
|
||||
},
|
||||
{
|
||||
label: "专家数量",
|
||||
value: 1,
|
||||
value: 0,
|
||||
unit: "位",
|
||||
},
|
||||
{
|
||||
label: "实验室数量",
|
||||
value: 6,
|
||||
value: 0,
|
||||
unit: "家",
|
||||
},
|
||||
]);
|
||||
|
||||
const loadResearchStatisticsData = () => {
|
||||
getResearchStatistic().then((resp) => {
|
||||
console.log(resp);
|
||||
const { data } = resp;
|
||||
statisticsList.value = [
|
||||
{
|
||||
label: "专利数量",
|
||||
value: data?.patentCount ?? 0,
|
||||
unit: "项",
|
||||
},
|
||||
{
|
||||
label: "成果数量",
|
||||
value: data?.achievementCount ?? 0,
|
||||
unit: "个",
|
||||
},
|
||||
{
|
||||
label: "专家数量",
|
||||
value: data?.expertCount ?? 0,
|
||||
unit: "位",
|
||||
},
|
||||
{
|
||||
label: "实验室数量",
|
||||
value: data?.laboratoryCount ?? 0,
|
||||
unit: "家",
|
||||
},
|
||||
];
|
||||
});
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user