From 64adf0faa3ee49de1d4ba3abe6c9de5bb565f44b Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期四, 12 九月 2024 11:37:21 +0800 Subject: [PATCH] Merge branch 'master' of http://42.193.1.25:9521/r/dream_web --- src/views/home/index.vue | 46 ++++++++++++++++++++++++++++++++-------------- 1 files changed, 32 insertions(+), 14 deletions(-) diff --git a/src/views/home/index.vue b/src/views/home/index.vue index b4d1470..d23d265 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,32 +1,50 @@ <template> <div class="dashboard-container"> - <div class="dashboard-text">name: {{ name }}</div> - <el-button @click="getUserDate">鐧诲綍</el-button> + <div> + <div> + <Chart :data="data1"></Chart> + </div> + <div> + <Chart :data="data2"></Chart> + </div> + <div> + <Chart :data="data3"></Chart> + </div> + </div> </div> </template> <script> import { mapGetters } from "vuex"; -import { login } from "@/api/user"; +import Chart from "./components/chart.vue"; export default { name: "Dashboard", + components: { + Chart, + }, computed: { ...mapGetters(["name"]), }, - created() { - // this.getUserDate(); + data(){ + return{ + data1:{ + value:'course', + lable:'璇炬秷' + }, + data2:{ + value:'student', + lable:'瀛﹀憳' + }, + data3:{ + value:'class', + lable:'鑰冨嫟' + } + } + }, + mounted() { }, methods: { - getUserDate() { - console.log(123); - login({ - code: "061f951w3vnwd33iLL1w3kAvmo1f951N" - } - ).then((res) => { - console.log(res); - }); - }, }, }; </script> -- Gitblit v1.8.0