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
|
@@ -52,7 +52,7 @@ const registryHas = (registry, value) => {
|
|
|
52
52
|
|
|
53
53
|
const assertSyncResult = (value, name) => {
|
|
54
54
|
if (value && typeof value.then === "function") {
|
|
55
|
-
throw new Error(
|
|
55
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('{p0} 必须同步返回,不能返回 Promise', { p0: name }) : '{p0} 必须同步返回,不能返回 Promise'));
|
|
56
56
|
}
|
|
57
57
|
return value;
|
|
58
58
|
};
|
|
@@ -64,7 +64,7 @@ const callExternalParentValidator = (validator, value, row, operation) => {
|
|
|
64
64
|
"validateExternalParentKey"
|
|
65
65
|
);
|
|
66
66
|
if (typeof result !== "boolean") {
|
|
67
|
-
throw new Error(
|
|
67
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('validateExternalParentKey 必须返回 boolean') : 'validateExternalParentKey 必须返回 boolean'));
|
|
68
68
|
}
|
|
69
69
|
return result;
|
|
70
70
|
};
|
|
@@ -82,7 +82,7 @@ const stableSerialize = (value, seen = new WeakSet()) => {
|
|
|
82
82
|
if (valueType === "boolean") return `boolean:${value}`;
|
|
83
83
|
if (valueType === "bigint") return `bigint:${value.toString()}`;
|
|
84
84
|
if (valueType === "function" || valueType === "symbol") {
|
|
85
|
-
throw new Error(
|
|
85
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点包含无法比较的 {p0} 字段', { p0: valueType }) : '树节点包含无法比较的 {p0} 字段'));
|
|
86
86
|
}
|
|
87
87
|
if (value instanceof Date) {
|
|
88
88
|
return `date:${value.toISOString()}`;
|
|
@@ -91,7 +91,7 @@ const stableSerialize = (value, seen = new WeakSet()) => {
|
|
|
91
91
|
return `regexp:${value.toString()}`;
|
|
92
92
|
}
|
|
93
93
|
if (seen.has(value)) {
|
|
94
|
-
throw new Error(
|
|
94
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点业务字段存在循环引用,无法校验多实例一致性') : '树节点业务字段存在循环引用,无法校验多实例一致性'));
|
|
95
95
|
}
|
|
96
96
|
seen.add(value);
|
|
97
97
|
let result;
|
|
@@ -138,7 +138,7 @@ const validateFieldNames = (fields, identityConfig) => {
|
|
|
138
138
|
];
|
|
139
139
|
let relationSet = new Set(relationFields);
|
|
140
140
|
if (relationSet.size !== relationFields.length) {
|
|
141
|
-
throw new Error(
|
|
141
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树表字段不能重复:{p0}', { p0: relationFields.join(", ") }) : '树表字段不能重复:{p0}'));
|
|
142
142
|
}
|
|
143
143
|
[
|
|
144
144
|
fields.rowField,
|
|
@@ -147,7 +147,7 @@ const validateFieldNames = (fields, identityConfig) => {
|
|
|
147
147
|
fields.hasChildField,
|
|
148
148
|
].forEach((field) => {
|
|
149
149
|
if (INTERNAL_TREE_FIELDS.has(field)) {
|
|
150
|
-
throw new Error(
|
|
150
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树表业务字段不能使用内部字段名:{p0}', { p0: field }) : '树表业务字段不能使用内部字段名:{p0}'));
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
153
|
if (
|
|
@@ -155,7 +155,7 @@ const validateFieldNames = (fields, identityConfig) => {
|
|
|
155
155
|
&& fields.mapChildrenField !== DEFAULT_MAP_CHILDREN_FIELD
|
|
156
156
|
) {
|
|
157
157
|
throw new Error(
|
|
158
|
-
|
|
158
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('mapChildren 不能使用内部字段名:{p0}', { p0: fields.mapChildrenField }) : 'mapChildren 不能使用内部字段名:{p0}')
|
|
159
159
|
);
|
|
160
160
|
}
|
|
161
161
|
if (!identityConfig) return;
|
|
@@ -165,11 +165,11 @@ const validateFieldNames = (fields, identityConfig) => {
|
|
|
165
165
|
&& relationSet.has(physicalIdField)
|
|
166
166
|
) {
|
|
167
167
|
throw new Error(
|
|
168
|
-
|
|
168
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('physicalIdField 只能与 rowField 相同,不能使用:{p0}', { p0: physicalIdField }) : 'physicalIdField 只能与 rowField 相同,不能使用:{p0}')
|
|
169
169
|
);
|
|
170
170
|
}
|
|
171
171
|
if (INTERNAL_TREE_FIELDS.has(physicalIdField)) {
|
|
172
|
-
throw new Error(
|
|
172
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('physicalIdField 不能使用内部字段名:{p0}', { p0: physicalIdField }) : 'physicalIdField 不能使用内部字段名:{p0}'));
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
175
|
|
|
@@ -223,11 +223,11 @@ export const resolveTreeFields = (
|
|
|
223
223
|
"hasChildField",
|
|
224
224
|
].forEach((key) => {
|
|
225
225
|
if (!fields[key] || typeof fields[key] !== "string") {
|
|
226
|
-
throw new Error(
|
|
226
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('treeConfig.{p0} 不能为空', { p0: key }) : 'treeConfig.{p0} 不能为空'));
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
if (treeConfig.transform === false) {
|
|
230
|
-
throw new Error(
|
|
230
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('xform 树表必须启用 treeConfig.transform') : 'xform 树表必须启用 treeConfig.transform'));
|
|
231
231
|
}
|
|
232
232
|
validateFieldNames(fields);
|
|
233
233
|
}
|
|
@@ -257,14 +257,14 @@ export const resolveTreeIdentityConfig = (
|
|
|
257
257
|
};
|
|
258
258
|
if (!isRootParent(identityConfig.rootParentValue)) {
|
|
259
259
|
throw new Error(
|
|
260
|
-
|
|
260
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('rootParentValue 不是有效根值:{p0}', { p0: identityConfig.rootParentValue }) : 'rootParentValue 不是有效根值:{p0}')
|
|
261
261
|
);
|
|
262
262
|
}
|
|
263
263
|
if (
|
|
264
264
|
!identityConfig.physicalIdField
|
|
265
265
|
|| typeof identityConfig.physicalIdField !== "string"
|
|
266
266
|
) {
|
|
267
|
-
throw new Error(
|
|
267
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('physicalIdField 不能为空') : 'physicalIdField 不能为空'));
|
|
268
268
|
}
|
|
269
269
|
if (
|
|
270
270
|
fields.rowField === "id"
|
|
@@ -279,7 +279,7 @@ export const resolveTreeIdentityConfig = (
|
|
|
279
279
|
identityConfig.persistedRowFieldChangeStrategy
|
|
280
280
|
)
|
|
281
281
|
) {
|
|
282
|
-
throw new Error(
|
|
282
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('persistedRowFieldChangeStrategy 配置无效') : 'persistedRowFieldChangeStrategy 配置无效'));
|
|
283
283
|
}
|
|
284
284
|
if (
|
|
285
285
|
identityConfig.persistedRowFieldChangeStrategy === "transactional"
|
|
@@ -304,7 +304,7 @@ export const resolveTreeCopyConfig = (
|
|
|
304
304
|
? "regenerate"
|
|
305
305
|
: "preserve");
|
|
306
306
|
if (!["preserve", "regenerate", "custom"].includes(rowFieldStrategy)) {
|
|
307
|
-
throw new Error(
|
|
307
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('rowFieldStrategy 配置无效:{p0}', { p0: rowFieldStrategy }) : 'rowFieldStrategy 配置无效:{p0}'));
|
|
308
308
|
}
|
|
309
309
|
if (
|
|
310
310
|
fields.rowField === identityConfig.physicalIdField
|
|
@@ -326,19 +326,19 @@ export const resolveTreeCopyConfig = (
|
|
|
326
326
|
config.orphanParentStrategy
|
|
327
327
|
&& !["detach", "preserve"].includes(config.orphanParentStrategy)
|
|
328
328
|
) {
|
|
329
|
-
throw new Error(
|
|
329
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('treeCopyConfig.orphanParentStrategy 配置无效') : 'treeCopyConfig.orphanParentStrategy 配置无效'));
|
|
330
330
|
}
|
|
331
331
|
if (
|
|
332
332
|
config.lazyStrategy
|
|
333
333
|
&& !["reject", "loadAll"].includes(config.lazyStrategy)
|
|
334
334
|
) {
|
|
335
|
-
throw new Error(
|
|
335
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('treeCopyConfig.lazyStrategy 配置无效') : 'treeCopyConfig.lazyStrategy 配置无效'));
|
|
336
336
|
}
|
|
337
337
|
if (
|
|
338
338
|
rowFieldStrategy === "custom"
|
|
339
339
|
&& typeof config.generateRowField !== "function"
|
|
340
340
|
) {
|
|
341
|
-
throw new Error(
|
|
341
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('custom 复制策略必须配置 generateRowField') : 'custom 复制策略必须配置 generateRowField'));
|
|
342
342
|
}
|
|
343
343
|
if (
|
|
344
344
|
rowFieldStrategy === "regenerate"
|
|
@@ -366,17 +366,17 @@ export const resolveTreeSubmitConfig = (config = {}) => {
|
|
|
366
366
|
config.successReconcileStrategy || "reload",
|
|
367
367
|
};
|
|
368
368
|
if (!["preserve", "reject"].includes(result.orphanParentStrategy)) {
|
|
369
|
-
throw new Error(
|
|
369
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('treeSubmitConfig.orphanParentStrategy 配置无效') : 'treeSubmitConfig.orphanParentStrategy 配置无效'));
|
|
370
370
|
}
|
|
371
371
|
if (
|
|
372
372
|
!["reject", "loadAll", "omit"].includes(
|
|
373
373
|
result.unloadedChildrenStrategy
|
|
374
374
|
)
|
|
375
375
|
) {
|
|
376
|
-
throw new Error(
|
|
376
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('treeSubmitConfig.unloadedChildrenStrategy 配置无效') : 'treeSubmitConfig.unloadedChildrenStrategy 配置无效'));
|
|
377
377
|
}
|
|
378
378
|
if (result.successReconcileStrategy !== "reload") {
|
|
379
|
-
throw new Error(
|
|
379
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('当前仅支持 successReconcileStrategy: reload') : '当前仅支持 successReconcileStrategy: reload'));
|
|
380
380
|
}
|
|
381
381
|
return result;
|
|
382
382
|
};
|
|
@@ -487,7 +487,7 @@ export const collectTreeNodes = (
|
|
|
487
487
|
let normalized = normalizeTreeKey(value);
|
|
488
488
|
let previousRowKey = index.get(normalized);
|
|
489
489
|
if (previousRowKey && previousRowKey !== rowKey) {
|
|
490
|
-
throw new Error(
|
|
490
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('{p0} {p1} 同时指向多个树节点', { p0: label, p1: value }) : '{p0} {p1} 同时指向多个树节点'));
|
|
491
491
|
}
|
|
492
492
|
index.set(normalized, rowKey);
|
|
493
493
|
};
|
|
@@ -499,7 +499,7 @@ export const collectTreeNodes = (
|
|
|
499
499
|
let rowValue = node[resolvedFields.rowField];
|
|
500
500
|
if (isRootParent(rowValue)) {
|
|
501
501
|
throw new Error(
|
|
502
|
-
|
|
502
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点 {p0} 不能为空或根哨兵', { p0: resolvedFields.rowField }) : '树节点 {p0} 不能为空或根哨兵')
|
|
503
503
|
);
|
|
504
504
|
}
|
|
505
505
|
let key = normalizeTreeKey(rowValue);
|
|
@@ -533,7 +533,7 @@ export const collectTreeNodes = (
|
|
|
533
533
|
&& previousPhysicalId !== normalizedPhysicalId
|
|
534
534
|
) {
|
|
535
535
|
throw new Error(
|
|
536
|
-
|
|
536
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点 {p0} 存在冲突的物理 ID', { p0: rowValue }) : '树节点 {p0} 存在冲突的物理 ID')
|
|
537
537
|
);
|
|
538
538
|
}
|
|
539
539
|
physicalIdByRowKey.set(key, normalizedPhysicalId);
|
|
@@ -572,7 +572,7 @@ export const collectTreeNodes = (
|
|
|
572
572
|
let nextSnapshot = getComparableSnapshot(node, resolvedFields);
|
|
573
573
|
if (currentMeta.snapshot !== nextSnapshot) {
|
|
574
574
|
throw new Error(
|
|
575
|
-
|
|
575
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点 {p0} 存在内容冲突的多个对象实例', { p0: rowValue }) : '树节点 {p0} 存在内容冲突的多个对象实例')
|
|
576
576
|
);
|
|
577
577
|
}
|
|
578
578
|
if (
|
|
@@ -580,7 +580,7 @@ export const collectTreeNodes = (
|
|
|
580
580
|
&& temporaryMarker !== null
|
|
581
581
|
&& currentMeta.temporaryMarker !== temporaryMarker
|
|
582
582
|
) {
|
|
583
|
-
throw new Error(
|
|
583
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点 {p0} 存在冲突的临时标记', { p0: rowValue }) : '树节点 {p0} 存在冲突的临时标记'));
|
|
584
584
|
}
|
|
585
585
|
if (
|
|
586
586
|
currentMeta.temporaryMarker === null
|
|
@@ -639,7 +639,7 @@ export const validateTreeGraph = (
|
|
|
639
639
|
let value = node[resolvedFields.rowField];
|
|
640
640
|
let key = normalizeTreeKey(value);
|
|
641
641
|
if (nodeByKey.has(key) && nodeByKey.get(key) !== node) {
|
|
642
|
-
throw new Error(
|
|
642
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树键重复:{p0}', { p0: value }) : '树键重复:{p0}'));
|
|
643
643
|
}
|
|
644
644
|
nodeByKey.set(key, node);
|
|
645
645
|
valueByKey.set(key, value);
|
|
@@ -650,11 +650,11 @@ export const validateTreeGraph = (
|
|
|
650
650
|
let parentKey = normalizeTreeKey(edge.parentKey);
|
|
651
651
|
let childKey = normalizeTreeKey(edge.childKey);
|
|
652
652
|
if (parentKey === childKey) {
|
|
653
|
-
throw new Error(
|
|
653
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点不能指向自身:{p0}', { p0: edge.childKey }) : '树节点不能指向自身:{p0}'));
|
|
654
654
|
}
|
|
655
655
|
let previous = nestedParents.get(childKey);
|
|
656
656
|
if (previous && previous !== parentKey) {
|
|
657
|
-
throw new Error(
|
|
657
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点存在多个父节点:{p0}', { p0: edge.childKey }) : '树节点存在多个父节点:{p0}'));
|
|
658
658
|
}
|
|
659
659
|
nestedParents.set(childKey, parentKey);
|
|
660
660
|
});
|
|
@@ -670,7 +670,7 @@ export const validateTreeGraph = (
|
|
|
670
670
|
if (ownsParent) {
|
|
671
671
|
if (isRootParent(parentValue)) {
|
|
672
672
|
if (nestedParentKey) {
|
|
673
|
-
throw new Error(
|
|
673
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('根节点嵌套在其他父节点下:{p0}', { p0: childValue }) : '根节点嵌套在其他父节点下:{p0}'));
|
|
674
674
|
}
|
|
675
675
|
parentKeyByChild.set(childKey, null);
|
|
676
676
|
return;
|
|
@@ -680,10 +680,10 @@ export const validateTreeGraph = (
|
|
|
680
680
|
nestedParentKey
|
|
681
681
|
&& explicitParentKey !== nestedParentKey
|
|
682
682
|
) {
|
|
683
|
-
throw new Error(
|
|
683
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('父字段与嵌套位置冲突:{p0}', { p0: childValue }) : '父字段与嵌套位置冲突:{p0}'));
|
|
684
684
|
}
|
|
685
685
|
if (explicitParentKey === childKey) {
|
|
686
|
-
throw new Error(
|
|
686
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点不能指向自身:{p0}', { p0: childValue }) : '树节点不能指向自身:{p0}'));
|
|
687
687
|
}
|
|
688
688
|
parentKeyByChild.set(childKey, explicitParentKey);
|
|
689
689
|
return;
|
|
@@ -696,7 +696,7 @@ export const validateTreeGraph = (
|
|
|
696
696
|
let visit = (key) => {
|
|
697
697
|
let state = visitState.get(key);
|
|
698
698
|
if (state === 1) {
|
|
699
|
-
throw new Error(
|
|
699
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树结构存在环:{p0}', { p0: valueByKey.get(key) || key }) : '树结构存在环:{p0}'));
|
|
700
700
|
}
|
|
701
701
|
if (state === 2) return;
|
|
702
702
|
visitState.set(key, 1);
|
|
@@ -788,7 +788,7 @@ export const canonicalizeTreeInput = (
|
|
|
788
788
|
let key = normalizeTreeKey(clone[resolvedFields.rowField]);
|
|
789
789
|
if (normalizedKeys.has(key)) {
|
|
790
790
|
throw new Error(
|
|
791
|
-
|
|
791
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树键归一后冲突:{p0}', { p0: clone[resolvedFields.rowField] }) : '树键归一后冲突:{p0}')
|
|
792
792
|
);
|
|
793
793
|
}
|
|
794
794
|
normalizedKeys.add(key);
|
|
@@ -876,7 +876,7 @@ const getTopologicalOrder = (nodes, graph, fields) => {
|
|
|
876
876
|
});
|
|
877
877
|
}
|
|
878
878
|
if (result.length !== nodes.length) {
|
|
879
|
-
throw new Error(
|
|
879
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树结构存在环,无法生成复制顺序') : '树结构存在环,无法生成复制顺序'));
|
|
880
880
|
}
|
|
881
881
|
return result;
|
|
882
882
|
};
|
|
@@ -977,7 +977,7 @@ export const copyTreeData = (
|
|
|
977
977
|
registryHas(temporaryKeyRegistry, oldParentValue)
|
|
978
978
|
|| registryHas(targetTemporaryKeys, oldParentValue)
|
|
979
979
|
) {
|
|
980
|
-
throw new Error(
|
|
980
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('外部父键仍为临时值:{p0}', { p0: oldParentValue }) : '外部父键仍为临时值:{p0}'));
|
|
981
981
|
}
|
|
982
982
|
let isFormal
|
|
983
983
|
= registryHas(knownFormalKeyRegistry, oldParentValue)
|
|
@@ -988,7 +988,7 @@ export const copyTreeData = (
|
|
|
988
988
|
"copy"
|
|
989
989
|
);
|
|
990
990
|
if (!isFormal) {
|
|
991
|
-
throw new Error(
|
|
991
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('无法确认外部父键:{p0}', { p0: oldParentValue }) : '无法确认外部父键:{p0}'));
|
|
992
992
|
}
|
|
993
993
|
newParentValue = oldParentValue;
|
|
994
994
|
}
|
|
@@ -1004,7 +1004,7 @@ export const copyTreeData = (
|
|
|
1004
1004
|
)
|
|
1005
1005
|
|| registryHas(temporaryKeyRegistry, oldValue)
|
|
1006
1006
|
) {
|
|
1007
|
-
throw new Error(
|
|
1007
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('不能保留临时树键:{p0}', { p0: oldValue }) : '不能保留临时树键:{p0}'));
|
|
1008
1008
|
}
|
|
1009
1009
|
generated = {
|
|
1010
1010
|
value: oldValue,
|
|
@@ -1032,7 +1032,7 @@ export const copyTreeData = (
|
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
1034
|
if (isRootParent(generated.value)) {
|
|
1035
|
-
throw new Error(
|
|
1035
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('复制生成的树键无效:{p0}', { p0: generated.value }) : '复制生成的树键无效:{p0}'));
|
|
1036
1036
|
}
|
|
1037
1037
|
if (
|
|
1038
1038
|
resolvedFields.rowField === resolvedIdentity.physicalIdField
|
|
@@ -1045,7 +1045,7 @@ export const copyTreeData = (
|
|
|
1045
1045
|
|
|
1046
1046
|
let newKey = normalizeTreeKey(generated.value);
|
|
1047
1047
|
if (usedNewKeys.has(newKey) || targetKeys.has(newKey)) {
|
|
1048
|
-
throw new Error(
|
|
1048
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('复制生成的树键冲突:{p0}', { p0: generated.value }) : '复制生成的树键冲突:{p0}'));
|
|
1049
1049
|
}
|
|
1050
1050
|
usedNewKeys.add(newKey);
|
|
1051
1051
|
|
|
@@ -1142,7 +1142,7 @@ export const sanitizeTreeRow = (
|
|
|
1142
1142
|
result[resolvedFields.rowField] = null;
|
|
1143
1143
|
} else if (!allowUnresolvedTemporary) {
|
|
1144
1144
|
throw new Error(
|
|
1145
|
-
|
|
1145
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('{p0} 仍是临时值,不能提交', { p0: resolvedFields.rowField }) : '{p0} 仍是临时值,不能提交')
|
|
1146
1146
|
);
|
|
1147
1147
|
}
|
|
1148
1148
|
}
|
|
@@ -1259,10 +1259,10 @@ export const buildTreeSubmitData = (
|
|
|
1259
1259
|
}
|
|
1260
1260
|
|
|
1261
1261
|
if (registryHas(tempKeys, parentValue)) {
|
|
1262
|
-
throw new Error(
|
|
1262
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('父键仍指向未提交的临时节点:{p0}', { p0: parentValue }) : '父键仍指向未提交的临时节点:{p0}'));
|
|
1263
1263
|
}
|
|
1264
1264
|
if (resolvedSubmit.orphanParentStrategy === "reject") {
|
|
1265
|
-
throw new Error(
|
|
1265
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('父节点不在提交集合中:{p0}', { p0: parentValue }) : '父节点不在提交集合中:{p0}'));
|
|
1266
1266
|
}
|
|
1267
1267
|
let formal
|
|
1268
1268
|
= !strict
|
|
@@ -1274,7 +1274,7 @@ export const buildTreeSubmitData = (
|
|
|
1274
1274
|
"submit"
|
|
1275
1275
|
);
|
|
1276
1276
|
if (!formal) {
|
|
1277
|
-
throw new Error(
|
|
1277
|
+
throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('无法确认外部父键:{p0}', { p0: parentValue }) : '无法确认外部父键:{p0}'));
|
|
1278
1278
|
}
|
|
1279
1279
|
roots.push(clone);
|
|
1280
1280
|
});
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
</span>
|
|
48
48
|
</el-dialog>
|
|
49
49
|
<el-dialog
|
|
50
|
-
title="新建企业JSON维护"
|
|
50
|
+
:title="$t1('新建企业JSON维护')"
|
|
51
51
|
:append-to-body="true"
|
|
52
52
|
:modal-append-to-body="true"
|
|
53
53
|
:close-on-click-modal="false"
|
|
@@ -103,7 +103,7 @@ export default {
|
|
|
103
103
|
dialogConfirm() {
|
|
104
104
|
this.extractedCode = null;
|
|
105
105
|
if (!this.formData.sid) {
|
|
106
|
-
this.$baseAlert("唯一标识不能为空");
|
|
106
|
+
this.$baseAlert(this.$t1("唯一标识不能为空"));
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
109
|
this.$http({
|
|
@@ -54,7 +54,7 @@ export default {
|
|
|
54
54
|
success: (res) => {
|
|
55
55
|
this.$i18n.locale = command; // 设置给本地的i18n插件
|
|
56
56
|
localStorage.setItem("i18n-lang", command);
|
|
57
|
-
this.$message.success("切换多语言成功");
|
|
57
|
+
this.$message.success(this.$t1("切换多语言成功"));
|
|
58
58
|
// qiankun 子应用形态(自治嵌入壳可见时才有本入口):reload 会刷新宿主整页,
|
|
59
59
|
// 降级为仅切换本应用词条;存量页面快照词条需刷新后完全生效
|
|
60
60
|
if (this.$store.state.micro && this.$store.state.micro.isMicro) {
|
package/src/utils/vab.js
CHANGED
|
@@ -11,6 +11,7 @@ import { getToken } from "./auth";
|
|
|
11
11
|
import XEUtils from "xe-utils";
|
|
12
12
|
|
|
13
13
|
import prefixConfig from "@/prefixConfig.js";
|
|
14
|
+
import settingConfig from "@/settings.js";
|
|
14
15
|
import moment from "moment";
|
|
15
16
|
import { openView } from "./repeatOpen";
|
|
16
17
|
import { assetUrl } from "./assetUrl";
|
|
@@ -1269,6 +1270,9 @@ install = (Vue, opts = {}) => {
|
|
|
1269
1270
|
};
|
|
1270
1271
|
|
|
1271
1272
|
Vue.prototype.$t2 = function (defaultValue, path, values) {
|
|
1273
|
+
if (settingConfig.t2ToT1Enabled === true) {
|
|
1274
|
+
return Vue.prototype.$t1.call(this, defaultValue, values);
|
|
1275
|
+
}
|
|
1272
1276
|
let that = window.$vueRoot;
|
|
1273
1277
|
if (!that.hasOwnProperty("_i18n")) {
|
|
1274
1278
|
return defaultValue;
|
|
@@ -109,23 +109,23 @@ export default {
|
|
|
109
109
|
columns: [
|
|
110
110
|
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
111
111
|
{
|
|
112
|
-
title: 'API请求名称',
|
|
112
|
+
title: this.$t1('API请求名称'),
|
|
113
113
|
field: 'apiReqName',
|
|
114
114
|
width: 180,
|
|
115
115
|
fixed: 'left'
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
|
-
title: 'API请求编码',
|
|
118
|
+
title: this.$t1('API请求编码'),
|
|
119
119
|
field: 'apiReqCode',
|
|
120
120
|
width: 180
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
|
-
title: '请求URL',
|
|
123
|
+
title: this.$t1('请求URL'),
|
|
124
124
|
field: 'url',
|
|
125
125
|
width: 150
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
|
-
title: '脚本',
|
|
128
|
+
title: this.$t1('脚本'),
|
|
129
129
|
field: 'script',
|
|
130
130
|
width: 150
|
|
131
131
|
},
|
|
@@ -138,13 +138,13 @@ export default {
|
|
|
138
138
|
if (row.enabled) {
|
|
139
139
|
return [
|
|
140
140
|
<div class="txt-status">
|
|
141
|
-
<span
|
|
141
|
+
<span>{this.$t1('启用')}</span>
|
|
142
142
|
</div>
|
|
143
143
|
];
|
|
144
144
|
} else {
|
|
145
145
|
return [
|
|
146
146
|
<div class="txt-status disable">
|
|
147
|
-
<span
|
|
147
|
+
<span>{this.$t1('禁用')}</span>
|
|
148
148
|
</div>
|
|
149
149
|
];
|
|
150
150
|
}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
size="small"
|
|
48
48
|
v-model="formData[fieldDTO.fieldName]"
|
|
49
49
|
type="date"
|
|
50
|
-
placeholder="选择日期"
|
|
50
|
+
:placeholder="$t1('选择日期')"
|
|
51
51
|
value-format="yyyy-MM-dd"
|
|
52
52
|
clearable
|
|
53
53
|
v-bind="fieldDTO.option"
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
size="small"
|
|
140
140
|
v-model="itemData[fieldDTO.fieldName]"
|
|
141
141
|
type="date"
|
|
142
|
-
placeholder="选择日期"
|
|
142
|
+
:placeholder="$t1('选择日期')"
|
|
143
143
|
value-format="yyyy-MM-dd"
|
|
144
144
|
clearable
|
|
145
145
|
v-bind="fieldDTO.option"
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="errPage-container">
|
|
3
3
|
<el-button icon="el-icon-arrow-left" class="pan-back-btn" @click="back">
|
|
4
|
-
返回
|
|
4
|
+
{{ $t1('返回') }}
|
|
5
5
|
</el-button>
|
|
6
6
|
<el-row>
|
|
7
7
|
<el-col :span="12">
|
|
8
8
|
<h1 class="text-jumbo text-ginormous">
|
|
9
9
|
Oops!
|
|
10
10
|
</h1>
|
|
11
|
-
gif
|
|
12
|
-
<h2
|
|
13
|
-
<h6
|
|
11
|
+
{{ $t1('gif来源') }}<a href="https://zh.airbnb.com/" target="_blank">airbnb</a> {{ $t1('页面') }}
|
|
12
|
+
<h2>{{ $t1('你没有权限去该页面') }}</h2>
|
|
13
|
+
<h6>{{ $t1('如有不满请联系你领导') }}</h6>
|
|
14
14
|
<ul class="list-unstyled">
|
|
15
|
-
<li
|
|
15
|
+
<li>{{ $t1('或者你可以去:') }}</li>
|
|
16
16
|
<li class="link-type">
|
|
17
17
|
<router-link to="/">
|
|
18
|
-
回首页
|
|
18
|
+
{{ $t1('回首页') }}
|
|
19
19
|
</router-link>
|
|
20
20
|
</li>
|
|
21
21
|
<li class="link-type">
|
|
22
|
-
<a href="https://www.taobao.com/"
|
|
22
|
+
<a href="https://www.taobao.com/">{{ $t1('随便看看') }}</a>
|
|
23
23
|
</li>
|
|
24
|
-
<li><a href="#" @click.prevent="dialogVisible=true"
|
|
24
|
+
<li><a href="#" @click.prevent="dialogVisible=true">{{ $t1('点我看图') }}</a></li>
|
|
25
25
|
</ul>
|
|
26
26
|
</el-col>
|
|
27
27
|
<el-col :span="12">
|
|
28
28
|
<img :src="errGif" width="313" height="428" alt="Girl has dropped her ice cream.">
|
|
29
29
|
</el-col>
|
|
30
30
|
</el-row>
|
|
31
|
-
<el-dialog :visible.sync="dialogVisible" title="随便看">
|
|
31
|
+
<el-dialog :visible.sync="dialogVisible" :title="$t1('随便看')">
|
|
32
32
|
<img :src="ewizardClap" class="pan-img">
|
|
33
33
|
</el-dialog>
|
|
34
34
|
</div>
|