|
|
@ -7,8 +7,7 @@ const api = { |
|
|
|
role: '/mock/api/role', |
|
|
|
role: '/mock/api/role', |
|
|
|
service: '/mock/api/service', |
|
|
|
service: '/mock/api/service', |
|
|
|
permission: '/mock/api/permission', |
|
|
|
permission: '/mock/api/permission', |
|
|
|
permissionNoPager: '/mock/api/permission/no-pager', |
|
|
|
permissionNoPager: '/mock/api/permission/no-pager' |
|
|
|
myTaskData: 'task/task/list' |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export default api |
|
|
|
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) { |
|
|
|
export function getMyTaskData(parameter) { |
|
|
|
return axios({ |
|
|
|
return axios({ |
|
|
|
url: api.myTaskData, |
|
|
|
url: myTaskApi.myTaskData, |
|
|
|
method: 'get', |
|
|
|
method: 'get', |
|
|
|
params: parameter |
|
|
|
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 |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|