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.
76 lines
1.3 KiB
76 lines
1.3 KiB
import request from '../utils/requestClerk'
|
|
/**
|
|
* 获得周报选项
|
|
*/
|
|
export function getweekRecordOptionList() {
|
|
return request({
|
|
method: 'GET',
|
|
url: 'workRecord/week/getweekRecordOptionList',
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 提交周报
|
|
*/
|
|
export function submitWeekRocord({
|
|
content,
|
|
totalData,
|
|
images
|
|
}) {
|
|
return request({
|
|
method: 'POST',
|
|
url: 'workRecord/week/submitWeekRocord',
|
|
options: {
|
|
content,
|
|
totalData,
|
|
images
|
|
}
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获得周报列表
|
|
*/
|
|
export function getWeekRecordList({
|
|
pageIndex,
|
|
pageSize
|
|
}) {
|
|
return request({
|
|
method: 'GET',
|
|
url: 'workRecord/week/getWeekRecordList',
|
|
options: {
|
|
pageIndex,
|
|
pageSize,
|
|
}
|
|
})
|
|
}
|
|
/**
|
|
* 获得周报详情
|
|
*/
|
|
export function getWeekRecordDetail(infoId) {
|
|
return request({
|
|
method: 'GET',
|
|
url: `workRecord/week/getWeekRecordDetail/${infoId}`,
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 更新周报
|
|
*/
|
|
export function updateWeekRocord({
|
|
id,
|
|
content,
|
|
totalData,
|
|
images
|
|
}) {
|
|
return request({
|
|
method: 'POST',
|
|
url: 'workRecord/week/updateWeekRocord',
|
|
options: {
|
|
id,
|
|
content,
|
|
totalData,
|
|
images
|
|
}
|
|
})
|
|
}
|
|
|