榆山数据端小程序
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.

182 lines
4.7 KiB

import request from '../utils/rerquest'
/**
* TOP10
* @param {string} itemState 1:结案或关闭2:解决中
* @param {number} someMonthsType 1:最近1个月2:最近3个月3:最近半年4:最近一年
* @param {number} analysisType 分析类型1:耗时最长2:部门数量3:处理次数
*/
export function queryDifficultItem ({ itemState, someMonthsType, analysisType }: QueryDifficultItemApiIption) {
return request({
method: 'GET',
url: 'cloudAnalysis/item/queryDifficultItem',
options: {
itemState,
someMonthsType,
analysisType
}
})
}
/**
*
* @param {string} deptId Id
* @param {number} pageIndex
* @param {number} pageSize
* @param {string} cotegoryType 0.1.2.
*/
export function getStatisticsByCategory ({ deptId = '', pageIndex = 1, pageSize = 10, cotegoryType = '0' }: GetStatisticsByCategoryApiOption) {
return request({
method: 'GET',
url: 'cloudAnalysis/issue/getStatisticsByCategory',
options: {
deptId,
pageIndex,
pageSize,
cotegoryType
}
})
}
/**
*
* @param {String} evaluateType 评价类别:1.非常满意2.3.
* @param {String} cotegoryType 1.2.3.
*/
export function getEvaluateCountList(evaluateType: string, cotegoryType: string) {
return request({
method: 'GET',
url: 'cloudAnalysis/item/getEvaluateCountList',
options: {
evaluateType,
cotegoryType
}
})
}
/**
*
* @param {Number} pageIndex
* @param {Number} pageSize
* @param {String} evaluateType 评价类别:1.非常满意2.3.
*/
export function getEvaluateList({ pageIndex, pageSize, evaluateType}: GetStatisticsByCategoryApiOption) {
return request({
method: 'GET',
url: 'cloudAnalysis/item/getEvaluateList',
options: {
pageIndex,
pageSize,
evaluateType
}
})
}
/**
* --
* @param {number} pageIndex
* @param {number} pageSize
* @param {number} deptId id
* @param {strng} someMonthsType 1:最近1个月2:最近3个月3:最近半年4:最近一年
*/
export function getEndByselfList ({ someMonthsType, pageIndex, pageSize, deptId }: {someMonthsType: string, pageIndex: number, pageSize: number, deptId: string}) {
return request({
method: 'GET',
url: 'cloudAnalysis/item/getEndByselfList',
options: {
pageIndex,
pageSize,
someMonthsType,
deptId
}
})
}
/**
* --
* @param {string} id
*/
export function getItemDetail(id: string) {
return request({
method: 'GET',
url: `cloudAnalysis/item/getItemDetail/${id}`
})
}
/**
* --TOP10
* @param {string} eventId
* @param {number} pageIndex
* @param {number} pageSize
* @param {string} orderType
*/
export function getCommentList ({ eventId, pageIndex = 1, pageSize = 10, orderType = '1' }: {eventId: string, pageIndex: number, pageSize: number , orderType: string }) {
return request({
method: 'GET',
url: 'cloudAnalysis/event/getCommentList',
options: {
eventId,
pageIndex,
pageSize,
orderType
}
})
}
/**
*
*
* @param {number} pageIndex
* @param {number} pageSize
* @param {number} someMonthsType
*/
export function getTopicHotList({ pageIndex, pageSize,someMonthsType }: RequestAPIOptionsLogin) {
return request({
method: 'GET',
url:'cloudAnalysis/topic/getHotTopicList',
options:{
pageIndex,
pageSize,
someMonthsType
}
})
}
/**
*
*
* @param {number} pageIndex
* @param {number} pageSize
* @param {number} someMonthsType
*/
export function getHotIssueList({ pageIndex, pageSize,someMonthsType }: RequestAPIOptionsLogin) {
return request({
method: 'GET',
url:'cloudAnalysis/issue/getHotIssueList',
options:{
pageIndex,
pageSize,
someMonthsType
}
})
}
/**
*
*
* @param {number} pageIndex
* @param {number} pageSize
* @param {number} someMonthsType
*/
export function getHotItemList({ pageIndex, pageSize,someMonthsType }: RequestAPIOptionsLogin) {
return request({
method: 'GET',
url:'cloudAnalysis/item/getHotItemList',
options:{
pageIndex,
pageSize,
someMonthsType
}
})
}