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.
22 lines
499 B
22 lines
499 B
3 years ago
|
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'
|
||
|
})
|
||
|
}
|