diff --git a/src/api/abuwx/project.js b/src/api/abuwx/project.js new file mode 100644 index 0000000..c620efb --- /dev/null +++ b/src/api/abuwx/project.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询项目管理列表 +export function listProject(query) { + return request({ + url: '/abuwx/project/list', + method: 'get', + params: query + }) +} + +// 查询项目管理详细 +export function getProject(id) { + return request({ + url: '/abuwx/project/' + id, + method: 'get' + }) +} + +// 新增项目 +export function addProject(data) { + return request({ + url: '/abuwx/project', + method: 'post', + data: data + }) +} + +// 修改项目 +export function updateProject(data) { + return request({ + url: '/abuwx/project', + method: 'put', + data: data + }) +} + +// 删除项目 +export function delProject(id) { + return request({ + url: '/abuwx/project/' + id, + method: 'delete' + }) +} diff --git a/src/views/abuwx/wxuser/project.vue b/src/views/abuwx/wxuser/project.vue index 3754eec..1d64eb7 100644 --- a/src/views/abuwx/wxuser/project.vue +++ b/src/views/abuwx/wxuser/project.vue @@ -2,8 +2,8 @@