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
|
@@ -4058,6 +4058,10 @@ export const advancedFields = [
|
|
|
4058
4058
|
flatCollapseTags: false,
|
|
4059
4059
|
checkStrictly: false, //可选择任意一级选项,默认不开启
|
|
4060
4060
|
showAllLevels: true, //显示完整路径
|
|
4061
|
+
lazy: false, //展开节点时按级请求「请求访问」脚本,只走 list,不走分页
|
|
4062
|
+
parentKey: "", //未维护时请求仍用 f_parent,不回填到输入框
|
|
4063
|
+
hasChildKey: "", //未维护时用 f_has_child 判断是否有子节点,不回填到输入框
|
|
4064
|
+
lazyParamScript: "", //懒加载传参脚本,返回选中行的其他字段并入 data
|
|
4061
4065
|
dsEnabled: false, // 是否使用数据源数据
|
|
4062
4066
|
dsName: "", // 数据源名称
|
|
4063
4067
|
dataSetName: "", //数据集名称
|
|
@@ -4090,9 +4094,12 @@ export const advancedFields = [
|
|
|
4090
4094
|
onCreated: "",
|
|
4091
4095
|
onMounted: "",
|
|
4092
4096
|
onChange: "",
|
|
4097
|
+
onSelect: "", //用户选中时触发,item.level 为 0 省、1 市、2 区、3 镇
|
|
4098
|
+
onClear: "", //用户清空时触发,不走 onSelect
|
|
4093
4099
|
onFocus: "",
|
|
4094
4100
|
onBlur: "",
|
|
4095
4101
|
onValidate: "",
|
|
4102
|
+
onLazyLoad: "", //未启用请求访问时的自定义懒加载:onLazyLoad(node, resolve)
|
|
4096
4103
|
},
|
|
4097
4104
|
},
|
|
4098
4105
|
];
|
|
@@ -235,11 +235,11 @@
|
|
|
235
235
|
<template #editTreeButtonGroup="obj">
|
|
236
236
|
<div class="cell-operate">
|
|
237
237
|
<template v-if="getGridTable().isActiveByRow(obj.row)">
|
|
238
|
-
<a @click="saveEditRow(obj)" class="a-link" data-tit="保存">
|
|
238
|
+
<a @click="saveEditRow(obj)" class="a-link" :data-tit="$t1('保存')">
|
|
239
239
|
<el-tooltip
|
|
240
240
|
:enterable="false"
|
|
241
241
|
effect="dark"
|
|
242
|
-
content="保存"
|
|
242
|
+
:content="$t1('保存')"
|
|
243
243
|
placement="top"
|
|
244
244
|
popper-class="tooltip-skin"
|
|
245
245
|
><i class="el-icon-circle-check"></i
|
|
@@ -248,13 +248,13 @@
|
|
|
248
248
|
<a
|
|
249
249
|
@click="cancleRowEvent(obj)"
|
|
250
250
|
class="a-link"
|
|
251
|
-
data-tit="取消行编辑"
|
|
251
|
+
:data-tit="$t1('取消行编辑')"
|
|
252
252
|
v-if="hasSaveRow(obj.row)"
|
|
253
253
|
>
|
|
254
254
|
<el-tooltip
|
|
255
255
|
:enterable="false"
|
|
256
256
|
effect="dark"
|
|
257
|
-
content="取消行编辑"
|
|
257
|
+
:content="$t1('取消行编辑')"
|
|
258
258
|
placement="top"
|
|
259
259
|
popper-class="tooltip-skin"
|
|
260
260
|
><i class="el-icon-circle-close"></i
|
|
@@ -263,13 +263,13 @@
|
|
|
263
263
|
<a
|
|
264
264
|
@click="removeEditRow(obj)"
|
|
265
265
|
class="a-link"
|
|
266
|
-
data-tit="删除"
|
|
266
|
+
:data-tit="$t1('删除')"
|
|
267
267
|
v-if="!hasSaveRow(obj.row) && canDeleteTableRow(obj)"
|
|
268
268
|
>
|
|
269
269
|
<el-tooltip
|
|
270
270
|
:enterable="false"
|
|
271
271
|
effect="dark"
|
|
272
|
-
content="删除"
|
|
272
|
+
:content="$t1('删除')"
|
|
273
273
|
placement="top"
|
|
274
274
|
popper-class="tooltip-skin"
|
|
275
275
|
><i class="el-icon-delete"></i
|
|
@@ -279,14 +279,14 @@
|
|
|
279
279
|
<template v-else>
|
|
280
280
|
<a
|
|
281
281
|
class="a-link"
|
|
282
|
-
data-tit="新增"
|
|
282
|
+
:data-tit="$t1('新增')"
|
|
283
283
|
@click="addEditRow(null, obj)"
|
|
284
284
|
v-if="widget.options.isTreeTable && canShowRowAdd(obj)"
|
|
285
285
|
>
|
|
286
286
|
<el-tooltip
|
|
287
287
|
:enterable="false"
|
|
288
288
|
effect="dark"
|
|
289
|
-
content="新增"
|
|
289
|
+
:content="$t1('新增')"
|
|
290
290
|
placement="top"
|
|
291
291
|
popper-class="tooltip-skin"
|
|
292
292
|
><i class="el-icon-circle-plus-outline"></i
|
|
@@ -295,13 +295,13 @@
|
|
|
295
295
|
<a
|
|
296
296
|
@click="editRowEvent(obj)"
|
|
297
297
|
class="a-link"
|
|
298
|
-
data-tit="行编辑"
|
|
298
|
+
:data-tit="$t1('行编辑')"
|
|
299
299
|
v-if="canShowRowEdit(obj)"
|
|
300
300
|
>
|
|
301
301
|
<el-tooltip
|
|
302
302
|
:enterable="false"
|
|
303
303
|
effect="dark"
|
|
304
|
-
content="行编辑"
|
|
304
|
+
:content="$t1('行编辑')"
|
|
305
305
|
placement="top"
|
|
306
306
|
popper-class="tooltip-skin"
|
|
307
307
|
><i class="el-icon-edit-outline"></i
|
|
@@ -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
|
}
|