commit | author | age
|
6bcd13
|
1 |
import { axios } from '@/utils/request' |
I |
2 |
|
|
3 |
|
|
4 |
/** |
|
5 |
* 上传文件 |
|
6 |
* |
|
7 |
* @author yubaoshan |
|
8 |
* @date 2020/6/30 00:20 |
|
9 |
*/ |
|
10 |
export function sysFileInfoUpload (parameter) { |
|
11 |
return axios({ |
|
12 |
url: '/sysFileInfo/upload', |
|
13 |
method: 'post', |
87317f
|
14 |
data: parameter, |
I |
15 |
timeout:60*60*1000 |
6bcd13
|
16 |
}) |
I |
17 |
} |
|
18 |
|
|
19 |
/** |
105729
|
20 |
* 自定义文件上传 |
I |
21 |
*/ |
|
22 |
export function myFileInfoUpload (parameter) { |
|
23 |
return axios({ |
|
24 |
url: '/outside/sysFileInfo/upload', |
|
25 |
method: 'post', |
87317f
|
26 |
data: parameter, |
I |
27 |
timeout:60*60*1000 |
105729
|
28 |
}) |
I |
29 |
} |
|
30 |
|
|
31 |
/** |
6bcd13
|
32 |
* 下载文件 |
I |
33 |
* |
|
34 |
* @author yubaoshan |
|
35 |
* @date 2020/6/30 00:20 |
|
36 |
*/ |
|
37 |
export function sysFileInfoDownload (parameter) { |
|
38 |
return axios({ |
|
39 |
url: '/sysFileInfo/download', |
|
40 |
method: 'get', |
|
41 |
params: parameter, |
|
42 |
responseType: 'blob' |
|
43 |
}) |
|
44 |
} |
|
45 |
|
|
46 |
/** |
|
47 |
* 查看图片 |
|
48 |
* |
|
49 |
* @author yubaoshan |
|
50 |
* @date 2020/6/30 00:20 |
|
51 |
*/ |
|
52 |
export function sysFileInfoPreview (parameter) { |
|
53 |
return axios({ |
|
54 |
url: '/sysFileInfo/preview', |
|
55 |
method: 'get', |
|
56 |
params: parameter, |
|
57 |
responseType: 'arraybuffer' |
|
58 |
}) |
|
59 |
} |
|
60 |
|