cloud-web-corejs 1.0.54-dev.63 → 1.0.54-dev.630
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 -13
- 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 +49 -1
- package/src/components/VabUpload/mixins.js +1822 -2
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +209 -120
- package/src/components/advancedSearchDialog/mixins.js +28 -1
- package/src/components/base-textarea/index.vue +104 -0
- package/src/components/baseAlert/index.js +44 -1
- package/src/components/baseAlert/index.vue +24 -20
- package/src/components/baseAlert/mixins.js +61 -1
- package/src/components/baseAttachment/index.vue +49 -40
- package/src/components/baseAttachment/install.js +21 -5
- package/src/components/baseAttachment/mixins.js +310 -1
- package/src/components/baseInputBatch/mixins.js +58 -1
- package/src/components/baseInputExport/index.vue +21 -14
- package/src/components/baseInputExport/mixins.js +391 -1
- package/src/components/baseTabs/index.vue +16 -8
- package/src/components/baseTabs/mixins.js +166 -1
- package/src/components/cnPrint/index.js +44 -1
- package/src/components/cnPrint/mixins.js +189 -1
- package/src/components/code-editor/index.vue +102 -63
- package/src/components/confirmDialog/index.js +41 -1
- package/src/components/confirmDialog/index.vue +24 -17
- package/src/components/confirmDialog/mixins.js +31 -1
- package/src/components/errorMsg/index.js +44 -1
- package/src/components/errorMsg/index.vue +78 -70
- package/src/components/errorMsg/mixins.js +101 -5
- package/src/components/excelExport/button.vue +86 -24
- package/src/components/excelExport/exportFieldDialog.vue +215 -81
- package/src/components/excelExport/index.js +6 -6
- package/src/components/excelExport/index.vue +108 -26
- package/src/components/excelExport/mixins.js +970 -2
- package/src/components/excelImport/index.js +13 -13
- 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 +605 -262
- 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 +85 -4
- package/src/components/hiprint/css/bootstrap.min.css +6 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.eot +0 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.svg +288 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.woff +0 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/src/components/hiprint/hiprint.bundle.js +7 -2
- package/src/components/hiprint/view/design/index.vue +140 -47
- package/src/components/hiprint/view/design/mixins.js +611 -1
- package/src/components/hiprint/view/design/preview.vue +75 -52
- package/src/components/hiprint/view/json-view.vue +31 -31
- package/src/components/jdPrint/index.js +44 -1
- package/src/components/jdPrint/mixins.js +208 -1
- package/src/components/jsonImport/index.js +187 -17
- package/src/components/jsonImport/mixins.js +333 -1
- package/src/components/langImport/index.js +80 -1
- package/src/components/langImport/mixins.js +500 -16
- package/src/components/langTag/mixins/addButton.js +51 -5
- package/src/components/langTag/mixins/deleteButton.js +55 -5
- package/src/components/langTag/mixins/view.js +47 -5
- package/src/components/luckysheet/dialog.vue +159 -0
- package/src/components/luckysheet/export.js +595 -0
- package/src/components/luckysheet/fileUtils.js +147 -0
- package/src/components/luckysheet/index.js +72 -0
- package/src/components/luckysheet/templateJson.js +12078 -0
- package/src/components/luckysheet/view.vue +210 -0
- package/src/components/obsUpload/index.js +34 -0
- package/src/components/obsUpload/index.vue +231 -0
- package/src/components/obsUpload/mixins.js +1476 -0
- package/src/components/onlineTalk/mixins.js +852 -1
- package/src/components/oplogTable/mixins.js +83 -4
- package/src/components/pddPrint/index.js +44 -1
- package/src/components/pddPrint/mixins.js +252 -1
- package/src/components/projectTag/mixins/addButton.js +52 -1
- package/src/components/projectTag/mixins/deleteButton.js +52 -1
- package/src/components/projectTag/mixins/view.js +43 -1
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/scriptDescription/mixins.js +30 -1
- package/src/components/scriptTest/mixins.js +90 -1
- package/src/components/statusTag/mixins.js +66 -1
- package/src/components/table/CellSlot.vue +1 -0
- package/src/components/table/config.js +74 -1
- package/src/components/table/index.js +1156 -11
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js +11028 -0
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css +200 -0
- package/src/components/table/tableForm.vue +99 -63
- package/src/components/table/tableFormMixin.js +285 -1
- package/src/components/table/util/index.js +339 -0
- package/src/components/table/vxeFilter/index.js +154 -1
- package/src/components/table/vxeFilter/mixin.js +308 -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/vipPrint/index.js +44 -1
- package/src/components/vipPrint/mixins.js +268 -1
- package/src/components/wf/addOpinionButton.vue +57 -0
- package/src/components/wf/content.vue +834 -362
- package/src/components/wf/mixins/addOpinionButton.js +53 -0
- package/src/components/wf/mixins/setCandidateButton.js +161 -0
- package/src/components/wf/mixins/setCandidateDialog.js +213 -1
- package/src/components/wf/mixins/setCandidateDialog2.js +252 -0
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +131 -0
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +69 -0
- package/src/components/wf/setCandidateButton.vue +40 -0
- package/src/components/wf/setCandidateDialog.vue +10 -0
- package/src/components/wf/setCandidateDialog2.vue +105 -0
- package/src/components/wf/wf.js +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 +1995 -9
- 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 +1 -1
- 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-pane-widget.vue +3 -2
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +85 -48
- 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 +30 -7
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1762 -9
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +222 -75
- 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 +32 -4
- 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 +13 -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 +86 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +170 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +25 -997
- 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 +40 -10
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +58 -91
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +8 -1
- 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 +55 -28
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +119 -0
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +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 +38 -37
- 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 +191 -66
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +753 -0
- package/src/components/xform/form-designer/form-widget/indexMixin.js +1 -1
- package/src/components/xform/form-designer/indexMixin.js +3 -772
- package/src/components/xform/form-designer/refMixinDesign.js +1 -28
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +981 -172
- 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 +956 -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 +1193 -520
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +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/dropdownFlag-editor.vue +133 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +5 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +23 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/field-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-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 +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +5 -5
- 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 +24 -8
- 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 +126 -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 +1729 -918
- package/src/components/xform/form-render/container-item/containerItemMixin.js +12 -11
- package/src/components/xform/form-render/container-item/data-table-item.vue +206 -198
- package/src/components/xform/form-render/container-item/data-table-mixin.js +3326 -1685
- package/src/components/xform/form-render/container-item/detail-item.vue +72 -48
- 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 +167 -92
- package/src/components/xform/form-render/container-item/tree-item.vue +32 -11
- package/src/components/xform/form-render/dynamicDialogRender.js +1 -1
- package/src/components/xform/form-render/index.vue +77 -20
- package/src/components/xform/form-render/indexMixin.js +3719 -12
- package/src/components/xform/form-render/refMixin.js +3 -3
- package/src/components/xform/lang/zh-CN.js +29 -4
- package/src/components/xform/mixins/defaultHandle.js +367 -2
- package/src/components/xform/mixins/scriptHttp.js +3 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/formHttp.js +162 -0
- package/src/components/xform/utils/format.js +41 -34
- package/src/components/xform/utils/formula-util.js +969 -0
- package/src/components/xform/utils/smart-vue-i18n/index.js +2 -1
- package/src/components/xform/utils/util.js +1475 -1
- package/src/components/xform/utils/validators.js +2 -5
- package/src/components/xform/utils/vue2js-generator.js +2 -2
- package/src/components/xhsPrint/index.js +44 -1
- package/src/components/xhsPrint/mixins.js +269 -1
- package/src/directive/LimitNumber/index.js +125 -1
- package/src/directive/el-dialog-center/index.js +34 -1
- package/src/directive/el-drag-dialog/drag.js +86 -1
- package/src/directive/el-readonly/index.js +15 -1
- package/src/directive/permission/hasPermi.js +34 -1
- package/src/index.js +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 +8 -1
- package/src/layout/components/Sidebar/default.vue +1432 -1222
- package/src/layout/components/Sidebar/index.vue +6 -1
- package/src/layout/components/TagsView/index.vue +43 -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 +103 -0
- package/src/layout/components/extractedCode/viewDialog.vue +207 -0
- package/src/layout/components/langTool.vue +32 -29
- package/src/layout/components/watermark/index.vue +83 -0
- package/src/layout/defaultLayout.vue +17 -9
- package/src/mixins/selectDialog/index.js +266 -1
- package/src/mixins/tableTree/index.js +199 -4
- package/src/mixins/wf/index.js +33 -1
- package/src/permission.js +135 -18
- package/src/resources/js/base/common.js +109 -109
- package/src/router/modules/customer.js +0 -15
- package/src/router/modules/system.js +4 -0
- package/src/store/config/index.js +667 -1
- package/src/store/getters.js +4 -1
- package/src/store/modules/permission.js +46 -41
- package/src/store/modules/settings.js +1 -1
- package/src/store/modules/tagsView.js +5 -8
- package/src/store/modules/user.js +367 -16
- package/src/utils/aes.js +2 -1
- package/src/utils/auth.js +1 -1
- package/src/utils/global.js +1 -1
- package/src/utils/index.js +2 -3
- package/src/utils/keepAlive.js +1 -1
- package/src/utils/pddLog.js +92 -0
- package/src/utils/pdfUtil.js +71 -0
- package/src/utils/request.js +1 -1
- package/src/utils/vab.js +1268 -27
- package/src/utils/validate.js +1 -1
- package/src/utils/wf.js +4 -4
- package/src/views/bd/setting/bd_attach_setting/edit.vue +5 -5
- package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
- package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +84 -1
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +116 -5
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
- package/src/views/bd/setting/bd_company_env/edit.vue +193 -0
- package/src/views/bd/setting/bd_company_env/list.vue +175 -0
- package/src/views/bd/setting/config_manage/list.vue +83 -0
- package/src/views/bd/setting/formVersion/button.vue +55 -0
- package/src/views/bd/setting/formVersion/compareDialog.vue +287 -0
- package/src/views/bd/setting/formVersion/fieldCompare.vue +54 -0
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +400 -0
- package/src/views/bd/setting/formVersion/link.vue +58 -0
- package/src/views/bd/setting/formVersion/preformDialog.vue +86 -0
- package/src/views/bd/setting/formVersion/reverButton.vue +82 -0
- package/src/views/bd/setting/form_import_log/edit.vue +130 -0
- package/src/views/bd/setting/form_import_log/list.vue +211 -0
- package/src/views/bd/setting/form_script/edit.vue +196 -74
- package/src/views/bd/setting/form_script/edit1.vue +410 -187
- package/src/views/bd/setting/form_script/form_list.vue +118 -37
- package/src/views/bd/setting/form_script/list.vue +90 -21
- package/src/views/bd/setting/form_script/list1.vue +200 -118
- package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +265 -7
- package/src/views/bd/setting/form_script/mixins/edit1.js +259 -9
- package/src/views/bd/setting/form_script/mixins/form_list.js +322 -14
- package/src/views/bd/setting/form_script/mixins/list.js +278 -4
- package/src/views/bd/setting/form_script/mixins/list1.js +480 -14
- package/src/views/bd/setting/form_script/mixins/list2.js +10 -1
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
- package/src/views/bd/setting/form_script/mixins/preformDialog.js +34 -1
- package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/edit.vue +355 -184
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -0
- package/src/views/bd/setting/form_template/list.vue +296 -214
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +11 -9
- package/src/views/bd/setting/form_template/mixins/dialog.js +103 -1
- package/src/views/bd/setting/form_template/mixins/edit.js +277 -9
- package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +92 -1
- package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +91 -1
- package/src/views/bd/setting/form_template/mixins/itemEdit.js +104 -1
- package/src/views/bd/setting/form_template/mixins/itemList.js +234 -1
- package/src/views/bd/setting/form_template/mixins/list.js +672 -22
- package/src/views/bd/setting/form_template/mixins/list2.js +411 -0
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
- package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -3
- package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -7
- 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 +161 -127
- package/src/views/bd/setting/logic_param/edit.vue +146 -0
- package/src/views/bd/setting/logic_param/edit1.vue +106 -0
- package/src/views/bd/setting/logic_param/edit2.vue +139 -0
- package/src/views/bd/setting/logic_param/list.vue +74 -0
- package/src/views/bd/setting/logic_param/list1.vue +12 -0
- package/src/views/bd/setting/logic_param/list2.vue +12 -0
- package/src/views/bd/setting/logic_param/mixins/edit.js +93 -0
- package/src/views/bd/setting/logic_param/mixins/list.js +376 -0
- package/src/views/bd/setting/menu_kind/list.vue +172 -83
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -7
- package/src/views/bd/setting/menu_kind/mixins/dialog.js +139 -1
- package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
- package/src/views/bd/setting/push_data/edit.vue +139 -0
- package/src/views/bd/setting/push_data/list.vue +283 -0
- package/src/views/bd/setting/push_data_h/edit.vue +153 -0
- package/src/views/bd/setting/push_data_h/list.vue +293 -0
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -0
- package/src/views/bd/setting/request_async_setting/list.vue +372 -0
- package/src/views/bd/setting/request_setting/edit.vue +300 -0
- package/src/views/bd/setting/request_setting/list.vue +311 -0
- package/src/views/bd/setting/table_model/edit.vue +1073 -426
- package/src/views/bd/setting/table_model/list.vue +213 -128
- package/src/views/bd/setting/table_model/mixins/dialog.js +71 -1
- package/src/views/bd/setting/table_model/mixins/edit.js +1284 -13
- package/src/views/bd/setting/table_model/mixins/list.js +441 -14
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +108 -1
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/utils/index.js +60 -1
- 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 +3 -0
- package/src/views/user/extend_datasource/edit.vue +2 -1
- package/src/views/user/extend_datasource/list.vue +3 -0
- package/src/views/user/fieldTranslation/editDialog.vue +8 -8
- package/src/views/user/fieldTranslation/list.vue +33 -33
- package/src/views/user/form/vform/designer.vue +790 -749
- package/src/views/user/form/vform/out_render.vue +1 -1
- package/src/views/user/form/vform/render.vue +67 -37
- package/src/views/user/form/view/edit.vue +38 -37
- package/src/views/user/form/view/list.vue +270 -49
- 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 +18 -7
- 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 +186 -9
- package/src/views/user/menu/list.vue +27 -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 -211
- package/src/views/user/outLink/index.vue +67 -11
- 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/system_notice/infoDialog.vue +2 -1
- package/src/views/user/user/dialog.vue +46 -23
- package/src/views/user/user/edit.vue +1338 -1021
- package/src/views/user/user/form_dialog.vue +158 -0
- package/src/views/user/user/form_info.vue +210 -0
- package/src/views/user/user/info.vue +253 -140
- package/src/views/user/user/list.vue +652 -563
- package/src/views/user/user/modifyPasswordDialog.vue +64 -53
- package/src/views/user/wf/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
- package/src/views/user/workbench_menu/list.vue +555 -0
- package/src/utils/renderUtils.js +0 -76
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="containt">
|
|
3
|
+
<el-tabs v-model="activeName" class="tab-box">
|
|
4
|
+
<el-tab-pane :label="$t1('列表')" name="second">
|
|
5
|
+
<div class="grid-height">
|
|
6
|
+
<vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
7
|
+
@custom="$vxeTableUtil.customHandle">
|
|
8
|
+
<template #form>
|
|
9
|
+
<div class="clearfix screen-btns">
|
|
10
|
+
<div class="fl">
|
|
11
|
+
<vxe-button status="primary" type="text" plain class="button-sty" icon="el-icon-plus" @click="addMenu()">
|
|
12
|
+
{{ $t1('新增一级菜单') }}
|
|
13
|
+
</vxe-button>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="fr">
|
|
16
|
+
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
17
|
+
plain>{{ $t1('重置') }}
|
|
18
|
+
</vxe-button>
|
|
19
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
|
20
|
+
{{ $t1('搜索') }}
|
|
21
|
+
</vxe-button>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
<vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
|
|
25
|
+
@submit="searchEvent">
|
|
26
|
+
<vxe-form-item :title="$t1('菜单名称')+':'" field="menuName">
|
|
27
|
+
<template v-slot>
|
|
28
|
+
<el-input v-model="formData.menuName" size="small" clearable/>
|
|
29
|
+
</template>
|
|
30
|
+
</vxe-form-item>
|
|
31
|
+
<vxe-form-item :title="$t1('菜单编码')+':'" field="menuCode">
|
|
32
|
+
<template v-slot>
|
|
33
|
+
<el-input v-model="formData.menuCode" size="small" clearable/>
|
|
34
|
+
</template>
|
|
35
|
+
</vxe-form-item>
|
|
36
|
+
<vxe-form-item :title="$t1('是否启用')+':'" field="enabled">
|
|
37
|
+
<template v-slot>
|
|
38
|
+
<el-select v-model="formData.enabled" clearable>
|
|
39
|
+
<el-option value="true" :label="$t1('启用')"></el-option>
|
|
40
|
+
<el-option value="false" :label="$t1('禁用')"></el-option>
|
|
41
|
+
</el-select>
|
|
42
|
+
</template>
|
|
43
|
+
</vxe-form-item>
|
|
44
|
+
</vxe-form>
|
|
45
|
+
</template>
|
|
46
|
+
<template #menuImgEdit="{row,rowIndex}">
|
|
47
|
+
<el-popover
|
|
48
|
+
placement="bottom"
|
|
49
|
+
width="680"
|
|
50
|
+
trigger="click"
|
|
51
|
+
:ref="'menuImg'+rowIndex"
|
|
52
|
+
>
|
|
53
|
+
<div class="icons-box">
|
|
54
|
+
<div class="item iconfont" v-for="(item,index) in iconList" :key="index"
|
|
55
|
+
:class="[item,row.menuImg === item ? 'on':'']" @click="checkMenuImg(row,item,rowIndex)"></div>
|
|
56
|
+
</div>
|
|
57
|
+
<label class="icons-box_select" :class="{noNone:(!!row.menuImg)}" slot="reference">
|
|
58
|
+
<i :class="row.menuImg" class="iconfont"></i>
|
|
59
|
+
<i class="el-icon-arrow-down"></i>
|
|
60
|
+
<i class="el-icon-circle-close icon-box_del" @click.stop="clearMenuImg(row)"></i>
|
|
61
|
+
</label>
|
|
62
|
+
</el-popover>
|
|
63
|
+
|
|
64
|
+
</template>
|
|
65
|
+
<template #operate="obj">
|
|
66
|
+
<div class="cell-operate">
|
|
67
|
+
<template v-if="$refs['table-m1'].isActiveByRow(obj.row)">
|
|
68
|
+
<a @click="saveRowEvent(obj)" class="a-link">
|
|
69
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('保存')" placement="top"
|
|
70
|
+
popper-class="tooltip-skin"><i class="el-icon-circle-check"></i></el-tooltip>
|
|
71
|
+
</a>
|
|
72
|
+
<a @click="cancleRowEvent(obj)" class="a-link" v-if="hasSaveRow(obj.row)">
|
|
73
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('取消行编辑')" placement="top"
|
|
74
|
+
popper-class="tooltip-skin"><i class="el-icon-circle-close"></i></el-tooltip>
|
|
75
|
+
</a>
|
|
76
|
+
<a @click="removeRowEvent(obj)" class="a-link" v-if="!hasSaveRow(obj.row)">
|
|
77
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('删除')" placement="top"
|
|
78
|
+
popper-class="tooltip-skin"><i class="el-icon-delete"></i></el-tooltip>
|
|
79
|
+
</a>
|
|
80
|
+
</template>
|
|
81
|
+
<template v-else>
|
|
82
|
+
<a class="a-link" @click="addMenu(obj)" v-if="obj.row && !obj.row.parent">
|
|
83
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('新增')" placement="top"
|
|
84
|
+
popper-class="tooltip-skin"><i class="el-icon-circle-plus-outline"></i></el-tooltip>
|
|
85
|
+
</a>
|
|
86
|
+
<a @click="editRowEvent(obj)" class="a-link" v-if="obj.row">
|
|
87
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('行编辑')" placement="top"
|
|
88
|
+
popper-class="tooltip-skin"><i class="el-icon-edit-outline"></i></el-tooltip>
|
|
89
|
+
</a>
|
|
90
|
+
</template>
|
|
91
|
+
</div>
|
|
92
|
+
</template>
|
|
93
|
+
</vxe-grid>
|
|
94
|
+
</div>
|
|
95
|
+
</el-tab-pane>
|
|
96
|
+
</el-tabs>
|
|
97
|
+
</div>
|
|
98
|
+
</template>
|
|
99
|
+
|
|
100
|
+
<script>
|
|
101
|
+
import {tableTreeMixins} from '@base/mixins/tableTree/index.js';
|
|
102
|
+
|
|
103
|
+
export default {
|
|
104
|
+
name: 'workbench_menu:list',
|
|
105
|
+
components: {},
|
|
106
|
+
mixins: [tableTreeMixins],
|
|
107
|
+
mounted() {
|
|
108
|
+
this.initTableList();
|
|
109
|
+
},
|
|
110
|
+
data() {
|
|
111
|
+
let that = this;
|
|
112
|
+
return {
|
|
113
|
+
activeName: 'second',
|
|
114
|
+
dataId: '',
|
|
115
|
+
formData: {},
|
|
116
|
+
vxeOption: {},
|
|
117
|
+
iconList: [
|
|
118
|
+
"icon-shangji-shangjiguanli",
|
|
119
|
+
"icon-daifahuodingdan",
|
|
120
|
+
"icon-jichuziliao",
|
|
121
|
+
"icon-zuzhi",
|
|
122
|
+
"icon-shujujianmo",
|
|
123
|
+
"icon-wenjianguanli",
|
|
124
|
+
"icon-guanli1",
|
|
125
|
+
"icon-dianshang",
|
|
126
|
+
"icon-ziyuan",
|
|
127
|
+
"icon-feiyongguanli",
|
|
128
|
+
"icon-yunpingtai",
|
|
129
|
+
"icon-yingxiao",
|
|
130
|
+
"icon-biaodanguanli",
|
|
131
|
+
"icon-baobiao",
|
|
132
|
+
"icon-yusuanguanli",
|
|
133
|
+
"icon-baoxiao",
|
|
134
|
+
"icon-yanfa",
|
|
135
|
+
"icon-hetong",
|
|
136
|
+
"icon-danjuliuchengshezhi",
|
|
137
|
+
"icon-shenqingguanli",
|
|
138
|
+
"icon-xitongshezhi",
|
|
139
|
+
"icon-icon-servicenetwork",
|
|
140
|
+
"icon-a-zu96",
|
|
141
|
+
"icon-chanpin2",
|
|
142
|
+
"icon-shangpin2",
|
|
143
|
+
"icon-tuihuanhuo1",
|
|
144
|
+
"icon-wenquantiaocha",
|
|
145
|
+
"icon-cangchu",
|
|
146
|
+
"icon-caigou",
|
|
147
|
+
"icon-churuku",
|
|
148
|
+
"icon-fl-gouwuche",
|
|
149
|
+
"icon-shangpinfenlei",
|
|
150
|
+
"icon-shangpinshangxiajia",
|
|
151
|
+
"icon-taocanxinxi_changgui",
|
|
152
|
+
"icon-kehuchaxun",
|
|
153
|
+
"icon-shangpin-canshumoban",
|
|
154
|
+
"icon-shangpinguanli-shangpinweihu",
|
|
155
|
+
"icon-kehubiangeng",
|
|
156
|
+
"icon-shanghuguanxiweihu",
|
|
157
|
+
"icon-kehuxinzeng",
|
|
158
|
+
"icon-dunpaibaowei",
|
|
159
|
+
"icon-a-061_bijiben",
|
|
160
|
+
"icon-a-061_gengduo",
|
|
161
|
+
"icon-a-061_gouwu-12",
|
|
162
|
+
"icon-a-061_jianzhu-17",
|
|
163
|
+
"icon-a-061_shuben",
|
|
164
|
+
"icon-a-061_jinbi",
|
|
165
|
+
"icon-a-061_guangbo",
|
|
166
|
+
"icon-a-061_shuqian",
|
|
167
|
+
"icon-a-061_shangpin",
|
|
168
|
+
"icon-a-061_kuaidi",
|
|
169
|
+
"icon-a-061_wenjian",
|
|
170
|
+
"icon-a-061_xiaoxi",
|
|
171
|
+
"icon-a-rongqi262",
|
|
172
|
+
"icon-a-rongqi256",
|
|
173
|
+
"icon-a-rongqi265",
|
|
174
|
+
"icon-a-rongqi285",
|
|
175
|
+
"icon-huomiao-mianxing",
|
|
176
|
+
"icon-dingwei-mianxing",
|
|
177
|
+
"icon-xiuxian-mianxing",
|
|
178
|
+
"icon-shuju-wenjianliebiao",
|
|
179
|
+
"icon-chexing-pinpailiebiao",
|
|
180
|
+
"icon-yonghu-gongzuodanwei",
|
|
181
|
+
"icon-shujujieguo",
|
|
182
|
+
"icon-gongyingshangguanli",
|
|
183
|
+
"icon-xitong-quanxianguanli",
|
|
184
|
+
"icon-shujuguanli",
|
|
185
|
+
"icon-yonghushenhe",
|
|
186
|
+
"icon-gongyingshangliebiao",
|
|
187
|
+
"icon-xiaoliangliebiao",
|
|
188
|
+
"icon-chexing-ruanjianbanben",
|
|
189
|
+
"icon-xitong-meijuguanli",
|
|
190
|
+
"icon-huiyuan-qiyeguanli",
|
|
191
|
+
"icon-chexing-ruanjianbanben1",
|
|
192
|
+
"icon-shuju-ceshiguihua",
|
|
193
|
+
"icon-yonghuliebiao",
|
|
194
|
+
"icon-yonghuguanli",
|
|
195
|
+
"icon-xitong-jiaoseguanli",
|
|
196
|
+
"icon-chexingliebiao",
|
|
197
|
+
"icon-chexingguanli",
|
|
198
|
+
"icon-shujujiegou",
|
|
199
|
+
"icon-huiyuanyonghu",
|
|
200
|
+
"icon-huiyuan-quanxianguanli",
|
|
201
|
+
"icon-shexiangtouqiehuan",
|
|
202
|
+
"icon-luyin",
|
|
203
|
+
"icon-yingpianjiesuo",
|
|
204
|
+
"icon-yingpianjiasuo",
|
|
205
|
+
"icon-qianlu",
|
|
206
|
+
"icon-luxiangjiasuo",
|
|
207
|
+
"icon-a-yonghuliebiao3x",
|
|
208
|
+
"icon-a-yijianfankui3x",
|
|
209
|
+
"icon-a-chanpinshangjiaguanli3x",
|
|
210
|
+
"icon-a-kefufankui3x",
|
|
211
|
+
"icon-a-zhanghaoguanli3x",
|
|
212
|
+
"icon-a-kefu3x",
|
|
213
|
+
"icon-a-kesu3x",
|
|
214
|
+
"icon-a-ribaobiaoshuju3x",
|
|
215
|
+
"icon-a-tuikuan3x",
|
|
216
|
+
"icon-gudingmianzhi",
|
|
217
|
+
"icon-manjianquan",
|
|
218
|
+
"icon-xiangouhuodong",
|
|
219
|
+
"icon-youhuiquan",
|
|
220
|
+
"icon-Xyuanhuodong",
|
|
221
|
+
"icon-shangpindongcha",
|
|
222
|
+
"icon-zhijianghuodong",
|
|
223
|
+
"icon-shizhongshezhi",
|
|
224
|
+
"icon-kasuceshi",
|
|
225
|
+
"icon-SDkarongliang",
|
|
226
|
+
"icon-sudubuchang",
|
|
227
|
+
"icon-sududanwei",
|
|
228
|
+
"icon-GPSxinxi",
|
|
229
|
+
"icon-GPSxianshi",
|
|
230
|
+
"icon-GPSshuiyin",
|
|
231
|
+
"icon-a-shouhui3x",
|
|
232
|
+
"icon-a-yunyingpeizhi3x",
|
|
233
|
+
"icon-biaotitubiao",
|
|
234
|
+
"icon-tubiao1",
|
|
235
|
+
"icon-tubiao18",
|
|
236
|
+
"icon-tubiao28",
|
|
237
|
+
"icon-tiyugonggongsheshi",
|
|
238
|
+
"icon-tubiaoliebiao",
|
|
239
|
+
"icon-VRtubiao",
|
|
240
|
+
"icon-tubiaoAzitubiao",
|
|
241
|
+
"icon-tubiao2",
|
|
242
|
+
"icon-tubiao-",
|
|
243
|
+
"icon-tubiao-1",
|
|
244
|
+
"icon-tubiao-2",
|
|
245
|
+
"icon-tubiao-3",
|
|
246
|
+
"icon-tubiao3",
|
|
247
|
+
"icon-a-tubiao-daqijiayou",
|
|
248
|
+
"icon-charge-fill",
|
|
249
|
+
"icon-book-fill",
|
|
250
|
+
"icon-device-set-fill",
|
|
251
|
+
"icon-dynamic-password-fill",
|
|
252
|
+
"icon-map-fill",
|
|
253
|
+
"icon-security-fill",
|
|
254
|
+
"icon-tool-fill",
|
|
255
|
+
"icon-readcard-fill",
|
|
256
|
+
"icon-chaye",
|
|
257
|
+
"icon-baoxian",
|
|
258
|
+
"icon-dadou",
|
|
259
|
+
"icon-nongye",
|
|
260
|
+
"icon-nongyeqixiang",
|
|
261
|
+
"icon-pingguo",
|
|
262
|
+
"icon-nongyebaoxian",
|
|
263
|
+
"icon-yaogan",
|
|
264
|
+
"icon-zhiwu",
|
|
265
|
+
"icon-weixing",
|
|
266
|
+
"icon-qixiang",
|
|
267
|
+
"icon-zuowu",
|
|
268
|
+
"icon-qiyeguanli-2",
|
|
269
|
+
"icon-qiyeshenhe-2",
|
|
270
|
+
"icon-xiaoxi",
|
|
271
|
+
"icon-xunhuan",
|
|
272
|
+
"icon-zoushi",
|
|
273
|
+
"icon-bushu",
|
|
274
|
+
"icon-duanlian",
|
|
275
|
+
"icon-gaojing",
|
|
276
|
+
"icon-renyuan",
|
|
277
|
+
"icon-tubiao4",
|
|
278
|
+
"icon-wangguan",
|
|
279
|
+
"icon-wangluo",
|
|
280
|
+
"icon-fenzhi",
|
|
281
|
+
"icon-gongchang",
|
|
282
|
+
"icon-zhihuizhongxin",
|
|
283
|
+
"icon-mti-an-gongmaoqiye",
|
|
284
|
+
"icon-mti-an-zhongdaweixianyuan",
|
|
285
|
+
"icon-mti-cheng-huanjing",
|
|
286
|
+
"icon-mti-cheng-lvhua",
|
|
287
|
+
"icon-mti-di-dimianchenjiang",
|
|
288
|
+
"icon-mti-cheng-fengli",
|
|
289
|
+
"icon-mti-di-qiangzhentai",
|
|
290
|
+
"icon-mti-dong-yinhuan",
|
|
291
|
+
"icon-mti-dong-jiaotongshigu",
|
|
292
|
+
"icon-mti-dong-jianzhugongdi",
|
|
293
|
+
"icon-mti-fang-jiangyuliang",
|
|
294
|
+
"icon-mti-dong-weihuapin",
|
|
295
|
+
"icon-mti-gu-shengtaihuanjing",
|
|
296
|
+
"icon-mti-ying-daochang",
|
|
297
|
+
"icon-mti-sen-shumuziyuanfenbu",
|
|
298
|
+
"icon-mti-gongdi",
|
|
299
|
+
"icon-mti-ying-moshiqiehuan",
|
|
300
|
+
"icon-mti-ying-tongxunbaozhang",
|
|
301
|
+
"icon-mti-ying-qidongyuan",
|
|
302
|
+
"icon-mti-ying-jishuidian",
|
|
303
|
+
"icon-mti-ying-zaihoufupan",
|
|
304
|
+
"icon-wodeshequ2",
|
|
305
|
+
"icon-service-line-1",
|
|
306
|
+
"icon-notice-manage-fill",
|
|
307
|
+
"icon-announcement-fill",
|
|
308
|
+
"icon-box-noise-fill",
|
|
309
|
+
'icon-zhengjiquanxianx',
|
|
310
|
+
'icon-gongshi',
|
|
311
|
+
'icon-gongshi1',
|
|
312
|
+
'icon-shouye-yanfaguanli',
|
|
313
|
+
'icon-yanfaguanli-rizhiguanli',
|
|
314
|
+
'icon-yanfaguanli-xiangmuguanli',
|
|
315
|
+
'icon-yanfaguanli-wendingxing',
|
|
316
|
+
'icon-yanfaguanli-xuqiuguanli',
|
|
317
|
+
'icon-zhengjibeijian',
|
|
318
|
+
'icon-zhengjishiyan',
|
|
319
|
+
'icon-yanfafeiyong',
|
|
320
|
+
'icon-yusuanjisuan',
|
|
321
|
+
'icon-feiyongtongji',
|
|
322
|
+
'icon-gongshiguanli'
|
|
323
|
+
],
|
|
324
|
+
};
|
|
325
|
+
},
|
|
326
|
+
methods: {
|
|
327
|
+
searchEvent() {
|
|
328
|
+
this.$refs['table-m1'].commitProxy('reload');
|
|
329
|
+
},
|
|
330
|
+
resetEvent() {
|
|
331
|
+
this.formData = {};
|
|
332
|
+
this.$refs['table-m1'].commitProxy('reload');
|
|
333
|
+
},
|
|
334
|
+
initTableList() {
|
|
335
|
+
let that = this;
|
|
336
|
+
let tableOption = {
|
|
337
|
+
vue: this,
|
|
338
|
+
tableRef: 'table-m1',
|
|
339
|
+
tableName: 'user_workbench_menu_list-m1',
|
|
340
|
+
path: USER_PREFIX + '/workbench_menu/list',
|
|
341
|
+
treeNodeUrl: USER_PREFIX + '/workbench_menu/listChildren',
|
|
342
|
+
editSaveUrl: USER_PREFIX + '/workbench_menu/save',
|
|
343
|
+
editDefaultRow: () => {
|
|
344
|
+
return {enabled: true};
|
|
345
|
+
},
|
|
346
|
+
param: () => {
|
|
347
|
+
return this.formData;
|
|
348
|
+
},
|
|
349
|
+
treeNodeParam: row => {
|
|
350
|
+
return {
|
|
351
|
+
parent: row.id,
|
|
352
|
+
enabled: this.formData.enabled
|
|
353
|
+
};
|
|
354
|
+
},
|
|
355
|
+
config: {
|
|
356
|
+
treeConfig: {
|
|
357
|
+
parentField: 'parent'
|
|
358
|
+
},
|
|
359
|
+
scrollX:{
|
|
360
|
+
enabled: false
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
columns: [
|
|
364
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
365
|
+
{
|
|
366
|
+
title: this.$t1('菜单名称'),
|
|
367
|
+
field: 'menuName',
|
|
368
|
+
width: 250,
|
|
369
|
+
fixed: 'left',
|
|
370
|
+
treeNode: true,
|
|
371
|
+
editRender: {name: 'input'},
|
|
372
|
+
slots: {
|
|
373
|
+
default: ({row}) => {
|
|
374
|
+
return [
|
|
375
|
+
<a
|
|
376
|
+
class="levitate-tips"
|
|
377
|
+
onclick={event => {
|
|
378
|
+
event.stopPropagation();
|
|
379
|
+
this.$refs['table-m1'].toggleTreeExpand(row);
|
|
380
|
+
}}
|
|
381
|
+
>
|
|
382
|
+
{row.menuName}
|
|
383
|
+
</a>
|
|
384
|
+
];
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
field: 'menuCode',
|
|
390
|
+
title: this.$t1('菜单编码'),
|
|
391
|
+
width: 250,
|
|
392
|
+
editRender: {},
|
|
393
|
+
slots: {
|
|
394
|
+
edit: ({row}) => {
|
|
395
|
+
return [<el-input v-model={row.menuCode}/>];
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
field: 'enabled',
|
|
401
|
+
title: this.$t1('是否启用'),
|
|
402
|
+
width: 150,
|
|
403
|
+
editRender: {
|
|
404
|
+
name: '$select',
|
|
405
|
+
events: {
|
|
406
|
+
change: () => {
|
|
407
|
+
this.$forceUpdate();
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
options: [
|
|
411
|
+
{
|
|
412
|
+
label: this.$t1('启用'),
|
|
413
|
+
value: true
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
label: this.$t1('禁用'),
|
|
417
|
+
value: false
|
|
418
|
+
}
|
|
419
|
+
]
|
|
420
|
+
},
|
|
421
|
+
slots: {
|
|
422
|
+
default: ({row}) => {
|
|
423
|
+
if (row.enabled) {
|
|
424
|
+
return [<div class="txt-status">{this.$t1('启用')}</div>];
|
|
425
|
+
} else {
|
|
426
|
+
return [<div class="txt-status s-3">{this.$t1('禁用')}</div>];
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
{field: 'orders', title: this.$t1('序号'), width: 100,
|
|
432
|
+
editRender: {},
|
|
433
|
+
slots: {
|
|
434
|
+
edit: ({row}) => {
|
|
435
|
+
if(row.orders===null)row.orders = undefined;
|
|
436
|
+
return [<base-input-number v-model={row.orders}/>];
|
|
437
|
+
}
|
|
438
|
+
}},
|
|
439
|
+
{
|
|
440
|
+
field: 'menuImg',
|
|
441
|
+
title: this.$t1('图标'),
|
|
442
|
+
width: 150,
|
|
443
|
+
editRender: {},
|
|
444
|
+
slots: {
|
|
445
|
+
default: ({row}) => {
|
|
446
|
+
return [
|
|
447
|
+
<i class={"iconfont " + row.menuImg}></i>
|
|
448
|
+
];
|
|
449
|
+
},
|
|
450
|
+
edit: "menuImgEdit"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
field: 'menuImgColor',
|
|
455
|
+
title: this.$t1('图标颜色'),
|
|
456
|
+
width: 150,
|
|
457
|
+
editRender: {},
|
|
458
|
+
slots: {
|
|
459
|
+
default: ({row}) => {
|
|
460
|
+
if(!!row.menuImgColor){
|
|
461
|
+
return [<el-color-picker class="menu-color" v-model={row.menuImgColor} disabled={true} />];
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
edit: ({row}) => {
|
|
465
|
+
return [<el-color-picker v-model={row.menuImgColor}/>];
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
field: 'note',
|
|
471
|
+
title: this.$t1('说明'),
|
|
472
|
+
width: 350,
|
|
473
|
+
editRender: {},
|
|
474
|
+
slots: {
|
|
475
|
+
edit: ({row}) => {
|
|
476
|
+
return [<el-input v-model={row.note}/>];
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
{title: this.$t1('创建时间'), field: 'createDate', width: 150},
|
|
481
|
+
{title: this.$t1('更新时间'), field: 'modifyDate', width: 150},
|
|
482
|
+
{
|
|
483
|
+
width: 100,
|
|
484
|
+
title: '',
|
|
485
|
+
fixed: 'right',
|
|
486
|
+
sortable: false,
|
|
487
|
+
slots: {default: 'operate'}
|
|
488
|
+
}
|
|
489
|
+
]
|
|
490
|
+
};
|
|
491
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
492
|
+
this.vxeOption = opts;
|
|
493
|
+
});
|
|
494
|
+
},
|
|
495
|
+
addMenu(parentParam) {
|
|
496
|
+
if (parentParam) {
|
|
497
|
+
this.insertChildEvent(parentParam);
|
|
498
|
+
} else {
|
|
499
|
+
this.insertTopRow(this.$refs['table-m1']);
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
checkMenuImg(row, menuImg, rowIndex) {
|
|
503
|
+
row.menuImg = menuImg;
|
|
504
|
+
this.$refs['menuImg' + rowIndex].showPopper = false;
|
|
505
|
+
},
|
|
506
|
+
clearMenuImg(row) {
|
|
507
|
+
row.menuImg = null;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
};
|
|
511
|
+
</script>
|
|
512
|
+
<style scoped lang="scss">
|
|
513
|
+
.el-select-dropdown__item .iconfont {
|
|
514
|
+
vertical-align: middle;
|
|
515
|
+
margin-right: 3px;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.icons-box_select {
|
|
519
|
+
.el-icon-circle-close {
|
|
520
|
+
display: none;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.icons-box_select.noNone:hover {
|
|
525
|
+
.el-icon-arrow-down {
|
|
526
|
+
display: none;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.el-icon-circle-close {
|
|
530
|
+
display: inline-block;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
::v-deep .menu-color .el-color-picker__mask{
|
|
534
|
+
background-color: unset;
|
|
535
|
+
cursor: default;
|
|
536
|
+
}
|
|
537
|
+
::v-deep .menu-color .el-color-picker__trigger {
|
|
538
|
+
cursor: default;
|
|
539
|
+
}
|
|
540
|
+
::v-deep .menu-color .el-icon-arrow-down{
|
|
541
|
+
display: none;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
::v-deep .el-color-picker--medium {
|
|
545
|
+
height: 26px;
|
|
546
|
+
}
|
|
547
|
+
::v-deep .el-color-picker--medium .el-color-picker__trigger {
|
|
548
|
+
height: 26px;
|
|
549
|
+
width: 26px;
|
|
550
|
+
}
|
|
551
|
+
::v-deep .el-color-picker--medium .el-color-picker__mask {
|
|
552
|
+
height: 24px;
|
|
553
|
+
width: 24px;
|
|
554
|
+
}
|
|
555
|
+
</style>
|
package/src/utils/renderUtils.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
// utils/renderUtils.js
|
|
2
|
-
|
|
3
|
-
export function isDef(value) {
|
|
4
|
-
return value != null;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export function isString(value) {
|
|
8
|
-
return typeof value === 'string';
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function isNumber(value) {
|
|
12
|
-
return typeof value === 'number';
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// 处理子节点的通用函数
|
|
16
|
-
export function processChildren(children) {
|
|
17
|
-
return Array.isArray(children)
|
|
18
|
-
? children.filter(isDef).map(child => {
|
|
19
|
-
if (isString(child)) return child;
|
|
20
|
-
if (isNumber(child)) return child;
|
|
21
|
-
return processNode(child);
|
|
22
|
-
})
|
|
23
|
-
: [];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// 节点处理核心逻辑
|
|
27
|
-
export function processNode(node) {
|
|
28
|
-
if (node.nodeType === 3) { // 文本节点
|
|
29
|
-
return node.textContent.trim();
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const style = window.getComputedStyle(node);
|
|
33
|
-
if (style.display === 'none') return '';
|
|
34
|
-
|
|
35
|
-
switch (node.tagName.toLowerCase()) {
|
|
36
|
-
case 'input': {
|
|
37
|
-
const type = node.type;
|
|
38
|
-
if (type === 'radio' || type === 'checkbox') {
|
|
39
|
-
if (node.checked &&
|
|
40
|
-
(node.classList.contains('el-radio__original') ||
|
|
41
|
-
node.classList.contains('el-checkbox__original'))) {
|
|
42
|
-
return getParentText(node) || node.value;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return node.value;
|
|
46
|
-
}
|
|
47
|
-
case 'select': {
|
|
48
|
-
return processSelectDropdown(node);
|
|
49
|
-
}
|
|
50
|
-
default: {
|
|
51
|
-
return processGroup(node);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// 辅助函数
|
|
57
|
-
export function getParentText(node, depth = 2) {
|
|
58
|
-
let current = node;
|
|
59
|
-
while (depth-- > 0 && current.parentNode) {
|
|
60
|
-
current = current.parentNode;
|
|
61
|
-
}
|
|
62
|
-
return current.textContent?.trim() || '';
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function processSelectDropdown(ul) {
|
|
66
|
-
return Array.from(ul.children)
|
|
67
|
-
.filter(li => li.classList.contains('selected'))
|
|
68
|
-
.map(li => li.textContent?.trim())
|
|
69
|
-
.join(',');
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function processGroup(groupNode) {
|
|
73
|
-
return Array.from(groupNode.children)
|
|
74
|
-
.flatMap(child => processChildren(child))
|
|
75
|
-
.join('');
|
|
76
|
-
}
|