From 0a69041602cc4cc20d7e1b29d42810aff95aa558 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 31 Mar 2023 23:34:19 +0800 Subject: [PATCH] =?UTF-8?q?REVIEW=20=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=EF=BC=88=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user/index.ts | 6 +- .../system/user/{components => }/UserForm.vue | 202 ++++++++---------- src/views/system/user/index.vue | 3 +- 3 files changed, 94 insertions(+), 117 deletions(-) rename src/views/system/user/{components => }/UserForm.vue (58%) diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index 90b07fe5..b53a77c5 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -23,17 +23,17 @@ export const getUserPage = (params: PageParam) => { } // 查询用户详情 -export const getUserApi = (id: number) => { +export const getUser = (id: number) => { return request.get({ url: '/system/user/get?id=' + id }) } // 新增用户 -export const createUserApi = (data: UserVO | Recordable) => { +export const createUser = (data: UserVO) => { return request.post({ url: '/system/user/create', data }) } // 修改用户 -export const updateUserApi = (data: UserVO | Recordable) => { +export const updateUser = (data: UserVO) => { return request.put({ url: '/system/user/update', data }) } diff --git a/src/views/system/user/components/UserForm.vue b/src/views/system/user/UserForm.vue similarity index 58% rename from src/views/system/user/components/UserForm.vue rename to src/views/system/user/UserForm.vue index a69bf971..ecf67fce 100644 --- a/src/views/system/user/components/UserForm.vue +++ b/src/views/system/user/UserForm.vue @@ -1,7 +1,12 @@ diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index e57a62b4..aa2d2566 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -187,14 +187,13 @@ -