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 @@ 新增用户 - - - - - + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + - + + - -