From f735331d3360af3e16775d785687693f3c414f93 Mon Sep 17 00:00:00 2001 From: Echo <1711788888@qq.com> Date: Sat, 10 May 2025 08:16:06 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=20=E5=AE=8C=E5=96=84=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user/index.js | 8 ++++ src/config.js | 72 ++++++++++++++++++++++++++++++++++-- src/pathInfo.json | 2 + src/view/user/user/index.vue | 68 ++++++++++++++++++++++++++++++++-- 4 files changed, 142 insertions(+), 8 deletions(-) diff --git a/src/api/user/index.js b/src/api/user/index.js index b966068..a80edc0 100644 --- a/src/api/user/index.js +++ b/src/api/user/index.js @@ -21,3 +21,11 @@ export const status = (data) => { data }) } + +// 获取用户详情 +export const getUserDetail = (id) => { + return service({ + url: `/app_user/${id}`, + method: 'get' + }) +} diff --git a/src/config.js b/src/config.js index ef67599..63d2a3f 100644 --- a/src/config.js +++ b/src/config.js @@ -39,7 +39,55 @@ export const USER_SEARCH_CONFIG = [ ...userStatus ] }, - } + }, + { + type: 'select', + prop:'type', + label: '用户类型', + placeholder: '请选择', + children:{ + list: [ + { + label: '全部', + value: '' + }, + { + label: '普通用户', + value: 1 + }, + { + label: '讲师', + value: 2 + } + ] + }, + }, + { + type: 'select', + prop:'user_label', + label: 'VIP等级', + placeholder: '请选择', + children:{ + list: [ + { + label: '全部', + value: '' + }, + { + label: '注册会员', + value: 1 + }, + { + label: 'VIP', + value: 2 + }, + { + label: 'SVIP', + value: 3 + } + ] + }, + }, ] export const ARTICLE_SEARCH_CONFIG = [ { @@ -170,11 +218,27 @@ export const USER_TABLE_CONFIG = { slot: 'CreatedAt' },{ attrs: { - label: '更新时间', - prop: 'UpdatedAt', + label: '用户类别', + prop: 'user_type', align: 'center' }, - slot: 'UpdatedAt' + slot: 'user_type' + }, + { + attrs: { + label: 'VIP', + prop: 'user_label', + align: 'center' + }, + slot: 'user_label' + }, + { + attrs: { + label: '账户余额', + prop: 'balance', + align: 'center' + }, + slot: 'balance' }, { attrs: { diff --git a/src/pathInfo.json b/src/pathInfo.json index 75fe9b2..d63551e 100644 --- a/src/pathInfo.json +++ b/src/pathInfo.json @@ -43,6 +43,8 @@ "/src/view/layout/setting/title.vue": "layoutSettingTitle", "/src/view/layout/tabs/index.vue": "HistoryComponent", "/src/view/login/index.vue": "Login", + "/src/view/notice/notice/notice.vue": "Notice", + "/src/view/notice/notice/noticeForm.vue": "NoticeForm", "/src/view/order/index.vue": "OrderManage", "/src/view/order/order/index.vue": "Index", "/src/view/person/person.vue": "Person", diff --git a/src/view/user/user/index.vue b/src/view/user/user/index.vue index 6bcdea4..e7f0803 100644 --- a/src/view/user/user/index.vue +++ b/src/view/user/user/index.vue @@ -43,9 +43,21 @@ {{ formatDate(row.CreatedAt) }} -