Files

45 lines
786 B
Vue
Raw Normal View History

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 { getLaboratoryStatistic } from "@/api/admin/laboratory/home";
2023-07-19 15:13:25 +08:00
const statisticsList = ref([
{
label: "专利数量",
value: 47,
unit: "项",
},
{
label: "成果数量",
value: 17,
unit: "个",
},
{
label: "需求数量",
value: 11,
unit: "个",
},
{
label: "论文数量",
value: 46,
unit: "篇",
},
]);
2023-07-20 11:47:32 +08:00
const loadLabStatisticsData = () => {
getLaboratoryStatistic().then((resp) => {
console.log(resp);
});
};
loadLabStatisticsData();
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>