帮助
@@ -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)
})
}