cloud-web-corejs 1.0.54-dev.5 → 1.0.54-dev.500
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -3
- package/src/App.vue +29 -33
- package/src/api/user.js +16 -0
- package/src/components/Qrcode/fileParse.vue +0 -1
- package/src/components/Tinymce/index.vue +112 -71
- package/src/components/VabUpload/index.js +49 -1
- package/src/components/VabUpload/index.vue +2 -1
- package/src/components/VabUpload/mixins.js +2 -2
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +209 -119
- package/src/components/advancedSearchDialog/mixins.js +1 -1
- package/src/components/baseAttachment/index.vue +49 -40
- package/src/components/baseAttachment/mixins.js +295 -1
- package/src/components/baseInputExport/index.vue +19 -12
- package/src/components/baseInputExport/mixins.js +389 -1
- package/src/components/baseTabs/mixins.js +166 -1
- package/src/components/errorMsg/mixins.js +6 -5
- package/src/components/excelExport/button.vue +57 -4
- package/src/components/excelExport/exportFieldDialog.vue +211 -0
- package/src/components/excelExport/index.js +44 -1
- package/src/components/excelExport/index.vue +64 -7
- package/src/components/excelExport/mixins.js +967 -1
- package/src/components/excelImport/index.vue +2 -1
- package/src/components/excelImport/mixins.js +2 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +262 -150
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +12 -1
- package/src/components/fileLibrary/fileObjNotifyEdit.vue +192 -0
- package/src/components/fileLibrary/filterDialog.vue +454 -0
- package/src/components/fileLibrary/index.vue +596 -256
- 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 +350 -202
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +33 -26
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
- package/src/components/fileLibrary/mixins/indexMixins.js +250 -106
- 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/onlineTalk/index.vue +327 -5
- package/src/components/onlineTalk/mixins.js +1 -1
- 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 -10
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js +11028 -0
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css +200 -0
- package/src/components/table/tableForm.vue +99 -63
- package/src/components/table/tableFormMixin.js +1 -1
- package/src/components/table/util/index.js +328 -0
- package/src/components/table/vxeFilter/mixin.js +6 -6
- package/src/components/tempStorage/index.vue +76 -55
- package/src/components/tempStorage/tempStorageDialog.vue +179 -54
- package/src/components/vb-tabs/x-tabs.vue +57 -30
- package/src/components/wf/addOpinionButton.vue +57 -0
- package/src/components/wf/content.vue +834 -362
- package/src/components/wf/mixins/addOpinionButton.js +3 -0
- package/src/components/wf/mixins/setCandidateButton.js +6 -0
- package/src/components/wf/mixins/setCandidateDialog.js +2 -1
- package/src/components/wf/mixins/setCandidateDialog2.js +6 -0
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +3 -0
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +3 -0
- package/src/components/wf/setCandidateButton.vue +40 -0
- package/src/components/wf/setCandidateDialog.vue +10 -0
- package/src/components/wf/setCandidateDialog2.vue +105 -0
- package/src/components/wf/wf.js +1 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
- package/src/components/wf/wfStartDialog.vue +66 -42
- package/src/components/wf/wfTaskUserRangeDialog.vue +65 -0
- package/src/components/wf/wfUtil.js +279 -1
- package/src/components/xform/form-designer/designer.js +5 -3
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +419 -0
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -3
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +9 -8
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +83 -49
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +6 -1
- package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +799 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +38 -7
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1759 -8
- package/src/components/xform/form-designer/form-widget/dialog/preformDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +121 -72
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +19 -1
- package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +40 -28
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +18 -7
- package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +14 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +30 -4
- package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +133 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1650 -16
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +646 -379
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +962 -0
- package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +6 -2
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +22 -11
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +90 -0
- package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +7 -2
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +179 -0
- package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +114 -81
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +186 -0
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +44 -27
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +116 -0
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +154 -47
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +26 -6
- package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +24 -9
- package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -0
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +11 -1
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +31 -17
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +7 -2
- package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +99 -0
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +147 -0
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +3 -171
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +260 -58
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +753 -0
- package/src/components/xform/form-designer/indexMixin.js +3 -2
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +956 -156
- package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +537 -302
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +125 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +946 -1042
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1127 -512
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +31 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +64 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/field-gantt/gantt-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +77 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +96 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +44 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +115 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +67 -41
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +33 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +66 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +89 -19
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +19 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +124 -50
- package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +31 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +349 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +10 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +42 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +305 -19
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +372 -50
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +263 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +32 -11
- package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +19 -18
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1653 -869
- package/src/components/xform/form-render/container-item/containerItemMixin.js +12 -11
- package/src/components/xform/form-render/container-item/data-table-item.vue +194 -199
- package/src/components/xform/form-render/container-item/data-table-mixin.js +22 -18
- package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
- package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
- package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
- package/src/components/xform/form-render/container-item/tab-item.vue +62 -25
- package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
- package/src/components/xform/form-render/container-item/table-item.vue +4 -2
- package/src/components/xform/form-render/container-item/table2-cell-item.vue +53 -34
- package/src/components/xform/form-render/container-item/table2-item.vue +141 -88
- package/src/components/xform/form-render/container-item/tree-item.vue +32 -11
- package/src/components/xform/form-render/index.vue +69 -20
- package/src/components/xform/form-render/indexMixin.js +22 -34
- package/src/components/xform/lang/zh-CN.js +27 -4
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +174 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/format.js +21 -30
- package/src/components/xform/utils/formula-util copy 2.js +945 -0
- package/src/components/xform/utils/formula-util copy.js +860 -0
- package/src/components/xform/utils/formula-util.js +970 -0
- package/src/components/xform/utils/util.js +1 -1
- package/src/components/xform/utils/validators.js +1 -5
- package/src/components/xform/utils/vue2js-generator.js +2 -2
- package/src/index.js +210 -190
- package/src/lang/index.js +56 -51
- package/src/lang/locale/en/login.js +20 -0
- package/src/lang/locale/zh/login.js +20 -0
- package/src/layout/components/AppMain.vue +5 -1
- package/src/layout/components/Sidebar/default.vue +1389 -1222
- package/src/layout/components/TagsView/index.vue +37 -12
- package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
- package/src/layout/components/extractedCode/createDialog.vue +92 -0
- package/src/layout/components/extractedCode/queryDialog.vue +96 -0
- package/src/layout/components/extractedCode/viewDialog.vue +193 -0
- package/src/layout/components/notify_message/unreadDialog.vue +2 -0
- package/src/layout/components/watermark/index.vue +83 -0
- package/src/layout/defaultLayout.vue +1 -1
- package/src/layout/index.vue +3 -5
- package/src/mixins/selectDialog/index.js +1 -1
- package/src/mixins/table/index.js +151 -0
- package/src/mixins/tableTree/index.js +1 -1
- package/src/permission.js +1 -18
- package/src/router/modules/customer.js +79 -8
- package/src/store/config/index.js +1 -1
- package/src/store/getters.js +3 -1
- package/src/store/modules/permission.js +1 -1
- package/src/store/modules/settings.js +1 -1
- package/src/store/modules/tagsView.js +1 -14
- package/src/store/modules/user.js +1 -29
- package/src/utils/index.js +2 -3
- package/src/utils/pddLog.js +103 -0
- package/src/utils/pdfUtil.js +71 -0
- package/src/utils/request.js +28 -28
- package/src/utils/vab.js +19 -27
- package/src/views/bd/setting/bd_attach_setting/edit.vue +4 -4
- 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 +105 -0
- 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 -212
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +282 -0
- 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 +12 -0
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
- package/src/views/bd/setting/form_template/wf_list.vue +127 -0
- 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/authDialog.vue +1 -1
- 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 -126
- 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 +235 -116
- 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 -154
- package/src/views/user/company_info/edit.vue +9 -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/file_type/edit.vue +30 -1
- package/src/views/user/file_type/list.vue +28 -0
- 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/groups/edit.vue +2 -0
- package/src/views/user/groups/list.vue +1 -0
- 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 +20 -8
- 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 +167 -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 +39 -13
- package/src/views/user/position/edit.vue +116 -83
- package/src/views/user/position/list.vue +118 -86
- package/src/views/user/project_tag/dialog.vue +9 -4
- package/src/views/user/project_tag/edit.vue +2 -2
- package/src/views/user/project_tag/list.vue +9 -4
- package/src/views/user/push_setting/list.vue +2 -2
- package/src/views/user/request_setting/edit.vue +258 -0
- package/src/views/user/request_setting/list.vue +248 -0
- package/src/views/user/role/authConfig.vue +89 -0
- package/src/views/user/role/dialog.vue +70 -48
- package/src/views/user/role/edit.vue +609 -429
- package/src/views/user/role/list.vue +4 -4
- package/src/views/user/sale_org/dialog.vue +1 -1
- package/src/views/user/sale_org/list.vue +4 -1
- package/src/views/user/system_notice/edit.vue +232 -186
- package/src/views/user/user/dialog.vue +46 -23
- package/src/views/user/user/edit.vue +1059 -1021
- package/src/views/user/user/form_dialog.vue +158 -0
- package/src/views/user/user/form_edit.vue +117 -49
- package/src/views/user/user/form_info.vue +210 -0
- package/src/views/user/user/form_list.vue +1 -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 +138 -5
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -0
- 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,429 +1,609 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="detail-wrap">
|
|
3
|
-
<el-form ref="editForm" :model="role">
|
|
4
|
-
<div class="d-header clearfix">
|
|
5
|
-
<div class="fl">
|
|
6
|
-
<i class="el-icon-info"/>
|
|
7
|
-
{{ dataId ? $t1(
|
|
8
|
-
</div>
|
|
9
|
-
<div class="fr">
|
|
10
|
-
<el-button
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</
|
|
55
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
<div class="
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="detail-wrap">
|
|
3
|
+
<el-form ref="editForm" :model="role">
|
|
4
|
+
<div class="d-header clearfix">
|
|
5
|
+
<div class="fl">
|
|
6
|
+
<i class="el-icon-info" />
|
|
7
|
+
{{ dataId ? $t1("查看用户角色") : $t1("新增用户角色") }}
|
|
8
|
+
</div>
|
|
9
|
+
<div class="fr">
|
|
10
|
+
<el-button
|
|
11
|
+
type="primary"
|
|
12
|
+
plain
|
|
13
|
+
class="button-sty"
|
|
14
|
+
@click="$baseReload()"
|
|
15
|
+
icon="el-icon-refresh-right"
|
|
16
|
+
>
|
|
17
|
+
{{ $t1("重置") }}
|
|
18
|
+
</el-button>
|
|
19
|
+
<el-button
|
|
20
|
+
type="primary"
|
|
21
|
+
class="button-sty"
|
|
22
|
+
icon="el-icon-check"
|
|
23
|
+
@click="saveData"
|
|
24
|
+
>{{ $t1("保存") }}
|
|
25
|
+
</el-button>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<baseTabs>
|
|
29
|
+
<baseTabPane :label="$t1('基本信息')">
|
|
30
|
+
<template #default>
|
|
31
|
+
<table class="table-detail">
|
|
32
|
+
<tbody>
|
|
33
|
+
<tr>
|
|
34
|
+
<th>
|
|
35
|
+
<em class="f-red">*</em>
|
|
36
|
+
{{ $t1("用户角色") }}
|
|
37
|
+
</th>
|
|
38
|
+
<td>
|
|
39
|
+
<el-form-item
|
|
40
|
+
prop="name"
|
|
41
|
+
:rules="[{ required: true, trigger: 'blur' }]"
|
|
42
|
+
v-if="!role.systems"
|
|
43
|
+
>
|
|
44
|
+
<el-input
|
|
45
|
+
type="text"
|
|
46
|
+
autocomplete="off"
|
|
47
|
+
v-model="role.name"
|
|
48
|
+
clearable
|
|
49
|
+
/>
|
|
50
|
+
</el-form-item>
|
|
51
|
+
<template v-else>
|
|
52
|
+
{{ role.name }}
|
|
53
|
+
</template>
|
|
54
|
+
</td>
|
|
55
|
+
<th>{{ $t1("角色编码") }}</th>
|
|
56
|
+
<td>
|
|
57
|
+
<el-form-item
|
|
58
|
+
prop="code"
|
|
59
|
+
:rules="[{ required: false, trigger: 'blur' }]"
|
|
60
|
+
v-if="!dataId"
|
|
61
|
+
>
|
|
62
|
+
<el-input
|
|
63
|
+
type="text"
|
|
64
|
+
autocomplete="off"
|
|
65
|
+
v-model="role.code"
|
|
66
|
+
clearable
|
|
67
|
+
/>
|
|
68
|
+
</el-form-item>
|
|
69
|
+
<template v-else>
|
|
70
|
+
{{ role.code }}
|
|
71
|
+
</template>
|
|
72
|
+
</td>
|
|
73
|
+
<th>{{ $t1("角色描述") }}</th>
|
|
74
|
+
<td>
|
|
75
|
+
<el-form-item
|
|
76
|
+
prop="description"
|
|
77
|
+
:rules="[{ required: false, trigger: 'blur' }]"
|
|
78
|
+
>
|
|
79
|
+
<el-input
|
|
80
|
+
type="text"
|
|
81
|
+
autocomplete="off"
|
|
82
|
+
v-model="role.description"
|
|
83
|
+
clearable
|
|
84
|
+
/>
|
|
85
|
+
</el-form-item>
|
|
86
|
+
</td>
|
|
87
|
+
<th>{{ $t1("是否内置") }}</th>
|
|
88
|
+
<td>
|
|
89
|
+
<template v-if="role.systems">
|
|
90
|
+
{{ $t1("是") }}
|
|
91
|
+
</template>
|
|
92
|
+
<template v-else>
|
|
93
|
+
{{ $t1("否") }}
|
|
94
|
+
</template>
|
|
95
|
+
</td>
|
|
96
|
+
</tr>
|
|
97
|
+
<tr>
|
|
98
|
+
<th>{{ $t1("创建人") }}</th>
|
|
99
|
+
<td>{{ role.createBy }}</td>
|
|
100
|
+
<th>{{ $t1("创建时间") }}</th>
|
|
101
|
+
<td>{{ role.createDate }}</td>
|
|
102
|
+
<th>{{ $t1("更新人") }}</th>
|
|
103
|
+
<td>{{ role.modifyBy }}</td>
|
|
104
|
+
<th>{{ $t1("更新时间") }}</th>
|
|
105
|
+
<td>{{ role.modifyDate }}</td>
|
|
106
|
+
</tr>
|
|
107
|
+
</tbody>
|
|
108
|
+
</table>
|
|
109
|
+
</template>
|
|
110
|
+
</baseTabPane>
|
|
111
|
+
<baseTabPane :label="$t1('菜单信息')">
|
|
112
|
+
<template #default>
|
|
113
|
+
<div class="role-box">
|
|
114
|
+
<div class="item" v-for="item in basicMenus" :key="item.id">
|
|
115
|
+
<div class="t">
|
|
116
|
+
{{ item.menuName }}
|
|
117
|
+
<i
|
|
118
|
+
class="fr"
|
|
119
|
+
@click="$set(item, 'visibleRole', !item.visibleRole)"
|
|
120
|
+
:class="!item.visibleRole ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"
|
|
121
|
+
></i>
|
|
122
|
+
</div>
|
|
123
|
+
<div class="c" :class="{ hide: item.visibleRole }">
|
|
124
|
+
<div v-for="subItem in item.children" :key="subItem.id">
|
|
125
|
+
<div class="c-2nd">
|
|
126
|
+
<el-checkbox
|
|
127
|
+
:label="subItem.menuName"
|
|
128
|
+
v-model="subItem.hasAuth"
|
|
129
|
+
@change="selectAll(subItem)"
|
|
130
|
+
></el-checkbox>
|
|
131
|
+
</div>
|
|
132
|
+
<div class="c-3rd">
|
|
133
|
+
<div
|
|
134
|
+
class="c-item"
|
|
135
|
+
v-for="(thrItem, index3) in subItem.children"
|
|
136
|
+
:key="thrItem.id"
|
|
137
|
+
>
|
|
138
|
+
<div class="name">
|
|
139
|
+
<el-checkbox
|
|
140
|
+
:label="thrItem.menuName"
|
|
141
|
+
v-model="thrItem.hasAuth"
|
|
142
|
+
@change="cancelSelect(subItem, index3)"
|
|
143
|
+
></el-checkbox>
|
|
144
|
+
</div>
|
|
145
|
+
<div class="c-4th">
|
|
146
|
+
<el-checkbox
|
|
147
|
+
v-for="(fourthItem, index4) in thrItem.children"
|
|
148
|
+
:key="fourthItem.id"
|
|
149
|
+
:label="fourthItem.menuName"
|
|
150
|
+
v-model="fourthItem.hasAuth"
|
|
151
|
+
@change="changeBtnSelect(subItem, index3, index4)"
|
|
152
|
+
></el-checkbox>
|
|
153
|
+
<authConfig
|
|
154
|
+
v-if="thrItem.checkPermission"
|
|
155
|
+
:formData="thrItem"
|
|
156
|
+
></authConfig>
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
<authConfig
|
|
160
|
+
v-if="subItem.checkPermission"
|
|
161
|
+
:formData="subItem"
|
|
162
|
+
></authConfig>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
<div class="item">
|
|
168
|
+
<div class="t">
|
|
169
|
+
{{ $t1("首页设置") }}
|
|
170
|
+
<i
|
|
171
|
+
class="fr"
|
|
172
|
+
@click="visibleHome = !visibleHome"
|
|
173
|
+
:class="!visibleHome ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"
|
|
174
|
+
></i>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="c" :class="{ hide: visibleHome }">
|
|
177
|
+
<div>
|
|
178
|
+
<div class="c-3rd">
|
|
179
|
+
<div class="c-item">
|
|
180
|
+
<el-checkbox
|
|
181
|
+
v-for="homeItem in homeMenus"
|
|
182
|
+
:key="homeItem.id"
|
|
183
|
+
:label="homeItem.menuName"
|
|
184
|
+
v-model="homeItem.hasAuth"
|
|
185
|
+
@change="$forceUpdate()"
|
|
186
|
+
></el-checkbox>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
</template>
|
|
194
|
+
</baseTabPane>
|
|
195
|
+
<baseTabPane :label="$t1('移动端菜单信息')">
|
|
196
|
+
<template #default>
|
|
197
|
+
<div class="role-box">
|
|
198
|
+
<div class="item" v-for="(item, index) in allMobileMenus" :key="index">
|
|
199
|
+
<div class="t">
|
|
200
|
+
{{ item.menuName }}
|
|
201
|
+
<i
|
|
202
|
+
class="fr"
|
|
203
|
+
@click="$set(item, 'visibleRole', !item.visibleRole)"
|
|
204
|
+
:class="!item.visibleRole ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"
|
|
205
|
+
></i>
|
|
206
|
+
</div>
|
|
207
|
+
<div class="c" :class="{ hide: item.visibleRole }">
|
|
208
|
+
<div>
|
|
209
|
+
<div class="c-2nd" style="width: 100%">
|
|
210
|
+
<el-checkbox
|
|
211
|
+
v-for="(subItem, index2) in item.children"
|
|
212
|
+
:key="index2"
|
|
213
|
+
:label="subItem.menuName"
|
|
214
|
+
v-model="subItem.hasAuth"
|
|
215
|
+
@change="selectAll(subItem)"
|
|
216
|
+
></el-checkbox>
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
222
|
+
</template>
|
|
223
|
+
</baseTabPane>
|
|
224
|
+
</baseTabs>
|
|
225
|
+
</el-form>
|
|
226
|
+
</div>
|
|
227
|
+
</template>
|
|
228
|
+
|
|
229
|
+
<script>
|
|
230
|
+
import authConfig from "./authConfig.vue";
|
|
231
|
+
export default {
|
|
232
|
+
name: "roleEdit",
|
|
233
|
+
props: ["_dataId"],
|
|
234
|
+
components: {
|
|
235
|
+
authConfig,
|
|
236
|
+
},
|
|
237
|
+
data() {
|
|
238
|
+
return {
|
|
239
|
+
tabIndex: 0,
|
|
240
|
+
isEdit: false,
|
|
241
|
+
dataId: "",
|
|
242
|
+
role: {
|
|
243
|
+
menus: [],
|
|
244
|
+
mobileMenuIds: [],
|
|
245
|
+
menuRolePermDTOs: [],
|
|
246
|
+
menuRolePermOrgDTOs: [],
|
|
247
|
+
},
|
|
248
|
+
allMenus: [],
|
|
249
|
+
allMobileMenus: [],
|
|
250
|
+
showCompanyDialog: false,
|
|
251
|
+
cParam: { selectMulti: false },
|
|
252
|
+
visibleHome: false,
|
|
253
|
+
};
|
|
254
|
+
},
|
|
255
|
+
computed: {
|
|
256
|
+
basicMenus() {
|
|
257
|
+
return this.allMenus.filter((menu) => menu.type != 2);
|
|
258
|
+
},
|
|
259
|
+
homeMenus() {
|
|
260
|
+
return this.allMenus.filter((menu) => menu.type == 2);
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
created() {
|
|
264
|
+
if (this._dataId) this.dataId = this._dataId;
|
|
265
|
+
},
|
|
266
|
+
mounted() {
|
|
267
|
+
var that = this;
|
|
268
|
+
this.getData();
|
|
269
|
+
},
|
|
270
|
+
methods: {
|
|
271
|
+
getData() {
|
|
272
|
+
if (this.dataId) {
|
|
273
|
+
this.isEdit = true;
|
|
274
|
+
this.$commonHttp({
|
|
275
|
+
url: USER_PREFIX + `/role/get`,
|
|
276
|
+
method: `post`,
|
|
277
|
+
data: {
|
|
278
|
+
id: this.dataId,
|
|
279
|
+
},
|
|
280
|
+
isLoading: true,
|
|
281
|
+
modalStrictly: true,
|
|
282
|
+
success: (res) => {
|
|
283
|
+
let role = res.objx || {};
|
|
284
|
+
this.getPermissionData((rows, orgRows) => {
|
|
285
|
+
role.menuRolePermDTOs = rows;
|
|
286
|
+
role.menuRolePermOrgDTOs = orgRows;
|
|
287
|
+
this.role = role;
|
|
288
|
+
this.initMenuData();
|
|
289
|
+
});
|
|
290
|
+
},
|
|
291
|
+
});
|
|
292
|
+
} else {
|
|
293
|
+
this.initMenuData();
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
getPermissionData(callback) {
|
|
297
|
+
this.$http({
|
|
298
|
+
url: USER_PREFIX + `/menu_role_perm/listPerms`,
|
|
299
|
+
method: `post`,
|
|
300
|
+
data: {
|
|
301
|
+
id: this.dataId,
|
|
302
|
+
},
|
|
303
|
+
isLoading: true,
|
|
304
|
+
modalStrictly: true,
|
|
305
|
+
success: (res) => {
|
|
306
|
+
let rows = res.objx || [];
|
|
307
|
+
this.getListPermOrgs((orgRows) => {
|
|
308
|
+
callback(rows, orgRows);
|
|
309
|
+
});
|
|
310
|
+
},
|
|
311
|
+
});
|
|
312
|
+
},
|
|
313
|
+
getListPermOrgs(callback) {
|
|
314
|
+
this.$http({
|
|
315
|
+
url: USER_PREFIX + `/menu_role_perm/listPermOrgs`,
|
|
316
|
+
method: `post`,
|
|
317
|
+
data: {
|
|
318
|
+
id: this.dataId,
|
|
319
|
+
},
|
|
320
|
+
isLoading: true,
|
|
321
|
+
modalStrictly: true,
|
|
322
|
+
success: (res) => {
|
|
323
|
+
let rows = res.objx || [];
|
|
324
|
+
callback(rows);
|
|
325
|
+
},
|
|
326
|
+
});
|
|
327
|
+
},
|
|
328
|
+
saveData() {
|
|
329
|
+
this.$refs.editForm.$baseValidate((valid) => {
|
|
330
|
+
if (valid) {
|
|
331
|
+
this.$baseConfirm(this.$t1("您确定要保存吗?")).then(() => {
|
|
332
|
+
var url = USER_PREFIX + (this.isEdit ? `/role/update` : `/role/save`);
|
|
333
|
+
let formData = this.role;
|
|
334
|
+
formData.menuIds = this.getMenuFormData();
|
|
335
|
+
formData.mobileMenuIds = this.getMobileMenuFormData();
|
|
336
|
+
|
|
337
|
+
//处理权限数据
|
|
338
|
+
this.handleDataBeforeSubmit();
|
|
339
|
+
|
|
340
|
+
this.$http({
|
|
341
|
+
url: url,
|
|
342
|
+
method: `post`,
|
|
343
|
+
data: formData,
|
|
344
|
+
isLoading: true,
|
|
345
|
+
success: (res) => {
|
|
346
|
+
this.$message({
|
|
347
|
+
message: res.content,
|
|
348
|
+
type: "success",
|
|
349
|
+
duration: 500,
|
|
350
|
+
onClose: (t) => {
|
|
351
|
+
if (this.isEdit) {
|
|
352
|
+
this.$baseReload();
|
|
353
|
+
} else {
|
|
354
|
+
this.$baseReload({
|
|
355
|
+
updateParam: {
|
|
356
|
+
_dataId: res.objx,
|
|
357
|
+
},
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
});
|
|
362
|
+
},
|
|
363
|
+
});
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
},
|
|
368
|
+
initMenuData(menus) {
|
|
369
|
+
this.$http({
|
|
370
|
+
url: USER_PREFIX + "/menu/getAll",
|
|
371
|
+
method: "POST",
|
|
372
|
+
isLoading: true,
|
|
373
|
+
modalStrictly: true,
|
|
374
|
+
success: (res) => {
|
|
375
|
+
let menus = res.objx || [];
|
|
376
|
+
this.handleRoles(menus, this.role.menuIds || []);
|
|
377
|
+
this.allMenus = menus;
|
|
378
|
+
},
|
|
379
|
+
});
|
|
380
|
+
this.$http({
|
|
381
|
+
url: USER_PREFIX + "/mobile_menu/getAll",
|
|
382
|
+
method: "POST",
|
|
383
|
+
isLoading: true,
|
|
384
|
+
modalStrictly: true,
|
|
385
|
+
success: (res) => {
|
|
386
|
+
let menus = res.objx || [];
|
|
387
|
+
this.handleMobileRoles(menus, this.role.mobileMenuIds || []);
|
|
388
|
+
this.allMobileMenus = menus;
|
|
389
|
+
},
|
|
390
|
+
});
|
|
391
|
+
},
|
|
392
|
+
selectAll(subItem) {
|
|
393
|
+
//subItem.hasAuth = !subItem.hasAuth;
|
|
394
|
+
let res = subItem.hasAuth;
|
|
395
|
+
if (subItem.children) {
|
|
396
|
+
subItem.children.forEach(function (thrItem) {
|
|
397
|
+
thrItem.hasAuth = res;
|
|
398
|
+
if (thrItem.children) {
|
|
399
|
+
thrItem.children.forEach(function (fourthItem) {
|
|
400
|
+
fourthItem.hasAuth = res;
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
this.$forceUpdate();
|
|
406
|
+
},
|
|
407
|
+
cancelSelect(subItem, index3) {
|
|
408
|
+
let citem = subItem.children[index3];
|
|
409
|
+
// citem.hasAuth = !citem.hasAuth;
|
|
410
|
+
let res = citem.hasAuth;
|
|
411
|
+
let isCheckSubItem = false;
|
|
412
|
+
subItem.children.forEach(function (thrItem) {
|
|
413
|
+
if (thrItem.hasAuth) {
|
|
414
|
+
isCheckSubItem = true;
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
if (citem.type !== 1) {
|
|
418
|
+
subItem.hasAuth = isCheckSubItem;
|
|
419
|
+
} else {
|
|
420
|
+
if (isCheckSubItem) subItem.hasAuth = true;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
if (citem.children) {
|
|
424
|
+
citem.children.forEach(function (fourthItem) {
|
|
425
|
+
fourthItem.hasAuth = res;
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
this.$forceUpdate();
|
|
429
|
+
},
|
|
430
|
+
changeBtnSelect(subItem, index3, index4) {
|
|
431
|
+
let citem = subItem.children[index3].children[index4];
|
|
432
|
+
// citem.hasAuth = !citem.hasAuth;
|
|
433
|
+
let res = citem.hasAuth;
|
|
434
|
+
let isCheckthrItem = false;
|
|
435
|
+
subItem.children[index3].children.forEach(function (fourthItem) {
|
|
436
|
+
if (fourthItem.hasAuth) {
|
|
437
|
+
isCheckthrItem = true;
|
|
438
|
+
}
|
|
439
|
+
});
|
|
440
|
+
|
|
441
|
+
let isCheckSubItem = false;
|
|
442
|
+
subItem.children.forEach(function (thrItem) {
|
|
443
|
+
if (thrItem.hasAuth) {
|
|
444
|
+
isCheckSubItem = true;
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
subItem.hasAuth = isCheckSubItem;
|
|
448
|
+
this.$forceUpdate();
|
|
449
|
+
},
|
|
450
|
+
getMenuFormData(item, menuRolePermDTOs, menuRolePermOrgDTOs) {
|
|
451
|
+
let selectIds = [];
|
|
452
|
+
let menus = this.allMenus;
|
|
453
|
+
menus.forEach(function (item) {
|
|
454
|
+
if (item.type != 2 || item.hasAuth) {
|
|
455
|
+
selectIds.push(item.id);
|
|
456
|
+
}
|
|
457
|
+
if (item.children) {
|
|
458
|
+
item.children.forEach(function (subItem) {
|
|
459
|
+
if (subItem.hasAuth) {
|
|
460
|
+
selectIds.push(subItem.id);
|
|
461
|
+
}
|
|
462
|
+
if (subItem.children) {
|
|
463
|
+
subItem.children.forEach(function (thrItem) {
|
|
464
|
+
if (thrItem.hasAuth) {
|
|
465
|
+
selectIds.push(thrItem.id);
|
|
466
|
+
}
|
|
467
|
+
if (thrItem.children) {
|
|
468
|
+
thrItem.children.forEach(function (fourthItem) {
|
|
469
|
+
if (fourthItem.hasAuth) {
|
|
470
|
+
selectIds.push(fourthItem.id);
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
});
|
|
479
|
+
return selectIds;
|
|
480
|
+
},
|
|
481
|
+
handlePermission(item, menuRolePermDTOs, menuRolePermOrgDTOs) {
|
|
482
|
+
if (item.checkPermission) {
|
|
483
|
+
if (item.permissions) {
|
|
484
|
+
menuRolePermDTOs.push({
|
|
485
|
+
menus: item.id,
|
|
486
|
+
permissions: item.permissions,
|
|
487
|
+
});
|
|
488
|
+
|
|
489
|
+
if (item.permissions === 2 && item.menuRolePermOrgDTOs.length) {
|
|
490
|
+
menuRolePermOrgDTOs.push(...item.menuRolePermOrgDTOs);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
handleDataBeforeSubmit() {
|
|
496
|
+
let menuRolePermDTOs = [];
|
|
497
|
+
let menuRolePermOrgDTOs = [];
|
|
498
|
+
let that = this;
|
|
499
|
+
let menus = this.allMenus;
|
|
500
|
+
menus.forEach(function (item) {
|
|
501
|
+
that.handlePermission(item, menuRolePermDTOs, menuRolePermOrgDTOs);
|
|
502
|
+
if (item.children) {
|
|
503
|
+
item.children.forEach(function (subItem) {
|
|
504
|
+
that.handlePermission(subItem, menuRolePermDTOs, menuRolePermOrgDTOs);
|
|
505
|
+
if (subItem.children) {
|
|
506
|
+
subItem.children.forEach(function (thrItem) {
|
|
507
|
+
that.handlePermission(thrItem, menuRolePermDTOs, menuRolePermOrgDTOs);
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
this.role.menuRolePermDTOs = menuRolePermDTOs;
|
|
514
|
+
this.role.menuRolePermOrgDTOs = menuRolePermOrgDTOs;
|
|
515
|
+
},
|
|
516
|
+
getMobileMenuFormData() {
|
|
517
|
+
let selectIds = [];
|
|
518
|
+
let menus = this.allMobileMenus;
|
|
519
|
+
menus.forEach(function (item) {
|
|
520
|
+
if (item.type != 2 || item.hasAuth) {
|
|
521
|
+
selectIds.push(item.id);
|
|
522
|
+
}
|
|
523
|
+
if (item.children) {
|
|
524
|
+
item.children.forEach(function (subItem) {
|
|
525
|
+
if (subItem.hasAuth) {
|
|
526
|
+
selectIds.push(subItem.id);
|
|
527
|
+
}
|
|
528
|
+
if (subItem.children) {
|
|
529
|
+
subItem.children.forEach(function (thrItem) {
|
|
530
|
+
if (thrItem.hasAuth) {
|
|
531
|
+
selectIds.push(thrItem.id);
|
|
532
|
+
}
|
|
533
|
+
if (thrItem.children) {
|
|
534
|
+
thrItem.children.forEach(function (fourthItem) {
|
|
535
|
+
if (fourthItem.hasAuth) {
|
|
536
|
+
selectIds.push(fourthItem.id);
|
|
537
|
+
}
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
});
|
|
545
|
+
return selectIds;
|
|
546
|
+
},
|
|
547
|
+
handleRoles(rows, menuIds) {
|
|
548
|
+
let menuRolePermDTOs = this.role.menuRolePermDTOs || [];
|
|
549
|
+
let menuRolePermOrgDTOs = this.role.menuRolePermOrgDTOs || [];
|
|
550
|
+
let newRows = [];
|
|
551
|
+
for (let i = 0; i < rows.length; i++) {
|
|
552
|
+
let row = rows[i];
|
|
553
|
+
let permissions = null;
|
|
554
|
+
let permOrgDTOs = [];
|
|
555
|
+
if (row.checkPermission) {
|
|
556
|
+
menuRolePermDTOs.find((item) => {
|
|
557
|
+
if (item.menus == row.id) {
|
|
558
|
+
permissions = item.permissions;
|
|
559
|
+
return true;
|
|
560
|
+
}
|
|
561
|
+
return false;
|
|
562
|
+
});
|
|
563
|
+
|
|
564
|
+
menuRolePermOrgDTOs.forEach((item) => {
|
|
565
|
+
if (item.menus == row.id) {
|
|
566
|
+
permOrgDTOs.push(item);
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
row.permissions = permissions;
|
|
572
|
+
row.menuRolePermOrgDTOs = permOrgDTOs;
|
|
573
|
+
if (menuIds.includes(row.id)) {
|
|
574
|
+
row.hasAuth = true;
|
|
575
|
+
} else {
|
|
576
|
+
row.hasAuth = false;
|
|
577
|
+
}
|
|
578
|
+
newRows.push(row);
|
|
579
|
+
if (row.children) {
|
|
580
|
+
let cRows = this.handleRoles(row.children, menuIds);
|
|
581
|
+
if (cRows) {
|
|
582
|
+
newRows = newRows.concat(cRows);
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
return newRows;
|
|
587
|
+
},
|
|
588
|
+
handleMobileRoles(rows, menuIds) {
|
|
589
|
+
let newRows = [];
|
|
590
|
+
for (let i = 0; i < rows.length; i++) {
|
|
591
|
+
let row = rows[i];
|
|
592
|
+
if (menuIds.includes(row.id)) {
|
|
593
|
+
row.hasAuth = true;
|
|
594
|
+
} else {
|
|
595
|
+
row.hasAuth = false;
|
|
596
|
+
}
|
|
597
|
+
newRows.push(row);
|
|
598
|
+
if (row.children) {
|
|
599
|
+
let cRows = this.handleMobileRoles(row.children, menuIds);
|
|
600
|
+
if (cRows) {
|
|
601
|
+
newRows = newRows.concat(cRows);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
return newRows;
|
|
606
|
+
},
|
|
607
|
+
},
|
|
608
|
+
};
|
|
609
|
+
</script>
|