From ed19ab473901c12a2815cdc856ed9263cd85efce Mon Sep 17 00:00:00 2001 From: zhangjf Date: Sun, 15 Feb 2026 16:28:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E5=96=84=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=20-=20=E5=AE=A2=E6=88=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E3=80=81=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86=E3=80=81=E5=90=88?= =?UTF-8?q?=E5=90=8C=E7=AE=A1=E7=90=86=E3=80=81=E7=94=A8=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=AE=8C=E6=95=B4=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fund-admin/src/api/project.js | 77 +++++ fund-admin/src/api/user.js | 55 ++++ fund-admin/src/views/customer/list.vue | 132 ++++++++- fund-admin/src/views/project/contract.vue | 313 ++++++++++++++++++++- fund-admin/src/views/project/list.vue | 327 +++++++++++++++++++++- fund-admin/src/views/system/user.vue | 324 +++++++++++++++++++-- 6 files changed, 1205 insertions(+), 23 deletions(-) create mode 100644 fund-admin/src/api/project.js create mode 100644 fund-admin/src/api/user.js diff --git a/fund-admin/src/api/project.js b/fund-admin/src/api/project.js new file mode 100644 index 0000000..8191b06 --- /dev/null +++ b/fund-admin/src/api/project.js @@ -0,0 +1,77 @@ +import request from '../utils/request' + +export const getProjectList = (params) => { + return request({ + url: '/proj/api/v1/project/list', + method: 'get', + params + }) +} + +export const getProjectById = (id) => { + return request({ + url: `/proj/api/v1/project/${id}`, + method: 'get' + }) +} + +export const createProject = (data) => { + return request({ + url: '/proj/api/v1/project', + method: 'post', + data + }) +} + +export const updateProject = (id, data) => { + return request({ + url: `/proj/api/v1/project/${id}`, + method: 'put', + data + }) +} + +export const deleteProject = (id) => { + return request({ + url: `/proj/api/v1/project/${id}`, + method: 'delete' + }) +} + +export const updateProjectStatus = (id, status) => { + return request({ + url: `/proj/api/v1/project/${id}/status/${status}`, + method: 'put' + }) +} + +export const getContractList = (params) => { + return request({ + url: '/proj/api/v1/contract/list', + method: 'get', + params + }) +} + +export const createContract = (data) => { + return request({ + url: '/proj/api/v1/contract', + method: 'post', + data + }) +} + +export const updateContract = (id, data) => { + return request({ + url: `/proj/api/v1/contract/${id}`, + method: 'put', + data + }) +} + +export const deleteContract = (id) => { + return request({ + url: `/proj/api/v1/contract/${id}`, + method: 'delete' + }) +} diff --git a/fund-admin/src/api/user.js b/fund-admin/src/api/user.js new file mode 100644 index 0000000..dc736d2 --- /dev/null +++ b/fund-admin/src/api/user.js @@ -0,0 +1,55 @@ +import request from '../utils/request' + +export const getUserList = (params) => { + return request({ + url: '/sys/api/v1/user/list', + method: 'get', + params + }) +} + +export const getUserById = (id) => { + return request({ + url: `/sys/api/v1/user/${id}`, + method: 'get' + }) +} + +export const createUser = (data) => { + return request({ + url: '/sys/api/v1/user', + method: 'post', + data + }) +} + +export const updateUser = (id, data) => { + return request({ + url: `/sys/api/v1/user/${id}`, + method: 'put', + data + }) +} + +export const deleteUser = (id) => { + return request({ + url: `/sys/api/v1/user/${id}`, + method: 'delete' + }) +} + +export const resetPassword = (id, newPassword) => { + return request({ + url: `/sys/api/v1/user/${id}/reset-password`, + method: 'put', + params: { newPassword } + }) +} + +export const updateUserStatus = (id, status) => { + return request({ + url: `/sys/api/v1/user/${id}/status`, + method: 'put', + params: { status } + }) +} diff --git a/fund-admin/src/views/customer/list.vue b/fund-admin/src/views/customer/list.vue index 9baa1f4..17cc57e 100644 --- a/fund-admin/src/views/customer/list.vue +++ b/fund-admin/src/views/customer/list.vue @@ -60,13 +60,77 @@ @current-change="handleCurrentChange" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/fund-admin/src/views/project/list.vue b/fund-admin/src/views/project/list.vue index 490097d..6dcd614 100644 --- a/fund-admin/src/views/project/list.vue +++ b/fund-admin/src/views/project/list.vue @@ -4,14 +4,328 @@ -

项目管理页面 - 开发中

+ + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/fund-admin/src/views/system/user.vue b/fund-admin/src/views/system/user.vue index 4184589..12aa1b8 100644 --- a/fund-admin/src/views/system/user.vue +++ b/fund-admin/src/views/system/user.vue @@ -7,41 +7,324 @@ 新增用户 - - - - - + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + - + + - -