cloud-web-corejs 1.0.54-dev.744 → 1.0.54-dev.746
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +192 -192
- package/src/App.vue +73 -71
- package/src/components/baseArea/index.vue +1628 -1628
- package/src/components/fileLibrary/categoryMoveDialog.vue +109 -109
- package/src/components/fileLibrary/fileObjAuthDialog.vue +297 -298
- package/src/components/fileLibrary/index.vue +1109 -1110
- package/src/components/fileLibrary/propertiesDialog.vue +190 -190
- package/src/components/fileLibrary/recycleBinDialog.vue +237 -236
- package/src/components/wf/mixins/setCandidateDialog.js +217 -217
- package/src/components/wf/mixins/setCandidateDialog2.js +252 -252
- package/src/components/xform/docs//345/257/271/346/257/224/345/212/237/350/203/275/350/220/275/345/234/260/346/226/271/346/241/210.md +986 -986
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +408 -0
- package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +272 -272
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +216 -216
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +928 -928
- package/src/components/xform/form-designer/index.vue +195 -195
- package/src/components/xform/form-designer/indexMixin.js +848 -848
- package/src/components/xform/form-designer/setting-panel/index.vue +313 -314
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +124 -124
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +369 -369
- package/src/components/xform/form-designer/widget-panel/index.vue +389 -389
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +343 -343
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +4531 -4531
- package/src/components/xform/form-render/container-item/data-table-mixin.js +4748 -4576
- package/src/components/xform/form-render/container-item/tab-item.vue +125 -125
- package/src/components/xform/form-render/indexMixin.js +5061 -5078
- package/src/components/xform/lang/en-US.js +457 -457
- package/src/components/xform/lang/zh-CN.js +628 -628
- package/src/components/xform/utils/formHttp.js +162 -0
- package/src/components/xform/utils/util.js +1585 -1554
- package/src/index.js +344 -230
- package/src/layout/components/AppMain.vue +122 -122
- package/src/layout/components/extractedCode/viewDialog.vue +207 -207
- package/src/layout/components/langTool.vue +128 -123
- package/src/layout/defaultLayout.vue +164 -158
- package/src/permission.js +185 -135
- package/src/store/config/index.js +667 -669
- package/src/store/modules/micro.js +46 -0
- package/src/store/modules/permission.js +461 -373
- package/src/store/modules/user.js +419 -415
- package/src/utils/auth.js +27 -1
- package/src/utils/index.js +579 -6
- package/src/utils/keepAlive.js +4 -0
- package/src/utils/menuAdapter.js +183 -0
- package/src/utils/request.js +417 -28
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +483 -491
- package/src/views/bd/setting/form_script/form_list.vue +174 -174
- package/src/views/bd/setting/form_script/mixins/form_list.js +330 -330
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -171
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +253 -254
- package/src/views/user/menuFallback/index.vue +123 -0
- package/src/views/user/wf/wfReport/index.vue +625 -619
|
@@ -1,369 +1,369 @@
|
|
|
1
|
-
import Vue from "vue";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 格式说明:属性名称==对应属性编辑器的组件名称
|
|
5
|
-
*/
|
|
6
|
-
const COMMON_PROPERTIES = {
|
|
7
|
-
//字段
|
|
8
|
-
name: "name-editor",
|
|
9
|
-
keyNameEnabled: "keyNameEnabled-editor",
|
|
10
|
-
keyName: "keyName-editor",
|
|
11
|
-
label: "label-editor",
|
|
12
|
-
formField: "formField-editor",
|
|
13
|
-
// 'labelAlign': 'labelAlign-editor',
|
|
14
|
-
type: "type-editor",
|
|
15
|
-
buttonTypeFlag: "button-type-editor",
|
|
16
|
-
defaultValue: "defaultValue-editor",
|
|
17
|
-
placeholder: "placeholder-editor",
|
|
18
|
-
startPlaceholder: "startPlaceholder-editor",
|
|
19
|
-
endPlaceholder: "endPlaceholder-editor",
|
|
20
|
-
widgetWidth: "widgetWidth-editor",
|
|
21
|
-
columnWidth: "columnWidth-editor",
|
|
22
|
-
size: "size-editor",
|
|
23
|
-
space: "space-editor",
|
|
24
|
-
showStops: "showStops-editor",
|
|
25
|
-
displayStyle: "displayStyle-editor",
|
|
26
|
-
buttonStyle: "buttonStyle-editor",
|
|
27
|
-
border: "border-editor",
|
|
28
|
-
labelWidth: "labelWidth-editor",
|
|
29
|
-
labelHidden: "labelHidden-editor",
|
|
30
|
-
rows: "rows-editor",
|
|
31
|
-
required: "required-editor",
|
|
32
|
-
// 'requiredHint': 'requiredHint-editor',
|
|
33
|
-
validation: "validation-editor",
|
|
34
|
-
validationHint: "validationHint-editor",
|
|
35
|
-
readonly: "readonly-editor",
|
|
36
|
-
disabled: "disabled-editor",
|
|
37
|
-
hidden: "hidden-editor",
|
|
38
|
-
clearable: "clearable-editor",
|
|
39
|
-
editable: "editable-editor",
|
|
40
|
-
showPassword: "showPassword-editor",
|
|
41
|
-
textContent: "textContent-editor",
|
|
42
|
-
fontSize: "fontSize-editor",
|
|
43
|
-
htmlContent: "htmlContent-editor",
|
|
44
|
-
format: "format-editor",
|
|
45
|
-
valueFormat: "valueFormat-editor",
|
|
46
|
-
dateLimit: "dateLimit-editor",
|
|
47
|
-
utcTransformEnabled: "utcTransformEnabled-editor",
|
|
48
|
-
defaultTime: "defaultTime-editor",
|
|
49
|
-
filterable: "filterable-editor",
|
|
50
|
-
allowCreate: "allowCreate-editor",
|
|
51
|
-
remote: "remote-editor",
|
|
52
|
-
automaticDropdown: "automaticDropdown-editor",
|
|
53
|
-
checkStrictly: "checkStrictly-editor",
|
|
54
|
-
showAllLevels: "showAllLevels-editor",
|
|
55
|
-
multiple: "multiple-editor",
|
|
56
|
-
multipleLimit: "multipleLimit-editor",
|
|
57
|
-
contentPosition: "contentPosition-editor",
|
|
58
|
-
// 'dsEnabled' : 'dsEnabled-editor',//启用数据源,个人
|
|
59
|
-
// 'dsName' : 'dsName-editor',//指定数据源,个人
|
|
60
|
-
optionItems: "optionItems-editor",
|
|
61
|
-
censusItems: "censusItems-editor",
|
|
62
|
-
listItems: "listItems-editor",
|
|
63
|
-
uploadURL: "uploadURL-editor",
|
|
64
|
-
uploadTip: "uploadTip-editor",
|
|
65
|
-
withCredentials: "withCredentials-editor",
|
|
66
|
-
multipleSelect: "multipleSelect-editor",
|
|
67
|
-
limit: "limit-editor",
|
|
68
|
-
fileMaxSize: "fileMaxSize-editor",
|
|
69
|
-
fileTypes: "fileTypes-editor",
|
|
70
|
-
customClass: "customClass-editor",
|
|
71
|
-
styleTitClass: "styleTitClass-editor",
|
|
72
|
-
styleTableClass: "styleTableClass-editor",
|
|
73
|
-
iconClass: "iconClass-editor",
|
|
74
|
-
echartHeight: "echartHeight-editor",
|
|
75
|
-
descriptionsItems: "descriptionsItems-editor",
|
|
76
|
-
isFullscreen: "isFullscreen-editor",
|
|
77
|
-
tabClass: "tabClass-editor",
|
|
78
|
-
censusClass: "censusClass-editor",
|
|
79
|
-
// 'scriptUuid': 'script-editor',
|
|
80
|
-
entityTableCode: "entityTableCode-editor",
|
|
81
|
-
|
|
82
|
-
echarPieOption: "echart-pie-editor", //饼图
|
|
83
|
-
echarBarOption: "echart-bar-editor", //柱状图
|
|
84
|
-
echarCategoryOption: "echart-category-editor", //折线图
|
|
85
|
-
vabSearchName: "vabSearchName-editor",
|
|
86
|
-
areaName: "areaName-editor",
|
|
87
|
-
areaDataType: "areaDataType-editor",
|
|
88
|
-
areaMinLevel: "areaMinLevel-editor",
|
|
89
|
-
copyButton: "copyButton-editor",
|
|
90
|
-
tempStorageFlag: "tempStorage-editor",
|
|
91
|
-
formatType: "formatType-editor",
|
|
92
|
-
preWrap: "preWrap-editor",
|
|
93
|
-
customUploadConfig: "customUploadConfig-editor",
|
|
94
|
-
|
|
95
|
-
//容器
|
|
96
|
-
showBlankRow: "showBlankRow-editor",
|
|
97
|
-
showRowNumber: "showRowNumber-editor",
|
|
98
|
-
cellWidth: "cellWidth-editor",
|
|
99
|
-
cellHeight: "cellHeight-editor",
|
|
100
|
-
colHeight: "colHeight-editor",
|
|
101
|
-
gutter: "gutter-editor",
|
|
102
|
-
responsive: "responsive-editor",
|
|
103
|
-
span: "span-editor",
|
|
104
|
-
offset: "offset-editor",
|
|
105
|
-
push: "push-editor",
|
|
106
|
-
pull: "pull-editor",
|
|
107
|
-
height: "height-editor",
|
|
108
|
-
detailContainer: "detail-editor",
|
|
109
|
-
detailPaneContainer: "detail-pane-editor",
|
|
110
|
-
vabSearchField: "vabSearchField-editor",
|
|
111
|
-
fullWidth: "table-fullWidth-editor",
|
|
112
|
-
dynamicSchemaSourceType: "table-dynamicField-editor",
|
|
113
|
-
dataTable: "data-table-editor",
|
|
114
|
-
accessUrl: "accessUrl-editor",
|
|
115
|
-
formulaEnabled: "formulaEnabled-editor",
|
|
116
|
-
formula: "formula-editor",
|
|
117
|
-
showText: "showText-editor",
|
|
118
|
-
detailH5Container: "detail-h5-editor",
|
|
119
|
-
h5Card: "h5-card-editor",
|
|
120
|
-
listH5: "list-h5-editor",
|
|
121
|
-
formScriptEnabled: "formScriptEnabled-editor",
|
|
122
|
-
textFlag: "textFlag-editor",
|
|
123
|
-
showRuleFlag: "showRuleFlag-editor",
|
|
124
|
-
widgetShowRuleFlag: "widgetShowRuleFlag-editor",
|
|
125
|
-
|
|
126
|
-
dropdownFlag: "dropdownFlag-editor",
|
|
127
|
-
// 'dropdownItemFlag': 'dropdown-item-editor',
|
|
128
|
-
|
|
129
|
-
oplogFlag: "oplogFlag-editor",
|
|
130
|
-
vuePageFlag: "vue-page-editor",
|
|
131
|
-
scriptInputFlag: "script-input-editor",
|
|
132
|
-
ganttConfig: "gantt-editor",
|
|
133
|
-
|
|
134
|
-
//弹框
|
|
135
|
-
title: "title-editor",
|
|
136
|
-
width: "width-editor",
|
|
137
|
-
fullscreen: "fullscreen-editor",
|
|
138
|
-
showModal: "showModal-editor",
|
|
139
|
-
showClose: "showClose-editor",
|
|
140
|
-
closeOnClickModal: "closeOnClickModal-editor",
|
|
141
|
-
closeOnPressEscape: "closeOnPressEscape-editor",
|
|
142
|
-
center: "center-editor",
|
|
143
|
-
// direction: "direction-editor",
|
|
144
|
-
readMode: "readMode-editor",
|
|
145
|
-
disabledMode: "disabledMode-editor",
|
|
146
|
-
okButtonLabel: "okButtonLabel-editor",
|
|
147
|
-
okButtonHidden: "okButtonHidden-editor",
|
|
148
|
-
cancelButtonLabel: "cancelButtonLabel-editor",
|
|
149
|
-
cancelButtonHidden: "cancelButtonHidden-editor",
|
|
150
|
-
|
|
151
|
-
showCheckBox: "show-checkbox-editor",
|
|
152
|
-
filter: "show-filter-editor",
|
|
153
|
-
defaultExpandAllNode: "show-defaultExpandAllNode-editor",
|
|
154
|
-
expandRetractAllNode: "tree-expandRetractAllNode-editor",
|
|
155
|
-
selectClearAllNode: "tree-selectClearAllNode-editor",
|
|
156
|
-
expandOnClickNode: "show-expandOnClickNode-editor",
|
|
157
|
-
nodeEdit: "tree-nodeEdit-editor",
|
|
158
|
-
draggable: "show-draggable-editor",
|
|
159
|
-
lazy: "tree-lazy-editor",
|
|
160
|
-
treeDataEdit: "treeData-editor",
|
|
161
|
-
treePane: "tree-pane-editor",
|
|
162
|
-
|
|
163
|
-
tableExportFlag: "table-export-button-editor",
|
|
164
|
-
selectExportFlag: "select-export-button-editor",
|
|
165
|
-
selectExportItemFlag: "select-export-item-button-editor",
|
|
166
|
-
importEntity: "import-button-editor",
|
|
167
|
-
frontImportFlag: "import2-button-editor",
|
|
168
|
-
printButtonFlag: "print-button-editor",
|
|
169
|
-
printDetailButtonFlag: "print-detail-button-editor",
|
|
170
|
-
statusParam: "field-status-editor",
|
|
171
|
-
// searchDialogEventEnabled: "search-dialog-event-editor"
|
|
172
|
-
clickBindEvent: "clickBindEvent-editor",
|
|
173
|
-
vabUpload: "field-vabUpload-editor",
|
|
174
|
-
vabUpload2Flag: "field-vabUpload2-editor",
|
|
175
|
-
submitFlag: "submitFlag-editor",
|
|
176
|
-
aLinkFlag: "a-link-editor",
|
|
177
|
-
aTextFlag: "a-text-editor",
|
|
178
|
-
tagFormCode: "project-tag-editor",
|
|
179
|
-
autoValueEnabled: "autoValueEnabled-editor",
|
|
180
|
-
// "commonAttributeEnabled": "commonAttributeEnabled-editor"
|
|
181
|
-
colorClass: "colorClass-editor",
|
|
182
|
-
downloadButtonFlag: "downloadButtonFlag-editor",
|
|
183
|
-
showViewButton: "showViewButton-editor",
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
const ADVANCED_PROPERTIES = {
|
|
187
|
-
min: "min-editor",
|
|
188
|
-
max: "max-editor",
|
|
189
|
-
precision: "precision-editor",
|
|
190
|
-
step: "step-editor",
|
|
191
|
-
showbutton: "showbutton-editor",
|
|
192
|
-
controlsPosition: "controlsPosition-editor",
|
|
193
|
-
minLength: "minLength-editor",
|
|
194
|
-
maxLength: "maxLength-editor",
|
|
195
|
-
// 'showWordLimit': 'showWordLimit-editor',
|
|
196
|
-
prefixIcon: "prefixIcon-editor",
|
|
197
|
-
suffixIcon: "suffixIcon-editor",
|
|
198
|
-
switchWidth: "switchWidth-editor",
|
|
199
|
-
activeText: "activeText-editor",
|
|
200
|
-
inactiveText: "inactiveText-editor",
|
|
201
|
-
labelColor: "labelColor-editor",
|
|
202
|
-
activeColor: "activeColor-editor",
|
|
203
|
-
inactiveColor: "inactiveColor-editor",
|
|
204
|
-
lowThreshold: "lowThreshold-editor",
|
|
205
|
-
highThreshold: "highThreshold-editor",
|
|
206
|
-
allowHalf: "allowHalf-editor",
|
|
207
|
-
showText: "showText-editor",
|
|
208
|
-
showScore: "showScore-editor",
|
|
209
|
-
range: "range-editor",
|
|
210
|
-
vertical: "vertical-editor",
|
|
211
|
-
plain: "plain-editor",
|
|
212
|
-
round: "round-editor",
|
|
213
|
-
circle: "circle-editor",
|
|
214
|
-
icon: "icon-editor",
|
|
215
|
-
labelIconClass: "labelIconClass-editor",
|
|
216
|
-
labelIconPosition: "labelIconPosition-editor",
|
|
217
|
-
labelTooltip: "labelTooltip-editor",
|
|
218
|
-
// 'appendButton': 'appendButton-editor',
|
|
219
|
-
// 'appendButtonDisabled': 'appendButtonDisabled-editor',
|
|
220
|
-
// 'buttonIcon': 'buttonIcon-editor',
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
//流程属性
|
|
224
|
-
const WF_PROPERTIES = {
|
|
225
|
-
wfFlag: "wfFlag-editor",
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
const EVENT_PROPERTIES = {
|
|
229
|
-
//字段
|
|
230
|
-
onCreatedEnter: "onCreatedEnter-editor",
|
|
231
|
-
onCreated: "onCreated-editor",
|
|
232
|
-
onMounted: "onMounted-editor",
|
|
233
|
-
onClick: "onClick-editor",
|
|
234
|
-
onInput: "onInput-editor",
|
|
235
|
-
onChange: "onChange-editor",
|
|
236
|
-
onFocus: "onFocus-editor",
|
|
237
|
-
onBlur: "onBlur-editor",
|
|
238
|
-
onRemoteQuery: "onRemoteQuery-editor",
|
|
239
|
-
onBeforeUpload: "onBeforeUpload-editor",
|
|
240
|
-
onUploadSuccess: "onUploadSuccess-editor",
|
|
241
|
-
onUploadError: "onUploadError-editor",
|
|
242
|
-
onFileRemove: "onFileRemove-editor",
|
|
243
|
-
onValidate: "onValidate-editor",
|
|
244
|
-
onAppendButtonClick: "onAppendButtonClick-editor",
|
|
245
|
-
onSearchConfirm: "onSearchConfirm-editor",
|
|
246
|
-
onSearchClear: "onSearchClear-editor",
|
|
247
|
-
onAfterConfirmFile: "onAfterConfirmFile-editor",
|
|
248
|
-
|
|
249
|
-
//容器
|
|
250
|
-
onSubFormRowAdd: "onSubFormRowAdd-editor",
|
|
251
|
-
onSubFormRowInsert: "onSubFormRowInsert-editor",
|
|
252
|
-
onSubFormRowDelete: "onSubFormRowDelete-editor",
|
|
253
|
-
onSubFormRowChange: "onSubFormRowChange-editor",
|
|
254
|
-
|
|
255
|
-
onOkButtonClick: "onOkButtonClick-editor",
|
|
256
|
-
onCancelButtonClick: "onCancelButtonClick-editor",
|
|
257
|
-
onDialogOpened: "onDialogOpened-editor",
|
|
258
|
-
onDialogBeforeClose: "onDialogBeforeClose-editor",
|
|
259
|
-
|
|
260
|
-
//vxe-table事件
|
|
261
|
-
onCellDblclick: "onCellDblclick-editor",
|
|
262
|
-
onCheckboxAll: "onCheckboxAll-editor",
|
|
263
|
-
onCheckboxChange: "onCheckboxChange-editor",
|
|
264
|
-
onSearchTable: "onSearchTable-editor",
|
|
265
|
-
onResetTable: "onResetTable-editor",
|
|
266
|
-
|
|
267
|
-
//tree事件
|
|
268
|
-
onNodeClick: "onNodeClick-editor",
|
|
269
|
-
onNodeCheck: "onNodeCheck-editor",
|
|
270
|
-
onNodeContextmenu: "onNodeContextmenu-editor",
|
|
271
|
-
onCheckChange: "onCheckChange-editor",
|
|
272
|
-
onLoadNode: "onLoadNode-editor",
|
|
273
|
-
//tree-pane事件
|
|
274
|
-
onTreeLabelClick: "onTreeLabelClick-editor",
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* 注册组件常见属性
|
|
279
|
-
* 如属性编辑器的组件名称propEditorName设置为null,则不显示该属性编辑器!!
|
|
280
|
-
* @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)
|
|
281
|
-
* @param propEditorName 对应属性编辑器的组件名称
|
|
282
|
-
*/
|
|
283
|
-
export function registerCommonProperty(uniquePropName, propEditorName) {
|
|
284
|
-
COMMON_PROPERTIES[uniquePropName] = propEditorName;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* 注册组件高级属性
|
|
289
|
-
* 如属性编辑器的组件名称propEditorName设置为null,则不显示该属性编辑器!!
|
|
290
|
-
* @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)
|
|
291
|
-
* @param propEditorName 对应属性编辑器的组件名称
|
|
292
|
-
*/
|
|
293
|
-
export function registerAdvancedProperty(uniquePropName, propEditorName) {
|
|
294
|
-
ADVANCED_PROPERTIES[uniquePropName] = propEditorName;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* 注册组件事件属性
|
|
299
|
-
* 如属性编辑器的组件名称propEditorName设置为null,则不显示该属性编辑器!!
|
|
300
|
-
* @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)
|
|
301
|
-
* @param propEditorName 对应属性编辑器的组件名称
|
|
302
|
-
*/
|
|
303
|
-
export function registerEventProperty(uniquePropName, propEditorName) {
|
|
304
|
-
EVENT_PROPERTIES[uniquePropName] = propEditorName;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* 判断属性是否已注册
|
|
309
|
-
* @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)
|
|
310
|
-
*/
|
|
311
|
-
export function propertyRegistered(uniquePropName) {
|
|
312
|
-
return (
|
|
313
|
-
!!COMMON_PROPERTIES[uniquePropName] ||
|
|
314
|
-
!!ADVANCED_PROPERTIES[uniquePropName] ||
|
|
315
|
-
!!EVENT_PROPERTIES[uniquePropName]
|
|
316
|
-
);
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* 注册常见属性对应的属性编辑器
|
|
321
|
-
* @param uniquePropName
|
|
322
|
-
* @param propEditorName
|
|
323
|
-
* @param editorComponent
|
|
324
|
-
*/
|
|
325
|
-
export function registerCPEditor(
|
|
326
|
-
uniquePropName,
|
|
327
|
-
propEditorName,
|
|
328
|
-
editorComponent
|
|
329
|
-
) {
|
|
330
|
-
Vue.component(propEditorName, editorComponent);
|
|
331
|
-
registerCommonProperty(uniquePropName, propEditorName);
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* 注册高级属性对应的属性编辑器
|
|
336
|
-
* @param uniquePropName
|
|
337
|
-
* @param propEditorName
|
|
338
|
-
* @param editorComponent
|
|
339
|
-
*/
|
|
340
|
-
export function registerAPEditor(
|
|
341
|
-
uniquePropName,
|
|
342
|
-
propEditorName,
|
|
343
|
-
editorComponent
|
|
344
|
-
) {
|
|
345
|
-
Vue.component(propEditorName, editorComponent);
|
|
346
|
-
registerAdvancedProperty(uniquePropName, propEditorName);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* 注册事件属性对应的属性编辑器
|
|
351
|
-
* @param uniquePropName
|
|
352
|
-
* @param propEditorName
|
|
353
|
-
* @param editorComponent
|
|
354
|
-
*/
|
|
355
|
-
export function registerEPEditor(
|
|
356
|
-
uniquePropName,
|
|
357
|
-
propEditorName,
|
|
358
|
-
editorComponent
|
|
359
|
-
) {
|
|
360
|
-
Vue.component(propEditorName, editorComponent);
|
|
361
|
-
registerEventProperty(uniquePropName, propEditorName);
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
export default {
|
|
365
|
-
COMMON_PROPERTIES,
|
|
366
|
-
ADVANCED_PROPERTIES,
|
|
367
|
-
EVENT_PROPERTIES,
|
|
368
|
-
WF_PROPERTIES,
|
|
369
|
-
};
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 格式说明:属性名称==对应属性编辑器的组件名称
|
|
5
|
+
*/
|
|
6
|
+
const COMMON_PROPERTIES = {
|
|
7
|
+
//字段
|
|
8
|
+
name: "name-editor",
|
|
9
|
+
keyNameEnabled: "keyNameEnabled-editor",
|
|
10
|
+
keyName: "keyName-editor",
|
|
11
|
+
label: "label-editor",
|
|
12
|
+
formField: "formField-editor",
|
|
13
|
+
// 'labelAlign': 'labelAlign-editor',
|
|
14
|
+
type: "type-editor",
|
|
15
|
+
buttonTypeFlag: "button-type-editor",
|
|
16
|
+
defaultValue: "defaultValue-editor",
|
|
17
|
+
placeholder: "placeholder-editor",
|
|
18
|
+
startPlaceholder: "startPlaceholder-editor",
|
|
19
|
+
endPlaceholder: "endPlaceholder-editor",
|
|
20
|
+
widgetWidth: "widgetWidth-editor",
|
|
21
|
+
columnWidth: "columnWidth-editor",
|
|
22
|
+
size: "size-editor",
|
|
23
|
+
space: "space-editor",
|
|
24
|
+
showStops: "showStops-editor",
|
|
25
|
+
displayStyle: "displayStyle-editor",
|
|
26
|
+
buttonStyle: "buttonStyle-editor",
|
|
27
|
+
border: "border-editor",
|
|
28
|
+
labelWidth: "labelWidth-editor",
|
|
29
|
+
labelHidden: "labelHidden-editor",
|
|
30
|
+
rows: "rows-editor",
|
|
31
|
+
required: "required-editor",
|
|
32
|
+
// 'requiredHint': 'requiredHint-editor',
|
|
33
|
+
validation: "validation-editor",
|
|
34
|
+
validationHint: "validationHint-editor",
|
|
35
|
+
readonly: "readonly-editor",
|
|
36
|
+
disabled: "disabled-editor",
|
|
37
|
+
hidden: "hidden-editor",
|
|
38
|
+
clearable: "clearable-editor",
|
|
39
|
+
editable: "editable-editor",
|
|
40
|
+
showPassword: "showPassword-editor",
|
|
41
|
+
textContent: "textContent-editor",
|
|
42
|
+
fontSize: "fontSize-editor",
|
|
43
|
+
htmlContent: "htmlContent-editor",
|
|
44
|
+
format: "format-editor",
|
|
45
|
+
valueFormat: "valueFormat-editor",
|
|
46
|
+
dateLimit: "dateLimit-editor",
|
|
47
|
+
utcTransformEnabled: "utcTransformEnabled-editor",
|
|
48
|
+
defaultTime: "defaultTime-editor",
|
|
49
|
+
filterable: "filterable-editor",
|
|
50
|
+
allowCreate: "allowCreate-editor",
|
|
51
|
+
remote: "remote-editor",
|
|
52
|
+
automaticDropdown: "automaticDropdown-editor",
|
|
53
|
+
checkStrictly: "checkStrictly-editor",
|
|
54
|
+
showAllLevels: "showAllLevels-editor",
|
|
55
|
+
multiple: "multiple-editor",
|
|
56
|
+
multipleLimit: "multipleLimit-editor",
|
|
57
|
+
contentPosition: "contentPosition-editor",
|
|
58
|
+
// 'dsEnabled' : 'dsEnabled-editor',//启用数据源,个人
|
|
59
|
+
// 'dsName' : 'dsName-editor',//指定数据源,个人
|
|
60
|
+
optionItems: "optionItems-editor",
|
|
61
|
+
censusItems: "censusItems-editor",
|
|
62
|
+
listItems: "listItems-editor",
|
|
63
|
+
uploadURL: "uploadURL-editor",
|
|
64
|
+
uploadTip: "uploadTip-editor",
|
|
65
|
+
withCredentials: "withCredentials-editor",
|
|
66
|
+
multipleSelect: "multipleSelect-editor",
|
|
67
|
+
limit: "limit-editor",
|
|
68
|
+
fileMaxSize: "fileMaxSize-editor",
|
|
69
|
+
fileTypes: "fileTypes-editor",
|
|
70
|
+
customClass: "customClass-editor",
|
|
71
|
+
styleTitClass: "styleTitClass-editor",
|
|
72
|
+
styleTableClass: "styleTableClass-editor",
|
|
73
|
+
iconClass: "iconClass-editor",
|
|
74
|
+
echartHeight: "echartHeight-editor",
|
|
75
|
+
descriptionsItems: "descriptionsItems-editor",
|
|
76
|
+
isFullscreen: "isFullscreen-editor",
|
|
77
|
+
tabClass: "tabClass-editor",
|
|
78
|
+
censusClass: "censusClass-editor",
|
|
79
|
+
// 'scriptUuid': 'script-editor',
|
|
80
|
+
entityTableCode: "entityTableCode-editor",
|
|
81
|
+
|
|
82
|
+
echarPieOption: "echart-pie-editor", //饼图
|
|
83
|
+
echarBarOption: "echart-bar-editor", //柱状图
|
|
84
|
+
echarCategoryOption: "echart-category-editor", //折线图
|
|
85
|
+
vabSearchName: "vabSearchName-editor",
|
|
86
|
+
areaName: "areaName-editor",
|
|
87
|
+
areaDataType: "areaDataType-editor",
|
|
88
|
+
areaMinLevel: "areaMinLevel-editor",
|
|
89
|
+
copyButton: "copyButton-editor",
|
|
90
|
+
tempStorageFlag: "tempStorage-editor",
|
|
91
|
+
formatType: "formatType-editor",
|
|
92
|
+
preWrap: "preWrap-editor",
|
|
93
|
+
customUploadConfig: "customUploadConfig-editor",
|
|
94
|
+
|
|
95
|
+
//容器
|
|
96
|
+
showBlankRow: "showBlankRow-editor",
|
|
97
|
+
showRowNumber: "showRowNumber-editor",
|
|
98
|
+
cellWidth: "cellWidth-editor",
|
|
99
|
+
cellHeight: "cellHeight-editor",
|
|
100
|
+
colHeight: "colHeight-editor",
|
|
101
|
+
gutter: "gutter-editor",
|
|
102
|
+
responsive: "responsive-editor",
|
|
103
|
+
span: "span-editor",
|
|
104
|
+
offset: "offset-editor",
|
|
105
|
+
push: "push-editor",
|
|
106
|
+
pull: "pull-editor",
|
|
107
|
+
height: "height-editor",
|
|
108
|
+
detailContainer: "detail-editor",
|
|
109
|
+
detailPaneContainer: "detail-pane-editor",
|
|
110
|
+
vabSearchField: "vabSearchField-editor",
|
|
111
|
+
fullWidth: "table-fullWidth-editor",
|
|
112
|
+
dynamicSchemaSourceType: "table-dynamicField-editor",
|
|
113
|
+
dataTable: "data-table-editor",
|
|
114
|
+
accessUrl: "accessUrl-editor",
|
|
115
|
+
formulaEnabled: "formulaEnabled-editor",
|
|
116
|
+
formula: "formula-editor",
|
|
117
|
+
showText: "showText-editor",
|
|
118
|
+
detailH5Container: "detail-h5-editor",
|
|
119
|
+
h5Card: "h5-card-editor",
|
|
120
|
+
listH5: "list-h5-editor",
|
|
121
|
+
formScriptEnabled: "formScriptEnabled-editor",
|
|
122
|
+
textFlag: "textFlag-editor",
|
|
123
|
+
showRuleFlag: "showRuleFlag-editor",
|
|
124
|
+
widgetShowRuleFlag: "widgetShowRuleFlag-editor",
|
|
125
|
+
|
|
126
|
+
dropdownFlag: "dropdownFlag-editor",
|
|
127
|
+
// 'dropdownItemFlag': 'dropdown-item-editor',
|
|
128
|
+
|
|
129
|
+
oplogFlag: "oplogFlag-editor",
|
|
130
|
+
vuePageFlag: "vue-page-editor",
|
|
131
|
+
scriptInputFlag: "script-input-editor",
|
|
132
|
+
ganttConfig: "gantt-editor",
|
|
133
|
+
|
|
134
|
+
//弹框
|
|
135
|
+
title: "title-editor",
|
|
136
|
+
width: "width-editor",
|
|
137
|
+
fullscreen: "fullscreen-editor",
|
|
138
|
+
showModal: "showModal-editor",
|
|
139
|
+
showClose: "showClose-editor",
|
|
140
|
+
closeOnClickModal: "closeOnClickModal-editor",
|
|
141
|
+
closeOnPressEscape: "closeOnPressEscape-editor",
|
|
142
|
+
center: "center-editor",
|
|
143
|
+
// direction: "direction-editor",
|
|
144
|
+
readMode: "readMode-editor",
|
|
145
|
+
disabledMode: "disabledMode-editor",
|
|
146
|
+
okButtonLabel: "okButtonLabel-editor",
|
|
147
|
+
okButtonHidden: "okButtonHidden-editor",
|
|
148
|
+
cancelButtonLabel: "cancelButtonLabel-editor",
|
|
149
|
+
cancelButtonHidden: "cancelButtonHidden-editor",
|
|
150
|
+
|
|
151
|
+
showCheckBox: "show-checkbox-editor",
|
|
152
|
+
filter: "show-filter-editor",
|
|
153
|
+
defaultExpandAllNode: "show-defaultExpandAllNode-editor",
|
|
154
|
+
expandRetractAllNode: "tree-expandRetractAllNode-editor",
|
|
155
|
+
selectClearAllNode: "tree-selectClearAllNode-editor",
|
|
156
|
+
expandOnClickNode: "show-expandOnClickNode-editor",
|
|
157
|
+
nodeEdit: "tree-nodeEdit-editor",
|
|
158
|
+
draggable: "show-draggable-editor",
|
|
159
|
+
lazy: "tree-lazy-editor",
|
|
160
|
+
treeDataEdit: "treeData-editor",
|
|
161
|
+
treePane: "tree-pane-editor",
|
|
162
|
+
|
|
163
|
+
tableExportFlag: "table-export-button-editor",
|
|
164
|
+
selectExportFlag: "select-export-button-editor",
|
|
165
|
+
selectExportItemFlag: "select-export-item-button-editor",
|
|
166
|
+
importEntity: "import-button-editor",
|
|
167
|
+
frontImportFlag: "import2-button-editor",
|
|
168
|
+
printButtonFlag: "print-button-editor",
|
|
169
|
+
printDetailButtonFlag: "print-detail-button-editor",
|
|
170
|
+
statusParam: "field-status-editor",
|
|
171
|
+
// searchDialogEventEnabled: "search-dialog-event-editor"
|
|
172
|
+
clickBindEvent: "clickBindEvent-editor",
|
|
173
|
+
vabUpload: "field-vabUpload-editor",
|
|
174
|
+
vabUpload2Flag: "field-vabUpload2-editor",
|
|
175
|
+
submitFlag: "submitFlag-editor",
|
|
176
|
+
aLinkFlag: "a-link-editor",
|
|
177
|
+
aTextFlag: "a-text-editor",
|
|
178
|
+
tagFormCode: "project-tag-editor",
|
|
179
|
+
autoValueEnabled: "autoValueEnabled-editor",
|
|
180
|
+
// "commonAttributeEnabled": "commonAttributeEnabled-editor"
|
|
181
|
+
colorClass: "colorClass-editor",
|
|
182
|
+
downloadButtonFlag: "downloadButtonFlag-editor",
|
|
183
|
+
showViewButton: "showViewButton-editor",
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
const ADVANCED_PROPERTIES = {
|
|
187
|
+
min: "min-editor",
|
|
188
|
+
max: "max-editor",
|
|
189
|
+
precision: "precision-editor",
|
|
190
|
+
step: "step-editor",
|
|
191
|
+
showbutton: "showbutton-editor",
|
|
192
|
+
controlsPosition: "controlsPosition-editor",
|
|
193
|
+
minLength: "minLength-editor",
|
|
194
|
+
maxLength: "maxLength-editor",
|
|
195
|
+
// 'showWordLimit': 'showWordLimit-editor',
|
|
196
|
+
prefixIcon: "prefixIcon-editor",
|
|
197
|
+
suffixIcon: "suffixIcon-editor",
|
|
198
|
+
switchWidth: "switchWidth-editor",
|
|
199
|
+
activeText: "activeText-editor",
|
|
200
|
+
inactiveText: "inactiveText-editor",
|
|
201
|
+
labelColor: "labelColor-editor",
|
|
202
|
+
activeColor: "activeColor-editor",
|
|
203
|
+
inactiveColor: "inactiveColor-editor",
|
|
204
|
+
lowThreshold: "lowThreshold-editor",
|
|
205
|
+
highThreshold: "highThreshold-editor",
|
|
206
|
+
allowHalf: "allowHalf-editor",
|
|
207
|
+
showText: "showText-editor",
|
|
208
|
+
showScore: "showScore-editor",
|
|
209
|
+
range: "range-editor",
|
|
210
|
+
vertical: "vertical-editor",
|
|
211
|
+
plain: "plain-editor",
|
|
212
|
+
round: "round-editor",
|
|
213
|
+
circle: "circle-editor",
|
|
214
|
+
icon: "icon-editor",
|
|
215
|
+
labelIconClass: "labelIconClass-editor",
|
|
216
|
+
labelIconPosition: "labelIconPosition-editor",
|
|
217
|
+
labelTooltip: "labelTooltip-editor",
|
|
218
|
+
// 'appendButton': 'appendButton-editor',
|
|
219
|
+
// 'appendButtonDisabled': 'appendButtonDisabled-editor',
|
|
220
|
+
// 'buttonIcon': 'buttonIcon-editor',
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
//流程属性
|
|
224
|
+
const WF_PROPERTIES = {
|
|
225
|
+
wfFlag: "wfFlag-editor",
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
const EVENT_PROPERTIES = {
|
|
229
|
+
//字段
|
|
230
|
+
onCreatedEnter: "onCreatedEnter-editor",
|
|
231
|
+
onCreated: "onCreated-editor",
|
|
232
|
+
onMounted: "onMounted-editor",
|
|
233
|
+
onClick: "onClick-editor",
|
|
234
|
+
onInput: "onInput-editor",
|
|
235
|
+
onChange: "onChange-editor",
|
|
236
|
+
onFocus: "onFocus-editor",
|
|
237
|
+
onBlur: "onBlur-editor",
|
|
238
|
+
onRemoteQuery: "onRemoteQuery-editor",
|
|
239
|
+
onBeforeUpload: "onBeforeUpload-editor",
|
|
240
|
+
onUploadSuccess: "onUploadSuccess-editor",
|
|
241
|
+
onUploadError: "onUploadError-editor",
|
|
242
|
+
onFileRemove: "onFileRemove-editor",
|
|
243
|
+
onValidate: "onValidate-editor",
|
|
244
|
+
onAppendButtonClick: "onAppendButtonClick-editor",
|
|
245
|
+
onSearchConfirm: "onSearchConfirm-editor",
|
|
246
|
+
onSearchClear: "onSearchClear-editor",
|
|
247
|
+
onAfterConfirmFile: "onAfterConfirmFile-editor",
|
|
248
|
+
|
|
249
|
+
//容器
|
|
250
|
+
onSubFormRowAdd: "onSubFormRowAdd-editor",
|
|
251
|
+
onSubFormRowInsert: "onSubFormRowInsert-editor",
|
|
252
|
+
onSubFormRowDelete: "onSubFormRowDelete-editor",
|
|
253
|
+
onSubFormRowChange: "onSubFormRowChange-editor",
|
|
254
|
+
|
|
255
|
+
onOkButtonClick: "onOkButtonClick-editor",
|
|
256
|
+
onCancelButtonClick: "onCancelButtonClick-editor",
|
|
257
|
+
onDialogOpened: "onDialogOpened-editor",
|
|
258
|
+
onDialogBeforeClose: "onDialogBeforeClose-editor",
|
|
259
|
+
|
|
260
|
+
//vxe-table事件
|
|
261
|
+
onCellDblclick: "onCellDblclick-editor",
|
|
262
|
+
onCheckboxAll: "onCheckboxAll-editor",
|
|
263
|
+
onCheckboxChange: "onCheckboxChange-editor",
|
|
264
|
+
onSearchTable: "onSearchTable-editor",
|
|
265
|
+
onResetTable: "onResetTable-editor",
|
|
266
|
+
|
|
267
|
+
//tree事件
|
|
268
|
+
onNodeClick: "onNodeClick-editor",
|
|
269
|
+
onNodeCheck: "onNodeCheck-editor",
|
|
270
|
+
onNodeContextmenu: "onNodeContextmenu-editor",
|
|
271
|
+
onCheckChange: "onCheckChange-editor",
|
|
272
|
+
onLoadNode: "onLoadNode-editor",
|
|
273
|
+
//tree-pane事件
|
|
274
|
+
onTreeLabelClick: "onTreeLabelClick-editor",
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* 注册组件常见属性
|
|
279
|
+
* 如属性编辑器的组件名称propEditorName设置为null,则不显示该属性编辑器!!
|
|
280
|
+
* @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)
|
|
281
|
+
* @param propEditorName 对应属性编辑器的组件名称
|
|
282
|
+
*/
|
|
283
|
+
export function registerCommonProperty(uniquePropName, propEditorName) {
|
|
284
|
+
COMMON_PROPERTIES[uniquePropName] = propEditorName;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* 注册组件高级属性
|
|
289
|
+
* 如属性编辑器的组件名称propEditorName设置为null,则不显示该属性编辑器!!
|
|
290
|
+
* @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)
|
|
291
|
+
* @param propEditorName 对应属性编辑器的组件名称
|
|
292
|
+
*/
|
|
293
|
+
export function registerAdvancedProperty(uniquePropName, propEditorName) {
|
|
294
|
+
ADVANCED_PROPERTIES[uniquePropName] = propEditorName;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* 注册组件事件属性
|
|
299
|
+
* 如属性编辑器的组件名称propEditorName设置为null,则不显示该属性编辑器!!
|
|
300
|
+
* @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)
|
|
301
|
+
* @param propEditorName 对应属性编辑器的组件名称
|
|
302
|
+
*/
|
|
303
|
+
export function registerEventProperty(uniquePropName, propEditorName) {
|
|
304
|
+
EVENT_PROPERTIES[uniquePropName] = propEditorName;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* 判断属性是否已注册
|
|
309
|
+
* @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)
|
|
310
|
+
*/
|
|
311
|
+
export function propertyRegistered(uniquePropName) {
|
|
312
|
+
return (
|
|
313
|
+
!!COMMON_PROPERTIES[uniquePropName] ||
|
|
314
|
+
!!ADVANCED_PROPERTIES[uniquePropName] ||
|
|
315
|
+
!!EVENT_PROPERTIES[uniquePropName]
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* 注册常见属性对应的属性编辑器
|
|
321
|
+
* @param uniquePropName
|
|
322
|
+
* @param propEditorName
|
|
323
|
+
* @param editorComponent
|
|
324
|
+
*/
|
|
325
|
+
export function registerCPEditor(
|
|
326
|
+
uniquePropName,
|
|
327
|
+
propEditorName,
|
|
328
|
+
editorComponent
|
|
329
|
+
) {
|
|
330
|
+
Vue.component(propEditorName, editorComponent);
|
|
331
|
+
registerCommonProperty(uniquePropName, propEditorName);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* 注册高级属性对应的属性编辑器
|
|
336
|
+
* @param uniquePropName
|
|
337
|
+
* @param propEditorName
|
|
338
|
+
* @param editorComponent
|
|
339
|
+
*/
|
|
340
|
+
export function registerAPEditor(
|
|
341
|
+
uniquePropName,
|
|
342
|
+
propEditorName,
|
|
343
|
+
editorComponent
|
|
344
|
+
) {
|
|
345
|
+
Vue.component(propEditorName, editorComponent);
|
|
346
|
+
registerAdvancedProperty(uniquePropName, propEditorName);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* 注册事件属性对应的属性编辑器
|
|
351
|
+
* @param uniquePropName
|
|
352
|
+
* @param propEditorName
|
|
353
|
+
* @param editorComponent
|
|
354
|
+
*/
|
|
355
|
+
export function registerEPEditor(
|
|
356
|
+
uniquePropName,
|
|
357
|
+
propEditorName,
|
|
358
|
+
editorComponent
|
|
359
|
+
) {
|
|
360
|
+
Vue.component(propEditorName, editorComponent);
|
|
361
|
+
registerEventProperty(uniquePropName, propEditorName);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export default {
|
|
365
|
+
COMMON_PROPERTIES,
|
|
366
|
+
ADVANCED_PROPERTIES,
|
|
367
|
+
EVENT_PROPERTIES,
|
|
368
|
+
WF_PROPERTIES,
|
|
369
|
+
};
|