榆山
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

201 lines
3.9 KiB

import request from '../utils/requestClerk'
export function getByLoginUser() {
return request({
method: 'GET',
// url: 'sys/user/deptOptions/getByLoginUser',
url:'sys/user/deptOptions/getDeptAuthByUser'
})
}
//月报列表
export function getMonthRecordList({
pageIndex,
pageSize
}) {
return request({
method: 'GET',
url: 'workRecord/month/getMonthRecordList',
options: {
pageIndex,
pageSize
}
})
}
//查看月报详情
export function getMonthRecordDetail(infoId) {
return request({
method: 'GET',
url: `workRecord/month/getMonthRecordDetail?infoId=${infoId}`,
})
}
//提交工作报告
export function submitMonthRecord({
content,
images
}) {
return request({
method: 'POST',
url: 'workRecord/month/submitMonthRecord',
options: {
content,
images
}
})
}
// 更新工作报告
export function updateMonthRecord({
infoId,
content,
images
}) {
return request({
method: 'POST',
url: 'workRecord/month/updateMonthRecord',
options: {
infoId,
content,
images
}
})
}
//提交优秀案例
export function submitMonthExcellentCase({
infoId,
content,
images
}) {
return request({
method: 'POST',
url: 'workRecord/month/submitMonthExcellentCase',
options: {
infoId,
content,
images
}
})
}
//更新优秀案例
export function updateMonthExcellentCase({
infoId,
content,
images
}) {
return request({
method: 'POST',
url: 'workRecord/month/updateMonthExcellentCase',
options: {
infoId,
content,
images
}
})
}
//提交示范网格
export function submitMonthExcellentGrid({infoId, content,deptId, deptName, allDeptIds,images}) {
return request({
method: 'POST',
url: 'workRecord/month/submitMonthExcellentGrid',
options: {
infoId,
content,
deptId,
deptName,
allDeptIds,
images
}
})
}
//更新示范网格
export function updateMonthExcellentGrid({infoId, content,deptId, deptName,allDeptIds, images}) {
return request({
method: 'POST',
url: 'workRecord/month/updateMonthExcellentGrid',
options: {
infoId,
content,
deptId,
deptName,
allDeptIds,
images
}
})
}
//提交优秀个人
export function submitMonthExcellentPerson({
infoId,
content,
name,
mobile,
partyFlag,
images
}) {
return request({
method: 'POST',
url: 'workRecord/month/submitMonthExcellentPerson',
options: {
infoId,
content,
name,
mobile,
partyFlag,
images
}
})
}
// 更新优秀个人
export function updateMonthExcellentPerson({
infoId,
content,
name,
mobile,
partyFlag,
images
}) {
return request({
method: 'POST',
url: 'workRecord/month/updateMonthExcellentPerson',
options: {
infoId,
content,
name,
mobile,
partyFlag,
images
}
})
}
//提交网格排名
export function submitMonthGridSort({
infoId,
sortList
}) {
return request({
method: 'POST',
url: 'workRecord/month/submitMonthGridSort',
options: {
infoId,
sortList
}
})
}
//更新网格排名
export function updateMonthGridSort({
infoId,
sortList
}) {
return request({
method: 'POST',
url: 'workRecord/month/updateMonthGridSort',
options: {
infoId,
sortList
}
})
}