cloud-web-corejs 1.0.54-dev.33 → 1.0.54-dev.330
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -3
- package/src/components/Qrcode/fileParse.vue +0 -1
- package/src/components/VabUpload/index.vue +2 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +135 -119
- package/src/components/advancedSearchDialog/mixins.js +1 -1
- package/src/components/baseAttachment/index.vue +49 -40
- package/src/components/baseAttachment/mixins.js +1 -1
- package/src/components/baseInputExport/mixins.js +386 -1
- package/src/components/errorMsg/mixins.js +94 -5
- package/src/components/excelExport/button.vue +57 -4
- package/src/components/excelExport/exportFieldDialog.vue +16 -6
- package/src/components/excelExport/index.js +7 -5
- package/src/components/excelExport/index.vue +64 -8
- package/src/components/excelExport/mixins.js +3 -2
- package/src/components/excelImport/mixins.js +750 -1
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -0
- package/src/components/fileLibrary/filterDialog.vue +383 -0
- package/src/components/fileLibrary/index.vue +23 -24
- package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +335 -212
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +31 -27
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +4 -4
- package/src/components/fileLibrary/mixins/indexMixins.js +69 -26
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
- package/src/components/fileLibrary/propertiesDialog.vue +18 -0
- package/src/components/fileLibrary/shareDialog.vue +1 -1
- package/src/components/formOplog/mixins.js +1 -1
- package/src/components/jsonImport/index.js +1 -1
- package/src/components/jsonImport/mixins.js +333 -1
- package/src/components/langImport/mixins.js +500 -16
- package/src/components/statusTag/mixins.js +1 -1
- package/src/components/table/CellSlot.vue +1 -0
- package/src/components/table/index.js +12 -10
- package/src/components/table/tableForm.vue +99 -63
- package/src/components/table/tableFormMixin.js +1 -1
- package/src/components/table/util/index.js +328 -0
- package/src/components/table/vxeFilter/mixin.js +6 -6
- package/src/components/tempStorage/index.vue +9 -6
- package/src/components/tempStorage/tempStorageDialog.vue +1 -1
- package/src/components/vb-tabs/x-tabs.vue +3 -2
- package/src/components/wf/addOpinionButton.vue +57 -0
- package/src/components/wf/content.vue +138 -28
- package/src/components/wf/mixins/addOpinionButton.js +3 -0
- package/src/components/wf/mixins/setCandidateButton.js +6 -0
- package/src/components/wf/mixins/setCandidateDialog.js +2 -1
- package/src/components/wf/mixins/setCandidateDialog2.js +6 -0
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +3 -0
- package/src/components/wf/setCandidateButton.vue +40 -0
- package/src/components/wf/setCandidateDialog.vue +10 -0
- package/src/components/wf/setCandidateDialog2.vue +95 -0
- package/src/components/wf/wf.js +1 -1
- package/src/components/wf/wfStartDialog.vue +70 -42
- package/src/components/wf/wfTaskUserRangeDialog.vue +65 -0
- package/src/components/wf/wfUtil.js +1 -1
- package/src/components/xform/form-designer/designer.js +1647 -3
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +289 -8
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
- package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +16 -4
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1312 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +26 -7
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +21 -2
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1584 -16
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +652 -379
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +6 -8
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +176 -0
- package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +107 -81
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +108 -0
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +70 -3
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +21 -5
- package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +17 -5
- package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -0
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +22 -17
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +127 -0
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +2 -170
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +259 -58
- package/src/components/xform/form-designer/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +927 -159
- package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +71 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +126 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1079 -1042
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1160 -511
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +64 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +26 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +86 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +8 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +91 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +47 -28
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +46 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +19 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +318 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +10 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +305 -19
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +384 -53
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +263 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +27 -11
- package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +3 -2
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1478 -865
- package/src/components/xform/form-render/container-item/containerItemMixin.js +359 -11
- package/src/components/xform/form-render/container-item/data-table-item.vue +86 -42
- package/src/components/xform/form-render/container-item/data-table-mixin.js +2580 -18
- package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
- package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
- package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
- package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
- package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
- package/src/components/xform/form-render/container-item/table-item.vue +4 -2
- package/src/components/xform/form-render/index.vue +4 -1
- package/src/components/xform/form-render/indexMixin.js +3129 -4
- package/src/components/xform/lang/zh-CN.js +18 -3
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +174 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/format.js +21 -30
- package/src/components/xform/utils/formula-util.js +669 -0
- package/src/components/xform/utils/util.js +1451 -1
- package/src/components/xform/utils/validators.js +1 -5
- package/src/index.js +2 -2
- package/src/layout/components/AppMain.vue +5 -1
- package/src/layout/components/Sidebar/default.vue +50 -6
- package/src/layout/components/TagsView/index.vue +37 -12
- package/src/layout/components/extractedCode/createDialog.vue +92 -0
- package/src/layout/components/extractedCode/queryDialog.vue +96 -0
- package/src/layout/components/extractedCode/viewDialog.vue +193 -0
- package/src/layout/components/watermark/index.vue +83 -0
- package/src/layout/defaultLayout.vue +1 -1
- package/src/mixins/selectDialog/index.js +1 -1
- package/src/mixins/tableTree/index.js +1 -1
- package/src/router/modules/customer.js +61 -8
- package/src/store/config/index.js +1 -1
- package/src/store/modules/permission.js +1 -1
- package/src/store/modules/settings.js +1 -1
- package/src/store/modules/tagsView.js +1 -14
- package/src/store/modules/user.js +1 -1
- package/src/utils/index.js +2 -3
- package/src/utils/pddLog.js +103 -0
- package/src/utils/pdfUtil.js +71 -0
- package/src/utils/request.js +1 -1
- package/src/utils/vab.js +19 -27
- package/src/views/bd/setting/bd_attach_setting/edit.vue +5 -5
- package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
- package/src/views/bd/setting/bd_company_env/edit.vue +163 -0
- package/src/views/bd/setting/bd_company_env/list.vue +175 -0
- package/src/views/bd/setting/config_manage/list.vue +51 -0
- package/src/views/bd/setting/form_import_log/edit.vue +127 -0
- package/src/views/bd/setting/form_import_log/list.vue +206 -0
- package/src/views/bd/setting/form_script/edit.vue +9 -0
- package/src/views/bd/setting/form_script/edit1.vue +36 -3
- package/src/views/bd/setting/form_script/form_list.vue +1 -1
- package/src/views/bd/setting/form_script/list1.vue +4 -4
- package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +201 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
- package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
- package/src/views/bd/setting/form_script/mixins/list.js +236 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +422 -14
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
- package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
- package/src/views/bd/setting/form_template/edit.vue +22 -1
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/list.vue +5 -5
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +282 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
- package/src/views/bd/setting/form_template/mixins/list.js +688 -22
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
- package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
- package/src/views/bd/setting/form_template/wf_list.vue +127 -0
- package/src/views/bd/setting/menu_kind/list.vue +4 -0
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -1
- package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
- package/src/views/bd/setting/push_data/edit.vue +139 -0
- package/src/views/bd/setting/push_data/list.vue +283 -0
- package/src/views/bd/setting/push_data_h/edit.vue +153 -0
- package/src/views/bd/setting/push_data_h/list.vue +293 -0
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -0
- package/src/views/bd/setting/request_async_setting/list.vue +317 -0
- package/src/views/bd/setting/request_setting/edit.vue +300 -0
- package/src/views/bd/setting/request_setting/list.vue +268 -0
- package/src/views/bd/setting/table_model/edit.vue +875 -426
- package/src/views/bd/setting/table_model/list.vue +4 -4
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit.js +1202 -13
- package/src/views/bd/setting/table_model/mixins/list.js +439 -14
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/user/area/dialog.vue +21 -9
- package/src/views/user/bill_setting/edit.vue +1 -1
- package/src/views/user/bill_setting/list.vue +1 -1
- package/src/views/user/common_attribute/itemEdit.vue +2 -2
- package/src/views/user/common_attribute/list.vue +1 -1
- package/src/views/user/common_script/edit.vue +1 -1
- package/src/views/user/common_script/list.vue +1 -1
- package/src/views/user/company_info/dialog.vue +164 -154
- package/src/views/user/company_info/edit.vue +1 -1
- package/src/views/user/extend_datasource/dialog.vue +1 -0
- package/src/views/user/extend_datasource/edit.vue +3 -0
- package/src/views/user/extend_datasource/list.vue +2 -1
- package/src/views/user/fieldTranslation/editDialog.vue +7 -7
- package/src/views/user/fieldTranslation/list.vue +32 -32
- package/src/views/user/form/vform/designer.vue +775 -749
- package/src/views/user/form/vform/out_render.vue +1 -1
- package/src/views/user/form/vform/render.vue +8 -4
- package/src/views/user/form/view/edit.vue +38 -37
- package/src/views/user/form/view/list.vue +68 -15
- package/src/views/user/groups/edit.vue +2 -0
- package/src/views/user/groups/list.vue +1 -0
- package/src/views/user/home/default.vue +1025 -979
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +16 -6
- package/src/views/user/home/taili/index.vue +1034 -0
- package/src/views/user/login/default.vue +32 -3
- package/src/views/user/login/indexMixin.js +117 -3
- package/src/views/user/notify_message/dialog.vue +23 -8
- package/src/views/user/notify_template/edit.vue +188 -187
- package/src/views/user/notify_template/edit2.vue +176 -0
- package/src/views/user/notify_template/list.vue +4 -1
- package/src/views/user/notify_template/list2.vue +190 -0
- package/src/views/user/outLink/form_view.vue +211 -184
- package/src/views/user/outLink/index.vue +17 -0
- package/src/views/user/outLink/view.vue +28 -23
- package/src/views/user/position/edit.vue +55 -54
- package/src/views/user/position/list.vue +4 -4
- package/src/views/user/project_tag/dialog.vue +9 -4
- package/src/views/user/project_tag/edit.vue +2 -2
- package/src/views/user/project_tag/list.vue +9 -4
- package/src/views/user/push_setting/list.vue +2 -2
- package/src/views/user/request_setting/edit.vue +258 -0
- package/src/views/user/request_setting/list.vue +248 -0
- package/src/views/user/role/dialog.vue +1 -1
- package/src/views/user/role/list.vue +4 -4
- package/src/views/user/sale_org/dialog.vue +1 -1
- package/src/views/user/sale_org/list.vue +4 -1
- package/src/views/user/user/dialog.vue +46 -23
- package/src/views/user/user/edit.vue +1059 -1021
- package/src/views/user/user/form_dialog.vue +158 -0
- package/src/views/user/user/form_edit.vue +63 -2
- package/src/views/user/user/form_info.vue +210 -0
- package/src/views/user/user/form_list.vue +1 -0
- package/src/views/user/user/list.vue +22 -3
- package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
- package/src/views/user/wf/wf_manage/list.vue +30 -1
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +25 -1
- package/src/views/user/wf/wf_obj_config/list.vue +114 -9
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
@@ -1,379 +1,652 @@
|
|
1
|
-
<!--
|
2
|
-
/**
|
3
|
-
* author: vformAdmin
|
4
|
-
* email: vdpadmin@163.com
|
5
|
-
* website: https://www.vform666.com
|
6
|
-
* date: 2021.08.18
|
7
|
-
* remark: 如果要分发VForm源码,需在本文件顶部保留此文件头信息!!
|
8
|
-
*/
|
9
|
-
-->
|
10
|
-
|
11
|
-
<template>
|
12
|
-
<div class="field-wrapper" :class="{'design-time-bottom-margin': !!this.designer}"
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
</template>
|
69
|
-
|
70
|
-
<
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
},
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
}
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
return !!this.
|
156
|
-
},
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
this.
|
174
|
-
}
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
this.
|
180
|
-
}
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
this.
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
this.designer
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
}
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
.
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
}
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
.
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
.
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
}
|
377
|
-
|
378
|
-
|
379
|
-
|
1
|
+
<!--
|
2
|
+
/**
|
3
|
+
* author: vformAdmin
|
4
|
+
* email: vdpadmin@163.com
|
5
|
+
* website: https://www.vform666.com
|
6
|
+
* date: 2021.08.18
|
7
|
+
* remark: 如果要分发VForm源码,需在本文件顶部保留此文件头信息!!
|
8
|
+
*/
|
9
|
+
-->
|
10
|
+
|
11
|
+
<template>
|
12
|
+
<div class="field-wrapper" :class="{'design-time-bottom-margin': !!this.designer}"
|
13
|
+
v-show="!field.options.hidden || (designState === true)">
|
14
|
+
<div>
|
15
|
+
<template v-if="formItemProp==='false'">
|
16
|
+
<template v-if="!field.options.hidden">
|
17
|
+
<template v-if="isShowWidget()">
|
18
|
+
<slot></slot>
|
19
|
+
</template>
|
20
|
+
<template v-else-if="field.options.widgetTextFlag===3 && field.options.widgetTextLinkConfig">
|
21
|
+
<div class="ellipsis">
|
22
|
+
<a class="a-link" :class="getWidgetClass()" @click.native="handleClick">
|
23
|
+
<span>
|
24
|
+
<i :class="field.options.widgetTextLinkConfig.options.prefixIcon"
|
25
|
+
v-if="!!field.options.widgetTextLinkConfig.options.prefixIcon"></i>
|
26
|
+
<span>{{ getWidgetValue() }}</span>
|
27
|
+
<i :class="field.options.widgetTextLinkConfig.options.suffixIcon"
|
28
|
+
v-if="!!field.options.widgetTextLinkConfig.options.suffixIcon"></i>
|
29
|
+
</span>
|
30
|
+
</a>
|
31
|
+
</div>
|
32
|
+
</template>
|
33
|
+
<template v-else>
|
34
|
+
<span>{{ getShowValue() }}</span>
|
35
|
+
</template>
|
36
|
+
</template>
|
37
|
+
</template>
|
38
|
+
<template v-else>
|
39
|
+
<el-form-item v-if="!!field.formItemFlag && (!field.options.hidden || (designState === true))"
|
40
|
+
:label="label" :label-width="labelWidth"
|
41
|
+
:title="field.options.labelTooltip"
|
42
|
+
:rules="getRules()" :prop="getPropName()"
|
43
|
+
:class="[selected ? 'selected' : '', labelAlign, customClass, field.options.required ? 'required' : '']"
|
44
|
+
@click.native.stop="selectField(field)">
|
45
|
+
|
46
|
+
<span v-if="!!field.options.labelIconClass" slot="label" class="custom-label"
|
47
|
+
:style="{'color':field.options.labelColor}">
|
48
|
+
<template v-if="field.options.labelIconPosition === 'front'">
|
49
|
+
<template v-if="!!field.options.labelTooltip">
|
50
|
+
<el-tooltip :content="field.options.labelTooltip" effect="light">
|
51
|
+
<i :class="field.options.labelIconClass"></i></el-tooltip>{{ label }}</template>
|
52
|
+
<template v-else>
|
53
|
+
<i :class="field.options.labelIconClass"></i>{{ label }}</template>
|
54
|
+
</template>
|
55
|
+
<template v-else-if="field.options.labelIconPosition === 'rear'">
|
56
|
+
<template v-if="!!field.options.labelTooltip">
|
57
|
+
{{ label }}<el-tooltip :content="field.options.labelTooltip" effect="light">
|
58
|
+
<i :class="field.options.labelIconClass"></i></el-tooltip></template>
|
59
|
+
<template v-else>
|
60
|
+
{{ label }}<i :class="field.options.labelIconClass"></i></template>
|
61
|
+
</template>
|
62
|
+
</span>
|
63
|
+
<span v-if="!!field.options.labelColor" slot="label" :style="{'color':field.options.labelColor}">
|
64
|
+
{{ label }}
|
65
|
+
</span>
|
66
|
+
<template v-if="isShowWidget()">
|
67
|
+
<slot></slot>
|
68
|
+
</template>
|
69
|
+
<template v-else-if="field.options.widgetTextFlag===3 && field.options.widgetTextLinkConfig">
|
70
|
+
<div class="ellipsis">
|
71
|
+
<a class="a-link" :class="getWidgetClass()" @click="handleClick">
|
72
|
+
<span>
|
73
|
+
<i :class="field.options.widgetTextLinkConfig.options.prefixIcon"
|
74
|
+
v-if="!!field.options.widgetTextLinkConfig.options.prefixIcon"></i>
|
75
|
+
<span>{{ getWidgetValue() }}</span>
|
76
|
+
<i :class="field.options.widgetTextLinkConfig.options.suffixIcon"
|
77
|
+
v-if="!!field.options.widgetTextLinkConfig.options.suffixIcon"></i>
|
78
|
+
</span>
|
79
|
+
</a>
|
80
|
+
</div>
|
81
|
+
</template>
|
82
|
+
<template v-else>
|
83
|
+
<span>{{ getShowValue() }}</span>
|
84
|
+
</template>
|
85
|
+
</el-form-item>
|
86
|
+
</template>
|
87
|
+
</div>
|
88
|
+
<template v-if="!!this.designer">
|
89
|
+
<div class="field-action" v-if="designer.selectedId === field.id">
|
90
|
+
<i class="el-icon-back" :title="i18nt('designer.hint.selectParentWidget')"
|
91
|
+
@click.stop="selectParentWidget(field)"></i>
|
92
|
+
<i class="el-icon-top" v-if="!!parentList && (parentList.length > 1)"
|
93
|
+
:title="i18nt('designer.hint.moveUpWidget')"
|
94
|
+
@click.stop="moveUpWidget(field)"></i>
|
95
|
+
<i class="el-icon-bottom" v-if="!!parentList && (parentList.length > 1)"
|
96
|
+
:title="i18nt('designer.hint.moveDownWidget')"
|
97
|
+
@click.stop="moveDownWidget(field)"></i>
|
98
|
+
<i class="el-icon-delete" :title="i18nt('designer.hint.remove')" @click.stop="removeFieldWidget"></i>
|
99
|
+
</div>
|
100
|
+
|
101
|
+
<div class="drag-handler background-opacity" v-if="designer.selectedId === field.id">
|
102
|
+
<i class="el-icon-rank" :title="i18nt('designer.hint.dragHandler')"></i>
|
103
|
+
<i>{{ i18n2t(`designer.widgetLabel.${field.type}`, `extension.widgetLabel.${field.type}`) }}</i>
|
104
|
+
<i v-if="field.options.hidden === true" class="iconfont icon-hide"></i>
|
105
|
+
</div>
|
106
|
+
</template>
|
107
|
+
</div>
|
108
|
+
</template>
|
109
|
+
|
110
|
+
<script>
|
111
|
+
import i18n from "../../../../../components/xform/utils/i18n";
|
112
|
+
import {getSubFormNameByFieldId} from "../../../../../components/xform/utils/util";
|
113
|
+
|
114
|
+
|
115
|
+
export default {
|
116
|
+
name: "form-item-wrapper",
|
117
|
+
mixins: [i18n],
|
118
|
+
props: {
|
119
|
+
field: Object,
|
120
|
+
designer: Object,
|
121
|
+
parentWidget: Object,
|
122
|
+
parentList: Array,
|
123
|
+
indexOfParentList: Number,
|
124
|
+
|
125
|
+
designState: {
|
126
|
+
type: Boolean,
|
127
|
+
default: false
|
128
|
+
},
|
129
|
+
subFormRowIndex: { /* 子表单组件行索引,从0开始计数 */
|
130
|
+
type: Number,
|
131
|
+
default: -1
|
132
|
+
},
|
133
|
+
subFormColIndex: { /* 子表单组件列索引,从0开始计数 */
|
134
|
+
type: Number,
|
135
|
+
default: -1
|
136
|
+
},
|
137
|
+
subFormRowId: { /* 子表单组件行Id,唯一id且不可变 */
|
138
|
+
type: String,
|
139
|
+
default: ''
|
140
|
+
},
|
141
|
+
|
142
|
+
rules: Array,
|
143
|
+
},
|
144
|
+
inject: ["getFormConfig", "getSubFormFieldFlag", "getSubFormName", "tableParam", "formItemProp", "getObjectFieldFlag", "getObjectName"],
|
145
|
+
data(){
|
146
|
+
return {
|
147
|
+
encryptFormula:null
|
148
|
+
}
|
149
|
+
},
|
150
|
+
computed: {
|
151
|
+
formConfig: function () {
|
152
|
+
return this.getFormConfig()
|
153
|
+
},
|
154
|
+
selected() {
|
155
|
+
return !!this.designer && this.field.id === this.designer.selectedId
|
156
|
+
},
|
157
|
+
|
158
|
+
label() {
|
159
|
+
if (!!this.field.options.labelHidden) {
|
160
|
+
return ''
|
161
|
+
}
|
162
|
+
return this.getI18nLabel(this.field.options.label)
|
163
|
+
// let label = this.field.options.label
|
164
|
+
// return label ? this.$t2(label) : label;
|
165
|
+
},
|
166
|
+
|
167
|
+
labelWidth() {
|
168
|
+
if (!!this.field.options.labelHidden) {
|
169
|
+
return (!!this.designState ? 5 : 0)+"px" //设计期间标签最小宽度5像素,以便于鼠标点击可选中组件!!
|
170
|
+
}
|
171
|
+
|
172
|
+
if (!!this.field.options.labelWidth) {
|
173
|
+
return this.field.options.labelWidth + "px !important"
|
174
|
+
}
|
175
|
+
|
176
|
+
if (!!this.designer) {
|
177
|
+
return this.designer.formConfig.labelWidth + "px"
|
178
|
+
} else {
|
179
|
+
return this.formConfig.labelWidth + "px"
|
180
|
+
}
|
181
|
+
},
|
182
|
+
|
183
|
+
labelAlign() {
|
184
|
+
if (!this?.field?.options?.labelAlign) {
|
185
|
+
return ""
|
186
|
+
}
|
187
|
+
if (!!this.field.options.labelAlign) {
|
188
|
+
return this.field.options.labelAlign
|
189
|
+
}
|
190
|
+
|
191
|
+
if (!!this.designer) {
|
192
|
+
return this.designer.formConfig.labelAlign || 'label-left-align'
|
193
|
+
} else {
|
194
|
+
return this.formConfig.labelAlign || 'label-left-align'
|
195
|
+
}
|
196
|
+
},
|
197
|
+
|
198
|
+
customClass() {
|
199
|
+
return !!this.field.options.customClass ? this.field.options.customClass.join(' ') : ''
|
200
|
+
},
|
201
|
+
|
202
|
+
subFormName() {
|
203
|
+
return !!this.parentWidget ? this.parentWidget.options.name : ''
|
204
|
+
},
|
205
|
+
|
206
|
+
subFormItemFlag() {
|
207
|
+
return this.isSubFormItem() || (!!this.parentWidget ? this.parentWidget.type === 'sub-form' : false)
|
208
|
+
},
|
209
|
+
|
210
|
+
},
|
211
|
+
created() {
|
212
|
+
//
|
213
|
+
this.initShowType();
|
214
|
+
/* let propName = this.formItemProp;
|
215
|
+
if(propName){
|
216
|
+
debugger
|
217
|
+
} */
|
218
|
+
},
|
219
|
+
methods: {
|
220
|
+
isSubFormItem() {
|
221
|
+
return !!this.tableParam;
|
222
|
+
},
|
223
|
+
selectField(field) {
|
224
|
+
if (!!this.designer) {
|
225
|
+
this.designer.setSelected(field)
|
226
|
+
this.designer.emitEvent('field-selected', this.parentWidget) //发送选中组件的父组件对象
|
227
|
+
}
|
228
|
+
},
|
229
|
+
|
230
|
+
selectParentWidget() {
|
231
|
+
if (this.parentWidget) {
|
232
|
+
this.designer.setSelected(this.parentWidget)
|
233
|
+
} else {
|
234
|
+
this.designer.clearSelected()
|
235
|
+
}
|
236
|
+
},
|
237
|
+
|
238
|
+
moveUpWidget() {
|
239
|
+
this.designer.moveUpWidget(this.parentList, this.indexOfParentList)
|
240
|
+
this.designer.emitHistoryChange()
|
241
|
+
},
|
242
|
+
|
243
|
+
moveDownWidget() {
|
244
|
+
this.designer.moveDownWidget(this.parentList, this.indexOfParentList)
|
245
|
+
this.designer.emitHistoryChange()
|
246
|
+
},
|
247
|
+
|
248
|
+
removeFieldWidget() {
|
249
|
+
if (!!this.parentList) {
|
250
|
+
const selectedWidgetName = this.designer.selectedWidgetName;
|
251
|
+
let selectedId = this.designer.selectedId;
|
252
|
+
let nextSelected = null
|
253
|
+
if (this.parentList.length === 1) {
|
254
|
+
if (!!this.parentWidget) {
|
255
|
+
nextSelected = this.parentWidget
|
256
|
+
}
|
257
|
+
} else if (this.parentList.length === (1 + this.indexOfParentList)) {
|
258
|
+
nextSelected = this.parentList[this.indexOfParentList - 1]
|
259
|
+
} else {
|
260
|
+
nextSelected = this.parentList[this.indexOfParentList + 1]
|
261
|
+
}
|
262
|
+
|
263
|
+
this.$nextTick(() => {
|
264
|
+
const l = getSubFormNameByFieldId(
|
265
|
+
this.designer.widgetList,
|
266
|
+
selectedId
|
267
|
+
);
|
268
|
+
this.parentList.splice(this.indexOfParentList, 1)
|
269
|
+
//if (!!nextSelected) {
|
270
|
+
this.designer.setSelected(nextSelected)
|
271
|
+
//}
|
272
|
+
this.designer.formWidget.deleteWidgetRef(
|
273
|
+
selectedWidgetName,
|
274
|
+
l
|
275
|
+
);
|
276
|
+
this.designer.emitHistoryChange()
|
277
|
+
this.designer.emitEvent(
|
278
|
+
"canvas-remove-field",
|
279
|
+
selectedWidgetName
|
280
|
+
);
|
281
|
+
})
|
282
|
+
}
|
283
|
+
},
|
284
|
+
getIsFormItemUnabled(){
|
285
|
+
return this.field.type == "vabUpload" || this.field.type == "baseAttachment"
|
286
|
+
},
|
287
|
+
getRules(){
|
288
|
+
if(this.getIsFormItemUnabled()){
|
289
|
+
return null
|
290
|
+
}
|
291
|
+
return this.rules;
|
292
|
+
},
|
293
|
+
getPropName() {
|
294
|
+
if(this.getIsFormItemUnabled()){
|
295
|
+
return null
|
296
|
+
}
|
297
|
+
if (this.formItemProp) {
|
298
|
+
return this.formItemProp;
|
299
|
+
}
|
300
|
+
let o = this.field.options.name;
|
301
|
+
let propName = (
|
302
|
+
(o
|
303
|
+
= (this.field.options.keyNameEnabled
|
304
|
+
&& this.field.options.keyName)
|
305
|
+
|| o),
|
306
|
+
this.subFormItemFlag && !this.designState
|
307
|
+
? this.subFormName
|
308
|
+
+ "."
|
309
|
+
+ this.subFormRowIndex
|
310
|
+
+ "."
|
311
|
+
+ o
|
312
|
+
: this.getObjectFieldFlag() && !this.designState
|
313
|
+
? this.getObjectName() + "." + o
|
314
|
+
: o
|
315
|
+
);
|
316
|
+
/* if(this.$parent.tableParam){
|
317
|
+
debugger
|
318
|
+
} */
|
319
|
+
|
320
|
+
return propName
|
321
|
+
},
|
322
|
+
getI18nLabel(label, path, param) {
|
323
|
+
return !this.designState && label ? this.$t2(label, path, param) : label;
|
324
|
+
},
|
325
|
+
getProcessText(text,pattern) {
|
326
|
+
|
327
|
+
if (pattern == '' || pattern === null || pattern === undefined) {
|
328
|
+
return text;
|
329
|
+
}
|
330
|
+
|
331
|
+
let result = '';
|
332
|
+
|
333
|
+
// 处理固定模式
|
334
|
+
if (pattern === '-') {
|
335
|
+
result = '-';
|
336
|
+
}
|
337
|
+
else if (pattern === '*') {
|
338
|
+
result = '*****';
|
339
|
+
}
|
340
|
+
// 处理自定义模式
|
341
|
+
else if (pattern.includes('*')) {
|
342
|
+
text = text ?? ""
|
343
|
+
const parts = pattern.split('*');
|
344
|
+
|
345
|
+
// 处理 A*B 模式
|
346
|
+
if (parts.length === 2 && parts[0] && parts[1]) {
|
347
|
+
const a = parseInt(parts[0]);
|
348
|
+
const b = parseInt(parts[1]);
|
349
|
+
|
350
|
+
if (!isNaN(a) && !isNaN(b) && a >= 0 && b >= 0) {
|
351
|
+
if (text.length >= a + b) {
|
352
|
+
const prefix = text.substring(0, a);
|
353
|
+
const suffix = text.substring(text.length - b);
|
354
|
+
const stars = '*'.repeat(text.length - a - b);
|
355
|
+
result = prefix + stars + suffix;
|
356
|
+
} else {
|
357
|
+
result = '*****';
|
358
|
+
}
|
359
|
+
} else {
|
360
|
+
// result = '无效模式:A和B必须是数字';
|
361
|
+
result = text;
|
362
|
+
}
|
363
|
+
}
|
364
|
+
// 处理 A* 模式
|
365
|
+
else if (parts.length === 2 && parts[0] && !parts[1]) {
|
366
|
+
const a = parseInt(parts[0]);
|
367
|
+
|
368
|
+
if (!isNaN(a) && a >= 0) {
|
369
|
+
if (text.length >= a) {
|
370
|
+
const prefix = text.substring(0, a);
|
371
|
+
const stars = '*'.repeat(text.length - a);
|
372
|
+
result = prefix + stars;
|
373
|
+
} else {
|
374
|
+
result = '*****';
|
375
|
+
}
|
376
|
+
} else {
|
377
|
+
// result = '无效模式:A必须是数字';
|
378
|
+
result = text;
|
379
|
+
}
|
380
|
+
}
|
381
|
+
// 处理 *B 模式
|
382
|
+
else if (parts.length === 2 && !parts[0] && parts[1]) {
|
383
|
+
const b = parseInt(parts[1]);
|
384
|
+
|
385
|
+
if (!isNaN(b) && b >= 0) {
|
386
|
+
if (text.length >= b) {
|
387
|
+
const suffix = text.substring(text.length - b);
|
388
|
+
const stars = '*'.repeat(text.length - b);
|
389
|
+
result = stars + suffix;
|
390
|
+
} else {
|
391
|
+
result = '*****';
|
392
|
+
}
|
393
|
+
} else {
|
394
|
+
// result = '无效模式:B必须是数字';
|
395
|
+
result = text;
|
396
|
+
}
|
397
|
+
}
|
398
|
+
// 处理无效模式
|
399
|
+
else {
|
400
|
+
result = '*****';
|
401
|
+
}
|
402
|
+
}
|
403
|
+
// 处理其他无效模式
|
404
|
+
else {
|
405
|
+
result = '*****';
|
406
|
+
}
|
407
|
+
|
408
|
+
return result;
|
409
|
+
},
|
410
|
+
initShowType() {
|
411
|
+
if (!!this.designer) return
|
412
|
+
let that = this.$parent
|
413
|
+
let formRef = that.getFormRef ? that.getFormRef() : that;
|
414
|
+
|
415
|
+
if(!formRef)return
|
416
|
+
//详情页,新增页面不加密
|
417
|
+
let fJson = formRef.formJson;
|
418
|
+
let formConfig = fJson.formConfig;
|
419
|
+
if (formConfig.isLoadEntity && !formRef.dataId) return
|
420
|
+
|
421
|
+
let bdService = formRef.bdService;
|
422
|
+
let companyCode = this.$store.getters.companyCode;
|
423
|
+
let loginAccount = this.$store.getters.loginAccount;
|
424
|
+
|
425
|
+
let userSaleOrgDTOs = formRef.userSaleOrgDTOs;
|
426
|
+
let userRoleDTOs = formRef.userRoleDTOs;
|
427
|
+
|
428
|
+
let saleOrgCodeList = userSaleOrgDTOs.map(item => item.sn);
|
429
|
+
let roleCodeList = userRoleDTOs.map(item => item.roleCode);
|
430
|
+
|
431
|
+
let optionModel = this.field.options;
|
432
|
+
|
433
|
+
let flag = 0;//0 原本组件,1明文文本,2密文文本
|
434
|
+
/*if (optionModel.showTextEnabled) {
|
435
|
+
flag = 1;
|
436
|
+
} else if (optionModel.showEncryptTextEnabled) {
|
437
|
+
flag = 2;
|
438
|
+
} else if (optionModel.showLinkTextEnabled) {
|
439
|
+
flag = 3;
|
440
|
+
}*/
|
441
|
+
if (optionModel.userTextRuleEnabled) {
|
442
|
+
let userTextRuleConfig = optionModel.userTextRuleConfig || [];
|
443
|
+
userTextRuleConfig.forEach(item => {
|
444
|
+
let type = item.type ?? null;
|
445
|
+
if (type !== null && type !== "") {
|
446
|
+
let companyCodeStr = item.companyCodes;
|
447
|
+
let companyCodes = companyCodeStr ? companyCodeStr.split(",").filter(item => !!item) : [];
|
448
|
+
/*
|
449
|
+
|
450
|
+
let loginAccountStr = item.loginAccounts;
|
451
|
+
let loginAccounts = loginAccountStr ? loginAccountStr.split(",").filter(item => !!item) : [];
|
452
|
+
|
453
|
+
let saleOrgCodeStr = item.saleOrgCodes;
|
454
|
+
let saleOrgCodes = saleOrgCodeStr ? saleOrgCodeStr.split(",").filter(item => !!item) : [];
|
455
|
+
*/
|
456
|
+
|
457
|
+
let roleCodeStr = item.roleCodes;
|
458
|
+
let roleCodes = roleCodeStr ? roleCodeStr.split(",").filter(item => !!item) : [];
|
459
|
+
|
460
|
+
let flag1 = !item.serveName || item.serveName == bdService;
|
461
|
+
let flag2 = !companyCodes.length || companyCodes.includes(companyCode)
|
462
|
+
// let flag3 = !loginAccounts.length || loginAccounts.includes(loginAccount)
|
463
|
+
// let flag4 = this.compareToList(saleOrgCodes, saleOrgCodeList)
|
464
|
+
if(flag1 && flag2){
|
465
|
+
this.encryptFormula = item.encryptFormula
|
466
|
+
let flag5 = this.compareToList(roleCodes, roleCodeList)
|
467
|
+
if(flag5){
|
468
|
+
//匹配角色
|
469
|
+
if(type == 2)flag = 2//type=2时加密
|
470
|
+
}else {
|
471
|
+
//角色不匹配
|
472
|
+
if(type == 1)flag = 2
|
473
|
+
}
|
474
|
+
}
|
475
|
+
}
|
476
|
+
})
|
477
|
+
}
|
478
|
+
this.field.options.widgetTextFlag = flag
|
479
|
+
// this.showType = flag;
|
480
|
+
},
|
481
|
+
compareToList(list1, list2) {
|
482
|
+
if (!list1.length) {
|
483
|
+
return true;
|
484
|
+
}
|
485
|
+
if (!list2.length) {
|
486
|
+
return false;
|
487
|
+
}
|
488
|
+
return list1.some(item => {
|
489
|
+
return list2.some(item2 => item == item2)
|
490
|
+
});
|
491
|
+
},
|
492
|
+
isShowWidget() {
|
493
|
+
let widgetTextFlag = this.field.options.widgetTextFlag;
|
494
|
+
return widgetTextFlag === undefined || widgetTextFlag === null || widgetTextFlag === 0
|
495
|
+
},
|
496
|
+
getShowValue() {
|
497
|
+
let widgetTextFlag = this.field.options.widgetTextFlag;
|
498
|
+
let fieldModel = this.$parent.fieldModel;
|
499
|
+
if (this.$parent.fieldModelLabel) fieldModel = this.$parent.fieldModelLabel();
|
500
|
+
let showValue = fieldModel
|
501
|
+
if (widgetTextFlag == 2) {
|
502
|
+
showValue = this.getProcessText(showValue,this.encryptFormula)
|
503
|
+
}
|
504
|
+
|
505
|
+
return showValue;
|
506
|
+
},
|
507
|
+
getWidgetClass() {
|
508
|
+
let list = [];
|
509
|
+
let optionModel = this.field.options.widgetTextLinkConfig?.options || {};
|
510
|
+
if (optionModel.colorClass) list.push(optionModel.colorClass);
|
511
|
+
if (optionModel.underline) list.push('underLine');
|
512
|
+
if (this.field.options.disabled) list.push('is-disabled');
|
513
|
+
return list
|
514
|
+
},
|
515
|
+
handleClick(event) {
|
516
|
+
if(this.field.options.disabled) return;
|
517
|
+
this.$parent.handleButtonWidgetClick(event, true)
|
518
|
+
if (!this.designState && this.field.options.widgetTextLinkConfig?.options.href) {
|
519
|
+
window.open(this.field.options.widgetTextLinkConfig?.options.href);
|
520
|
+
}
|
521
|
+
},
|
522
|
+
getWidgetValue() {
|
523
|
+
let fieldModel = this.$parent.fieldModel;
|
524
|
+
if (this.$parent.fieldModelLabel) fieldModel = this.$parent.fieldModelLabel();
|
525
|
+
return fieldModel;
|
526
|
+
}
|
527
|
+
}
|
528
|
+
}
|
529
|
+
</script>
|
530
|
+
|
531
|
+
<style lang="scss" scoped>
|
532
|
+
@import "~@/styles/global.scss";
|
533
|
+
|
534
|
+
.design-time-bottom-margin {
|
535
|
+
margin-bottom: 5px;
|
536
|
+
}
|
537
|
+
|
538
|
+
.field-wrapper {
|
539
|
+
position: relative;
|
540
|
+
|
541
|
+
.field-action {
|
542
|
+
position: absolute;
|
543
|
+
//bottom: -24px;
|
544
|
+
bottom: 0;
|
545
|
+
right: -1px;
|
546
|
+
height: 22px;
|
547
|
+
line-height: 22px;
|
548
|
+
background: $--color-primary;
|
549
|
+
z-index: 9;
|
550
|
+
|
551
|
+
i {
|
552
|
+
font-size: 14px;
|
553
|
+
color: #fff;
|
554
|
+
margin: 0 5px;
|
555
|
+
cursor: pointer;
|
556
|
+
}
|
557
|
+
}
|
558
|
+
|
559
|
+
.drag-handler {
|
560
|
+
position: absolute;
|
561
|
+
top: 0;
|
562
|
+
//bottom: -22px; /* 拖拽手柄位于组件下方,有时无法正常拖动,原因未明?? */
|
563
|
+
left: -1px;
|
564
|
+
height: 20px;
|
565
|
+
line-height: 18px;
|
566
|
+
//background: $--color-primary;
|
567
|
+
z-index: 9;
|
568
|
+
|
569
|
+
i {
|
570
|
+
font-size: 12px;
|
571
|
+
font-style: normal;
|
572
|
+
color: #fff;
|
573
|
+
margin: 4px;
|
574
|
+
cursor: move;
|
575
|
+
}
|
576
|
+
|
577
|
+
&:hover {
|
578
|
+
//opacity: 1;
|
579
|
+
background: $--color-primary;
|
580
|
+
}
|
581
|
+
}
|
582
|
+
}
|
583
|
+
|
584
|
+
.el-form-item {
|
585
|
+
//margin-bottom: 0 !important;
|
586
|
+
//margin-bottom: 6px;
|
587
|
+
|
588
|
+
//margin-top: 2px;
|
589
|
+
position: relative;
|
590
|
+
|
591
|
+
::v-deep .el-form-item__label {
|
592
|
+
white-space: nowrap;
|
593
|
+
text-overflow: ellipsis;
|
594
|
+
}
|
595
|
+
|
596
|
+
::v-deep .el-form-item__content {
|
597
|
+
//position: unset; /* TODO: 忘了这个样式设置是为了解决什么问题?? */
|
598
|
+
}
|
599
|
+
|
600
|
+
span.custom-label i {
|
601
|
+
margin: 0 3px;
|
602
|
+
}
|
603
|
+
|
604
|
+
/* 隐藏Chrome浏览器中el-input数字输入框右侧的上下调整小箭头 */
|
605
|
+
::v-deep .hide-spin-button input::-webkit-outer-spin-button,
|
606
|
+
::v-deep .hide-spin-button input::-webkit-inner-spin-button {
|
607
|
+
-webkit-appearance: none !important;
|
608
|
+
}
|
609
|
+
|
610
|
+
/* 隐藏Firefox浏览器中el-input数字输入框右侧的上下调整小箭头 */
|
611
|
+
::v-deep .hide-spin-button input[type="number"] {
|
612
|
+
-moz-appearance: textfield;
|
613
|
+
}
|
614
|
+
}
|
615
|
+
|
616
|
+
.required ::v-deep .el-form-item__label::before {
|
617
|
+
content: '*';
|
618
|
+
color: #F56C6C;
|
619
|
+
margin-right: 4px;
|
620
|
+
}
|
621
|
+
|
622
|
+
.static-content-item {
|
623
|
+
min-height: 20px;
|
624
|
+
display: flex; /* 垂直居中 */
|
625
|
+
align-items: center; /* 垂直居中 */
|
626
|
+
|
627
|
+
::v-deep .el-divider--horizontal {
|
628
|
+
margin: 0;
|
629
|
+
}
|
630
|
+
}
|
631
|
+
|
632
|
+
.el-form-item.selected, .static-content-item.selected {
|
633
|
+
outline: 2px solid $--color-primary;
|
634
|
+
}
|
635
|
+
|
636
|
+
::v-deep .label-left-align .el-form-item__label {
|
637
|
+
text-align: left;
|
638
|
+
}
|
639
|
+
|
640
|
+
::v-deep .label-center-align .el-form-item__label {
|
641
|
+
text-align: center;
|
642
|
+
}
|
643
|
+
|
644
|
+
::v-deep .label-right-align .el-form-item__label {
|
645
|
+
text-align: right;
|
646
|
+
}
|
647
|
+
|
648
|
+
.a-link.is-disabled {
|
649
|
+
cursor: no-drop;
|
650
|
+
}
|
651
|
+
|
652
|
+
</style>
|