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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
export default {
props: {},
layoutConfigData: [
{
title: '高级组件配置',
data: [
{
key: 'filterType',
title: '过滤方式',
component: {
name: 'el-radio',
defaultValue: 'all',
options: [{
label: '所有上下文',
value: 'all'
}, {
label: '类型上下文',
value: 'type'
}, {
label: '所属上下文',
value: 'userId'
}, {
label: '自定义过滤',
value: 'custom'
}]
}
},
{
key: 'contextType',
title: '上下文类型',
disabled: true,
component: {
obscure: 'this.form.filterType !== "type"',
name: 'el-select',
options: [],
defaultSelectFirst: true,
optionsdic: ['ContextType'],
dicType: '0'
}
},
{
key: 'requestMethod',
title: '请求方式',
width: 1,
component: {
obscure: 'this.form.filterType !== "custom"',
name: 'el-select',
isLabelTop: true,
options: [
{
label: 'get',
value: 'get'
},
{
label: 'post',
value: 'post'
}
]
}
},
{
key: 'requestURL',
title: '请求url',
width: 1,
component: {
obscure: 'this.form.filterType !== "custom"',
isLabelTop: true,
defaultValue: 'requestURL=""',
name: 'btnCodeEdit',
remindText: `requestURL为接口地址变量,直接给赋值,该变量必须有值,obtainedParams为可获取的数据,id为默认属性,其他属性可通过js日志打印方法在控制台查看`
}
},
{
key: 'requestParameters',
title: '请求参数',
width: 1,
component: {
obscure: 'this.form.filterType !== "custom"',
isLabelTop: true,
defaultValue: 'requestParameters = {}',
name: 'btnCodeEdit',
remindText: `requestParameters为请求参数变量,直接给赋值,该变量必须有值,obtainedParams为可获取的数据,functionParams为当前节点信息`
}
},
{
key: 'formateResponse',
title: '接口返回数据格式化',
width: 1,
component: {
obscure: 'this.form.filterType !== "custom"',
isLabelTop: true,
defaultValue: 'responseData = res.items',
name: 'btnCodeEdit',
remindText: `responseData为接口返回数据,该参数不配置则默认取值items属性`
}
}
]
}
],
data() {
return {
}
},
created() {
},
computed: {
},
methods: {
}
}