From 6bc452732ba9958e06b394fc3c4b3cf15a2d4fee Mon Sep 17 00:00:00 2001 From: menxipeng Date: Tue, 5 Aug 2025 22:22:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.yml | 2 +- ruoyi-ui/src/api/user/cuser.js | 44 +++++++++++++++++++ ruoyi-ui/src/layout/components/Navbar.vue | 16 +++---- ruoyi-ui/src/store/modules/permission.js | 13 +++--- 4 files changed, 60 insertions(+), 15 deletions(-) create mode 100644 ruoyi-ui/src/api/user/cuser.js diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 7c8a4f1..02ae3e5 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -68,7 +68,7 @@ spring: # redis 配置 redis: # 地址 - host: 127.0.0.1 + host: 192.168.31.55 # 端口,默认为6379 port: 6379 # 数据库索引 diff --git a/ruoyi-ui/src/api/user/cuser.js b/ruoyi-ui/src/api/user/cuser.js new file mode 100644 index 0000000..bc5078a --- /dev/null +++ b/ruoyi-ui/src/api/user/cuser.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询会员列表 +export function listUser(query) { + return request({ + url: '/back/user/list', + method: 'get', + params: query + }) +} + +// 查询会员详细 +export function getUser(userId) { + return request({ + url: '/back/user/' + userId, + method: 'get' + }) +} + +// 修改会员 +export function updateUser(data) { + return request({ + url: '/back/user/update', + method: 'post', + data: data + }) +} + +// 修改会员状态 +export function changeUserStatus(data) { + return request({ + url: '/back/user/changeStatus', + method: 'post', + data: data + }) +} + +// 删除会员 +export function delUser(userId) { + return request({ + url: '/back/user/' + userId, + method: 'delete' + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue index 5c31196..c5eb36a 100644 --- a/ruoyi-ui/src/layout/components/Navbar.vue +++ b/ruoyi-ui/src/layout/components/Navbar.vue @@ -9,13 +9,13 @@