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