diff --git a/ant-design-vue-jeecg/src/api/manage.js b/ant-design-vue-jeecg/src/api/manage.js index 25da5c4..9a8de7e 100644 --- a/ant-design-vue-jeecg/src/api/manage.js +++ b/ant-design-vue-jeecg/src/api/manage.js @@ -7,8 +7,7 @@ const api = { role: '/mock/api/role', service: '/mock/api/service', permission: '/mock/api/permission', - permissionNoPager: '/mock/api/permission/no-pager', - myTaskData: 'task/task/list' + permissionNoPager: '/mock/api/permission/no-pager' } export default api @@ -215,11 +214,37 @@ export function getFileAccessHttpUrl(avatar, subStr) { } } -// 大禹项目管理系统中的个人任务管理 +// 个人任务管理接口 +const myTaskApi = { + myTaskData: 'task/task/list', + updateWorkStatus: 'task/task/updateWorkStatus', + delete: '/task/task/delete', + edit: '/task/task/edit', + decompose: '/task/task/fengjie' +} + +// 个人任务管理数据获取接口 export function getMyTaskData(parameter) { return axios({ - url: api.myTaskData, + url: myTaskApi.myTaskData, method: 'get', params: parameter }) } +// 个人任务管理删除数据 +export function delCardData(parameter) { + return axios({ + url: myTaskApi.delete, + method: 'delete', + params: parameter + }) +} + +// 个人任务管理编辑数据 +export function editCardData(parameter) { + return axios({ + url: myTaskApi.edit, + method: 'put', + data: parameter + }) +} diff --git a/ant-design-vue-jeecg/src/views/newLayout/myTask/list/assignment.vue b/ant-design-vue-jeecg/src/views/newLayout/myTask/list/assignment.vue index 7cbc838..6f8f5b1 100644 --- a/ant-design-vue-jeecg/src/views/newLayout/myTask/list/assignment.vue +++ b/ant-design-vue-jeecg/src/views/newLayout/myTask/list/assignment.vue @@ -31,7 +31,7 @@ {{ assignmnetData.total }}