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 @@
- - + @@ -15,33 +15,33 @@ 新增 + v-hasPermi="['abuwx:project:add']">新增 修改 + v-hasPermi="['abuwx:project:edit']">修改 删除 + @click="handleDelete" v-hasPermi="['abuwx:project:remove']">删除 导出 + v-hasPermi="['abuwx:project:export']">导出 - + - - + + @@ -52,11 +52,11 @@ - - + + - - + + @@ -84,12 +84,12 @@ \ No newline at end of file +