From 0dcdbab83595503b558b14faab7d57a27136f665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=8B=BC?= <2468023037@qq.com> Date: Thu, 13 Feb 2025 22:03:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/Invite.ts | 62 +++++++ src/views/dashboard/monitor/index.vue | 160 +++++++++--------- src/views/dictionary/index.vue | 7 +- .../jobuser/components/FamilyTreeChart.vue | 93 ++++++++++ src/views/jobuser/index.vue | 10 +- 5 files changed, 247 insertions(+), 85 deletions(-) create mode 100644 src/api/Invite.ts create mode 100644 src/views/jobuser/components/FamilyTreeChart.vue diff --git a/src/api/Invite.ts b/src/api/Invite.ts new file mode 100644 index 0000000..7cf30e8 --- /dev/null +++ b/src/api/Invite.ts @@ -0,0 +1,62 @@ +import axios from 'axios'; +import { S } from 'mockjs'; + + +export interface LoginData { + username: string; + password: string; +} + + +export interface jobuser { + status: string; + code: number; + message: string; + data: { + jobuser: { + username: string; // 账号 + password: string; // 密码 + time: Date; // 注册时间 + type: number; // 累计在线时间 + }[] + }; + +} + +export interface Black { + status: string; + code: number; + message: string; + data: Array<{}>; +} +export interface Refresh { + status: string; + code: number; + data: { + access_token: string; + refresh_token: string; + }; + message: string; +} + +export interface ListParams { + black?: string; + username?: string; + } +/** + * + * @param data 获取子 + * @returns + */ +export function getSonId(id: string) { + return axios.post('/api/v1/Invite/getSonId', { id }); +} + +/** + * + * @param data 获取父 + * @returns + */ +export function getDayId(id: string) { + return axios.post('/api/v1/Invite/getDayId', { id }); + } diff --git a/src/views/dashboard/monitor/index.vue b/src/views/dashboard/monitor/index.vue index 421e11f..029d59f 100644 --- a/src/views/dashboard/monitor/index.vue +++ b/src/views/dashboard/monitor/index.vue @@ -1,87 +1,85 @@ - - - - - - diff --git a/src/views/dictionary/index.vue b/src/views/dictionary/index.vue index 00c7dae..7612e06 100644 --- a/src/views/dictionary/index.vue +++ b/src/views/dictionary/index.vue @@ -25,6 +25,9 @@ + + + 保存 @@ -45,7 +48,9 @@ const form = reactive({ service_2:"", service_3:"", service_url:"", - service_user_url:"" + service_user_url:"", + points:"" + }); const handleSubmit=()=>{ setAll(form) diff --git a/src/views/jobuser/components/FamilyTreeChart.vue b/src/views/jobuser/components/FamilyTreeChart.vue new file mode 100644 index 0000000..7f026c6 --- /dev/null +++ b/src/views/jobuser/components/FamilyTreeChart.vue @@ -0,0 +1,93 @@ + + + + + diff --git a/src/views/jobuser/index.vue b/src/views/jobuser/index.vue index 45a1c6c..4ebabbb 100644 --- a/src/views/jobuser/index.vue +++ b/src/views/jobuser/index.vue @@ -19,7 +19,7 @@ 封禁 解禁 - 查看团队 + 查看团队 @@ -27,11 +27,14 @@ - + - + + + + @@ -43,6 +46,7 @@ import { Modal } from '@arco-design/web-vue'; import { Message } from '@arco-design/web-vue'; import showgroup from './components/showgroup.vue'; +import FamilyTreeChart from './components/FamilyTreeChart.vue'; interface DataItem { username: string;