| | |
| | |
|
| | | // 导出
|
| | | export const exportExcell = (name, params, url) => {
|
| | | fetch(apiConfig.baseURL + url, {
|
| | | const query = new URLSearchParams(params).toString();
|
| | | fetch(`${apiConfig.baseURL}${url}?${query}`, {
|
| | | method: 'get',
|
| | | params: JSON.stringify({
|
| | | ...params,
|
| | | }),
|
| | | headers: {
|
| | | Authorization: localStorage.getItem('token'),
|
| | | 'ConTent-Type': 'application/json;charset=UTF-8',
|
| | | 'Content-Type': 'application/json;charset=UTF-8',
|
| | | timestamp: new Date().getTime(),
|
| | | client: localStorage.getItem('client')
|
| | | },
|
| | |
| | | duration: 2000
|
| | | })
|
| | | });
|
| | | };
|
| | | }; |