cloud-web-corejs 1.1.0-dev.74 → 1.1.0-dev.76
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 +1 -1
- package/src/components/Qrcode/fileParse.vue +4 -4
- package/src/components/Tinymce/dynamicLoadScript.js +4 -4
- package/src/components/Tinymce/index.vue +1 -1
- package/src/components/VabUpload/fileLibraryDialog.vue +18 -18
- package/src/components/VabUpload/image-viewer.vue +2 -2
- package/src/components/VabUpload/mixins/fileLibraryDialog.js +12 -12
- package/src/components/VabUpload/mixins.js +1 -3
- package/src/components/VabUpload/privateProfileDialog.vue +18 -18
- package/src/components/VabUpload/privateProfileDialogMixins.js +12 -12
- package/src/components/VabUpload/view.vue +1 -1
- package/src/components/base-textarea/index.vue +2 -4
- package/src/components/baseArea/index.vue +8 -8
- package/src/components/baseAutocomplete/index.vue +1 -1
- package/src/components/bizTab/BizTabListPage.vue +69 -71
- package/src/components/code-editor/async.js +3 -1
- package/src/components/excelExport/mixins.js +1 -1
- package/src/components/extendedProperties/view.vue +4 -5
- package/src/components/fileLibrary/fileObjAuthEdit.vue +1 -1
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +3 -5
- package/src/components/fileLibrary/filterDialog.vue +2 -2
- package/src/components/fileLibrary/index.vue +13 -13
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +2 -2
- package/src/components/fileLibrary/mixins/indexMixins.js +4 -4
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
- package/src/components/fileLibrary/propertiesDialog.vue +1 -1
- package/src/components/fileLibrary/recycleBinDialog.vue +2 -2
- package/src/components/fileLibrary/recycleBinPropertiesDialog.vue +1 -2
- package/src/components/formDialog/index.vue +1 -1
- package/src/components/formDrawer/drawer.vue +1 -1
- package/src/components/hiprint/etypes/default-etyps-provider.js +22 -22
- package/src/components/hiprint/hiprint.config.js +29 -29
- package/src/components/hiprint/view/design/dialog.vue +3 -4
- package/src/components/hiprint/view/design/font-size.js +2 -2
- package/src/components/hiprint/view/design/index.vue +27 -29
- package/src/components/hiprint/view/design/mixins.js +22 -22
- package/src/components/hiprint/view/design/preview.vue +9 -10
- package/src/components/hiprint/view/design/scale.js +1 -1
- package/src/components/hiprint/view/json-view.vue +6 -6
- package/src/components/jsonImport/exportDialog.vue +2 -2
- package/src/components/langImport/index.vue +1 -2
- package/src/components/luckysheet/dialog.vue +1 -1
- package/src/components/luckysheet/loadResources.js +5 -5
- package/src/components/luckysheet/view.vue +3 -3
- package/src/components/mobile/buttonGroup/index.vue +3 -4
- package/src/components/mobile/file/index.vue +7 -7
- package/src/components/mobile/oplogTable/index.vue +4 -4
- package/src/components/mobile/searchDialog/index.vue +3 -4
- package/src/components/mobile/wf/addTaskUserdialog.vue +18 -19
- package/src/components/mobile/wf/content.vue +14 -14
- package/src/components/mobile/wf/deleteTaskUserDialog.vue +5 -5
- package/src/components/mobile/wf/mixins/wfStartDialogMixin.js +1 -1
- package/src/components/mobile/wf/selectUserDialog.vue +13 -13
- package/src/components/mobile/wf/setCandidateDialog.vue +5 -6
- package/src/components/mobile/wf/urgingDialog.vue +4 -4
- package/src/components/mobile/wf/wfStartDialog.vue +2 -2
- package/src/components/obsUpload/mixins.js +7 -9
- package/src/components/onlineTalk/index.vue +21 -24
- package/src/components/onlineTalk/mixins.js +3 -3
- package/src/components/table/vxeFilter/FilterComplex.vue +6 -6
- package/src/components/table/vxeFilter/FilterInput.vue +1 -1
- package/src/components/wf/addTaskUserdialog.vue +1 -1
- package/src/components/wf/content.vue +8 -10
- package/src/components/wf/content2.vue +58 -77
- package/src/components/wf/formIframeDialog.vue +1 -1
- package/src/components/wf/index.vue +1 -1
- package/src/components/wf/wf.js +18 -5
- package/src/components/xform/docs//345/270/270/347/224/250/350/204/232/346/234/254/350/260/203/347/224/250.md +209 -0
- package/src/components/xform/docs//347/272/247/350/201/224/351/200/211/346/213/251/346/207/222/345/212/240/350/275/275/344/275/277/347/224/250/350/257/264/346/230/216.md +177 -0
- package/src/components/xform/form-designer/designer.js +20 -20
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +74 -76
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/container-widget/detail-temp-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/container-widget/list-h5-widget.vue +6 -6
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog.vue +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +5 -5
- package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/treeMoveDialog.vue +4 -6
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +3 -3
- package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/autocomplete-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +349 -10
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +6 -0
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +176 -176
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +3 -3
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/relativeDateUtil.js +4 -4
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/row-col-select-widget.vue +4 -4
- package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +8 -8
- package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/action-button-config-dialog.vue +21 -21
- package/src/components/xform/form-designer/setting-panel/dataSource-setting.vue +46 -46
- package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +62 -66
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +53 -61
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +50 -0
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +9 -9
- package/src/components/xform/form-designer/setting-panel/property-editor/censusItems-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/condition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +99 -116
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/edit-tree-button-group-config-dialog.vue +17 -17
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +14 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +80 -80
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +1 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-plain/detail-plain-editor.vue +1 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +14 -16
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +39 -56
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-fullWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree-pane/tree-pane-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/descriptionsItems-editor.vue +8 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +11 -12
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClear-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onLazyLoad-editor.vue +34 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-accessUrl/accessUrl-editor.vue +7 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-autocomplete/autocomplete-vabSearchName-editor.vue +22 -22
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/addTableData-event-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindActions.js +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/form-host-event-editor.vue +40 -40
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +24 -24
- package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/cascader-lazy-editor.vue +99 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyName-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyNameEnabled-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-dateLimit-editor.vue +11 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-format-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-format-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +15 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +15 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +25 -25
- package/src/components/xform/form-designer/setting-panel/property-editor/field-gantt/gantt-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +28 -31
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +41 -50
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +4 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +4 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script/script-editor.vue +24 -24
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script-input/script-input-editor.vue +7 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +24 -24
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +19 -21
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +13 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-timeLimit-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchField-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabsearchConfigDialog.vue +9 -9
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +5 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +5 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +9 -9
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/iconClass-editor.vue +8 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +5 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/listItems-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +25 -25
- package/src/components/xform/form-designer/setting-panel/property-editor/relative-default-block.vue +14 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +5 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/showText-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +11 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/urlValueEnabled-editor.vue +2 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/utcTransformEnabled-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +23 -23
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +9 -9
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +3 -0
- package/src/components/xform/form-designer/setting-panel/wfObjConfigDialog.vue +1 -1
- package/src/components/xform/form-designer/toolbar-panel/index.vue +3 -4
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +7 -0
- package/src/components/xform/form-render/container-item/data-table-item.vue +10 -10
- package/src/components/xform/form-render/container-item/data-table-mixin.js +34 -34
- package/src/components/xform/form-render/container-item/detail-item.vue +2 -2
- package/src/components/xform/form-render/container-item/detail-temp-item.vue +1 -1
- package/src/components/xform/form-render/container-item/list-h5-item.vue +13 -13
- package/src/components/xform/form-render/fieldControlEngine.js +17 -17
- package/src/components/xform/form-render/fieldControlMixin.js +14 -14
- package/src/components/xform/form-render/index.vue +2 -2
- package/src/components/xform/form-render/indexMixin.js +21 -21
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/components/xform/utils/dynamicSchemaUtil.js +1 -1
- package/src/components/xform/utils/formHttp.js +1 -1
- package/src/components/xform/utils/treeTableUtil.js +44 -44
- package/src/layout/components/createCompany/createCompanyDialog.vue +2 -2
- package/src/layout/components/extractedCode/createDialog.vue +1 -1
- package/src/layout/components/langTool.vue +1 -1
- package/src/utils/vab.js +4 -0
- package/src/views/user/api_request/list.vue +6 -6
- package/src/views/user/area/dialog.vue +1 -1
- package/src/views/user/area/list.vue +1 -1
- package/src/views/user/bill_setting/render.vue +2 -2
- package/src/views/user/error-page/401.vue +9 -9
- package/src/views/user/form/form_ins_list/edit.vue +17 -17
- package/src/views/user/form/form_template/dialog.vue +12 -12
- package/src/views/user/form/form_template/edit.vue +10 -10
- package/src/views/user/form/form_template/itemEdit.vue +18 -18
- package/src/views/user/form/form_template/itemList.vue +13 -13
- package/src/views/user/form/form_template/list.vue +25 -25
- package/src/views/user/form/form_template_field/dialog.vue +3 -3
- package/src/views/user/form/form_type/dialog.vue +5 -5
- package/src/views/user/form/form_type/edit.vue +2 -2
- package/src/views/user/form/form_type/editDialog.vue +3 -3
- package/src/views/user/form/form_type/list.vue +5 -5
- package/src/views/user/form/report_requestaccess/dialog.vue +12 -12
- package/src/views/user/form/report_requestaccess/edit.vue +54 -54
- package/src/views/user/form/report_requestaccess/list.vue +15 -15
- package/src/views/user/form/vform/designer.vue +37 -37
- package/src/views/user/form/vform/render.vue +1 -1
- package/src/views/user/form/view/list.vue +4 -4
- package/src/views/user/home/wjl/content.vue +2 -2
- package/src/views/user/login/default.vue +1 -1
- package/src/views/user/login/indexMixin.js +1 -1
- package/src/views/user/outLink/form_view.vue +1 -1
- package/src/views/user/outLink/index.vue +1 -1
- package/src/views/user/outLink/view.vue +1 -1
- package/src/views/user/push_setting/list.vue +20 -20
- package/src/views/user/request_setting/list.vue +18 -18
- package/src/views/user/sale_org/list.vue +1 -1
- package/src/views/user/sale_org/moveDialog.vue +8 -8
- package/src/views/user/user/edit.vue +3 -3
- package/src/views/user/user/form_list.vue +6 -6
- package/src/views/user/user/info.vue +2 -2
- package/src/views/user/user/infoEdit.vue +1 -1
- package/src/views/user/user/list.vue +1 -1
- package/src/views/user/wf/iframe/index.vue +1 -1
- package/src/views/user/wf/iframe/index2.vue +1 -1
- package/src/views/user/wf/wfReport/index.vue +18 -18
- package/src/views/user/wf/wf_manage/list.vue +1 -1
- package/src/views/user/wf/wf_manage/list2.vue +1 -1
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +93 -93
- package/src/views/user/wf/wf_obj_config/dialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +4 -4
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +3 -3
- package/src/views/user/wf/wf_work_calendar/components/calendar.vue +2 -8
- package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +2 -8
|
@@ -201,11 +201,11 @@ export default {
|
|
|
201
201
|
async initializeFieldControl() {
|
|
202
202
|
if (!this.isFieldControlEnabled()) return;
|
|
203
203
|
const runtime = this.getFieldControlRuntime();
|
|
204
|
-
if (runtime.destroyed) throw new Error(
|
|
204
|
+
if (runtime.destroyed) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('表单已关闭') : '表单已关闭'));
|
|
205
205
|
this.fieldControlStatus = "preparing";
|
|
206
206
|
this.fieldControlError = "";
|
|
207
207
|
await this.waitFieldControlSchemas();
|
|
208
|
-
if (runtime.destroyed || runtime !== this.getFieldControlRuntime()) throw new Error(
|
|
208
|
+
if (runtime.destroyed || runtime !== this.getFieldControlRuntime()) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('表单已更新,请重试') : '表单已更新,请重试'));
|
|
209
209
|
this.prepareFieldControlTargets();
|
|
210
210
|
runtime.mode = resolveRunMode(this.formConfig, !!this.wfParam?.hasWf);
|
|
211
211
|
runtime.dynamicStates = null;
|
|
@@ -282,8 +282,8 @@ export default {
|
|
|
282
282
|
await this.waitFieldControlSchemas();
|
|
283
283
|
let attempts = 0;
|
|
284
284
|
do {
|
|
285
|
-
if (++attempts > 5) throw new Error(
|
|
286
|
-
if (runtime.destroyed || epoch !== runtime.epoch) throw new Error(
|
|
285
|
+
if (++attempts > 5) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('动态规则持续变化或循环赋值,请检查规则后重试') : '动态规则持续变化或循环赋值,请检查规则后重试'));
|
|
286
|
+
if (runtime.destroyed || epoch !== runtime.epoch) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('表单已更新,请重试') : '表单已更新,请重试'));
|
|
287
287
|
const revision = runtime.revision;
|
|
288
288
|
const baseline = this.getFieldControlBaseline();
|
|
289
289
|
const dependency = cloneDeep(this.fieldControlDependency());
|
|
@@ -291,7 +291,7 @@ export default {
|
|
|
291
291
|
let effects = {};
|
|
292
292
|
if (this.formConfig.dynamicFieldSourceType === "script") {
|
|
293
293
|
const result = await this.requestFieldControlStates();
|
|
294
|
-
if (runtime.destroyed || epoch !== runtime.epoch) throw new Error(
|
|
294
|
+
if (runtime.destroyed || epoch !== runtime.epoch) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('表单已更新,请重试') : '表单已更新,请重试'));
|
|
295
295
|
if (revision !== runtime.revision) continue;
|
|
296
296
|
if (runtime.mode === "continuous" && !sameValue(dependency, this.fieldControlDependency())) {
|
|
297
297
|
runtime.revision++;
|
|
@@ -304,7 +304,7 @@ export default {
|
|
|
304
304
|
if (revision !== runtime.revision) continue;
|
|
305
305
|
this.applyFieldControlEffects(effects);
|
|
306
306
|
await this.$nextTick();
|
|
307
|
-
if (runtime.destroyed || epoch !== runtime.epoch) throw new Error(
|
|
307
|
+
if (runtime.destroyed || epoch !== runtime.epoch) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('表单已更新,请重试') : '表单已更新,请重试'));
|
|
308
308
|
// 首次只执行一次;持续模式才追踪赋值引发的依赖变化。
|
|
309
309
|
if (runtime.mode === "continuous" && !sameValue(dependency, this.fieldControlDependency())) {
|
|
310
310
|
runtime.revision++;
|
|
@@ -374,20 +374,20 @@ export default {
|
|
|
374
374
|
const runtime = this.getFieldControlRuntime();
|
|
375
375
|
Object.keys(effects).forEach(key => {
|
|
376
376
|
const entry = runtime.entries.find(item => item.key === key);
|
|
377
|
-
if (!entry || entry.isContainer) throw new Error(
|
|
377
|
+
if (!entry || entry.isContainer) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('容器不支持动态赋值或选项:') : '容器不支持动态赋值或选项:') + key);
|
|
378
378
|
if (effects[key].options !== undefined
|
|
379
379
|
&& !["select", "checkbox", "radio", "cascader", "status"].includes(entry.widget.type)) {
|
|
380
|
-
throw new Error(
|
|
380
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('组件不支持动态选项:') : '组件不支持动态选项:') + key);
|
|
381
381
|
}
|
|
382
382
|
});
|
|
383
383
|
Object.keys(effects).forEach(key => {
|
|
384
384
|
const entry = runtime.entries.find(item => item.key === key);
|
|
385
385
|
const effect = effects[key];
|
|
386
|
-
if (!entry || entry.isContainer) throw new Error(
|
|
386
|
+
if (!entry || entry.isContainer) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('容器不支持动态赋值或选项:') : '容器不支持动态赋值或选项:') + key);
|
|
387
387
|
const ref = this.getWidgetRef(entry.refKey);
|
|
388
388
|
if (effect.options !== undefined) {
|
|
389
389
|
if (!["select", "checkbox", "radio", "cascader", "status"].includes(entry.widget.type)) {
|
|
390
|
-
throw new Error(
|
|
390
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('组件不支持动态选项:') : '组件不支持动态选项:') + key);
|
|
391
391
|
}
|
|
392
392
|
const optionKey = entry.widget.type === "status" ? "statusParam" : "optionItems";
|
|
393
393
|
if (!sameValue(entry.widget.options[optionKey], effect.options)) {
|
|
@@ -443,7 +443,7 @@ export default {
|
|
|
443
443
|
failFieldControl(error, runtime = this.getFieldControlRuntime()) {
|
|
444
444
|
if (runtime.destroyed || runtime !== this.getFieldControlRuntime()) return;
|
|
445
445
|
this.fieldControlStatus = "error";
|
|
446
|
-
this.fieldControlError = error?.message ||
|
|
446
|
+
this.fieldControlError = error?.message || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('字段规则执行失败,请重试') : '字段规则执行失败,请重试');
|
|
447
447
|
// 即使动态重算失败,也要用最后一份可信动态状态重新收口当前流程限制。
|
|
448
448
|
// 交互由 fieldControlInteractionBlocked 独立阻断,不污染定义基线。
|
|
449
449
|
if (runtime.flowWidgets.length) {
|
|
@@ -454,7 +454,7 @@ export default {
|
|
|
454
454
|
if (!this.isFieldControlEnabled()) return;
|
|
455
455
|
const runtime = this.getFieldControlRuntime();
|
|
456
456
|
if (runtime.mountTask) await runtime.mountTask;
|
|
457
|
-
if (runtime.destroyed) throw new Error(
|
|
457
|
+
if (runtime.destroyed) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('表单已关闭') : '表单已关闭'));
|
|
458
458
|
if (this.fieldControlStatus === "error") throw new Error(this.fieldControlError);
|
|
459
459
|
if (!this.fieldControlInitialized) await this.initializeFieldControl();
|
|
460
460
|
if (this.fieldControlStatus === "error") throw new Error(this.fieldControlError);
|
|
@@ -464,7 +464,7 @@ export default {
|
|
|
464
464
|
}
|
|
465
465
|
// 提交不等防抖;旧 task 结束后若仍 dirty 必须再算一轮,不能把过期结果交给校验。
|
|
466
466
|
while (runtime.dirty || runtime.task) {
|
|
467
|
-
if (runtime.destroyed) throw new Error(
|
|
467
|
+
if (runtime.destroyed) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('表单已关闭') : '表单已关闭'));
|
|
468
468
|
if (this.fieldControlStatus === "error") throw new Error(this.fieldControlError);
|
|
469
469
|
if (runtime.timer) {
|
|
470
470
|
clearTimeout(runtime.timer);
|
|
@@ -514,7 +514,7 @@ export default {
|
|
|
514
514
|
await this.ensureFieldControlReady();
|
|
515
515
|
if (!sameValue(snapshot.data, this.formModel) || snapshot.context !== this.fieldControlContextKey
|
|
516
516
|
|| snapshot.revision !== this.getFieldControlRuntime().revision) {
|
|
517
|
-
throw new Error(
|
|
517
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('确认期间表单或流程已变化,请重新保存') : '确认期间表单或流程已变化,请重新保存'));
|
|
518
518
|
}
|
|
519
519
|
},
|
|
520
520
|
disposeFieldControl() {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
<template>
|
|
12
12
|
<div>
|
|
13
13
|
<el-alert v-if="fieldControlError" :title="fieldControlError" type="error" :closable="false" show-icon>
|
|
14
|
-
<el-button type="text" @click="retryFieldControl"
|
|
14
|
+
<el-button type="text" @click="retryFieldControl">{{ $t1('重新计算字段规则') }}</el-button>
|
|
15
15
|
</el-alert>
|
|
16
|
-
<div v-if="fieldControlBlocked" role="status"
|
|
16
|
+
<div v-if="fieldControlBlocked" role="status">{{ $t1('正在准备表单,请稍候…') }}</div>
|
|
17
17
|
<el-form
|
|
18
18
|
:label-position="labelPosition"
|
|
19
19
|
:size="size"
|
|
@@ -674,14 +674,14 @@ modules = {
|
|
|
674
674
|
if (formatS === "editButton") {
|
|
675
675
|
fieldWidget.options.prefixIcon =
|
|
676
676
|
fieldWidget.options.prefixIcon || "el-icon-edit";
|
|
677
|
-
fieldWidget.options.label = fieldWidget.options.label ||
|
|
677
|
+
fieldWidget.options.label = fieldWidget.options.label || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('查看') : '查看');
|
|
678
678
|
if (fieldWidget.options.labelHidden === undefined) {
|
|
679
679
|
fieldWidget.options.labelHidden = true;
|
|
680
680
|
}
|
|
681
681
|
} else if (formatS === "editDelete") {
|
|
682
682
|
fieldWidget.options.prefixIcon =
|
|
683
683
|
fieldWidget.options.prefixIcon || "el-icon-delete";
|
|
684
|
-
fieldWidget.options.label = fieldWidget.options.label ||
|
|
684
|
+
fieldWidget.options.label = fieldWidget.options.label || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('删除') : '删除');
|
|
685
685
|
if (fieldWidget.options.labelHidden === undefined) {
|
|
686
686
|
fieldWidget.options.labelHidden = true;
|
|
687
687
|
}
|
|
@@ -2963,7 +2963,7 @@ modules = {
|
|
|
2963
2963
|
let sourceId = self.formDataModel[cfg.sourceIdField];
|
|
2964
2964
|
if (sourceId == null || sourceId === "") {
|
|
2965
2965
|
if (self.$message) {
|
|
2966
|
-
self.$message.error(
|
|
2966
|
+
self.$message.error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('请先选择') : '请先选择') + (cfg.sourceLabel || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('原单') : '原单')));
|
|
2967
2967
|
}
|
|
2968
2968
|
return;
|
|
2969
2969
|
}
|
|
@@ -4314,16 +4314,16 @@ modules = {
|
|
|
4314
4314
|
|| typeof $grid.setTreeExpand !== "function"
|
|
4315
4315
|
) {
|
|
4316
4316
|
throw new Error(
|
|
4317
|
-
|
|
4317
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('[{p0}]无法读取树节点加载状态', { p0: formTemplateTableDTO.tableAlias }) : '[{p0}]无法读取树节点加载状态')
|
|
4318
4318
|
);
|
|
4319
4319
|
}
|
|
4320
4320
|
|
|
4321
4321
|
let unloadedRows = this.getTreeUnloadedRows($grid, treeConfig);
|
|
4322
4322
|
if (!unloadedRows.length) return;
|
|
4323
4323
|
if (strategy !== "loadAll") {
|
|
4324
|
-
let action = operation === "copy" ?
|
|
4324
|
+
let action = operation === "copy" ? (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('复制') : '复制') : (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('保存') : '保存');
|
|
4325
4325
|
throw new Error(
|
|
4326
|
-
|
|
4326
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('[{p0}]存在尚未加载的树节点,请先展开后再{p1}', { p0: formTemplateTableDTO.tableAlias, p1: action }) : '[{p0}]存在尚未加载的树节点,请先展开后再{p1}')
|
|
4327
4327
|
);
|
|
4328
4328
|
}
|
|
4329
4329
|
|
|
@@ -4331,7 +4331,7 @@ modules = {
|
|
|
4331
4331
|
while (unloadedRows.length) {
|
|
4332
4332
|
if (loopCount++ > 100) {
|
|
4333
4333
|
throw new Error(
|
|
4334
|
-
|
|
4334
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('[{p0}]树节点层级过深,无法完成加载', { p0: formTemplateTableDTO.tableAlias }) : '[{p0}]树节点层级过深,无法完成加载')
|
|
4335
4335
|
);
|
|
4336
4336
|
}
|
|
4337
4337
|
let currentRows = unloadedRows;
|
|
@@ -4344,7 +4344,7 @@ modules = {
|
|
|
4344
4344
|
&& unloadedRows.every((row) => currentRows.includes(row))
|
|
4345
4345
|
) {
|
|
4346
4346
|
throw new Error(
|
|
4347
|
-
|
|
4347
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('[{p0}]树节点加载未完成,已停止保存', { p0: formTemplateTableDTO.tableAlias }) : '[{p0}]树节点加载未完成,已停止保存')
|
|
4348
4348
|
);
|
|
4349
4349
|
}
|
|
4350
4350
|
}
|
|
@@ -4700,7 +4700,7 @@ modules = {
|
|
|
4700
4700
|
data: realFormData,
|
|
4701
4701
|
};
|
|
4702
4702
|
|
|
4703
|
-
this.$baseConfirm(
|
|
4703
|
+
this.$baseConfirm((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('您确定要保存吗?') : '您确定要保存吗?')).then(async () => {
|
|
4704
4704
|
try {
|
|
4705
4705
|
await this.assertFieldControlSubmission(fieldControlSnapshot);
|
|
4706
4706
|
} catch (error) {
|
|
@@ -4734,7 +4734,7 @@ modules = {
|
|
|
4734
4734
|
let reportTemplate = this.reportTemplate || {};
|
|
4735
4735
|
let insUuid = reportTemplate.insUuid;
|
|
4736
4736
|
if (insUuid) {
|
|
4737
|
-
this.$baseConfirm(
|
|
4737
|
+
this.$baseConfirm((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('您确定要提交吗?') : '您确定要提交吗?')).then(() => {
|
|
4738
4738
|
this.$http({
|
|
4739
4739
|
url: USER_PREFIX + `/form_ins/submit`,
|
|
4740
4740
|
method: `post`,
|
|
@@ -4878,42 +4878,42 @@ modules = {
|
|
|
4878
4878
|
|
|
4879
4879
|
if ("editDelete" === formatS) {
|
|
4880
4880
|
columnSelectedWidget.options.prefixIcon = "el-icon-delete";
|
|
4881
|
-
columnSelectedWidget.options.label =
|
|
4881
|
+
columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('删除') : '删除');
|
|
4882
4882
|
columnSelectedWidget.options.labelHidden = true;
|
|
4883
4883
|
columnSelectedWidget.options.hiddenByWf = true;
|
|
4884
4884
|
columnSelectedWidget.options.onClick =
|
|
4885
4885
|
"let tableParam = this.tableParam;\nlet tableRef = this.getWidgetRef(this.parentWidget.options.name);\ntableRef.deleteRow(tableParam.row,tableParam.rowIndex);";
|
|
4886
4886
|
} else if ("editButton" === formatS) {
|
|
4887
4887
|
columnSelectedWidget.options.prefixIcon = "el-icon-edit";
|
|
4888
|
-
columnSelectedWidget.options.label =
|
|
4888
|
+
columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('查看') : '查看');
|
|
4889
4889
|
columnSelectedWidget.options.labelHidden = true;
|
|
4890
4890
|
columnSelectedWidget.options.onClick =
|
|
4891
4891
|
"let tableParam = this.tableParam;\nlet tableRef = this.getWidgetRef(this.parentWidget.options.name);\ntableRef.openEditDialog(tableParam.row)";
|
|
4892
4892
|
} else if ("addSiblingEditRow" === formatS) {
|
|
4893
4893
|
columnSelectedWidget.options.prefixIcon = "el-icon-plus";
|
|
4894
|
-
columnSelectedWidget.options.label =
|
|
4894
|
+
columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('新增兄弟节点') : '新增兄弟节点');
|
|
4895
4895
|
columnSelectedWidget.options.labelHidden = false;
|
|
4896
4896
|
columnSelectedWidget.options.onClick =
|
|
4897
4897
|
"let tableParam = this.tableParam;\nthis.getParentTarget().addSiblingTreeRow(null,tableParam);";
|
|
4898
4898
|
} else if ("addChildTreeRow" === formatS) {
|
|
4899
4899
|
columnSelectedWidget.options.prefixIcon = "el-icon-plus";
|
|
4900
|
-
columnSelectedWidget.options.label =
|
|
4900
|
+
columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('新增子节点') : '新增子节点');
|
|
4901
4901
|
columnSelectedWidget.options.labelHidden = false;
|
|
4902
4902
|
columnSelectedWidget.options.onClick =
|
|
4903
4903
|
"let tableParam = this.tableParam;\nthis.getParentTarget().addChildTreeRow(null,tableParam);";
|
|
4904
4904
|
} else if ("moveUpRow" === formatS) {
|
|
4905
|
-
columnSelectedWidget.options.label =
|
|
4905
|
+
columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('↑上移') : '↑上移');
|
|
4906
4906
|
columnSelectedWidget.options.labelHidden = false;
|
|
4907
4907
|
columnSelectedWidget.options.onClick =
|
|
4908
4908
|
"let tableParam = this.tableParam;\nthis.getParentTarget().moveUpRow(tableParam);";
|
|
4909
4909
|
} else if ("moveDownRow" === formatS) {
|
|
4910
|
-
columnSelectedWidget.options.label =
|
|
4910
|
+
columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('↓下移') : '↓下移');
|
|
4911
4911
|
columnSelectedWidget.options.labelHidden = false;
|
|
4912
4912
|
columnSelectedWidget.options.onClick =
|
|
4913
4913
|
"let tableParam = this.tableParam;\nthis.getParentTarget().moveDownRow(tableParam);";
|
|
4914
4914
|
} else if ("removeTreeRow" === formatS) {
|
|
4915
4915
|
columnSelectedWidget.options.prefixIcon = "el-icon-delete";
|
|
4916
|
-
columnSelectedWidget.options.label =
|
|
4916
|
+
columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('删除') : '删除');
|
|
4917
4917
|
columnSelectedWidget.options.labelHidden = true;
|
|
4918
4918
|
columnSelectedWidget.options.onClick =
|
|
4919
4919
|
"let tableParam = this.tableParam;\nthis.getParentTarget().removeTreeRow(tableParam);";
|
|
@@ -5139,14 +5139,14 @@ modules = {
|
|
|
5139
5139
|
let gridRef = this.getWidgetRef(widgetName);
|
|
5140
5140
|
let $grid = gridRef?.getGridTable?.();
|
|
5141
5141
|
if (!$grid) {
|
|
5142
|
-
throw new Error(
|
|
5142
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('[{p0}]树表尚未初始化', { p0: widgetName }) : '[{p0}]树表尚未初始化'));
|
|
5143
5143
|
}
|
|
5144
5144
|
if (
|
|
5145
5145
|
$grid.treeConfig?.lazy
|
|
5146
5146
|
&& this.getTreeUnloadedRows($grid, $grid.treeConfig).length
|
|
5147
5147
|
) {
|
|
5148
5148
|
throw new Error(
|
|
5149
|
-
|
|
5149
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('[{p0}]存在尚未加载的树节点,无法复制不完整子树', { p0: widgetName }) : '[{p0}]存在尚未加载的树节点,无法复制不完整子树')
|
|
5150
5150
|
);
|
|
5151
5151
|
}
|
|
5152
5152
|
|
|
@@ -5258,7 +5258,7 @@ modules = {
|
|
|
5258
5258
|
this.$emit("openCopyEditTab", formData);
|
|
5259
5259
|
return true;
|
|
5260
5260
|
} catch (error) {
|
|
5261
|
-
this.$message.error(error?.message ||
|
|
5261
|
+
this.$message.error(error?.message || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树表数据尚未准备完成') : '树表数据尚未准备完成'));
|
|
5262
5262
|
return false;
|
|
5263
5263
|
}
|
|
5264
5264
|
},
|
|
@@ -5428,7 +5428,7 @@ modules = {
|
|
|
5428
5428
|
},
|
|
5429
5429
|
openComponentDialog(option = {}) {
|
|
5430
5430
|
return mountComponentDialog(option, this).catch((error) => {
|
|
5431
|
-
this.$message.error(error.message ||
|
|
5431
|
+
this.$message.error(error.message || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('组件弹框打开失败') : '组件弹框打开失败'));
|
|
5432
5432
|
return null;
|
|
5433
5433
|
});
|
|
5434
5434
|
},
|
|
@@ -130,7 +130,7 @@ modules = {
|
|
|
130
130
|
let isAdd = !formRef.dataId;
|
|
131
131
|
let formName = reportTemplate?.formName;
|
|
132
132
|
let formCode = reportTemplate?.formCode;
|
|
133
|
-
let action = isAdd ?
|
|
133
|
+
let action = isAdd ? (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('新增成功') : '新增成功') : (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('更新成功') : '更新成功');
|
|
134
134
|
let content = `${formName}(${formCode}),${action}`;
|
|
135
135
|
let path = responseConfig.url.replace(responseConfig.baseURL, "");
|
|
136
136
|
saveUserLog({
|
|
@@ -135,7 +135,7 @@ export function buildDropdownWidgetFromDef(def, index = 0) {
|
|
|
135
135
|
type: "dropdown",
|
|
136
136
|
id: `dropdown_${ts}`,
|
|
137
137
|
options: {
|
|
138
|
-
label: def.label ||
|
|
138
|
+
label: def.label || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('操作') : '操作'),
|
|
139
139
|
dropdownType: options?.dropdownType || "link",
|
|
140
140
|
dropdownTrigger: options?.dropdownTrigger || "hover",
|
|
141
141
|
dropdownFlag: 1,
|