cloud-web-corejs 1.0.280 → 1.1.0-dev.10
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 +6 -2
- package/src/components/VabUpload/image-viewer.vue +442 -442
- package/src/components/VabUpload/index.vue +45 -3
- package/src/components/VabUpload/mixins.js +174 -34
- package/src/components/VabUpload/previewGroup.js +128 -0
- package/src/components/VabUpload/view.vue +248 -209
- package/src/components/baseTabs/mixins.js +181 -181
- package/src/components/bizTab/BizBillActions.vue +129 -0
- package/src/components/bizTab/BizTabListPage.vue +391 -0
- package/src/components/bizTab/README.md +378 -0
- package/src/components/bizTab/billTableUtil.js +48 -0
- package/src/components/bizTab/billValidators.js +136 -0
- package/src/components/bizTab/bizBillDetailMixin.js +705 -0
- package/src/components/bizTab/index.js +24 -0
- package/src/components/excelExport/exportFieldDialog.vue +23 -12
- package/src/components/excelExport/exportItemConfigUtil.js +30 -0
- package/src/components/excelExport/mixins.js +3 -3
- package/src/components/excelImport/index.vue +156 -156
- package/src/components/jsonImport/index.vue +1 -1
- package/src/components/langImport/index.vue +1 -1
- package/src/components/mobile/statusTag/mixins.js +1 -61
- package/src/components/mobile/wf/addTaskUserdialog.vue +23 -3
- package/src/components/mobile/wf/content.vue +1705 -1556
- package/src/components/mobile/wf/deleteTaskUserDialog.vue +22 -3
- package/src/components/mobile/wf/mixins/wfModifyDialogMixin.js +8 -6
- package/src/components/mobile/wf/selectUserDialog.vue +122 -0
- package/src/components/mobile/wf/setCandidateDialog.vue +25 -4
- package/src/components/mobile/wf/urgingDialog.vue +26 -3
- package/src/components/mobile/wf/wfModifyDialog.vue +4 -0
- package/src/components/obsUpload/index.vue +1 -1
- package/src/components/table/config.js +78 -78
- package/src/components/table/index.js +1276 -1276
- package/src/components/table/plugins/cell-area/index.js +1055 -0
- package/src/components/table/plugins/cell-area/index.scss +77 -0
- package/src/components/table/plugins/cell-area/util.js +224 -0
- package/src/components/table/tableForm.vue +330 -330
- package/src/components/table/tableFormMixin.js +318 -318
- package/src/components/table/vxeFilter/index.js +163 -163
- package/src/components/table/vxeFilter/mixin.js +316 -316
- package/src/components/wf/content.vue +1188 -1188
- package/src/components/wf/wf.js +40 -20
- package/src/components/wf/wfActionDropdown.vue +1 -1
- package/src/components/wf/wfActionItems.js +1 -1
- package/src/components/xform/docs/2026-08 xform H5 P0 /345/256/236/347/216/260/350/247/204/346/240/274.md" +528 -0
- package/src/components/xform/docs/2026-08 xform H5 P1 /345/256/236/347/216/260/350/247/204/346/240/274.md" +412 -0
- package/src/components/xform/docs/2026-08 xform H5 P2 /345/256/236/347/216/260/350/247/204/346/240/274.md" +287 -0
- package/src/components/xform/docs/2026-08 xform /347/247/273/345/212/250/347/253/257/345/270/203/345/261/200/345/257/271/351/275/220 bill_setting /346/226/271/346/241/210.md" +400 -0
- package/src/components/xform/form-designer/designer.js +51 -52
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +269 -269
- package/src/components/xform/form-designer/form-widget/container-widget/detail-h5-widget.vue +18 -2
- package/src/components/xform/form-designer/form-widget/container-widget/detail-temp-widget.vue +132 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +250 -250
- package/src/components/xform/form-designer/form-widget/container-widget/h5-card-pane-widget.vue +23 -2
- package/src/components/xform/form-designer/form-widget/container-widget/h5-card-widget.vue +30 -1
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +319 -320
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +365 -365
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +185 -185
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +554 -555
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +409 -409
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +150 -132
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +114 -114
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +154 -154
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +47 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +178 -178
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +77 -77
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +6 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +139 -139
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +106 -106
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +134 -134
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +3 -2
- package/src/components/xform/form-designer/indexMixin.js +35 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +39 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +10 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +438 -432
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +2103 -2103
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-temp-edito.vue +90 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +82 -82
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +833 -846
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +8 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +137 -137
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +237 -237
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +96 -96
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +42 -42
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +158 -158
- package/src/components/xform/form-designer/setting-panel/property-editor/h5Span-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/itemStyle-editor.vue +39 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +188 -188
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTempClass-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +347 -347
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +12 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +884 -874
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +14 -0
- package/src/components/xform/form-designer/widget-panel/index.vue +11 -7
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +30 -6
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +112 -4
- package/src/components/xform/form-render/container-item/data-table-mixin.js +151 -93
- package/src/components/xform/form-render/container-item/detail-h5-item.vue +204 -34
- package/src/components/xform/form-render/container-item/detail-temp-item.vue +110 -0
- package/src/components/xform/form-render/container-item/h5-card-pane-item.vue +160 -140
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1913 -1699
- package/src/components/xform/form-render/index.vue +153 -147
- package/src/components/xform/form-render/indexMixin.js +35 -3
- package/src/components/xform/lang/en-US.js +14 -0
- package/src/components/xform/lang/zh-CN.js +17 -0
- package/src/components/xform/mixins/defaultHandle.js +707 -707
- package/src/components/xform/styles/h5.scss +2238 -0
- package/src/components/xform/utils/textMaskUtil.js +182 -179
- package/src/components/xform/utils/treeTableUtil.js +1292 -1265
- package/src/components/xform/utils/util.js +56 -11
- package/src/directive/append-to-body/index.js +48 -0
- package/src/index.js +13 -4
- package/src/layout/components/Sidebar/default.vue +1655 -1655
- package/src/layout/components/extractedCode/viewDialog.vue +7 -7
- package/src/router/index.js +48 -27
- package/src/router/modules/customer.js +71 -14
- package/src/store/modules/permission.js +17 -18
- package/src/utils/assetUrl.js +19 -0
- package/src/utils/pdfUtil.js +429 -429
- package/src/utils/resolveViewComponent.js +142 -16
- package/src/utils/vab.js +1283 -1279
- package/src/views/bd/project/branch/bd_branch/edit.vue +145 -0
- package/src/views/bd/project/branch/bd_branch/list.vue +72 -0
- package/src/views/bd/project/branch/bd_branch/menuKindDialog.vue +106 -0
- package/src/views/bd/project/branch/bd_branch/mixins/edit.js +189 -0
- package/src/views/bd/project/branch/bd_branch/mixins/list.js +124 -0
- package/src/views/bd/project/branch/bd_branch/mixins/menuKindDialog.js +85 -0
- package/src/views/bd/project/branch/form_script/list.vue +31 -0
- package/src/views/bd/project/branch/form_template/list.vue +30 -0
- package/src/views/bd/project/branch/menu_kind/list.vue +31 -0
- package/src/views/bd/project/common/form_script/list.vue +16 -0
- package/src/views/bd/project/common/form_template/list.vue +15 -0
- package/src/views/bd/project/common/menu_kind/list.vue +15 -0
- package/src/views/bd/project/core/branchContext.js +100 -0
- package/src/views/bd/project/core/branchPage.js +78 -0
- package/src/views/bd/project/core/branchPageWrap.vue +225 -0
- package/src/views/bd/project/core/branchScope.js +44 -0
- package/src/views/bd/project/core/branchSearchPage.js +285 -0
- package/src/views/bd/project/core/branchSelect.vue +85 -0
- package/src/views/bd/project/core/branchTreeBar.vue +81 -0
- package/src/views/bd/project/core/httpBranchPatch.js +58 -0
- package/src/views/bd/project/datatable/menu_kind/list.vue +15 -0
- package/src/views/bd/project/datatable/table_model/list.vue +15 -0
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
- package/src/views/bd/setting/form_template/edit.vue +378 -356
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +6 -0
- package/src/views/bd/setting/form_template/formTemplateType.js +43 -0
- package/src/views/bd/setting/form_template/list.vue +304 -303
- package/src/views/bd/setting/form_template/mixins/edit.js +344 -280
- package/src/views/bd/setting/form_template/mixins/list.js +748 -721
- package/src/views/bd/setting/table_model/edit.vue +1066 -1066
- package/src/views/bd/setting/table_model/mixins/edit.js +1455 -1455
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +148 -148
- package/src/views/demo/bizTab/bill/billConfig.js +41 -0
- package/src/views/demo/bizTab/bill/detail.vue +436 -0
- package/src/views/demo/bizTab/bill/list.vue +288 -0
- package/src/views/demo/bizTab/bill/productDialog.vue +176 -0
- package/src/views/demo/bizTab/simple/billApi.js +123 -0
- package/src/views/demo/bizTab/simple/detail.vue +407 -0
- package/src/views/demo/bizTab/simple/list.vue +217 -0
- package/src/views/demo/bizTab/standalone/index.vue +121 -0
- package/src/views/demo/bizTab/wf/billConfig.js +44 -0
- package/src/views/demo/bizTab/wf/detail.vue +661 -0
- package/src/views/demo/bizTab/wf/list.vue +242 -0
- package/src/views/support/form-dialog-demo/demoPickerDialog.vue +72 -0
- package/src/views/support/form-dialog-demo/index.vue +537 -0
- package/src/views/user/file_view_ins/list.vue +970 -970
- package/src/views/user/form/vform/designer.vue +823 -821
- package/src/views/user/home/default.vue +1117 -1117
- package/src/views/user/home/default2.vue +1 -1
- package/src/views/user/home/index.vue +103 -101
- package/src/views/user/home/wjl/content.vue +1569 -0
- package/src/views/user/notify_message/dialog.vue +139 -137
- package/src/views/user/outLink/cc_form_view.vue +188 -0
- package/src/views/user/outLink/form_view.vue +202 -202
- package/src/views/user/outLink/index.vue +110 -110
- package/src/views/user/outLink/view.vue +3 -3
- package/src/views/user/role/edit.vue +632 -632
- package/src/views/user/role/list.vue +260 -260
- package/src/views/user/wf/iframe/index.vue +51 -51
- package/src/views/user/wf/iframe/index2.vue +64 -64
- package/src/views/user/wf/wf_manage/list.vue +1112 -1116
- package/src/views/user/wf/wf_manage/list2.vue +871 -875
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +134 -131
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +0 -106
- package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +0 -99
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +0 -1340
- package/src/utils/wf.js +0 -766
|
@@ -1,874 +1,884 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="toolbar-container">
|
|
3
|
-
<div class="left-toolbar">
|
|
4
|
-
<el-button
|
|
5
|
-
type="text"
|
|
6
|
-
:disabled="undoDisabled"
|
|
7
|
-
:title="i18nt('designer.toolbar.undoHint')"
|
|
8
|
-
@click="undoHistory"
|
|
9
|
-
>
|
|
10
|
-
<svg-icon icon-class="undo" />
|
|
11
|
-
</el-button>
|
|
12
|
-
<el-button
|
|
13
|
-
type="text"
|
|
14
|
-
:disabled="redoDisabled"
|
|
15
|
-
:title="i18nt('designer.toolbar.redoHint')"
|
|
16
|
-
@click="redoHistory"
|
|
17
|
-
>
|
|
18
|
-
<svg-icon icon-class="redo" />
|
|
19
|
-
</el-button>
|
|
20
|
-
<el-button-group
|
|
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
|
-
{{ i18nt(
|
|
116
|
-
</el-button>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
:
|
|
130
|
-
|
|
131
|
-
v-
|
|
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
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
:
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
</vxe-button>
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
:
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
<
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
</vxe-button>
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
<el-button
|
|
297
|
-
|
|
298
|
-
>
|
|
299
|
-
<el-button
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
:close
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
:
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
></
|
|
336
|
-
<
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
:close
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
<
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
>
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
:close
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
:
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
>
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
:close
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
>
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
:close
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
:
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
>
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
:
|
|
574
|
-
:
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
.
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
.
|
|
688
|
-
float:
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
.
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
.
|
|
745
|
-
::v-deep .el-
|
|
746
|
-
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
.
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
height: calc(100vh - 142px);
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
border-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
overflow-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
.el-
|
|
789
|
-
padding
|
|
790
|
-
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
.
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="toolbar-container">
|
|
3
|
+
<div class="left-toolbar">
|
|
4
|
+
<el-button
|
|
5
|
+
type="text"
|
|
6
|
+
:disabled="undoDisabled"
|
|
7
|
+
:title="i18nt('designer.toolbar.undoHint')"
|
|
8
|
+
@click="undoHistory"
|
|
9
|
+
>
|
|
10
|
+
<svg-icon icon-class="undo" />
|
|
11
|
+
</el-button>
|
|
12
|
+
<el-button
|
|
13
|
+
type="text"
|
|
14
|
+
:disabled="redoDisabled"
|
|
15
|
+
:title="i18nt('designer.toolbar.redoHint')"
|
|
16
|
+
@click="redoHistory"
|
|
17
|
+
>
|
|
18
|
+
<svg-icon icon-class="redo" />
|
|
19
|
+
</el-button>
|
|
20
|
+
<el-button-group :title="layoutTypeLocked ? layoutTypeLockedTip : ''">
|
|
21
|
+
<!-- 锁定时只保留当前模式一个按钮,另一个不显示 -->
|
|
22
|
+
<el-button
|
|
23
|
+
v-if="!layoutTypeLocked || layoutType === 'PC'"
|
|
24
|
+
:type="layoutType === 'PC' ? 'info' : ''"
|
|
25
|
+
:disabled="layoutTypeLocked"
|
|
26
|
+
@click="changeLayoutType('PC')"
|
|
27
|
+
size="mini"
|
|
28
|
+
>
|
|
29
|
+
{{ i18nt("designer.toolbar.pcLayout") }}
|
|
30
|
+
</el-button>
|
|
31
|
+
<!-- <el-button :type="layoutType === 'Pad' ? 'info' : ''" @click="changeLayoutType('Pad')">{{ i18nt('designer.toolbar.padLayout') }}</el-button>-->
|
|
32
|
+
<el-button
|
|
33
|
+
v-if="!layoutTypeLocked || layoutType === 'H5'"
|
|
34
|
+
:type="layoutType === 'H5' ? 'info' : ''"
|
|
35
|
+
:disabled="layoutTypeLocked"
|
|
36
|
+
@click="changeLayoutType('H5')"
|
|
37
|
+
size="mini"
|
|
38
|
+
>
|
|
39
|
+
{{ i18nt("designer.toolbar.mobileLayout") }}
|
|
40
|
+
</el-button>
|
|
41
|
+
</el-button-group>
|
|
42
|
+
<!-- <el-button type="" style="margin-left: 20px" :title="i18nt('designer.toolbar.nodeTreeHint')" @click="showNodeTreeDrawer"><svg-icon icon-class="node-tree" /></el-button>-->
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<el-drawer
|
|
46
|
+
:title="i18nt('designer.toolbar.nodeTreeTitle')"
|
|
47
|
+
direction="ltr"
|
|
48
|
+
:visible.sync="showNodeTreeDrawerFlag"
|
|
49
|
+
:modal="false"
|
|
50
|
+
:size="280"
|
|
51
|
+
:destroy-on-close="true"
|
|
52
|
+
class="node-tree-drawer"
|
|
53
|
+
>
|
|
54
|
+
<el-tree
|
|
55
|
+
ref="nodeTree"
|
|
56
|
+
:data="nodeTreeData"
|
|
57
|
+
node-key="id"
|
|
58
|
+
default-expand-all
|
|
59
|
+
highlight-current
|
|
60
|
+
class="node-tree"
|
|
61
|
+
icon-class="el-icon-arrow-right"
|
|
62
|
+
@node-click="onNodeTreeClick"
|
|
63
|
+
></el-tree>
|
|
64
|
+
</el-drawer>
|
|
65
|
+
|
|
66
|
+
<div class="right-toolbar" :style="{ width: 'auto' }">
|
|
67
|
+
<div class="right-toolbar-con">
|
|
68
|
+
<!-- <el-button type="text" @click="showFormConfigDialog=true">
|
|
69
|
+
<i class="iconfont icon-liebiaoshezhi-list-setting"/>
|
|
70
|
+
表单/列表设置
|
|
71
|
+
</el-button>-->
|
|
72
|
+
<el-button
|
|
73
|
+
type="primary"
|
|
74
|
+
@click="saveReportTemplate()"
|
|
75
|
+
plain
|
|
76
|
+
v-if="
|
|
77
|
+
designer.vueInstance.isDev &&
|
|
78
|
+
designer.vueInstance.menuKindAuth.editAuth === 1 &&
|
|
79
|
+
!readonly
|
|
80
|
+
"
|
|
81
|
+
>
|
|
82
|
+
<i class="el-icon-check" />
|
|
83
|
+
保存
|
|
84
|
+
</el-button>
|
|
85
|
+
<el-divider direction="vertical"></el-divider>
|
|
86
|
+
<el-button
|
|
87
|
+
v-if="showToolButton('clearDesignerButton') && !readonly"
|
|
88
|
+
type="text"
|
|
89
|
+
@click="clearFormWidget"
|
|
90
|
+
>
|
|
91
|
+
<i class="el-icon-delete" />
|
|
92
|
+
{{ i18nt("designer.toolbar.clear") }}
|
|
93
|
+
</el-button>
|
|
94
|
+
<el-button
|
|
95
|
+
v-if="showToolButton('previewFormButton')"
|
|
96
|
+
type="text"
|
|
97
|
+
@click="previewForm"
|
|
98
|
+
>
|
|
99
|
+
<i class="el-icon-view" />
|
|
100
|
+
{{ i18nt("designer.toolbar.preview") }}
|
|
101
|
+
</el-button>
|
|
102
|
+
<el-divider direction="vertical"></el-divider>
|
|
103
|
+
<el-button
|
|
104
|
+
v-if="showToolButton('importJsonButton') && !readonly"
|
|
105
|
+
type="text"
|
|
106
|
+
@click="importJson"
|
|
107
|
+
>
|
|
108
|
+
{{ i18nt("designer.toolbar.importJson") }}
|
|
109
|
+
</el-button>
|
|
110
|
+
<el-button
|
|
111
|
+
v-if="showToolButton('exportJsonButton')"
|
|
112
|
+
type="text"
|
|
113
|
+
@click="exportJson"
|
|
114
|
+
>
|
|
115
|
+
{{ i18nt("designer.toolbar.exportJson") }}
|
|
116
|
+
</el-button>
|
|
117
|
+
<!--<el-button v-if="showToolButton('exportCodeButton')" type="text" @click="exportCode">{{ i18nt('designer.toolbar.exportCode') }}</el-button>
|
|
118
|
+
<el-button v-if="showToolButton('generateSFCButton')" type="text" @click="generateSFC">
|
|
119
|
+
<svg-icon icon-class="vue-sfc" />
|
|
120
|
+
{{ i18nt('designer.toolbar.generateSFC') }}
|
|
121
|
+
</el-button> -->
|
|
122
|
+
<template v-for="(idx, slotName) in $slots">
|
|
123
|
+
<slot :name="slotName"></slot>
|
|
124
|
+
</template>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
<el-dialog
|
|
129
|
+
:title="i18nt('designer.toolbar.preview')"
|
|
130
|
+
:visible.sync="showPreviewDialogFlag"
|
|
131
|
+
v-if="showPreviewDialogFlag"
|
|
132
|
+
:show-close="true"
|
|
133
|
+
:close-on-click-modal="false"
|
|
134
|
+
:close-on-press-escape="false"
|
|
135
|
+
center
|
|
136
|
+
v-dialog-drag
|
|
137
|
+
:destroy-on-close="true"
|
|
138
|
+
:append-to-body="true"
|
|
139
|
+
:modal-append-to-body="true"
|
|
140
|
+
class="small-padding-dialog preview-dialog"
|
|
141
|
+
width="75%"
|
|
142
|
+
:fullscreen="true"
|
|
143
|
+
@close="showPreviewDialogFlag = false"
|
|
144
|
+
>
|
|
145
|
+
<div>
|
|
146
|
+
<div
|
|
147
|
+
class="form-render-wrapper"
|
|
148
|
+
id="containt"
|
|
149
|
+
:class="[
|
|
150
|
+
layoutType === 'H5'
|
|
151
|
+
? 'h5-layout'
|
|
152
|
+
: layoutType === 'Pad'
|
|
153
|
+
? 'pad-layout'
|
|
154
|
+
: '',
|
|
155
|
+
]"
|
|
156
|
+
>
|
|
157
|
+
<VFormRender
|
|
158
|
+
ref="preForm"
|
|
159
|
+
:form-json="formJson"
|
|
160
|
+
:form-data="testFormData"
|
|
161
|
+
:preview-state="true"
|
|
162
|
+
:option-data="testOptionData"
|
|
163
|
+
@appendButtonClick="testOnAppendButtonClick"
|
|
164
|
+
@buttonClick="testOnButtonClick"
|
|
165
|
+
@formChange="handleFormChange"
|
|
166
|
+
:reportTemplate.sync="reportTemplate"
|
|
167
|
+
v-if="showRender"
|
|
168
|
+
visible-key="showRender"
|
|
169
|
+
:parent-target="_self"
|
|
170
|
+
@reload="$reloadHandle"
|
|
171
|
+
>
|
|
172
|
+
<!--
|
|
173
|
+
<div slot="testSlot">aaaa</div>
|
|
174
|
+
-->
|
|
175
|
+
</VFormRender>
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
178
|
+
<!-- <el-tabs v-model="activeName" class="tab-box">
|
|
179
|
+
<el-tab-pane label="常规" name="first">
|
|
180
|
+
<div>
|
|
181
|
+
<div class="form-render-wrapper" id="containt"
|
|
182
|
+
:class="[layoutType === 'H5' ? 'h5-layout' : layoutType === 'Pad' ? 'pad-layout' : '']">
|
|
183
|
+
<VFormRender
|
|
184
|
+
ref="preForm"
|
|
185
|
+
:form-json="formJson"
|
|
186
|
+
:form-data="testFormData"
|
|
187
|
+
:preview-state="true"
|
|
188
|
+
:option-data="testOptionData"
|
|
189
|
+
@appendButtonClick="testOnAppendButtonClick"
|
|
190
|
+
@buttonClick="testOnButtonClick"
|
|
191
|
+
@formChange="handleFormChange"
|
|
192
|
+
:reportTemplate.sync="reportTemplate"
|
|
193
|
+
v-if="showRender" visible-key="showRender" :parent-target="_self" @reload="$reloadHandle"
|
|
194
|
+
>
|
|
195
|
+
<!–
|
|
196
|
+
<div slot="testSlot">aaaa</div>
|
|
197
|
+
–>
|
|
198
|
+
</VFormRender>
|
|
199
|
+
</div>
|
|
200
|
+
</div>
|
|
201
|
+
<code-editor v-model="testFunc" style="display: none"></code-editor>
|
|
202
|
+
</el-tab-pane>
|
|
203
|
+
<el-tab-pane label="列表" name="second">
|
|
204
|
+
<template v-if="false">
|
|
205
|
+
<div class="grid-height">
|
|
206
|
+
<vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
207
|
+
@custom="$vxeTableUtil.customHandle">
|
|
208
|
+
<template #form>
|
|
209
|
+
<div class="clearfix screen-btns">
|
|
210
|
+
<div class="fl">
|
|
211
|
+
<vxe-button status="primary" class="button-sty" icon="el-icon-plus">新增
|
|
212
|
+
</vxe-button>
|
|
213
|
+
</div>
|
|
214
|
+
<div class="fr">
|
|
215
|
+
<vxe-button icon="el-icon-brush" class="button-sty" type="text" status="primary" plain
|
|
216
|
+
@click="formData={}">重置
|
|
217
|
+
</vxe-button>
|
|
218
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty">搜索
|
|
219
|
+
</vxe-button>
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
222
|
+
<template v-if="searchFields.length>0">
|
|
223
|
+
<vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData">
|
|
224
|
+
<vxe-form-item v-for="(item,index) in searchFields"
|
|
225
|
+
:key="index" :title="item.label+':'">
|
|
226
|
+
<template v-slot>
|
|
227
|
+
<el-input v-model="formData[item.prop]" size="small" clearable/>
|
|
228
|
+
</template>
|
|
229
|
+
</vxe-form-item>
|
|
230
|
+
</vxe-form>
|
|
231
|
+
</template>
|
|
232
|
+
</template>
|
|
233
|
+
</vxe-grid>
|
|
234
|
+
</div>
|
|
235
|
+
</template>
|
|
236
|
+
<template v-else>
|
|
237
|
+
<div id="containt">
|
|
238
|
+
<div class="tree-box fl">
|
|
239
|
+
<div class="tit"><b>机构分类</b></div>
|
|
240
|
+
<el-tree
|
|
241
|
+
:props="treeOption.defaultProps"
|
|
242
|
+
:load="loadNode"
|
|
243
|
+
node-key="id"
|
|
244
|
+
ref="tree"
|
|
245
|
+
highlight-current
|
|
246
|
+
lazy
|
|
247
|
+
:expand-on-click-node="false"
|
|
248
|
+
@node-click="handleNodeClick"
|
|
249
|
+
class="tree-list"
|
|
250
|
+
icon-class="el-icon-arrow-down"
|
|
251
|
+
></el-tree>
|
|
252
|
+
</div>
|
|
253
|
+
<label id="labBtn">
|
|
254
|
+
<div class="icon">
|
|
255
|
+
<i class="el-icon-more"></i>
|
|
256
|
+
<i class="el-icon-more"></i>
|
|
257
|
+
</div>
|
|
258
|
+
</label>
|
|
259
|
+
<div class="main-right fr" style="padding-left:6px;">
|
|
260
|
+
<div class="grid-height">
|
|
261
|
+
<vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
262
|
+
@custom="$vxeTableUtil.customHandle">
|
|
263
|
+
<template #form>
|
|
264
|
+
<div class="clearfix screen-btns">
|
|
265
|
+
<div class="fl">
|
|
266
|
+
<vxe-button status="primary" class="button-sty" icon="el-icon-plus">新增
|
|
267
|
+
</vxe-button>
|
|
268
|
+
</div>
|
|
269
|
+
<div class="fr">
|
|
270
|
+
<vxe-button icon="el-icon-brush" class="button-sty" type="text" status="primary" plain
|
|
271
|
+
@click="formData={}">重置
|
|
272
|
+
</vxe-button>
|
|
273
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty">搜索
|
|
274
|
+
</vxe-button>
|
|
275
|
+
</div>
|
|
276
|
+
</div>
|
|
277
|
+
<template v-if="searchFields.length>0">
|
|
278
|
+
<vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData">
|
|
279
|
+
<vxe-form-item v-for="(item,index) in searchFields"
|
|
280
|
+
:key="index" :title="item.label+':'">
|
|
281
|
+
<template v-slot>
|
|
282
|
+
<el-input v-model="formData[item.prop]" size="small" clearable/>
|
|
283
|
+
</template>
|
|
284
|
+
</vxe-form-item>
|
|
285
|
+
</vxe-form>
|
|
286
|
+
</template>
|
|
287
|
+
</template>
|
|
288
|
+
</vxe-grid>
|
|
289
|
+
</div>
|
|
290
|
+
</div>
|
|
291
|
+
</div>
|
|
292
|
+
</template>
|
|
293
|
+
</el-tab-pane>
|
|
294
|
+
</el-tabs>-->
|
|
295
|
+
<div slot="footer" class="dialog-footer" v-if="false">
|
|
296
|
+
<!-- <el-button type="primary" @click="getFormData" class="button-sty">{{ i18nt('designer.hint.getFormData') }}</el-button>
|
|
297
|
+
<el-button type="primary" @click="resetForm" class="button-sty">{{ i18nt('designer.hint.resetForm') }}</el-button>
|
|
298
|
+
<el-button type="primary" @click="setFormDisabled" class="button-sty">{{ i18nt('designer.hint.disableForm') }}</el-button>
|
|
299
|
+
<el-button type="primary" @click="setFormEnabled" class="button-sty">{{ i18nt('designer.hint.enableForm') }}</el-button>
|
|
300
|
+
<el-button type="" @click="showPreviewDialogFlag = false" class="button-sty">{{ i18nt('designer.hint.closePreview') }}</el-button> -->
|
|
301
|
+
<el-button v-if="false" @click="printFormJson" class="button-sty"
|
|
302
|
+
>PrintFormJson</el-button
|
|
303
|
+
>
|
|
304
|
+
<el-button v-if="false" @click="testValidate" class="button-sty"
|
|
305
|
+
>TestValidate</el-button
|
|
306
|
+
>
|
|
307
|
+
<el-button v-if="false" @click="testSetFormData" class="button-sty"
|
|
308
|
+
>TestSF</el-button
|
|
309
|
+
>
|
|
310
|
+
<el-button @click="$refs['preForm'].saveForm()" class="button-sty"
|
|
311
|
+
>测试保存</el-button
|
|
312
|
+
>
|
|
313
|
+
</div>
|
|
314
|
+
</el-dialog>
|
|
315
|
+
|
|
316
|
+
<el-dialog
|
|
317
|
+
:title="i18nt('designer.toolbar.importJson')"
|
|
318
|
+
:visible.sync="showImportJsonDialogFlag"
|
|
319
|
+
v-if="showImportJsonDialogFlag"
|
|
320
|
+
:show-close="true"
|
|
321
|
+
class="small-padding-dialog preview-dialog"
|
|
322
|
+
center
|
|
323
|
+
v-dialog-drag
|
|
324
|
+
:close-on-click-modal="false"
|
|
325
|
+
:close-on-press-escape="false"
|
|
326
|
+
:destroy-on-close="true"
|
|
327
|
+
:append-to-body="true"
|
|
328
|
+
:modal-append-to-body="true"
|
|
329
|
+
>
|
|
330
|
+
<el-alert
|
|
331
|
+
type="info"
|
|
332
|
+
:title="i18nt('designer.hint.importJsonHint')"
|
|
333
|
+
show-icon
|
|
334
|
+
class="alert-padding"
|
|
335
|
+
></el-alert>
|
|
336
|
+
<code-editor
|
|
337
|
+
:mode="'json'"
|
|
338
|
+
:readonly="false"
|
|
339
|
+
v-model="importTemplate"
|
|
340
|
+
></code-editor>
|
|
341
|
+
<div slot="footer" class="dialog-footer">
|
|
342
|
+
<el-button type="primary" @click="doJsonImport" class="button-sty"
|
|
343
|
+
>{{ i18nt("designer.hint.import") }}
|
|
344
|
+
</el-button>
|
|
345
|
+
<el-button @click="showImportJsonDialogFlag = false" class="button-sty"
|
|
346
|
+
>{{ i18nt("designer.hint.cancel") }}
|
|
347
|
+
</el-button>
|
|
348
|
+
</div>
|
|
349
|
+
</el-dialog>
|
|
350
|
+
|
|
351
|
+
<el-dialog
|
|
352
|
+
:title="i18nt('designer.toolbar.exportJson')"
|
|
353
|
+
:visible.sync="showExportJsonDialogFlag"
|
|
354
|
+
v-if="showExportJsonDialogFlag"
|
|
355
|
+
:show-close="true"
|
|
356
|
+
class="small-padding-dialog preview-dialog"
|
|
357
|
+
center
|
|
358
|
+
v-dialog-drag
|
|
359
|
+
:close-on-click-modal="false"
|
|
360
|
+
:close-on-press-escape="false"
|
|
361
|
+
:destroy-on-close="true"
|
|
362
|
+
:append-to-body="true"
|
|
363
|
+
:modal-append-to-body="true"
|
|
364
|
+
>
|
|
365
|
+
<code-editor
|
|
366
|
+
:mode="'json'"
|
|
367
|
+
:readonly="true"
|
|
368
|
+
v-model="jsonContent"
|
|
369
|
+
></code-editor>
|
|
370
|
+
<div slot="footer" class="dialog-footer">
|
|
371
|
+
<el-button
|
|
372
|
+
type="primary"
|
|
373
|
+
class="copy-json-btn button-sty"
|
|
374
|
+
:data-clipboard-text="jsonRawContent"
|
|
375
|
+
@click="copyFormJson"
|
|
376
|
+
>{{ i18nt("designer.hint.copyJson") }}
|
|
377
|
+
</el-button>
|
|
378
|
+
<el-button @click="saveFormJson" class="button-sty">{{
|
|
379
|
+
i18nt("designer.hint.saveFormJson")
|
|
380
|
+
}}</el-button>
|
|
381
|
+
<el-button
|
|
382
|
+
type=""
|
|
383
|
+
@click="showExportJsonDialogFlag = false"
|
|
384
|
+
class="button-sty"
|
|
385
|
+
>
|
|
386
|
+
{{ i18nt("designer.hint.closePreview") }}
|
|
387
|
+
</el-button>
|
|
388
|
+
</div>
|
|
389
|
+
</el-dialog>
|
|
390
|
+
|
|
391
|
+
<el-dialog
|
|
392
|
+
:title="i18nt('designer.toolbar.exportCode')"
|
|
393
|
+
:visible.sync="showExportCodeDialogFlag"
|
|
394
|
+
v-if="showExportCodeDialogFlag"
|
|
395
|
+
:show-close="true"
|
|
396
|
+
class="small-padding-dialog preview-dialog"
|
|
397
|
+
center
|
|
398
|
+
v-dialog-drag
|
|
399
|
+
width="65%"
|
|
400
|
+
:close-on-click-modal="false"
|
|
401
|
+
:close-on-press-escape="false"
|
|
402
|
+
:destroy-on-close="true"
|
|
403
|
+
:append-to-body="true"
|
|
404
|
+
:modal-append-to-body="true"
|
|
405
|
+
>
|
|
406
|
+
<el-tabs
|
|
407
|
+
type="border-card"
|
|
408
|
+
class="no-box-shadow no-padding"
|
|
409
|
+
v-model="activeCodeTab"
|
|
410
|
+
>
|
|
411
|
+
<el-tab-pane label="Vue" name="vue">
|
|
412
|
+
<code-editor
|
|
413
|
+
:mode="'html'"
|
|
414
|
+
:readonly="true"
|
|
415
|
+
v-model="vueCode"
|
|
416
|
+
:user-worker="false"
|
|
417
|
+
></code-editor>
|
|
418
|
+
</el-tab-pane>
|
|
419
|
+
<el-tab-pane label="HTML" name="html">
|
|
420
|
+
<code-editor
|
|
421
|
+
:mode="'html'"
|
|
422
|
+
:readonly="true"
|
|
423
|
+
v-model="htmlCode"
|
|
424
|
+
:user-worker="false"
|
|
425
|
+
></code-editor>
|
|
426
|
+
</el-tab-pane>
|
|
427
|
+
</el-tabs>
|
|
428
|
+
<div slot="footer" class="dialog-footer">
|
|
429
|
+
<el-button
|
|
430
|
+
type="primary"
|
|
431
|
+
class="copy-vue-btn button-sty"
|
|
432
|
+
:data-clipboard-text="vueCode"
|
|
433
|
+
@click="copyVueCode"
|
|
434
|
+
>
|
|
435
|
+
{{ i18nt("designer.hint.copyVueCode") }}
|
|
436
|
+
</el-button>
|
|
437
|
+
<el-button
|
|
438
|
+
type="primary"
|
|
439
|
+
class="copy-html-btn button-sty"
|
|
440
|
+
:data-clipboard-text="htmlCode"
|
|
441
|
+
@click="copyHtmlCode"
|
|
442
|
+
>{{ i18nt("designer.hint.copyHtmlCode") }}
|
|
443
|
+
</el-button>
|
|
444
|
+
<el-button @click="saveVueCode" class="button-sty">{{
|
|
445
|
+
i18nt("designer.hint.saveVueCode")
|
|
446
|
+
}}</el-button>
|
|
447
|
+
<el-button @click="saveHtmlCode" class="button-sty">{{
|
|
448
|
+
i18nt("designer.hint.saveHtmlCode")
|
|
449
|
+
}}</el-button>
|
|
450
|
+
<el-button
|
|
451
|
+
type=""
|
|
452
|
+
@click="showExportCodeDialogFlag = false"
|
|
453
|
+
class="button-sty"
|
|
454
|
+
>
|
|
455
|
+
{{ i18nt("designer.hint.closePreview") }}
|
|
456
|
+
</el-button>
|
|
457
|
+
</div>
|
|
458
|
+
</el-dialog>
|
|
459
|
+
|
|
460
|
+
<el-dialog
|
|
461
|
+
:title="i18nt('designer.hint.exportFormData')"
|
|
462
|
+
:visible.sync="showFormDataDialogFlag"
|
|
463
|
+
v-if="showFormDataDialogFlag"
|
|
464
|
+
:show-close="true"
|
|
465
|
+
class="dialog-title-light-bg preview-dialog"
|
|
466
|
+
center
|
|
467
|
+
v-dialog-drag
|
|
468
|
+
:close-on-click-modal="false"
|
|
469
|
+
:close-on-press-escape="false"
|
|
470
|
+
:destroy-on-close="true"
|
|
471
|
+
:append-to-body="true"
|
|
472
|
+
:modal-append-to-body="true"
|
|
473
|
+
>
|
|
474
|
+
<div style="border: 1px solid #dcdfe6">
|
|
475
|
+
<code-editor
|
|
476
|
+
:mode="'json'"
|
|
477
|
+
:readonly="true"
|
|
478
|
+
v-model="formDataJson"
|
|
479
|
+
></code-editor>
|
|
480
|
+
</div>
|
|
481
|
+
<div slot="footer" class="dialog-footer">
|
|
482
|
+
<el-button
|
|
483
|
+
type="primary"
|
|
484
|
+
class="copy-form-data-json-btn button-sty"
|
|
485
|
+
:data-clipboard-text="formDataRawJson"
|
|
486
|
+
@click="copyFormDataJson"
|
|
487
|
+
>
|
|
488
|
+
{{ i18nt("designer.hint.copyFormData") }}
|
|
489
|
+
</el-button>
|
|
490
|
+
<el-button @click="saveFormData" class="button-sty">{{
|
|
491
|
+
i18nt("designer.hint.saveFormData")
|
|
492
|
+
}}</el-button>
|
|
493
|
+
<el-button
|
|
494
|
+
type=""
|
|
495
|
+
@click="showFormDataDialogFlag = false"
|
|
496
|
+
class="button-sty"
|
|
497
|
+
>
|
|
498
|
+
{{ i18nt("designer.hint.closePreview") }}
|
|
499
|
+
</el-button>
|
|
500
|
+
</div>
|
|
501
|
+
</el-dialog>
|
|
502
|
+
|
|
503
|
+
<el-dialog
|
|
504
|
+
:title="i18nt('designer.toolbar.generateSFC')"
|
|
505
|
+
:visible.sync="showExportSFCDialogFlag"
|
|
506
|
+
v-if="showExportSFCDialogFlag"
|
|
507
|
+
:show-close="true"
|
|
508
|
+
class="small-padding-dialog preview-dialog"
|
|
509
|
+
center
|
|
510
|
+
v-dialog-drag
|
|
511
|
+
width="65%"
|
|
512
|
+
:close-on-click-modal="false"
|
|
513
|
+
:close-on-press-escape="false"
|
|
514
|
+
:destroy-on-close="true"
|
|
515
|
+
:append-to-body="true"
|
|
516
|
+
:modal-append-to-body="true"
|
|
517
|
+
>
|
|
518
|
+
<el-tabs
|
|
519
|
+
type="border-card"
|
|
520
|
+
class="no-box-shadow no-padding"
|
|
521
|
+
v-model="activeSFCTab"
|
|
522
|
+
>
|
|
523
|
+
<el-tab-pane label="Vue2" name="vue2">
|
|
524
|
+
<code-editor
|
|
525
|
+
:mode="'html'"
|
|
526
|
+
:readonly="true"
|
|
527
|
+
v-model="sfcCode"
|
|
528
|
+
:user-worker="false"
|
|
529
|
+
></code-editor>
|
|
530
|
+
</el-tab-pane>
|
|
531
|
+
<el-tab-pane label="Vue3" name="vue3">
|
|
532
|
+
<code-editor
|
|
533
|
+
:mode="'html'"
|
|
534
|
+
:readonly="true"
|
|
535
|
+
v-model="sfcCodeV3"
|
|
536
|
+
:user-worker="false"
|
|
537
|
+
></code-editor>
|
|
538
|
+
</el-tab-pane>
|
|
539
|
+
</el-tabs>
|
|
540
|
+
<div slot="footer" class="dialog-footer">
|
|
541
|
+
<el-button
|
|
542
|
+
type="primary"
|
|
543
|
+
class="copy-vue2-sfc-btn button-sty"
|
|
544
|
+
:data-clipboard-text="sfcCode"
|
|
545
|
+
@click="copyV2SFC"
|
|
546
|
+
>{{ i18nt("designer.hint.copyVue2SFC") }}
|
|
547
|
+
</el-button>
|
|
548
|
+
<el-button
|
|
549
|
+
type="primary"
|
|
550
|
+
class="copy-vue3-sfc-btn button-sty"
|
|
551
|
+
:data-clipboard-text="sfcCodeV3"
|
|
552
|
+
@click="copyV3SFC"
|
|
553
|
+
>{{ i18nt("designer.hint.copyVue3SFC") }}
|
|
554
|
+
</el-button>
|
|
555
|
+
<el-button @click="saveV2SFC" class="button-sty">{{
|
|
556
|
+
i18nt("designer.hint.saveVue2SFC")
|
|
557
|
+
}}</el-button>
|
|
558
|
+
<el-button @click="saveV3SFC" class="button-sty">{{
|
|
559
|
+
i18nt("designer.hint.saveVue3SFC")
|
|
560
|
+
}}</el-button>
|
|
561
|
+
<el-button
|
|
562
|
+
type=""
|
|
563
|
+
@click="showExportSFCDialogFlag = false"
|
|
564
|
+
class="button-sty"
|
|
565
|
+
>
|
|
566
|
+
{{ i18nt("designer.hint.closePreview") }}
|
|
567
|
+
</el-button>
|
|
568
|
+
</div>
|
|
569
|
+
</el-dialog>
|
|
570
|
+
<el-dialog
|
|
571
|
+
:title="i18nt('表单编辑')"
|
|
572
|
+
v-if="showFormConfigDialog"
|
|
573
|
+
:visible.sync="showFormConfigDialog"
|
|
574
|
+
:modal="false"
|
|
575
|
+
:show-close="!0"
|
|
576
|
+
custom-class="dialog-style list-dialog"
|
|
577
|
+
:close-on-click-modal="!1"
|
|
578
|
+
:close-on-press-escape="!1"
|
|
579
|
+
:destroy-on-close="!0"
|
|
580
|
+
v-el-drag-dialog
|
|
581
|
+
v-el-dialog-center
|
|
582
|
+
>
|
|
583
|
+
<div class="cont" style="height: auto; max-height: 500px">
|
|
584
|
+
<el-scrollbar class="setting-scrollbar">
|
|
585
|
+
<form-setting
|
|
586
|
+
:designer="designer"
|
|
587
|
+
:form-config="designer.formConfig"
|
|
588
|
+
></form-setting>
|
|
589
|
+
</el-scrollbar>
|
|
590
|
+
</div>
|
|
591
|
+
</el-dialog>
|
|
592
|
+
</div>
|
|
593
|
+
</template>
|
|
594
|
+
|
|
595
|
+
<script>
|
|
596
|
+
import VFormRender from "../../../../components/xform/form-render/index";
|
|
597
|
+
import indexMixin from "./indexMixin.js";
|
|
598
|
+
import FormSetting from "../../../../components/xform/form-designer/setting-panel/form-setting";
|
|
599
|
+
|
|
600
|
+
export default {
|
|
601
|
+
name: "ToolbarPanel",
|
|
602
|
+
components: {
|
|
603
|
+
VFormRender,
|
|
604
|
+
FormSetting,
|
|
605
|
+
},
|
|
606
|
+
inject: ["readonly"],
|
|
607
|
+
mixins: [indexMixin],
|
|
608
|
+
data() {
|
|
609
|
+
return {
|
|
610
|
+
defaultProps: {
|
|
611
|
+
label: "name", //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
|
|
612
|
+
children: [],
|
|
613
|
+
isLeaf: "leaf",
|
|
614
|
+
},
|
|
615
|
+
treeOption: {
|
|
616
|
+
title: "机构分类",
|
|
617
|
+
defaultProps: {
|
|
618
|
+
label: "name",
|
|
619
|
+
children: [],
|
|
620
|
+
isLeaf: "leaf",
|
|
621
|
+
},
|
|
622
|
+
url1: "/user/sale_org/getAllList",
|
|
623
|
+
url2: "/user/sale_org/getChildren",
|
|
624
|
+
formRewriteMap: {
|
|
625
|
+
saleOrgId: "id",
|
|
626
|
+
saleOrgName: "name",
|
|
627
|
+
},
|
|
628
|
+
preHadnleData(row) {
|
|
629
|
+
row.leaf = !row.hasChild;
|
|
630
|
+
},
|
|
631
|
+
treeNodeParam(row) {
|
|
632
|
+
return {
|
|
633
|
+
parent: row.id,
|
|
634
|
+
enabled: true,
|
|
635
|
+
};
|
|
636
|
+
},
|
|
637
|
+
},
|
|
638
|
+
};
|
|
639
|
+
},
|
|
640
|
+
methods: {
|
|
641
|
+
handleNodeClick(data, node, v) {
|
|
642
|
+
let treeOption = this.treeOption;
|
|
643
|
+
let formRewriteMap = treeOption.formRewriteMap || {};
|
|
644
|
+
let formData = {};
|
|
645
|
+
Object.keys(formRewriteMap).forEach((key) => {
|
|
646
|
+
// this.$set(this.formData, key, data[formRewriteMap[key]]);
|
|
647
|
+
formData[key] = data[formRewriteMap[key]];
|
|
648
|
+
});
|
|
649
|
+
|
|
650
|
+
this.$forceUpdate();
|
|
651
|
+
/*
|
|
652
|
+
this.searchEvent();*/
|
|
653
|
+
},
|
|
654
|
+
// 异步树叶子节点懒加载逻辑
|
|
655
|
+
loadNode(node, resolve) {
|
|
656
|
+
let treeOption = this.treeOption;
|
|
657
|
+
let id = node && node.data && node.data.id ? node.data.id || "" : "";
|
|
658
|
+
let param = (treeOption.treeNodeParam
|
|
659
|
+
? treeOption.treeNodeParam(node?.data || {})
|
|
660
|
+
: null) || {
|
|
661
|
+
parent: id,
|
|
662
|
+
enabled: true,
|
|
663
|
+
};
|
|
664
|
+
let url = !id ? treeOption.url1 : treeOption.url2;
|
|
665
|
+
this.$http({
|
|
666
|
+
url: url,
|
|
667
|
+
method: "post",
|
|
668
|
+
data: param,
|
|
669
|
+
success: (res) => {
|
|
670
|
+
res.objx.forEach((value) => {
|
|
671
|
+
treeOption.preHadnleData(value);
|
|
672
|
+
});
|
|
673
|
+
resolve(res.objx);
|
|
674
|
+
},
|
|
675
|
+
});
|
|
676
|
+
},
|
|
677
|
+
},
|
|
678
|
+
};
|
|
679
|
+
</script>
|
|
680
|
+
|
|
681
|
+
<style lang="scss" scoped>
|
|
682
|
+
div.toolbar-container {
|
|
683
|
+
//min-width: 728px; /* 解决工具按钮栏换行的问题 */
|
|
684
|
+
/* 上一行css有问题,当窗口宽度不足时会把按钮挤出到右边的属性设置区,弃之! */
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.left-toolbar {
|
|
688
|
+
float: left;
|
|
689
|
+
font-size: 16px;
|
|
690
|
+
|
|
691
|
+
/* 按钮组不是 .el-button,吃不到 element 的 .el-button+.el-button 间距,得自己补 */
|
|
692
|
+
.el-button-group {
|
|
693
|
+
margin-left: 10px;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.right-toolbar {
|
|
698
|
+
float: right;
|
|
699
|
+
//width: 420px;
|
|
700
|
+
text-align: right;
|
|
701
|
+
overflow: hidden;
|
|
702
|
+
|
|
703
|
+
.right-toolbar-con {
|
|
704
|
+
text-align: right;
|
|
705
|
+
|
|
706
|
+
.el-button {
|
|
707
|
+
margin-left: 15px;
|
|
708
|
+
margin-right: 15px;
|
|
709
|
+
font-size: 14px;
|
|
710
|
+
vertical-align: middle;
|
|
711
|
+
|
|
712
|
+
&.el-button--primary {
|
|
713
|
+
padding: 7px 14px;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
.el-button i {
|
|
720
|
+
margin-right: 3px;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.small-padding-dialog {
|
|
724
|
+
::v-deep .el-dialog__header {
|
|
725
|
+
//padding-top: 3px;
|
|
726
|
+
//padding-bottom: 3px;
|
|
727
|
+
background: #f1f2f3;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
::v-deep .el-dialog__body {
|
|
731
|
+
//padding: 12px 15px 12px 15px;
|
|
732
|
+
padding: 0;
|
|
733
|
+
|
|
734
|
+
.el-alert.alert-padding {
|
|
735
|
+
padding: 0 10px;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
::v-deep .ace-container {
|
|
740
|
+
border: 1px solid #dcdfe6;
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.dialog-title-light-bg {
|
|
745
|
+
::v-deep .el-dialog__header {
|
|
746
|
+
background: #f1f2f3;
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.no-box-shadow {
|
|
751
|
+
box-shadow: none;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.no-padding.el-tabs--border-card {
|
|
755
|
+
::v-deep .el-tabs__content {
|
|
756
|
+
padding: 0;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.form-render-wrapper {
|
|
761
|
+
//height: calc(100vh - 142px);
|
|
762
|
+
//all: revert !important; /* 防止表单继承el-dialog等外部样式,未生效,原因不明?? */
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.form-render-wrapper.h5-layout {
|
|
766
|
+
margin: 0 auto;
|
|
767
|
+
width: 420px;
|
|
768
|
+
border-radius: 15px;
|
|
769
|
+
//border-width: 10px;
|
|
770
|
+
box-shadow: 0 0 1px 10px #495060;
|
|
771
|
+
height: calc(100vh - 142px);
|
|
772
|
+
overflow-y: auto;
|
|
773
|
+
overflow-x: hidden;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
.form-render-wrapper.pad-layout {
|
|
777
|
+
margin: 0 auto;
|
|
778
|
+
width: 960px;
|
|
779
|
+
border-radius: 15px;
|
|
780
|
+
//border-width: 10px;
|
|
781
|
+
box-shadow: 0 0 1px 10px #495060;
|
|
782
|
+
height: calc(100vh - 125px);
|
|
783
|
+
overflow-y: auto;
|
|
784
|
+
overflow-x: hidden;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
.node-tree-drawer ::v-deep {
|
|
788
|
+
.el-drawer {
|
|
789
|
+
padding: 10px;
|
|
790
|
+
overflow: auto;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.el-drawer__header {
|
|
794
|
+
margin-bottom: 12px;
|
|
795
|
+
padding: 5px 5px 0;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.el-drawer__body {
|
|
799
|
+
padding-left: 5px;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
/*.node-tree-scroll-bar {*/
|
|
804
|
+
/* height: 100%;*/
|
|
805
|
+
/* overflow: auto;*/
|
|
806
|
+
/*}*/
|
|
807
|
+
|
|
808
|
+
.node-tree ::v-deep {
|
|
809
|
+
.el-tree > .el-tree-node:after {
|
|
810
|
+
border-top: none;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.el-tree-node {
|
|
814
|
+
position: relative;
|
|
815
|
+
padding-left: 12px;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.el-tree-node__content {
|
|
819
|
+
padding-left: 0 !important;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.el-tree-node__expand-icon.is-leaf {
|
|
823
|
+
display: none;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
.el-tree-node__children {
|
|
827
|
+
padding-left: 12px;
|
|
828
|
+
overflow: visible !important; /* 加入此行让el-tree宽度自动撑开,超出宽度el-draw自动出现水平滚动条! */
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.el-tree-node :last-child:before {
|
|
832
|
+
height: 38px;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
.el-tree > .el-tree-node:before {
|
|
836
|
+
border-left: none;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.el-tree > .el-tree-node:after {
|
|
840
|
+
border-top: none;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
.el-tree-node:before {
|
|
844
|
+
content: "";
|
|
845
|
+
left: -4px;
|
|
846
|
+
position: absolute;
|
|
847
|
+
right: auto;
|
|
848
|
+
border-width: 1px;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
.el-tree-node:after {
|
|
852
|
+
content: "";
|
|
853
|
+
left: -4px;
|
|
854
|
+
position: absolute;
|
|
855
|
+
right: auto;
|
|
856
|
+
border-width: 1px;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.el-tree-node:before {
|
|
860
|
+
border-left: 1px dashed #4386c6;
|
|
861
|
+
bottom: 0px;
|
|
862
|
+
height: 100%;
|
|
863
|
+
top: -10px;
|
|
864
|
+
width: 1px;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
.el-tree-node:after {
|
|
868
|
+
border-top: 1px dashed #4386c6;
|
|
869
|
+
height: 20px;
|
|
870
|
+
top: 12px;
|
|
871
|
+
width: 16px;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.el-tree-node.is-current > .el-tree-node__content {
|
|
875
|
+
background: #c2d6ea !important;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.el-tree-node__expand-icon {
|
|
879
|
+
margin-left: -3px;
|
|
880
|
+
padding: 6px 6px 6px 0px;
|
|
881
|
+
font-size: 16px;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
</style>
|