common.js
1.01 KB
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
// 公司信息
import request from "@/utils/request";
// 获取系统类型
export async function getSystemTypeList() {
return await request({
url: '/extend/systeminformation/GetSystemTypeList',
method: 'get',
});
}
// 上传文件
export async function uploader({ type, file }) {
return await request({
headers: {
'Content-Type': 'multipart/form-data',
},
url: `/file/Uploader/${type}`,
method: 'post',
data: { file }
});
}
export function getDownloadUrl(type, fileId, name) {
return request({
url: `/file/Download/${type}/${fileId}/${encodeURIComponent(name)}`,
method: 'get'
})
}
// 获取特殊备案类型
export function getSpecialRecordType() {
return request({
url: `/system/DictionaryData/590018069787575557`,
method: 'get'
})
}
// 获得案件状态字典
export function getState() {
return request({
url: `/Extend/BaseCaseHandling/GetState`,
method: 'get'
})
}