2023-07-19 15:13:25 +08:00
|
|
|
<script setup>
|
|
|
|
import StatisticsPanel from "@/views/components/StatisticsPanel.vue";
|
|
|
|
import { ref } from "vue";
|
2023-07-20 11:47:32 +08:00
|
|
|
import { getResearchStatistic } from "@/api/admin/research/home";
|
2023-07-19 15:13:25 +08:00
|
|
|
|
|
|
|
const statisticsList = ref([
|
|
|
|
{
|
|
|
|
label: "专利数量",
|
|
|
|
value: 32,
|
|
|
|
unit: "项",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "成果数量",
|
|
|
|
value: 13,
|
|
|
|
unit: "个",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "专家数量",
|
|
|
|
value: 1,
|
|
|
|
unit: "位",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "实验室数量",
|
|
|
|
value: 6,
|
|
|
|
unit: "家",
|
|
|
|
},
|
|
|
|
]);
|
2023-07-20 11:47:32 +08:00
|
|
|
|
|
|
|
const loadResearchStatisticsData = () => {
|
|
|
|
getResearchStatistic().then((resp) => {
|
|
|
|
console.log(resp);
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
loadResearchStatisticsData();
|
2023-07-19 15:13:25 +08:00
|
|
|
</script>
|
2023-06-07 10:44:31 +08:00
|
|
|
|
|
|
|
<template>
|
2023-07-19 15:13:25 +08:00
|
|
|
<div class="app-container">
|
|
|
|
<statistics-panel :list="statisticsList" />
|
|
|
|
</div>
|
2023-06-07 10:44:31 +08:00
|
|
|
</template>
|
|
|
|
|
2023-06-13 13:40:54 +08:00
|
|
|
<style lang="scss" scoped></style>
|