心理健康导入

This commit is contained in:
yaojian
2026-03-02 13:58:09 +08:00
parent 8bfed4fbc3
commit a3685852c5
2 changed files with 136 additions and 6 deletions

View File

@@ -72,3 +72,31 @@ export const updateResult = (data: any) => {
});
};
/**
* 导入心理健康数据
* @param file
*/
export const importExcel = (file: File) => {
const formData = new FormData();
formData.append('file', file);
return request({
url: '/stuwork/stucare/import',
method: 'post',
data: formData,
headers: {
'Content-Type': 'multipart/form-data'
}
});
};
/**
* 下载导入模板
*/
export const downloadTemplate = () => {
return request({
url: '/stuwork/stucare/importTemplate',
method: 'get',
responseType: 'blob'
});
};