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.
118 lines
2.5 KiB
118 lines
2.5 KiB
import request from '../utils/requestClerk'
|
|
// 获得网格
|
|
export function getGridAuthByUser() {
|
|
return request({
|
|
method: 'GET',
|
|
url: 'sys/user/deptOptions/getGridAuthByUser',
|
|
})
|
|
}
|
|
/**
|
|
* 获得随手记类型
|
|
*/
|
|
export function getDailyType() {
|
|
return request({
|
|
method: 'GET',
|
|
url: 'workRecord/resource/getDailyType',
|
|
})
|
|
}
|
|
|
|
|
|
/**
|
|
* 获得会议类型
|
|
*/
|
|
export function getMeetType(resourceId) {
|
|
return request({
|
|
method: 'GET',
|
|
url: `workRecord/resource/getMeetType?resourceId=${resourceId}`,
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 提交随手记
|
|
* dailyType 随手记类型
|
|
* meetType 会议类型
|
|
* resourceId 资源ID
|
|
* meetDate 会议时间
|
|
* address 地址
|
|
* joinNum 参加人数
|
|
* content 内容
|
|
* images 图片
|
|
*
|
|
* imgUrl 原始图地址
|
|
* thumbnail 缩略图地址
|
|
*/
|
|
export function submitDailyRecord({dailyType,meetType,resourceId,meetDate,address,joinNum,content,images,joinList}) {
|
|
return request({
|
|
method: 'POST',
|
|
url: `workRecord/daily/submitDailyRecord`,
|
|
options: {
|
|
dailyType,
|
|
meetType,
|
|
resourceId,
|
|
meetDate,
|
|
address,
|
|
joinNum,
|
|
content,
|
|
images,joinList
|
|
}
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 修改随手记
|
|
* id 随手记id
|
|
* dailyType 随手记类型
|
|
* meetType 会议类型
|
|
* resourceId 资源ID
|
|
* meetDate 会议时间
|
|
* address 地址
|
|
* joinNum 参加人数
|
|
* content 内容
|
|
* images 图片
|
|
*
|
|
* imgUrl 原始图地址
|
|
* thumbnail 缩略图地址
|
|
*/
|
|
export function updateDailyRecord({id,dailyType,meetType,resourceId,meetDate,address,joinNum,content,images,joinList}) {
|
|
return request({
|
|
method: 'POST',
|
|
url: `workRecord/daily/updateDailyRecord`,
|
|
options: {
|
|
id,
|
|
dailyType,
|
|
meetType,
|
|
resourceId,
|
|
meetDate,
|
|
address,
|
|
joinNum,
|
|
content,
|
|
images,
|
|
joinList
|
|
}
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获得随手记详情
|
|
*/
|
|
export function getDailyRecordDetail(id) {
|
|
return request({
|
|
method: 'GET',
|
|
url: `workRecord/daily/getDailyRecordDetail/${id}`,
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获得随手记详情
|
|
*/
|
|
export function getDailyRecordList({pageIndex,pageSize}) {
|
|
return request({
|
|
method: 'GET',
|
|
url: `workRecord/daily/getDailyRecordList`,
|
|
options: {
|
|
pageIndex,
|
|
pageSize,
|
|
}
|
|
})
|
|
}
|
|
|
|
|