cloud-web-corejs 1.0.54-dev.52 → 1.0.54-dev.521
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 +14 -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/index.js +6 -6
- package/src/components/excelExport/index.vue +56 -2
- package/src/components/excelExport/mixins.js +3 -2
- package/src/components/excelImport/mixins.js +2 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +179 -89
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -0
- package/src/components/fileLibrary/filterDialog.vue +454 -0
- package/src/components/fileLibrary/index.vue +594 -254
- package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +339 -211
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +31 -27
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +4 -4
- package/src/components/fileLibrary/mixins/indexMixins.js +220 -101
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +64 -4
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +3 -3
- package/src/components/fileLibrary/propertiesDialog.vue +113 -74
- package/src/components/fileLibrary/shareDialog.vue +1 -1
- package/src/components/formOplog/mixins.js +1 -1
- package/src/components/jsonImport/index.js +1 -1
- package/src/components/jsonImport/mixins.js +2 -1
- package/src/components/langImport/mixins.js +17 -16
- package/src/components/obsUpload/index.js +1 -0
- package/src/components/obsUpload/index.vue +231 -0
- package/src/components/obsUpload/mixins.js +8 -0
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/scriptTest/mixins.js +1 -1
- package/src/components/statusTag/mixins.js +1 -1
- package/src/components/table/CellSlot.vue +1 -0
- package/src/components/table/index.js +12 -11
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js +11028 -0
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css +200 -0
- package/src/components/table/tableForm.vue +99 -63
- package/src/components/table/tableFormMixin.js +1 -1
- package/src/components/table/util/index.js +328 -0
- package/src/components/table/vxeFilter/mixin.js +6 -6
- package/src/components/tempStorage/index.vue +76 -55
- package/src/components/tempStorage/tempStorageDialog.vue +179 -54
- package/src/components/vb-tabs/x-tabs.vue +56 -30
- package/src/components/wf/addOpinionButton.vue +57 -0
- package/src/components/wf/content.vue +834 -362
- package/src/components/wf/mixins/addOpinionButton.js +3 -0
- package/src/components/wf/mixins/setCandidateButton.js +6 -0
- package/src/components/wf/mixins/setCandidateDialog.js +2 -1
- package/src/components/wf/mixins/setCandidateDialog2.js +6 -0
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +3 -0
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +3 -0
- package/src/components/wf/setCandidateButton.vue +40 -0
- package/src/components/wf/setCandidateDialog.vue +10 -0
- package/src/components/wf/setCandidateDialog2.vue +105 -0
- package/src/components/wf/wf.js +2156 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
- package/src/components/wf/wfStartDialog.vue +66 -42
- package/src/components/wf/wfTaskUserRangeDialog.vue +65 -0
- package/src/components/wf/wfUtil.js +279 -1
- package/src/components/xform/form-designer/designer.js +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 +133 -72
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +19 -1
- package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +40 -28
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +18 -7
- package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +14 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +30 -4
- package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +133 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +25 -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 +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 +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 +977 -169
- package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +537 -302
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +125 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +946 -1042
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1127 -512
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +31 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +64 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/field-gantt/gantt-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +77 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +96 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +44 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +115 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +67 -41
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +33 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +66 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +89 -19
- package/src/components/xform/form-designer/setting-panel/property-editor/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 +33 -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 +1657 -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 +77 -20
- package/src/components/xform/form-render/indexMixin copy.js +3462 -0
- package/src/components/xform/form-render/indexMixin.js +3517 -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 +3 -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.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 +89 -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 -10
- package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
- package/src/views/bd/setting/form_template/mixins/list.js +689 -22
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
- package/src/views/bd/setting/form_template/mixins/wf_list.js +1 -423
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +4 -4
- package/src/views/bd/setting/form_template/wf_list.vue +1 -1
- package/src/views/bd/setting/logic_param/edit.vue +146 -0
- package/src/views/bd/setting/logic_param/edit1.vue +106 -0
- package/src/views/bd/setting/logic_param/edit2.vue +139 -0
- package/src/views/bd/setting/logic_param/list.vue +74 -0
- package/src/views/bd/setting/logic_param/list1.vue +12 -0
- package/src/views/bd/setting/logic_param/list2.vue +12 -0
- package/src/views/bd/setting/logic_param/mixins/edit.js +3 -0
- package/src/views/bd/setting/logic_param/mixins/list.js +9 -0
- package/src/views/bd/setting/menu_kind/list.vue +172 -83
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -7
- package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
- package/src/views/bd/setting/push_data/edit.vue +139 -0
- package/src/views/bd/setting/push_data/list.vue +283 -0
- package/src/views/bd/setting/push_data_h/edit.vue +153 -0
- package/src/views/bd/setting/push_data_h/list.vue +293 -0
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -0
- package/src/views/bd/setting/request_async_setting/list.vue +372 -0
- package/src/views/bd/setting/request_setting/edit.vue +300 -0
- package/src/views/bd/setting/request_setting/list.vue +311 -0
- package/src/views/bd/setting/table_model/edit.vue +875 -426
- package/src/views/bd/setting/table_model/list.vue +190 -128
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit.js +1202 -13
- package/src/views/bd/setting/table_model/mixins/list.js +440 -14
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/user/access_log/list.vue +418 -349
- package/src/views/user/area/dialog.vue +223 -117
- package/src/views/user/area/list.vue +318 -0
- package/src/views/user/bill_setting/edit.vue +1 -1
- package/src/views/user/bill_setting/list.vue +1 -1
- package/src/views/user/common_attribute/itemEdit.vue +2 -2
- package/src/views/user/common_attribute/list.vue +5 -2
- package/src/views/user/common_script/edit.vue +1 -1
- package/src/views/user/common_script/list.vue +1 -1
- package/src/views/user/company_info/dialog.vue +164 -163
- package/src/views/user/company_info/edit.vue +1 -1
- package/src/views/user/extend_datasource/dialog.vue +4 -0
- package/src/views/user/extend_datasource/edit.vue +5 -1
- package/src/views/user/extend_datasource/list.vue +5 -1
- package/src/views/user/fieldTranslation/editDialog.vue +7 -7
- package/src/views/user/fieldTranslation/list.vue +32 -32
- package/src/views/user/form/vform/designer.vue +776 -749
- package/src/views/user/form/vform/out_render.vue +1 -1
- package/src/views/user/form/vform/render.vue +59 -37
- package/src/views/user/form/view/edit.vue +38 -37
- package/src/views/user/form/view/list.vue +261 -49
- package/src/views/user/home/bears/index.vue +1032 -0
- package/src/views/user/home/default.vue +1025 -979
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +16 -6
- package/src/views/user/home/taili/index.vue +1034 -0
- package/src/views/user/ledger_library/list.vue +10 -12
- package/src/views/user/login/default.vue +165 -36
- package/src/views/user/login/index.vue +4 -6
- package/src/views/user/login/indexMixin.js +184 -8
- package/src/views/user/menu/list.vue +24 -1
- package/src/views/user/notify_message/dialog.vue +38 -22
- package/src/views/user/notify_template/edit.vue +188 -187
- package/src/views/user/notify_template/edit2.vue +176 -0
- package/src/views/user/notify_template/list.vue +4 -1
- package/src/views/user/notify_template/list2.vue +190 -0
- package/src/views/user/outLink/form_view.vue +211 -184
- package/src/views/user/outLink/index.vue +67 -11
- package/src/views/user/outLink/view.vue +28 -23
- package/src/views/user/position/list.vue +4 -4
- package/src/views/user/project_tag/dialog.vue +9 -4
- package/src/views/user/project_tag/edit.vue +2 -2
- package/src/views/user/project_tag/list.vue +9 -4
- package/src/views/user/push_setting/list.vue +2 -2
- package/src/views/user/request_setting/edit.vue +258 -0
- package/src/views/user/request_setting/list.vue +248 -0
- package/src/views/user/role/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 +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,16 +1,36 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<span class="button-sty">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
<el-button
|
|
4
|
+
type="success"
|
|
5
|
+
class="btn-connect"
|
|
6
|
+
icon="iconfont icon-zancun"
|
|
7
|
+
@click="openSubmitDialog"
|
|
8
|
+
plain
|
|
9
|
+
:disabled="disabled"
|
|
10
|
+
>
|
|
11
|
+
{{ $t1("暂存") }}
|
|
12
|
+
</el-button>
|
|
13
|
+
<el-tooltip class="item" effect="dark" :content="$t1('查看暂存数据')" placement="top">
|
|
14
|
+
<el-button
|
|
15
|
+
class="btn-connect"
|
|
16
|
+
@click="openTempStorageDialog"
|
|
17
|
+
icon="iconfont icon-chakanshuju"
|
|
18
|
+
type="success"
|
|
19
|
+
:disabled="disabled"
|
|
20
|
+
></el-button>
|
|
21
|
+
</el-tooltip>
|
|
7
22
|
|
|
8
|
-
|
|
9
|
-
|
|
23
|
+
<tempStorageDialog
|
|
24
|
+
v-if="showTempStorageDialog"
|
|
25
|
+
:visiable.sync="showTempStorageDialog"
|
|
26
|
+
@confirm="confirmTempStorageDialog"
|
|
27
|
+
:storageType="storageType"
|
|
28
|
+
multi="false"
|
|
29
|
+
/>
|
|
10
30
|
<el-dialog
|
|
11
31
|
v-if="showSubmitDialog"
|
|
12
32
|
:visible.sync="showSubmitDialog"
|
|
13
|
-
title="暂存"
|
|
33
|
+
:title="$t1('暂存')"
|
|
14
34
|
:modal-append-to-body="false"
|
|
15
35
|
:close-on-click-modal="false"
|
|
16
36
|
:modal="false"
|
|
@@ -18,35 +38,40 @@
|
|
|
18
38
|
v-el-drag-dialog
|
|
19
39
|
v-el-dialog-center
|
|
20
40
|
>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
41
|
+
<el-form>
|
|
42
|
+
<div id="containt">
|
|
43
|
+
<table class="table-detail">
|
|
44
|
+
<tbody>
|
|
25
45
|
<tr>
|
|
26
46
|
<th>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
47
|
+
<span class="t">
|
|
48
|
+
{{ $t1("描述") }}
|
|
49
|
+
</span>
|
|
30
50
|
</th>
|
|
31
51
|
<td>
|
|
32
|
-
|
|
52
|
+
<el-input type="textarea" :rows="8" v-model="remark"></el-input>
|
|
33
53
|
</td>
|
|
34
54
|
</tr>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</
|
|
49
|
-
|
|
55
|
+
</tbody>
|
|
56
|
+
</table>
|
|
57
|
+
</div>
|
|
58
|
+
</el-form>
|
|
59
|
+
<span slot="footer" class="dialog-footer">
|
|
60
|
+
<el-button
|
|
61
|
+
type="primary"
|
|
62
|
+
plain
|
|
63
|
+
class="button-sty"
|
|
64
|
+
@click="showSubmitDialog = false"
|
|
65
|
+
>
|
|
66
|
+
<i class="el-icon-close el-icon"></i>
|
|
67
|
+
{{ $t1("取 消") }}
|
|
68
|
+
</el-button>
|
|
69
|
+
<el-button type="primary" @click="saveData" class="button-sty">
|
|
70
|
+
<i class="el-icon-check el-icon"></i>
|
|
71
|
+
{{ $t1("确 定") }}
|
|
72
|
+
</el-button>
|
|
73
|
+
</span>
|
|
74
|
+
</el-dialog>
|
|
50
75
|
</span>
|
|
51
76
|
</template>
|
|
52
77
|
<script>
|
|
@@ -54,55 +79,54 @@ import tempStorageDialog from "./tempStorageDialog.vue";
|
|
|
54
79
|
|
|
55
80
|
export default {
|
|
56
81
|
props: {
|
|
57
|
-
option: Object
|
|
82
|
+
option: Object,
|
|
83
|
+
disabled: Boolean,
|
|
58
84
|
},
|
|
59
85
|
components: {
|
|
60
|
-
tempStorageDialog
|
|
86
|
+
tempStorageDialog,
|
|
61
87
|
},
|
|
62
88
|
data() {
|
|
63
89
|
return {
|
|
64
90
|
storageType: null,
|
|
65
91
|
showTempStorageDialog: false,
|
|
66
92
|
showSubmitDialog: false,
|
|
67
|
-
remark: null
|
|
93
|
+
remark: null,
|
|
68
94
|
};
|
|
69
95
|
},
|
|
70
|
-
created() {
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
mounted() {
|
|
74
|
-
|
|
75
|
-
},
|
|
96
|
+
created() {},
|
|
97
|
+
mounted() {},
|
|
76
98
|
methods: {
|
|
77
99
|
openSubmitDialog() {
|
|
78
100
|
this.remark = null;
|
|
79
101
|
this.showSubmitDialog = true;
|
|
80
102
|
},
|
|
81
103
|
saveData() {
|
|
82
|
-
let url = USER_PREFIX +
|
|
104
|
+
let url = USER_PREFIX + "/temp_storage/save";
|
|
83
105
|
let billData = this.option.data() || {};
|
|
84
|
-
let data = JSON.stringify(billData)
|
|
85
|
-
|
|
106
|
+
let data = JSON.stringify(billData);
|
|
107
|
+
|
|
108
|
+
let that = this.option.vue || this.$attrs["parent-target"] || this.$parent;
|
|
109
|
+
this.showSubmitDialog = false;
|
|
110
|
+
that.$http({
|
|
86
111
|
url: url,
|
|
87
112
|
method: `post`,
|
|
88
113
|
data: {
|
|
89
114
|
storageType: this.option.storageType,
|
|
90
115
|
data: data,
|
|
91
116
|
remark: this.remark,
|
|
92
|
-
retains:
|
|
117
|
+
retains: this.option.retains || null,
|
|
93
118
|
},
|
|
94
119
|
isLoading: true,
|
|
95
|
-
success: res => {
|
|
120
|
+
success: (res) => {
|
|
96
121
|
this.$message({
|
|
97
122
|
message: res.content,
|
|
98
|
-
type:
|
|
123
|
+
type: "success",
|
|
99
124
|
duration: 500,
|
|
100
|
-
onClose: t => {
|
|
125
|
+
onClose: (t) => {
|
|
101
126
|
this.option.saveConfirm && this.option.saveConfirm(res);
|
|
102
|
-
|
|
103
|
-
}
|
|
127
|
+
},
|
|
104
128
|
});
|
|
105
|
-
}
|
|
129
|
+
},
|
|
106
130
|
});
|
|
107
131
|
},
|
|
108
132
|
openTempStorageDialog() {
|
|
@@ -115,10 +139,7 @@ export default {
|
|
|
115
139
|
this.option.chooseConfirm && this.option.chooseConfirm(billData, rows);
|
|
116
140
|
}
|
|
117
141
|
},
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
142
|
+
},
|
|
143
|
+
};
|
|
121
144
|
</script>
|
|
122
|
-
<style scoped>
|
|
123
|
-
|
|
124
|
-
</style>
|
|
145
|
+
<style scoped></style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-dialog
|
|
3
|
-
title="暂存数据列表"
|
|
3
|
+
:title="$t1('暂存数据列表')"
|
|
4
4
|
:append-to-body="true"
|
|
5
5
|
:modal-append-to-body="true"
|
|
6
6
|
:close-on-click-modal="falseValue"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
v-el-drag-dialog
|
|
13
13
|
v-el-dialog-center
|
|
14
14
|
>
|
|
15
|
-
<div class="cont" style="height:450px">
|
|
15
|
+
<div class="cont" style="height: 450px">
|
|
16
16
|
<vxe-grid
|
|
17
17
|
class="is-pointer"
|
|
18
18
|
ref="table-m1"
|
|
@@ -25,24 +25,46 @@
|
|
|
25
25
|
>
|
|
26
26
|
<template #form>
|
|
27
27
|
<div class="clearfix screen-btns">
|
|
28
|
+
<div class="fl">
|
|
29
|
+
<el-button class="button-sty" icon="el-icon-delete" @click="mulitidDelete"
|
|
30
|
+
>{{ $t1("删除") }}
|
|
31
|
+
</el-button>
|
|
32
|
+
</div>
|
|
28
33
|
<div class="fr">
|
|
29
|
-
<vxe-button
|
|
30
|
-
|
|
34
|
+
<vxe-button
|
|
35
|
+
icon="el-icon-brush"
|
|
36
|
+
class="button-sty"
|
|
37
|
+
@click="resetEvent"
|
|
38
|
+
type="text"
|
|
39
|
+
status="primary"
|
|
40
|
+
plain
|
|
41
|
+
>{{ $t1("重置") }}
|
|
31
42
|
</vxe-button>
|
|
32
|
-
<vxe-button
|
|
43
|
+
<vxe-button
|
|
44
|
+
status="warning"
|
|
45
|
+
icon="el-icon-search"
|
|
46
|
+
class="button-sty"
|
|
47
|
+
@click="searchEvent"
|
|
48
|
+
>{{ $t1("搜索") }}
|
|
33
49
|
</vxe-button>
|
|
34
50
|
</div>
|
|
35
51
|
</div>
|
|
36
|
-
<vxe-form
|
|
37
|
-
|
|
38
|
-
|
|
52
|
+
<vxe-form
|
|
53
|
+
class="screen-box"
|
|
54
|
+
title-width="92px"
|
|
55
|
+
title-align="right"
|
|
56
|
+
:data="formData"
|
|
57
|
+
@submit="searchEvent"
|
|
58
|
+
@reset="resetEvent"
|
|
59
|
+
>
|
|
60
|
+
<vxe-form-item :title="$t1('暂存编码') + ':'" field="storageCode">
|
|
39
61
|
<template v-slot>
|
|
40
|
-
<el-input v-model="formData.storageCode" size="small" clearable/>
|
|
62
|
+
<el-input v-model="formData.storageCode" size="small" clearable />
|
|
41
63
|
</template>
|
|
42
64
|
</vxe-form-item>
|
|
43
|
-
<vxe-form-item title="
|
|
65
|
+
<vxe-form-item :title="$t1('描述') + ':'" field="remark">
|
|
44
66
|
<template v-slot>
|
|
45
|
-
<el-input v-model="formData.remark" size="small" clearable/>
|
|
67
|
+
<el-input v-model="formData.remark" size="small" clearable />
|
|
46
68
|
</template>
|
|
47
69
|
</vxe-form-item>
|
|
48
70
|
<vxe-button type="submit" @click="searchEvent" v-show="false"></vxe-button>
|
|
@@ -57,105 +79,208 @@
|
|
|
57
79
|
</div>
|
|
58
80
|
</label>
|
|
59
81
|
<div class="multipleChoice">
|
|
60
|
-
<el-tooltip
|
|
61
|
-
|
|
82
|
+
<el-tooltip
|
|
83
|
+
:enterable="false"
|
|
84
|
+
effect="dark"
|
|
85
|
+
:content="$t1('全部删除')"
|
|
86
|
+
placement="top"
|
|
87
|
+
><a class="allDel icon-quanbushanchu" @click="clearChecked()"></a
|
|
88
|
+
></el-tooltip>
|
|
62
89
|
<div class="list">
|
|
63
|
-
<div class="item" v-for="(checkRow, index) in checkRows">
|
|
90
|
+
<div class="item" v-for="(checkRow, index) in checkRows" :key="index">
|
|
64
91
|
<p>{{ checkRow.storageCode }}</p>
|
|
65
92
|
<a class="el-icon-close" @click="clearTable1Select(index)"></a>
|
|
66
93
|
</div>
|
|
67
94
|
</div>
|
|
68
95
|
</div>
|
|
69
96
|
<span slot="footer" class="dialog-footer">
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
97
|
+
<span class="fl tips">{{ $t1("注:双击确认选择(单选)") }}</span>
|
|
98
|
+
<el-button type="primary" plain class="button-sty" @click="dialogClose">
|
|
99
|
+
<i class="el-icon-close el-icon"></i>
|
|
100
|
+
{{ $t1("取消") }}
|
|
101
|
+
</el-button>
|
|
102
|
+
<el-button type="primary" @click="dialogPrimary()" class="button-sty">
|
|
103
|
+
<i class="el-icon-check el-icon"></i>
|
|
104
|
+
{{ $t1("确定") }}
|
|
105
|
+
</el-button>
|
|
106
|
+
</span>
|
|
80
107
|
</el-dialog>
|
|
81
108
|
</template>
|
|
82
109
|
|
|
83
110
|
<script>
|
|
84
|
-
import {selectDialogMixins} from
|
|
111
|
+
import { selectDialogMixins } from "../../mixins/selectDialog/index.js";
|
|
85
112
|
|
|
86
113
|
export default {
|
|
87
|
-
name:
|
|
88
|
-
props: [
|
|
114
|
+
name: "positionDialog",
|
|
115
|
+
props: ["visiable", "multi", "rows", "param", "storageType"],
|
|
89
116
|
mixins: [selectDialogMixins],
|
|
90
117
|
created() {
|
|
91
118
|
this.initSetting();
|
|
119
|
+
this.selectMulti = true;
|
|
92
120
|
},
|
|
93
121
|
mounted() {
|
|
94
122
|
this.initTableM1();
|
|
95
123
|
},
|
|
96
124
|
data() {
|
|
97
|
-
var that = this;
|
|
98
125
|
return {
|
|
99
126
|
showDialog: true,
|
|
100
127
|
falseValue: false,
|
|
101
128
|
selectMulti: true,
|
|
102
129
|
formData: {},
|
|
103
|
-
vxeOption: {}
|
|
130
|
+
vxeOption: {},
|
|
104
131
|
};
|
|
105
132
|
},
|
|
106
133
|
methods: {
|
|
107
134
|
initTableM1() {
|
|
108
135
|
let that = this;
|
|
109
|
-
let url = USER_PREFIX +
|
|
136
|
+
let url = USER_PREFIX + "/temp_storage/listPage";
|
|
110
137
|
let tableOption = {
|
|
111
138
|
vue: that,
|
|
112
|
-
tableRef:
|
|
113
|
-
tableName:
|
|
139
|
+
tableRef: "table-m1",
|
|
140
|
+
tableName: "user_temp_storage_dialog-m1",
|
|
114
141
|
path: url,
|
|
115
142
|
param: () => {
|
|
116
143
|
return {
|
|
117
144
|
...this.formData,
|
|
118
|
-
storageType: this.storageType
|
|
119
|
-
}
|
|
145
|
+
storageType: this.storageType,
|
|
146
|
+
};
|
|
120
147
|
},
|
|
121
148
|
columns: [
|
|
122
|
-
{type:
|
|
149
|
+
{ type: "checkbox", fixed: "left", width: 48, resizable: false },
|
|
123
150
|
{
|
|
124
|
-
field:
|
|
125
|
-
title:
|
|
151
|
+
field: "remark",
|
|
152
|
+
title: this.$t1("描述"),
|
|
126
153
|
width: 250,
|
|
127
|
-
fixed:
|
|
154
|
+
fixed: "left",
|
|
128
155
|
},
|
|
129
156
|
{
|
|
130
|
-
field:
|
|
131
|
-
title:
|
|
132
|
-
width: 150
|
|
157
|
+
field: "createDate",
|
|
158
|
+
title: this.$t1("创建时间"),
|
|
159
|
+
width: 150,
|
|
133
160
|
},
|
|
134
161
|
{
|
|
135
|
-
title:
|
|
136
|
-
field:
|
|
137
|
-
width: 300
|
|
162
|
+
title: this.$t1("暂存编码"),
|
|
163
|
+
field: "storageCode",
|
|
164
|
+
width: 300,
|
|
138
165
|
},
|
|
139
|
-
{title:
|
|
166
|
+
{ title: this.$t1("暂存数据"), field: "data", width: 350, visible: false },
|
|
140
167
|
{
|
|
168
|
+
title: this.$t1("操作"),
|
|
141
169
|
width: 47,
|
|
142
|
-
fixed:
|
|
143
|
-
title:
|
|
144
|
-
sortable: false
|
|
145
|
-
|
|
170
|
+
fixed: "right",
|
|
171
|
+
title: "",
|
|
172
|
+
sortable: false,
|
|
173
|
+
slots: {
|
|
174
|
+
default: ({ row, rowIndex, $table }) => {
|
|
175
|
+
return [
|
|
176
|
+
<a
|
|
177
|
+
href="javascript:void(0);"
|
|
178
|
+
class="a-link"
|
|
179
|
+
onclick={(event) => {
|
|
180
|
+
event.stopPropagation();
|
|
181
|
+
this.deleteRow(row);
|
|
182
|
+
}}
|
|
183
|
+
>
|
|
184
|
+
<el-tooltip
|
|
185
|
+
enterable={false}
|
|
186
|
+
effect="dark"
|
|
187
|
+
content={this.$t1("删除")}
|
|
188
|
+
placement="top"
|
|
189
|
+
popper-class="tooltip-skin"
|
|
190
|
+
>
|
|
191
|
+
<i class="el-icon-delete" />
|
|
192
|
+
</el-tooltip>
|
|
193
|
+
</a>,
|
|
194
|
+
];
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
},
|
|
146
198
|
],
|
|
147
199
|
config: {
|
|
148
200
|
checkboxConfig: {
|
|
149
201
|
checkStrictly: true,
|
|
150
202
|
showHeader: this.selectMulti,
|
|
151
|
-
trigger:
|
|
203
|
+
trigger: "row",
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
callback: (rows) => {
|
|
207
|
+
if (!rows.length) return;
|
|
208
|
+
let checkRows = this.checkRows;
|
|
209
|
+
if (checkRows.length) {
|
|
210
|
+
let checkIds = checkRows.map((item) => item.id);
|
|
211
|
+
let items = rows.filter((item) => checkIds.includes(item.id));
|
|
212
|
+
if (items.length) {
|
|
213
|
+
this.$refs["table-m1"].setCheckboxRow(items, true);
|
|
214
|
+
}
|
|
152
215
|
}
|
|
153
|
-
}
|
|
216
|
+
},
|
|
154
217
|
};
|
|
155
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
218
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
|
156
219
|
that.vxeOption = opts;
|
|
157
220
|
});
|
|
158
|
-
}
|
|
159
|
-
|
|
221
|
+
},
|
|
222
|
+
deleteRow(row) {
|
|
223
|
+
this.$baseConfirm(this.$t1("您确定要删除当前暂存数据吗?")).then(() => {
|
|
224
|
+
this.deleteHandle([row]);
|
|
225
|
+
});
|
|
226
|
+
},
|
|
227
|
+
mulitidDelete() {
|
|
228
|
+
let checkRows = this.checkRows;
|
|
229
|
+
if (checkRows.length == 0) {
|
|
230
|
+
this.$message({
|
|
231
|
+
message: this.$t1("请选择要删除的暂存数据"),
|
|
232
|
+
type: "error",
|
|
233
|
+
});
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
this.$baseConfirm(this.$t1("您确定要删除选中的暂存数据吗?")).then(() => {
|
|
237
|
+
this.deleteHandle(checkRows);
|
|
238
|
+
});
|
|
239
|
+
},
|
|
240
|
+
deleteHandle(rows) {
|
|
241
|
+
if (!rows || !rows.length) {
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
let data = rows.map((row) => row.id);
|
|
245
|
+
this.$http({
|
|
246
|
+
url: USER_PREFIX + "/temp_storage/delete",
|
|
247
|
+
method: `post`,
|
|
248
|
+
data: data,
|
|
249
|
+
isLoading: true,
|
|
250
|
+
success: (res) => {
|
|
251
|
+
this.$message({
|
|
252
|
+
message: res.content,
|
|
253
|
+
type: "success",
|
|
254
|
+
});
|
|
255
|
+
this.checkRows = this.checkRows.filter((row) => !data.includes(row.id));
|
|
256
|
+
this.searchEvent();
|
|
257
|
+
},
|
|
258
|
+
});
|
|
259
|
+
},
|
|
260
|
+
checkWithSubmit(obj) {
|
|
261
|
+
let $grid1 = this.$refs["table-m1"];
|
|
262
|
+
this.checkRows = [obj.row];
|
|
263
|
+
$grid1.clearCheckboxRow();
|
|
264
|
+
$grid1.setCheckboxRow(obj.row, true);
|
|
265
|
+
setTimeout(() => {
|
|
266
|
+
this.dialogPrimary();
|
|
267
|
+
}, 100);
|
|
268
|
+
},
|
|
269
|
+
dialogPrimary() {
|
|
270
|
+
let rows = this.checkRows;
|
|
271
|
+
if (rows.length > 1) {
|
|
272
|
+
this.$message({
|
|
273
|
+
message: this.$t1("请选择一条暂存数据进行操作"),
|
|
274
|
+
type: "error",
|
|
275
|
+
});
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
if (this.beforeConfirm && this.beforeConfirm(rows, this.dialogClose) === false) {
|
|
279
|
+
return false;
|
|
280
|
+
}
|
|
281
|
+
this.$emit("confirm", rows);
|
|
282
|
+
this.dialogClose();
|
|
283
|
+
},
|
|
284
|
+
},
|
|
160
285
|
};
|
|
161
286
|
</script>
|
|
@@ -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>
|