cloud-web-corejs 1.0.54-dev.34 → 1.0.54-dev.340
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/mixins.js +1 -1
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +135 -120
- 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 +1649 -3
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -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 +1331 -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 +1615 -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 +10 -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/oplog-widget.vue +185 -0
- 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 +31 -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 +825 -2
- 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 +376 -302
- 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 +1087 -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 +32 -9
- 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 +67 -41
- 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 +52 -5
- 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/oplog-editor.vue +31 -0
- 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 +29 -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 +1508 -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 +89 -42
- package/src/components/xform/form-render/container-item/data-table-mixin.js +2725 -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 +19 -3
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +175 -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 +359 -1
- package/src/utils/vab.js +1113 -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 +423 -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 +689 -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 +294 -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 +440 -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 +39 -18
- 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,107 +1,226 @@
|
|
1
1
|
<template>
|
2
2
|
<div>
|
3
|
-
<el-form
|
4
|
-
|
3
|
+
<el-form
|
4
|
+
:model="formConfig"
|
5
|
+
size="mini"
|
6
|
+
label-position="left"
|
7
|
+
label-width="120px"
|
8
|
+
class="setting-form"
|
9
|
+
@submit.native.prevent
|
10
|
+
>
|
5
11
|
<el-collapse v-model="formActiveCollapseNames" class="setting-collapse">
|
6
|
-
<el-collapse-item
|
7
|
-
|
12
|
+
<el-collapse-item
|
13
|
+
name="1"
|
14
|
+
:title="i18nt('designer.setting.basicSetting')"
|
15
|
+
>
|
16
|
+
<el-form-item :label="i18nt('数据库表')">
|
8
17
|
<el-input type="text" v-model="formConfig.entity"></el-input>
|
9
18
|
</el-form-item>
|
10
19
|
<el-form-item :label="i18nt('数据保存脚本编码')">
|
11
|
-
<el-input
|
20
|
+
<el-input
|
21
|
+
type="text"
|
22
|
+
v-model="formConfig.saveScriptCode"
|
23
|
+
placeholder="默认saveUpdatge"
|
24
|
+
></el-input>
|
12
25
|
</el-form-item>
|
13
26
|
<el-form-item :label="i18nt('启用流程')">
|
14
|
-
<el-switch
|
27
|
+
<el-switch
|
28
|
+
v-model="formConfig.wfEnabled"
|
29
|
+
@change="changeWfEnabled"
|
30
|
+
></el-switch>
|
31
|
+
</el-form-item>
|
32
|
+
<el-form-item>
|
33
|
+
<span slot="label">流程主题
|
34
|
+
<el-tooltip effect="light">
|
35
|
+
<i class="el-icon-info"></i>
|
36
|
+
<div slot="content" style="white-space: pre-wrap;">
|
37
|
+
{{tip1}}
|
38
|
+
</div>
|
39
|
+
|
40
|
+
</el-tooltip>
|
41
|
+
</span>
|
42
|
+
</el-form-item>
|
43
|
+
<div>
|
44
|
+
<el-input style="word-break: break-word" type="textarea" :rows="3" v-model="formConfig.wfTheme" clearable></el-input>
|
45
|
+
</div>
|
46
|
+
<el-form-item :label="i18nt('流程启动时自动保存表单数据')">
|
47
|
+
<el-switch v-model="formConfig.wfStartBindSave"></el-switch>
|
15
48
|
</el-form-item>
|
16
|
-
|
17
|
-
|
18
|
-
|
49
|
+
|
50
|
+
<el-form-item :label="i18nt('流程通过时自动保存表单数据')">
|
51
|
+
<el-switch v-model="formConfig.wfAgreenBindSave"></el-switch>
|
52
|
+
</el-form-item>
|
53
|
+
<el-form-item :label="i18nt('流程通过时自动保存表单数据的节点配置')">
|
54
|
+
<a
|
55
|
+
href="javascript:void(0);"
|
56
|
+
class="a-link link-oneLind"
|
57
|
+
@click="openWfConfigDataDialog2"
|
58
|
+
>
|
59
|
+
<span>{{
|
60
|
+
formConfig.wfAgreeConfigData &&
|
61
|
+
formConfig.wfAgreeConfigData.length
|
62
|
+
? "已维护"
|
63
|
+
: ""
|
64
|
+
}}</span>
|
19
65
|
<i class="el-icon-edit"></i>
|
20
66
|
</a>
|
21
67
|
</el-form-item>
|
68
|
+
<el-form-item :label="i18nt('启用流程节点可编辑表单')">
|
69
|
+
<el-switch v-model="formConfig.wfConfigDataEnabled"></el-switch>
|
70
|
+
</el-form-item>
|
71
|
+
<el-form-item :label="i18nt('流程节点可编辑表单配置')">
|
72
|
+
<a
|
73
|
+
href="javascript:void(0);"
|
74
|
+
class="a-link link-oneLind"
|
75
|
+
@click="openWfConfigDataDialog"
|
76
|
+
>
|
77
|
+
<span>{{
|
78
|
+
formConfig.wfConfigData && formConfig.wfConfigData.length
|
79
|
+
? "已维护"
|
80
|
+
: ""
|
81
|
+
}}</span>
|
82
|
+
<i class="el-icon-edit"></i>
|
83
|
+
</a>
|
84
|
+
</el-form-item>
|
85
|
+
|
86
|
+
<el-form-item :label="i18nt('默认流程单据类型名称')">
|
87
|
+
<el-input
|
88
|
+
type="text"
|
89
|
+
v-model="designer.vueInstance.reportTemplate.objTypeName"
|
90
|
+
></el-input>
|
91
|
+
</el-form-item>
|
92
|
+
<el-form-item :label="i18nt('引用流程的表单编码')">
|
93
|
+
<el-input
|
94
|
+
type="text"
|
95
|
+
v-model="designer.vueInstance.reportTemplate.fromWfFormCode"
|
96
|
+
></el-input>
|
97
|
+
</el-form-item>
|
98
|
+
<el-form-item :label="i18nt('流程自定义配置')">
|
99
|
+
<a
|
100
|
+
href="javascript:void(0);"
|
101
|
+
class="a-link link-oneLind"
|
102
|
+
@click="editFormEventHandler('wfConfig')"
|
103
|
+
>
|
104
|
+
<span>{{ formConfig.wfConfig }}</span>
|
105
|
+
<i class="el-icon-edit"></i>
|
106
|
+
</a>
|
107
|
+
</el-form-item>
|
108
|
+
<!-- <el-form-item label="流程单据定义">
|
109
|
+
<a href="javascript:void(0);" class="a-link link-oneLind" @click="openWfObjConfigDialog">
|
110
|
+
<span>{{ wfObjConfigs.length ? '已维护' : null}}</span>
|
111
|
+
<i class="el-icon-edit"></i>
|
112
|
+
</a>
|
113
|
+
</el-form-item>-->
|
22
114
|
<el-form-item :label="i18nt('加载详情数据')">
|
23
115
|
<el-switch v-model="formConfig.isLoadEntity"></el-switch>
|
24
116
|
</el-form-item>
|
25
117
|
<el-form-item :label="i18nt('详情数据脚本编码')">
|
26
|
-
<el-input
|
118
|
+
<el-input
|
119
|
+
type="text"
|
120
|
+
v-model="formConfig.formScriptCode"
|
121
|
+
placeholder="默认getOne"
|
122
|
+
></el-input>
|
27
123
|
</el-form-item>
|
28
124
|
<el-form-item :label="i18nt('详情数据脚本参数')">
|
29
|
-
<a
|
125
|
+
<a
|
126
|
+
href="javascript:void(0);"
|
127
|
+
class="a-link link-oneLind"
|
128
|
+
@click="editFormScriptParam"
|
129
|
+
>
|
30
130
|
<span>{{ formConfig.formScriptParam }}</span>
|
31
131
|
<i class="el-icon-edit"></i>
|
32
132
|
</a>
|
33
133
|
</el-form-item>
|
34
134
|
<el-form-item :label="i18nt('详情数据脚本回调')">
|
35
|
-
<a
|
135
|
+
<a
|
136
|
+
href="javascript:void(0);"
|
137
|
+
class="a-link link-oneLind"
|
138
|
+
@click="editFormScriptSuccess"
|
139
|
+
>
|
36
140
|
<span>{{ formConfig.formScriptSuccess }}</span>
|
37
141
|
<i class="el-icon-edit"></i>
|
38
142
|
</a>
|
39
143
|
</el-form-item>
|
40
144
|
<el-form-item :label="i18nt('designer.setting.globalFunctions')">
|
41
|
-
<a
|
145
|
+
<a
|
146
|
+
href="javascript:void(0);"
|
147
|
+
class="a-link link-oneLind"
|
148
|
+
@click="editGlobalFunctions"
|
149
|
+
>
|
42
150
|
<span>{{ formConfig.functions }}</span>
|
43
151
|
<i class="el-icon-edit"></i>
|
44
152
|
</a>
|
45
153
|
</el-form-item>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
<el-radio-group v-model="formConfig.labelAlign" class="radio-group-custom">
|
58
|
-
<el-radio-button label="label-left-align">{{ i18nt('designer.setting.leftAlign') }}</el-radio-button>
|
59
|
-
<el-radio-button label="label-center-align">{{ i18nt('designer.setting.centerAlign') }}</el-radio-button>
|
60
|
-
<el-radio-button label="label-right-align">{{ i18nt('designer.setting.rightAlign') }}</el-radio-button>
|
61
|
-
</el-radio-group>
|
62
|
-
</el-form-item>
|
63
|
-
<el-form-item :label="i18nt('designer.setting.labelWidth')">
|
64
|
-
<el-input-number v-model="formConfig.labelWidth" :min="0" style="width: 100%"></el-input-number>
|
65
|
-
</el-form-item>-->
|
66
|
-
<el-form-item :label="i18nt('designer.setting.formCss')">
|
67
|
-
<el-button type="info" icon="el-icon-edit" plain round @click="editFormCss">{{ i18nt('designer.setting.addCss') }}</el-button>
|
68
|
-
</el-form-item>
|
69
|
-
<!--
|
70
|
-
<el-form-item :label="i18nt('designer.setting.customClass')">
|
71
|
-
<el-select v-model="formConfig.customClass" multiple filterable allow-create default-first-option>
|
72
|
-
<el-option v-for="(item, idx) in cssClassList" :key="idx" :label="item" :value="item"></el-option>
|
73
|
-
</el-select>
|
74
|
-
</el-form-item>
|
75
|
-
<el-form-item :label="i18nt('designer.setting.globalFunctions')">
|
76
|
-
<el-button type="info" icon="el-icon-edit" plain round @click="editGlobalFunctions">{{ i18nt('designer.setting.addEventHandler') }}</el-button>
|
77
|
-
</el-form-item>
|
78
|
-
<el-form-item label-width="0">
|
79
|
-
<el-divider class="custom-divider">{{ i18nt('designer.setting.formSFCSetting') }}</el-divider>
|
80
|
-
</el-form-item>
|
81
|
-
<el-form-item :label="i18nt('designer.setting.formModelName')"><el-input type="text" v-model="formConfig.modelName"></el-input></el-form-item>
|
82
|
-
<el-form-item :label="i18nt('designer.setting.formRefName')"><el-input type="text" v-model="formConfig.refName"></el-input></el-form-item>
|
83
|
-
<el-form-item :label="i18nt('designer.setting.formRulesName')"><el-input type="text" v-model="formConfig.rulesName"></el-input></el-form-item>
|
84
|
-
-->
|
154
|
+
<el-form-item :label="i18nt('designer.setting.formCss')">
|
155
|
+
<el-button
|
156
|
+
type="info"
|
157
|
+
icon="el-icon-edit"
|
158
|
+
plain
|
159
|
+
round
|
160
|
+
@click="editFormCss"
|
161
|
+
>
|
162
|
+
{{ i18nt("designer.setting.addCss") }}
|
163
|
+
</el-button>
|
164
|
+
</el-form-item>
|
85
165
|
</el-collapse-item>
|
166
|
+
<el-collapse-item name="2" title="列表标签页信息">
|
167
|
+
<el-form-item :label="i18nt('列表启用多标签')">
|
168
|
+
<el-switch v-model="formConfig.multiTabEnabled"></el-switch>
|
169
|
+
</el-form-item>
|
170
|
+
<el-form-item :label="i18nt('标签名称字段')">
|
171
|
+
<el-input
|
172
|
+
type="text"
|
173
|
+
v-model="formConfig.multiTabLabelField"
|
174
|
+
></el-input>
|
175
|
+
</el-form-item>
|
176
|
+
</el-collapse-item>
|
177
|
+
|
86
178
|
<el-collapse-item name="3" title="详情表单信息">
|
87
|
-
<el-form-item :label="i18nt('
|
179
|
+
<el-form-item :label="i18nt('查看页面表单编码')">
|
88
180
|
<el-input
|
89
181
|
class="search-input"
|
90
182
|
max="200"
|
91
183
|
v-model="formConfig.editFormCode"
|
92
184
|
@clear="
|
93
|
-
formConfig.editFormName=null;
|
185
|
+
formConfig.editFormName = null;
|
94
186
|
$forceUpdate();
|
95
187
|
"
|
96
188
|
v-el-readonly
|
97
189
|
clearable
|
98
190
|
>
|
99
|
-
<i
|
191
|
+
<i
|
192
|
+
slot="suffix"
|
193
|
+
class="el-input__icon el-icon-search"
|
194
|
+
@click="openFormTemplate(2)"
|
195
|
+
></i>
|
100
196
|
</el-input>
|
101
197
|
</el-form-item>
|
102
|
-
<el-form-item :label="i18nt('
|
198
|
+
<el-form-item :label="i18nt('查看页面表单名称')">
|
103
199
|
{{ formConfig.editFormName }}
|
104
200
|
</el-form-item>
|
201
|
+
<el-form-item :label="i18nt('新增页面表单编码')">
|
202
|
+
<el-input
|
203
|
+
class="search-input"
|
204
|
+
max="200"
|
205
|
+
v-model="formConfig.addFormCode"
|
206
|
+
@clear="
|
207
|
+
formConfig.addFormCode = null;
|
208
|
+
$forceUpdate();
|
209
|
+
"
|
210
|
+
v-el-readonly
|
211
|
+
clearable
|
212
|
+
placeholder="默认使用查看表单编码"
|
213
|
+
>
|
214
|
+
<i
|
215
|
+
slot="suffix"
|
216
|
+
class="el-input__icon el-icon-search"
|
217
|
+
@click="openFormTemplate(1)"
|
218
|
+
></i>
|
219
|
+
</el-input>
|
220
|
+
</el-form-item>
|
221
|
+
<el-form-item :label="i18nt('新增页面表单名称')">
|
222
|
+
{{ formConfig.addFormName }}
|
223
|
+
</el-form-item>
|
105
224
|
</el-collapse-item>
|
106
225
|
<el-collapse-item name="4" title="查询弹框展示信息">
|
107
226
|
<el-form-item :label="i18nt('展示字段')">
|
@@ -124,7 +243,11 @@
|
|
124
243
|
</el-form-item>
|
125
244
|
</el-collapse-item>
|
126
245
|
|
127
|
-
<el-collapse-item
|
246
|
+
<el-collapse-item
|
247
|
+
v-if="showEventCollapse()"
|
248
|
+
name="2"
|
249
|
+
:title="i18nt('designer.setting.eventSetting')"
|
250
|
+
>
|
128
251
|
<!-- <el-form-item label="onBeforeCreated" label-width="150px">
|
129
252
|
<a href="javascript:void(0);" class="a-link link-oneLind"
|
130
253
|
@click="editFormEventHandler('onBeforeCreated', ['dataId','done'])">
|
@@ -133,20 +256,32 @@
|
|
133
256
|
</a>
|
134
257
|
</el-form-item>-->
|
135
258
|
<el-form-item label="onFormCreated" label-width="150px">
|
136
|
-
<a
|
259
|
+
<a
|
260
|
+
href="javascript:void(0);"
|
261
|
+
class="a-link link-oneLind"
|
262
|
+
@click="editFormEventHandler('onFormCreated')"
|
263
|
+
>
|
137
264
|
<span>{{ formConfig.onFormCreated }}</span>
|
138
265
|
<i class="el-icon-edit"></i>
|
139
266
|
</a>
|
140
267
|
</el-form-item>
|
141
268
|
<el-form-item label="onFormMounted" label-width="150px">
|
142
|
-
<a
|
269
|
+
<a
|
270
|
+
href="javascript:void(0);"
|
271
|
+
class="a-link link-oneLind"
|
272
|
+
@click="editFormEventHandler('onFormMounted')"
|
273
|
+
>
|
143
274
|
<span>{{ formConfig.onFormMounted }}</span>
|
144
275
|
<i class="el-icon-edit"></i>
|
145
276
|
</a>
|
146
277
|
</el-form-item>
|
147
278
|
<!-- -->
|
148
279
|
<el-form-item label="onFormDataChange" label-width="150px">
|
149
|
-
<a
|
280
|
+
<a
|
281
|
+
href="javascript:void(0);"
|
282
|
+
class="a-link link-oneLind"
|
283
|
+
@click="editFormEventHandler('onFormDataChange')"
|
284
|
+
>
|
150
285
|
<span>{{ formConfig.onFormDataChange }}</span>
|
151
286
|
<i class="el-icon-edit"></i>
|
152
287
|
</a>
|
@@ -177,16 +312,34 @@
|
|
177
312
|
top="5vh"
|
178
313
|
>
|
179
314
|
<div class="cont">
|
180
|
-
<el-alert
|
181
|
-
|
315
|
+
<el-alert
|
316
|
+
type="info"
|
317
|
+
:closable="false"
|
318
|
+
:title="'form.' + eventParamsMap[curEventName]"
|
319
|
+
></el-alert>
|
320
|
+
<code-editor
|
321
|
+
:mode="'javascript'"
|
322
|
+
:readonly="false"
|
323
|
+
v-model="formEventHandlerCode"
|
324
|
+
ref="ecEditor"
|
325
|
+
></code-editor>
|
182
326
|
<el-alert type="info" :closable="false" title="}"></el-alert>
|
183
327
|
</div>
|
184
328
|
<div slot="footer" class="dialog-footer">
|
185
|
-
<el-button
|
186
|
-
|
329
|
+
<el-button
|
330
|
+
@click="showFormEventDialogFlag = false"
|
331
|
+
class="button-sty"
|
332
|
+
icon="el-icon-close"
|
333
|
+
>
|
334
|
+
{{ i18nt("designer.hint.cancel") }}
|
187
335
|
</el-button>
|
188
|
-
<el-button
|
189
|
-
|
336
|
+
<el-button
|
337
|
+
type="primary"
|
338
|
+
@click="saveFormEventHandler"
|
339
|
+
class="button-sty"
|
340
|
+
icon="el-icon-check"
|
341
|
+
>
|
342
|
+
{{ i18nt("designer.hint.confirm") }}
|
190
343
|
</el-button>
|
191
344
|
</div>
|
192
345
|
</el-dialog>
|
@@ -205,14 +358,27 @@
|
|
205
358
|
:modal-append-to-body="true"
|
206
359
|
>
|
207
360
|
<div class="cont">
|
208
|
-
<code-editor
|
361
|
+
<code-editor
|
362
|
+
:mode="'css'"
|
363
|
+
:readonly="false"
|
364
|
+
v-model="formCssCode"
|
365
|
+
></code-editor>
|
209
366
|
</div>
|
210
367
|
<div slot="footer" class="dialog-footer">
|
211
|
-
<el-button
|
212
|
-
|
368
|
+
<el-button
|
369
|
+
@click="showEditFormCssDialogFlag = false"
|
370
|
+
class="button-sty"
|
371
|
+
icon="el-icon-close"
|
372
|
+
>
|
373
|
+
{{ i18nt("designer.hint.cancel") }}
|
213
374
|
</el-button>
|
214
|
-
<el-button
|
215
|
-
|
375
|
+
<el-button
|
376
|
+
type="primary"
|
377
|
+
@click="saveFormCss"
|
378
|
+
class="button-sty"
|
379
|
+
icon="el-icon-check"
|
380
|
+
>
|
381
|
+
{{ i18nt("designer.hint.confirm") }}
|
216
382
|
</el-button>
|
217
383
|
</div>
|
218
384
|
</el-dialog>
|
@@ -231,14 +397,28 @@
|
|
231
397
|
:modal-append-to-body="true"
|
232
398
|
>
|
233
399
|
<div class="cont">
|
234
|
-
<code-editor
|
400
|
+
<code-editor
|
401
|
+
:mode="'javascript'"
|
402
|
+
:readonly="false"
|
403
|
+
v-model="functionsCode"
|
404
|
+
ref="gfEditor"
|
405
|
+
></code-editor>
|
235
406
|
</div>
|
236
407
|
<div slot="footer" class="dialog-footer">
|
237
|
-
<el-button
|
238
|
-
|
408
|
+
<el-button
|
409
|
+
@click="showEditFunctionsDialogFlag = false"
|
410
|
+
class="button-sty"
|
411
|
+
icon="el-icon-close"
|
412
|
+
>
|
413
|
+
{{ i18nt("designer.hint.cancel") }}
|
239
414
|
</el-button>
|
240
|
-
<el-button
|
241
|
-
|
415
|
+
<el-button
|
416
|
+
type="primary"
|
417
|
+
@click="saveGlobalFunctions"
|
418
|
+
class="button-sty"
|
419
|
+
icon="el-icon-check"
|
420
|
+
>
|
421
|
+
{{ i18nt("designer.hint.confirm") }}
|
242
422
|
</el-button>
|
243
423
|
</div>
|
244
424
|
</el-dialog>
|
@@ -257,14 +437,28 @@
|
|
257
437
|
:modal-append-to-body="true"
|
258
438
|
>
|
259
439
|
<div class="cont">
|
260
|
-
<code-editor
|
440
|
+
<code-editor
|
441
|
+
:mode="'javascript'"
|
442
|
+
:readonly="false"
|
443
|
+
v-model="formScriptParam"
|
444
|
+
ref="gfEditor"
|
445
|
+
></code-editor>
|
261
446
|
</div>
|
262
447
|
<div slot="footer" class="dialog-footer">
|
263
|
-
<el-button
|
264
|
-
|
448
|
+
<el-button
|
449
|
+
@click="showFormScriptParamDialog = false"
|
450
|
+
class="button-sty"
|
451
|
+
icon="el-icon-close"
|
452
|
+
>
|
453
|
+
{{ i18nt("designer.hint.cancel") }}
|
265
454
|
</el-button>
|
266
|
-
<el-button
|
267
|
-
|
455
|
+
<el-button
|
456
|
+
type="primary"
|
457
|
+
@click="saveFormScriptParam"
|
458
|
+
class="button-sty"
|
459
|
+
icon="el-icon-check"
|
460
|
+
>
|
461
|
+
{{ i18nt("designer.hint.confirm") }}
|
268
462
|
</el-button>
|
269
463
|
</div>
|
270
464
|
</el-dialog>
|
@@ -282,95 +476,489 @@
|
|
282
476
|
:modal-append-to-body="true"
|
283
477
|
>
|
284
478
|
<div class="cont">
|
285
|
-
<code-editor
|
479
|
+
<code-editor
|
480
|
+
:mode="'javascript'"
|
481
|
+
:readonly="false"
|
482
|
+
v-model="formScriptSuccess"
|
483
|
+
ref="gfEditor"
|
484
|
+
></code-editor>
|
286
485
|
</div>
|
287
486
|
<div slot="footer" class="dialog-footer">
|
288
|
-
<el-button
|
289
|
-
|
487
|
+
<el-button
|
488
|
+
@click="showFormScriptSuccessDialog = false"
|
489
|
+
class="button-sty"
|
490
|
+
icon="el-icon-close"
|
491
|
+
>
|
492
|
+
{{ i18nt("designer.hint.cancel") }}
|
493
|
+
</el-button>
|
494
|
+
<el-button
|
495
|
+
type="primary"
|
496
|
+
@click="saveFormScriptSuccess"
|
497
|
+
class="button-sty"
|
498
|
+
icon="el-icon-check"
|
499
|
+
>
|
500
|
+
{{ i18nt("designer.hint.confirm") }}
|
501
|
+
</el-button>
|
502
|
+
</div>
|
503
|
+
</el-dialog>
|
504
|
+
<el-dialog
|
505
|
+
v-if="dialogVisible"
|
506
|
+
custom-class="dialog-style list-dialog"
|
507
|
+
:title="i18nt('流程节点可编辑表单配置')"
|
508
|
+
:visible.sync="dialogVisible"
|
509
|
+
:show-close="!0"
|
510
|
+
:append-to-body="true"
|
511
|
+
:modal="false"
|
512
|
+
:close-on-click-modal="!1"
|
513
|
+
:close-on-press-escape="!1"
|
514
|
+
:destroy-on-close="!0"
|
515
|
+
width="1220px"
|
516
|
+
top="5vh"
|
517
|
+
v-dialog-drag
|
518
|
+
:fullscreen="true"
|
519
|
+
>
|
520
|
+
<div class="cont" style="padding-bottom: 8px">
|
521
|
+
<el-table
|
522
|
+
ref="singleTable"
|
523
|
+
width="100%"
|
524
|
+
:data="wfConfigData"
|
525
|
+
height="100%"
|
526
|
+
border=""
|
527
|
+
row-key="columnId"
|
528
|
+
stripe=""
|
529
|
+
style="margin-bottom: 0px"
|
530
|
+
>
|
531
|
+
<el-table-column
|
532
|
+
type="index"
|
533
|
+
width="35"
|
534
|
+
fixed="left"
|
535
|
+
></el-table-column>
|
536
|
+
<!-- <el-table-column :label="i18nt('服务')" width="150">
|
537
|
+
<template slot-scope="{ row }">
|
538
|
+
<el-select v-model="row.serveType" @change="changeServeType(row)">
|
539
|
+
<el-option :value="1" label="正式"></el-option>
|
540
|
+
<el-option :value="2" label="UAT"></el-option>
|
541
|
+
<el-option :value="3" label="测试"></el-option>
|
542
|
+
<el-option :value="4" label="自定义"></el-option>
|
543
|
+
</el-select>
|
544
|
+
</template>
|
545
|
+
</el-table-column>
|
546
|
+
<el-table-column :label="i18nt('自定义服务')" width="150">
|
547
|
+
<template slot-scope="{ row }">
|
548
|
+
<el-input
|
549
|
+
v-model="row.serveName"
|
550
|
+
clearable
|
551
|
+
:disabled="row.serveType !== 4"
|
552
|
+
></el-input>
|
553
|
+
</template>
|
554
|
+
</el-table-column>
|
555
|
+
<el-table-column :label="i18nt('组织编码')" width="250">
|
556
|
+
<template slot-scope="{ row, $index }">
|
557
|
+
<el-input v-model="row.companyCodes" clearable></el-input>
|
558
|
+
</template>
|
559
|
+
</el-table-column> -->
|
560
|
+
<el-table-column :label="i18nt('组织编码')" width="250">
|
561
|
+
<template slot-scope="{ row, $index }">
|
562
|
+
<el-input
|
563
|
+
class="search-input"
|
564
|
+
max="200"
|
565
|
+
v-model="row.companyCodes"
|
566
|
+
@clear="clearBdCompanyEnv1(row)"
|
567
|
+
v-el-readonly
|
568
|
+
clearable
|
569
|
+
>
|
570
|
+
<i
|
571
|
+
slot="suffix"
|
572
|
+
class="el-input__icon el-icon-search"
|
573
|
+
@click="openBdCompanyEnvDialog1($index)"
|
574
|
+
></i>
|
575
|
+
</el-input>
|
576
|
+
</template>
|
577
|
+
</el-table-column>
|
578
|
+
<el-table-column :label="i18nt('服务名称')" width="150">
|
579
|
+
<template slot-scope="{ row }">
|
580
|
+
{{ row.serveName }}
|
581
|
+
</template>
|
582
|
+
</el-table-column>
|
583
|
+
<!-- <el-table-column :label="i18nt('流程模板编码')" width="150">
|
584
|
+
<template slot-scope="{ row }">
|
585
|
+
<el-input v-model="row.modelKey" clearable></el-input>
|
586
|
+
</template>
|
587
|
+
</el-table-column> -->
|
588
|
+
<el-table-column :label="i18nt('流程模板序号')" width="150">
|
589
|
+
<template slot-scope="{ row }">
|
590
|
+
<base-input-number v-model="row.modelOrders" clearable></base-input-number>
|
591
|
+
</template>
|
592
|
+
</el-table-column>
|
593
|
+
<el-table-column
|
594
|
+
:label="i18nt('节点步骤(多个值用“,”隔开)')"
|
595
|
+
width="250"
|
596
|
+
>
|
597
|
+
<template slot-scope="{ row }">
|
598
|
+
<el-input v-model="row.taskSteps" clearable></el-input>
|
599
|
+
</template>
|
600
|
+
</el-table-column>
|
601
|
+
<!-- <el-table-column :label="i18nt('设置')" width="150">
|
602
|
+
<template slot-scope="{row}">
|
603
|
+
<el-select v-model="row.type" clearable>
|
604
|
+
<el-option :value="1" label="可编辑"></el-option>
|
605
|
+
<el-option :value="2" label="仅显示"></el-option>
|
606
|
+
<el-option :value="3" label="隐藏"></el-option>
|
607
|
+
</el-select>
|
608
|
+
</template>
|
609
|
+
</el-table-column>-->
|
610
|
+
<el-table-column
|
611
|
+
:label="i18nt('designer.setting.actionColumn')"
|
612
|
+
width="100"
|
613
|
+
align="center"
|
614
|
+
>
|
615
|
+
<template #header>
|
616
|
+
<span>{{ i18nt("designer.setting.actionColumn") }}</span>
|
617
|
+
<el-button
|
618
|
+
:title="i18nt('designer.setting.addTableColumn')"
|
619
|
+
size="mini"
|
620
|
+
type=""
|
621
|
+
circle=""
|
622
|
+
icon="el-icon-plus"
|
623
|
+
@click="addItem"
|
624
|
+
></el-button>
|
625
|
+
</template>
|
626
|
+
<template slot-scope="scope">
|
627
|
+
<el-button
|
628
|
+
:title="i18nt('designer.setting.deleteTableColumn')"
|
629
|
+
size="mini"
|
630
|
+
type=""
|
631
|
+
circle=""
|
632
|
+
icon="el-icon-minus"
|
633
|
+
@click="wfConfigData.splice(scope.$index, 1)"
|
634
|
+
></el-button>
|
635
|
+
</template>
|
636
|
+
</el-table-column>
|
637
|
+
</el-table>
|
638
|
+
</div>
|
639
|
+
<div class="dialog-footer" slot="footer">
|
640
|
+
<el-button
|
641
|
+
@click="dialogVisible = false"
|
642
|
+
class="button-sty"
|
643
|
+
icon="el-icon-close"
|
644
|
+
>
|
645
|
+
{{ i18nt("designer.hint.cancel") }}
|
290
646
|
</el-button>
|
291
|
-
<el-button
|
292
|
-
|
647
|
+
<el-button
|
648
|
+
type="primary"
|
649
|
+
@click="confirmWfConfigDataDialog"
|
650
|
+
class="button-sty"
|
651
|
+
icon="el-icon-check"
|
652
|
+
>
|
653
|
+
{{ i18nt("designer.hint.confirm") }}
|
293
654
|
</el-button>
|
294
655
|
</div>
|
295
656
|
</el-dialog>
|
296
657
|
|
297
|
-
<
|
298
|
-
|
299
|
-
|
300
|
-
|
658
|
+
<el-dialog
|
659
|
+
v-if="dialogVisible2"
|
660
|
+
custom-class="dialog-style list-dialog"
|
661
|
+
:title="i18nt('流程通过时自动保存表单数据的节点配置')"
|
662
|
+
:visible.sync="dialogVisible2"
|
663
|
+
:show-close="!0"
|
664
|
+
:append-to-body="true"
|
665
|
+
:modal="false"
|
666
|
+
:close-on-click-modal="!1"
|
667
|
+
:close-on-press-escape="!1"
|
668
|
+
:destroy-on-close="!0"
|
669
|
+
width="1220px"
|
670
|
+
top="5vh"
|
671
|
+
v-dialog-drag
|
672
|
+
:fullscreen="true"
|
673
|
+
>
|
674
|
+
<div class="cont" style="padding-bottom: 8px">
|
675
|
+
<el-table
|
676
|
+
ref="singleTable"
|
677
|
+
width="100%"
|
678
|
+
:data="wfAgreeConfigData"
|
679
|
+
height="100%"
|
680
|
+
border=""
|
681
|
+
row-key="columnId"
|
682
|
+
stripe=""
|
683
|
+
style="margin-bottom: 0px"
|
684
|
+
>
|
685
|
+
<el-table-column
|
686
|
+
type="index"
|
687
|
+
width="35"
|
688
|
+
fixed="left"
|
689
|
+
></el-table-column>
|
690
|
+
<!-- <el-table-column :label="i18nt('服务')" width="150">
|
691
|
+
<template slot-scope="{ row }">
|
692
|
+
<el-select v-model="row.serveType" @change="changeServeType(row)">
|
693
|
+
<el-option :value="1" label="正式"></el-option>
|
694
|
+
<el-option :value="2" label="UAT"></el-option>
|
695
|
+
<el-option :value="3" label="测试"></el-option>
|
696
|
+
<el-option :value="4" label="自定义"></el-option>
|
697
|
+
</el-select>
|
698
|
+
</template>
|
699
|
+
</el-table-column>
|
700
|
+
<el-table-column :label="i18nt('自定义服务')" width="150">
|
701
|
+
<template slot-scope="{ row }">
|
702
|
+
<el-input
|
703
|
+
v-model="row.serveName"
|
704
|
+
clearable
|
705
|
+
:disabled="row.serveType !== 4"
|
706
|
+
></el-input>
|
707
|
+
</template>
|
708
|
+
</el-table-column>
|
709
|
+
<el-table-column :label="i18nt('组织编码')" width="250">
|
710
|
+
<template slot-scope="{ row, $index }">
|
711
|
+
<el-input v-model="row.companyCodes" clearable></el-input>
|
712
|
+
</template>
|
713
|
+
</el-table-column> -->
|
714
|
+
<el-table-column :label="i18nt('组织编码')" width="250">
|
715
|
+
<template slot-scope="{ row, $index }">
|
716
|
+
<el-input
|
717
|
+
class="search-input"
|
718
|
+
max="200"
|
719
|
+
v-model="row.companyCodes"
|
720
|
+
@clear="clearBdCompanyEnv2(row)"
|
721
|
+
v-el-readonly
|
722
|
+
clearable
|
723
|
+
>
|
724
|
+
<i
|
725
|
+
slot="suffix"
|
726
|
+
class="el-input__icon el-icon-search"
|
727
|
+
@click="openBdCompanyEnvDialog2($index)"
|
728
|
+
></i>
|
729
|
+
</el-input>
|
730
|
+
</template>
|
731
|
+
</el-table-column>
|
732
|
+
<el-table-column :label="i18nt('服务名称')" width="150">
|
733
|
+
<template slot-scope="{ row }">
|
734
|
+
{{ row.serveName }}
|
735
|
+
</template>
|
736
|
+
</el-table-column>
|
737
|
+
<!-- <el-table-column :label="i18nt('流程模板编码')" width="150">
|
738
|
+
<template slot-scope="{ row }">
|
739
|
+
<el-input v-model="row.modelKey" clearable></el-input>
|
740
|
+
</template>
|
741
|
+
</el-table-column> -->
|
742
|
+
<el-table-column :label="i18nt('流程模板序号')" width="150">
|
743
|
+
<template slot-scope="{ row }">
|
744
|
+
<base-input-number v-model="row.modelOrders" clearable></base-input-number>
|
745
|
+
</template>
|
746
|
+
</el-table-column>
|
747
|
+
<el-table-column
|
748
|
+
:label="i18nt('节点步骤(多个值用“,”隔开)')"
|
749
|
+
width="250"
|
750
|
+
>
|
751
|
+
<template slot-scope="{ row }">
|
752
|
+
<el-input v-model="row.taskSteps" clearable></el-input>
|
753
|
+
</template>
|
754
|
+
</el-table-column>
|
755
|
+
<!-- <el-table-column :label="i18nt('设置')" width="150">
|
756
|
+
<template slot-scope="{row}">
|
757
|
+
<el-select v-model="row.type" clearable>
|
758
|
+
<el-option :value="1" label="可编辑"></el-option>
|
759
|
+
<el-option :value="2" label="仅显示"></el-option>
|
760
|
+
<el-option :value="3" label="隐藏"></el-option>
|
761
|
+
</el-select>
|
762
|
+
</template>
|
763
|
+
</el-table-column>-->
|
764
|
+
<el-table-column
|
765
|
+
:label="i18nt('designer.setting.actionColumn')"
|
766
|
+
width="100"
|
767
|
+
align="center"
|
768
|
+
>
|
769
|
+
<template #header>
|
770
|
+
<span>{{ i18nt("designer.setting.actionColumn") }}</span>
|
771
|
+
<el-button
|
772
|
+
:title="i18nt('designer.setting.addTableColumn')"
|
773
|
+
size="mini"
|
774
|
+
type=""
|
775
|
+
circle=""
|
776
|
+
icon="el-icon-plus"
|
777
|
+
@click="addItem2"
|
778
|
+
></el-button>
|
779
|
+
</template>
|
780
|
+
<template slot-scope="scope">
|
781
|
+
<el-button
|
782
|
+
:title="i18nt('designer.setting.deleteTableColumn')"
|
783
|
+
size="mini"
|
784
|
+
type=""
|
785
|
+
circle=""
|
786
|
+
icon="el-icon-minus"
|
787
|
+
@click="wfAgreeConfigData.splice(scope.$index, 1)"
|
788
|
+
></el-button>
|
789
|
+
</template>
|
790
|
+
</el-table-column>
|
791
|
+
</el-table>
|
792
|
+
</div>
|
793
|
+
<div class="dialog-footer" slot="footer">
|
794
|
+
<el-button
|
795
|
+
@click="dialogVisible2 = false"
|
796
|
+
class="button-sty"
|
797
|
+
icon="el-icon-close"
|
798
|
+
>
|
799
|
+
{{ i18nt("designer.hint.cancel") }}
|
800
|
+
</el-button>
|
801
|
+
<el-button
|
802
|
+
type="primary"
|
803
|
+
@click="confirmWfConfigDataDialog2"
|
804
|
+
class="button-sty"
|
805
|
+
icon="el-icon-check"
|
806
|
+
>
|
807
|
+
{{ i18nt("designer.hint.confirm") }}
|
808
|
+
</el-button>
|
809
|
+
</div>
|
810
|
+
</el-dialog>
|
811
|
+
|
812
|
+
<formTemplateDialog
|
813
|
+
v-if="showFormTemplateDialog"
|
814
|
+
:visiable.sync="showFormTemplateDialog"
|
815
|
+
@confirm="confirmFormTemplate"
|
816
|
+
multi="false"
|
817
|
+
/>
|
818
|
+
<wfObjConfigDialog
|
819
|
+
v-if="showWfObjConfigDialog"
|
820
|
+
:visiable.sync="showWfObjConfigDialog"
|
821
|
+
@confirm="confirmWfObjConfigDialog"
|
822
|
+
:formTemplate="designer.vueInstance.reportTemplate"
|
823
|
+
/>
|
824
|
+
|
825
|
+
<bdCompanyEnvDialog
|
826
|
+
v-if="showBdCompanyEnvDialog1"
|
827
|
+
:visiable.sync="showBdCompanyEnvDialog1"
|
828
|
+
@confirm="confirmBdCompanyEnvDialog1"
|
829
|
+
:multi="false"
|
830
|
+
/>
|
831
|
+
<bdCompanyEnvDialog
|
832
|
+
v-if="showBdCompanyEnvDialog2"
|
833
|
+
:visiable.sync="showBdCompanyEnvDialog2"
|
834
|
+
@confirm="confirmBdCompanyEnvDialog2"
|
835
|
+
:multi="false"
|
836
|
+
/>
|
301
837
|
</div>
|
302
838
|
</template>
|
303
839
|
|
304
840
|
<script>
|
305
|
-
import i18n from
|
306
|
-
import {
|
307
|
-
|
841
|
+
import i18n from "../../../../components/xform/utils/i18n";
|
842
|
+
import {
|
843
|
+
deepClone,
|
844
|
+
insertCustomCssToHead,
|
845
|
+
insertGlobalFunctionsToHtml,
|
846
|
+
} from "../../../../components/xform/utils/util";
|
847
|
+
import formTemplateDialog from "../../../../views/bd/setting/form_template/dialog.vue";
|
308
848
|
import wfObjConfigDialog from "./wfObjConfigDialog.vue";
|
309
|
-
|
849
|
+
import bdCompanyEnvDialog from "@base/views/bd/setting/bd_company_env/dialog";
|
310
850
|
|
311
851
|
export default {
|
312
|
-
name:
|
852
|
+
name: "form-setting",
|
313
853
|
mixins: [i18n],
|
314
854
|
components: {
|
315
855
|
formTemplateDialog,
|
316
|
-
wfObjConfigDialog
|
856
|
+
wfObjConfigDialog,
|
857
|
+
bdCompanyEnvDialog,
|
317
858
|
},
|
318
859
|
props: {
|
319
860
|
designer: Object,
|
320
|
-
formConfig: Object
|
861
|
+
formConfig: Object,
|
321
862
|
},
|
322
|
-
inject: [
|
863
|
+
inject: ["getDesignerConfig"],
|
323
864
|
data() {
|
324
865
|
return {
|
325
866
|
designerConfig: this.getDesignerConfig(),
|
326
867
|
|
327
|
-
formActiveCollapseNames: [
|
868
|
+
formActiveCollapseNames: ["1", "2"],
|
328
869
|
|
329
870
|
formSizes: [
|
330
|
-
{label:
|
331
|
-
{label:
|
332
|
-
{label:
|
333
|
-
{label:
|
334
|
-
{label:
|
871
|
+
{ label: "default", value: "" },
|
872
|
+
{ label: "large", value: "large" },
|
873
|
+
{ label: "medium", value: "medium" },
|
874
|
+
{ label: "small", value: "small" },
|
875
|
+
{ label: "mini", value: "mini" },
|
335
876
|
],
|
336
877
|
|
337
878
|
showEditFormCssDialogFlag: false,
|
338
|
-
formCssCode:
|
879
|
+
formCssCode: "",
|
339
880
|
cssClassList: [],
|
340
881
|
|
341
882
|
showEditFunctionsDialogFlag: false,
|
342
|
-
functionsCode:
|
883
|
+
functionsCode: "",
|
343
884
|
|
344
885
|
showFormEventDialogFlag: false,
|
345
|
-
formEventHandlerCode:
|
346
|
-
curEventName:
|
886
|
+
formEventHandlerCode: "",
|
887
|
+
curEventName: "",
|
347
888
|
|
348
889
|
eventParamsMap: {
|
349
|
-
onBeforeCreated:
|
350
|
-
onFormCreated:
|
351
|
-
onFormMounted:
|
352
|
-
onFormDataChange:
|
890
|
+
onBeforeCreated: "onBeforeCreated(dataId,formCode,done) {",
|
891
|
+
onFormCreated: "onFormCreated(dataId,formCode) {",
|
892
|
+
onFormMounted: "onFormMounted(dataId,formCode) {",
|
893
|
+
onFormDataChange:
|
894
|
+
"onFormDataChange(fieldName, newValue, oldValue, formModel, subFormName, subFormRowIndex) {",
|
895
|
+
wfConfig: "wfConfig(dataId, formCode, formData) {",
|
353
896
|
//'onFormValidate': 'onFormValidate() {',
|
354
897
|
},
|
355
898
|
showVabsearchConfigDialog: false,
|
356
899
|
vabsearchConfigType: 1,
|
357
900
|
showFormTemplateDialog: false,
|
358
901
|
|
359
|
-
formScriptParam:null,
|
902
|
+
formScriptParam: null,
|
360
903
|
showFormScriptParamDialog: false,
|
361
|
-
formScriptSuccess:null,
|
904
|
+
formScriptSuccess: null,
|
362
905
|
showFormScriptSuccessDialog: false,
|
363
|
-
wfObjConfigs:[],
|
364
|
-
showWfObjConfigDialog:false
|
906
|
+
wfObjConfigs: [],
|
907
|
+
showWfObjConfigDialog: false,
|
908
|
+
|
909
|
+
dialogVisible: false,
|
910
|
+
wfConfigData: [],
|
911
|
+
|
912
|
+
dialogVisible2: false,
|
913
|
+
wfAgreeConfigData: [],
|
914
|
+
|
915
|
+
showBdCompanyEnvDialog1: false,
|
916
|
+
showBdCompanyEnvDialog2: false,
|
917
|
+
|
918
|
+
tip1:`流程主题表达式设置说明。
|
919
|
+
|
920
|
+
1、可使用参数:
|
921
|
+
wf:流程对象
|
922
|
+
name:流程名称
|
923
|
+
objTypeCode:单据类型编码
|
924
|
+
objId:对象id
|
925
|
+
procInstId:act流程实例id
|
926
|
+
procDefId:act流程定义id
|
927
|
+
modelId:act流程模板id
|
928
|
+
starterId:启动人ID
|
929
|
+
starterName:启动人姓名
|
930
|
+
uuid:流程实例唯一标识
|
931
|
+
identityInfo:身份信息对象
|
932
|
+
id:用户ID
|
933
|
+
loginAccount:用户登录名
|
934
|
+
nickName:用户姓名
|
935
|
+
companyCode:企业编码
|
936
|
+
parentCompanyCode:集团企业编码
|
937
|
+
nowDate:当前时间
|
938
|
+
nowDateStr:当前时间字符串(yyyy-MM-dd HH:mm:ss)
|
939
|
+
nowDayStr:当前天字符串(yyyy-MM-dd)
|
940
|
+
tableName:数据库表名,取表单设计中维护的表名作为参数名称
|
941
|
+
tableField1:数据库表字段名1
|
942
|
+
tableField2:数据库表字段名2
|
943
|
+
tableField3:数据库表字段名3
|
944
|
+
......
|
945
|
+
|
946
|
+
2、可使用函数:
|
947
|
+
func.orgName(orgId):根据机构id获取机构名称
|
948
|
+
func.convertDate(date, format):时间转换,如当前时间转为当前天字符串,则$\{func.convertDate(nowDate, 'yyyy-MM-dd')\},当前时间转为当前月字符串,则$\{func.convertDate(nowDate, 'yyyy-MM')\}
|
949
|
+
|
950
|
+
3、配置示例
|
951
|
+
比如表名为:pm_product_project,配置如下:
|
952
|
+
$\{wf.starterName\}提交的$\{pm_product_project.product_code\}$\{pm_product_project.product_name\}$\{wf.name\}$\{pm_product_project.sn\}$\{func.orgName(pm_product_project.f_sale_org_id)\}$\{nowDayStr\}`
|
365
953
|
};
|
366
954
|
},
|
367
955
|
created() {
|
368
956
|
//导入表单JSON后需要重新加载自定义CSS样式!!!
|
369
|
-
this.designer.handleEvent(
|
957
|
+
this.designer.handleEvent("form-json-imported", () => {
|
370
958
|
this.formCssCode = this.formConfig.cssCode;
|
371
|
-
insertCustomCssToHead(this.
|
959
|
+
insertCustomCssToHead(this.formCssCcssCodeode);
|
372
960
|
this.extractCssClass();
|
373
|
-
this.designer.emitEvent(
|
961
|
+
this.designer.emitEvent("form-css-updated", deepClone(this.cssClassList));
|
374
962
|
});
|
375
963
|
},
|
376
964
|
mounted() {
|
@@ -380,17 +968,17 @@ export default {
|
|
380
968
|
this.formCssCode = this.formConfig.cssCode;
|
381
969
|
insertCustomCssToHead(this.formCssCode);
|
382
970
|
this.extractCssClass();
|
383
|
-
this.designer.emitEvent(
|
971
|
+
this.designer.emitEvent("form-css-updated", deepClone(this.cssClassList));
|
384
972
|
}, 1200);
|
385
973
|
this.getListByObjTypeCode();
|
386
974
|
},
|
387
975
|
methods: {
|
388
976
|
showEventCollapse() {
|
389
|
-
if (this.designerConfig[
|
977
|
+
if (this.designerConfig["eventCollapse"] === undefined) {
|
390
978
|
return true;
|
391
979
|
}
|
392
980
|
|
393
|
-
return !!this.designerConfig[
|
981
|
+
return !!this.designerConfig["eventCollapse"];
|
394
982
|
},
|
395
983
|
|
396
984
|
editFormCss() {
|
@@ -404,30 +992,39 @@ export default {
|
|
404
992
|
let cssNameArray = [];
|
405
993
|
|
406
994
|
if (!!result && result.length > 0) {
|
407
|
-
result.forEach(rItem => {
|
408
|
-
let classArray = rItem.split(
|
995
|
+
result.forEach((rItem) => {
|
996
|
+
let classArray = rItem.split(","); //切分逗号分割的多个class
|
409
997
|
if (classArray.length > 0) {
|
410
|
-
classArray.forEach(cItem => {
|
998
|
+
classArray.forEach((cItem) => {
|
411
999
|
let caItem = cItem.trim();
|
412
|
-
if (caItem.indexOf(
|
1000
|
+
if (caItem.indexOf(".", 1) !== -1) {
|
413
1001
|
//查找第二个.位置
|
414
|
-
let newClass = caItem.substring(
|
1002
|
+
let newClass = caItem.substring(
|
1003
|
+
caItem.indexOf(".") + 1,
|
1004
|
+
caItem.indexOf(".", 1)
|
1005
|
+
); //仅截取第一、二个.号之间的class
|
415
1006
|
if (!!newClass) {
|
416
1007
|
cssNameArray.push(newClass.trim());
|
417
1008
|
}
|
418
|
-
} else if (caItem.indexOf(
|
1009
|
+
} else if (caItem.indexOf(" ") !== -1) {
|
419
1010
|
//查找第一个空格位置
|
420
|
-
let newClass = caItem.substring(
|
1011
|
+
let newClass = caItem.substring(
|
1012
|
+
caItem.indexOf(".") + 1,
|
1013
|
+
caItem.indexOf(" ")
|
1014
|
+
); //仅截取第一、二个.号之间的class
|
421
1015
|
if (!!newClass) {
|
422
1016
|
cssNameArray.push(newClass.trim());
|
423
1017
|
}
|
424
1018
|
} else {
|
425
|
-
if (caItem.indexOf(
|
1019
|
+
if (caItem.indexOf("{") !== -1) {
|
426
1020
|
//查找第一个{位置
|
427
|
-
let newClass = caItem.substring(
|
1021
|
+
let newClass = caItem.substring(
|
1022
|
+
caItem.indexOf(".") + 1,
|
1023
|
+
caItem.indexOf("{")
|
1024
|
+
);
|
428
1025
|
cssNameArray.push(newClass.trim());
|
429
1026
|
} else {
|
430
|
-
let newClass = caItem.substring(caItem.indexOf(
|
1027
|
+
let newClass = caItem.substring(caItem.indexOf(".") + 1);
|
431
1028
|
cssNameArray.push(newClass.trim());
|
432
1029
|
}
|
433
1030
|
}
|
@@ -447,14 +1044,14 @@ export default {
|
|
447
1044
|
insertCustomCssToHead(this.formCssCode);
|
448
1045
|
this.showEditFormCssDialogFlag = false;
|
449
1046
|
|
450
|
-
this.designer.emitEvent(
|
1047
|
+
this.designer.emitEvent("form-css-updated", deepClone(this.cssClassList));
|
451
1048
|
},
|
452
1049
|
|
453
1050
|
editGlobalFunctions() {
|
454
1051
|
this.functionsCode = this.designer.formConfig.functions;
|
455
1052
|
this.showEditFunctionsDialogFlag = true;
|
456
1053
|
},
|
457
|
-
editFormScriptParam(){
|
1054
|
+
editFormScriptParam() {
|
458
1055
|
this.formScriptParam = this.designer.formConfig.formScriptParam;
|
459
1056
|
this.showFormScriptParamDialog = true;
|
460
1057
|
},
|
@@ -463,14 +1060,16 @@ export default {
|
|
463
1060
|
const codeHints = this.$refs.gfEditor.getEditorAnnotations();
|
464
1061
|
let syntaxErrorFlag = false;
|
465
1062
|
if (!!codeHints && codeHints.length > 0) {
|
466
|
-
codeHints.forEach(chItem => {
|
467
|
-
if (chItem.type ===
|
1063
|
+
codeHints.forEach((chItem) => {
|
1064
|
+
if (chItem.type === "error") {
|
468
1065
|
syntaxErrorFlag = true;
|
469
1066
|
}
|
470
1067
|
});
|
471
1068
|
|
472
1069
|
if (syntaxErrorFlag) {
|
473
|
-
this.$message.error(
|
1070
|
+
this.$message.error(
|
1071
|
+
this.i18nt("designer.setting.syntaxCheckWarning")
|
1072
|
+
);
|
474
1073
|
return;
|
475
1074
|
}
|
476
1075
|
}
|
@@ -490,14 +1089,16 @@ export default {
|
|
490
1089
|
const codeHints = this.$refs.ecEditor.getEditorAnnotations();
|
491
1090
|
let syntaxErrorFlag = false;
|
492
1091
|
if (!!codeHints && codeHints.length > 0) {
|
493
|
-
codeHints.forEach(chItem => {
|
494
|
-
if (chItem.type ===
|
1092
|
+
codeHints.forEach((chItem) => {
|
1093
|
+
if (chItem.type === "error") {
|
495
1094
|
syntaxErrorFlag = true;
|
496
1095
|
}
|
497
1096
|
});
|
498
1097
|
|
499
1098
|
if (syntaxErrorFlag) {
|
500
|
-
this.$message.error(
|
1099
|
+
this.$message.error(
|
1100
|
+
this.i18nt("designer.setting.syntaxCheckWarning")
|
1101
|
+
);
|
501
1102
|
return;
|
502
1103
|
}
|
503
1104
|
}
|
@@ -505,30 +1106,43 @@ export default {
|
|
505
1106
|
this.formConfig[this.curEventName] = this.formEventHandlerCode;
|
506
1107
|
this.showFormEventDialogFlag = false;
|
507
1108
|
},
|
1109
|
+
openFormTemplate(flag){
|
1110
|
+
this.formTemplateFlag = flag;
|
1111
|
+
this.showFormTemplateDialog = true;
|
1112
|
+
},
|
508
1113
|
confirmFormTemplate(rows) {
|
509
1114
|
if (rows.length) {
|
510
1115
|
let row = rows[0];
|
511
|
-
|
512
|
-
|
1116
|
+
if(this.formTemplateFlag==1){
|
1117
|
+
//新增
|
1118
|
+
this.$set(this.formConfig, "addFormCode", row.formCode);
|
1119
|
+
this.$set(this.formConfig, "addFormName", row.formName);
|
1120
|
+
}else{
|
1121
|
+
//查看
|
1122
|
+
this.$set(this.formConfig, "editFormCode", row.formCode);
|
1123
|
+
this.$set(this.formConfig, "editFormName", row.formName);
|
1124
|
+
}
|
513
1125
|
}
|
514
1126
|
},
|
515
1127
|
getEventButtonName(funStr) {
|
516
1128
|
let name = this.i18nt("designer.setting.addEventHandler");
|
517
|
-
if (funStr) name = "已维护"
|
1129
|
+
if (funStr) name = "已维护";
|
518
1130
|
return name;
|
519
1131
|
},
|
520
1132
|
saveFormScriptParam() {
|
521
1133
|
const codeHints = this.$refs.gfEditor.getEditorAnnotations();
|
522
1134
|
let syntaxErrorFlag = false;
|
523
1135
|
if (!!codeHints && codeHints.length > 0) {
|
524
|
-
codeHints.forEach(chItem => {
|
525
|
-
if (chItem.type ===
|
1136
|
+
codeHints.forEach((chItem) => {
|
1137
|
+
if (chItem.type === "error") {
|
526
1138
|
syntaxErrorFlag = true;
|
527
1139
|
}
|
528
1140
|
});
|
529
1141
|
|
530
1142
|
if (syntaxErrorFlag) {
|
531
|
-
this.$message.error(
|
1143
|
+
this.$message.error(
|
1144
|
+
this.i18nt("designer.setting.syntaxCheckWarning")
|
1145
|
+
);
|
532
1146
|
return;
|
533
1147
|
}
|
534
1148
|
}
|
@@ -536,7 +1150,7 @@ export default {
|
|
536
1150
|
this.designer.formConfig.formScriptParam = this.formScriptParam;
|
537
1151
|
this.showFormScriptParamDialog = false;
|
538
1152
|
},
|
539
|
-
editFormScriptSuccess(){
|
1153
|
+
editFormScriptSuccess() {
|
540
1154
|
this.formScriptSuccess = this.designer.formConfig.formScriptSuccess;
|
541
1155
|
this.showFormScriptSuccessDialog = true;
|
542
1156
|
},
|
@@ -544,14 +1158,16 @@ export default {
|
|
544
1158
|
const codeHints = this.$refs.gfEditor.getEditorAnnotations();
|
545
1159
|
let syntaxErrorFlag = false;
|
546
1160
|
if (!!codeHints && codeHints.length > 0) {
|
547
|
-
codeHints.forEach(chItem => {
|
548
|
-
if (chItem.type ===
|
1161
|
+
codeHints.forEach((chItem) => {
|
1162
|
+
if (chItem.type === "error") {
|
549
1163
|
syntaxErrorFlag = true;
|
550
1164
|
}
|
551
1165
|
});
|
552
1166
|
|
553
1167
|
if (syntaxErrorFlag) {
|
554
|
-
this.$message.error(
|
1168
|
+
this.$message.error(
|
1169
|
+
this.i18nt("designer.setting.syntaxCheckWarning")
|
1170
|
+
);
|
555
1171
|
return;
|
556
1172
|
}
|
557
1173
|
}
|
@@ -559,27 +1175,176 @@ export default {
|
|
559
1175
|
this.designer.formConfig.formScriptSuccess = this.formScriptSuccess;
|
560
1176
|
this.showFormScriptSuccessDialog = false;
|
561
1177
|
},
|
562
|
-
openWfObjConfigDialog(){
|
1178
|
+
openWfObjConfigDialog() {
|
563
1179
|
this.showWfObjConfigDialog = true;
|
564
1180
|
},
|
565
|
-
confirmWfObjConfigDialog(rows){
|
1181
|
+
confirmWfObjConfigDialog(rows) {
|
566
1182
|
this.wfObjConfigs = rows || [];
|
567
1183
|
},
|
568
|
-
getListByObjTypeCode(){
|
569
|
-
let reportTemplate = this.designer.vueInstance.reportTemplate
|
1184
|
+
getListByObjTypeCode() {
|
1185
|
+
let reportTemplate = this.designer.vueInstance.reportTemplate;
|
570
1186
|
this.$http({
|
571
1187
|
url: `/${reportTemplate.serviceName}/wf_obj_config/listByObjTypeCode`,
|
572
1188
|
method: `post`,
|
573
|
-
data:{
|
574
|
-
stringOne:reportTemplate.objTypeCode
|
1189
|
+
data: {
|
1190
|
+
stringOne: reportTemplate.objTypeCode,
|
575
1191
|
},
|
576
1192
|
isLoading: true,
|
577
|
-
success: res => {
|
1193
|
+
success: (res) => {
|
578
1194
|
this.wfObjConfigs = res.objx || [];
|
579
|
-
}
|
1195
|
+
},
|
580
1196
|
});
|
581
1197
|
},
|
582
|
-
|
1198
|
+
changeWfEnabled(val) {
|
1199
|
+
this.designer.vueInstance.reportTemplate.objTypeName = null;
|
1200
|
+
this.designer.vueInstance.reportTemplate.fromWfFormCode = null;
|
1201
|
+
},
|
1202
|
+
openWfConfigDataDialog() {
|
1203
|
+
let wfConfigData = this.formConfig.wfConfigData || [];
|
1204
|
+
this.dialogVisible = true;
|
1205
|
+
this.wfConfigData = this.$baseLodash.cloneDeep(wfConfigData);
|
1206
|
+
},
|
1207
|
+
addItem() {
|
1208
|
+
let newItem = {
|
1209
|
+
type: null,
|
1210
|
+
serveType: null,
|
1211
|
+
serveName: null,
|
1212
|
+
modelKey: null,
|
1213
|
+
modelOrders: undefined,
|
1214
|
+
taskSteps: null,
|
1215
|
+
companyCodes: null,
|
1216
|
+
};
|
1217
|
+
this.wfConfigData.push(newItem);
|
1218
|
+
},
|
1219
|
+
confirmWfConfigDataDialog() {
|
1220
|
+
let tableData = this.wfConfigData;
|
1221
|
+
let map = {};
|
1222
|
+
for (let i = 0; i < tableData.length; i++) {
|
1223
|
+
let item = tableData[i];
|
1224
|
+
if (!item.serveName) {
|
1225
|
+
this.$message({
|
1226
|
+
type: "error",
|
1227
|
+
message: "服务名称不能为空",
|
1228
|
+
});
|
1229
|
+
return
|
1230
|
+
}
|
1231
|
+
if (!item.companyCodes) {
|
1232
|
+
this.$message({
|
1233
|
+
type: "error",
|
1234
|
+
message: "组织编码不能为空",
|
1235
|
+
});
|
1236
|
+
return
|
1237
|
+
}
|
1238
|
+
let modelOrders = item.modelOrders??"";
|
1239
|
+
|
1240
|
+
let serveName = item.serveName;
|
1241
|
+
let companyCodes = item.companyCodes;
|
1242
|
+
let key = serveName + "_" + companyCodes+ "_"+modelOrders;
|
1243
|
+
if (!map[key]) {
|
1244
|
+
map[key] = true;
|
1245
|
+
} else {
|
1246
|
+
this.$message({
|
1247
|
+
type: "error",
|
1248
|
+
message: "[服务+组织+流程模板序号]不能重复",
|
1249
|
+
});
|
1250
|
+
return;
|
1251
|
+
}
|
1252
|
+
}
|
1253
|
+
|
1254
|
+
this.dialogVisible = !1;
|
1255
|
+
this.formConfig.wfConfigData = this.wfConfigData;
|
1256
|
+
},
|
1257
|
+
|
1258
|
+
openWfConfigDataDialog2() {
|
1259
|
+
let wfAgreeConfigData = this.formConfig.wfAgreeConfigData || [];
|
1260
|
+
this.dialogVisible2 = true;
|
1261
|
+
this.wfAgreeConfigData = this.$baseLodash.cloneDeep(wfAgreeConfigData);
|
1262
|
+
},
|
1263
|
+
addItem2() {
|
1264
|
+
let newItem = {
|
1265
|
+
type: null,
|
1266
|
+
serveType: null,
|
1267
|
+
serveName: null,
|
1268
|
+
modelKey: null,
|
1269
|
+
modelOrders: undefined,
|
1270
|
+
taskSteps: null,
|
1271
|
+
companyCodes: null,
|
1272
|
+
};
|
1273
|
+
this.wfAgreeConfigData.push(newItem);
|
1274
|
+
},
|
1275
|
+
confirmWfConfigDataDialog2() {
|
1276
|
+
let tableData = this.wfAgreeConfigData;
|
1277
|
+
|
1278
|
+
let map = {};
|
1279
|
+
for (let i = 0; i < tableData.length; i++) {
|
1280
|
+
let item = tableData[i];
|
1281
|
+
if (!item.serveName) {
|
1282
|
+
this.$message({
|
1283
|
+
type: "error",
|
1284
|
+
message: "服务名称不能为空",
|
1285
|
+
});
|
1286
|
+
return
|
1287
|
+
}
|
1288
|
+
if (!item.companyCodes) {
|
1289
|
+
this.$message({
|
1290
|
+
type: "error",
|
1291
|
+
message: "组织编码不能为空",
|
1292
|
+
});
|
1293
|
+
return
|
1294
|
+
}
|
1295
|
+
let modelOrders = item.modelOrders??"";
|
1296
|
+
|
1297
|
+
let serveName = item.serveName;
|
1298
|
+
let companyCodes = item.companyCodes;
|
1299
|
+
let key = serveName + "_" + companyCodes+ "_"+modelOrders;
|
1300
|
+
if (!map[key]) {
|
1301
|
+
map[key] = true;
|
1302
|
+
} else {
|
1303
|
+
this.$message({
|
1304
|
+
type: "error",
|
1305
|
+
message: "[服务+组织+流程模板序号]不能重复",
|
1306
|
+
});
|
1307
|
+
return;
|
1308
|
+
}
|
1309
|
+
}
|
1310
|
+
this.dialogVisible2 = !1;
|
1311
|
+
this.formConfig.wfAgreeConfigData = this.wfAgreeConfigData;
|
1312
|
+
},
|
1313
|
+
|
1314
|
+
clearBdCompanyEnv1(row) {
|
1315
|
+
row.serveName = null;
|
1316
|
+
row.companyCodes = null;
|
1317
|
+
},
|
1318
|
+
openBdCompanyEnvDialog1(rowIndex) {
|
1319
|
+
this.operateIndex = rowIndex;
|
1320
|
+
this.showBdCompanyEnvDialog1 = true;
|
1321
|
+
},
|
1322
|
+
confirmBdCompanyEnvDialog1(rows) {
|
1323
|
+
if (rows.length) {
|
1324
|
+
let row = rows[0];
|
1325
|
+
let item = this.wfConfigData[this.operateIndex];
|
1326
|
+
item.serveName = row.bdService;
|
1327
|
+
item.companyCodes = row.bdCompanyCode;
|
1328
|
+
}
|
1329
|
+
},
|
1330
|
+
|
1331
|
+
clearBdCompanyEnv2(row) {
|
1332
|
+
row.serveName = null;
|
1333
|
+
row.companyCodes = null;
|
1334
|
+
},
|
1335
|
+
openBdCompanyEnvDialog2(rowIndex) {
|
1336
|
+
this.operateIndex = rowIndex;
|
1337
|
+
this.showBdCompanyEnvDialog2 = true;
|
1338
|
+
},
|
1339
|
+
confirmBdCompanyEnvDialog2(rows) {
|
1340
|
+
if (rows.length) {
|
1341
|
+
let row = rows[0];
|
1342
|
+
let item = this.wfAgreeConfigData[this.operateIndex];
|
1343
|
+
item.serveName = row.bdService;
|
1344
|
+
item.companyCodes = row.bdCompanyCode;
|
1345
|
+
}
|
1346
|
+
},
|
1347
|
+
},
|
583
1348
|
};
|
584
1349
|
</script>
|
585
1350
|
|
@@ -623,4 +1388,7 @@ export default {
|
|
623
1388
|
padding: 6px 15px 12px 15px;
|
624
1389
|
}
|
625
1390
|
}
|
1391
|
+
::v-deep .el-textarea .el-textarea__inner {
|
1392
|
+
word-break: break-all;
|
1393
|
+
}
|
626
1394
|
</style>
|