cloud-web-corejs 1.0.54-dev.54 → 1.0.54-dev.540
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 +21 -3
- package/src/App.vue +30 -34
- 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/image-viewer.vue +2 -2
- package/src/components/VabUpload/index.js +2 -1
- package/src/components/VabUpload/mixins.js +2 -2
- package/src/components/VabUpload/privateProfileDialogMixins.js +1 -1063
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +209 -120
- package/src/components/advancedSearchDialog/mixins.js +1 -1
- package/src/components/base-textarea/index.vue +104 -0
- package/src/components/baseAlert/mixins.js +1 -1
- package/src/components/baseAttachment/index.vue +49 -40
- package/src/components/baseAttachment/mixins.js +2 -1
- package/src/components/baseInputExport/index.vue +19 -12
- package/src/components/baseInputExport/mixins.js +1 -1
- package/src/components/baseTabs/mixins.js +1 -1
- package/src/components/code-editor/index.vue +102 -63
- package/src/components/confirmDialog/index.vue +24 -17
- package/src/components/confirmDialog/mixins.js +1 -1
- package/src/components/errorMsg/index.vue +42 -34
- package/src/components/errorMsg/mixins.js +6 -5
- package/src/components/excelExport/button.vue +57 -4
- package/src/components/excelExport/exportFieldDialog.vue +215 -81
- package/src/components/excelExport/index.js +6 -6
- package/src/components/excelExport/index.vue +56 -2
- package/src/components/excelExport/mixins.js +3 -2
- package/src/components/excelImport/mixins.js +2 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +179 -89
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -0
- package/src/components/fileLibrary/filterDialog.vue +454 -0
- package/src/components/fileLibrary/index.vue +599 -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/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/view/design/index.vue +1 -0
- 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 +1055 -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 +335 -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/univer/button.vue +57 -0
- package/src/components/univer/dialog.vue +129 -0
- package/src/components/univer/index.js +95 -0
- package/src/components/univer/univerSheet.vue +200 -0
- package/src/components/vb-tabs/x-tabs.vue +56 -30
- package/src/components/wf/addOpinionButton.vue +57 -0
- package/src/components/wf/content.vue +834 -362
- package/src/components/wf/mixins/addOpinionButton.js +3 -0
- package/src/components/wf/mixins/setCandidateButton.js +6 -0
- package/src/components/wf/mixins/setCandidateDialog.js +2 -1
- package/src/components/wf/mixins/setCandidateDialog2.js +6 -0
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +3 -0
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +3 -0
- package/src/components/wf/setCandidateButton.vue +40 -0
- package/src/components/wf/setCandidateDialog.vue +10 -0
- package/src/components/wf/setCandidateDialog2.vue +105 -0
- package/src/components/wf/wf.js +2156 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
- package/src/components/wf/wfStartDialog.vue +66 -42
- package/src/components/wf/wfTaskUserRangeDialog.vue +65 -0
- package/src/components/wf/wfUtil.js +279 -1
- package/src/components/xform/form-designer/designer.js +5 -3
- 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 +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 +9 -8
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +196 -73
- package/src/components/xform/form-designer/form-widget/dialog/univerDialog.vue +200 -0
- 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 +95 -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 +1654 -16
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +705 -379
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +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/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 +54 -27
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +120 -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-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 +12 -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 +31 -17
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +42 -37
- 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 +106 -33
- 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 +978 -169
- package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +537 -302
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +125 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +953 -1042
- 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 +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-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-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/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 +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 +35 -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 +1710 -917
- package/src/components/xform/form-render/container-item/containerItemMixin.js +12 -11
- package/src/components/xform/form-render/container-item/data-table-item.vue +202 -199
- package/src/components/xform/form-render/container-item/data-table-mixin.js +3048 -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 +83 -20
- package/src/components/xform/form-render/indexMixin.js +3700 -12
- package/src/components/xform/lang/zh-CN.js +29 -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 +35 -34
- package/src/components/xform/utils/formula-util copy 2.js +945 -0
- package/src/components/xform/utils/formula-util copy.js +856 -0
- package/src/components/xform/utils/formula-util.js +966 -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 +215 -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 +1423 -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 +125 -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 +1 -7
- 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 -9
- package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
- package/src/views/bd/setting/form_template/mixins/list.js +689 -22
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
- package/src/views/bd/setting/form_template/mixins/wf_list.js +1 -423
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +4 -4
- package/src/views/bd/setting/form_template/wf_list.vue +1 -1
- package/src/views/bd/setting/logic_param/edit.vue +146 -0
- package/src/views/bd/setting/logic_param/edit1.vue +106 -0
- package/src/views/bd/setting/logic_param/edit2.vue +139 -0
- package/src/views/bd/setting/logic_param/list.vue +74 -0
- package/src/views/bd/setting/logic_param/list1.vue +12 -0
- package/src/views/bd/setting/logic_param/list2.vue +12 -0
- package/src/views/bd/setting/logic_param/mixins/edit.js +3 -0
- package/src/views/bd/setting/logic_param/mixins/list.js +9 -0
- package/src/views/bd/setting/menu_kind/list.vue +172 -83
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -7
- package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
- package/src/views/bd/setting/push_data/edit.vue +139 -0
- package/src/views/bd/setting/push_data/list.vue +283 -0
- package/src/views/bd/setting/push_data_h/edit.vue +153 -0
- package/src/views/bd/setting/push_data_h/list.vue +293 -0
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -0
- package/src/views/bd/setting/request_async_setting/list.vue +372 -0
- package/src/views/bd/setting/request_setting/edit.vue +300 -0
- package/src/views/bd/setting/request_setting/list.vue +311 -0
- package/src/views/bd/setting/table_model/edit.vue +875 -426
- package/src/views/bd/setting/table_model/list.vue +190 -128
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit.js +1202 -13
- package/src/views/bd/setting/table_model/mixins/list.js +440 -14
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/user/access_log/list.vue +418 -349
- package/src/views/user/area/dialog.vue +223 -117
- package/src/views/user/area/list.vue +318 -0
- package/src/views/user/bill_setting/edit.vue +1 -1
- package/src/views/user/bill_setting/list.vue +1 -1
- package/src/views/user/common_attribute/itemEdit.vue +2 -2
- package/src/views/user/common_attribute/list.vue +5 -2
- package/src/views/user/common_script/edit.vue +1 -1
- package/src/views/user/common_script/list.vue +1 -1
- package/src/views/user/company_info/dialog.vue +195 -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 +1026 -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 +44 -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/list.vue +128 -72
- 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/user/dialog.vue +46 -23
- package/src/views/user/user/edit.vue +1290 -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 +652 -563
- package/src/views/user/user/modifyPasswordDialog.vue +64 -53
- package/src/views/user/wf/wfReport/index.vue +619 -0
- package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
- package/src/views/user/wf/wf_manage/list.vue +379 -250
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +25 -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_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
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
:visible.sync="showDialog"
|
|
4
|
+
:fullscreen="true"
|
|
5
|
+
@close="close"
|
|
6
|
+
:appendToBody="true"
|
|
7
|
+
:modalAppendToBody="true"
|
|
8
|
+
:closeOnClickModal="false"
|
|
9
|
+
:modal="false"
|
|
10
|
+
:title="title"
|
|
11
|
+
custom-class="dialog-style list-dialog dialog-checkbox pd_0"
|
|
12
|
+
>
|
|
13
|
+
<div class="cont" id="containt" :class="{ nfootBtn: readonly }">
|
|
14
|
+
<univer
|
|
15
|
+
ref="univer"
|
|
16
|
+
:data="json"
|
|
17
|
+
v-if="showUniver"
|
|
18
|
+
:readonly="readonly"
|
|
19
|
+
:options="univerConfig"
|
|
20
|
+
></univer>
|
|
21
|
+
</div>
|
|
22
|
+
<span slot="footer" class="dialog-footer" v-if="!readonly">
|
|
23
|
+
<el-button type="primary" plain class="button-sty" @click="close">
|
|
24
|
+
<i class="el-icon-close el-icon"></i>
|
|
25
|
+
{{ $t2("取 消", "system.button.cancel2") }}
|
|
26
|
+
</el-button>
|
|
27
|
+
<el-button type="primary" @click="dialogSubmit" class="button-sty">
|
|
28
|
+
<i class="el-icon-check el-icon"></i>
|
|
29
|
+
{{ $t2("确 定", "system.button.confirm2") }}
|
|
30
|
+
</el-button>
|
|
31
|
+
</span>
|
|
32
|
+
</el-dialog>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<script>
|
|
36
|
+
import univer from "./univerSheet.vue";
|
|
37
|
+
|
|
38
|
+
export default {
|
|
39
|
+
name: "univerDialog",
|
|
40
|
+
components: { univer },
|
|
41
|
+
props: {
|
|
42
|
+
visiable: Boolean,
|
|
43
|
+
data: String,
|
|
44
|
+
title: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: "excel",
|
|
47
|
+
},
|
|
48
|
+
readonly: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: false,
|
|
51
|
+
},
|
|
52
|
+
univerConfig: {
|
|
53
|
+
type: Object,
|
|
54
|
+
default: () => {},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
mounted() {},
|
|
58
|
+
data() {
|
|
59
|
+
return {
|
|
60
|
+
showDialog: true,
|
|
61
|
+
json: {},
|
|
62
|
+
showUniver: false,
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
computed: {},
|
|
66
|
+
created() {
|
|
67
|
+
this.init();
|
|
68
|
+
},
|
|
69
|
+
methods: {
|
|
70
|
+
init() {
|
|
71
|
+
if (this.data) {
|
|
72
|
+
this.json = JSON.parse(this.data);
|
|
73
|
+
}
|
|
74
|
+
this.$nextTick(() => {
|
|
75
|
+
this.showUniver = true;
|
|
76
|
+
});
|
|
77
|
+
},
|
|
78
|
+
close() {
|
|
79
|
+
this.showDialog = false;
|
|
80
|
+
this.$emit("update:visiable", false);
|
|
81
|
+
},
|
|
82
|
+
dialogSubmit() {
|
|
83
|
+
let univerRef = this.$refs.univer;
|
|
84
|
+
this.$refs.univer.getValue().then((value) => {
|
|
85
|
+
let result = JSON.stringify(value);
|
|
86
|
+
this.$emit("confirm", result);
|
|
87
|
+
this.close();
|
|
88
|
+
});
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
</script>
|
|
93
|
+
|
|
94
|
+
<style lang="scss" scoped>
|
|
95
|
+
.list-dialog {
|
|
96
|
+
.el-dialog__body {
|
|
97
|
+
height: calc(100% - 42px);
|
|
98
|
+
.cont {
|
|
99
|
+
height: calc(100vh - 210px);
|
|
100
|
+
|
|
101
|
+
&.nfootBtn {
|
|
102
|
+
height: calc(100vh - 158px);
|
|
103
|
+
}
|
|
104
|
+
&#containt {
|
|
105
|
+
padding: 0;
|
|
106
|
+
::v-deep .grid-container {
|
|
107
|
+
outline: none;
|
|
108
|
+
&.detail-wrap .d-cont {
|
|
109
|
+
height: calc(100vh - 150px);
|
|
110
|
+
.title .field-wrapper {
|
|
111
|
+
display: inline-block !important;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&.is-fullscreen .el-dialog__body {
|
|
120
|
+
.cont {
|
|
121
|
+
height: calc(100vh - 110px);
|
|
122
|
+
|
|
123
|
+
&.nfootBtn {
|
|
124
|
+
height: calc(100vh - 58px);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
</style>
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import dialogComponent from './dialog.vue';
|
|
3
|
+
|
|
4
|
+
export { default as univerSheet } from "./univerSheet.vue";
|
|
5
|
+
export { default as asuniverDialog } from "./dialog.vue";
|
|
6
|
+
export { default as asuniverButton } from "./button.vue";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 打开univerDialog对话框
|
|
10
|
+
* @param {Object} options - 对话框配置选项
|
|
11
|
+
* @param {Boolean} options.visiable - 是否可见
|
|
12
|
+
* @param {String} options.data - Excel数据(JSON字符串)
|
|
13
|
+
* @param {String} options.title - 对话框标题
|
|
14
|
+
* @param {Boolean} options.readonly - 是否只读
|
|
15
|
+
* @param {Object} options.options - univer配置选项
|
|
16
|
+
* @param {Function} options.onConfirm - 确认回调函数
|
|
17
|
+
* @param {Function} options.onClose - 关闭回调函数
|
|
18
|
+
* @returns {Object} 对话框实例,包含close方法
|
|
19
|
+
*/
|
|
20
|
+
export function openUniverSheetDialog(options = {}) {
|
|
21
|
+
const {
|
|
22
|
+
visiable = true,
|
|
23
|
+
data = '',
|
|
24
|
+
title = 'excel',
|
|
25
|
+
readonly = false,
|
|
26
|
+
onConfirm,
|
|
27
|
+
onClose,
|
|
28
|
+
univerConfig = {},
|
|
29
|
+
} = options;
|
|
30
|
+
|
|
31
|
+
// 创建组件实例
|
|
32
|
+
const DialogConstructor = Vue.extend(dialogComponent);
|
|
33
|
+
const instance = new DialogConstructor({
|
|
34
|
+
propsData: {
|
|
35
|
+
visiable,
|
|
36
|
+
data,
|
|
37
|
+
title,
|
|
38
|
+
readonly,
|
|
39
|
+
univerConfig: univerConfig,
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
// 挂载组件
|
|
44
|
+
instance.$mount();
|
|
45
|
+
document.body.appendChild(instance.$el);
|
|
46
|
+
|
|
47
|
+
// 定义销毁函数
|
|
48
|
+
const destroyDialog = () => {
|
|
49
|
+
// 延迟销毁,确保动画完成
|
|
50
|
+
setTimeout(() => {
|
|
51
|
+
// 从DOM中移除
|
|
52
|
+
if (instance.$el && instance.$el.parentNode) {
|
|
53
|
+
instance.$el.parentNode.removeChild(instance.$el);
|
|
54
|
+
}
|
|
55
|
+
// 销毁组件实例
|
|
56
|
+
instance.$destroy();
|
|
57
|
+
}, 300);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
// 监听确认事件
|
|
61
|
+
if (onConfirm) {
|
|
62
|
+
instance.$on('confirm', (result) => {
|
|
63
|
+
onConfirm(result);
|
|
64
|
+
// 确认后也需要销毁
|
|
65
|
+
destroyDialog();
|
|
66
|
+
});
|
|
67
|
+
} else {
|
|
68
|
+
// 如果没有传入onConfirm,也要确保确认后销毁
|
|
69
|
+
instance.$on('confirm', destroyDialog);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// 监听关闭事件
|
|
73
|
+
if (onClose) {
|
|
74
|
+
instance.$on('update:visiable', (value) => {
|
|
75
|
+
if (!value) {
|
|
76
|
+
onClose();
|
|
77
|
+
// 关闭后销毁
|
|
78
|
+
destroyDialog();
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
} else {
|
|
82
|
+
// 如果没有传入onClose,也要确保关闭后销毁
|
|
83
|
+
instance.$on('update:visiable', (value) => {
|
|
84
|
+
if (!value) destroyDialog();
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// 返回实例,允许外部控制
|
|
89
|
+
return {
|
|
90
|
+
instance,
|
|
91
|
+
close: () => {
|
|
92
|
+
instance.close();
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { UniverSheetsConditionalFormattingPreset } from "@univerjs/preset-sheets-conditional-formatting";
|
|
3
|
+
import sheetsConditionalFormattingZhCN from "@univerjs/preset-sheets-conditional-formatting/locales/zh-CN";
|
|
4
|
+
import { UniverSheetsCorePreset } from "@univerjs/preset-sheets-core";
|
|
5
|
+
import sheetsCoreZhCN from "@univerjs/preset-sheets-core/locales/zh-CN";
|
|
6
|
+
import { UniverSheetsDataValidationPreset } from "@univerjs/preset-sheets-data-validation";
|
|
7
|
+
import sheetsDataValidationZhCN from "@univerjs/preset-sheets-data-validation/locales/zh-CN";
|
|
8
|
+
import { UniverSheetsDrawingPreset } from "@univerjs/preset-sheets-drawing";
|
|
9
|
+
import sheetsDrawingZhCN from "@univerjs/preset-sheets-drawing/locales/zh-CN";
|
|
10
|
+
import { UniverSheetsFilterPreset } from "@univerjs/preset-sheets-filter";
|
|
11
|
+
import UniverPresetSheetsFilterZhCN from "@univerjs/preset-sheets-filter/locales/zh-CN";
|
|
12
|
+
import { UniverSheetsFindReplacePreset } from "@univerjs/preset-sheets-find-replace";
|
|
13
|
+
import UniverPresetSheetsFindReplaceZhCN from "@univerjs/preset-sheets-find-replace/locales/zh-CN";
|
|
14
|
+
import { UniverSheetsHyperLinkPreset } from "@univerjs/preset-sheets-hyper-link";
|
|
15
|
+
import sheetsHyperLinkZhCN from "@univerjs/preset-sheets-hyper-link/locales/zh-CN";
|
|
16
|
+
import { UniverSheetsSortPreset } from "@univerjs/preset-sheets-sort";
|
|
17
|
+
import SheetsSortZhCN from "@univerjs/preset-sheets-sort/locales/zh-CN";
|
|
18
|
+
import { createUniver, LocaleType, mergeLocales } from "@univerjs/presets";
|
|
19
|
+
import { UniverSheetsCrosshairHighlightPlugin } from "@univerjs/sheets-crosshair-highlight";
|
|
20
|
+
import SheetsCrosshairHighlightZhCN from "@univerjs/sheets-crosshair-highlight/locale/zh-CN";
|
|
21
|
+
import { UniverSheetsZenEditorPlugin } from "@univerjs/sheets-zen-editor";
|
|
22
|
+
import SheetsZenEditorZhCN from "@univerjs/sheets-zen-editor/locale/zh-CN";
|
|
23
|
+
// import { UniverWatermarkPlugin } from "@univerjs/watermark";
|
|
24
|
+
|
|
25
|
+
// import { WORKBOOK_DATA } from "./data";
|
|
26
|
+
|
|
27
|
+
// import "./styles.css";
|
|
28
|
+
import "@univerjs/preset-sheets-core/lib/index.css";
|
|
29
|
+
import "@univerjs/preset-sheets-sort/lib/index.css";
|
|
30
|
+
import "@univerjs/preset-sheets-filter/lib/index.css";
|
|
31
|
+
import "@univerjs/preset-sheets-conditional-formatting/lib/index.css";
|
|
32
|
+
import "@univerjs/preset-sheets-data-validation/lib/index.css";
|
|
33
|
+
import "@univerjs/preset-sheets-hyper-link/lib/index.css";
|
|
34
|
+
import "@univerjs/preset-sheets-find-replace/lib/index.css";
|
|
35
|
+
import "@univerjs/sheets-zen-editor/lib/index.css";
|
|
36
|
+
import "@univerjs/sheets-crosshair-highlight/lib/index.css";
|
|
37
|
+
import "@univerjs/preset-sheets-drawing/lib/index.css";
|
|
38
|
+
|
|
39
|
+
export default {
|
|
40
|
+
name: "univerSheet",
|
|
41
|
+
props: {
|
|
42
|
+
data: {
|
|
43
|
+
type: Object,
|
|
44
|
+
default: () => {},
|
|
45
|
+
},
|
|
46
|
+
readonly: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: false,
|
|
49
|
+
},
|
|
50
|
+
options: {
|
|
51
|
+
type: Object,
|
|
52
|
+
default: () => {},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
data() {
|
|
56
|
+
return {
|
|
57
|
+
univerInstance: null,
|
|
58
|
+
univerAPIInstance: null,
|
|
59
|
+
workbook: null,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
mounted() {
|
|
63
|
+
this.init();
|
|
64
|
+
},
|
|
65
|
+
beforeUnmount() {
|
|
66
|
+
this.univerInstance?.dispose();
|
|
67
|
+
this.univerAPIInstance?.dispose();
|
|
68
|
+
this.univerInstance = null;
|
|
69
|
+
this.univerAPIInstance = null;
|
|
70
|
+
},
|
|
71
|
+
methods: {
|
|
72
|
+
initStyle() {},
|
|
73
|
+
init() {
|
|
74
|
+
// 基础国际化文件
|
|
75
|
+
const localeFiles = [
|
|
76
|
+
sheetsCoreZhCN,
|
|
77
|
+
SheetsSortZhCN,
|
|
78
|
+
UniverPresetSheetsFilterZhCN,
|
|
79
|
+
sheetsConditionalFormattingZhCN,
|
|
80
|
+
sheetsDataValidationZhCN,
|
|
81
|
+
UniverPresetSheetsFindReplaceZhCN,
|
|
82
|
+
sheetsHyperLinkZhCN,
|
|
83
|
+
SheetsCrosshairHighlightZhCN,
|
|
84
|
+
SheetsZenEditorZhCN,
|
|
85
|
+
];
|
|
86
|
+
|
|
87
|
+
// 基础预设
|
|
88
|
+
const presets = [
|
|
89
|
+
UniverSheetsCorePreset({
|
|
90
|
+
container: this.$refs.container,
|
|
91
|
+
menu: {
|
|
92
|
+
"sheet.contextMenu.permission": {
|
|
93
|
+
hidden: true,
|
|
94
|
+
},
|
|
95
|
+
"sheet.command.add-range-protection-from-toolbar": {
|
|
96
|
+
hidden: true,
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
}),
|
|
100
|
+
UniverSheetsFindReplacePreset(),
|
|
101
|
+
UniverSheetsSortPreset(),
|
|
102
|
+
UniverSheetsFilterPreset(),
|
|
103
|
+
UniverSheetsConditionalFormattingPreset(),
|
|
104
|
+
UniverSheetsDataValidationPreset(),
|
|
105
|
+
UniverSheetsFilterPreset(),
|
|
106
|
+
UniverSheetsHyperLinkPreset(),
|
|
107
|
+
];
|
|
108
|
+
|
|
109
|
+
// 根据options.enableImage参数条件性添加图片相关功能
|
|
110
|
+
if (this.options?.enableImage) {
|
|
111
|
+
localeFiles.push(sheetsDrawingZhCN);
|
|
112
|
+
presets.push(UniverSheetsDrawingPreset());
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const { univer, univerAPI } = createUniver({
|
|
116
|
+
locale: LocaleType.ZH_CN,
|
|
117
|
+
locales: {
|
|
118
|
+
[LocaleType.ZH_CN]: mergeLocales(...localeFiles),
|
|
119
|
+
},
|
|
120
|
+
presets,
|
|
121
|
+
plugins: [
|
|
122
|
+
/* [
|
|
123
|
+
UniverWatermarkPlugin,
|
|
124
|
+
{
|
|
125
|
+
textWatermarkSettings: {
|
|
126
|
+
content: "Hello, Univer!",
|
|
127
|
+
fontSize: 16,
|
|
128
|
+
color: "rgb(0,0,0)",
|
|
129
|
+
bold: false,
|
|
130
|
+
italic: false,
|
|
131
|
+
direction: "ltr",
|
|
132
|
+
x: 60,
|
|
133
|
+
y: 36,
|
|
134
|
+
repeat: true,
|
|
135
|
+
spacingX: 200,
|
|
136
|
+
spacingY: 100,
|
|
137
|
+
rotate: 0,
|
|
138
|
+
opacity: 0.15,
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
], */
|
|
142
|
+
UniverSheetsCrosshairHighlightPlugin,
|
|
143
|
+
UniverSheetsZenEditorPlugin,
|
|
144
|
+
],
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
// univerAPI.createWorkbook(WORKBOOK_DATA);
|
|
148
|
+
this.workbook = univerAPI.createWorkbook(this.data);
|
|
149
|
+
|
|
150
|
+
this.univerInstance = univer;
|
|
151
|
+
this.univerAPIInstance = univerAPI;
|
|
152
|
+
|
|
153
|
+
// 获取工作表
|
|
154
|
+
const worksheets = this.workbook.getSheets();
|
|
155
|
+
|
|
156
|
+
this.$nextTick(() => {
|
|
157
|
+
const fWorkbook = univerAPI.getActiveWorkbook();
|
|
158
|
+
const permission = fWorkbook.getWorkbookPermission();
|
|
159
|
+
if (this.readonly) {
|
|
160
|
+
// 设置为只读模式
|
|
161
|
+
permission.setMode("viewer");
|
|
162
|
+
permission.setPoint(univerAPI.Enum.WorkbookPermissionPoint.CopyContent, true);
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
},
|
|
166
|
+
async getValue() {
|
|
167
|
+
const fWorkbook = this.univerAPIInstance.getActiveWorkbook();
|
|
168
|
+
await fWorkbook.endEditingAsync(true);
|
|
169
|
+
const snapshot = fWorkbook.save();
|
|
170
|
+
return snapshot;
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
</script>
|
|
175
|
+
|
|
176
|
+
<template>
|
|
177
|
+
<div id="univer" ref="container" />
|
|
178
|
+
</template>
|
|
179
|
+
|
|
180
|
+
<style scoped>
|
|
181
|
+
#univer {
|
|
182
|
+
height: 100%;
|
|
183
|
+
margin: 0;
|
|
184
|
+
padding: 0;
|
|
185
|
+
}
|
|
186
|
+
::v-deep aside.univer-h-full {
|
|
187
|
+
padding-left: 0;
|
|
188
|
+
padding-right: 0;
|
|
189
|
+
}
|
|
190
|
+
</style>
|
|
191
|
+
<style>
|
|
192
|
+
div[data-radix-popper-content-wrapper],
|
|
193
|
+
.univer-popup.univer-popup-enter-done,
|
|
194
|
+
.univer-menu-submenu,
|
|
195
|
+
[data-u-comp="rect-popup"],
|
|
196
|
+
.univer-grid,
|
|
197
|
+
div[role="tooltip"] {
|
|
198
|
+
z-index: 999999 !important;
|
|
199
|
+
}
|
|
200
|
+
</style>
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-tabs
|
|
2
|
+
<el-tabs
|
|
3
|
+
v-model="activeName"
|
|
4
|
+
class="tab-box tab-morenav"
|
|
5
|
+
@tab-remove="removeTab"
|
|
6
|
+
@tab-click="tabClick"
|
|
7
|
+
ref="tabs"
|
|
8
|
+
>
|
|
3
9
|
<slot name="default"></slot>
|
|
4
|
-
<template v-for="(tab,index) in tabs">
|
|
5
|
-
<slot name="editTab" v-bind="{tab,index,tabs,reloadTabContent}"></slot>
|
|
10
|
+
<template v-for="(tab, index) in tabs">
|
|
11
|
+
<slot name="editTab" v-bind="{ tab, index, tabs, reloadTabContent }"></slot>
|
|
6
12
|
</template>
|
|
7
13
|
</el-tabs>
|
|
8
14
|
</template>
|
|
@@ -13,14 +19,18 @@ export default {
|
|
|
13
19
|
value: String,
|
|
14
20
|
paneKeyName: {
|
|
15
21
|
type: String,
|
|
16
|
-
default: () => "id"
|
|
17
|
-
}
|
|
22
|
+
default: () => "id",
|
|
23
|
+
},
|
|
24
|
+
tabNameEnable: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: () => false,
|
|
27
|
+
},
|
|
18
28
|
},
|
|
19
29
|
data() {
|
|
20
30
|
return {
|
|
21
31
|
activeName: "0",
|
|
22
|
-
tabs: []
|
|
23
|
-
}
|
|
32
|
+
tabs: [],
|
|
33
|
+
};
|
|
24
34
|
},
|
|
25
35
|
watch: {
|
|
26
36
|
value(val) {
|
|
@@ -28,7 +38,7 @@ export default {
|
|
|
28
38
|
},
|
|
29
39
|
activeName(val) {
|
|
30
40
|
this.$emit("input", val);
|
|
31
|
-
}
|
|
41
|
+
},
|
|
32
42
|
},
|
|
33
43
|
created() {
|
|
34
44
|
if (this.value) {
|
|
@@ -36,15 +46,20 @@ export default {
|
|
|
36
46
|
}
|
|
37
47
|
},
|
|
38
48
|
methods: {
|
|
39
|
-
openEditTab(row) {
|
|
49
|
+
openEditTab(row, param, option) {
|
|
40
50
|
let paneKeyName = this.paneKeyName;
|
|
41
|
-
let tab = this.tabs.find(tab => tab.data[paneKeyName] === row[paneKeyName])
|
|
51
|
+
let tab = this.tabs.find((tab) => tab.data[paneKeyName] === row[paneKeyName]);
|
|
52
|
+
let tabParam = option?.tabParam || {};
|
|
53
|
+
let dataId = row ? row[paneKeyName] : null;
|
|
54
|
+
let newTab = {
|
|
55
|
+
data: row,
|
|
56
|
+
showContent: false,
|
|
57
|
+
dataId: dataId,
|
|
58
|
+
param,
|
|
59
|
+
...tabParam,
|
|
60
|
+
};
|
|
42
61
|
if (!tab) {
|
|
43
|
-
tab =
|
|
44
|
-
data: row,
|
|
45
|
-
showContent: false,
|
|
46
|
-
dataId: row[paneKeyName]
|
|
47
|
-
}
|
|
62
|
+
tab = newTab;
|
|
48
63
|
if (this.tabs.length >= 30) {
|
|
49
64
|
this.tabs.splice(0, 1, tab);
|
|
50
65
|
} else {
|
|
@@ -52,23 +67,35 @@ export default {
|
|
|
52
67
|
}
|
|
53
68
|
this.$nextTick(() => {
|
|
54
69
|
let paneName = this.getCurrentPaneName();
|
|
55
|
-
tab.paneName = paneName
|
|
56
|
-
})
|
|
70
|
+
tab.paneName = paneName;
|
|
71
|
+
});
|
|
72
|
+
} else {
|
|
73
|
+
Object.assign(tab, newTab);
|
|
57
74
|
}
|
|
58
|
-
|
|
75
|
+
let tabNameEnable = this.tabNameEnable;
|
|
76
|
+
this.activeName = row ? (tabNameEnable ? tab.tabName : row[paneKeyName] + "") : "";
|
|
59
77
|
tab.showContent = false;
|
|
60
78
|
setTimeout(() => {
|
|
61
79
|
tab.showContent = true;
|
|
62
80
|
}, 200);
|
|
63
81
|
},
|
|
64
82
|
removeTab(targetName) {
|
|
83
|
+
let tabNameEnable = this.tabNameEnable;
|
|
65
84
|
let paneKeyName = this.paneKeyName;
|
|
66
|
-
let tabIndex = this.tabs.findIndex(tab =>
|
|
85
|
+
let tabIndex = this.tabs.findIndex((tab) => {
|
|
86
|
+
if (tabNameEnable) {
|
|
87
|
+
return tab.tabName === targetName;
|
|
88
|
+
} else {
|
|
89
|
+
return tab.data[paneKeyName] + "" === targetName;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
67
92
|
if (this.activeName === targetName) {
|
|
68
93
|
if (tabIndex > 0) {
|
|
69
|
-
this.activeName =
|
|
94
|
+
this.activeName = tabNameEnable
|
|
95
|
+
? tab.tabName
|
|
96
|
+
: this.tabs[tabIndex - 1].data[paneKeyName] + "";
|
|
70
97
|
} else {
|
|
71
|
-
this.activeName =
|
|
98
|
+
this.activeName = "second";
|
|
72
99
|
}
|
|
73
100
|
}
|
|
74
101
|
if (tabIndex !== -1) {
|
|
@@ -81,18 +108,19 @@ export default {
|
|
|
81
108
|
},
|
|
82
109
|
getCurrntPaneTarget() {
|
|
83
110
|
let panes = this.$refs.tabs.panes;
|
|
84
|
-
let target = panes.find(pane => pane.active)
|
|
111
|
+
let target = panes.find((pane) => pane.active);
|
|
85
112
|
return target;
|
|
86
113
|
},
|
|
87
114
|
reloadTabContent(target, param, tab) {
|
|
88
|
-
let updateParam =
|
|
115
|
+
let updateParam =
|
|
116
|
+
param != null && param.updateParam != null ? param.updateParam : {};
|
|
89
117
|
for (let key in updateParam) {
|
|
90
118
|
target.$emit("update:" + key, updateParam[key]);
|
|
91
119
|
}
|
|
92
120
|
|
|
93
121
|
if (!tab) {
|
|
94
122
|
let activeName = this.activeName;
|
|
95
|
-
tab = this.tabs.find(item => item.paneName == activeName)
|
|
123
|
+
tab = this.tabs.find((item) => item.paneName == activeName);
|
|
96
124
|
}
|
|
97
125
|
if (tab) {
|
|
98
126
|
tab.showContent = false;
|
|
@@ -103,10 +131,8 @@ export default {
|
|
|
103
131
|
},
|
|
104
132
|
tabClick(targetName) {
|
|
105
133
|
this.$emit("tabClick", targetName);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
};
|
|
109
137
|
</script>
|
|
110
|
-
<style scoped>
|
|
111
|
-
|
|
112
|
-
</style>
|
|
138
|
+
<style scoped></style>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-button type="primary" class="button-sty" @click="openDialog"
|
|
3
|
+
icon="el-icon-plus">{{ $t1('补充意见') }}
|
|
4
|
+
<el-dialog
|
|
5
|
+
v-if="showDialog"
|
|
6
|
+
:visible.sync="showDialog"
|
|
7
|
+
:modal-append-to-body="false"
|
|
8
|
+
:close-on-click-modal="false"
|
|
9
|
+
:modal="false"
|
|
10
|
+
custom-class="dialog-style wf-dialog"
|
|
11
|
+
:destroy-on-close="true"
|
|
12
|
+
:append-to-body="true"
|
|
13
|
+
v-el-drag-dialog
|
|
14
|
+
v-el-dialog-center
|
|
15
|
+
>
|
|
16
|
+
<template #title>
|
|
17
|
+
<span class="el-dialog__title">{{ $t1('补充意见') }}</span>
|
|
18
|
+
</template>
|
|
19
|
+
<el-form ref="form" :model="formData">
|
|
20
|
+
<div id="containt">
|
|
21
|
+
<table class="table-detail">
|
|
22
|
+
<tbody>
|
|
23
|
+
<tr>
|
|
24
|
+
<th>
|
|
25
|
+
<span class="t">
|
|
26
|
+
{{ $t1('内容') }}
|
|
27
|
+
</span>
|
|
28
|
+
</th>
|
|
29
|
+
<td>
|
|
30
|
+
<el-form-item label="" field="opinion">
|
|
31
|
+
<el-input type="textarea" :rows="8" v-model="formData.opinion"></el-input>
|
|
32
|
+
</el-form-item>
|
|
33
|
+
</td>
|
|
34
|
+
</tr>
|
|
35
|
+
</tbody>
|
|
36
|
+
</table>
|
|
37
|
+
</div>
|
|
38
|
+
</el-form>
|
|
39
|
+
<span slot="footer" class="dialog-footer">
|
|
40
|
+
<el-button type="primary" plain class="button-sty" @click="showDialog=false">
|
|
41
|
+
<i class="el-icon-close el-icon"></i>
|
|
42
|
+
{{ $t2('取 消', 'system.button.cancel2') }}
|
|
43
|
+
</el-button>
|
|
44
|
+
<el-button type="primary" @click="confirmDialog" class="button-sty">
|
|
45
|
+
<i class="el-icon-check el-icon"></i>
|
|
46
|
+
{{ $t2('确 定', 'system.button.confirm2') }}
|
|
47
|
+
</el-button>
|
|
48
|
+
</span>
|
|
49
|
+
</el-dialog>
|
|
50
|
+
</el-button>
|
|
51
|
+
</template>
|
|
52
|
+
<script>
|
|
53
|
+
import mixin from "./mixins/addOpinionButton";
|
|
54
|
+
export default {
|
|
55
|
+
mixins: [mixin],
|
|
56
|
+
}
|
|
57
|
+
</script>
|