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.
49 lines
1.2 KiB
49 lines
1.2 KiB
5 years ago
|
var fly = require('../utils/request.js')
|
||
|
|
||
|
module.exports = {
|
||
|
getEventDetail,
|
||
|
getIssueDetail,
|
||
|
getIssueProcessList,
|
||
|
postIssueHandleSubmit,
|
||
|
postIssueUpload,
|
||
|
getEvaluation,
|
||
|
getCategoryList,
|
||
|
postEventHandleSubmit
|
||
|
}
|
||
|
|
||
|
// 获取事件详情
|
||
|
function getEventDetail(id) {
|
||
|
return fly.get(`work/event/event/detail/${id}`)
|
||
|
}
|
||
|
// 获取议题详情
|
||
|
function getIssueDetail(id) {
|
||
|
return fly.get(`work/event/issue/detail/${id}`)
|
||
|
}
|
||
|
// 获取议题处理进度
|
||
|
function getIssueProcessList(issueId) {
|
||
|
return fly.get('work/event/issue/processList', {
|
||
|
issueId: issueId
|
||
|
})
|
||
|
}
|
||
|
// 获取满意度评价结果
|
||
|
function getEvaluation(itemId) {
|
||
|
return fly.get('work/event/item/evaluation', {
|
||
|
itemId: itemId
|
||
|
})
|
||
|
}
|
||
|
// 提交议题处理
|
||
|
function postIssueHandleSubmit(params) {
|
||
|
return fly.post('work/event/issue/handleSubmit', params)
|
||
|
}
|
||
|
// 上传图片
|
||
|
function postIssueUpload(params) {
|
||
|
return fly.post('events/issue/upload', params)
|
||
|
}
|
||
|
// 获取分类列表
|
||
|
function getCategoryList(params) {
|
||
|
return fly.get('events/issue/category/list', params, "1")
|
||
|
}
|
||
|
// 提交事件审核
|
||
|
function postEventHandleSubmit(params) {
|
||
|
return fly.post('work/event/event/review', params)
|
||
|
}
|