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