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