export function exportAbilityEvaluation(data) {
return request({
url: `/evaluation/evaluateInstance/exportAbilityEvaluation`,
method: 'GET',
params: data,
responseType: 'blob',
})
}
import fileDownload from 'js-file-download'
async function handlerExportUser() {
const results = await exportAbilityEvaluationApi(props)
fileDownload(results, `${props.clickName}能力评估.xlsx`)
}
export const exportAbilityEvaluationApi = (props) => {
let params = {
list: props.clickId || props.pageParams?.evaluateInstanceId,
exportStatus: 1,
token: Cookies.get('Admin-Token'),
}
return new Promise(async (resolve, reject) => {
const resp = await exportAbilityEvaluation(params)
resolve(resp.data)
})
}