import request from '@/utils/request' import qs from 'qs' export function initData(url, params) { if (params.createTime) { params.begin_time = params.createTime[0] params.end_time = params.createTime[1] } return request({ url: url + '?' + qs.stringify(params, { indices: false }), method: 'get' }) } export function download(url, params) { return request({ url: url + '?' + qs.stringify(params, { indices: false }), method: 'get', responseType: 'blob' }) }