cloud-web-corejs 1.0.54-dev.78 → 1.0.54-dev.781
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 +200 -183
- package/src/App.vue +73 -75
- package/src/api/user.js +85 -40
- package/src/components/Qrcode/fileParse.vue +0 -1
- package/src/components/Tinymce/index.vue +112 -71
- package/src/components/VabUpload/fileLibraryDialog.vue +296 -0
- package/src/components/VabUpload/image-viewer.vue +2 -2
- package/src/components/VabUpload/index.js +69 -1
- package/src/components/VabUpload/index.vue +13 -2
- package/src/components/VabUpload/mixins/fileLibraryDialog.js +1112 -0
- package/src/components/VabUpload/mixins.js +1964 -2
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +209 -120
- package/src/components/advancedSearchDialog/mixins.js +28 -1
- package/src/components/base-textarea/index.vue +104 -0
- package/src/components/baseAlert/index.js +44 -1
- package/src/components/baseAlert/index.vue +24 -20
- package/src/components/baseAlert/mixins.js +61 -1
- package/src/components/baseArea/index.vue +1628 -0
- package/src/components/baseAttachment/index.vue +49 -40
- package/src/components/baseAttachment/install.js +21 -5
- package/src/components/baseAttachment/mixins.js +310 -1
- package/src/components/baseInputBatch/mixins.js +58 -1
- package/src/components/baseInputExport/index.vue +21 -14
- package/src/components/baseInputExport/mixins.js +391 -1
- package/src/components/baseInputNumber/index.vue +9 -9
- package/src/components/baseTabs/index.vue +16 -8
- package/src/components/baseTabs/mixins.js +177 -1
- package/src/components/cnPrint/index.js +44 -1
- package/src/components/cnPrint/mixins.js +189 -1
- package/src/components/code-editor/index.vue +131 -62
- package/src/components/confirmDialog/index.js +41 -1
- package/src/components/confirmDialog/index.vue +24 -17
- package/src/components/confirmDialog/mixins.js +31 -1
- package/src/components/errorMsg/index.js +47 -3
- package/src/components/errorMsg/index.vue +78 -70
- package/src/components/errorMsg/mixins.js +103 -5
- package/src/components/excelExport/button.vue +86 -24
- package/src/components/excelExport/exportFieldDialog.vue +246 -90
- package/src/components/excelExport/index.js +65 -6
- package/src/components/excelExport/index.vue +109 -26
- package/src/components/excelExport/mixins.js +1132 -8
- package/src/components/excelImport/index.js +13 -13
- package/src/components/excelImport/mixins.js +2 -1
- package/src/components/fileLibrary/categoryMoveDialog.vue +109 -109
- package/src/components/fileLibrary/fileObjAuthDialog.vue +297 -208
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -0
- package/src/components/fileLibrary/filterDialog.vue +454 -0
- package/src/components/fileLibrary/index.vue +1109 -687
- 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 +230 -101
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +62 -3
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +3 -3
- package/src/components/fileLibrary/propertiesDialog.vue +190 -145
- package/src/components/fileLibrary/recycleBinDialog.vue +237 -236
- package/src/components/fileLibrary/shareDialog.vue +1 -1
- package/src/components/formDialog/README.md +241 -0
- package/src/components/formDialog/index.js +35 -0
- package/src/components/formDialog/index.vue +724 -0
- package/src/components/formOplog/mixins.js +85 -4
- package/src/components/hiprint/css/bootstrap.min.css +6 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.eot +0 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.svg +288 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.woff +0 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/src/components/hiprint/hiprint.bundle.js +15 -3
- package/src/components/hiprint/view/design/index.vue +140 -47
- package/src/components/hiprint/view/design/mixins.js +611 -1
- package/src/components/hiprint/view/design/preview.vue +75 -52
- package/src/components/hiprint/view/json-view.vue +31 -31
- package/src/components/jdPrint/index.js +44 -1
- package/src/components/jdPrint/mixins.js +208 -1
- package/src/components/jsonImport/exportUtil.js +106 -0
- package/src/components/jsonImport/index.js +212 -17
- package/src/components/jsonImport/mixins.js +350 -16
- package/src/components/langImport/index.js +80 -1
- package/src/components/langImport/mixins.js +487 -1
- package/src/components/langTag/mixins/addButton.js +51 -5
- package/src/components/langTag/mixins/deleteButton.js +55 -5
- package/src/components/langTag/mixins/view.js +47 -5
- package/src/components/luckysheet/dialog.vue +159 -0
- package/src/components/luckysheet/export.js +595 -0
- package/src/components/luckysheet/fileUtils.js +147 -0
- package/src/components/luckysheet/index.js +72 -0
- package/src/components/luckysheet/templateJson.js +12078 -0
- package/src/components/luckysheet/view.vue +210 -0
- package/src/components/micro-view-host/contract.js +66 -0
- package/src/components/micro-view-host/index.vue +148 -0
- package/src/components/mobile/file/index.vue +10 -0
- package/src/components/mobile/wf/mixins/wfModifyDialogMixin.js +51 -47
- package/src/components/obsUpload/index.js +34 -0
- package/src/components/obsUpload/index.vue +234 -0
- package/src/components/obsUpload/mixins.js +1542 -0
- package/src/components/onlineTalk/index.vue +1 -1
- package/src/components/onlineTalk/mixins.js +852 -1
- package/src/components/onlineTalk/talkUserDialog.vue +280 -0
- package/src/components/oplogTable/mixins.js +83 -4
- package/src/components/pddPrint/index.js +44 -1
- package/src/components/pddPrint/mixins.js +252 -1
- package/src/components/projectTag/mixins/addButton.js +52 -1
- package/src/components/projectTag/mixins/deleteButton.js +52 -1
- package/src/components/projectTag/mixins/view.js +43 -1
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/scriptDescription/mixins.js +30 -1
- package/src/components/scriptTest/mixins.js +90 -1
- package/src/components/statusTag/mixins.js +66 -1
- package/src/components/table/CellSlot.vue +12 -9
- package/src/components/table/config.js +74 -1
- package/src/components/table/index.js +1215 -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 +285 -1
- package/src/components/table/util/index.js +337 -0
- package/src/components/table/vxeFilter/index.js +153 -1
- package/src/components/table/vxeFilter/mixin.js +310 -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 +57 -30
- package/src/components/vipPrint/index.js +44 -1
- package/src/components/vipPrint/mixins.js +268 -1
- package/src/components/wf/addOpinionButton.vue +57 -0
- package/src/components/wf/content.vue +834 -362
- package/src/components/wf/mixins/addOpinionButton.js +53 -0
- package/src/components/wf/mixins/setCandidateButton.js +161 -0
- package/src/components/wf/mixins/setCandidateDialog.js +217 -5
- package/src/components/wf/mixins/setCandidateDialog2.js +252 -0
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +131 -0
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +69 -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 +2224 -30
- 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 +280 -1
- package/src/components/xform/XFormTabContainer//346/226/260/345/242/236/351/241/265/347/255/276/346/250/241/345/274/217-/346/234/200/347/273/210/345/256/236/347/216/260.md +195 -0
- package/src/components/xform/docs/2026-07 table/344/270/216excelExport/344/277/256/345/244/215/345/217/212/345/257/274/345/207/272/344/274/230/345/214/226.md" +57 -0
- package/src/components/xform/docs/2026-07 /346/216/222/346/237/245/344/277/256/345/244/215/350/256/260/345/275/225.md" +73 -0
- package/src/components/xform/docs/autocomplete /350/207/252/345/212/250/345/256/214/346/210/220/347/273/204/344/273/266/350/257/264/346/230/216.md" +126 -0
- package/src/components/xform/docs//345/220/216/345/217/260/345/255/227/346/256/265/357/274/210/345/212/250/346/200/201/347/224/237/346/210/220/357/274/211JSON /350/257/264/346/230/216.md" +1286 -0
- package/src/components/xform/docs//345/257/271/346/257/224/345/212/237/350/203/275/350/220/275/345/234/260/346/226/271/346/241/210.md +986 -0
- package/src/components/xform/docs//346/225/260/346/215/256/350/241/250/346/240/274/345/212/250/346/200/201/345/210/227 JSON /350/257/264/346/230/216.md" +657 -0
- package/src/components/xform/form-designer/designer.js +2027 -29
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +434 -0
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +108 -1
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +291 -8
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +14 -1
- package/src/components/xform/form-designer/form-widget/container-widget/detail-pane-widget.vue +3 -2
- 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 +320 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +85 -49
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +6 -3
- package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +799 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +30 -8
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1774 -19
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +222 -76
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +67 -54
- 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/area-select-widget.vue +272 -0
- package/src/components/xform/form-designer/form-widget/field-widget/autocomplete-widget.vue +119 -0
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +217 -184
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +76 -66
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +209 -90
- package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +41 -35
- 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 +95 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +14 -3
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +48 -5
- 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 +86 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +170 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1941 -16
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +657 -108
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +964 -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/autocomplete-mixin.js +451 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +157 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +3 -9
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +3 -9
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +3 -9
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/utc-transform-mixin.js +75 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +192 -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 +119 -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 +55 -28
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +119 -0
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +156 -54
- 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/save_submit_wf_button-widget.vue +112 -0
- package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +146 -0
- 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-export-item-button-widget.vue +92 -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 +16 -1
- package/src/components/xform/form-designer/form-widget/field-widget/static-text-widget.vue +8 -3
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +93 -49
- package/src/components/xform/form-designer/form-widget/field-widget/switch-widget.vue +9 -1
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +38 -38
- 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 +111 -34
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +4 -3
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +2 -1
- 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 +188 -70
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +753 -0
- package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +231 -0
- package/src/components/xform/form-designer/form-widget/index.vue +6 -1
- package/src/components/xform/form-designer/form-widget/indexMixin.js +184 -2
- package/src/components/xform/form-designer/index.vue +195 -191
- package/src/components/xform/form-designer/indexMixin.js +855 -24
- package/src/components/xform/form-designer/refMixinDesign.js +27 -28
- package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +601 -0
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +1553 -629
- package/src/components/xform/form-designer/setting-panel/index.vue +313 -305
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +370 -12
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +585 -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/buttonIcon-editor.vue +14 -15
- 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 +124 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1154 -1048
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/edit-tree-button-group-config-dialog.vue +281 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +432 -0
- 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 +1632 -592
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +3 -3
- 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 +34 -46
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +344 -0
- 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/dropdownFlag-editor.vue +133 -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/onClick-editor.vue +23 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaDataType-editor.vue +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaMinLevel-editor.vue +50 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaName-editor.vue +20 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-autocomplete/autocomplete-vabSearchName-editor.vue +199 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-baseAttachment/baseAttachment-fileTypes-editor.vue +23 -0
- 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/icon-editor.vue +14 -15
- 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-cascader/cascader-multiple-editor.vue +8 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/checkStrictly-editor.vue +11 -13
- package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/showAllLevels-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-dateLimit-editor.vue +157 -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-gantt/gantt-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +75 -21
- 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-script-input/script-input-editor.vue +55 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/preWrap-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-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/select-export-item-button-editor.vue +71 -0
- 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-vabUpload/vabUpload-fileTypes-editor.vue +23 -0
- 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/field-vue-page/vue-page-editor.vue +48 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesEditorMixin.js +116 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesSelect.vue +130 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +107 -19
- package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +137 -0
- 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 +17 -16
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +25 -25
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +67 -13
- 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 +127 -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/prefixIcon-editor.vue +14 -15
- 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/showViewButton-editor.vue +29 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/suffixIcon-editor.vue +14 -15
- 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 +304 -19
- package/src/components/xform/form-designer/setting-panel/property-editor/utcTransformEnabled-editor.vue +19 -0
- 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 +369 -324
- package/src/components/xform/form-designer/setting-panel/widgetPropertyDialogMixin.js +186 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +267 -103
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +655 -24
- package/src/components/xform/form-designer/widget-panel/index.vue +389 -321
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +334 -2
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +4535 -3141
- package/src/components/xform/form-render/compareDelList.vue +83 -0
- package/src/components/xform/form-render/compareView.vue +76 -0
- package/src/components/xform/form-render/container-item/containerItemMixin.js +404 -11
- package/src/components/xform/form-render/container-item/data-table-item.vue +221 -203
- package/src/components/xform/form-render/container-item/data-table-mixin.js +3716 -858
- package/src/components/xform/form-render/container-item/detail-h5-item.vue +173 -172
- package/src/components/xform/form-render/container-item/detail-item.vue +287 -158
- package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
- package/src/components/xform/form-render/container-item/dynamicFieldEngine.js +285 -0
- package/src/components/xform/form-render/container-item/dynamicFieldMixin.js +416 -0
- 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 +1184 -419
- package/src/components/xform/form-render/container-item/sub-form-item.vue +10 -2
- package/src/components/xform/form-render/container-item/tab-item.vue +125 -88
- 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 +7 -7
- 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 +198 -99
- package/src/components/xform/form-render/container-item/tree-item.vue +32 -11
- package/src/components/xform/form-render/dynamicDialogRender.js +238 -3
- package/src/components/xform/form-render/dynamicDrawerRender.js +229 -0
- package/src/components/xform/form-render/formDynamicFieldMixin.js +131 -0
- package/src/components/xform/form-render/index.vue +86 -21
- package/src/components/xform/form-render/indexMixin.js +5093 -37
- package/src/components/xform/form-render/refMixin.js +34 -3
- package/src/components/xform/icon-picker/icons.json +284 -0
- package/src/components/xform/icon-picker/index.vue +145 -0
- package/src/components/xform/lang/en-US.js +470 -438
- package/src/components/xform/lang/en-US_extension.js +4 -0
- package/src/components/xform/lang/zh-CN.js +641 -593
- package/src/components/xform/mixins/defaultHandle.js +474 -2
- package/src/components/xform/mixins/scriptHttp.js +179 -3
- package/src/components/xform/utils/dynamicSchemaUtil.js +361 -0
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/formHttp.js +162 -0
- package/src/components/xform/utils/format.js +205 -172
- package/src/components/xform/utils/formula-util.js +969 -0
- package/src/components/xform/utils/sfc-generator.js +2 -2
- package/src/components/xform/utils/smart-vue-i18n/index.js +2 -1
- package/src/components/xform/utils/tableCellValidateUtil.js +148 -0
- package/src/components/xform/utils/tableColumnHelper.js +155 -0
- package/src/components/xform/utils/util.js +1591 -1
- package/src/components/xform/utils/validators.js +185 -4
- package/src/components/xform/utils/vue2js-generator.js +2 -2
- package/src/components/xhsPrint/index.js +44 -1
- package/src/components/xhsPrint/mixins.js +269 -1
- package/src/directive/LimitNumber/index.js +144 -1
- package/src/directive/el-dialog-center/index.js +34 -1
- package/src/directive/el-drag-dialog/drag.js +86 -1
- package/src/directive/el-readonly/index.js +15 -1
- package/src/directive/permission/hasPermi.js +34 -1
- package/src/index.js +472 -190
- package/src/lang/index.js +56 -51
- package/src/lang/locale/en/login.js +27 -0
- package/src/lang/locale/zh/login.js +26 -0
- package/src/layout/components/AppMain.vue +147 -111
- package/src/layout/components/Sidebar/default.vue +1655 -1222
- package/src/layout/components/Sidebar/index.vue +6 -1
- package/src/layout/components/TagsView/index.vue +57 -15
- 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 +103 -0
- package/src/layout/components/extractedCode/viewDialog.vue +207 -0
- package/src/layout/components/langTool.vue +128 -120
- package/src/layout/components/watermark/index.vue +83 -0
- package/src/layout/defaultLayout.vue +170 -150
- package/src/microRouter/index.js +444 -0
- package/src/mixins/selectDialog/index.js +266 -1
- package/src/mixins/tableTree/index.js +199 -4
- package/src/mixins/wf/index.js +33 -1
- package/src/permission.js +158 -16
- package/src/public-path.js +38 -0
- package/src/resources/js/base/common.js +109 -109
- package/src/router/index.js +4 -7
- package/src/router/modules/customer.js +21 -18
- package/src/router/modules/system.js +4 -0
- package/src/store/config/index.js +667 -600
- package/src/store/getters.js +4 -1
- package/src/store/modules/micro.js +57 -0
- package/src/store/modules/permission.js +517 -23
- package/src/store/modules/settings.js +26 -1
- package/src/store/modules/tagsView.js +206 -5
- package/src/store/modules/user.js +418 -28
- package/src/utils/aes.js +21 -1
- package/src/utils/auth.js +27 -1
- package/src/utils/componentDialog.js +339 -0
- package/src/utils/global.js +370 -8
- package/src/utils/index.js +579 -7
- package/src/utils/keepAlive.js +185 -1
- package/src/utils/menuAdapter.js +277 -0
- package/src/utils/pddLog.js +92 -0
- package/src/utils/pdfUtil.js +71 -0
- package/src/utils/repeatOpen.js +48 -0
- package/src/utils/request.js +417 -28
- package/src/utils/resolveViewComponent.js +203 -0
- package/src/utils/vab.js +1276 -27
- package/src/utils/validate.js +104 -1
- 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/dialog.js +84 -1
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +116 -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/formVersion/button.vue +55 -0
- package/src/views/bd/setting/formVersion/compareBasicSection.vue +125 -0
- package/src/views/bd/setting/formVersion/compareCodeSection.vue +539 -0
- package/src/views/bd/setting/formVersion/compareContMixin.scss +65 -0
- package/src/views/bd/setting/formVersion/compareContent.vue +63 -0
- package/src/views/bd/setting/formVersion/compareDialog.vue +88 -0
- package/src/views/bd/setting/formVersion/compareMixin.js +93 -0
- package/src/views/bd/setting/formVersion/fieldCompare.vue +54 -0
- package/src/views/bd/setting/formVersion/formScriptCompareView.vue +94 -0
- package/src/views/bd/setting/formVersion/formTemplateCompareView.vue +74 -0
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +483 -0
- package/src/views/bd/setting/formVersion/link.vue +58 -0
- package/src/views/bd/setting/formVersion/preformDialog.vue +87 -0
- package/src/views/bd/setting/formVersion/reverButton.vue +82 -0
- package/src/views/bd/setting/formVersion/tableDetailDiff.js +99 -0
- package/src/views/bd/setting/formVersion/tableModelCompareView.vue +514 -0
- package/src/views/bd/setting/formVersion/textDiff.js +102 -0
- package/src/views/bd/setting/form_import_log/edit.vue +130 -0
- package/src/views/bd/setting/form_import_log/list.vue +211 -0
- package/src/views/bd/setting/form_script/edit.vue +196 -74
- package/src/views/bd/setting/form_script/edit1.vue +410 -187
- package/src/views/bd/setting/form_script/form_list.vue +174 -85
- package/src/views/bd/setting/form_script/list.vue +95 -21
- package/src/views/bd/setting/form_script/list1.vue +205 -118
- package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +265 -7
- package/src/views/bd/setting/form_script/mixins/edit1.js +259 -9
- package/src/views/bd/setting/form_script/mixins/form_list.js +320 -4
- package/src/views/bd/setting/form_script/mixins/list.js +307 -4
- package/src/views/bd/setting/form_script/mixins/list1.js +512 -14
- package/src/views/bd/setting/form_script/mixins/list2.js +10 -1
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
- package/src/views/bd/setting/form_script/mixins/preformDialog.js +34 -1
- package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +3 -3
- package/src/views/bd/setting/form_template/edit.vue +355 -184
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -0
- package/src/views/bd/setting/form_template/list.vue +301 -214
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +279 -1
- package/src/views/bd/setting/form_template/mixins/dialog.js +103 -1
- package/src/views/bd/setting/form_template/mixins/edit.js +277 -9
- package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +92 -1
- package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +91 -1
- package/src/views/bd/setting/form_template/mixins/itemEdit.js +104 -1
- package/src/views/bd/setting/form_template/mixins/itemList.js +234 -1
- package/src/views/bd/setting/form_template/mixins/list.js +721 -22
- package/src/views/bd/setting/form_template/mixins/list2.js +411 -0
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
- package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -3
- package/src/views/bd/setting/form_template/mixins/wf_list.js +421 -3
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +253 -254
- package/src/views/bd/setting/form_template/wf_list.vue +161 -127
- 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 +93 -0
- package/src/views/bd/setting/logic_param/mixins/list.js +376 -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/dialog.js +139 -1
- package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
- package/src/views/bd/setting/push_data/edit.vue +139 -0
- package/src/views/bd/setting/push_data/list.vue +283 -0
- package/src/views/bd/setting/push_data_h/edit.vue +153 -0
- package/src/views/bd/setting/push_data_h/list.vue +293 -0
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -0
- package/src/views/bd/setting/request_async_setting/list.vue +372 -0
- package/src/views/bd/setting/request_setting/edit.vue +300 -0
- package/src/views/bd/setting/request_setting/list.vue +301 -0
- package/src/views/bd/setting/table_model/edit.vue +1079 -426
- package/src/views/bd/setting/table_model/list.vue +218 -128
- package/src/views/bd/setting/table_model/mixins/dialog.js +71 -1
- package/src/views/bd/setting/table_model/mixins/edit.js +1309 -13
- package/src/views/bd/setting/table_model/mixins/list.js +463 -2
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +114 -3
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/utils/index.js +75 -1
- package/src/views/support/form-dialog-demo/demoPickerDialog.vue +72 -0
- package/src/views/support/form-dialog-demo/index.vue +537 -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/commMenu/index.vue +2 -2
- package/src/views/user/common_attribute/list.vue +4 -1
- package/src/views/user/company_info/dialog.vue +195 -163
- package/src/views/user/extend_datasource/dialog.vue +3 -0
- package/src/views/user/extend_datasource/edit.vue +2 -1
- package/src/views/user/extend_datasource/list.vue +3 -0
- package/src/views/user/fieldTranslation/editDialog.vue +8 -8
- package/src/views/user/fieldTranslation/list.vue +33 -33
- package/src/views/user/file_view_ins/list.vue +22 -1
- package/src/views/user/form/vform/designer.vue +792 -749
- package/src/views/user/form/vform/formFieldMapping.js +2 -3
- package/src/views/user/form/vform/out_render.vue +1 -1
- package/src/views/user/form/vform/render.vue +65 -52
- package/src/views/user/form/view/edit.vue +56 -37
- package/src/views/user/form/view/list.vue +474 -54
- package/src/views/user/home/default.vue +1117 -979
- package/src/views/user/home/default2.vue +1158 -0
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +20 -16
- package/src/views/user/login/default.vue +165 -44
- package/src/views/user/login/index.vue +4 -6
- package/src/views/user/login/indexMixin.js +582 -380
- package/src/views/user/menu/list.vue +50 -1
- package/src/views/user/menuFallback/index.vue +123 -0
- package/src/views/user/notify_message/dialog.vue +65 -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 +202 -211
- package/src/views/user/outLink/index.vue +62 -19
- package/src/views/user/outLink/view.vue +5 -13
- 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/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/infoDialog.vue +61 -1
- package/src/views/user/user/dialog.vue +46 -23
- package/src/views/user/user/edit.vue +1391 -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/info.vue +253 -140
- package/src/views/user/user/list.vue +652 -563
- package/src/views/user/user/modifyPasswordDialog.vue +64 -53
- package/src/views/user/wf/iframe/index.vue +6 -1
- package/src/views/user/wf/iframe/index2.vue +6 -1
- package/src/views/user/wf/wfReport/index.vue +625 -0
- package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
- package/src/views/user/wf/wf_manage/list.vue +678 -256
- package/src/views/user/wf/wf_manage/list2.vue +875 -0
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +47 -22
- 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_transfer_setting/edit.vue +282 -0
- package/src/views/user/wf/wf_transfer_setting/list.vue +319 -0
- package/src/views/user/workbench_menu/list.vue +555 -0
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +0 -1347
- package/src/utils/wf.js +0 -21
|
@@ -1,629 +1,1553 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<el-form
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<el-form-item :label="i18nt('
|
|
17
|
-
<el-input type="text" v-model="
|
|
18
|
-
</el-form-item>
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
</el-form-item>
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
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
|
+
>
|
|
11
|
+
<el-collapse v-model="formActiveCollapseNames" class="setting-collapse">
|
|
12
|
+
<el-collapse-item
|
|
13
|
+
name="1"
|
|
14
|
+
:title="i18nt('designer.setting.basicSetting')"
|
|
15
|
+
>
|
|
16
|
+
<el-form-item :label="i18nt('数据库表')">
|
|
17
|
+
<el-input type="text" v-model="formConfig.entity"></el-input>
|
|
18
|
+
</el-form-item>
|
|
19
|
+
<el-form-item :label="i18nt('数据保存脚本编码')">
|
|
20
|
+
<el-input
|
|
21
|
+
type="text"
|
|
22
|
+
v-model="formConfig.saveScriptCode"
|
|
23
|
+
placeholder="默认saveUpdatge"
|
|
24
|
+
></el-input>
|
|
25
|
+
</el-form-item>
|
|
26
|
+
<el-form-item label="全局参数配置">
|
|
27
|
+
<a
|
|
28
|
+
href="javascript:void(0);"
|
|
29
|
+
class="a-link link-oneLind"
|
|
30
|
+
@click="editFormEventHandler('globalConfig')"
|
|
31
|
+
>
|
|
32
|
+
<span>{{ formConfig.globalConfig }}</span>
|
|
33
|
+
<i class="el-icon-edit"></i>
|
|
34
|
+
</a>
|
|
35
|
+
</el-form-item>
|
|
36
|
+
<el-form-item :label="i18nt('designer.setting.globalFunctions')">
|
|
37
|
+
<a
|
|
38
|
+
href="javascript:void(0);"
|
|
39
|
+
class="a-link link-oneLind"
|
|
40
|
+
@click="editGlobalFunctions"
|
|
41
|
+
>
|
|
42
|
+
<span>{{ formConfig.functions }}</span>
|
|
43
|
+
<i class="el-icon-edit"></i>
|
|
44
|
+
</a>
|
|
45
|
+
</el-form-item>
|
|
46
|
+
<el-form-item :label="i18nt('designer.setting.formCss')">
|
|
47
|
+
<el-button
|
|
48
|
+
type="info"
|
|
49
|
+
icon="el-icon-edit"
|
|
50
|
+
plain
|
|
51
|
+
round
|
|
52
|
+
@click="editFormCss"
|
|
53
|
+
>
|
|
54
|
+
{{ i18nt("designer.setting.addCss") }}
|
|
55
|
+
</el-button>
|
|
56
|
+
</el-form-item>
|
|
57
|
+
</el-collapse-item>
|
|
58
|
+
<el-collapse-item name="2" title="详情表单信息">
|
|
59
|
+
<el-form-item :label="i18nt('加载详情数据')">
|
|
60
|
+
<el-switch v-model="formConfig.isLoadEntity"></el-switch>
|
|
61
|
+
</el-form-item>
|
|
62
|
+
<el-form-item :label="i18nt('详情数据脚本编码')">
|
|
63
|
+
<el-input
|
|
64
|
+
type="text"
|
|
65
|
+
v-model="formConfig.formScriptCode"
|
|
66
|
+
placeholder="默认getOne"
|
|
67
|
+
></el-input>
|
|
68
|
+
</el-form-item>
|
|
69
|
+
<el-form-item :label="i18nt('详情数据脚本参数')">
|
|
70
|
+
<a
|
|
71
|
+
href="javascript:void(0);"
|
|
72
|
+
class="a-link link-oneLind"
|
|
73
|
+
@click="editFormScriptParam"
|
|
74
|
+
>
|
|
75
|
+
<span>{{ formConfig.formScriptParam }}</span>
|
|
76
|
+
<i class="el-icon-edit"></i>
|
|
77
|
+
</a>
|
|
78
|
+
</el-form-item>
|
|
79
|
+
<el-form-item :label="i18nt('详情数据脚本回调')">
|
|
80
|
+
<a
|
|
81
|
+
href="javascript:void(0);"
|
|
82
|
+
class="a-link link-oneLind"
|
|
83
|
+
@click="editFormScriptSuccess"
|
|
84
|
+
>
|
|
85
|
+
<span>{{ formConfig.formScriptSuccess }}</span>
|
|
86
|
+
<i class="el-icon-edit"></i>
|
|
87
|
+
</a>
|
|
88
|
+
</el-form-item>
|
|
89
|
+
<el-form-item :label="i18nt('查看页面表单编码')">
|
|
90
|
+
<el-input
|
|
91
|
+
class="search-input"
|
|
92
|
+
max="200"
|
|
93
|
+
v-model="formConfig.editFormCode"
|
|
94
|
+
@clear="
|
|
95
|
+
formConfig.editFormName = null;
|
|
96
|
+
$forceUpdate();
|
|
97
|
+
"
|
|
98
|
+
v-el-readonly
|
|
99
|
+
clearable
|
|
100
|
+
>
|
|
101
|
+
<i
|
|
102
|
+
slot="suffix"
|
|
103
|
+
class="el-input__icon el-icon-search"
|
|
104
|
+
@click="openFormTemplate(2)"
|
|
105
|
+
></i>
|
|
106
|
+
</el-input>
|
|
107
|
+
</el-form-item>
|
|
108
|
+
<el-form-item :label="i18nt('查看页面表单名称')">
|
|
109
|
+
{{ formConfig.editFormName }}
|
|
110
|
+
</el-form-item>
|
|
111
|
+
<el-form-item :label="i18nt('新增页面表单编码')">
|
|
112
|
+
<el-input
|
|
113
|
+
class="search-input"
|
|
114
|
+
max="200"
|
|
115
|
+
v-model="formConfig.addFormCode"
|
|
116
|
+
@clear="
|
|
117
|
+
formConfig.addFormCode = null;
|
|
118
|
+
formConfig.addFormName = null;
|
|
119
|
+
$forceUpdate();
|
|
120
|
+
"
|
|
121
|
+
v-el-readonly
|
|
122
|
+
clearable
|
|
123
|
+
placeholder="默认使用查看表单编码"
|
|
124
|
+
>
|
|
125
|
+
<i
|
|
126
|
+
slot="suffix"
|
|
127
|
+
class="el-input__icon el-icon-search"
|
|
128
|
+
@click="openFormTemplate(1)"
|
|
129
|
+
></i>
|
|
130
|
+
</el-input>
|
|
131
|
+
</el-form-item>
|
|
132
|
+
<el-form-item :label="i18nt('新增页面表单名称')">
|
|
133
|
+
{{ formConfig.addFormName }}
|
|
134
|
+
</el-form-item>
|
|
135
|
+
<el-form-item :label="i18nt('详情翻单按钮')">
|
|
136
|
+
<el-switch v-model="formConfig.billNavEnabled"></el-switch>
|
|
137
|
+
<span style="margin-left: 8px; color: #999; font-size: 12px">
|
|
138
|
+
编辑态页签显示「上一单/下一单」
|
|
139
|
+
</span>
|
|
140
|
+
</el-form-item>
|
|
141
|
+
</el-collapse-item>
|
|
142
|
+
<el-collapse-item name="3" title="流程信息">
|
|
143
|
+
<el-form-item :label="i18nt('启用流程')">
|
|
144
|
+
<el-switch
|
|
145
|
+
v-model="formConfig.wfEnabled"
|
|
146
|
+
@change="changeWfEnabled"
|
|
147
|
+
></el-switch>
|
|
148
|
+
</el-form-item>
|
|
149
|
+
<el-form-item :label="i18nt('默认流程单据类型名称')">
|
|
150
|
+
<el-input
|
|
151
|
+
type="text"
|
|
152
|
+
v-model="designer.vueInstance.reportTemplate.objTypeName"
|
|
153
|
+
></el-input>
|
|
154
|
+
</el-form-item>
|
|
155
|
+
<el-form-item>
|
|
156
|
+
<span slot="label"
|
|
157
|
+
>流程主题
|
|
158
|
+
<scriptDescriptionButton
|
|
159
|
+
title="流程主题说明"
|
|
160
|
+
path="static/readme/WfSubject.txt"
|
|
161
|
+
></scriptDescriptionButton>
|
|
162
|
+
</span>
|
|
163
|
+
</el-form-item>
|
|
164
|
+
<div>
|
|
165
|
+
<el-input
|
|
166
|
+
style="word-break: break-word"
|
|
167
|
+
type="textarea"
|
|
168
|
+
:rows="3"
|
|
169
|
+
v-model="formConfig.wfTheme"
|
|
170
|
+
clearable
|
|
171
|
+
></el-input>
|
|
172
|
+
</div>
|
|
173
|
+
<el-form-item :label="i18nt('流程启动时自动保存表单数据')">
|
|
174
|
+
<el-switch v-model="formConfig.wfStartBindSave"></el-switch>
|
|
175
|
+
</el-form-item>
|
|
176
|
+
<el-form-item :label="i18nt('流程启动确认提示脚本')">
|
|
177
|
+
<a
|
|
178
|
+
href="javascript:void(0);"
|
|
179
|
+
class="a-link link-oneLind"
|
|
180
|
+
@click="editFormEventHandler('wfStartConfirmText')"
|
|
181
|
+
>
|
|
182
|
+
<span>{{ formConfig.wfStartConfirmText }}</span>
|
|
183
|
+
<i class="el-icon-edit"></i>
|
|
184
|
+
</a>
|
|
185
|
+
</el-form-item>
|
|
186
|
+
|
|
187
|
+
<el-form-item :label="i18nt('流程通过时自动保存表单数据')">
|
|
188
|
+
<el-switch v-model="formConfig.wfAgreenBindSave"></el-switch>
|
|
189
|
+
</el-form-item>
|
|
190
|
+
<el-form-item :label="i18nt('流程通过时自动保存表单数据的节点配置')">
|
|
191
|
+
<a
|
|
192
|
+
href="javascript:void(0);"
|
|
193
|
+
class="a-link link-oneLind"
|
|
194
|
+
@click="openWfConfigDataDialog2"
|
|
195
|
+
>
|
|
196
|
+
<span>{{
|
|
197
|
+
formConfig.wfAgreeConfigData &&
|
|
198
|
+
formConfig.wfAgreeConfigData.length
|
|
199
|
+
? "已维护"
|
|
200
|
+
: ""
|
|
201
|
+
}}</span>
|
|
202
|
+
<i class="el-icon-edit"></i>
|
|
203
|
+
</a>
|
|
204
|
+
</el-form-item>
|
|
205
|
+
<el-form-item :label="i18nt('启用流程节点可编辑表单')">
|
|
206
|
+
<el-switch v-model="formConfig.wfConfigDataEnabled"></el-switch>
|
|
207
|
+
</el-form-item>
|
|
208
|
+
<el-form-item :label="i18nt('流程节点可编辑表单配置')">
|
|
209
|
+
<a
|
|
210
|
+
href="javascript:void(0);"
|
|
211
|
+
class="a-link link-oneLind"
|
|
212
|
+
@click="openWfConfigDataDialog"
|
|
213
|
+
>
|
|
214
|
+
<span>{{
|
|
215
|
+
formConfig.wfConfigData && formConfig.wfConfigData.length
|
|
216
|
+
? "已维护"
|
|
217
|
+
: ""
|
|
218
|
+
}}</span>
|
|
219
|
+
<i class="el-icon-edit"></i>
|
|
220
|
+
</a>
|
|
221
|
+
</el-form-item>
|
|
222
|
+
<el-form-item :label="i18nt('引用流程的表单编码')">
|
|
223
|
+
<el-input
|
|
224
|
+
type="text"
|
|
225
|
+
v-model="designer.vueInstance.reportTemplate.fromWfFormCode"
|
|
226
|
+
></el-input>
|
|
227
|
+
</el-form-item>
|
|
228
|
+
<el-form-item :label="i18nt('流程自定义配置')">
|
|
229
|
+
<a
|
|
230
|
+
href="javascript:void(0);"
|
|
231
|
+
class="a-link link-oneLind"
|
|
232
|
+
@click="editFormEventHandler('wfConfig')"
|
|
233
|
+
>
|
|
234
|
+
<span>{{ formConfig.wfConfig }}</span>
|
|
235
|
+
<i class="el-icon-edit"></i>
|
|
236
|
+
</a>
|
|
237
|
+
</el-form-item>
|
|
238
|
+
</el-collapse-item>
|
|
239
|
+
<el-collapse-item name="4" title="列表标签页信息">
|
|
240
|
+
<el-form-item :label="i18nt('列表启用详情多标签')">
|
|
241
|
+
<el-switch v-model="formConfig.multiTabEnabled"></el-switch>
|
|
242
|
+
</el-form-item>
|
|
243
|
+
<el-form-item :label="i18nt('标签名称字段')">
|
|
244
|
+
<el-input
|
|
245
|
+
type="text"
|
|
246
|
+
v-model="formConfig.multiTabLabelField"
|
|
247
|
+
></el-input>
|
|
248
|
+
</el-form-item>
|
|
249
|
+
<el-form-item
|
|
250
|
+
v-if="formConfig.multiTabEnabled"
|
|
251
|
+
:label="i18nt('新增打开页签')"
|
|
252
|
+
>
|
|
253
|
+
<el-switch v-model="formConfig.addTabEnabled"></el-switch>
|
|
254
|
+
<span style="margin-left: 8px; color: #999; font-size: 12px">
|
|
255
|
+
开启后新增打开独立可关闭页签,需配置「标签名称字段」
|
|
256
|
+
</span>
|
|
257
|
+
</el-form-item>
|
|
258
|
+
<el-form-item :label="i18nt('流程启动后行为')">
|
|
259
|
+
<el-radio-group v-model="formConfig.submitBehavior">
|
|
260
|
+
<el-radio label="closeToList">关闭页签并回列表刷新</el-radio>
|
|
261
|
+
<el-radio label="refreshCurrent">刷新当前页签</el-radio>
|
|
262
|
+
</el-radio-group>
|
|
263
|
+
</el-form-item>
|
|
264
|
+
</el-collapse-item>
|
|
265
|
+
<el-collapse-item name="5" title="其他标签页信息">
|
|
266
|
+
<el-form-item :label="i18nt('自定义列表标签名称')">
|
|
267
|
+
<el-input
|
|
268
|
+
type="text"
|
|
269
|
+
v-model="formConfig.customListTabLabel"
|
|
270
|
+
placeholder="默认`列表`"
|
|
271
|
+
></el-input>
|
|
272
|
+
</el-form-item>
|
|
273
|
+
<el-form-item :label="i18nt('启用其他标签页')">
|
|
274
|
+
<el-switch v-model="formConfig.otherTabEnabled"></el-switch>
|
|
275
|
+
</el-form-item>
|
|
276
|
+
<el-form-item :label="i18nt('隐藏常规标签')">
|
|
277
|
+
<el-switch v-model="formConfig.hideNormalTab"></el-switch>
|
|
278
|
+
</el-form-item>
|
|
279
|
+
<el-form-item :label="i18nt('其他标签页配置')"> </el-form-item>
|
|
280
|
+
<el-form-item label-width="0">
|
|
281
|
+
<div>
|
|
282
|
+
<draggable
|
|
283
|
+
tag="ul"
|
|
284
|
+
class="draggable-box"
|
|
285
|
+
:list="formConfig.otherTabList"
|
|
286
|
+
v-bind="{
|
|
287
|
+
group: 'optionsGroup',
|
|
288
|
+
ghostClass: 'ghost',
|
|
289
|
+
handle: '.drag-option',
|
|
290
|
+
}"
|
|
291
|
+
>
|
|
292
|
+
<li v-for="(option, idx) in formConfig.otherTabList" :key="idx">
|
|
293
|
+
<el-input
|
|
294
|
+
v-model="option.label"
|
|
295
|
+
size="mini"
|
|
296
|
+
style="width: 100px"
|
|
297
|
+
placeholder="标签名称"
|
|
298
|
+
></el-input>
|
|
299
|
+
<el-input
|
|
300
|
+
v-model="option.formCode"
|
|
301
|
+
size="mini"
|
|
302
|
+
style="width: 100px"
|
|
303
|
+
placeholder="表单模板编码"
|
|
304
|
+
></el-input>
|
|
305
|
+
<i class="el-icon-s-operation drag-option"></i>
|
|
306
|
+
<el-button
|
|
307
|
+
circle
|
|
308
|
+
plain
|
|
309
|
+
size="mini"
|
|
310
|
+
type="danger"
|
|
311
|
+
@click="formConfig.otherTabList.splice(idx, 1)"
|
|
312
|
+
icon="el-icon-minus"
|
|
313
|
+
class="col-delete-button"
|
|
314
|
+
></el-button>
|
|
315
|
+
</li>
|
|
316
|
+
</draggable>
|
|
317
|
+
<el-button type="text" @click="addOtherTab">{{
|
|
318
|
+
i18nt("designer.setting.addOption")
|
|
319
|
+
}}</el-button>
|
|
320
|
+
</div>
|
|
321
|
+
</el-form-item>
|
|
322
|
+
</el-collapse-item>
|
|
323
|
+
<el-collapse-item name="6" title="查询弹框展示信息">
|
|
324
|
+
<el-form-item :label="i18nt('展示字段')">
|
|
325
|
+
<el-input
|
|
326
|
+
class="search-input"
|
|
327
|
+
max="200"
|
|
328
|
+
v-model="formConfig.searchDialogNameField"
|
|
329
|
+
clearable
|
|
330
|
+
>
|
|
331
|
+
</el-input>
|
|
332
|
+
</el-form-item>
|
|
333
|
+
<el-form-item :label="i18nt('数据唯一标识')">
|
|
334
|
+
<el-input
|
|
335
|
+
class="search-input"
|
|
336
|
+
max="200"
|
|
337
|
+
v-model="formConfig.searchDialogUniqueField"
|
|
338
|
+
clearable
|
|
339
|
+
>
|
|
340
|
+
</el-input>
|
|
341
|
+
</el-form-item>
|
|
342
|
+
</el-collapse-item>
|
|
343
|
+
|
|
344
|
+
<el-collapse-item name="8" title="动态字段规则">
|
|
345
|
+
<form-dynamic-field-setting
|
|
346
|
+
:designer="designer"
|
|
347
|
+
:form-config="formConfig"
|
|
348
|
+
></form-dynamic-field-setting>
|
|
349
|
+
</el-collapse-item>
|
|
350
|
+
|
|
351
|
+
<el-collapse-item
|
|
352
|
+
v-if="showEventCollapse()"
|
|
353
|
+
name="7"
|
|
354
|
+
:title="i18nt('designer.setting.eventSetting')"
|
|
355
|
+
>
|
|
356
|
+
<!-- <el-form-item label="onBeforeCreated" label-width="150px">
|
|
357
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
358
|
+
@click="editFormEventHandler('onBeforeCreated', ['dataId','done'])">
|
|
359
|
+
<span>{{ formConfig.onBeforeCreated }}</span>
|
|
360
|
+
<i class="el-icon-edit"></i>
|
|
361
|
+
</a>
|
|
362
|
+
</el-form-item>-->
|
|
363
|
+
<el-form-item label="onFormCreated" label-width="150px">
|
|
364
|
+
<a
|
|
365
|
+
href="javascript:void(0);"
|
|
366
|
+
class="a-link link-oneLind"
|
|
367
|
+
@click="editFormEventHandler('onFormCreated')"
|
|
368
|
+
>
|
|
369
|
+
<span>{{ formConfig.onFormCreated }}</span>
|
|
370
|
+
<i class="el-icon-edit"></i>
|
|
371
|
+
</a>
|
|
372
|
+
</el-form-item>
|
|
373
|
+
<el-form-item label="onFormBeforeMounted" label-width="150px">
|
|
374
|
+
<a
|
|
375
|
+
href="javascript:void(0);"
|
|
376
|
+
class="a-link link-oneLind"
|
|
377
|
+
@click="editFormEventHandler('onFormBeforeMounted')"
|
|
378
|
+
>
|
|
379
|
+
<span>{{ formConfig.onFormBeforeMounted }}</span>
|
|
380
|
+
<i class="el-icon-edit"></i>
|
|
381
|
+
</a>
|
|
382
|
+
</el-form-item>
|
|
383
|
+
<el-form-item label="onFormMounted" label-width="150px">
|
|
384
|
+
<a
|
|
385
|
+
href="javascript:void(0);"
|
|
386
|
+
class="a-link link-oneLind"
|
|
387
|
+
@click="editFormEventHandler('onFormMounted')"
|
|
388
|
+
>
|
|
389
|
+
<span>{{ formConfig.onFormMounted }}</span>
|
|
390
|
+
<i class="el-icon-edit"></i>
|
|
391
|
+
</a>
|
|
392
|
+
</el-form-item>
|
|
393
|
+
<!-- -->
|
|
394
|
+
<el-form-item label="onFormDataChange" label-width="150px">
|
|
395
|
+
<a
|
|
396
|
+
href="javascript:void(0);"
|
|
397
|
+
class="a-link link-oneLind"
|
|
398
|
+
@click="editFormEventHandler('onFormDataChange')"
|
|
399
|
+
>
|
|
400
|
+
<span>{{ formConfig.onFormDataChange }}</span>
|
|
401
|
+
<i class="el-icon-edit"></i>
|
|
402
|
+
</a>
|
|
403
|
+
</el-form-item>
|
|
404
|
+
<!-- -->
|
|
405
|
+
<!--
|
|
406
|
+
<el-form-item label="onFormValidate">
|
|
407
|
+
<el-button type="info" icon="el-icon-edit" plain round @click="editFormEventHandler('onFormValidate')">
|
|
408
|
+
{{i18nt('designer.setting.addEventHandler')}}</el-button>
|
|
409
|
+
</el-form-item>
|
|
410
|
+
-->
|
|
411
|
+
</el-collapse-item>
|
|
412
|
+
</el-collapse>
|
|
413
|
+
</el-form>
|
|
414
|
+
|
|
415
|
+
<el-dialog
|
|
416
|
+
:title="formEventDialogTitle"
|
|
417
|
+
:visible.sync="showFormEventDialogFlag"
|
|
418
|
+
v-if="showFormEventDialogFlag"
|
|
419
|
+
:show-close="true"
|
|
420
|
+
custom-class="dialog-style list-dialog"
|
|
421
|
+
v-dialog-drag
|
|
422
|
+
:close-on-click-modal="false"
|
|
423
|
+
:close-on-press-escape="false"
|
|
424
|
+
:destroy-on-close="true"
|
|
425
|
+
:append-to-body="true"
|
|
426
|
+
:modal-append-to-body="true"
|
|
427
|
+
top="5vh"
|
|
428
|
+
>
|
|
429
|
+
<div class="cont">
|
|
430
|
+
<el-alert
|
|
431
|
+
type="info"
|
|
432
|
+
:closable="false"
|
|
433
|
+
:title="'form.' + eventParamsMap[curEventName]"
|
|
434
|
+
></el-alert>
|
|
435
|
+
<code-editor
|
|
436
|
+
:mode="'javascript'"
|
|
437
|
+
:readonly="false"
|
|
438
|
+
v-model="formEventHandlerCode"
|
|
439
|
+
ref="ecEditor"
|
|
440
|
+
></code-editor>
|
|
441
|
+
<el-alert type="info" :closable="false" title="}"></el-alert>
|
|
442
|
+
</div>
|
|
443
|
+
<div slot="footer" class="dialog-footer">
|
|
444
|
+
<el-button
|
|
445
|
+
@click="showFormEventDialogFlag = false"
|
|
446
|
+
class="button-sty"
|
|
447
|
+
icon="el-icon-close"
|
|
448
|
+
>
|
|
449
|
+
{{ i18nt("designer.hint.cancel") }}
|
|
450
|
+
</el-button>
|
|
451
|
+
<el-button
|
|
452
|
+
type="primary"
|
|
453
|
+
@click="saveFormEventHandler"
|
|
454
|
+
class="button-sty"
|
|
455
|
+
icon="el-icon-check"
|
|
456
|
+
>
|
|
457
|
+
{{ i18nt("designer.hint.confirm") }}
|
|
458
|
+
</el-button>
|
|
459
|
+
</div>
|
|
460
|
+
</el-dialog>
|
|
461
|
+
|
|
462
|
+
<el-dialog
|
|
463
|
+
:title="i18nt('designer.setting.formCss')"
|
|
464
|
+
:visible.sync="showEditFormCssDialogFlag"
|
|
465
|
+
v-if="showEditFormCssDialogFlag"
|
|
466
|
+
:show-close="true"
|
|
467
|
+
custom-class="dialog-style list-dialog"
|
|
468
|
+
v-dialog-drag
|
|
469
|
+
:close-on-click-modal="false"
|
|
470
|
+
:close-on-press-escape="false"
|
|
471
|
+
:destroy-on-close="true"
|
|
472
|
+
:append-to-body="true"
|
|
473
|
+
:modal-append-to-body="true"
|
|
474
|
+
>
|
|
475
|
+
<div class="cont">
|
|
476
|
+
<code-editor
|
|
477
|
+
:mode="'css'"
|
|
478
|
+
:readonly="false"
|
|
479
|
+
v-model="formCssCode"
|
|
480
|
+
></code-editor>
|
|
481
|
+
</div>
|
|
482
|
+
<div slot="footer" class="dialog-footer">
|
|
483
|
+
<el-button
|
|
484
|
+
@click="showEditFormCssDialogFlag = false"
|
|
485
|
+
class="button-sty"
|
|
486
|
+
icon="el-icon-close"
|
|
487
|
+
>
|
|
488
|
+
{{ i18nt("designer.hint.cancel") }}
|
|
489
|
+
</el-button>
|
|
490
|
+
<el-button
|
|
491
|
+
type="primary"
|
|
492
|
+
@click="saveFormCss"
|
|
493
|
+
class="button-sty"
|
|
494
|
+
icon="el-icon-check"
|
|
495
|
+
>
|
|
496
|
+
{{ i18nt("designer.hint.confirm") }}
|
|
497
|
+
</el-button>
|
|
498
|
+
</div>
|
|
499
|
+
</el-dialog>
|
|
500
|
+
|
|
501
|
+
<el-dialog
|
|
502
|
+
:title="i18nt('designer.setting.globalFunctions')"
|
|
503
|
+
:visible.sync="showEditFunctionsDialogFlag"
|
|
504
|
+
v-if="showEditFunctionsDialogFlag"
|
|
505
|
+
:show-close="true"
|
|
506
|
+
custom-class="dialog-style list-dialog"
|
|
507
|
+
v-dialog-drag
|
|
508
|
+
:close-on-click-modal="false"
|
|
509
|
+
:close-on-press-escape="false"
|
|
510
|
+
:destroy-on-close="true"
|
|
511
|
+
:append-to-body="true"
|
|
512
|
+
:modal-append-to-body="true"
|
|
513
|
+
>
|
|
514
|
+
<div class="cont">
|
|
515
|
+
<code-editor
|
|
516
|
+
:mode="'javascript'"
|
|
517
|
+
:readonly="false"
|
|
518
|
+
v-model="functionsCode"
|
|
519
|
+
ref="gfEditor"
|
|
520
|
+
></code-editor>
|
|
521
|
+
</div>
|
|
522
|
+
<div slot="footer" class="dialog-footer">
|
|
523
|
+
<el-button
|
|
524
|
+
@click="showEditFunctionsDialogFlag = false"
|
|
525
|
+
class="button-sty"
|
|
526
|
+
icon="el-icon-close"
|
|
527
|
+
>
|
|
528
|
+
{{ i18nt("designer.hint.cancel") }}
|
|
529
|
+
</el-button>
|
|
530
|
+
<el-button
|
|
531
|
+
type="primary"
|
|
532
|
+
@click="saveGlobalFunctions"
|
|
533
|
+
class="button-sty"
|
|
534
|
+
icon="el-icon-check"
|
|
535
|
+
>
|
|
536
|
+
{{ i18nt("designer.hint.confirm") }}
|
|
537
|
+
</el-button>
|
|
538
|
+
</div>
|
|
539
|
+
</el-dialog>
|
|
540
|
+
|
|
541
|
+
<el-dialog
|
|
542
|
+
:title="i18nt('详情数据脚本参数')"
|
|
543
|
+
:visible.sync="showFormScriptParamDialog"
|
|
544
|
+
v-if="showFormScriptParamDialog"
|
|
545
|
+
:show-close="true"
|
|
546
|
+
custom-class="dialog-style list-dialog"
|
|
547
|
+
v-dialog-drag
|
|
548
|
+
:close-on-click-modal="false"
|
|
549
|
+
:close-on-press-escape="false"
|
|
550
|
+
:destroy-on-close="true"
|
|
551
|
+
:append-to-body="true"
|
|
552
|
+
:modal-append-to-body="true"
|
|
553
|
+
>
|
|
554
|
+
<div class="cont">
|
|
555
|
+
<code-editor
|
|
556
|
+
:mode="'javascript'"
|
|
557
|
+
:readonly="false"
|
|
558
|
+
v-model="formScriptParam"
|
|
559
|
+
ref="gfEditor"
|
|
560
|
+
></code-editor>
|
|
561
|
+
</div>
|
|
562
|
+
<div slot="footer" class="dialog-footer">
|
|
563
|
+
<el-button
|
|
564
|
+
@click="showFormScriptParamDialog = false"
|
|
565
|
+
class="button-sty"
|
|
566
|
+
icon="el-icon-close"
|
|
567
|
+
>
|
|
568
|
+
{{ i18nt("designer.hint.cancel") }}
|
|
569
|
+
</el-button>
|
|
570
|
+
<el-button
|
|
571
|
+
type="primary"
|
|
572
|
+
@click="saveFormScriptParam"
|
|
573
|
+
class="button-sty"
|
|
574
|
+
icon="el-icon-check"
|
|
575
|
+
>
|
|
576
|
+
{{ i18nt("designer.hint.confirm") }}
|
|
577
|
+
</el-button>
|
|
578
|
+
</div>
|
|
579
|
+
</el-dialog>
|
|
580
|
+
<el-dialog
|
|
581
|
+
:title="i18nt('详情数据脚本回调')"
|
|
582
|
+
:visible.sync="showFormScriptSuccessDialog"
|
|
583
|
+
v-if="showFormScriptSuccessDialog"
|
|
584
|
+
:show-close="true"
|
|
585
|
+
custom-class="dialog-style list-dialog"
|
|
586
|
+
v-dialog-drag
|
|
587
|
+
:close-on-click-modal="false"
|
|
588
|
+
:close-on-press-escape="false"
|
|
589
|
+
:destroy-on-close="true"
|
|
590
|
+
:append-to-body="true"
|
|
591
|
+
:modal-append-to-body="true"
|
|
592
|
+
>
|
|
593
|
+
<div class="cont">
|
|
594
|
+
<code-editor
|
|
595
|
+
:mode="'javascript'"
|
|
596
|
+
:readonly="false"
|
|
597
|
+
v-model="formScriptSuccess"
|
|
598
|
+
ref="gfEditor"
|
|
599
|
+
></code-editor>
|
|
600
|
+
</div>
|
|
601
|
+
<div slot="footer" class="dialog-footer">
|
|
602
|
+
<el-button
|
|
603
|
+
@click="showFormScriptSuccessDialog = false"
|
|
604
|
+
class="button-sty"
|
|
605
|
+
icon="el-icon-close"
|
|
606
|
+
>
|
|
607
|
+
{{ i18nt("designer.hint.cancel") }}
|
|
608
|
+
</el-button>
|
|
609
|
+
<el-button
|
|
610
|
+
type="primary"
|
|
611
|
+
@click="saveFormScriptSuccess"
|
|
612
|
+
class="button-sty"
|
|
613
|
+
icon="el-icon-check"
|
|
614
|
+
>
|
|
615
|
+
{{ i18nt("designer.hint.confirm") }}
|
|
616
|
+
</el-button>
|
|
617
|
+
</div>
|
|
618
|
+
</el-dialog>
|
|
619
|
+
<el-dialog
|
|
620
|
+
v-if="dialogVisible"
|
|
621
|
+
custom-class="dialog-style list-dialog"
|
|
622
|
+
:title="i18nt('流程节点可编辑表单配置')"
|
|
623
|
+
:visible.sync="dialogVisible"
|
|
624
|
+
:show-close="!0"
|
|
625
|
+
:append-to-body="true"
|
|
626
|
+
:modal="false"
|
|
627
|
+
:close-on-click-modal="!1"
|
|
628
|
+
:close-on-press-escape="!1"
|
|
629
|
+
:destroy-on-close="!0"
|
|
630
|
+
width="1220px"
|
|
631
|
+
top="5vh"
|
|
632
|
+
v-dialog-drag
|
|
633
|
+
:fullscreen="true"
|
|
634
|
+
>
|
|
635
|
+
<div class="cont" style="padding-bottom: 8px">
|
|
636
|
+
<el-table
|
|
637
|
+
ref="singleTable"
|
|
638
|
+
width="100%"
|
|
639
|
+
:data="wfConfigData"
|
|
640
|
+
height="100%"
|
|
641
|
+
border=""
|
|
642
|
+
row-key="columnId"
|
|
643
|
+
stripe=""
|
|
644
|
+
style="margin-bottom: 0px"
|
|
645
|
+
>
|
|
646
|
+
<el-table-column
|
|
647
|
+
type="index"
|
|
648
|
+
width="35"
|
|
649
|
+
fixed="left"
|
|
650
|
+
></el-table-column>
|
|
651
|
+
<!-- <el-table-column :label="i18nt('服务')" width="150">
|
|
652
|
+
<template slot-scope="{ row }">
|
|
653
|
+
<el-select v-model="row.serveType" @change="changeServeType(row)">
|
|
654
|
+
<el-option :value="1" label="正式"></el-option>
|
|
655
|
+
<el-option :value="2" label="UAT"></el-option>
|
|
656
|
+
<el-option :value="3" label="测试"></el-option>
|
|
657
|
+
<el-option :value="4" label="自定义"></el-option>
|
|
658
|
+
</el-select>
|
|
659
|
+
</template>
|
|
660
|
+
</el-table-column>
|
|
661
|
+
<el-table-column :label="i18nt('自定义服务')" width="150">
|
|
662
|
+
<template slot-scope="{ row }">
|
|
663
|
+
<el-input
|
|
664
|
+
v-model="row.serveName"
|
|
665
|
+
clearable
|
|
666
|
+
:disabled="row.serveType !== 4"
|
|
667
|
+
></el-input>
|
|
668
|
+
</template>
|
|
669
|
+
</el-table-column>
|
|
670
|
+
<el-table-column :label="i18nt('组织编码')" width="250">
|
|
671
|
+
<template slot-scope="{ row, $index }">
|
|
672
|
+
<el-input v-model="row.companyCodes" clearable></el-input>
|
|
673
|
+
</template>
|
|
674
|
+
</el-table-column> -->
|
|
675
|
+
<el-table-column :label="i18nt('组织编码')" width="250">
|
|
676
|
+
<template slot-scope="{ row, $index }">
|
|
677
|
+
<el-input
|
|
678
|
+
class="search-input"
|
|
679
|
+
max="200"
|
|
680
|
+
v-model="row.companyCodes"
|
|
681
|
+
@clear="clearBdCompanyEnv1(row)"
|
|
682
|
+
v-el-readonly
|
|
683
|
+
clearable
|
|
684
|
+
>
|
|
685
|
+
<i
|
|
686
|
+
slot="suffix"
|
|
687
|
+
class="el-input__icon el-icon-search"
|
|
688
|
+
@click="openBdCompanyEnvDialog1($index)"
|
|
689
|
+
></i>
|
|
690
|
+
</el-input>
|
|
691
|
+
</template>
|
|
692
|
+
</el-table-column>
|
|
693
|
+
<el-table-column :label="i18nt('服务名称')" width="150">
|
|
694
|
+
<template slot-scope="{ row }">
|
|
695
|
+
{{ row.serveName }}
|
|
696
|
+
</template>
|
|
697
|
+
</el-table-column>
|
|
698
|
+
<!-- <el-table-column :label="i18nt('流程模板编码')" width="150">
|
|
699
|
+
<template slot-scope="{ row }">
|
|
700
|
+
<el-input v-model="row.modelKey" clearable></el-input>
|
|
701
|
+
</template>
|
|
702
|
+
</el-table-column> -->
|
|
703
|
+
<el-table-column :label="i18nt('流程模板序号')" width="150">
|
|
704
|
+
<template slot-scope="{ row }">
|
|
705
|
+
<base-input-number
|
|
706
|
+
v-model="row.modelOrders"
|
|
707
|
+
clearable
|
|
708
|
+
></base-input-number>
|
|
709
|
+
</template>
|
|
710
|
+
</el-table-column>
|
|
711
|
+
<el-table-column
|
|
712
|
+
:label="i18nt('节点步骤(多个值用“,”隔开)')"
|
|
713
|
+
width="250"
|
|
714
|
+
>
|
|
715
|
+
<template slot-scope="{ row }">
|
|
716
|
+
<el-input v-model="row.taskSteps" clearable></el-input>
|
|
717
|
+
</template>
|
|
718
|
+
</el-table-column>
|
|
719
|
+
<!-- <el-table-column :label="i18nt('设置')" width="150">
|
|
720
|
+
<template slot-scope="{row}">
|
|
721
|
+
<el-select v-model="row.type" clearable>
|
|
722
|
+
<el-option :value="1" label="可编辑"></el-option>
|
|
723
|
+
<el-option :value="2" label="仅显示"></el-option>
|
|
724
|
+
<el-option :value="3" label="隐藏"></el-option>
|
|
725
|
+
</el-select>
|
|
726
|
+
</template>
|
|
727
|
+
</el-table-column>-->
|
|
728
|
+
<el-table-column
|
|
729
|
+
:label="i18nt('designer.setting.actionColumn')"
|
|
730
|
+
width="100"
|
|
731
|
+
align="center"
|
|
732
|
+
>
|
|
733
|
+
<template #header>
|
|
734
|
+
<span>{{ i18nt("designer.setting.actionColumn") }}</span>
|
|
735
|
+
<el-button
|
|
736
|
+
:title="i18nt('designer.setting.addTableColumn')"
|
|
737
|
+
size="mini"
|
|
738
|
+
type=""
|
|
739
|
+
circle=""
|
|
740
|
+
icon="el-icon-plus"
|
|
741
|
+
@click="addItem"
|
|
742
|
+
></el-button>
|
|
743
|
+
</template>
|
|
744
|
+
<template slot-scope="scope">
|
|
745
|
+
<el-button
|
|
746
|
+
:title="i18nt('designer.setting.deleteTableColumn')"
|
|
747
|
+
size="mini"
|
|
748
|
+
type=""
|
|
749
|
+
circle=""
|
|
750
|
+
icon="el-icon-minus"
|
|
751
|
+
@click="wfConfigData.splice(scope.$index, 1)"
|
|
752
|
+
></el-button>
|
|
753
|
+
</template>
|
|
754
|
+
</el-table-column>
|
|
755
|
+
</el-table>
|
|
756
|
+
</div>
|
|
757
|
+
<div class="dialog-footer" slot="footer">
|
|
758
|
+
<el-button
|
|
759
|
+
@click="dialogVisible = false"
|
|
760
|
+
class="button-sty"
|
|
761
|
+
icon="el-icon-close"
|
|
762
|
+
>
|
|
763
|
+
{{ i18nt("designer.hint.cancel") }}
|
|
764
|
+
</el-button>
|
|
765
|
+
<el-button
|
|
766
|
+
type="primary"
|
|
767
|
+
@click="confirmWfConfigDataDialog"
|
|
768
|
+
class="button-sty"
|
|
769
|
+
icon="el-icon-check"
|
|
770
|
+
>
|
|
771
|
+
{{ i18nt("designer.hint.confirm") }}
|
|
772
|
+
</el-button>
|
|
773
|
+
</div>
|
|
774
|
+
</el-dialog>
|
|
775
|
+
|
|
776
|
+
<el-dialog
|
|
777
|
+
v-if="dialogVisible2"
|
|
778
|
+
custom-class="dialog-style list-dialog"
|
|
779
|
+
:title="i18nt('流程通过时自动保存表单数据的节点配置')"
|
|
780
|
+
:visible.sync="dialogVisible2"
|
|
781
|
+
:show-close="!0"
|
|
782
|
+
:append-to-body="true"
|
|
783
|
+
:modal="false"
|
|
784
|
+
:close-on-click-modal="!1"
|
|
785
|
+
:close-on-press-escape="!1"
|
|
786
|
+
:destroy-on-close="!0"
|
|
787
|
+
width="1220px"
|
|
788
|
+
top="5vh"
|
|
789
|
+
v-dialog-drag
|
|
790
|
+
:fullscreen="true"
|
|
791
|
+
>
|
|
792
|
+
<div class="cont" style="padding-bottom: 8px">
|
|
793
|
+
<el-table
|
|
794
|
+
ref="singleTable"
|
|
795
|
+
width="100%"
|
|
796
|
+
:data="wfAgreeConfigData"
|
|
797
|
+
height="100%"
|
|
798
|
+
border=""
|
|
799
|
+
row-key="columnId"
|
|
800
|
+
stripe=""
|
|
801
|
+
style="margin-bottom: 0px"
|
|
802
|
+
>
|
|
803
|
+
<el-table-column
|
|
804
|
+
type="index"
|
|
805
|
+
width="35"
|
|
806
|
+
fixed="left"
|
|
807
|
+
></el-table-column>
|
|
808
|
+
<!-- <el-table-column :label="i18nt('服务')" width="150">
|
|
809
|
+
<template slot-scope="{ row }">
|
|
810
|
+
<el-select v-model="row.serveType" @change="changeServeType(row)">
|
|
811
|
+
<el-option :value="1" label="正式"></el-option>
|
|
812
|
+
<el-option :value="2" label="UAT"></el-option>
|
|
813
|
+
<el-option :value="3" label="测试"></el-option>
|
|
814
|
+
<el-option :value="4" label="自定义"></el-option>
|
|
815
|
+
</el-select>
|
|
816
|
+
</template>
|
|
817
|
+
</el-table-column>
|
|
818
|
+
<el-table-column :label="i18nt('自定义服务')" width="150">
|
|
819
|
+
<template slot-scope="{ row }">
|
|
820
|
+
<el-input
|
|
821
|
+
v-model="row.serveName"
|
|
822
|
+
clearable
|
|
823
|
+
:disabled="row.serveType !== 4"
|
|
824
|
+
></el-input>
|
|
825
|
+
</template>
|
|
826
|
+
</el-table-column>
|
|
827
|
+
<el-table-column :label="i18nt('组织编码')" width="250">
|
|
828
|
+
<template slot-scope="{ row, $index }">
|
|
829
|
+
<el-input v-model="row.companyCodes" clearable></el-input>
|
|
830
|
+
</template>
|
|
831
|
+
</el-table-column> -->
|
|
832
|
+
<el-table-column :label="i18nt('组织编码')" width="250">
|
|
833
|
+
<template slot-scope="{ row, $index }">
|
|
834
|
+
<el-input
|
|
835
|
+
class="search-input"
|
|
836
|
+
max="200"
|
|
837
|
+
v-model="row.companyCodes"
|
|
838
|
+
@clear="clearBdCompanyEnv2(row)"
|
|
839
|
+
v-el-readonly
|
|
840
|
+
clearable
|
|
841
|
+
>
|
|
842
|
+
<i
|
|
843
|
+
slot="suffix"
|
|
844
|
+
class="el-input__icon el-icon-search"
|
|
845
|
+
@click="openBdCompanyEnvDialog2($index)"
|
|
846
|
+
></i>
|
|
847
|
+
</el-input>
|
|
848
|
+
</template>
|
|
849
|
+
</el-table-column>
|
|
850
|
+
<el-table-column :label="i18nt('服务名称')" width="150">
|
|
851
|
+
<template slot-scope="{ row }">
|
|
852
|
+
{{ row.serveName }}
|
|
853
|
+
</template>
|
|
854
|
+
</el-table-column>
|
|
855
|
+
<!-- <el-table-column :label="i18nt('流程模板编码')" width="150">
|
|
856
|
+
<template slot-scope="{ row }">
|
|
857
|
+
<el-input v-model="row.modelKey" clearable></el-input>
|
|
858
|
+
</template>
|
|
859
|
+
</el-table-column> -->
|
|
860
|
+
<el-table-column :label="i18nt('流程模板序号')" width="150">
|
|
861
|
+
<template slot-scope="{ row }">
|
|
862
|
+
<base-input-number
|
|
863
|
+
v-model="row.modelOrders"
|
|
864
|
+
clearable
|
|
865
|
+
></base-input-number>
|
|
866
|
+
</template>
|
|
867
|
+
</el-table-column>
|
|
868
|
+
<el-table-column
|
|
869
|
+
:label="i18nt('节点步骤(多个值用“,”隔开)')"
|
|
870
|
+
width="250"
|
|
871
|
+
>
|
|
872
|
+
<template slot-scope="{ row }">
|
|
873
|
+
<el-input v-model="row.taskSteps" clearable></el-input>
|
|
874
|
+
</template>
|
|
875
|
+
</el-table-column>
|
|
876
|
+
<!-- <el-table-column :label="i18nt('设置')" width="150">
|
|
877
|
+
<template slot-scope="{row}">
|
|
878
|
+
<el-select v-model="row.type" clearable>
|
|
879
|
+
<el-option :value="1" label="可编辑"></el-option>
|
|
880
|
+
<el-option :value="2" label="仅显示"></el-option>
|
|
881
|
+
<el-option :value="3" label="隐藏"></el-option>
|
|
882
|
+
</el-select>
|
|
883
|
+
</template>
|
|
884
|
+
</el-table-column>-->
|
|
885
|
+
<el-table-column
|
|
886
|
+
:label="i18nt('designer.setting.actionColumn')"
|
|
887
|
+
width="100"
|
|
888
|
+
align="center"
|
|
889
|
+
>
|
|
890
|
+
<template #header>
|
|
891
|
+
<span>{{ i18nt("designer.setting.actionColumn") }}</span>
|
|
892
|
+
<el-button
|
|
893
|
+
:title="i18nt('designer.setting.addTableColumn')"
|
|
894
|
+
size="mini"
|
|
895
|
+
type=""
|
|
896
|
+
circle=""
|
|
897
|
+
icon="el-icon-plus"
|
|
898
|
+
@click="addItem2"
|
|
899
|
+
></el-button>
|
|
900
|
+
</template>
|
|
901
|
+
<template slot-scope="scope">
|
|
902
|
+
<el-button
|
|
903
|
+
:title="i18nt('designer.setting.deleteTableColumn')"
|
|
904
|
+
size="mini"
|
|
905
|
+
type=""
|
|
906
|
+
circle=""
|
|
907
|
+
icon="el-icon-minus"
|
|
908
|
+
@click="wfAgreeConfigData.splice(scope.$index, 1)"
|
|
909
|
+
></el-button>
|
|
910
|
+
</template>
|
|
911
|
+
</el-table-column>
|
|
912
|
+
</el-table>
|
|
913
|
+
</div>
|
|
914
|
+
<div class="dialog-footer" slot="footer">
|
|
915
|
+
<el-button
|
|
916
|
+
@click="dialogVisible2 = false"
|
|
917
|
+
class="button-sty"
|
|
918
|
+
icon="el-icon-close"
|
|
919
|
+
>
|
|
920
|
+
{{ i18nt("designer.hint.cancel") }}
|
|
921
|
+
</el-button>
|
|
922
|
+
<el-button
|
|
923
|
+
type="primary"
|
|
924
|
+
@click="confirmWfConfigDataDialog2"
|
|
925
|
+
class="button-sty"
|
|
926
|
+
icon="el-icon-check"
|
|
927
|
+
>
|
|
928
|
+
{{ i18nt("designer.hint.confirm") }}
|
|
929
|
+
</el-button>
|
|
930
|
+
</div>
|
|
931
|
+
</el-dialog>
|
|
932
|
+
|
|
933
|
+
<formTemplateDialog
|
|
934
|
+
v-if="showFormTemplateDialog"
|
|
935
|
+
:visiable.sync="showFormTemplateDialog"
|
|
936
|
+
@confirm="confirmFormTemplate"
|
|
937
|
+
multi="false"
|
|
938
|
+
/>
|
|
939
|
+
<wfObjConfigDialog
|
|
940
|
+
v-if="showWfObjConfigDialog"
|
|
941
|
+
:visiable.sync="showWfObjConfigDialog"
|
|
942
|
+
@confirm="confirmWfObjConfigDialog"
|
|
943
|
+
:formTemplate="designer.vueInstance.reportTemplate"
|
|
944
|
+
/>
|
|
945
|
+
|
|
946
|
+
<bdCompanyEnvDialog
|
|
947
|
+
v-if="showBdCompanyEnvDialog1"
|
|
948
|
+
:visiable.sync="showBdCompanyEnvDialog1"
|
|
949
|
+
@confirm="confirmBdCompanyEnvDialog1"
|
|
950
|
+
:multi="false"
|
|
951
|
+
/>
|
|
952
|
+
<bdCompanyEnvDialog
|
|
953
|
+
v-if="showBdCompanyEnvDialog2"
|
|
954
|
+
:visiable.sync="showBdCompanyEnvDialog2"
|
|
955
|
+
@confirm="confirmBdCompanyEnvDialog2"
|
|
956
|
+
:multi="false"
|
|
957
|
+
/>
|
|
958
|
+
</div>
|
|
959
|
+
</template>
|
|
960
|
+
|
|
961
|
+
<script>
|
|
962
|
+
import i18n from "../../../../components/xform/utils/i18n";
|
|
963
|
+
import {
|
|
964
|
+
deepClone,
|
|
965
|
+
insertCustomCssToHead,
|
|
966
|
+
insertGlobalFunctionsToHtml,
|
|
967
|
+
} from "../../../../components/xform/utils/util";
|
|
968
|
+
import formTemplateDialog from "../../../../views/bd/setting/form_template/dialog.vue";
|
|
969
|
+
import wfObjConfigDialog from "./wfObjConfigDialog.vue";
|
|
970
|
+
import bdCompanyEnvDialog from "@base/views/bd/setting/bd_company_env/dialog";
|
|
971
|
+
import Draggable from "vuedraggable";
|
|
972
|
+
import formDynamicFieldSetting from "./form-dynamicField-setting.vue";
|
|
973
|
+
|
|
974
|
+
export default {
|
|
975
|
+
name: "form-setting",
|
|
976
|
+
mixins: [i18n],
|
|
977
|
+
components: {
|
|
978
|
+
formTemplateDialog,
|
|
979
|
+
wfObjConfigDialog,
|
|
980
|
+
bdCompanyEnvDialog,
|
|
981
|
+
Draggable,
|
|
982
|
+
formDynamicFieldSetting,
|
|
983
|
+
},
|
|
984
|
+
props: {
|
|
985
|
+
designer: Object,
|
|
986
|
+
formConfig: Object,
|
|
987
|
+
},
|
|
988
|
+
inject: ["getDesignerConfig"],
|
|
989
|
+
data() {
|
|
990
|
+
return {
|
|
991
|
+
designerConfig: this.getDesignerConfig(),
|
|
992
|
+
|
|
993
|
+
formActiveCollapseNames: ["1", "2", "7"],
|
|
994
|
+
|
|
995
|
+
formSizes: [
|
|
996
|
+
{ label: "default", value: "" },
|
|
997
|
+
{ label: "large", value: "large" },
|
|
998
|
+
{ label: "medium", value: "medium" },
|
|
999
|
+
{ label: "small", value: "small" },
|
|
1000
|
+
{ label: "mini", value: "mini" },
|
|
1001
|
+
],
|
|
1002
|
+
|
|
1003
|
+
showEditFormCssDialogFlag: false,
|
|
1004
|
+
formCssCode: "",
|
|
1005
|
+
cssClassList: [],
|
|
1006
|
+
|
|
1007
|
+
showEditFunctionsDialogFlag: false,
|
|
1008
|
+
functionsCode: "",
|
|
1009
|
+
|
|
1010
|
+
showFormEventDialogFlag: false,
|
|
1011
|
+
formEventHandlerCode: "",
|
|
1012
|
+
curEventName: "",
|
|
1013
|
+
formEventDialogTitle: "",
|
|
1014
|
+
eventDialogTitleMap: {
|
|
1015
|
+
globalConfig: "全局参数配置",
|
|
1016
|
+
wfStartConfirmText: "流程启动确认提示语配置",
|
|
1017
|
+
wfConfig: "流程自定义配置",
|
|
1018
|
+
onBeforeCreated: "表单创建前事件配置",
|
|
1019
|
+
onFormCreated: "表单创建事件配置",
|
|
1020
|
+
onFormBeforeMounted: "表单挂载前事件配置",
|
|
1021
|
+
onFormMounted: "表单挂载事件配置",
|
|
1022
|
+
onFormDataChange: "表单数据变更事件配置",
|
|
1023
|
+
onFormValidate: "表单校验事件配置",
|
|
1024
|
+
},
|
|
1025
|
+
|
|
1026
|
+
eventParamsMap: {
|
|
1027
|
+
onBeforeCreated: "onBeforeCreated(dataId,formCode,done) {",
|
|
1028
|
+
onFormCreated: "onFormCreated(dataId,formCode) {",
|
|
1029
|
+
onFormBeforeMounted: "onFormBeforeMounted(dataId,formCode, done) {",
|
|
1030
|
+
onFormMounted: "onFormMounted(dataId,formCode) {",
|
|
1031
|
+
onFormDataChange:
|
|
1032
|
+
"onFormDataChange(fieldName, newValue, oldValue, formModel, subFormName, subFormRowIndex) {",
|
|
1033
|
+
wfStartConfirmText:
|
|
1034
|
+
"wfStartConfirmText(dataId, formCode, formData) {",
|
|
1035
|
+
wfConfig: "wfConfig(dataId, formCode, formData) {",
|
|
1036
|
+
globalConfig: "globalConfig(dataId, formCode) {",
|
|
1037
|
+
//'onFormValidate': 'onFormValidate() {',
|
|
1038
|
+
},
|
|
1039
|
+
showVabsearchConfigDialog: false,
|
|
1040
|
+
vabsearchConfigType: 1,
|
|
1041
|
+
showFormTemplateDialog: false,
|
|
1042
|
+
|
|
1043
|
+
formScriptParam: null,
|
|
1044
|
+
showFormScriptParamDialog: false,
|
|
1045
|
+
formScriptSuccess: null,
|
|
1046
|
+
showFormScriptSuccessDialog: false,
|
|
1047
|
+
wfObjConfigs: [],
|
|
1048
|
+
showWfObjConfigDialog: false,
|
|
1049
|
+
|
|
1050
|
+
dialogVisible: false,
|
|
1051
|
+
wfConfigData: [],
|
|
1052
|
+
|
|
1053
|
+
dialogVisible2: false,
|
|
1054
|
+
wfAgreeConfigData: [],
|
|
1055
|
+
|
|
1056
|
+
showBdCompanyEnvDialog1: false,
|
|
1057
|
+
showBdCompanyEnvDialog2: false,
|
|
1058
|
+
|
|
1059
|
+
globalConfigParams: ["dataId", "formCode"],
|
|
1060
|
+
|
|
1061
|
+
tip1: `流程主题表达式设置说明。
|
|
1062
|
+
|
|
1063
|
+
1、可使用参数:
|
|
1064
|
+
wf:流程对象
|
|
1065
|
+
name:流程名称
|
|
1066
|
+
objTypeCode:单据类型编码
|
|
1067
|
+
objId:对象id
|
|
1068
|
+
procInstId:act流程实例id
|
|
1069
|
+
procDefId:act流程定义id
|
|
1070
|
+
modelId:act流程模板id
|
|
1071
|
+
starterId:启动人ID
|
|
1072
|
+
starterName:启动人姓名
|
|
1073
|
+
uuid:流程实例唯一标识
|
|
1074
|
+
identityInfo:身份信息对象
|
|
1075
|
+
id:用户ID
|
|
1076
|
+
loginAccount:用户登录名
|
|
1077
|
+
nickName:用户姓名
|
|
1078
|
+
companyCode:企业编码
|
|
1079
|
+
parentCompanyCode:集团企业编码
|
|
1080
|
+
nowDate:当前时间
|
|
1081
|
+
nowDateStr:当前时间字符串(yyyy-MM-dd HH:mm:ss)
|
|
1082
|
+
nowDayStr:当前天字符串(yyyy-MM-dd)
|
|
1083
|
+
tableName:数据库表名,取表单设计中维护的表名作为参数名称
|
|
1084
|
+
tableField1:数据库表字段名1
|
|
1085
|
+
tableField2:数据库表字段名2
|
|
1086
|
+
tableField3:数据库表字段名3
|
|
1087
|
+
......
|
|
1088
|
+
|
|
1089
|
+
2、可使用函数:
|
|
1090
|
+
func.orgName(orgId):根据机构id获取机构名称
|
|
1091
|
+
func.convertDate(date, format):时间转换,如当前时间转为当前天字符串,则$\{func.convertDate(nowDate, 'yyyy-MM-dd')\},当前时间转为当前月字符串,则$\{func.convertDate(nowDate, 'yyyy-MM')\}
|
|
1092
|
+
|
|
1093
|
+
3、配置示例
|
|
1094
|
+
比如表名为:pm_product_project,配置如下:
|
|
1095
|
+
$\{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\}`,
|
|
1096
|
+
};
|
|
1097
|
+
},
|
|
1098
|
+
created() {
|
|
1099
|
+
//导入表单JSON后需要重新加载自定义CSS样式!!!
|
|
1100
|
+
this.designer.handleEvent("form-json-imported", () => {
|
|
1101
|
+
this.formCssCode = this.formConfig.cssCode || "";
|
|
1102
|
+
insertCustomCssToHead(this.formCssCcssCodeode);
|
|
1103
|
+
this.extractCssClass();
|
|
1104
|
+
this.designer.emitEvent("form-css-updated", deepClone(this.cssClassList));
|
|
1105
|
+
});
|
|
1106
|
+
},
|
|
1107
|
+
mounted() {
|
|
1108
|
+
/* SettingPanel和FormWidget为兄弟组件, 在FormWidget加载formConfig时,
|
|
1109
|
+
此处SettingPanel可能无法获取到formConfig.cssCode, 故加个延时函数! */
|
|
1110
|
+
setTimeout(() => {
|
|
1111
|
+
this.formCssCode = this.formConfig.cssCode || "";
|
|
1112
|
+
insertCustomCssToHead(this.formCssCode);
|
|
1113
|
+
this.extractCssClass();
|
|
1114
|
+
this.designer.emitEvent("form-css-updated", deepClone(this.cssClassList));
|
|
1115
|
+
}, 1200);
|
|
1116
|
+
this.getListByObjTypeCode();
|
|
1117
|
+
},
|
|
1118
|
+
methods: {
|
|
1119
|
+
showEventCollapse() {
|
|
1120
|
+
if (this.designerConfig["eventCollapse"] === undefined) {
|
|
1121
|
+
return true;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
return !!this.designerConfig["eventCollapse"];
|
|
1125
|
+
},
|
|
1126
|
+
|
|
1127
|
+
editFormCss() {
|
|
1128
|
+
this.formCssCode = this.designer.formConfig.cssCode;
|
|
1129
|
+
this.showEditFormCssDialogFlag = true;
|
|
1130
|
+
},
|
|
1131
|
+
|
|
1132
|
+
extractCssClass() {
|
|
1133
|
+
let regExp = /\..*{/g;
|
|
1134
|
+
let result = this.formCssCode ? this.formCssCode.match(regExp) : [];
|
|
1135
|
+
let cssNameArray = [];
|
|
1136
|
+
|
|
1137
|
+
if (!!result && result.length > 0) {
|
|
1138
|
+
result.forEach((rItem) => {
|
|
1139
|
+
let classArray = rItem.split(","); //切分逗号分割的多个class
|
|
1140
|
+
if (classArray.length > 0) {
|
|
1141
|
+
classArray.forEach((cItem) => {
|
|
1142
|
+
let caItem = cItem.trim();
|
|
1143
|
+
if (caItem.indexOf(".", 1) !== -1) {
|
|
1144
|
+
//查找第二个.位置
|
|
1145
|
+
let newClass = caItem.substring(
|
|
1146
|
+
caItem.indexOf(".") + 1,
|
|
1147
|
+
caItem.indexOf(".", 1)
|
|
1148
|
+
); //仅截取第一、二个.号之间的class
|
|
1149
|
+
if (!!newClass) {
|
|
1150
|
+
cssNameArray.push(newClass.trim());
|
|
1151
|
+
}
|
|
1152
|
+
} else if (caItem.indexOf(" ") !== -1) {
|
|
1153
|
+
//查找第一个空格位置
|
|
1154
|
+
let newClass = caItem.substring(
|
|
1155
|
+
caItem.indexOf(".") + 1,
|
|
1156
|
+
caItem.indexOf(" ")
|
|
1157
|
+
); //仅截取第一、二个.号之间的class
|
|
1158
|
+
if (!!newClass) {
|
|
1159
|
+
cssNameArray.push(newClass.trim());
|
|
1160
|
+
}
|
|
1161
|
+
} else {
|
|
1162
|
+
if (caItem.indexOf("{") !== -1) {
|
|
1163
|
+
//查找第一个{位置
|
|
1164
|
+
let newClass = caItem.substring(
|
|
1165
|
+
caItem.indexOf(".") + 1,
|
|
1166
|
+
caItem.indexOf("{")
|
|
1167
|
+
);
|
|
1168
|
+
cssNameArray.push(newClass.trim());
|
|
1169
|
+
} else {
|
|
1170
|
+
let newClass = caItem.substring(caItem.indexOf(".") + 1);
|
|
1171
|
+
cssNameArray.push(newClass.trim());
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
}
|
|
1176
|
+
});
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
//this.cssClassList.length = 0
|
|
1180
|
+
this.cssClassList.splice(0, this.cssClassList.length); //清除数组必须用splice,length=0不会响应式更新!!
|
|
1181
|
+
this.cssClassList = Array.from(new Set(cssNameArray)); //数组去重
|
|
1182
|
+
},
|
|
1183
|
+
|
|
1184
|
+
saveFormCss() {
|
|
1185
|
+
this.extractCssClass();
|
|
1186
|
+
this.designer.formConfig.cssCode = this.formCssCode;
|
|
1187
|
+
insertCustomCssToHead(this.formCssCode);
|
|
1188
|
+
this.showEditFormCssDialogFlag = false;
|
|
1189
|
+
|
|
1190
|
+
this.designer.emitEvent("form-css-updated", deepClone(this.cssClassList));
|
|
1191
|
+
},
|
|
1192
|
+
|
|
1193
|
+
editGlobalFunctions() {
|
|
1194
|
+
this.functionsCode = this.designer.formConfig.functions;
|
|
1195
|
+
this.showEditFunctionsDialogFlag = true;
|
|
1196
|
+
},
|
|
1197
|
+
editFormScriptParam() {
|
|
1198
|
+
this.formScriptParam = this.designer.formConfig.formScriptParam;
|
|
1199
|
+
this.showFormScriptParamDialog = true;
|
|
1200
|
+
},
|
|
1201
|
+
|
|
1202
|
+
saveGlobalFunctions() {
|
|
1203
|
+
const codeHints = this.$refs.gfEditor.getEditorAnnotations();
|
|
1204
|
+
let syntaxErrorFlag = false;
|
|
1205
|
+
if (!!codeHints && codeHints.length > 0) {
|
|
1206
|
+
codeHints.forEach((chItem) => {
|
|
1207
|
+
if (chItem.type === "error") {
|
|
1208
|
+
syntaxErrorFlag = true;
|
|
1209
|
+
}
|
|
1210
|
+
});
|
|
1211
|
+
|
|
1212
|
+
if (syntaxErrorFlag) {
|
|
1213
|
+
this.$message.error(
|
|
1214
|
+
this.i18nt("designer.setting.syntaxCheckWarning")
|
|
1215
|
+
);
|
|
1216
|
+
return;
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
this.designer.formConfig.functions = this.functionsCode;
|
|
1221
|
+
insertGlobalFunctionsToHtml(this.functionsCode);
|
|
1222
|
+
this.showEditFunctionsDialogFlag = false;
|
|
1223
|
+
},
|
|
1224
|
+
|
|
1225
|
+
editFormEventHandler(eventName, dialogTitle) {
|
|
1226
|
+
this.curEventName = eventName;
|
|
1227
|
+
this.formEventHandlerCode = this.formConfig[eventName];
|
|
1228
|
+
let customTitle =
|
|
1229
|
+
typeof dialogTitle === "string" && dialogTitle ? dialogTitle : null;
|
|
1230
|
+
let eventTitle =
|
|
1231
|
+
customTitle ||
|
|
1232
|
+
this.eventDialogTitleMap[eventName] ||
|
|
1233
|
+
(eventName ? eventName + " 配置" : "配置");
|
|
1234
|
+
this.formEventDialogTitle = this.i18nt(eventTitle);
|
|
1235
|
+
this.showFormEventDialogFlag = true;
|
|
1236
|
+
},
|
|
1237
|
+
|
|
1238
|
+
saveFormEventHandler() {
|
|
1239
|
+
const codeHints = this.$refs.ecEditor.getEditorAnnotations();
|
|
1240
|
+
let syntaxErrorFlag = false;
|
|
1241
|
+
if (!!codeHints && codeHints.length > 0) {
|
|
1242
|
+
codeHints.forEach((chItem) => {
|
|
1243
|
+
if (chItem.type === "error") {
|
|
1244
|
+
syntaxErrorFlag = true;
|
|
1245
|
+
}
|
|
1246
|
+
});
|
|
1247
|
+
|
|
1248
|
+
if (syntaxErrorFlag) {
|
|
1249
|
+
this.$message.error(
|
|
1250
|
+
this.i18nt("designer.setting.syntaxCheckWarning")
|
|
1251
|
+
);
|
|
1252
|
+
return;
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
this.formConfig[this.curEventName] = this.formEventHandlerCode;
|
|
1257
|
+
this.showFormEventDialogFlag = false;
|
|
1258
|
+
},
|
|
1259
|
+
openFormTemplate(flag) {
|
|
1260
|
+
this.formTemplateFlag = flag;
|
|
1261
|
+
this.showFormTemplateDialog = true;
|
|
1262
|
+
},
|
|
1263
|
+
confirmFormTemplate(rows) {
|
|
1264
|
+
if (rows.length) {
|
|
1265
|
+
let row = rows[0];
|
|
1266
|
+
if (this.formTemplateFlag == 1) {
|
|
1267
|
+
//新增
|
|
1268
|
+
this.$set(this.formConfig, "addFormCode", row.formCode);
|
|
1269
|
+
this.$set(this.formConfig, "addFormName", row.formName);
|
|
1270
|
+
} else {
|
|
1271
|
+
//查看
|
|
1272
|
+
this.$set(this.formConfig, "editFormCode", row.formCode);
|
|
1273
|
+
this.$set(this.formConfig, "editFormName", row.formName);
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1277
|
+
getEventButtonName(funStr) {
|
|
1278
|
+
let name = this.i18nt("designer.setting.addEventHandler");
|
|
1279
|
+
if (funStr) name = "已维护";
|
|
1280
|
+
return name;
|
|
1281
|
+
},
|
|
1282
|
+
saveFormScriptParam() {
|
|
1283
|
+
const codeHints = this.$refs.gfEditor.getEditorAnnotations();
|
|
1284
|
+
let syntaxErrorFlag = false;
|
|
1285
|
+
if (!!codeHints && codeHints.length > 0) {
|
|
1286
|
+
codeHints.forEach((chItem) => {
|
|
1287
|
+
if (chItem.type === "error") {
|
|
1288
|
+
syntaxErrorFlag = true;
|
|
1289
|
+
}
|
|
1290
|
+
});
|
|
1291
|
+
|
|
1292
|
+
if (syntaxErrorFlag) {
|
|
1293
|
+
this.$message.error(
|
|
1294
|
+
this.i18nt("designer.setting.syntaxCheckWarning")
|
|
1295
|
+
);
|
|
1296
|
+
return;
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
this.designer.formConfig.formScriptParam = this.formScriptParam;
|
|
1301
|
+
this.showFormScriptParamDialog = false;
|
|
1302
|
+
},
|
|
1303
|
+
editFormScriptSuccess() {
|
|
1304
|
+
this.formScriptSuccess = this.designer.formConfig.formScriptSuccess;
|
|
1305
|
+
this.showFormScriptSuccessDialog = true;
|
|
1306
|
+
},
|
|
1307
|
+
saveFormScriptSuccess() {
|
|
1308
|
+
const codeHints = this.$refs.gfEditor.getEditorAnnotations();
|
|
1309
|
+
let syntaxErrorFlag = false;
|
|
1310
|
+
if (!!codeHints && codeHints.length > 0) {
|
|
1311
|
+
codeHints.forEach((chItem) => {
|
|
1312
|
+
if (chItem.type === "error") {
|
|
1313
|
+
syntaxErrorFlag = true;
|
|
1314
|
+
}
|
|
1315
|
+
});
|
|
1316
|
+
|
|
1317
|
+
if (syntaxErrorFlag) {
|
|
1318
|
+
this.$message.error(
|
|
1319
|
+
this.i18nt("designer.setting.syntaxCheckWarning")
|
|
1320
|
+
);
|
|
1321
|
+
return;
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
this.designer.formConfig.formScriptSuccess = this.formScriptSuccess;
|
|
1326
|
+
this.showFormScriptSuccessDialog = false;
|
|
1327
|
+
},
|
|
1328
|
+
openWfObjConfigDialog() {
|
|
1329
|
+
this.showWfObjConfigDialog = true;
|
|
1330
|
+
},
|
|
1331
|
+
confirmWfObjConfigDialog(rows) {
|
|
1332
|
+
this.wfObjConfigs = rows || [];
|
|
1333
|
+
},
|
|
1334
|
+
getListByObjTypeCode() {
|
|
1335
|
+
let reportTemplate = this.designer.vueInstance.reportTemplate;
|
|
1336
|
+
this.$http({
|
|
1337
|
+
url: `/${reportTemplate.serviceName}/wf_obj_config/listByObjTypeCode`,
|
|
1338
|
+
method: `post`,
|
|
1339
|
+
data: {
|
|
1340
|
+
stringOne: reportTemplate.objTypeCode,
|
|
1341
|
+
},
|
|
1342
|
+
isLoading: true,
|
|
1343
|
+
success: (res) => {
|
|
1344
|
+
this.wfObjConfigs = res.objx || [];
|
|
1345
|
+
},
|
|
1346
|
+
});
|
|
1347
|
+
},
|
|
1348
|
+
changeWfEnabled(val) {
|
|
1349
|
+
this.designer.vueInstance.reportTemplate.objTypeName = null;
|
|
1350
|
+
this.designer.vueInstance.reportTemplate.fromWfFormCode = null;
|
|
1351
|
+
},
|
|
1352
|
+
openWfConfigDataDialog() {
|
|
1353
|
+
let wfConfigData = this.formConfig.wfConfigData || [];
|
|
1354
|
+
this.dialogVisible = true;
|
|
1355
|
+
this.wfConfigData = this.$baseLodash.cloneDeep(wfConfigData);
|
|
1356
|
+
},
|
|
1357
|
+
addItem() {
|
|
1358
|
+
let newItem = {
|
|
1359
|
+
type: null,
|
|
1360
|
+
serveType: null,
|
|
1361
|
+
serveName: null,
|
|
1362
|
+
modelKey: null,
|
|
1363
|
+
modelOrders: undefined,
|
|
1364
|
+
taskSteps: null,
|
|
1365
|
+
companyCodes: null,
|
|
1366
|
+
};
|
|
1367
|
+
this.wfConfigData.push(newItem);
|
|
1368
|
+
},
|
|
1369
|
+
confirmWfConfigDataDialog() {
|
|
1370
|
+
let tableData = this.wfConfigData;
|
|
1371
|
+
let map = {};
|
|
1372
|
+
for (let i = 0; i < tableData.length; i++) {
|
|
1373
|
+
let item = tableData[i];
|
|
1374
|
+
if (!item.serveName) {
|
|
1375
|
+
this.$message({
|
|
1376
|
+
type: "error",
|
|
1377
|
+
message: "服务名称不能为空",
|
|
1378
|
+
});
|
|
1379
|
+
return;
|
|
1380
|
+
}
|
|
1381
|
+
if (!item.companyCodes) {
|
|
1382
|
+
this.$message({
|
|
1383
|
+
type: "error",
|
|
1384
|
+
message: "组织编码不能为空",
|
|
1385
|
+
});
|
|
1386
|
+
return;
|
|
1387
|
+
}
|
|
1388
|
+
let modelOrders = item.modelOrders ?? "";
|
|
1389
|
+
|
|
1390
|
+
let serveName = item.serveName;
|
|
1391
|
+
let companyCodes = item.companyCodes;
|
|
1392
|
+
let key = serveName + "_" + companyCodes + "_" + modelOrders;
|
|
1393
|
+
if (!map[key]) {
|
|
1394
|
+
map[key] = true;
|
|
1395
|
+
} else {
|
|
1396
|
+
this.$message({
|
|
1397
|
+
type: "error",
|
|
1398
|
+
message: "[服务+组织+流程模板序号]不能重复",
|
|
1399
|
+
});
|
|
1400
|
+
return;
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
this.dialogVisible = !1;
|
|
1405
|
+
this.formConfig.wfConfigData = this.wfConfigData;
|
|
1406
|
+
},
|
|
1407
|
+
|
|
1408
|
+
openWfConfigDataDialog2() {
|
|
1409
|
+
let wfAgreeConfigData = this.formConfig.wfAgreeConfigData || [];
|
|
1410
|
+
this.dialogVisible2 = true;
|
|
1411
|
+
this.wfAgreeConfigData = this.$baseLodash.cloneDeep(wfAgreeConfigData);
|
|
1412
|
+
},
|
|
1413
|
+
addItem2() {
|
|
1414
|
+
let newItem = {
|
|
1415
|
+
type: null,
|
|
1416
|
+
serveType: null,
|
|
1417
|
+
serveName: null,
|
|
1418
|
+
modelKey: null,
|
|
1419
|
+
modelOrders: undefined,
|
|
1420
|
+
taskSteps: null,
|
|
1421
|
+
companyCodes: null,
|
|
1422
|
+
};
|
|
1423
|
+
this.wfAgreeConfigData.push(newItem);
|
|
1424
|
+
},
|
|
1425
|
+
confirmWfConfigDataDialog2() {
|
|
1426
|
+
let tableData = this.wfAgreeConfigData;
|
|
1427
|
+
|
|
1428
|
+
let map = {};
|
|
1429
|
+
for (let i = 0; i < tableData.length; i++) {
|
|
1430
|
+
let item = tableData[i];
|
|
1431
|
+
if (!item.serveName) {
|
|
1432
|
+
this.$message({
|
|
1433
|
+
type: "error",
|
|
1434
|
+
message: "服务名称不能为空",
|
|
1435
|
+
});
|
|
1436
|
+
return;
|
|
1437
|
+
}
|
|
1438
|
+
if (!item.companyCodes) {
|
|
1439
|
+
this.$message({
|
|
1440
|
+
type: "error",
|
|
1441
|
+
message: "组织编码不能为空",
|
|
1442
|
+
});
|
|
1443
|
+
return;
|
|
1444
|
+
}
|
|
1445
|
+
let modelOrders = item.modelOrders ?? "";
|
|
1446
|
+
|
|
1447
|
+
let serveName = item.serveName;
|
|
1448
|
+
let companyCodes = item.companyCodes;
|
|
1449
|
+
let key = serveName + "_" + companyCodes + "_" + modelOrders;
|
|
1450
|
+
if (!map[key]) {
|
|
1451
|
+
map[key] = true;
|
|
1452
|
+
} else {
|
|
1453
|
+
this.$message({
|
|
1454
|
+
type: "error",
|
|
1455
|
+
message: "[服务+组织+流程模板序号]不能重复",
|
|
1456
|
+
});
|
|
1457
|
+
return;
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
this.dialogVisible2 = !1;
|
|
1461
|
+
this.formConfig.wfAgreeConfigData = this.wfAgreeConfigData;
|
|
1462
|
+
},
|
|
1463
|
+
|
|
1464
|
+
clearBdCompanyEnv1(row) {
|
|
1465
|
+
row.serveName = null;
|
|
1466
|
+
row.companyCodes = null;
|
|
1467
|
+
},
|
|
1468
|
+
openBdCompanyEnvDialog1(rowIndex) {
|
|
1469
|
+
this.operateIndex = rowIndex;
|
|
1470
|
+
this.showBdCompanyEnvDialog1 = true;
|
|
1471
|
+
},
|
|
1472
|
+
confirmBdCompanyEnvDialog1(rows) {
|
|
1473
|
+
if (rows.length) {
|
|
1474
|
+
let row = rows[0];
|
|
1475
|
+
let item = this.wfConfigData[this.operateIndex];
|
|
1476
|
+
item.serveName = row.bdService;
|
|
1477
|
+
item.companyCodes = row.bdCompanyCode;
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1480
|
+
|
|
1481
|
+
clearBdCompanyEnv2(row) {
|
|
1482
|
+
row.serveName = null;
|
|
1483
|
+
row.companyCodes = null;
|
|
1484
|
+
},
|
|
1485
|
+
openBdCompanyEnvDialog2(rowIndex) {
|
|
1486
|
+
this.operateIndex = rowIndex;
|
|
1487
|
+
this.showBdCompanyEnvDialog2 = true;
|
|
1488
|
+
},
|
|
1489
|
+
confirmBdCompanyEnvDialog2(rows) {
|
|
1490
|
+
if (rows.length) {
|
|
1491
|
+
let row = rows[0];
|
|
1492
|
+
let item = this.wfAgreeConfigData[this.operateIndex];
|
|
1493
|
+
item.serveName = row.bdService;
|
|
1494
|
+
item.companyCodes = row.bdCompanyCode;
|
|
1495
|
+
}
|
|
1496
|
+
},
|
|
1497
|
+
addOtherTab() {
|
|
1498
|
+
if (!this.formConfig.otherTabList) {
|
|
1499
|
+
this.$set(this.formConfig, "otherTabList", []);
|
|
1500
|
+
}
|
|
1501
|
+
this.formConfig.otherTabList.push({
|
|
1502
|
+
label: null,
|
|
1503
|
+
formCode: null,
|
|
1504
|
+
});
|
|
1505
|
+
},
|
|
1506
|
+
},
|
|
1507
|
+
};
|
|
1508
|
+
</script>
|
|
1509
|
+
|
|
1510
|
+
<style lang="scss" scoped>
|
|
1511
|
+
.setting-form {
|
|
1512
|
+
::v-deep .el-form-item__label {
|
|
1513
|
+
font-size: 13px;
|
|
1514
|
+
//text-overflow: ellipsis;
|
|
1515
|
+
overflow: hidden;
|
|
1516
|
+
white-space: nowrap;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
::v-deep .el-form-item--mini.el-form-item {
|
|
1520
|
+
margin-bottom: 6px;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
.radio-group-custom {
|
|
1524
|
+
::v-deep .el-radio-button__inner {
|
|
1525
|
+
padding-left: 12px;
|
|
1526
|
+
padding-right: 12px;
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
.custom-divider.el-divider--horizontal {
|
|
1531
|
+
margin: 10px 0;
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
.setting-collapse {
|
|
1536
|
+
::v-deep .el-collapse-item__content {
|
|
1537
|
+
padding-bottom: 6px;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
::v-deep .el-collapse-item__header {
|
|
1541
|
+
font-weight: bold;
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
.small-padding-dialog {
|
|
1546
|
+
::v-deep .el-dialog__body {
|
|
1547
|
+
padding: 6px 15px 12px 15px;
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
::v-deep .el-textarea .el-textarea__inner {
|
|
1551
|
+
word-break: break-all;
|
|
1552
|
+
}
|
|
1553
|
+
</style>
|