From ae6f59c846e30aa73d60103a882af1f7c9b1863b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=96=E5=A7=90?= <2981176548@qq.com> Date: Sun, 21 Jan 2024 22:32:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=95=8C=E9=9D=A2=E5=AE=8C?= =?UTF-8?q?=E5=96=844.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/manager/Data/Index.vue | 91 +++++++++++++++++---------------- src/manager/Data/UserManage.vue | 3 +- 2 files changed, 49 insertions(+), 45 deletions(-) diff --git a/src/manager/Data/Index.vue b/src/manager/Data/Index.vue index c630a22..b8c99dc 100644 --- a/src/manager/Data/Index.vue +++ b/src/manager/Data/Index.vue @@ -2,10 +2,10 @@
- + - +

进度

@@ -14,8 +14,8 @@
- - + +

进度

@@ -23,23 +23,28 @@
- - - -

进度

- - - - -
- -
+
+ + + + {{ percent }}% + + + + + + + 项目总进度 - +
+ + + + - + @@ -63,7 +68,7 @@
-
+
帮助 @@ -87,7 +92,7 @@ import { AvatarList, Card, Carousel, - CarouselItem, Description, + CarouselItem, Circle, Description, DescriptionList, GlobalFooter, GridItem, Icon, NumberInfo, @@ -95,9 +100,18 @@ import { Space, } from "view-ui-plus"; -import {reactive, ref} from "vue"; +import {computed, reactive, ref} from "vue"; + const value = ref(0) +const percent = ref(20) +const color = computed(() => { + let color = '#2db7f5'; + if (percent.value === 100) { + color = '#5cb85c'; + } + return color; +}) const data = reactive({ list: [ { @@ -116,30 +130,19 @@ const data = reactive({ ], }) -// const datatwo = reactive({ -// links: [ -// { -// key: '帮助', -// title: '帮助', -// href: 'https://www.iviewui.com', -// blankTarget: true -// }, -// { -// key: 'github', -// icon: 'logo-github', -// href: 'https://github.com/view-design/ViewUIPlus', -// blankTarget: true -// }, -// { -// key: '条款', -// title: '条款', -// href: '', -// blankTarget: true -// } -// ], -// copyright: 'Copyright © 2022 View Design All Rights Reserved' -// }); -// +function add () { + if (percent.value >= 100) { + return false; + } + percent.value += 10; +} +function minus () { + if (percent.value <= 0) { + return false; + } + percent.value -= 10; +} + diff --git a/src/manager/Data/UserManage.vue b/src/manager/Data/UserManage.vue index b94d8c3..b4974c1 100644 --- a/src/manager/Data/UserManage.vue +++ b/src/manager/Data/UserManage.vue @@ -252,6 +252,7 @@ onMounted(() => { */ function getAll() { + requests.userAllCurrent(AllUser,token).then((res)=>{ console.log(res) // states.data = res.data.data @@ -260,7 +261,7 @@ function getAll() { for (let i = 0; i < res.data.data.length; i++) { states.data[i] = res.data.data[i].user } - console.log("getAll:",res) + console.log("getAll:",states.data) }) }