formAuthorize.js
1.07 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import request from '@/utils/request'
// 获取列表权限列表
export function getFormAuthorizeList(moduleId, data) {
return request({
url: `/system/ModuleForm/${moduleId}/Fields`,
method: 'GET',
data
})
}
// 添加字段
export function createForm(data) {
return request({
url: `/system/ModuleForm`,
method: 'POST',
data
})
}
// 批量添加字段
export function batchCreateForm(data) {
return request({
url: `/system/ModuleForm/Actions/Batch`,
method: 'POST',
data
})
}
// 更新字段
export function updateForm(data) {
return request({
url: `/system/ModuleForm/${data.id}`,
method: 'PUT',
data
})
}
// 获取字段信息
export function getFormInfo(id) {
return request({
url: `/system/ModuleForm/${id}`,
method: 'GET'
})
}
// 删除字段
export function delForm(id) {
return request({
url: `/system/ModuleForm/${id}`,
method: 'DELETE'
})
}
// 更新字段状态
export function updateFormState(id) {
return request({
url: `/system/ModuleForm/${id}/Actions/State`,
method: 'PUT'
})
}