cloud-web-corejs 1.0.54-dev.35 → 1.0.54-dev.350
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 +8 -3
- package/src/components/Qrcode/fileParse.vue +0 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +218 -120
- package/src/components/advancedSearchDialog/mixins.js +1 -1
- package/src/components/baseAttachment/index.vue +49 -40
- package/src/components/baseAttachment/mixins.js +1 -1
- package/src/components/baseInputExport/mixins.js +386 -1
- package/src/components/errorMsg/mixins.js +94 -5
- package/src/components/excelExport/button.vue +57 -4
- package/src/components/excelExport/exportFieldDialog.vue +16 -6
- package/src/components/excelExport/index.js +7 -5
- package/src/components/excelExport/index.vue +64 -8
- package/src/components/excelExport/mixins.js +3 -2
- package/src/components/excelImport/mixins.js +750 -1
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -0
- package/src/components/fileLibrary/filterDialog.vue +383 -0
- package/src/components/fileLibrary/index.vue +23 -24
- 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 +335 -212
- 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 +69 -26
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
- package/src/components/fileLibrary/propertiesDialog.vue +18 -0
- 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 +333 -1
- package/src/components/langImport/mixins.js +500 -16
- 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/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 +9 -6
- package/src/components/tempStorage/tempStorageDialog.vue +1 -1
- package/src/components/vb-tabs/x-tabs.vue +3 -2
- package/src/components/wf/addOpinionButton.vue +57 -0
- package/src/components/wf/content.vue +833 -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 +131 -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 +95 -0
- package/src/components/wf/wf.js +2117 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
- package/src/components/wf/wfStartDialog.vue +70 -42
- package/src/components/wf/wfTaskUserRangeDialog.vue +65 -0
- package/src/components/wf/wfUtil.js +1 -1
- package/src/components/xform/form-designer/designer.js +1649 -3
- 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 +289 -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/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 +16 -4
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1331 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +26 -7
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
- 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/checkbox-widget.vue +14 -6
- 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 +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +21 -2
- 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 +1615 -16
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +652 -379
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +10 -8
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -0
- 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 +176 -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 +107 -81
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +185 -0
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +108 -0
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +70 -3
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +21 -5
- 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 +17 -5
- 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 +2 -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 +6 -1
- 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 +127 -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 +2 -170
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +259 -58
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +725 -0
- package/src/components/xform/form-designer/indexMixin.js +825 -2
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +927 -159
- package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +376 -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 +126 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1196 -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 +1160 -511
- 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/copyButton-editor.vue +36 -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 +2 -2
- 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-import-button/import-button-editor.vue +32 -9
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +86 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +8 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +91 -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 +30 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +62 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +52 -5
- 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/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 +318 -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 +23 -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 +384 -53
- 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 +30 -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 +1576 -874
- package/src/components/xform/form-render/container-item/containerItemMixin.js +359 -11
- package/src/components/xform/form-render/container-item/data-table-item.vue +89 -42
- package/src/components/xform/form-render/container-item/data-table-mixin.js +2728 -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 +11 -6
- 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/index.vue +4 -1
- package/src/components/xform/form-render/indexMixin.js +3129 -4
- package/src/components/xform/lang/zh-CN.js +20 -3
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +175 -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.js +669 -0
- package/src/components/xform/utils/util.js +1451 -1
- package/src/components/xform/utils/validators.js +1 -5
- package/src/index.js +2 -2
- package/src/layout/components/AppMain.vue +5 -1
- package/src/layout/components/Sidebar/default.vue +50 -6
- package/src/layout/components/TagsView/index.vue +37 -12
- package/src/layout/components/extractedCode/createDialog.vue +92 -0
- package/src/layout/components/extractedCode/queryDialog.vue +96 -0
- package/src/layout/components/extractedCode/viewDialog.vue +193 -0
- package/src/layout/components/watermark/index.vue +83 -0
- package/src/layout/defaultLayout.vue +1 -1
- package/src/mixins/selectDialog/index.js +1 -1
- package/src/mixins/tableTree/index.js +1 -1
- package/src/router/modules/customer.js +61 -8
- package/src/store/config/index.js +1 -532
- 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 -1
- 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 +359 -1
- package/src/utils/vab.js +1113 -27
- package/src/views/bd/setting/bd_attach_setting/edit.vue +5 -5
- package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
- package/src/views/bd/setting/bd_company_env/edit.vue +193 -0
- package/src/views/bd/setting/bd_company_env/list.vue +175 -0
- package/src/views/bd/setting/config_manage/list.vue +66 -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 +1 -1
- package/src/views/bd/setting/form_script/list1.vue +4 -4
- 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 +5 -5
- 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 +140 -75
- package/src/views/bd/setting/form_template/{list2.vue → wf_list.vue} +25 -35
- 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 +122 -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 +358 -0
- package/src/views/bd/setting/menu_kind/list.vue +4 -0
- 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 +4 -4
- 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/area/dialog.vue +21 -9
- 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 +1 -1
- 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 +1 -1
- package/src/views/user/extend_datasource/dialog.vue +1 -0
- package/src/views/user/extend_datasource/edit.vue +3 -0
- package/src/views/user/extend_datasource/list.vue +2 -1
- package/src/views/user/fieldTranslation/editDialog.vue +7 -7
- package/src/views/user/fieldTranslation/list.vue +32 -32
- package/src/views/user/form/vform/designer.vue +775 -749
- package/src/views/user/form/vform/out_render.vue +1 -1
- package/src/views/user/form/vform/render.vue +8 -4
- package/src/views/user/form/view/edit.vue +38 -37
- package/src/views/user/form/view/list.vue +68 -15
- package/src/views/user/groups/edit.vue +2 -0
- package/src/views/user/groups/list.vue +1 -0
- package/src/views/user/home/default.vue +1025 -979
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +16 -6
- package/src/views/user/home/taili/index.vue +1034 -0
- package/src/views/user/login/default.vue +32 -3
- package/src/views/user/login/indexMixin.js +117 -3
- package/src/views/user/notify_message/dialog.vue +39 -18
- 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 +17 -0
- package/src/views/user/outLink/view.vue +28 -23
- package/src/views/user/position/edit.vue +116 -83
- package/src/views/user/position/list.vue +118 -86
- package/src/views/user/project_tag/dialog.vue +9 -4
- package/src/views/user/project_tag/edit.vue +2 -2
- package/src/views/user/project_tag/list.vue +9 -4
- package/src/views/user/push_setting/list.vue +2 -2
- package/src/views/user/request_setting/edit.vue +258 -0
- package/src/views/user/request_setting/list.vue +248 -0
- package/src/views/user/role/dialog.vue +1 -1
- package/src/views/user/role/list.vue +4 -4
- package/src/views/user/sale_org/dialog.vue +1 -1
- package/src/views/user/sale_org/list.vue +4 -1
- package/src/views/user/user/dialog.vue +46 -23
- package/src/views/user/user/edit.vue +1059 -1021
- package/src/views/user/user/form_dialog.vue +158 -0
- package/src/views/user/user/form_edit.vue +9 -0
- 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/wf/wfReport/index.vue +498 -0
- package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
- package/src/views/user/wf/wf_manage/list.vue +371 -249
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +25 -1
- package/src/views/user/wf/wf_obj_config/list.vue +114 -9
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
- package/src/views/user/wf/wf_transfer_setting/edit.vue +229 -0
- package/src/views/user/wf/wf_transfer_setting/list.vue +308 -0
- package/src/views/bd/setting/form_template/mixins/list2.js +0 -12
@@ -1,563 +1,647 @@
|
|
1
|
-
<template>
|
2
|
-
<div id="containt">
|
3
|
-
<el-tabs v-model="activeName" class="tab-box">
|
4
|
-
<el-tab-pane :label="$t1('常规')" name="first">
|
5
|
-
<editView
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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
|
-
export
|
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
|
-
|
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
|
-
width:
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
field:
|
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
|
-
|
430
|
-
{
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
}
|
507
|
-
|
508
|
-
|
509
|
-
}
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
this
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
1
|
+
<template>
|
2
|
+
<div id="containt">
|
3
|
+
<el-tabs v-model="activeName" class="tab-box">
|
4
|
+
<el-tab-pane :label="$t1('常规')" name="first">
|
5
|
+
<editView
|
6
|
+
v-if="showEdit"
|
7
|
+
visible-key="showEdit"
|
8
|
+
:_dataId.sync="dataId"
|
9
|
+
:parent-target="_self"
|
10
|
+
@reload="$reloadHandle"
|
11
|
+
:userType="userType"
|
12
|
+
:flag="flag"
|
13
|
+
></editView>
|
14
|
+
</el-tab-pane>
|
15
|
+
<el-tab-pane :label="$t1('列表')" name="second">
|
16
|
+
<div class="tree-box fl">
|
17
|
+
<div class="tit" @click="clearNodeClick">
|
18
|
+
<b>{{ $t1("机构分类") }}</b>
|
19
|
+
</div>
|
20
|
+
<el-tree
|
21
|
+
:props="defaultProps"
|
22
|
+
:load="loadNode"
|
23
|
+
node-key="id"
|
24
|
+
ref="tree"
|
25
|
+
highlight-current
|
26
|
+
lazy
|
27
|
+
:expand-on-click-node="false"
|
28
|
+
@node-click="handleNodeClick"
|
29
|
+
class="tree-list"
|
30
|
+
icon-class="el-icon-arrow-down"
|
31
|
+
></el-tree>
|
32
|
+
</div>
|
33
|
+
<label id="labBtn">
|
34
|
+
<div class="icon">
|
35
|
+
<i class="el-icon-more"></i>
|
36
|
+
<i class="el-icon-more"></i>
|
37
|
+
</div>
|
38
|
+
</label>
|
39
|
+
<div class="main-right fr" style="padding-left: 6px">
|
40
|
+
<div class="grid-height">
|
41
|
+
<vxe-grid
|
42
|
+
id="table-m1"
|
43
|
+
ref="table-m1"
|
44
|
+
:auto-resize="true"
|
45
|
+
v-bind="vxeOption"
|
46
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
47
|
+
@custom="$vxeTableUtil.customHandle"
|
48
|
+
>
|
49
|
+
<template #form>
|
50
|
+
<tableForm
|
51
|
+
:formData.sync="formData"
|
52
|
+
:advancedFormData.sync="advancedFormData"
|
53
|
+
@searchEvent="searchEvent"
|
54
|
+
@resetEvent="resetEvent"
|
55
|
+
>
|
56
|
+
<template #buttonLeft>
|
57
|
+
<vxe-button
|
58
|
+
status="primary"
|
59
|
+
class="button-sty"
|
60
|
+
icon="el-icon-plus"
|
61
|
+
@click="openEditDialog"
|
62
|
+
>
|
63
|
+
{{ $t1("新增") }}
|
64
|
+
</vxe-button>
|
65
|
+
<base-table-export
|
66
|
+
:option="{ title: $t1('账户导出'), targetRef: 'table-m1' }"
|
67
|
+
:parent-target="_self"
|
68
|
+
/>
|
69
|
+
<vxe-button
|
70
|
+
status="primary"
|
71
|
+
class="button-sty"
|
72
|
+
icon="el-icon-download"
|
73
|
+
@click="importExcel"
|
74
|
+
>
|
75
|
+
{{ $t1("导入") }}
|
76
|
+
</vxe-button>
|
77
|
+
<base-input-export :option="exportOption" :parent-target="_self" />
|
78
|
+
</template>
|
79
|
+
<template #buttonRight>
|
80
|
+
<vxe-button
|
81
|
+
icon="el-icon-brush"
|
82
|
+
class="button-sty"
|
83
|
+
@click="resetEvent"
|
84
|
+
type="text"
|
85
|
+
status="primary"
|
86
|
+
plain
|
87
|
+
>{{ $t1("重置") }}
|
88
|
+
</vxe-button>
|
89
|
+
<vxe-button
|
90
|
+
status="warning"
|
91
|
+
icon="el-icon-search"
|
92
|
+
class="button-sty"
|
93
|
+
@click="searchEvent"
|
94
|
+
>
|
95
|
+
{{ $t1("搜索") }}
|
96
|
+
</vxe-button>
|
97
|
+
</template>
|
98
|
+
</tableForm>
|
99
|
+
</template>
|
100
|
+
</vxe-grid>
|
101
|
+
</div>
|
102
|
+
</div>
|
103
|
+
</el-tab-pane>
|
104
|
+
</el-tabs>
|
105
|
+
</div>
|
106
|
+
</template>
|
107
|
+
|
108
|
+
<script>
|
109
|
+
import editView from "./form_edit.vue";
|
110
|
+
import { treeScollx } from "@base/utils/global.js";
|
111
|
+
import tableForm from "@base/components/table/tableForm";
|
112
|
+
|
113
|
+
export default {
|
114
|
+
name: "user:form_list",
|
115
|
+
props: {
|
116
|
+
userType: {
|
117
|
+
type: Number,
|
118
|
+
},
|
119
|
+
flag: String,
|
120
|
+
},
|
121
|
+
components: {
|
122
|
+
tableForm,
|
123
|
+
editView: () => import("./edit.vue"),
|
124
|
+
},
|
125
|
+
created() {},
|
126
|
+
activated() {
|
127
|
+
// this.initTableList();
|
128
|
+
},
|
129
|
+
async mounted() {
|
130
|
+
treeScollx({ target: this, type: "default" });
|
131
|
+
await this.initOutUserRoleCode();
|
132
|
+
this.getRoleList();
|
133
|
+
this.initTableList();
|
134
|
+
},
|
135
|
+
data() {
|
136
|
+
return {
|
137
|
+
exportOption: {
|
138
|
+
prefix: USER_PREFIX,
|
139
|
+
tableRef: "table-m1",
|
140
|
+
title: this.$t1("用户"),
|
141
|
+
codes: [
|
142
|
+
"USEREXCEL",
|
143
|
+
"USERPDF",
|
144
|
+
"USERPRINT",
|
145
|
+
"USERHIPRINT",
|
146
|
+
"USERJDPRINT",
|
147
|
+
"USERPDDPRINT",
|
148
|
+
"USERVIPPRINT",
|
149
|
+
],
|
150
|
+
onBeforePrint: (done, { etCode, etType }) => {
|
151
|
+
/*etType: 2 菜鸟打印,3 网页打印,6 京东打印*/
|
152
|
+
done();
|
153
|
+
},
|
154
|
+
onAfterPrint: ({ etCode, etType }, close) => {
|
155
|
+
/*etType: 2 菜鸟打印,3 网页打印,6 京东打印*/
|
156
|
+
/*close();//关闭弹框*/
|
157
|
+
},
|
158
|
+
},
|
159
|
+
printOption: {
|
160
|
+
prefix: USER_PREFIX,
|
161
|
+
tableRef: "table-m1",
|
162
|
+
param: {
|
163
|
+
type: "print",
|
164
|
+
code: "USERPRINT",
|
165
|
+
param: "tableDefault",
|
166
|
+
},
|
167
|
+
},
|
168
|
+
showEdit: false,
|
169
|
+
activeName: "second",
|
170
|
+
showUpload: true,
|
171
|
+
uploadSize: 10,
|
172
|
+
value10: "",
|
173
|
+
dataId: "",
|
174
|
+
tp: false,
|
175
|
+
showUserDialog: false,
|
176
|
+
nickName: "dd",
|
177
|
+
formData: { saleOrgName: null, roleCodes: [] },
|
178
|
+
vxeOption: {
|
179
|
+
className: "list-table",
|
180
|
+
},
|
181
|
+
defaultProps: {
|
182
|
+
label: "name", //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
|
183
|
+
children: [],
|
184
|
+
isLeaf: "leaf",
|
185
|
+
},
|
186
|
+
showAdvancedSearch: false,
|
187
|
+
advancedFormData: {},
|
188
|
+
roleList: [],
|
189
|
+
distributorCode: "distributor",
|
190
|
+
outUserCodes: [],
|
191
|
+
};
|
192
|
+
},
|
193
|
+
methods: {
|
194
|
+
searchEvent() {
|
195
|
+
this.$refs["table-m1"].commitProxy("reload");
|
196
|
+
},
|
197
|
+
resetEvent() {
|
198
|
+
this.formData = {};
|
199
|
+
this.advancedFormData = {};
|
200
|
+
this.$refs.tree.setCurrentKey();
|
201
|
+
this.$refs["table-m1"].commitProxy("reload");
|
202
|
+
},
|
203
|
+
openEditDialog(id) {
|
204
|
+
this.dataId = !id || typeof id == "object" ? 0 : id;
|
205
|
+
this.activeName = "first";
|
206
|
+
this.$openEditView("showEdit");
|
207
|
+
},
|
208
|
+
clearNodeClick() {
|
209
|
+
this.formData.saleOrgId = "";
|
210
|
+
this.formData.saleOrgName = "";
|
211
|
+
this.$refs.tree.setCurrentKey();
|
212
|
+
this.searchEvent();
|
213
|
+
},
|
214
|
+
handleNodeClick(data, node, v) {
|
215
|
+
this.$set(this.formData, "saleOrgId", data.id);
|
216
|
+
this.$set(this.formData, "saleOrgName", data.name);
|
217
|
+
this.$forceUpdate();
|
218
|
+
this.searchEvent();
|
219
|
+
},
|
220
|
+
// 异步树叶子节点懒加载逻辑
|
221
|
+
loadNode(node, resolve) {
|
222
|
+
let id = node && node.data && node.data.id ? node.data.id || "" : "";
|
223
|
+
let param = { enabled: true };
|
224
|
+
let url = !id
|
225
|
+
? USER_PREFIX + "/sale_org/getAllList"
|
226
|
+
: USER_PREFIX + "/sale_org/getChildren";
|
227
|
+
this.$http({
|
228
|
+
url: url,
|
229
|
+
method: "post",
|
230
|
+
data: {
|
231
|
+
parent: id,
|
232
|
+
enabled: true,
|
233
|
+
},
|
234
|
+
success: (res) => {
|
235
|
+
res.objx.forEach((value) => {
|
236
|
+
value.leaf = !value.hasChild;
|
237
|
+
});
|
238
|
+
if (node.level === 0) {
|
239
|
+
if (res.objx.length > 0 && res.objx[0].isParent) {
|
240
|
+
this.$nextTick(() => {
|
241
|
+
let nodedata = node.childNodes[0];
|
242
|
+
nodedata.expanded = true;
|
243
|
+
nodedata.loadData();
|
244
|
+
});
|
245
|
+
}
|
246
|
+
}
|
247
|
+
resolve(res.objx);
|
248
|
+
},
|
249
|
+
});
|
250
|
+
},
|
251
|
+
initTableList() {
|
252
|
+
let otherColumns = [];
|
253
|
+
let userType = this.userType;
|
254
|
+
if (userType == 1) {
|
255
|
+
} else if (userType == 2) {
|
256
|
+
otherColumns.push(
|
257
|
+
...[
|
258
|
+
{
|
259
|
+
field: "signatoryName",
|
260
|
+
title: this.$t1("签约人"),
|
261
|
+
width: 150,
|
262
|
+
},
|
263
|
+
{
|
264
|
+
field: "signatoryMobile",
|
265
|
+
title: this.$t1("签约人电话"),
|
266
|
+
width: 150,
|
267
|
+
},
|
268
|
+
]
|
269
|
+
);
|
270
|
+
}
|
271
|
+
let tableOption = {
|
272
|
+
vue: this,
|
273
|
+
tableRef: "table-m1",
|
274
|
+
tableName: "basic_user_list-m11",
|
275
|
+
path: USER_PREFIX + "/user/listAllPage",
|
276
|
+
param: () => {
|
277
|
+
let formData = {
|
278
|
+
...this.formData,
|
279
|
+
...this.advancedFormData,
|
280
|
+
};
|
281
|
+
let outUserCodes = this.outUserCodes;
|
282
|
+
if (this.userType == 1) {
|
283
|
+
//组织用户
|
284
|
+
formData.neRoleCodes = [...outUserCodes];
|
285
|
+
} else if (this.userType == 2) {
|
286
|
+
//外部用户
|
287
|
+
if (!formData.roleCodes || !formData.roleCodes.length) {
|
288
|
+
formData.roleCodes = [...outUserCodes];
|
289
|
+
}
|
290
|
+
}
|
291
|
+
return formData;
|
292
|
+
},
|
293
|
+
columns: [
|
294
|
+
{
|
295
|
+
type: "checkbox",
|
296
|
+
width: 48,
|
297
|
+
resizable: false,
|
298
|
+
fixed: "left",
|
299
|
+
},
|
300
|
+
{
|
301
|
+
title: this.$t1("登录名"),
|
302
|
+
field: "loginAccount",
|
303
|
+
width: 250,
|
304
|
+
fixed: "left",
|
305
|
+
},
|
306
|
+
{
|
307
|
+
field: "nickName",
|
308
|
+
title: this.$t1("姓名"),
|
309
|
+
width: 150,
|
310
|
+
},
|
311
|
+
{
|
312
|
+
field: "mobile",
|
313
|
+
title: this.$t1("手机号"),
|
314
|
+
width: 150,
|
315
|
+
},
|
316
|
+
{
|
317
|
+
width: 150,
|
318
|
+
title: this.$t1("头像"),
|
319
|
+
field: "headPhotoUrl",
|
320
|
+
sortable: false,
|
321
|
+
slots: {
|
322
|
+
default: ({ row, rowIndex }) => {
|
323
|
+
let option = {
|
324
|
+
title: this.$t1("头像"),
|
325
|
+
rows: row.headPhotoUrl,
|
326
|
+
showViewButton: false,
|
327
|
+
};
|
328
|
+
return [<base-attachment option={option} />];
|
329
|
+
},
|
330
|
+
},
|
331
|
+
},
|
332
|
+
{
|
333
|
+
field: "enabled",
|
334
|
+
title: this.$t1("是否启用"),
|
335
|
+
width: 150,
|
336
|
+
slots: {
|
337
|
+
default: ({ row }) => {
|
338
|
+
if (row.enabled) {
|
339
|
+
return [<div class="txt-status">{this.$t1("启用")}</div>];
|
340
|
+
} else {
|
341
|
+
return [<div class="txt-status s-3">{this.$t1("禁用")}</div>];
|
342
|
+
}
|
343
|
+
},
|
344
|
+
},
|
345
|
+
},
|
346
|
+
{
|
347
|
+
field: "roleNames",
|
348
|
+
title: this.$t1("角色"),
|
349
|
+
width: 150,
|
350
|
+
},
|
351
|
+
{
|
352
|
+
field: "saleOrgNames",
|
353
|
+
title: this.$t1("机构"),
|
354
|
+
width: 150,
|
355
|
+
},
|
356
|
+
{
|
357
|
+
field: "positionNames",
|
358
|
+
title: this.$t1("岗位"),
|
359
|
+
width: 150,
|
360
|
+
},
|
361
|
+
{
|
362
|
+
field: "birth",
|
363
|
+
title: this.$t1("出生日期"),
|
364
|
+
width: 150,
|
365
|
+
slots: {
|
366
|
+
default: ({ row }) => {
|
367
|
+
var val = row.birth;
|
368
|
+
if (val) {
|
369
|
+
return val.substring(0, 10);
|
370
|
+
}
|
371
|
+
},
|
372
|
+
},
|
373
|
+
},
|
374
|
+
{
|
375
|
+
field: "zipCode",
|
376
|
+
title: this.$t1("邮编"),
|
377
|
+
width: 150,
|
378
|
+
},
|
379
|
+
{
|
380
|
+
field: "address",
|
381
|
+
title: this.$t1("地址"),
|
382
|
+
width: 150,
|
383
|
+
},
|
384
|
+
{
|
385
|
+
field: "empNo",
|
386
|
+
title: this.$t1("员工编码"),
|
387
|
+
width: 150,
|
388
|
+
},
|
389
|
+
{
|
390
|
+
field: "gender",
|
391
|
+
title: this.$t1("性别"),
|
392
|
+
width: 150,
|
393
|
+
slots: {
|
394
|
+
default: ({ row }) => {
|
395
|
+
var val = row.gender;
|
396
|
+
if (val == 1) {
|
397
|
+
return this.$t1("男");
|
398
|
+
} else if (val == 2) {
|
399
|
+
return this.$t1("女");
|
400
|
+
}
|
401
|
+
},
|
402
|
+
},
|
403
|
+
},
|
404
|
+
{
|
405
|
+
field: "companyNames",
|
406
|
+
title: this.$t1("所属组织"),
|
407
|
+
width: 250,
|
408
|
+
},
|
409
|
+
...otherColumns,
|
410
|
+
{
|
411
|
+
field: "createBy",
|
412
|
+
title: this.$t1("创建人"),
|
413
|
+
width: 150,
|
414
|
+
},
|
415
|
+
{
|
416
|
+
field: "modifyBy",
|
417
|
+
title: this.$t1("更新人"),
|
418
|
+
width: 150,
|
419
|
+
},
|
420
|
+
{
|
421
|
+
field: "modifyDate",
|
422
|
+
title: this.$t1("更新时间"),
|
423
|
+
width: 150,
|
424
|
+
},
|
425
|
+
{
|
426
|
+
field: "createDate",
|
427
|
+
title: this.$t1("创建时间"),
|
428
|
+
width: 150,
|
429
|
+
},
|
430
|
+
{
|
431
|
+
width: 47,
|
432
|
+
fixed: "right",
|
433
|
+
title: "",
|
434
|
+
sortable: false,
|
435
|
+
slots: {
|
436
|
+
default: ({ row }) => {
|
437
|
+
return [
|
438
|
+
<a
|
439
|
+
href="javascript:void(0);"
|
440
|
+
class="a-link"
|
441
|
+
onclick={() => {
|
442
|
+
this.openEditDialog(row.id);
|
443
|
+
}}
|
444
|
+
>
|
445
|
+
<el-tooltip
|
446
|
+
enterable={false}
|
447
|
+
enterable={false}
|
448
|
+
effect="dark"
|
449
|
+
content={this.$t1("查看")}
|
450
|
+
placement="top"
|
451
|
+
popper-class="tooltip-skin"
|
452
|
+
>
|
453
|
+
<i class="el-icon-edit" />
|
454
|
+
</el-tooltip>
|
455
|
+
</a>,
|
456
|
+
];
|
457
|
+
},
|
458
|
+
},
|
459
|
+
},
|
460
|
+
],
|
461
|
+
searchColumns: [
|
462
|
+
{
|
463
|
+
title: this.$t1("机构名称"),
|
464
|
+
field: "saleOrgName",
|
465
|
+
type: "input",
|
466
|
+
common: true,
|
467
|
+
disabled: true,
|
468
|
+
defaultValueEnabled: false,
|
469
|
+
},
|
470
|
+
{
|
471
|
+
title: this.$t1("登录名"),
|
472
|
+
field: "loginAccount",
|
473
|
+
type: "input",
|
474
|
+
common: true,
|
475
|
+
},
|
476
|
+
{ title: this.$t1("姓名"), field: "nickName", type: "input", common: true },
|
477
|
+
{ title: this.$t1("手机号"), field: "mobile", type: "input", common: true },
|
478
|
+
{
|
479
|
+
title: this.$t1("角色"),
|
480
|
+
field: "roleCodes",
|
481
|
+
type: "select",
|
482
|
+
common: true,
|
483
|
+
itemOption: [],
|
484
|
+
multiple: true,
|
485
|
+
syncHandle: () => {
|
486
|
+
return this.getRoleList2();
|
487
|
+
},
|
488
|
+
},
|
489
|
+
/*{
|
490
|
+
title: "词汇", field: "dictSn", type: "select", common: true, itemOption: [], syncHandle: () => {
|
491
|
+
return this.getDict()
|
492
|
+
}
|
493
|
+
},*/
|
494
|
+
{
|
495
|
+
title: this.$t1("登录名(批量)"),
|
496
|
+
field: "loginAccounts",
|
497
|
+
type: "inputBatch",
|
498
|
+
common: false,
|
499
|
+
},
|
500
|
+
{
|
501
|
+
title: this.$t1("性别"),
|
502
|
+
field: "gender",
|
503
|
+
type: "select",
|
504
|
+
common: false,
|
505
|
+
itemOption: [
|
506
|
+
{ label: this.$t1("男"), value: 1 },
|
507
|
+
{ label: this.$t1("女"), value: 2 },
|
508
|
+
],
|
509
|
+
},
|
510
|
+
{ title: this.$t1("邮编"), field: "zipCode", type: "input", common: false },
|
511
|
+
{
|
512
|
+
title: this.$t1("是否启用"),
|
513
|
+
field: "enabled",
|
514
|
+
type: "select",
|
515
|
+
common: false,
|
516
|
+
itemOption: [
|
517
|
+
{ label: this.$t1("启用"), value: true },
|
518
|
+
{ label: this.$t1("禁用"), value: false },
|
519
|
+
],
|
520
|
+
} /*,
|
521
|
+
{title: this.$t1('客户名称'), field: "customerName", type: "input", common: true, slot: "customerName"},
|
522
|
+
{
|
523
|
+
title: this.$t1('日期'),
|
524
|
+
field: "startDate",
|
525
|
+
field2: "endDate",
|
526
|
+
type: "dateRange",
|
527
|
+
common: true,
|
528
|
+
widgetType: "date",
|
529
|
+
valueFormat: "yyyy-MM-dd"
|
530
|
+
},
|
531
|
+
{title: this.$t1('年份'), field: "year", type: "date", common: true, widgetType: "year", valueFormat: "yyyy"},*/,
|
532
|
+
],
|
533
|
+
config: {
|
534
|
+
pagerConfig: {
|
535
|
+
pageSize: 500,
|
536
|
+
},
|
537
|
+
},
|
538
|
+
};
|
539
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
540
|
+
this.vxeOption = opts;
|
541
|
+
});
|
542
|
+
/* this.$nextTick(() => {
|
543
|
+
this.$refs['baseBillExport'].initExportData({
|
544
|
+
target: this,
|
545
|
+
btn: [{ code: 'USEREXCEL', name: '导出Excel(按模版)', type: 0 }, { code: 'USERPDF', name: '导出Pdf(按模版)', type: 1 }, { code: 'USERPRINT', name: '菜鸟打印', type: 2 }],
|
546
|
+
param: item => {
|
547
|
+
let checkRows = this.$refs['table-m1'].getCheckboxRecords(true);
|
548
|
+
if (item.type != 2) {
|
549
|
+
return checkRows.map(row => {
|
550
|
+
return { id: row.id };
|
551
|
+
});
|
552
|
+
} else {
|
553
|
+
let rows = checkRows.map(row => row.id);
|
554
|
+
return rows.length ? { id: rows } : null;
|
555
|
+
}
|
556
|
+
}
|
557
|
+
});
|
558
|
+
}); */
|
559
|
+
},
|
560
|
+
importExcel() {
|
561
|
+
let that = this;
|
562
|
+
that.$excelImport({
|
563
|
+
prefix: USER_PREFIX,
|
564
|
+
excel: USER_PREFIX + "/excelTemplate/user/user.xlsx",
|
565
|
+
multi: true,
|
566
|
+
saveUrl: USER_PREFIX + "/user/batchImport",
|
567
|
+
callback: () => {
|
568
|
+
that.searchEvent();
|
569
|
+
},
|
570
|
+
});
|
571
|
+
},
|
572
|
+
getRoleList2() {
|
573
|
+
return new Promise((resolve, reject) => {
|
574
|
+
this.$http({
|
575
|
+
url: USER_PREFIX + "/role/list",
|
576
|
+
method: "post",
|
577
|
+
success: (res) => {
|
578
|
+
let rows = res.objx || [];
|
579
|
+
let outUserCodes = this.outUserCodes;
|
580
|
+
if (this.userType == 1) {
|
581
|
+
//组织用户
|
582
|
+
rows = rows.filter((row) => !outUserCodes.includes(row.code));
|
583
|
+
} else if (this.userType == 2) {
|
584
|
+
//外部用户
|
585
|
+
rows = rows.filter((row) => outUserCodes.includes(row.code));
|
586
|
+
}
|
587
|
+
let result = rows.map((row) => {
|
588
|
+
return {
|
589
|
+
value: row.code,
|
590
|
+
label: row.name,
|
591
|
+
};
|
592
|
+
});
|
593
|
+
resolve(result);
|
594
|
+
},
|
595
|
+
});
|
596
|
+
});
|
597
|
+
},
|
598
|
+
getDict() {
|
599
|
+
return new Promise((resolve, reject) => {
|
600
|
+
this.$getBaseDicts({
|
601
|
+
code: "orderType",
|
602
|
+
success: ({ dicts, dictMap }) => {
|
603
|
+
let result = dicts.map((row) => {
|
604
|
+
return {
|
605
|
+
value: row.sn,
|
606
|
+
label: row.value,
|
607
|
+
};
|
608
|
+
});
|
609
|
+
resolve(result);
|
610
|
+
},
|
611
|
+
});
|
612
|
+
});
|
613
|
+
},
|
614
|
+
getRoleList() {
|
615
|
+
return this.$http({
|
616
|
+
url: USER_PREFIX + "/role/list",
|
617
|
+
method: "post",
|
618
|
+
success: (res) => {
|
619
|
+
let rows = res.objx || [];
|
620
|
+
let outUserCodes = this.outUserCodes;
|
621
|
+
if (this.userType == 1) {
|
622
|
+
//组织用户
|
623
|
+
rows = rows.filter((row) => !outUserCodes.includes(row.code));
|
624
|
+
} else if (this.userType == 2) {
|
625
|
+
//外部用户
|
626
|
+
rows = rows.filter((row) => outUserCodes.includes(row.code));
|
627
|
+
}
|
628
|
+
this.roleList = rows;
|
629
|
+
return rows;
|
630
|
+
},
|
631
|
+
});
|
632
|
+
},
|
633
|
+
async initOutUserRoleCode() {
|
634
|
+
return this.$http({
|
635
|
+
url: USER_PREFIX + "/system_parameter/getByCode",
|
636
|
+
method: "post",
|
637
|
+
data: { code: "outUserRoleCode" },
|
638
|
+
success: (res) => {
|
639
|
+
let value = !res.objx || !res.objx.value ? "distributor" : res.objx.value;
|
640
|
+
let codes = value.split(",");
|
641
|
+
this.outUserCodes = codes;
|
642
|
+
},
|
643
|
+
});
|
644
|
+
},
|
645
|
+
},
|
646
|
+
};
|
647
|
+
</script>
|