cloud-web-corejs 1.0.54-dev.50 → 1.0.54-dev.501
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -3
- package/src/App.vue +29 -33
- package/src/api/user.js +16 -0
- package/src/components/Qrcode/fileParse.vue +0 -1
- package/src/components/Tinymce/index.vue +112 -71
- package/src/components/VabUpload/index.js +49 -1
- package/src/components/VabUpload/mixins.js +2 -2
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +209 -120
- package/src/components/advancedSearchDialog/mixins.js +1 -1
- package/src/components/baseAttachment/index.vue +49 -40
- package/src/components/baseAttachment/mixins.js +295 -1
- package/src/components/baseInputExport/index.vue +19 -12
- package/src/components/baseInputExport/mixins.js +389 -1
- package/src/components/baseTabs/mixins.js +166 -1
- package/src/components/errorMsg/mixins.js +6 -5
- package/src/components/excelExport/button.vue +57 -4
- package/src/components/excelExport/index.js +48 -6
- package/src/components/excelExport/index.vue +56 -2
- package/src/components/excelExport/mixins.js +965 -2
- package/src/components/excelImport/mixins.js +2 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +179 -89
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -0
- package/src/components/fileLibrary/filterDialog.vue +454 -0
- package/src/components/fileLibrary/index.vue +594 -254
- package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +339 -211
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +31 -27
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +4 -4
- package/src/components/fileLibrary/mixins/indexMixins.js +220 -101
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +64 -4
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +3 -3
- package/src/components/fileLibrary/propertiesDialog.vue +113 -74
- package/src/components/fileLibrary/shareDialog.vue +1 -1
- package/src/components/formOplog/mixins.js +1 -1
- package/src/components/jsonImport/index.js +1 -1
- package/src/components/jsonImport/mixins.js +2 -1
- package/src/components/langImport/mixins.js +17 -16
- package/src/components/obsUpload/index.js +1 -0
- package/src/components/obsUpload/index.vue +231 -0
- package/src/components/obsUpload/mixins.js +8 -0
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/scriptTest/mixins.js +1 -1
- package/src/components/statusTag/mixins.js +1 -1
- package/src/components/table/CellSlot.vue +1 -0
- package/src/components/table/index.js +12 -11
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js +11028 -0
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css +200 -0
- package/src/components/table/tableForm.vue +99 -63
- package/src/components/table/tableFormMixin.js +1 -1
- package/src/components/table/util/index.js +328 -0
- package/src/components/table/vxeFilter/mixin.js +6 -6
- package/src/components/tempStorage/index.vue +76 -55
- package/src/components/tempStorage/tempStorageDialog.vue +179 -54
- package/src/components/vb-tabs/x-tabs.vue +57 -30
- package/src/components/wf/addOpinionButton.vue +57 -0
- package/src/components/wf/content.vue +834 -362
- package/src/components/wf/mixins/addOpinionButton.js +3 -0
- package/src/components/wf/mixins/setCandidateButton.js +6 -0
- package/src/components/wf/mixins/setCandidateDialog.js +2 -1
- package/src/components/wf/mixins/setCandidateDialog2.js +6 -0
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +3 -0
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +3 -0
- package/src/components/wf/setCandidateButton.vue +40 -0
- package/src/components/wf/setCandidateDialog.vue +10 -0
- package/src/components/wf/setCandidateDialog2.vue +105 -0
- package/src/components/wf/wf.js +1 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
- package/src/components/wf/wfStartDialog.vue +66 -42
- package/src/components/wf/wfTaskUserRangeDialog.vue +65 -0
- package/src/components/wf/wfUtil.js +279 -1
- package/src/components/xform/form-designer/designer.js +5 -3
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +419 -0
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -3
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +9 -8
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +82 -49
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +799 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +38 -7
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1759 -8
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +120 -72
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +19 -1
- package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +40 -28
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +18 -7
- package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +14 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +30 -4
- package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +133 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1650 -16
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +646 -379
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +962 -0
- package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +6 -2
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +22 -11
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +90 -0
- package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +7 -2
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +179 -0
- package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +114 -81
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +186 -0
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +44 -27
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +116 -0
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +154 -47
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +26 -6
- package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +24 -9
- package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -0
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +12 -1
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +31 -17
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +7 -2
- package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +99 -0
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +147 -0
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +3 -171
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +260 -58
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +753 -0
- package/src/components/xform/form-designer/indexMixin.js +3 -772
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +956 -159
- package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +537 -302
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +125 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +946 -1042
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1127 -512
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +31 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +64 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/field-gantt/gantt-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +77 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +96 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +44 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +115 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +67 -41
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +33 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +66 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +89 -19
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +19 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +124 -50
- package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +31 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +349 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +10 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +42 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +305 -19
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +372 -50
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +263 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +32 -11
- package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +19 -18
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1653 -869
- package/src/components/xform/form-render/container-item/containerItemMixin.js +12 -11
- package/src/components/xform/form-render/container-item/data-table-item.vue +194 -199
- package/src/components/xform/form-render/container-item/data-table-mixin.js +22 -18
- package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
- package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
- package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
- package/src/components/xform/form-render/container-item/tab-item.vue +62 -25
- package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
- package/src/components/xform/form-render/container-item/table-item.vue +4 -2
- package/src/components/xform/form-render/container-item/table2-cell-item.vue +53 -34
- package/src/components/xform/form-render/container-item/table2-item.vue +141 -88
- package/src/components/xform/form-render/container-item/tree-item.vue +32 -11
- package/src/components/xform/form-render/index.vue +69 -20
- package/src/components/xform/form-render/indexMixin.js +22 -12
- package/src/components/xform/lang/zh-CN.js +27 -4
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +174 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/format.js +21 -30
- package/src/components/xform/utils/formula-util copy 2.js +945 -0
- package/src/components/xform/utils/formula-util copy.js +860 -0
- package/src/components/xform/utils/formula-util.js +970 -0
- package/src/components/xform/utils/util.js +1 -1
- package/src/components/xform/utils/validators.js +1 -5
- package/src/components/xform/utils/vue2js-generator.js +2 -2
- package/src/index.js +210 -190
- package/src/lang/index.js +56 -51
- package/src/lang/locale/en/login.js +20 -0
- package/src/lang/locale/zh/login.js +20 -0
- package/src/layout/components/AppMain.vue +5 -1
- package/src/layout/components/Sidebar/default.vue +1389 -1222
- package/src/layout/components/TagsView/index.vue +37 -12
- package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
- package/src/layout/components/extractedCode/createDialog.vue +92 -0
- package/src/layout/components/extractedCode/queryDialog.vue +96 -0
- package/src/layout/components/extractedCode/viewDialog.vue +193 -0
- package/src/layout/components/watermark/index.vue +83 -0
- package/src/layout/defaultLayout.vue +1 -1
- package/src/layout/index.vue +3 -5
- package/src/mixins/selectDialog/index.js +1 -1
- package/src/mixins/table/index.js +151 -0
- package/src/mixins/tableTree/index.js +1 -1
- package/src/permission.js +1 -18
- package/src/router/modules/customer.js +79 -8
- package/src/store/config/index.js +1 -1
- package/src/store/getters.js +3 -1
- package/src/store/modules/permission.js +1 -1
- package/src/store/modules/settings.js +1 -1
- package/src/store/modules/tagsView.js +1 -14
- package/src/store/modules/user.js +1 -29
- package/src/utils/index.js +2 -3
- package/src/utils/pddLog.js +103 -0
- package/src/utils/pdfUtil.js +71 -0
- package/src/utils/request.js +1 -1
- package/src/utils/vab.js +19 -27
- package/src/views/bd/setting/bd_attach_setting/edit.vue +5 -5
- package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
- package/src/views/bd/setting/bd_company_env/edit.vue +193 -0
- package/src/views/bd/setting/bd_company_env/list.vue +175 -0
- package/src/views/bd/setting/config_manage/list.vue +83 -0
- package/src/views/bd/setting/form_import_log/edit.vue +127 -0
- package/src/views/bd/setting/form_import_log/list.vue +206 -0
- package/src/views/bd/setting/form_script/edit.vue +9 -0
- package/src/views/bd/setting/form_script/edit1.vue +36 -3
- package/src/views/bd/setting/form_script/form_list.vue +99 -37
- package/src/views/bd/setting/form_script/list1.vue +181 -118
- package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +201 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
- package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
- package/src/views/bd/setting/form_script/mixins/list.js +236 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +423 -14
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
- package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/edit.vue +22 -1
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/list.vue +326 -214
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +11 -10
- package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
- package/src/views/bd/setting/form_template/mixins/list.js +689 -22
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
- package/src/views/bd/setting/form_template/mixins/wf_list.js +1 -425
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +4 -4
- package/src/views/bd/setting/form_template/wf_list.vue +1 -1
- package/src/views/bd/setting/logic_param/edit.vue +146 -0
- package/src/views/bd/setting/logic_param/edit1.vue +106 -0
- package/src/views/bd/setting/logic_param/edit2.vue +139 -0
- package/src/views/bd/setting/logic_param/list.vue +74 -0
- package/src/views/bd/setting/logic_param/list1.vue +12 -0
- package/src/views/bd/setting/logic_param/list2.vue +12 -0
- package/src/views/bd/setting/logic_param/mixins/edit.js +3 -0
- package/src/views/bd/setting/logic_param/mixins/list.js +9 -0
- package/src/views/bd/setting/menu_kind/list.vue +172 -83
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -7
- package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
- package/src/views/bd/setting/push_data/edit.vue +139 -0
- package/src/views/bd/setting/push_data/list.vue +283 -0
- package/src/views/bd/setting/push_data_h/edit.vue +153 -0
- package/src/views/bd/setting/push_data_h/list.vue +293 -0
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -0
- package/src/views/bd/setting/request_async_setting/list.vue +372 -0
- package/src/views/bd/setting/request_setting/edit.vue +300 -0
- package/src/views/bd/setting/request_setting/list.vue +311 -0
- package/src/views/bd/setting/table_model/edit.vue +875 -426
- package/src/views/bd/setting/table_model/list.vue +190 -128
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit.js +1202 -13
- package/src/views/bd/setting/table_model/mixins/list.js +440 -14
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/user/access_log/list.vue +418 -349
- package/src/views/user/area/dialog.vue +223 -117
- package/src/views/user/area/list.vue +318 -0
- package/src/views/user/bill_setting/edit.vue +1 -1
- package/src/views/user/bill_setting/list.vue +1 -1
- package/src/views/user/common_attribute/itemEdit.vue +2 -2
- package/src/views/user/common_attribute/list.vue +5 -2
- package/src/views/user/common_script/edit.vue +1 -1
- package/src/views/user/common_script/list.vue +1 -1
- package/src/views/user/company_info/dialog.vue +164 -163
- package/src/views/user/company_info/edit.vue +1 -1
- package/src/views/user/extend_datasource/dialog.vue +4 -0
- package/src/views/user/extend_datasource/edit.vue +5 -1
- package/src/views/user/extend_datasource/list.vue +5 -1
- package/src/views/user/fieldTranslation/editDialog.vue +7 -7
- package/src/views/user/fieldTranslation/list.vue +32 -32
- package/src/views/user/form/vform/designer.vue +776 -749
- package/src/views/user/form/vform/out_render.vue +1 -1
- package/src/views/user/form/vform/render.vue +59 -37
- package/src/views/user/form/view/edit.vue +38 -37
- package/src/views/user/form/view/list.vue +261 -49
- package/src/views/user/home/bears/index.vue +1032 -0
- package/src/views/user/home/default.vue +1025 -979
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +16 -6
- package/src/views/user/home/taili/index.vue +1034 -0
- package/src/views/user/ledger_library/list.vue +10 -12
- package/src/views/user/login/default.vue +165 -36
- package/src/views/user/login/index.vue +4 -6
- package/src/views/user/login/indexMixin.js +184 -8
- package/src/views/user/menu/list.vue +24 -1
- package/src/views/user/notify_message/dialog.vue +38 -22
- package/src/views/user/notify_template/edit.vue +188 -187
- package/src/views/user/notify_template/edit2.vue +176 -0
- package/src/views/user/notify_template/list.vue +4 -1
- package/src/views/user/notify_template/list2.vue +190 -0
- package/src/views/user/outLink/form_view.vue +211 -184
- package/src/views/user/outLink/index.vue +67 -11
- package/src/views/user/outLink/view.vue +28 -23
- package/src/views/user/position/edit.vue +116 -83
- package/src/views/user/position/list.vue +118 -86
- package/src/views/user/project_tag/dialog.vue +9 -4
- package/src/views/user/project_tag/edit.vue +2 -2
- package/src/views/user/project_tag/list.vue +9 -4
- package/src/views/user/push_setting/list.vue +2 -2
- package/src/views/user/request_setting/edit.vue +258 -0
- package/src/views/user/request_setting/list.vue +248 -0
- package/src/views/user/role/authConfig.vue +89 -0
- package/src/views/user/role/dialog.vue +70 -48
- package/src/views/user/role/edit.vue +609 -429
- package/src/views/user/role/list.vue +4 -4
- package/src/views/user/sale_org/dialog.vue +1 -1
- package/src/views/user/sale_org/list.vue +4 -1
- package/src/views/user/system_notice/edit.vue +232 -186
- package/src/views/user/user/dialog.vue +46 -23
- package/src/views/user/user/edit.vue +1059 -1021
- package/src/views/user/user/form_dialog.vue +158 -0
- package/src/views/user/user/form_info.vue +210 -0
- package/src/views/user/user/list.vue +647 -563
- package/src/views/user/user/modifyPasswordDialog.vue +64 -53
- package/src/views/user/wf/wfReport/index.vue +618 -0
- package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
- package/src/views/user/wf/wf_manage/list.vue +371 -249
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +25 -1
- package/src/views/user/wf/wf_obj_config/list.vue +114 -9
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
- package/src/views/user/wf/wf_transfer_setting/edit.vue +282 -0
- package/src/views/user/wf/wf_transfer_setting/list.vue +319 -0
|
@@ -1,54 +1,108 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<el-form-item label-width="0">
|
|
4
|
-
<el-divider class="custom-divider"
|
|
4
|
+
<el-divider class="custom-divider">后端导入设置</el-divider>
|
|
5
5
|
</el-form-item>
|
|
6
6
|
<el-form-item label="导入数据表名">
|
|
7
7
|
<el-input v-model="optionModel.importEntity"></el-input>
|
|
8
8
|
</el-form-item>
|
|
9
|
-
<el-form-item label="
|
|
9
|
+
<el-form-item label="文件大小限制(M)">
|
|
10
|
+
<base-input-number
|
|
11
|
+
v-model="optionModel.importFileLimitSize"
|
|
12
|
+
:max="200"
|
|
13
|
+
></base-input-number>
|
|
14
|
+
</el-form-item>
|
|
15
|
+
<el-form-item label="导入模板文件编码">
|
|
10
16
|
<el-input
|
|
11
17
|
class="search-input"
|
|
12
18
|
max="200"
|
|
13
|
-
|
|
19
|
+
:value="optionModel.importAttachCode"
|
|
14
20
|
clearable
|
|
21
|
+
@clear="
|
|
22
|
+
optionModel.importAttachCode = null;
|
|
23
|
+
optionModel.importAttachName = null;
|
|
24
|
+
"
|
|
15
25
|
>
|
|
16
|
-
<i
|
|
26
|
+
<i
|
|
27
|
+
slot="suffix"
|
|
28
|
+
class="el-input__icon el-icon-search"
|
|
29
|
+
@click="showBdAttachSettingDialog = true"
|
|
30
|
+
></i>
|
|
17
31
|
</el-input>
|
|
18
32
|
</el-form-item>
|
|
19
|
-
<el-form-item label="
|
|
20
|
-
<
|
|
33
|
+
<el-form-item label="导入模板文件名称">
|
|
34
|
+
<span>{{ optionModel.importAttachName }}</span>
|
|
21
35
|
</el-form-item>
|
|
22
36
|
<el-form-item label="关联表格唯一名称">
|
|
23
37
|
<el-input v-model="optionModel.tableRef"></el-input>
|
|
24
38
|
</el-form-item>
|
|
39
|
+
<el-form-item label="执行后台脚本编码">
|
|
40
|
+
<el-input v-model="optionModel.importScriptCode"></el-input>
|
|
41
|
+
</el-form-item>
|
|
42
|
+
<el-form-item label="多sheet导入">
|
|
43
|
+
<el-switch v-model="optionModel.multipleSheet"></el-switch>
|
|
44
|
+
</el-form-item>
|
|
45
|
+
<el-form-item label="批量导入">
|
|
46
|
+
<el-switch v-model="optionModel.importMultiple"></el-switch>
|
|
47
|
+
</el-form-item>
|
|
48
|
+
<el-form-item label="批量导入大小">
|
|
49
|
+
<base-input-number
|
|
50
|
+
v-model="optionModel.importMultiSize"
|
|
51
|
+
:max="200"
|
|
52
|
+
></base-input-number>
|
|
53
|
+
</el-form-item>
|
|
54
|
+
<el-form-item label="点击前置事件" label-width="150px">
|
|
55
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
56
|
+
@click="editEventHandler('onBeforeClickButton', eventParams)">
|
|
57
|
+
<span>{{ optionModel.onBeforeClickButton }}</span>
|
|
58
|
+
<i class="el-icon-edit"></i>
|
|
59
|
+
</a>
|
|
60
|
+
</el-form-item>
|
|
25
61
|
<el-form-item label="启用图片处理">
|
|
26
62
|
<el-switch v-model="optionModel.enabledImportPreHandle"></el-switch>
|
|
27
63
|
</el-form-item>
|
|
28
|
-
<!-- <el-form-item label="图片处理脚本编码">
|
|
29
|
-
<el-input v-model="optionModel.importPreScriptCode"></el-input>
|
|
30
|
-
</el-form-item>-->
|
|
31
64
|
<el-form-item label="导入前数据处理" label-width="150px">
|
|
32
|
-
<a
|
|
33
|
-
|
|
65
|
+
<a
|
|
66
|
+
href="javascript:void(0);"
|
|
67
|
+
class="a-link link-oneLind"
|
|
68
|
+
@click="editEventHandler('onBeforeImport', onBeforeImportParams)"
|
|
69
|
+
>
|
|
34
70
|
<span>{{ optionModel.onBeforeImport }}</span>
|
|
35
71
|
<i class="el-icon-edit"></i>
|
|
36
72
|
</a>
|
|
37
73
|
</el-form-item>
|
|
38
|
-
|
|
39
|
-
|
|
74
|
+
|
|
75
|
+
<el-form-item label="导入完成回调" label-width="150px">
|
|
76
|
+
<a
|
|
77
|
+
href="javascript:void(0);"
|
|
78
|
+
class="a-link link-oneLind"
|
|
79
|
+
@click="editEventHandler('onSuccessImport', onSuccessImportParams)"
|
|
80
|
+
>
|
|
81
|
+
<span>{{ optionModel.onSuccessImport }}</span>
|
|
82
|
+
<i class="el-icon-edit"></i>
|
|
83
|
+
</a>
|
|
84
|
+
</el-form-item>
|
|
85
|
+
<el-form-item label="隐藏取消按钮" label-width="150px">
|
|
86
|
+
<el-switch v-model="optionModel.hideCancelButton"></el-switch>
|
|
87
|
+
</el-form-item>
|
|
88
|
+
|
|
89
|
+
<bdAttachSettingDialog
|
|
90
|
+
v-if="showBdAttachSettingDialog"
|
|
91
|
+
:visiable.sync="showBdAttachSettingDialog"
|
|
92
|
+
:multi="false"
|
|
93
|
+
@confirm="confirmBdAttachSettingDialog"
|
|
94
|
+
></bdAttachSettingDialog>
|
|
40
95
|
</div>
|
|
41
96
|
</template>
|
|
42
97
|
|
|
43
98
|
<script>
|
|
44
99
|
import i18n from "../../../../../../components/xform/utils/i18n";
|
|
45
|
-
import eventMixin
|
|
46
|
-
from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
|
100
|
+
import eventMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
|
47
101
|
import bdAttachSettingDialog from "../../../../../../views/bd/setting/bd_attach_setting/dialog.vue";
|
|
48
102
|
|
|
49
103
|
export default {
|
|
50
104
|
name: "import-button-editor",
|
|
51
|
-
components: {bdAttachSettingDialog},
|
|
105
|
+
components: { bdAttachSettingDialog },
|
|
52
106
|
mixins: [i18n, eventMixin],
|
|
53
107
|
props: {
|
|
54
108
|
designer: Object,
|
|
@@ -57,19 +111,22 @@ export default {
|
|
|
57
111
|
},
|
|
58
112
|
data() {
|
|
59
113
|
return {
|
|
60
|
-
eventParams: [],
|
|
114
|
+
eventParams: ["dataId", "formCode", "done"],
|
|
61
115
|
showBdAttachSettingDialog: false,
|
|
62
|
-
onBeforeImportParams: ["dataId", "formCode",
|
|
116
|
+
onBeforeImportParams: ["dataId", "formCode", "file", "resultData", "done"],
|
|
117
|
+
onConfirmImportParams: ["dataId", "formCode", "resultData", "file", "done"],
|
|
118
|
+
onSuccessImportParams: ["dataId", "formCode", "resultData", "file"],
|
|
63
119
|
};
|
|
64
120
|
},
|
|
65
121
|
methods: {
|
|
66
122
|
confirmBdAttachSettingDialog(rows) {
|
|
67
123
|
if (rows.length) {
|
|
68
124
|
let row = rows[0];
|
|
125
|
+
this.optionModel.importAttachName = row.name;
|
|
69
126
|
this.optionModel.importAttachCode = row.code;
|
|
70
127
|
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
128
|
+
},
|
|
129
|
+
},
|
|
73
130
|
};
|
|
74
131
|
</script>
|
|
75
132
|
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-form-item label-width="0">
|
|
4
|
+
<el-divider class="custom-divider">前端导入设置</el-divider>
|
|
5
|
+
</el-form-item>
|
|
6
|
+
<el-form-item label="文件大小限制(M)">
|
|
7
|
+
<base-input-number v-model="optionModel.importFileLimitSize" :max="200"></base-input-number>
|
|
8
|
+
</el-form-item>
|
|
9
|
+
<el-form-item label="导入模板文件编码">
|
|
10
|
+
<el-input
|
|
11
|
+
class="search-input"
|
|
12
|
+
max="200"
|
|
13
|
+
:value="optionModel.importAttachCode"
|
|
14
|
+
clearable
|
|
15
|
+
@clear="optionModel.importAttachCode=null;optionModel.importAttachName=null;"
|
|
16
|
+
>
|
|
17
|
+
<i slot="suffix" class="el-input__icon el-icon-search" @click="showBdAttachSettingDialog = true"></i>
|
|
18
|
+
</el-input>
|
|
19
|
+
</el-form-item>
|
|
20
|
+
<el-form-item label="导入模板文件名称">
|
|
21
|
+
<span>{{ optionModel.importAttachName }}</span>
|
|
22
|
+
</el-form-item>
|
|
23
|
+
|
|
24
|
+
<el-form-item label="关联表格唯一名称">
|
|
25
|
+
<el-input v-model="optionModel.tableRef"></el-input>
|
|
26
|
+
</el-form-item>
|
|
27
|
+
<el-form-item label="点击前置事件" label-width="150px">
|
|
28
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
29
|
+
@click="editEventHandler('onBeforeClickButton', eventParams)">
|
|
30
|
+
<span>{{ optionModel.onBeforeClickButton }}</span>
|
|
31
|
+
<i class="el-icon-edit"></i>
|
|
32
|
+
</a>
|
|
33
|
+
</el-form-item>
|
|
34
|
+
<el-form-item label="启用确认回调">
|
|
35
|
+
<el-switch v-model="optionModel.onConfirmImportEnabled"></el-switch>
|
|
36
|
+
</el-form-item>
|
|
37
|
+
<el-form-item label="确认回调" label-width="150px" v-if="optionModel.onConfirmImportEnabled">
|
|
38
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
39
|
+
@click="editEventHandler('onConfirmImport', onConfirmImportParams)">
|
|
40
|
+
<span>{{ optionModel.onConfirmImport }}</span>
|
|
41
|
+
<i class="el-icon-edit"></i>
|
|
42
|
+
</a>
|
|
43
|
+
</el-form-item>
|
|
44
|
+
<el-form-item label="导入完成回调" label-width="150px">
|
|
45
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
46
|
+
@click="editEventHandler('onSuccessImport', onSuccessImportParams)">
|
|
47
|
+
<span>{{ optionModel.onSuccessImport }}</span>
|
|
48
|
+
<i class="el-icon-edit"></i>
|
|
49
|
+
</a>
|
|
50
|
+
</el-form-item>
|
|
51
|
+
<el-form-item label="隐藏取消按钮" label-width="150px">
|
|
52
|
+
<el-switch v-model="optionModel.hideCancelButton"></el-switch>
|
|
53
|
+
</el-form-item>
|
|
54
|
+
|
|
55
|
+
<bdAttachSettingDialog v-if="showBdAttachSettingDialog" :visiable.sync="showBdAttachSettingDialog" :multi="false"
|
|
56
|
+
@confirm="confirmBdAttachSettingDialog"></bdAttachSettingDialog>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
59
|
+
|
|
60
|
+
<script>
|
|
61
|
+
import i18n from "../../../../../../components/xform/utils/i18n";
|
|
62
|
+
import eventMixin
|
|
63
|
+
from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
|
64
|
+
import bdAttachSettingDialog from "../../../../../../views/bd/setting/bd_attach_setting/dialog.vue";
|
|
65
|
+
|
|
66
|
+
export default {
|
|
67
|
+
name: "import2-button-editor",
|
|
68
|
+
components: {bdAttachSettingDialog},
|
|
69
|
+
mixins: [i18n, eventMixin],
|
|
70
|
+
props: {
|
|
71
|
+
designer: Object,
|
|
72
|
+
selectedWidget: Object,
|
|
73
|
+
optionModel: Object,
|
|
74
|
+
},
|
|
75
|
+
data() {
|
|
76
|
+
return {
|
|
77
|
+
eventParams: ["dataId", "formCode", "done"],
|
|
78
|
+
showBdAttachSettingDialog: false,
|
|
79
|
+
onBeforeImportParams: ["dataId", "formCode", 'file', 'resultData', 'done'],
|
|
80
|
+
onConfirmImportParams: ["dataId", "formCode", 'resultData', 'file', 'done'],
|
|
81
|
+
onSuccessImportParams: ["dataId", "formCode", 'resultData', 'file']
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
methods: {
|
|
85
|
+
confirmBdAttachSettingDialog(rows) {
|
|
86
|
+
if (rows.length) {
|
|
87
|
+
let row = rows[0];
|
|
88
|
+
this.optionModel.importAttachName = row.name;
|
|
89
|
+
this.optionModel.importAttachCode = row.code;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
</script>
|
|
95
|
+
|
|
96
|
+
<style scoped></style>
|
|
@@ -3,23 +3,53 @@
|
|
|
3
3
|
<el-form-item label-width="0">
|
|
4
4
|
<el-divider class="custom-divider">打印设置</el-divider>
|
|
5
5
|
</el-form-item>
|
|
6
|
+
<!-- <el-form-item label="启用自定义按钮名称">
|
|
7
|
+
<el-switch v-model="optionModel.customLabelEnabled"></el-switch>
|
|
8
|
+
</el-form-item> -->
|
|
6
9
|
<el-form-item label="表格唯一名称">
|
|
7
10
|
<el-input v-model="optionModel.printTableRef"></el-input>
|
|
8
11
|
</el-form-item>
|
|
12
|
+
<!-- <el-form-item label="打印自定义条件参数">
|
|
13
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
14
|
+
@click="editEventHandler('printCustomCondition', printConditionParams)">
|
|
15
|
+
<span>{{ optionModel.printCustomCondition }}</span>
|
|
16
|
+
<i class="el-icon-edit"></i>
|
|
17
|
+
</a>
|
|
18
|
+
</el-form-item> -->
|
|
9
19
|
<el-form-item label="输出模板编码"></el-form-item>
|
|
10
20
|
<el-form-item label-width="0">
|
|
11
|
-
<draggable
|
|
12
|
-
|
|
21
|
+
<draggable
|
|
22
|
+
tag="ul"
|
|
23
|
+
class="draggable-box"
|
|
24
|
+
:list="optionModel.printItems"
|
|
25
|
+
v-bind="{ group: 'optionsGroup', ghostClass: 'ghost', handle: '.drag-option' }"
|
|
26
|
+
>
|
|
13
27
|
<li v-for="(item, index) in optionModel.printItems" :key="index" class="col-item">
|
|
14
28
|
<i class="el-icon-s-operation drag-option"></i>
|
|
15
|
-
<el-input
|
|
16
|
-
|
|
17
|
-
|
|
29
|
+
<el-input
|
|
30
|
+
v-model="item.code"
|
|
31
|
+
class="cell-span-input"
|
|
32
|
+
style="width: 160px !important"
|
|
33
|
+
></el-input>
|
|
34
|
+
<el-button
|
|
35
|
+
circle
|
|
36
|
+
plain
|
|
37
|
+
size="mini"
|
|
38
|
+
type="danger"
|
|
39
|
+
@click="deleteItem(index)"
|
|
40
|
+
icon="el-icon-minus"
|
|
41
|
+
class="col-delete-button"
|
|
42
|
+
style="position: unset"
|
|
43
|
+
></el-button>
|
|
18
44
|
</li>
|
|
19
45
|
</draggable>
|
|
20
46
|
<div>
|
|
21
|
-
<el-button
|
|
22
|
-
|
|
47
|
+
<el-button
|
|
48
|
+
type="text"
|
|
49
|
+
@click="addItem"
|
|
50
|
+
icon="el-icon-circle-plus-outline"
|
|
51
|
+
class="add-option"
|
|
52
|
+
>
|
|
23
53
|
新增
|
|
24
54
|
</el-button>
|
|
25
55
|
</div>
|
|
@@ -29,9 +59,8 @@
|
|
|
29
59
|
|
|
30
60
|
<script>
|
|
31
61
|
import i18n from "../../../../../../components/xform/utils/i18n";
|
|
32
|
-
import eventMixin
|
|
33
|
-
|
|
34
|
-
import Draggable from 'vuedraggable';
|
|
62
|
+
import eventMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
|
63
|
+
import Draggable from "vuedraggable";
|
|
35
64
|
|
|
36
65
|
export default {
|
|
37
66
|
name: "print-button-editor",
|
|
@@ -47,16 +76,17 @@ export default {
|
|
|
47
76
|
data() {
|
|
48
77
|
return {
|
|
49
78
|
eventParams: [],
|
|
79
|
+
printConditionParams: ["dataId", "formCode", "exportTemplate"],
|
|
50
80
|
};
|
|
51
81
|
},
|
|
52
82
|
methods: {
|
|
53
83
|
deleteItem(index) {
|
|
54
|
-
this.optionModel.printItems.splice(index, 1)
|
|
84
|
+
this.optionModel.printItems.splice(index, 1);
|
|
55
85
|
},
|
|
56
86
|
addItem() {
|
|
57
|
-
this.optionModel.printItems.push({code: null});
|
|
58
|
-
}
|
|
59
|
-
}
|
|
87
|
+
this.optionModel.printItems.push({ code: null });
|
|
88
|
+
},
|
|
89
|
+
},
|
|
60
90
|
};
|
|
61
91
|
</script>
|
|
62
92
|
|
|
@@ -83,4 +113,3 @@ li.ghost {
|
|
|
83
113
|
width: 100px;
|
|
84
114
|
}
|
|
85
115
|
</style>
|
|
86
|
-
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-form-item label-width="0">
|
|
4
|
+
<el-divider class="custom-divider">详情打印设置</el-divider>
|
|
5
|
+
</el-form-item>
|
|
6
|
+
<!-- <el-form-item label="启用自定义按钮名称">
|
|
7
|
+
<el-switch v-model="optionModel.customLabelEnabled"></el-switch>
|
|
8
|
+
</el-form-item> -->
|
|
9
|
+
<el-form-item label="打印自定义条件参数">
|
|
10
|
+
<a
|
|
11
|
+
href="javascript:void(0);"
|
|
12
|
+
class="a-link link-oneLind"
|
|
13
|
+
@click="editEventHandler('printCustomCondition', printConditionParams)"
|
|
14
|
+
>
|
|
15
|
+
<span>{{ optionModel.printCustomCondition }}</span>
|
|
16
|
+
<i class="el-icon-edit"></i>
|
|
17
|
+
</a>
|
|
18
|
+
</el-form-item>
|
|
19
|
+
<el-form-item label="输出模板编码"></el-form-item>
|
|
20
|
+
<el-form-item label-width="0">
|
|
21
|
+
<draggable
|
|
22
|
+
tag="ul"
|
|
23
|
+
class="draggable-box"
|
|
24
|
+
:list="optionModel.printItems"
|
|
25
|
+
v-bind="{ group: 'optionsGroup', ghostClass: 'ghost', handle: '.drag-option' }"
|
|
26
|
+
>
|
|
27
|
+
<li v-for="(item, index) in optionModel.printItems" :key="index" class="col-item">
|
|
28
|
+
<i class="el-icon-s-operation drag-option"></i>
|
|
29
|
+
<el-input
|
|
30
|
+
v-model="item.code"
|
|
31
|
+
class="cell-span-input"
|
|
32
|
+
style="width: 160px !important"
|
|
33
|
+
></el-input>
|
|
34
|
+
<el-button
|
|
35
|
+
circle
|
|
36
|
+
plain
|
|
37
|
+
size="mini"
|
|
38
|
+
type="danger"
|
|
39
|
+
@click="deleteItem(index)"
|
|
40
|
+
icon="el-icon-minus"
|
|
41
|
+
class="col-delete-button"
|
|
42
|
+
style="position: unset"
|
|
43
|
+
></el-button>
|
|
44
|
+
</li>
|
|
45
|
+
</draggable>
|
|
46
|
+
<div>
|
|
47
|
+
<el-button
|
|
48
|
+
type="text"
|
|
49
|
+
@click="addItem"
|
|
50
|
+
icon="el-icon-circle-plus-outline"
|
|
51
|
+
class="add-option"
|
|
52
|
+
>
|
|
53
|
+
新增
|
|
54
|
+
</el-button>
|
|
55
|
+
</div>
|
|
56
|
+
</el-form-item>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
59
|
+
|
|
60
|
+
<script>
|
|
61
|
+
import i18n from "../../../../../../components/xform/utils/i18n";
|
|
62
|
+
import eventMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
|
63
|
+
import Draggable from "vuedraggable";
|
|
64
|
+
|
|
65
|
+
export default {
|
|
66
|
+
name: "print-detail-button-editor",
|
|
67
|
+
mixins: [i18n, eventMixin],
|
|
68
|
+
components: {
|
|
69
|
+
Draggable,
|
|
70
|
+
},
|
|
71
|
+
props: {
|
|
72
|
+
designer: Object,
|
|
73
|
+
selectedWidget: Object,
|
|
74
|
+
optionModel: Object,
|
|
75
|
+
},
|
|
76
|
+
data() {
|
|
77
|
+
return {
|
|
78
|
+
eventParams: [],
|
|
79
|
+
printConditionParams: ["dataId", "formCode", "exportTemplate"],
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
methods: {
|
|
83
|
+
deleteItem(index) {
|
|
84
|
+
this.optionModel.printItems.splice(index, 1);
|
|
85
|
+
},
|
|
86
|
+
addItem() {
|
|
87
|
+
this.optionModel.printItems.push({ code: null });
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
</script>
|
|
92
|
+
|
|
93
|
+
<style lang="scss" scoped>
|
|
94
|
+
.option-items-pane ul {
|
|
95
|
+
padding-inline-start: 6px;
|
|
96
|
+
padding-left: 6px; /* 重置IE11默认样式 */
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
li.ghost {
|
|
100
|
+
background: #fff;
|
|
101
|
+
border: 2px dotted $--color-primary;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.drag-option {
|
|
105
|
+
cursor: move;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.small-padding-dialog ::v-deep .el-dialog__body {
|
|
109
|
+
padding: 10px 15px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.dialog-footer .el-button {
|
|
113
|
+
width: 100px;
|
|
114
|
+
}
|
|
115
|
+
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-form-item :label="i18nt('designer.setting.defaultValue')">
|
|
3
|
-
<el-input-number v-model="optionModel.defaultValue" :
|
|
3
|
+
<el-input-number v-model="optionModel.defaultValue" :max="optionModel.max" style="width: 100%"
|
|
4
4
|
@change="emitDefaultValueChange">
|
|
5
5
|
</el-input-number>
|
|
6
6
|
</el-form-item>
|
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
+
<el-form-item label-width="0">
|
|
4
|
+
<el-divider class="custom-divider-margin-top">选项设置</el-divider>
|
|
5
|
+
</el-form-item>
|
|
6
|
+
<el-form-item label="选项值类型">
|
|
7
|
+
<el-radio-group v-model="optionModel.optionItemValueType" @change="changeValueType">
|
|
8
|
+
<el-radio :label="0">文本</el-radio>
|
|
9
|
+
<el-radio :label="1">数值</el-radio>
|
|
10
|
+
<el-radio :label="2">布尔值</el-radio>
|
|
11
|
+
</el-radio-group>
|
|
12
|
+
</el-form-item>
|
|
13
|
+
<el-form-item label="默认值">
|
|
14
|
+
<el-input v-model="optionModel.defaultValue" size="mini" style="width: 100px" v-if="!optionModel.optionItemValueType"></el-input>
|
|
15
|
+
<base-input-number v-model="optionModel.defaultValue" size="mini" style="width: 100%" v-if="optionModel.optionItemValueType==1" />
|
|
16
|
+
<el-select v-model="optionModel.defaultValue" style="width: 100%" v-if="optionModel.optionItemValueType===2" clearable @clear="optionModel.defaultValue=null">
|
|
17
|
+
<el-option :value="true" label="true"></el-option>
|
|
18
|
+
<el-option :value="false" label="false"></el-option>
|
|
19
|
+
</el-select>
|
|
20
|
+
</el-form-item>
|
|
21
|
+
<el-form-item :label="i18nt('显示字段')" v-if="optionModel.commonAttributeEnabled || optionModel.formScriptEnabled">
|
|
22
|
+
<el-input type="text" v-model="optionModel.labelKey" placeholder="默认label" :disabled="optionModel.commonAttributeEnabled"></el-input>
|
|
23
|
+
</el-form-item>
|
|
24
|
+
<el-form-item :label="i18nt('关联字段')" v-if="optionModel.commonAttributeEnabled || optionModel.formScriptEnabled">
|
|
25
|
+
<el-input type="text" v-model="optionModel.valueKey" placeholder="默认value" :disabled="optionModel.commonAttributeEnabled"></el-input>
|
|
26
|
+
</el-form-item>
|
|
3
27
|
<el-form-item label="状态配置">
|
|
4
28
|
<a href="javascript:void(0);" class="a-link link-oneLind" @click="openDialog">
|
|
5
|
-
<span>{{ optionModel.statusParam.length?"已维护":"" }}</span>
|
|
29
|
+
<span>{{ optionModel.statusParam.length ? "已维护" : "" }}</span>
|
|
6
30
|
<i class="el-icon-edit"></i>
|
|
7
31
|
</a>
|
|
8
32
|
</el-form-item>
|
|
@@ -15,20 +39,12 @@
|
|
|
15
39
|
:close-on-click-modal="!1"
|
|
16
40
|
:close-on-press-escape="!1"
|
|
17
41
|
:destroy-on-close="!0"
|
|
18
|
-
|
|
19
|
-
|
|
42
|
+
width="800px"
|
|
43
|
+
top="0px"
|
|
20
44
|
v-dialog-drag
|
|
21
45
|
@closed="closeHandle"
|
|
22
46
|
>
|
|
23
47
|
<div class="cont">
|
|
24
|
-
<el-form-item label="选项值类型">
|
|
25
|
-
<!-- <el-switch v-model="optionItemValueType" @change="changeValueType"></el-switch>-->
|
|
26
|
-
<el-radio-group v-model="optionItemValueType" @change="changeValueType">
|
|
27
|
-
<el-radio :label="0">文本</el-radio>
|
|
28
|
-
<el-radio :label="1">数值</el-radio>
|
|
29
|
-
<el-radio :label="2">布尔值</el-radio>
|
|
30
|
-
</el-radio-group>
|
|
31
|
-
</el-form-item>
|
|
32
48
|
<el-table
|
|
33
49
|
ref="singleTable"
|
|
34
50
|
width="100%"
|
|
@@ -54,9 +70,9 @@
|
|
|
54
70
|
</el-table-column>
|
|
55
71
|
<el-table-column label="字段值" width="150" prop="value">
|
|
56
72
|
<template slot-scope="scope">
|
|
57
|
-
<el-input v-model="scope.row.value" v-if="optionItemValueType===0"></el-input>
|
|
58
|
-
<base-input-number v-model="scope.row.value"
|
|
59
|
-
<template v-if="optionItemValueType===2">{{scope.row.value}}</template>
|
|
73
|
+
<el-input v-model="scope.row.value" v-if="optionModel.optionItemValueType===0"></el-input>
|
|
74
|
+
<base-input-number v-model="scope.row.value" v-if="optionModel.optionItemValueType===1"></base-input-number>
|
|
75
|
+
<template v-if="optionModel.optionItemValueType===2">{{ scope.row.value }}</template>
|
|
60
76
|
</template>
|
|
61
77
|
</el-table-column>
|
|
62
78
|
<el-table-column label="状态颜色" width="100" prop="type">
|
|
@@ -128,14 +144,15 @@ export default {
|
|
|
128
144
|
selectedWidget: Object,
|
|
129
145
|
optionModel: Object,
|
|
130
146
|
},
|
|
131
|
-
data(){
|
|
147
|
+
data() {
|
|
132
148
|
return {
|
|
133
|
-
showDialog:false,
|
|
134
|
-
tableData:[],
|
|
135
|
-
optionItemValueType:0
|
|
149
|
+
showDialog: false,
|
|
150
|
+
tableData: [],
|
|
151
|
+
optionItemValueType: 0,
|
|
152
|
+
defaultValue: null
|
|
136
153
|
}
|
|
137
154
|
},
|
|
138
|
-
methods:{
|
|
155
|
+
methods: {
|
|
139
156
|
dragSort: function () {
|
|
140
157
|
var e = this.$refs.singleTable.$el.querySelectorAll('.el-table__body-wrapper > table > tbody')[0],
|
|
141
158
|
t = this.tableData;
|
|
@@ -150,51 +167,60 @@ export default {
|
|
|
150
167
|
}
|
|
151
168
|
});
|
|
152
169
|
},
|
|
153
|
-
closeHandle(){
|
|
170
|
+
closeHandle() {
|
|
154
171
|
this.showDialog = false;
|
|
155
172
|
},
|
|
156
|
-
openDialog(){
|
|
173
|
+
openDialog() {
|
|
157
174
|
this.optionItemValueType = this.optionModel.optionItemValueType
|
|
175
|
+
this.defaultValue = this.optionModel.defaultValue == null ? undefined : null
|
|
158
176
|
this.tableData = this.$baseLodash.cloneDeep(this.optionModel.statusParam);
|
|
159
177
|
this.showDialog = true;
|
|
160
178
|
this.$nextTick(function () {
|
|
161
179
|
this.dragSort();
|
|
162
180
|
});
|
|
163
181
|
},
|
|
164
|
-
addItem(){
|
|
182
|
+
addItem() {
|
|
165
183
|
this.tableData.push({
|
|
166
|
-
value:null,
|
|
167
|
-
label:null,
|
|
168
|
-
type:null
|
|
184
|
+
value: null,
|
|
185
|
+
label: null,
|
|
186
|
+
type: null
|
|
169
187
|
})
|
|
170
188
|
},
|
|
171
|
-
confirmDialog(){
|
|
172
|
-
this.optionModel.optionItemValueType = this.optionItemValueType;
|
|
189
|
+
confirmDialog() {
|
|
190
|
+
// this.optionModel.optionItemValueType = this.optionItemValueType;
|
|
191
|
+
// this.optionModel.defaultValue = (this.defaultValue === "" || this.defaultValue === undefined) ? null : this.defaultValue;
|
|
173
192
|
this.optionModel.statusParam = this.$baseLodash.cloneDeep(this.tableData);
|
|
174
193
|
this.showDialog = false;
|
|
175
|
-
this.$nextTick(()=>{
|
|
194
|
+
this.$nextTick(() => {
|
|
176
195
|
let fieldWidget = this.designer.formWidget.getWidgetRef(this.optionModel.name);
|
|
177
196
|
fieldWidget.refreshWidget();
|
|
178
197
|
})
|
|
179
198
|
|
|
180
199
|
},
|
|
181
|
-
deleteItem(rowIndex){
|
|
182
|
-
this.tableData.splice(rowIndex,1);
|
|
200
|
+
deleteItem(rowIndex) {
|
|
201
|
+
this.tableData.splice(rowIndex, 1);
|
|
183
202
|
},
|
|
184
|
-
changeValueType(val){
|
|
185
|
-
this.tableData =
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
203
|
+
changeValueType(val) {
|
|
204
|
+
// this.tableData = this.$baseLodash.cloneDeep(this.optionModel.statusParam);
|
|
205
|
+
this.optionModel.statusParam = [];
|
|
206
|
+
if (val == 2) {
|
|
207
|
+
this.optionModel.statusParam.push({
|
|
208
|
+
label: "是",
|
|
209
|
+
value: true,
|
|
210
|
+
type: "success"
|
|
191
211
|
});
|
|
192
|
-
this.
|
|
193
|
-
label:"否",
|
|
194
|
-
value:false,
|
|
195
|
-
type:"danger"
|
|
212
|
+
this.optionModel.statusParam.push({
|
|
213
|
+
label: "否",
|
|
214
|
+
value: false,
|
|
215
|
+
type: "danger"
|
|
196
216
|
});
|
|
197
217
|
}
|
|
218
|
+
if (val == 1) {
|
|
219
|
+
this.optionModel.defaultValue = undefined
|
|
220
|
+
} else {
|
|
221
|
+
this.optionModel.defaultValue = null
|
|
222
|
+
}
|
|
223
|
+
|
|
198
224
|
}
|
|
199
225
|
}
|
|
200
226
|
}
|