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