cloud-web-corejs-haier 1.0.43 → 1.0.45
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 +8 -6
- package/src/api/user.js +54 -46
- package/src/components/baseAlert/index.vue +57 -53
- package/src/components/baseInputExport/index.vue +3 -3
- package/src/components/baseTabs/mixins.js +12 -1
- package/src/components/errorMsg/index.vue +78 -78
- package/src/components/excelExport/button.vue +54 -45
- package/src/components/excelExport/exportFieldDialog.vue +3 -3
- package/src/components/excelExport/index.js +1 -43
- package/src/components/excelExport/index.vue +62 -34
- package/src/components/excelExport/mixins.js +74 -87
- package/src/components/excelImport/index.js +1 -62
- package/src/components/excelImport/mixins.js +1 -774
- package/src/components/fileLibrary/index.vue +113 -33
- package/src/components/fileLibrary/propertiesDialog.vue +6 -0
- package/src/components/hiprint/view/design/index.vue +139 -47
- package/src/components/hiprint/view/design/preview.vue +75 -52
- package/src/components/hiprint/view/json-view.vue +31 -31
- package/src/components/luckysheet/dialog.vue +159 -0
- package/src/components/luckysheet/export.js +595 -0
- package/src/components/luckysheet/fileUtils.js +147 -0
- package/src/components/luckysheet/index.js +69 -0
- package/src/components/luckysheet/templateJson.js +12078 -0
- package/src/components/luckysheet/view.vue +210 -0
- package/src/components/onlineTalk/index.vue +328 -6
- package/src/components/onlineTalk/talkUserDialog.vue +280 -0
- package/src/components/wf/addTaskUserdialog.vue +5 -5
- package/src/components/wf/content.vue +1244 -1169
- package/src/components/wf/content2.vue +604 -604
- package/src/components/wf/mixins/setCandidateDialog.js +228 -2
- package/src/components/wf/mixins/setCandidateDialog2.js +116 -101
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +67 -1
- package/src/components/wf/setCandidateDialog.vue +5 -7
- package/src/components/wf/setCandidateDialog2.vue +14 -10
- package/src/components/wf/wf.js +2325 -2209
- package/src/components/wf/wfTaskUserRangeDialog.vue +1 -1
- package/src/components/wf/wfUtil.js +129 -91
- package/src/components/xform/form-designer/designer.js +1994 -9
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +10 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-pane-widget.vue +3 -2
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1756 -2
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +10 -1
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +170 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1630 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +153 -40
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +65 -46
- package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +231 -0
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +7 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/edit-tree-button-group-config-dialog.vue +281 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +659 -221
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +133 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +48 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +18 -17
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +26 -26
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +67 -13
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +2 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/showViewButton-editor.vue +29 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +8 -6
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +20 -17
- package/src/components/xform/form-render/container-item/detail-item.vue +72 -48
- package/src/components/xform/form-render/container-item/sub-form-item.vue +10 -2
- package/src/components/xform/form-render/container-item/table2-item.vue +40 -10
- package/src/components/xform/form-render/indexMixin.js +3705 -1
- package/src/components/xform/icon-picker/icons.json +284 -0
- package/src/components/xform/icon-picker/index.vue +145 -0
- package/src/components/xform/lang/zh-CN.js +2 -1
- package/src/components/xform/mixins/defaultHandle.js +366 -2
- package/src/components/xform/utils/formula-util.js +3 -0
- package/src/components/xform/utils/sfc-generator.js +2 -2
- package/src/components/xform/utils/smart-vue-i18n/index.js +2 -1
- package/src/components/xform/utils/tableColumnHelper.js +54 -10
- package/src/components/xform/utils/util.js +1547 -1
- package/src/index.js +190 -211
- package/src/lang/locale/en/login.js +26 -19
- package/src/lang/locale/zh/login.js +25 -19
- package/src/layout/components/Sidebar/default.vue +252 -71
- package/src/layout/components/Sidebar/index.vue +6 -1
- package/src/layout/components/TagsView/index.vue +6 -0
- package/src/layout/components/langTool.vue +32 -29
- package/src/layout/defaultLayout.vue +16 -8
- package/src/layout/index.vue +5 -3
- package/src/permission.js +135 -1
- package/src/router/index.js +1 -4
- package/src/store/config/index.js +667 -1
- package/src/store/getters.js +2 -1
- package/src/store/modules/permission.js +332 -1
- package/src/store/modules/settings.js +26 -1
- package/src/store/modules/tagsView.js +190 -1
- package/src/store/modules/user.js +358 -1
- package/src/utils/aes.js +15 -1
- package/src/utils/auth.js +27 -1
- package/src/utils/componentDialog.js +217 -0
- package/src/utils/request.js +368 -1
- package/src/utils/vab.js +1256 -7
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
- package/src/views/bd/setting/bd_company_env/edit.vue +193 -193
- package/src/views/bd/setting/formVersion/button.vue +55 -0
- package/src/views/bd/setting/formVersion/compareBasicSection.vue +125 -0
- package/src/views/bd/setting/formVersion/compareCodeSection.vue +539 -0
- package/src/views/bd/setting/formVersion/compareContMixin.scss +65 -0
- package/src/views/bd/setting/formVersion/compareContent.vue +63 -0
- package/src/views/bd/setting/formVersion/compareDialog.vue +88 -0
- package/src/views/bd/setting/formVersion/compareMixin.js +93 -0
- package/src/views/bd/setting/formVersion/fieldCompare.vue +54 -0
- package/src/views/bd/setting/formVersion/formScriptCompareView.vue +94 -0
- package/src/views/bd/setting/formVersion/formTemplateCompareView.vue +74 -0
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +491 -0
- package/src/views/bd/setting/formVersion/link.vue +58 -0
- package/src/views/bd/setting/formVersion/preformDialog.vue +87 -0
- package/src/views/bd/setting/formVersion/reverButton.vue +82 -0
- package/src/views/bd/setting/formVersion/tableDetailDiff.js +99 -0
- package/src/views/bd/setting/formVersion/tableModelCompareView.vue +514 -0
- package/src/views/bd/setting/formVersion/textDiff.js +102 -0
- package/src/views/bd/setting/form_import_log/edit.vue +6 -3
- package/src/views/bd/setting/form_import_log/list.vue +5 -0
- package/src/views/bd/setting/form_script/edit.vue +196 -83
- package/src/views/bd/setting/form_script/edit1.vue +410 -220
- package/src/views/bd/setting/form_script/form_list.vue +19 -0
- package/src/views/bd/setting/form_script/list.vue +95 -21
- package/src/views/bd/setting/form_script/list1.vue +24 -0
- package/src/views/bd/setting/form_script/mixins/dialog.js +2 -2
- package/src/views/bd/setting/form_script/mixins/edit.js +265 -207
- package/src/views/bd/setting/form_script/mixins/edit1.js +259 -201
- package/src/views/bd/setting/form_script/mixins/form_list.js +322 -296
- package/src/views/bd/setting/form_script/mixins/list.js +163 -95
- package/src/views/bd/setting/form_script/mixins/list1.js +244 -155
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +1 -1
- package/src/views/bd/setting/form_template/edit.vue +355 -205
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -0
- package/src/views/bd/setting/form_template/list.vue +49 -74
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +3 -3
- package/src/views/bd/setting/form_template/mixins/edit.js +51 -8
- package/src/views/bd/setting/form_template/mixins/itemList.js +1 -1
- package/src/views/bd/setting/form_template/mixins/list.js +114 -82
- package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -7
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -254
- package/src/views/bd/setting/form_template/wf_list.vue +161 -127
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -320
- package/src/views/bd/setting/request_setting/edit.vue +300 -300
- package/src/views/bd/setting/request_setting/list.vue +15 -25
- package/src/views/bd/setting/table_model/edit.vue +702 -498
- package/src/views/bd/setting/table_model/list.vue +28 -0
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit copy.js +903 -0
- package/src/views/bd/setting/table_model/mixins/edit.js +228 -121
- package/src/views/bd/setting/table_model/mixins/list.js +55 -20
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +50 -46
- package/src/views/bd/setting/utils/index.js +15 -0
- package/src/views/user/api_request/list.vue +203 -203
- package/src/views/user/bill_setting/list.vue +345 -345
- package/src/views/user/code_rules/list.vue +204 -204
- package/src/views/user/common_attribute/list.vue +378 -378
- package/src/views/user/common_script/list.vue +341 -341
- package/src/views/user/company_info/dialog.vue +80 -49
- package/src/views/user/country/list.vue +197 -197
- package/src/views/user/extend_datasource/dialog.vue +0 -3
- package/src/views/user/extend_datasource/edit.vue +1 -2
- package/src/views/user/extend_datasource/list.vue +221 -224
- package/src/views/user/fieldTranslation/editDialog.vue +1 -1
- package/src/views/user/fieldTranslation/list.vue +473 -473
- package/src/views/user/field_values_invisible/list.vue +207 -207
- package/src/views/user/file_type/list.vue +271 -271
- package/src/views/user/file_view_area/list.vue +331 -331
- package/src/views/user/form/vform/designer.vue +303 -287
- package/src/views/user/form/vform/formFieldMapping.js +2 -3
- package/src/views/user/form/view/edit.vue +19 -1
- package/src/views/user/form/view/list.vue +59 -17
- package/src/views/user/groups/list.vue +158 -158
- package/src/views/user/home/default.vue +274 -182
- package/src/views/user/home/default2.vue +1148 -0
- package/src/views/user/home/index.vue +2 -1
- package/src/views/user/lang_tag/list.vue +170 -170
- package/src/views/user/language_setting/list.vue +208 -208
- package/src/views/user/ledger_library/list.vue +12 -10
- package/src/views/user/login/default.vue +1 -1
- package/src/views/user/login/indexMixin.js +204 -169
- package/src/views/user/menu/list.vue +575 -575
- package/src/views/user/notify_message/dialog.vue +7 -1
- package/src/views/user/notify_template/list.vue +192 -192
- package/src/views/user/notify_template/list2.vue +190 -190
- package/src/views/user/position/list.vue +188 -188
- package/src/views/user/project_tag/list.vue +175 -175
- package/src/views/user/push_setting/list.vue +236 -236
- package/src/views/user/request_setting/list.vue +248 -248
- package/src/views/user/role/list.vue +182 -182
- package/src/views/user/system_notice/infoDialog.vue +61 -2
- package/src/views/user/system_notice/list.vue +203 -203
- package/src/views/user/system_parameter/list.vue +141 -141
- package/src/views/user/user/edit.vue +45 -0
- package/src/views/user/user/form_list.vue +245 -245
- package/src/views/user/user/info.vue +253 -140
- package/src/views/user/user_log_classify/list.vue +197 -197
- package/src/views/user/wf/iframe/index.vue +46 -46
- package/src/views/user/wf/wfReport/index.vue +1 -1
- package/src/views/user/wf/wf_auto_submit_data/list.vue +659 -659
- package/src/views/user/wf/wf_diy_attribute/edit.vue +1 -1
- package/src/views/user/wf/wf_manage/list.vue +795 -795
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +106 -106
- package/src/views/user/wf/wf_obj_config/dialog.vue +2 -2
- package/src/views/user/wf/wf_obj_config/edit.vue +1 -1
- package/src/views/user/wf/wf_obj_config/edit_form.vue +2 -2
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +1 -1
- package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +1 -1
- package/src/views/user/wf/wf_obj_config/itemOperateDialog.vue +4 -4
- package/src/views/user/wf/wf_obj_config/list.vue +28 -28
- package/src/views/user/wf/wf_obj_config/list_form.vue +5 -5
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -292
- package/src/views/user/wf/wf_param/edit.vue +1 -1
- package/src/views/user/wf/wf_transfer_setting/edit.vue +1 -1
- package/src/views/user/wf/wf_transfer_setting/list.vue +321 -319
- package/src/views/user/wf/wf_work_calendar/components/calendar.vue +369 -367
- package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +401 -399
- package/src/views/user/wf/wf_work_calendar/configDialog.vue +6 -6
- package/src/views/user/wf/wf_work_calendar/date.js +84 -83
- package/src/views/user/wf/wf_work_calendar/list.vue +6 -6
- package/src/views/user/workbench_menu/list.vue +555 -0
|
@@ -1,220 +1,410 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="detail-wrap">
|
|
3
|
-
<el-form ref="editForm" :model="formScript">
|
|
4
|
-
<div class="d-header clearfix">
|
|
5
|
-
<div class="fl">
|
|
6
|
-
<i class="el-icon-info"/>
|
|
7
|
-
{{ dataId ? $t1(
|
|
8
|
-
</div>
|
|
9
|
-
<div class="fr">
|
|
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
|
-
|
|
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
|
-
|
|
213
|
-
<
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="detail-wrap">
|
|
3
|
+
<el-form ref="editForm" :model="formScript">
|
|
4
|
+
<div class="d-header clearfix">
|
|
5
|
+
<div class="fl">
|
|
6
|
+
<i class="el-icon-info" />
|
|
7
|
+
{{ dataId ? $t1("查看表单脚本") : $t1("新增表单脚本") }}
|
|
8
|
+
</div>
|
|
9
|
+
<div class="fr">
|
|
10
|
+
<formVersionButton
|
|
11
|
+
v-if="!hData && formScript.id && !readonly"
|
|
12
|
+
objType="FormScript"
|
|
13
|
+
:objCode="formScript.scriptCode"
|
|
14
|
+
:relationCode="formScript.formCode"
|
|
15
|
+
@reverCallback="$baseReload()"
|
|
16
|
+
></formVersionButton>
|
|
17
|
+
<reverButton
|
|
18
|
+
v-if="!!hData"
|
|
19
|
+
objType="FormScript"
|
|
20
|
+
:objCode="formScript.scriptCode"
|
|
21
|
+
:hData="hData"
|
|
22
|
+
@reverCallback="$emit('reverCallback')"
|
|
23
|
+
></reverButton>
|
|
24
|
+
<el-button
|
|
25
|
+
type="primary"
|
|
26
|
+
plain
|
|
27
|
+
class="button-sty"
|
|
28
|
+
icon="el-icon-set-up"
|
|
29
|
+
@click="openOtherAuthDialog"
|
|
30
|
+
v-if="
|
|
31
|
+
isDev &&
|
|
32
|
+
!!dataId &&
|
|
33
|
+
menuKindAuth.editAuth === 1 &&
|
|
34
|
+
!readonly &&
|
|
35
|
+
!otherFlag &&
|
|
36
|
+
!formTemplate
|
|
37
|
+
"
|
|
38
|
+
>
|
|
39
|
+
{{ $t1("分派") }}
|
|
40
|
+
</el-button>
|
|
41
|
+
<el-button
|
|
42
|
+
type="primary"
|
|
43
|
+
plain
|
|
44
|
+
class="button-sty"
|
|
45
|
+
@click="$baseReload()"
|
|
46
|
+
icon="el-icon-refresh-right"
|
|
47
|
+
>
|
|
48
|
+
{{ $t1("重置") }}
|
|
49
|
+
</el-button>
|
|
50
|
+
<el-button
|
|
51
|
+
type="primary"
|
|
52
|
+
class="button-sty"
|
|
53
|
+
icon="el-icon-check"
|
|
54
|
+
@click="saveData"
|
|
55
|
+
v-if="isDev && menuKindAuth.editAuth === 1 && !readonly"
|
|
56
|
+
>{{ $t1("保存") }}
|
|
57
|
+
</el-button>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<baseTabs>
|
|
61
|
+
<baseTabPane :label="$t1('基本信息')">
|
|
62
|
+
<template #default>
|
|
63
|
+
<table class="table-detail">
|
|
64
|
+
<tbody>
|
|
65
|
+
<tr>
|
|
66
|
+
<th>
|
|
67
|
+
<em class="f-red">*</em>
|
|
68
|
+
{{ $t1("脚本名称") }}
|
|
69
|
+
</th>
|
|
70
|
+
<td>
|
|
71
|
+
<el-form-item
|
|
72
|
+
prop="scriptName"
|
|
73
|
+
:rules="[{ required: true, trigger: 'blur' }]"
|
|
74
|
+
>
|
|
75
|
+
<fieldCompare
|
|
76
|
+
:isCompare="isCompare"
|
|
77
|
+
:oldVal="oldFormScript.scriptName"
|
|
78
|
+
:newVal="formScript.scriptName"
|
|
79
|
+
>
|
|
80
|
+
<el-input
|
|
81
|
+
type="text"
|
|
82
|
+
autocomplete="off"
|
|
83
|
+
v-model="formScript.scriptName"
|
|
84
|
+
clearable
|
|
85
|
+
/>
|
|
86
|
+
</fieldCompare>
|
|
87
|
+
</el-form-item>
|
|
88
|
+
</td>
|
|
89
|
+
<th>{{ $t1("脚本编码") }}</th>
|
|
90
|
+
<td colspan="3">
|
|
91
|
+
<el-form-item
|
|
92
|
+
prop="scriptCode"
|
|
93
|
+
:rules="[{ required: true, trigger: 'blur' }]"
|
|
94
|
+
>
|
|
95
|
+
<fieldCompare
|
|
96
|
+
:isCompare="isCompare"
|
|
97
|
+
:oldVal="oldFormScript.scriptCode"
|
|
98
|
+
:newVal="formScript.scriptCode"
|
|
99
|
+
>
|
|
100
|
+
<el-input
|
|
101
|
+
type="text"
|
|
102
|
+
autocomplete="off"
|
|
103
|
+
v-model="formScript.scriptCode"
|
|
104
|
+
clearable
|
|
105
|
+
/>
|
|
106
|
+
</fieldCompare>
|
|
107
|
+
</el-form-item>
|
|
108
|
+
</td>
|
|
109
|
+
</tr>
|
|
110
|
+
<tr>
|
|
111
|
+
<th>
|
|
112
|
+
<em class="f-red">*</em>
|
|
113
|
+
{{ $t1("表单分类") }}
|
|
114
|
+
</th>
|
|
115
|
+
<td colspan="5">
|
|
116
|
+
<el-form-item
|
|
117
|
+
v-if="
|
|
118
|
+
formScript.formCode === 'intf' ||
|
|
119
|
+
formScript.formCode === 'busgeneral'
|
|
120
|
+
"
|
|
121
|
+
prop="menuKindName"
|
|
122
|
+
:rules="[{ required: true, trigger: ['blur', 'change'] }]"
|
|
123
|
+
>
|
|
124
|
+
<fieldCompare
|
|
125
|
+
:isCompare="isCompare"
|
|
126
|
+
:oldVal="oldFormScript.menuKindName"
|
|
127
|
+
:newVal="formScript.menuKindName"
|
|
128
|
+
>
|
|
129
|
+
<el-input
|
|
130
|
+
class="search-input"
|
|
131
|
+
max="200"
|
|
132
|
+
v-model="formScript.menuKindName"
|
|
133
|
+
@clear="
|
|
134
|
+
formScript.menuKindCode = null;
|
|
135
|
+
$forceUpdate();
|
|
136
|
+
"
|
|
137
|
+
v-el-readonly
|
|
138
|
+
clearable
|
|
139
|
+
:disabled="otherFlag"
|
|
140
|
+
>
|
|
141
|
+
<i
|
|
142
|
+
slot="suffix"
|
|
143
|
+
class="el-input__icon el-icon-search"
|
|
144
|
+
@click="showMenuKindDialog = true"
|
|
145
|
+
></i>
|
|
146
|
+
</el-input>
|
|
147
|
+
</fieldCompare>
|
|
148
|
+
</el-form-item>
|
|
149
|
+
<template v-else>
|
|
150
|
+
<el-form-item>
|
|
151
|
+
<fieldCompare
|
|
152
|
+
:isCompare="isCompare"
|
|
153
|
+
:oldVal="oldFormScript.menuKindName"
|
|
154
|
+
:newVal="formScript.menuKindName"
|
|
155
|
+
>
|
|
156
|
+
{{ formScript.menuKindName }}
|
|
157
|
+
</fieldCompare>
|
|
158
|
+
</el-form-item>
|
|
159
|
+
</template>
|
|
160
|
+
</td>
|
|
161
|
+
</tr>
|
|
162
|
+
|
|
163
|
+
<tr>
|
|
164
|
+
<th>{{ $t1("表单模板编码") }}</th>
|
|
165
|
+
<td colspan="3">
|
|
166
|
+
<template v-if="!dataId && !formTemplate">
|
|
167
|
+
<el-radio-group v-model="formScript.formCode">
|
|
168
|
+
<el-radio label="intf">intf(接口)</el-radio>
|
|
169
|
+
<el-radio label="busgeneral">busgeneral(业务通用)</el-radio>
|
|
170
|
+
</el-radio-group>
|
|
171
|
+
</template>
|
|
172
|
+
<template v-else>
|
|
173
|
+
<span v-if="formScript.formCode === 'intf'">intf(接口)</span>
|
|
174
|
+
<span v-else-if="formScript.formCode === 'busgeneral'"
|
|
175
|
+
>busgeneral(业务通用)</span
|
|
176
|
+
>
|
|
177
|
+
<span v-else>{{ formScript.formCode }}</span>
|
|
178
|
+
</template>
|
|
179
|
+
</td>
|
|
180
|
+
<th>{{ $t1("Url路径") }}</th>
|
|
181
|
+
<td colspan="3">
|
|
182
|
+
<el-form-item>
|
|
183
|
+
<fieldCompare
|
|
184
|
+
:isCompare="isCompare"
|
|
185
|
+
:oldVal="oldFormScript.formCode + '/' + oldFormScript.scriptCode"
|
|
186
|
+
:newVal="formScript.formCode + '/' + formScript.scriptCode"
|
|
187
|
+
>
|
|
188
|
+
{{ formScript.formCode }}/{{ formScript.scriptCode }}
|
|
189
|
+
</fieldCompare>
|
|
190
|
+
</el-form-item>
|
|
191
|
+
</td>
|
|
192
|
+
</tr>
|
|
193
|
+
<tr>
|
|
194
|
+
<th>{{ $t1("是否启用") }}</th>
|
|
195
|
+
<td>
|
|
196
|
+
<el-form-item
|
|
197
|
+
prop="enabled"
|
|
198
|
+
:rules="[{ required: false, trigger: 'blur' }]"
|
|
199
|
+
>
|
|
200
|
+
<fieldCompare
|
|
201
|
+
:isCompare="isCompare"
|
|
202
|
+
:oldVal="oldFormScript.enabled"
|
|
203
|
+
:newVal="formScript.enabled"
|
|
204
|
+
>
|
|
205
|
+
<el-radio-group v-model="formScript.enabled">
|
|
206
|
+
<el-radio :label="true">{{ $t1("启用") }}</el-radio>
|
|
207
|
+
<el-radio :label="false">{{ $t1("禁用") }}</el-radio>
|
|
208
|
+
</el-radio-group>
|
|
209
|
+
</fieldCompare>
|
|
210
|
+
</el-form-item>
|
|
211
|
+
</td>
|
|
212
|
+
<th>{{ $t1("开启事务") }}</th>
|
|
213
|
+
<td>
|
|
214
|
+
<el-form-item>
|
|
215
|
+
<fieldCompare
|
|
216
|
+
:isCompare="isCompare"
|
|
217
|
+
:oldVal="oldFormScript.transactions"
|
|
218
|
+
:newVal="formScript.transactions"
|
|
219
|
+
>
|
|
220
|
+
<el-radio-group v-model="formScript.transactions">
|
|
221
|
+
<el-radio :label="1">{{ $t1("是") }}</el-radio>
|
|
222
|
+
<el-radio :label="0">{{ $t1("否") }}</el-radio>
|
|
223
|
+
</el-radio-group>
|
|
224
|
+
</fieldCompare>
|
|
225
|
+
</el-form-item>
|
|
226
|
+
</td>
|
|
227
|
+
<th>{{ $t1("服务名") }}</th>
|
|
228
|
+
<td colspan="3">
|
|
229
|
+
<el-form-item>
|
|
230
|
+
<fieldCompare
|
|
231
|
+
:isCompare="isCompare"
|
|
232
|
+
:oldVal="oldFormScript.serviceName"
|
|
233
|
+
:newVal="formScript.serviceName"
|
|
234
|
+
>
|
|
235
|
+
{{ formScript.serviceName }}
|
|
236
|
+
</fieldCompare>
|
|
237
|
+
</el-form-item>
|
|
238
|
+
</td>
|
|
239
|
+
</tr>
|
|
240
|
+
<tr>
|
|
241
|
+
<th>{{ $t1("自定义URL") }}</th>
|
|
242
|
+
<td colspan="7">
|
|
243
|
+
<el-form-item
|
|
244
|
+
prop="uri"
|
|
245
|
+
:rules="[{ required: false, trigger: 'blur' }]"
|
|
246
|
+
>
|
|
247
|
+
<fieldCompare
|
|
248
|
+
:isCompare="isCompare"
|
|
249
|
+
:oldVal="oldFormScript.uri"
|
|
250
|
+
:newVal="formScript.uri"
|
|
251
|
+
>
|
|
252
|
+
<el-input
|
|
253
|
+
type="text"
|
|
254
|
+
autocomplete="off"
|
|
255
|
+
v-model="formScript.uri"
|
|
256
|
+
clearable
|
|
257
|
+
/>
|
|
258
|
+
</fieldCompare>
|
|
259
|
+
</el-form-item>
|
|
260
|
+
</td>
|
|
261
|
+
</tr>
|
|
262
|
+
<tr>
|
|
263
|
+
<th class="no"></th>
|
|
264
|
+
<td colspan="7">
|
|
265
|
+
<span class="fl tips">
|
|
266
|
+
<div>{{ $t1("注") }}:</div>
|
|
267
|
+
<div style="padding-left: 20px">
|
|
268
|
+
<p>
|
|
269
|
+
{{
|
|
270
|
+
$t1(
|
|
271
|
+
'1.不配置"自定义URL",默认的请求地址为:http://域名/服务前缀/bd_api/表单编码/脚本编码。'
|
|
272
|
+
)
|
|
273
|
+
}}
|
|
274
|
+
</p>
|
|
275
|
+
<p>
|
|
276
|
+
{{ $t1('2.需要特殊配置URL,"自定义URL"必须以/a_api开头。') }}
|
|
277
|
+
</p>
|
|
278
|
+
<p>
|
|
279
|
+
{{ $t1('3.第三方接口调用(DW),"自定义URL"必须/d_api开头。') }}
|
|
280
|
+
</p>
|
|
281
|
+
</div>
|
|
282
|
+
</span>
|
|
283
|
+
</td>
|
|
284
|
+
</tr>
|
|
285
|
+
<tr>
|
|
286
|
+
<th>
|
|
287
|
+
{{ $t1("项目标签") }}
|
|
288
|
+
</th>
|
|
289
|
+
<td colspan="7">
|
|
290
|
+
<projectTagView
|
|
291
|
+
v-model="formScript.formScriptTagDTOs"
|
|
292
|
+
></projectTagView>
|
|
293
|
+
</td>
|
|
294
|
+
</tr>
|
|
295
|
+
<tr>
|
|
296
|
+
<th>{{ $t1("脚本说明") }}</th>
|
|
297
|
+
<td colspan="7">
|
|
298
|
+
<el-form-item
|
|
299
|
+
prop="scriptRemark"
|
|
300
|
+
:rules="[{ required: false, trigger: 'blur' }]"
|
|
301
|
+
>
|
|
302
|
+
<fieldCompare
|
|
303
|
+
:isCompare="isCompare"
|
|
304
|
+
:oldVal="oldFormScript.scriptRemark"
|
|
305
|
+
:newVal="formScript.scriptRemark"
|
|
306
|
+
>
|
|
307
|
+
<el-input
|
|
308
|
+
type="textarea"
|
|
309
|
+
:rows="2"
|
|
310
|
+
:placeholder="$t1('请输入内容')"
|
|
311
|
+
size="small"
|
|
312
|
+
v-model="formScript.scriptRemark"
|
|
313
|
+
clearable
|
|
314
|
+
></el-input>
|
|
315
|
+
</fieldCompare>
|
|
316
|
+
</el-form-item>
|
|
317
|
+
</td>
|
|
318
|
+
</tr>
|
|
319
|
+
<tr>
|
|
320
|
+
<th>
|
|
321
|
+
<em class="f-red">*</em>
|
|
322
|
+
{{ $t1("脚本") }}
|
|
323
|
+
<!-- <scriptDescriptionButton path="static/readme/ApiRequest.txt"></scriptDescriptionButton>-->
|
|
324
|
+
<scriptTestButton :script.sync="formScript.script"></scriptTestButton>
|
|
325
|
+
</th>
|
|
326
|
+
<td colspan="7">
|
|
327
|
+
<el-form-item
|
|
328
|
+
prop="script"
|
|
329
|
+
:rules="[{ required: true, trigger: 'blur' }]"
|
|
330
|
+
>
|
|
331
|
+
<fieldCompare
|
|
332
|
+
:isCompare="isCompare"
|
|
333
|
+
:oldVal="oldFormScript.script"
|
|
334
|
+
:newVal="formScript.script"
|
|
335
|
+
>
|
|
336
|
+
<code-editor
|
|
337
|
+
mode="java"
|
|
338
|
+
:readonly="!1"
|
|
339
|
+
v-model="formScript.script"
|
|
340
|
+
v-if="showCodeEditor"
|
|
341
|
+
></code-editor>
|
|
342
|
+
</fieldCompare>
|
|
343
|
+
</el-form-item>
|
|
344
|
+
</td>
|
|
345
|
+
</tr>
|
|
346
|
+
<tr>
|
|
347
|
+
<th>{{ $t1("版本号") }}</th>
|
|
348
|
+
<td>{{ formScript.version }}</td>
|
|
349
|
+
<th>{{ $t1("唯一标识") }}</th>
|
|
350
|
+
<td colspan="5">{{ formScript.sid }}</td>
|
|
351
|
+
</tr>
|
|
352
|
+
<tr>
|
|
353
|
+
<th>{{ $t1("创建人") }}</th>
|
|
354
|
+
<td>{{ formScript.createBy }}</td>
|
|
355
|
+
<th>{{ $t1("创建时间") }}</th>
|
|
356
|
+
<td>{{ formScript.createDate }}</td>
|
|
357
|
+
<th>{{ $t1("更新人") }}</th>
|
|
358
|
+
<td>{{ formScript.modifyBy }}</td>
|
|
359
|
+
<th>{{ $t1("更新时间") }}</th>
|
|
360
|
+
<td>{{ formScript.modifyDate }}</td>
|
|
361
|
+
</tr>
|
|
362
|
+
</tbody>
|
|
363
|
+
</table>
|
|
364
|
+
</template>
|
|
365
|
+
</baseTabPane>
|
|
366
|
+
<baseTabPane :label="$t1('操作日志')">
|
|
367
|
+
<template #default>
|
|
368
|
+
<formOplogTable :parent-target="_self" ref="oplogTable"></formOplogTable>
|
|
369
|
+
</template>
|
|
370
|
+
</baseTabPane>
|
|
371
|
+
</baseTabs>
|
|
372
|
+
</el-form>
|
|
373
|
+
<MenuKindDialog
|
|
374
|
+
v-if="showMenuKindDialog"
|
|
375
|
+
:visiable.sync="showMenuKindDialog"
|
|
376
|
+
:serviceName="formScript.serviceName"
|
|
377
|
+
@confirm="confirmInsertMenuKind"
|
|
378
|
+
:param="{ taType: 0 }"
|
|
379
|
+
:multi="false"
|
|
380
|
+
/>
|
|
381
|
+
<preformDialog
|
|
382
|
+
v-if="showPreformDialog"
|
|
383
|
+
:visiable.sync="showPreformDialog"
|
|
384
|
+
:formScript="formScript"
|
|
385
|
+
@confirm="confirmPreformDialog"
|
|
386
|
+
></preformDialog>
|
|
387
|
+
<otherAuthDialog
|
|
388
|
+
v-if="showOtherAuthDialog"
|
|
389
|
+
:visiable.sync="showOtherAuthDialog"
|
|
390
|
+
:sid="sid"
|
|
391
|
+
@confirm="confirmOtherAuthDialog"
|
|
392
|
+
></otherAuthDialog>
|
|
393
|
+
</div>
|
|
394
|
+
</template>
|
|
395
|
+
|
|
396
|
+
<script>
|
|
397
|
+
import mixin from "./mixins/edit1";
|
|
398
|
+
import formVersionButton from "@base/views/bd/setting/formVersion/button.vue";
|
|
399
|
+
import reverButton from "@base/views/bd/setting/formVersion/reverButton.vue";
|
|
400
|
+
import fieldCompare from "@base/views/bd/setting/formVersion/fieldCompare.vue";
|
|
401
|
+
export default {
|
|
402
|
+
name: "user_form_scriptEdit",
|
|
403
|
+
mixins: [mixin],
|
|
404
|
+
components: {
|
|
405
|
+
formVersionButton,
|
|
406
|
+
reverButton,
|
|
407
|
+
fieldCompare,
|
|
408
|
+
},
|
|
409
|
+
};
|
|
410
|
+
</script>
|