5330d757
monkeyhouyi
公司信息管理完成
|
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
|
// 规则
const ruleTrigger = {
'el-input': 'blur',
'el-input-number': 'blur',
'el-select': 'change',
'el-radio-group': 'change',
'el-checkbox-group': 'change',
'el-cascader': 'change',
'el-time-picker': 'change',
'el-date-picker': 'change',
'el-rate': 'change',
'el-color-picker': 'change',
'NCC-Quill': 'blur',
"NCC-Text": 'blur',
"NCC-Amount": 'change',
"NCC-UploadFz": 'change',
"NCC-UploadImg": 'change',
"com-select": 'change',
"dep-select": 'change',
"pos-select": 'change',
"user-select": 'change',
"dic-select": 'change',
"NCC-Address": 'change',
}
// 动态options
const dyOptionsList = ['radio', 'checkbox', 'select', 'cascader', 'treeSelect']
// 不添加vModel
const noVModelList = ['divider', 'NCCText', 'groupTitle', 'relationFormAttr', 'relationFlowAttr']
// 不可以添加到子表组件
const noTableAllowList = ['textarea', 'NCCText', 'NCCAmount', 'divider', 'editor', 'uploadImg', 'uploadFz', 'radio', 'checkbox', 'relationFormAttr', 'relationFlow', 'relationFlowAttr', 'groupTitle', 'createUser', 'createTime', 'modifyUser', 'modifyTime', 'currOrganize', 'currDept', 'currPosition', 'rate', 'slider', 'PsdInput', 'colorPicker']
// 不可以添加到列表展示
const noColumnShowList = ['PsdInput', 'colorPicker', 'rate', 'slider', 'divider', 'uploadImg', 'uploadFz', 'editor', 'NCCText', 'relationFormAttr', 'relationFlowAttr', 'groupTitle']
// 不可以添加到搜索
const noSearchList = [...noColumnShowList, 'switch', 'timeRange', 'dateRange', 'relationForm', 'relationFlow', 'popupSelect']
// 搜索时控件为input
const useInputList = ['comInput', 'textarea', 'NCCText', 'billRule']
// 搜索时控件为日期选择器
const useDateList = ['createTime', 'modifyTime']
// 搜索时控件为下拉选择器
const useSelectList = ['radio', 'checkbox', 'select']
// 在线开发-功能设计/流程设计独有组件
const webPeculiarList = [{
__config__: {
nccKey: 'relationForm',
label: '关联表单',
labelWidth: undefined,
showLabel: true,
tag: 'relationForm',
tagIcon: 'icon-ym icon-ym-generator-menu',
defaultValue: '',
required: false,
layout: 'colFormItem',
span: 24,
dragDisabled: false,
regList: [],
trigger: 'change'
},
on: {
change: '({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, request, getFieldOptions, setFieldOptions }) => {\n // 在此编写代码\n \n}',
},
placeholder: '请选择',
flowId: '',
relationField: '',
columnOptions: [],
clearable: true,
filterable: false,
disabled: false
},
{
__config__: {
nccKey: 'relationFormAttr',
label: '关联表单属性',
labelWidth: undefined,
showLabel: true,
tag: 'relationFormAttr',
tagIcon: 'icon-ym icon-ym-generator-nature',
defaultValue: '',
required: false,
layout: 'colFormItem',
span: 24,
dragDisabled: false
},
showField: '',
relationField: ''
},
{
__config__: {
nccKey: 'calculate',
label: '计算公式',
labelWidth: undefined,
showLabel: true,
required: false,
tag: 'calculate',
tagIcon: 'icon-ym icon-ym-generator-count',
defaultValue: null,
layout: 'colFormItem',
span: 24,
dragDisabled: false,
noShow: false,
regList: []
},
expression: []
},
{
__config__: {
nccKey: 'popupSelect',
label: '弹窗选择',
labelWidth: undefined,
showLabel: true,
required: false,
tag: 'popupSelect',
tagIcon: 'icon-ym icon-ym-generator-checkbox',
defaultValue: '',
layout: 'colFormItem',
span: 24,
dragDisabled: false,
regList: []
},
on: {
change: '({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, request, getFieldOptions, setFieldOptions }) => {\n // 在此编写代码\n \n}',
},
interfaceId: '',
columnOptions: [],
propsValue: 'id',
disabled: false,
clearable: true,
}
]
// 在线开发-流程设计独有组件
const flowPeculiarList = [{
__config__: {
nccKey: 'relationFlow',
label: '关联流程表单',
labelWidth: undefined,
showLabel: true,
tag: 'relationFlow',
tagIcon: 'icon-ym icon-ym-generator-flow',
defaultValue: '',
required: false,
layout: 'colFormItem',
span: 24,
dragDisabled: false,
regList: [],
trigger: 'change'
},
placeholder: '请选择',
modelId: '',
relationField: '',
clearable: true,
filterable: false,
disabled: false
},
{
__config__: {
nccKey: 'relationFlowAttr',
label: '关联流程属性',
labelWidth: undefined,
showLabel: true,
tag: 'relationFlowAttr',
tagIcon: 'icon-ym icon-ym-generator-nature',
defaultValue: '',
required: false,
layout: 'colFormItem',
span: 24,
dragDisabled: false
},
showField: '',
relationField: ''
}
]
export { ruleTrigger, dyOptionsList, noVModelList, noTableAllowList, noColumnShowList, noSearchList, webPeculiarList, flowPeculiarList, useInputList, useDateList, useSelectList }
|