cloud-web-corejs 1.1.0-dev.73 → 1.1.0-dev.75
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/README.md +1 -1
- package/src/components/baseAutocomplete/index.vue +11 -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/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 +155 -9
- 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 +30 -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/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 +37 -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 +2 -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 +2 -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
|
@@ -1310,7 +1310,7 @@ modules = {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
if (this.widget.options.clipboardInvalidValueStrategy === "warn") {
|
|
1312
1312
|
this.$message.warning(
|
|
1313
|
-
|
|
1313
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('字段 {p0} 的粘贴值无效,已跳过。', { p0: obj.column.title || obj.column.field }) : '字段 {p0} 的粘贴值无效,已跳过。')
|
|
1314
1314
|
);
|
|
1315
1315
|
}
|
|
1316
1316
|
return false;
|
|
@@ -1412,7 +1412,7 @@ modules = {
|
|
|
1412
1412
|
Object.keys(this.editAutoSavePendingRows).length
|
|
1413
1413
|
>= MAX_EDIT_AUTO_SAVE_PENDING_ROWS
|
|
1414
1414
|
) {
|
|
1415
|
-
this.$message.warning(
|
|
1415
|
+
this.$message.warning((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('自动保存任务较多,请稍后再编辑。') : '自动保存任务较多,请稍后再编辑。'));
|
|
1416
1416
|
return false;
|
|
1417
1417
|
}
|
|
1418
1418
|
pendingEntry = {
|
|
@@ -1451,7 +1451,7 @@ modules = {
|
|
|
1451
1451
|
&& !this.tableDestroyed
|
|
1452
1452
|
&& generation === this.editAutoSaveGeneration
|
|
1453
1453
|
) {
|
|
1454
|
-
this.$message.error(error?.message ||
|
|
1454
|
+
this.$message.error(error?.message || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('自动保存失败。') : '自动保存失败。'));
|
|
1455
1455
|
}
|
|
1456
1456
|
} finally {
|
|
1457
1457
|
if (this.editAutoSavePendingRows[rowKey] === pendingEntry) {
|
|
@@ -1675,7 +1675,7 @@ modules = {
|
|
|
1675
1675
|
Array.from(batch.rows.values())
|
|
1676
1676
|
))
|
|
1677
1677
|
.catch((error) => {
|
|
1678
|
-
this.$message.error(error?.message ||
|
|
1678
|
+
this.$message.error(error?.message || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('粘贴后自动保存失败。') : '粘贴后自动保存失败。'));
|
|
1679
1679
|
});
|
|
1680
1680
|
}
|
|
1681
1681
|
},
|
|
@@ -3247,7 +3247,7 @@ modules = {
|
|
|
3247
3247
|
);
|
|
3248
3248
|
if (!batchParent) {
|
|
3249
3249
|
throw new Error(
|
|
3250
|
-
|
|
3250
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('懒加载节点 {p0} 的父键 {p1} 与请求父节点不一致', { p0: childRow[rowField], p1: parentValue }) : '懒加载节点 {p0} 的父键 {p1} 与请求父节点不一致')
|
|
3251
3251
|
);
|
|
3252
3252
|
}
|
|
3253
3253
|
childRow[parentField] = batchParent[rowField];
|
|
@@ -3269,7 +3269,7 @@ modules = {
|
|
|
3269
3269
|
)
|
|
3270
3270
|
) {
|
|
3271
3271
|
throw new Error(
|
|
3272
|
-
|
|
3272
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('懒加载节点 {p0} 已存在', { p0: childRow[rowField] }) : '懒加载节点 {p0} 已存在')
|
|
3273
3273
|
);
|
|
3274
3274
|
}
|
|
3275
3275
|
});
|
|
@@ -4769,7 +4769,7 @@ modules = {
|
|
|
4769
4769
|
let checkRows = $grid.getCheckboxRecords(true);
|
|
4770
4770
|
if (checkRows.length === 0) {
|
|
4771
4771
|
this.$message({
|
|
4772
|
-
message:
|
|
4772
|
+
message: (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('请选择要操作的行') : '请选择要操作的行'),
|
|
4773
4773
|
type: "warning",
|
|
4774
4774
|
});
|
|
4775
4775
|
return false;
|
|
@@ -4980,9 +4980,9 @@ modules = {
|
|
|
4980
4980
|
|| $grid.treeConfig?.transform !== true
|
|
4981
4981
|
) {
|
|
4982
4982
|
throw new Error(
|
|
4983
|
-
|
|
4983
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('[xform tree-table] VXE 树配置与 resolvedTreeConfig 不一致:{p0}', { p0: mismatch.join(
|
|
4984
4984
|
", "
|
|
4985
|
-
) || "transform"}
|
|
4985
|
+
) || "transform" }) : '[xform tree-table] VXE 树配置与 resolvedTreeConfig 不一致:{p0}')
|
|
4986
4986
|
);
|
|
4987
4987
|
}
|
|
4988
4988
|
return true;
|
|
@@ -5127,7 +5127,7 @@ modules = {
|
|
|
5127
5127
|
: new Error(messageOrError);
|
|
5128
5128
|
};
|
|
5129
5129
|
if (isRootParent(newValue)) {
|
|
5130
|
-
return rejectChange(
|
|
5130
|
+
return rejectChange((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('{p0} 不能为空或根哨兵值。', { p0: rowField }) : '{p0} 不能为空或根哨兵值。'));
|
|
5131
5131
|
}
|
|
5132
5132
|
if (treeKeyEquals(oldValue, newValue)) {
|
|
5133
5133
|
row[rowField] = newValue;
|
|
@@ -5147,7 +5147,7 @@ modules = {
|
|
|
5147
5147
|
&& treeKeyEquals(item?.[rowField], newValue)
|
|
5148
5148
|
);
|
|
5149
5149
|
if (conflict) {
|
|
5150
|
-
return rejectChange(
|
|
5150
|
+
return rejectChange((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树键 {p0} 已存在。', { p0: newValue }) : '树键 {p0} 已存在。'));
|
|
5151
5151
|
}
|
|
5152
5152
|
|
|
5153
5153
|
let physicalIdField = context.identityConfig.physicalIdField;
|
|
@@ -5174,8 +5174,8 @@ modules = {
|
|
|
5174
5174
|
if (physicalIdField === rowField) {
|
|
5175
5175
|
return rejectChange(
|
|
5176
5176
|
persisted
|
|
5177
|
-
?
|
|
5178
|
-
:
|
|
5177
|
+
? (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('已持久化的物理主键不可修改。') : '已持久化的物理主键不可修改。')
|
|
5178
|
+
: (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('物理主键兼作树键时只能由保存响应回填正式值。') : '物理主键兼作树键时只能由保存响应回填正式值。')
|
|
5179
5179
|
);
|
|
5180
5180
|
}
|
|
5181
5181
|
if (persisted) {
|
|
@@ -5195,7 +5195,7 @@ modules = {
|
|
|
5195
5195
|
reason: options.reason || "edit",
|
|
5196
5196
|
});
|
|
5197
5197
|
if (result === false) {
|
|
5198
|
-
throw new Error(
|
|
5198
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树键事务更新未成功。') : '树键事务更新未成功。'));
|
|
5199
5199
|
}
|
|
5200
5200
|
transactional = true;
|
|
5201
5201
|
} catch (error) {
|
|
@@ -5226,7 +5226,7 @@ modules = {
|
|
|
5226
5226
|
} catch (error) {
|
|
5227
5227
|
let reloadError = error instanceof Error
|
|
5228
5228
|
? error
|
|
5229
|
-
: new Error(error ||
|
|
5229
|
+
: new Error(error || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树表重新加载失败。') : '树表重新加载失败。'));
|
|
5230
5230
|
reloadError.treeReloadFailed = true;
|
|
5231
5231
|
throw reloadError;
|
|
5232
5232
|
}
|
|
@@ -5266,7 +5266,7 @@ modules = {
|
|
|
5266
5266
|
context.identityConfig
|
|
5267
5267
|
)
|
|
5268
5268
|
) {
|
|
5269
|
-
return
|
|
5269
|
+
return (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('请先保存父节点,再保存当前子节点。') : '请先保存父节点,再保存当前子节点。');
|
|
5270
5270
|
}
|
|
5271
5271
|
return null;
|
|
5272
5272
|
}
|
|
@@ -5276,7 +5276,7 @@ modules = {
|
|
|
5276
5276
|
parentValue
|
|
5277
5277
|
)
|
|
5278
5278
|
) {
|
|
5279
|
-
return
|
|
5279
|
+
return (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('当前行引用了尚未保存的父节点,请先保存父节点。') : '当前行引用了尚未保存的父节点,请先保存父节点。');
|
|
5280
5280
|
}
|
|
5281
5281
|
if (
|
|
5282
5282
|
this.registryHasTreeKey(
|
|
@@ -5290,14 +5290,14 @@ modules = {
|
|
|
5290
5290
|
if (typeof validator === "function") {
|
|
5291
5291
|
let result = validator(parentValue, row, "single");
|
|
5292
5292
|
if (result && typeof result.then === "function") {
|
|
5293
|
-
return
|
|
5293
|
+
return (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('外部父节点校验必须同步完成。') : '外部父节点校验必须同步完成。');
|
|
5294
5294
|
}
|
|
5295
5295
|
if (result === true) {
|
|
5296
5296
|
this.treeKnownFormalKeyRegistry.add(parentValue);
|
|
5297
5297
|
return null;
|
|
5298
5298
|
}
|
|
5299
5299
|
}
|
|
5300
|
-
return
|
|
5300
|
+
return (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('无法确认当前行的父节点已保存,请先保存或加载父节点。') : '无法确认当前行的父节点已保存,请先保存或加载父节点。');
|
|
5301
5301
|
},
|
|
5302
5302
|
/** @param {Object} e 容器组件 schema。@returns {String} 动态组件名称。 */
|
|
5303
5303
|
getContainerWidgetName: function (e) {
|
|
@@ -5395,7 +5395,7 @@ modules = {
|
|
|
5395
5395
|
}
|
|
5396
5396
|
if (this.treeSingleSavePending) {
|
|
5397
5397
|
if (!this.tableDestroyed) {
|
|
5398
|
-
this.$message.warning(
|
|
5398
|
+
this.$message.warning((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('当前行正在保存,请勿重复操作。') : '当前行正在保存,请勿重复操作。'));
|
|
5399
5399
|
}
|
|
5400
5400
|
return false;
|
|
5401
5401
|
}
|
|
@@ -5521,7 +5521,7 @@ modules = {
|
|
|
5521
5521
|
|
|
5522
5522
|
if (!options.skipConfirm) {
|
|
5523
5523
|
try {
|
|
5524
|
-
await this.$baseConfirm(
|
|
5524
|
+
await this.$baseConfirm((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('您确定要保存吗?') : '您确定要保存吗?'));
|
|
5525
5525
|
} catch (error) {
|
|
5526
5526
|
return false;
|
|
5527
5527
|
}
|
|
@@ -5569,7 +5569,7 @@ modules = {
|
|
|
5569
5569
|
isConfirm: false,
|
|
5570
5570
|
success: resolve,
|
|
5571
5571
|
fail: (res) => {
|
|
5572
|
-
reject(new Error(res?.content ||
|
|
5572
|
+
reject(new Error(res?.content || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('当前行保存失败。') : '当前行保存失败。')));
|
|
5573
5573
|
},
|
|
5574
5574
|
error: reject,
|
|
5575
5575
|
});
|
|
@@ -5585,7 +5585,7 @@ modules = {
|
|
|
5585
5585
|
saveResponse.objx,
|
|
5586
5586
|
resolve,
|
|
5587
5587
|
(res) => {
|
|
5588
|
-
reject(new Error(res?.content ||
|
|
5588
|
+
reject(new Error(res?.content || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('保存结果重新查询失败。') : '保存结果重新查询失败。')));
|
|
5589
5589
|
},
|
|
5590
5590
|
reject,
|
|
5591
5591
|
options.cancelToken
|
|
@@ -5610,7 +5610,7 @@ modules = {
|
|
|
5610
5610
|
&& !hasIdentityValue(responseRow[physicalIdField])
|
|
5611
5611
|
) {
|
|
5612
5612
|
throw new Error(
|
|
5613
|
-
|
|
5613
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('保存响应未返回正式物理 ID 字段 {p0}。', { p0: physicalIdField }) : '保存响应未返回正式物理 ID 字段 {p0}。')
|
|
5614
5614
|
);
|
|
5615
5615
|
}
|
|
5616
5616
|
|
|
@@ -5642,7 +5642,7 @@ modules = {
|
|
|
5642
5642
|
);
|
|
5643
5643
|
}
|
|
5644
5644
|
if (!currentLogicalRow) {
|
|
5645
|
-
throw new Error(
|
|
5645
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('无法定位保存响应对应的当前树表行。') : '无法定位保存响应对应的当前树表行。'));
|
|
5646
5646
|
}
|
|
5647
5647
|
if (!hasIdentityValue(logicalRowKey)) {
|
|
5648
5648
|
logicalRowKey = currentLogicalRow._X_ROW_KEY || null;
|
|
@@ -5670,7 +5670,7 @@ modules = {
|
|
|
5670
5670
|
|| treeKeyEquals(nextTreeKey, oldTreeKey))
|
|
5671
5671
|
) {
|
|
5672
5672
|
throw new Error(
|
|
5673
|
-
|
|
5673
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('保存响应未返回正式树键字段 {p0}。', { p0: rowField }) : '保存响应未返回正式树键字段 {p0}。')
|
|
5674
5674
|
);
|
|
5675
5675
|
}
|
|
5676
5676
|
|
|
@@ -5687,7 +5687,7 @@ modules = {
|
|
|
5687
5687
|
);
|
|
5688
5688
|
if (keyConflict) {
|
|
5689
5689
|
throw new Error(
|
|
5690
|
-
|
|
5690
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('保存响应中的树键 {p0} 已存在。', { p0: nextTreeKey }) : '保存响应中的树键 {p0} 已存在。')
|
|
5691
5691
|
);
|
|
5692
5692
|
}
|
|
5693
5693
|
|
|
@@ -5791,7 +5791,7 @@ modules = {
|
|
|
5791
5791
|
if (!this.tableDestroyed) {
|
|
5792
5792
|
this.$message.error(
|
|
5793
5793
|
retryError?.message
|
|
5794
|
-
||
|
|
5794
|
+
|| (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('保存结果仍未能重新加载,请手动刷新后再操作。') : '保存结果仍未能重新加载,请手动刷新后再操作。')
|
|
5795
5795
|
);
|
|
5796
5796
|
}
|
|
5797
5797
|
return false;
|
|
@@ -5803,7 +5803,7 @@ modules = {
|
|
|
5803
5803
|
};
|
|
5804
5804
|
this.$message.error(
|
|
5805
5805
|
error?.message
|
|
5806
|
-
||
|
|
5806
|
+
|| (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('保存已成功,但结果重新加载失败,请重试。') : '保存已成功,但结果重新加载失败,请重试。')
|
|
5807
5807
|
);
|
|
5808
5808
|
return false;
|
|
5809
5809
|
}
|
|
@@ -5821,7 +5821,7 @@ modules = {
|
|
|
5821
5821
|
}
|
|
5822
5822
|
if (!keepSaveLocked) {
|
|
5823
5823
|
this.$message.error(
|
|
5824
|
-
error?.message ||
|
|
5824
|
+
error?.message || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('当前行保存失败。') : '当前行保存失败。')
|
|
5825
5825
|
);
|
|
5826
5826
|
}
|
|
5827
5827
|
return false;
|
|
@@ -5918,7 +5918,7 @@ modules = {
|
|
|
5918
5918
|
this.ensureNewTreeRowKey(newRow, treeContext);
|
|
5919
5919
|
if (!toSibling) {
|
|
5920
5920
|
if (parent && isRootParent(parent[rowField])) {
|
|
5921
|
-
this.$message.error(
|
|
5921
|
+
this.$message.error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('父节点缺少有效树键,无法新增子节点。') : '父节点缺少有效树键,无法新增子节点。'));
|
|
5922
5922
|
return false;
|
|
5923
5923
|
}
|
|
5924
5924
|
newRow[parentField] = parent
|
|
@@ -6014,7 +6014,7 @@ modules = {
|
|
|
6014
6014
|
let treeContext = this.getTreeContext($grid);
|
|
6015
6015
|
let { rowField, parentField } = treeContext.fields;
|
|
6016
6016
|
if (parent && isRootParent(parent[rowField])) {
|
|
6017
|
-
this.$message.error(
|
|
6017
|
+
this.$message.error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('父节点缺少有效树键,无法新增子节点。') : '父节点缺少有效树键,无法新增子节点。'));
|
|
6018
6018
|
return false;
|
|
6019
6019
|
}
|
|
6020
6020
|
let tableRows = this.formModel[this.fieldKeyName] || [];
|
|
@@ -6406,7 +6406,7 @@ modules = {
|
|
|
6406
6406
|
this.ensureNewTreeRowKey(newRow, treeContext);
|
|
6407
6407
|
if (!toSibling) {
|
|
6408
6408
|
if (parent && isRootParent(parent[rowField])) {
|
|
6409
|
-
this.$message.error(
|
|
6409
|
+
this.$message.error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('父节点缺少有效树键,无法新增子节点。') : '父节点缺少有效树键,无法新增子节点。'));
|
|
6410
6410
|
return false;
|
|
6411
6411
|
}
|
|
6412
6412
|
newRow[parentField] = parent
|
|
@@ -6883,7 +6883,7 @@ modules = {
|
|
|
6883
6883
|
data: reqData,
|
|
6884
6884
|
successMsg: true,
|
|
6885
6885
|
isConfirm: true,
|
|
6886
|
-
confirmText:
|
|
6886
|
+
confirmText: (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('您确定要保存排序吗?') : '您确定要保存排序吗?'),
|
|
6887
6887
|
success: (res) => {
|
|
6888
6888
|
this.getGridTable().reloadTreeExpand(this.sortParentRow);
|
|
6889
6889
|
},
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
icon="el-icon-arrow-left"
|
|
35
35
|
:disabled="!billNav.canPrev"
|
|
36
36
|
@click="navBill(-1)"
|
|
37
|
-
|
|
37
|
+
>{{ $t1('上一单') }}</el-button
|
|
38
38
|
>
|
|
39
39
|
<el-button
|
|
40
40
|
class="button-sty"
|
|
41
41
|
size="mini"
|
|
42
42
|
:disabled="!billNav.canNext"
|
|
43
43
|
@click="navBill(1)"
|
|
44
|
-
|
|
44
|
+
>{{ $t1('下一单') }}<i class="el-icon-arrow-right el-icon--right"></i
|
|
45
45
|
></el-button>
|
|
46
46
|
</template>
|
|
47
47
|
<el-button
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<div class="detail-temp-wrap" :class="[customClass]" :ref="widget.id">
|
|
13
13
|
<div class="detail-temp-box" v-for="(paneWidget, index) in widget.panes" :key="paneWidget.id || index" :class="widget.options.styleTempClass">
|
|
14
14
|
<div class="detail-temp-header">
|
|
15
|
-
<span class="detail-temp-label">{{ getI18nLabel(paneWidget.options.label) || '模块' }}</span>
|
|
15
|
+
<span class="detail-temp-label">{{ getI18nLabel(paneWidget.options.label) || $t1('模块') }}</span>
|
|
16
16
|
</div>
|
|
17
17
|
<div class="detail-temp-body">
|
|
18
18
|
<template v-for="(subWidget, swIdx) in paneWidget.widgetList">
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
>
|
|
6
6
|
<div class="h5-header">{{ widget.options.label }}</div>
|
|
7
7
|
<div class="h5-search-box">
|
|
8
|
-
<el-input v-model="keyword" placeholder="请选择" class="txt">
|
|
8
|
+
<el-input v-model="keyword" :placeholder="$t1('请选择')" class="txt">
|
|
9
9
|
<i slot="suffix" class="el-input__icon el-icon-search"></i>
|
|
10
10
|
<el-button slot="append" class="btn" @click="searchEvent"
|
|
11
|
-
|
|
11
|
+
>{{ $t1('搜索') }}</el-button
|
|
12
12
|
>
|
|
13
13
|
</el-input>
|
|
14
14
|
<div class="icon-screen" @click="openAdvancedSearchDialog">
|
|
15
|
-
<i class="iconfont icon-chaxuntiaojianshezhi"></i
|
|
15
|
+
<i class="iconfont icon-chaxuntiaojianshezhi"></i>{{ $t1('筛选') }}
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
18
|
<div
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
<el-tooltip
|
|
140
140
|
:enterable="false"
|
|
141
141
|
effect="dark"
|
|
142
|
-
content="删除"
|
|
142
|
+
:content="$t1('删除')"
|
|
143
143
|
placement="top"
|
|
144
144
|
popper-class="tooltip-skin"
|
|
145
145
|
>
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
<el-tooltip
|
|
157
157
|
:enterable="false"
|
|
158
158
|
effect="dark"
|
|
159
|
-
content="查看"
|
|
159
|
+
:content="$t1('查看')"
|
|
160
160
|
placement="top"
|
|
161
161
|
popper-class="tooltip-skin"
|
|
162
162
|
>
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
<el-tooltip
|
|
252
252
|
:enterable="false"
|
|
253
253
|
effect="dark"
|
|
254
|
-
content="删除"
|
|
254
|
+
:content="$t1('删除')"
|
|
255
255
|
placement="top"
|
|
256
256
|
popper-class="tooltip-skin"
|
|
257
257
|
>
|
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
<el-tooltip
|
|
271
271
|
:enterable="false"
|
|
272
272
|
effect="dark"
|
|
273
|
-
content="查看"
|
|
273
|
+
:content="$t1('查看')"
|
|
274
274
|
placement="top"
|
|
275
275
|
popper-class="tooltip-skin"
|
|
276
276
|
>
|
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
>
|
|
384
384
|
<template #right>
|
|
385
385
|
<span>
|
|
386
|
-
<span
|
|
386
|
+
<span>{{ $t1('当前记录') }}</span>
|
|
387
387
|
<span class="f-red"> {{ page.records.length }} </span>
|
|
388
388
|
<span>/</span>
|
|
389
389
|
<span class="f-red"> {{ page.total }}</span>
|
|
@@ -424,7 +424,7 @@
|
|
|
424
424
|
</template>
|
|
425
425
|
</advancedSearchDialog>
|
|
426
426
|
<el-dialog
|
|
427
|
-
title="明细详情"
|
|
427
|
+
:title="$t1('明细详情')"
|
|
428
428
|
:modal-append-to-body="false"
|
|
429
429
|
:close-on-click-modal="false"
|
|
430
430
|
:visible.sync="showRowDetailDialog"
|
|
@@ -505,7 +505,7 @@
|
|
|
505
505
|
<el-tooltip
|
|
506
506
|
:enterable="false"
|
|
507
507
|
effect="dark"
|
|
508
|
-
content="删除"
|
|
508
|
+
:content="$t1('删除')"
|
|
509
509
|
placement="top"
|
|
510
510
|
popper-class="tooltip-skin"
|
|
511
511
|
>
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
<el-tooltip
|
|
523
523
|
:enterable="false"
|
|
524
524
|
effect="dark"
|
|
525
|
-
content="查看"
|
|
525
|
+
:content="$t1('查看')"
|
|
526
526
|
placement="top"
|
|
527
527
|
popper-class="tooltip-skin"
|
|
528
528
|
>
|
|
@@ -616,7 +616,7 @@
|
|
|
616
616
|
<el-tooltip
|
|
617
617
|
:enterable="false"
|
|
618
618
|
effect="dark"
|
|
619
|
-
content="删除"
|
|
619
|
+
:content="$t1('删除')"
|
|
620
620
|
placement="top"
|
|
621
621
|
popper-class="tooltip-skin"
|
|
622
622
|
>
|
|
@@ -635,7 +635,7 @@
|
|
|
635
635
|
<el-tooltip
|
|
636
636
|
:enterable="false"
|
|
637
637
|
effect="dark"
|
|
638
|
-
content="查看"
|
|
638
|
+
:content="$t1('查看')"
|
|
639
639
|
placement="top"
|
|
640
640
|
popper-class="tooltip-skin"
|
|
641
641
|
>
|
|
@@ -37,7 +37,7 @@ export function collectFieldControlTargets(list) {
|
|
|
37
37
|
const key = container ? widget.options.name
|
|
38
38
|
: ((widget.options.keyNameEnabled && widget.options.keyName) || widget.options.name);
|
|
39
39
|
if (key) {
|
|
40
|
-
if (keys.has(key)) throw new Error(
|
|
40
|
+
if (keys.has(key)) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('动态规则目标名称重复:') : '动态规则目标名称重复:') + key);
|
|
41
41
|
keys.add(key);
|
|
42
42
|
entry = { key, widget, parent, depth, isContainer: container, refKey: widget.options.name };
|
|
43
43
|
entries.push(entry);
|
|
@@ -70,29 +70,29 @@ export function fieldControlTreeOptions(list) {
|
|
|
70
70
|
|
|
71
71
|
export function normalizeState(state, label = "") {
|
|
72
72
|
if (!state || typeof state !== "object" || Array.isArray(state)) {
|
|
73
|
-
throw new Error(
|
|
73
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('动态规则状态格式错误:') : '动态规则状态格式错误:') + label);
|
|
74
74
|
}
|
|
75
75
|
const result = {};
|
|
76
76
|
STATE_KEYS.forEach(key => {
|
|
77
77
|
const value = state[key];
|
|
78
78
|
if (value === undefined || value === null || value === "") return;
|
|
79
|
-
if (typeof value !== "boolean") throw new Error(
|
|
79
|
+
if (typeof value !== "boolean") throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('动态规则状态必须为布尔值:') : '动态规则状态必须为布尔值:') + label + "." + key);
|
|
80
80
|
result[key] = value;
|
|
81
81
|
});
|
|
82
82
|
return result;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
export function normalizeLocalRules(rules) {
|
|
86
|
-
if (!Array.isArray(rules)) throw new Error(
|
|
86
|
+
if (!Array.isArray(rules)) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('动态规则必须为数组') : '动态规则必须为数组'));
|
|
87
87
|
return rules.map(rule => {
|
|
88
88
|
if (!rule || !Array.isArray(rule.conditions) || !Array.isArray(rule.targets)) {
|
|
89
|
-
throw new Error(
|
|
89
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('动态规则缺少条件或目标') : '动态规则缺少条件或目标'));
|
|
90
90
|
}
|
|
91
|
-
if (rule.logic && !["and", "or"].includes(rule.logic)) throw new Error(
|
|
91
|
+
if (rule.logic && !["and", "or"].includes(rule.logic)) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('动态规则条件逻辑无效') : '动态规则条件逻辑无效'));
|
|
92
92
|
return {
|
|
93
93
|
...rule,
|
|
94
94
|
targets: rule.targets.map(target => {
|
|
95
|
-
if (!target.field) throw new Error(
|
|
95
|
+
if (!target.field) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('请选择动态规则目标') : '请选择动态规则目标'));
|
|
96
96
|
return { field: target.field, ...normalizeState(target, target.field) };
|
|
97
97
|
}),
|
|
98
98
|
};
|
|
@@ -108,17 +108,17 @@ export function commitLocalFieldRules(rules, widgetList) {
|
|
|
108
108
|
const normalized = normalizeLocalRules(list);
|
|
109
109
|
normalized.forEach(rule => {
|
|
110
110
|
rule.conditions.forEach(condition => {
|
|
111
|
-
if (!fields.has(condition.field)) throw new Error(
|
|
111
|
+
if (!fields.has(condition.field)) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('条件字段不存在或不支持:') : '条件字段不存在或不支持:') + condition.field);
|
|
112
112
|
});
|
|
113
113
|
rule.targets.forEach(target => {
|
|
114
|
-
if (!targets.has(target.field)) throw new Error(
|
|
114
|
+
if (!targets.has(target.field)) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('目标不存在或不支持:') : '目标不存在或不支持:') + target.field);
|
|
115
115
|
});
|
|
116
116
|
});
|
|
117
117
|
return normalized;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
export function evaluateCondition(condition, model) {
|
|
121
|
-
if (!condition || !condition.field) throw new Error(
|
|
121
|
+
if (!condition || !condition.field) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('请选择动态规则条件字段') : '请选择动态规则条件字段'));
|
|
122
122
|
const actual = model[condition.field];
|
|
123
123
|
const expected = condition.value;
|
|
124
124
|
const empty = value => value === undefined || value === null || value === ""
|
|
@@ -140,7 +140,7 @@ export function evaluateCondition(condition, model) {
|
|
|
140
140
|
if (!Number.isFinite(a) || !Number.isFinite(b)) return false;
|
|
141
141
|
return { gt: a > b, ge: a >= b, lt: a < b, le: a <= b }[condition.operator];
|
|
142
142
|
}
|
|
143
|
-
if (!operators[condition.operator]) throw new Error(
|
|
143
|
+
if (!operators[condition.operator]) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('动态规则操作符无效:') : '动态规则操作符无效:') + condition.operator);
|
|
144
144
|
return operators[condition.operator]();
|
|
145
145
|
}
|
|
146
146
|
|
|
@@ -150,7 +150,7 @@ export function computeFieldStates(rules, baseline, model) {
|
|
|
150
150
|
normalizeLocalRules(rules).forEach(rule => {
|
|
151
151
|
rule.targets.forEach(target => {
|
|
152
152
|
if (!Object.prototype.hasOwnProperty.call(states, target.field)) {
|
|
153
|
-
throw new Error(
|
|
153
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('动态规则目标不存在或不支持:') : '动态规则目标不存在或不支持:') + target.field);
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
156
|
// 先检查所有条件,避免短路计算掩盖配置错误。
|
|
@@ -163,21 +163,21 @@ export function computeFieldStates(rules, baseline, model) {
|
|
|
163
163
|
|
|
164
164
|
export function resolveScriptStates(fieldStates, baseline, allowValue) {
|
|
165
165
|
if (!fieldStates || typeof fieldStates !== "object" || Array.isArray(fieldStates)) {
|
|
166
|
-
throw new Error(
|
|
166
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('后台动态规则缺少有效的 fieldStates') : '后台动态规则缺少有效的 fieldStates'));
|
|
167
167
|
}
|
|
168
168
|
const states = Object.create(null);
|
|
169
169
|
const effects = Object.create(null);
|
|
170
170
|
Object.keys(baseline).forEach(key => { states[key] = { ...baseline[key] }; });
|
|
171
171
|
Object.keys(fieldStates).forEach(key => {
|
|
172
|
-
if (!Object.prototype.hasOwnProperty.call(states, key)) throw new Error(
|
|
172
|
+
if (!Object.prototype.hasOwnProperty.call(states, key)) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('动态规则目标不存在或不支持:') : '动态规则目标不存在或不支持:') + key);
|
|
173
173
|
const state = fieldStates[key];
|
|
174
174
|
Object.assign(states[key], normalizeState(state, key));
|
|
175
175
|
if (Object.prototype.hasOwnProperty.call(state, "value")) {
|
|
176
|
-
if (!allowValue) throw new Error(
|
|
176
|
+
if (!allowValue) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('动态规则返回了 value,请先明确启用自动赋值:') : '动态规则返回了 value,请先明确启用自动赋值:') + key);
|
|
177
177
|
effects[key] = { value: state.value };
|
|
178
178
|
}
|
|
179
179
|
if (state.options !== undefined) {
|
|
180
|
-
if (!Array.isArray(state.options)) throw new Error(
|
|
180
|
+
if (!Array.isArray(state.options)) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('动态选项必须为数组:') : '动态选项必须为数组:') + key);
|
|
181
181
|
effects[key] = { ...effects[key], options: state.options };
|
|
182
182
|
}
|
|
183
183
|
});
|
|
@@ -213,6 +213,6 @@ export function sameValue(a, b) {
|
|
|
213
213
|
|
|
214
214
|
export function resolveRunMode(config, hasWf) {
|
|
215
215
|
const mode = config.dynamicFieldRunMode || "auto";
|
|
216
|
-
if (!["auto", "initialOnly", "continuous"].includes(mode)) throw new Error(
|
|
216
|
+
if (!["auto", "initialOnly", "continuous"].includes(mode)) throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('动态规则执行方式无效') : '动态规则执行方式无效'));
|
|
217
217
|
return mode === "auto" ? (hasWf ? "initialOnly" : "continuous") : mode;
|
|
218
218
|
}
|
|
@@ -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() {
|