cloud-web-corejs 1.0.54-dev.28 → 1.0.54-dev.281
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 +6 -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 +24 -8
- 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/excelExport/button.vue +54 -4
- package/src/components/excelExport/exportFieldDialog.vue +16 -6
- package/src/components/excelExport/index.js +48 -5
- package/src/components/excelExport/index.vue +64 -8
- package/src/components/excelExport/mixins.js +937 -2
- package/src/components/fileLibrary/fileObjAuthDialog.vue +1 -1
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +7 -1
- package/src/components/fileLibrary/fileObjNotifyEdit.vue +90 -68
- 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 +337 -207
- 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 +77 -27
- 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/mixins.js +1 -838
- 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 +328 -0
- package/src/components/table/vxeFilter/mixin.js +6 -6
- package/src/components/vb-tabs/x-tabs.vue +3 -2
- package/src/components/wf/content.vue +108 -27
- package/src/components/wf/setCandidateDialog.vue +1 -0
- package/src/components/wf/wf.js +1 -1
- package/src/components/wf/wfStartDialog.vue +1 -1
- package/src/components/wf/wfUtil.js +1 -1
- package/src/components/xform/form-designer/designer.js +3 -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 +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 +3 -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 +23 -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/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/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 +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +834 -154
- 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 +48 -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/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 +24 -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 +1404 -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 +21 -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 +9 -25
- package/src/components/xform/lang/zh-CN.js +16 -3
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +174 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/format.js +21 -30
- package/src/components/xform/utils/formula-util.js +669 -0
- package/src/components/xform/utils/util.js +1 -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 -1
- package/src/store/modules/permission.js +1 -1
- package/src/store/modules/settings.js +1 -1
- package/src/store/modules/tagsView.js +191 -5
- package/src/store/modules/user.js +1 -1
- package/src/utils/index.js +4 -2
- package/src/utils/pddLog.js +103 -0
- package/src/utils/request.js +351 -357
- package/src/utils/vab.js +19 -27
- package/src/views/bd/setting/bd_attach_setting/edit.vue +5 -5
- package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
- package/src/views/bd/setting/bd_company_env/edit.vue +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 +5 -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/list.vue +4 -0
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -1
- package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
- package/src/views/bd/setting/push_data/edit.vue +139 -0
- package/src/views/bd/setting/push_data/list.vue +283 -0
- package/src/views/bd/setting/push_data_h/edit.vue +153 -0
- package/src/views/bd/setting/push_data_h/list.vue +293 -0
- package/src/views/bd/setting/request_async_setting/edit.vue +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 +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 +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 +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/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 +52 -14
- 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 +16 -6
- 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 +28 -23
- 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/user/dialog.vue +46 -23
- package/src/views/user/user/edit.vue +35 -15
- package/src/views/user/user/form_dialog.vue +158 -0
- package/src/views/user/user/form_edit.vue +63 -2
- 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 +4 -20
- 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 +115 -10
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
package/src/utils/request.js
CHANGED
@@ -1,357 +1,351 @@
|
|
1
|
-
/**version-1.0*/
|
2
|
-
import Vue from 'vue'
|
3
|
-
import axios from 'axios'
|
4
|
-
import qs from 'qs'
|
5
|
-
import store from '../store/index.js'
|
6
|
-
import {
|
7
|
-
getToken
|
8
|
-
} from './auth.js'
|
9
|
-
import ErroreBox from '../components/errorMsg/index.js'
|
10
|
-
import PopupManager from 'element-ui/src/utils/popup/popup-manager.js'
|
11
|
-
import settingConfig from "@/settings.js";
|
12
|
-
import {encode} from "js-base64";
|
13
|
-
import {encrypt} from "@base/utils/aes";
|
14
|
-
|
15
|
-
let configUtil = {
|
16
|
-
baseUrl: process.env.VUE_APP_BASE_API,
|
17
|
-
logout: function () {
|
18
|
-
store.dispatch("user/resetToken").then(() => {
|
19
|
-
let redirect = window.$vueRoot && window.$vueRoot.$router & window.$vueRoot.$router.fullPath ? window.$vueRoot.$router.fullPath : null;
|
20
|
-
let path = redirect ? `/login?redirect=${redirect}` : `/login`;
|
21
|
-
window.location.hash = path;
|
22
|
-
location.reload(true);
|
23
|
-
});
|
24
|
-
}
|
25
|
-
};
|
26
|
-
let service;
|
27
|
-
|
28
|
-
// create an axios instance
|
29
|
-
service = axios.create({
|
30
|
-
baseURL: configUtil.baseUrl, // url = base url + request url
|
31
|
-
// withCredentials: true, // send cookies when cross-domain requests
|
32
|
-
//timeout: 5000 // request timeout
|
33
|
-
});
|
34
|
-
|
35
|
-
// request interceptor
|
36
|
-
service.interceptors.request.use(
|
37
|
-
config => {
|
38
|
-
|
39
|
-
if (config.useToken !== false) {
|
40
|
-
let token = getToken();
|
41
|
-
if (token) {
|
42
|
-
config.headers['X-Token'] = token;
|
43
|
-
config.headers['Authorization'] = 'Bearer ' + token;
|
44
|
-
}
|
45
|
-
}
|
46
|
-
/* if (!config.headers['Content-Type']) {
|
47
|
-
config.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
|
48
|
-
} */
|
49
|
-
if (!config.filterConfig || config.filterConfig.enabled !== false && window.commonDataUtil) {
|
50
|
-
config.data = window.commonDataUtil.handleForm(config.data, config.filterConfig);
|
51
|
-
}
|
52
|
-
if (
|
53
|
-
(config.headers['Content-Type'] == "application/x-www-form-urlencoded" ||
|
54
|
-
config.headers['Content-Type'] == "application/x-www-form-urlencoded;charset=UTF-8") &&
|
55
|
-
typeof (config.data) !== 'string' && config.data) {
|
56
|
-
config.data = qs.stringify(config.data);
|
57
|
-
} else if (settingConfig.base64Urls && settingConfig.base64Urls.includes(config.url)) {
|
58
|
-
config.data = {"_baenboda": encode(JSON.stringify(config.data))};
|
59
|
-
} else if (config.aes) {
|
60
|
-
config.data = {"_aeenboda": encrypt(JSON.stringify(config.data))};
|
61
|
-
}
|
62
|
-
|
63
|
-
if (config.modal !== false && config.loadingTarget) {
|
64
|
-
let zIndex = PopupManager.nextZIndex();
|
65
|
-
let pd = document.createElement('div');
|
66
|
-
pd.className = "el-loading-mask AjaxOverlay";
|
67
|
-
pd.style = "display: block !important;background-color: unset;z-index:" + zIndex + ";";
|
68
|
-
config.loadingTarget.append(pd);
|
69
|
-
config.ajaxOverlay = pd;
|
70
|
-
}
|
71
|
-
|
72
|
-
if (config.isLoading) {
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
)
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
if (
|
123
|
-
|
124
|
-
return
|
125
|
-
}
|
126
|
-
|
127
|
-
let
|
128
|
-
let
|
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
|
-
if (
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
if (
|
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
|
-
function
|
212
|
-
let result = null;
|
213
|
-
if (row) {
|
214
|
-
if (row.hasOwnProperty("
|
215
|
-
result = row.
|
216
|
-
} else if (row.hasOwnProperty("
|
217
|
-
result = row.
|
218
|
-
}
|
219
|
-
}
|
220
|
-
return result;
|
221
|
-
}
|
222
|
-
|
223
|
-
function
|
224
|
-
let
|
225
|
-
if (
|
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
|
-
if (
|
273
|
-
let obj = arr.find(item => item.loginAccount ==
|
274
|
-
if (obj && obj.nickName) {
|
275
|
-
item.
|
276
|
-
item.
|
277
|
-
}
|
278
|
-
}
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
}
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
}
|
353
|
-
return Promise.reject(error);
|
354
|
-
}
|
355
|
-
);
|
356
|
-
|
357
|
-
export default service;
|
1
|
+
/**version-1.0*/
|
2
|
+
import Vue from 'vue'
|
3
|
+
import axios from 'axios'
|
4
|
+
import qs from 'qs'
|
5
|
+
import store from '../store/index.js'
|
6
|
+
import {
|
7
|
+
getToken
|
8
|
+
} from './auth.js'
|
9
|
+
import ErroreBox from '../components/errorMsg/index.js'
|
10
|
+
import PopupManager from 'element-ui/src/utils/popup/popup-manager.js'
|
11
|
+
import settingConfig from "@/settings.js";
|
12
|
+
import {encode} from "js-base64";
|
13
|
+
import {encrypt} from "@base/utils/aes";
|
14
|
+
|
15
|
+
let configUtil = {
|
16
|
+
baseUrl: process.env.VUE_APP_BASE_API,
|
17
|
+
logout: function () {
|
18
|
+
store.dispatch("user/resetToken").then(() => {
|
19
|
+
let redirect = window.$vueRoot && window.$vueRoot.$router & window.$vueRoot.$router.fullPath ? window.$vueRoot.$router.fullPath : null;
|
20
|
+
let path = redirect ? `/login?redirect=${redirect}` : `/login`;
|
21
|
+
window.location.hash = path;
|
22
|
+
location.reload(true);
|
23
|
+
});
|
24
|
+
}
|
25
|
+
};
|
26
|
+
let service;
|
27
|
+
|
28
|
+
// create an axios instance
|
29
|
+
service = axios.create({
|
30
|
+
baseURL: configUtil.baseUrl, // url = base url + request url
|
31
|
+
// withCredentials: true, // send cookies when cross-domain requests
|
32
|
+
//timeout: 5000 // request timeout
|
33
|
+
});
|
34
|
+
|
35
|
+
// request interceptor
|
36
|
+
service.interceptors.request.use(
|
37
|
+
config => {
|
38
|
+
|
39
|
+
if (config.useToken !== false) {
|
40
|
+
let token = getToken();
|
41
|
+
if (token) {
|
42
|
+
config.headers['X-Token'] = token;
|
43
|
+
config.headers['Authorization'] = 'Bearer ' + token;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
/* if (!config.headers['Content-Type']) {
|
47
|
+
config.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
|
48
|
+
} */
|
49
|
+
if (!config.filterConfig || config.filterConfig.enabled !== false && window.commonDataUtil) {
|
50
|
+
config.data = window.commonDataUtil.handleForm(config.data, config.filterConfig);
|
51
|
+
}
|
52
|
+
if (
|
53
|
+
(config.headers['Content-Type'] == "application/x-www-form-urlencoded" ||
|
54
|
+
config.headers['Content-Type'] == "application/x-www-form-urlencoded;charset=UTF-8") &&
|
55
|
+
typeof (config.data) !== 'string' && config.data) {
|
56
|
+
config.data = qs.stringify(config.data);
|
57
|
+
} else if (settingConfig.base64Urls && settingConfig.base64Urls.includes(config.url)) {
|
58
|
+
config.data = {"_baenboda": encode(JSON.stringify(config.data))};
|
59
|
+
} else if (config.aes) {
|
60
|
+
config.data = {"_aeenboda": encrypt(JSON.stringify(config.data))};
|
61
|
+
}
|
62
|
+
|
63
|
+
if (config.modal !== false && config.loadingTarget) {
|
64
|
+
let zIndex = PopupManager.nextZIndex();
|
65
|
+
let pd = document.createElement('div');
|
66
|
+
pd.className = "el-loading-mask AjaxOverlay";
|
67
|
+
pd.style = "display: block !important;background-color: unset;z-index:" + zIndex + ";";
|
68
|
+
config.loadingTarget.append(pd);
|
69
|
+
config.ajaxOverlay = pd;
|
70
|
+
}
|
71
|
+
|
72
|
+
if (config.isLoading) {
|
73
|
+
config.loadingInstance = Vue.prototype.$baseLoading({
|
74
|
+
target: config.loadingTarget || document.body,
|
75
|
+
background: 'unset'
|
76
|
+
});
|
77
|
+
}
|
78
|
+
return config;
|
79
|
+
},
|
80
|
+
error => {
|
81
|
+
// do something with request error
|
82
|
+
console.error(error); // for debug
|
83
|
+
return Promise.reject(error);
|
84
|
+
}
|
85
|
+
);
|
86
|
+
|
87
|
+
function removeModel(config) {
|
88
|
+
if (config) {
|
89
|
+
if (config.modal !== false && config.ajaxOverlay) {
|
90
|
+
config.ajaxOverlay.remove();
|
91
|
+
}
|
92
|
+
if (config.loadingInstance) {
|
93
|
+
setTimeout(function () {
|
94
|
+
config.loadingInstance.close();
|
95
|
+
config.loadingInstance = null;
|
96
|
+
}, 200);
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
async function handleNickName(option) {
|
102
|
+
let {vueTarget, res, callback, config} = option;
|
103
|
+
if (res.type != "success" || !res.objx) {
|
104
|
+
callback && callback(res)
|
105
|
+
return
|
106
|
+
}
|
107
|
+
let data = res.objx;
|
108
|
+
if (Array.isArray(data) || data.hasOwnProperty("records")) {
|
109
|
+
await handleNickName2(option)
|
110
|
+
return;
|
111
|
+
}
|
112
|
+
|
113
|
+
let createBy = getCreateBy(data);
|
114
|
+
let modifyBy = getModifyBy(data);
|
115
|
+
let requestData = [];
|
116
|
+
if (createBy) {
|
117
|
+
requestData.push(createBy)
|
118
|
+
}
|
119
|
+
if (modifyBy && !requestData.includes(modifyBy)) {
|
120
|
+
requestData.push(modifyBy)
|
121
|
+
}
|
122
|
+
if (!requestData.length) {
|
123
|
+
callback && callback(res)
|
124
|
+
return
|
125
|
+
}
|
126
|
+
if (!vueTarget) vueTarget = window.$vueRoot
|
127
|
+
let modal = config.modal ?? true;
|
128
|
+
let isLoading = config.isLoading || false;
|
129
|
+
return vueTarget.$http({
|
130
|
+
url: USER_PREFIX + `/userb/getUserBasicInfos`,
|
131
|
+
method: `post`,
|
132
|
+
data: requestData,
|
133
|
+
modal: modal,
|
134
|
+
isLoading: isLoading,
|
135
|
+
success: res2 => {
|
136
|
+
let arr = res2.objx || [];
|
137
|
+
if (createBy) {
|
138
|
+
let obj = arr.find(item => item.loginAccount == createBy);
|
139
|
+
if (obj && obj.nickName) {
|
140
|
+
res.objx._createNickName = obj.nickName;
|
141
|
+
res.objx._createMobile = obj.mobile;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
if (modifyBy) {
|
145
|
+
let obj = arr.find(item => item.loginAccount == modifyBy);
|
146
|
+
if (obj && obj.nickName) {
|
147
|
+
res.objx._modifyNickName = obj.nickName;
|
148
|
+
res.objx._modifyMobile = obj.mobile;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
|
152
|
+
}
|
153
|
+
});
|
154
|
+
}
|
155
|
+
|
156
|
+
function handleCreateInfo(config, res) {
|
157
|
+
if (!config.addCreateInfo) return
|
158
|
+
let queryCreateInfo = config.queryCreateInfo || "0";
|
159
|
+
let toDo = (row) => {
|
160
|
+
if (!row) {
|
161
|
+
return;
|
162
|
+
}
|
163
|
+
let _createBy = null;
|
164
|
+
let _modifyBy = null;
|
165
|
+
if (row._createNickName) {
|
166
|
+
if (queryCreateInfo == "1") {
|
167
|
+
_createBy = getCreateBy(row) + "(" + row._createNickName + ")";
|
168
|
+
} else if (queryCreateInfo == "2") {
|
169
|
+
_createBy = row._createNickName;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
if (row._modifyNickName) {
|
173
|
+
if (queryCreateInfo == "1") {
|
174
|
+
_modifyBy = getModifyBy(row) + "(" + row._modifyNickName + ")";
|
175
|
+
} else if (queryCreateInfo == "2") {
|
176
|
+
_modifyBy = row._modifyNickName;
|
177
|
+
}
|
178
|
+
}
|
179
|
+
row._createBy = _createBy || getCreateBy(row) || null;
|
180
|
+
row._modifyBy = _modifyBy || getCreateBy(row) || null;
|
181
|
+
}
|
182
|
+
let data = res.objx;
|
183
|
+
if (typeof res.objx == "object") {
|
184
|
+
if (Array.isArray(data)) {
|
185
|
+
res.objx.forEach(item => {
|
186
|
+
toDo(item);
|
187
|
+
})
|
188
|
+
} else if (data && res.objx.hasOwnProperty("records")) {
|
189
|
+
let records = res.objx.records || [];
|
190
|
+
records.forEach(item => {
|
191
|
+
toDo(item);
|
192
|
+
})
|
193
|
+
} else {
|
194
|
+
toDo(res.objx);
|
195
|
+
}
|
196
|
+
}
|
197
|
+
}
|
198
|
+
|
199
|
+
function getCreateBy(row) {
|
200
|
+
let result = null;
|
201
|
+
if (row) {
|
202
|
+
if (row.hasOwnProperty("createBy")) {
|
203
|
+
result = row.createBy;
|
204
|
+
} else if (row.hasOwnProperty("create_by")) {
|
205
|
+
result = row.create_by;
|
206
|
+
}
|
207
|
+
}
|
208
|
+
return result;
|
209
|
+
}
|
210
|
+
|
211
|
+
function getModifyBy(row) {
|
212
|
+
let result = null;
|
213
|
+
if (row) {
|
214
|
+
if (row.hasOwnProperty("modifyBy")) {
|
215
|
+
result = row.modifyBy;
|
216
|
+
} else if (row.hasOwnProperty("modify_by")) {
|
217
|
+
result = row.modify_by;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
return result;
|
221
|
+
}
|
222
|
+
|
223
|
+
async function handleNickName2(option) {
|
224
|
+
let {vueTarget, res, callback, config} = option;
|
225
|
+
if (res.type != "success" || !res.objx) {
|
226
|
+
callback && callback(res)
|
227
|
+
return
|
228
|
+
}
|
229
|
+
let data = res.objx;
|
230
|
+
if (!Array.isArray(data)) {
|
231
|
+
data = res.objx.records;
|
232
|
+
}
|
233
|
+
let requestData = [];
|
234
|
+
data.forEach(item => {
|
235
|
+
let createBy = getCreateBy(item);
|
236
|
+
let modifyBy = getModifyBy(item);
|
237
|
+
|
238
|
+
if (createBy && !requestData.includes(createBy)) {
|
239
|
+
requestData.push(createBy)
|
240
|
+
}
|
241
|
+
if (modifyBy && !requestData.includes(modifyBy)) {
|
242
|
+
requestData.push(modifyBy)
|
243
|
+
}
|
244
|
+
})
|
245
|
+
if (!requestData.length) {
|
246
|
+
callback && callback(res)
|
247
|
+
return
|
248
|
+
}
|
249
|
+
if (!vueTarget) vueTarget = window.$vueRoot
|
250
|
+
|
251
|
+
let modal = config.modal ?? true;
|
252
|
+
let isLoading = config.isLoading || false;
|
253
|
+
|
254
|
+
return vueTarget.$http({
|
255
|
+
url: USER_PREFIX + `/userb/getUserBasicInfos`,
|
256
|
+
method: `post`,
|
257
|
+
data: requestData,
|
258
|
+
modal: modal,
|
259
|
+
isLoading: isLoading,
|
260
|
+
success: res2 => {
|
261
|
+
let arr = res2.objx || [];
|
262
|
+
data.forEach(item => {
|
263
|
+
let createBy = getCreateBy(item);
|
264
|
+
let modifyBy = getModifyBy(item);
|
265
|
+
if (createBy) {
|
266
|
+
let obj = arr.find(item => item.loginAccount == createBy);
|
267
|
+
if (obj && obj.nickName) {
|
268
|
+
item._createNickName = obj.nickName;
|
269
|
+
item._createMobile = obj.mobile;
|
270
|
+
}
|
271
|
+
}
|
272
|
+
if (modifyBy) {
|
273
|
+
let obj = arr.find(item => item.loginAccount == modifyBy);
|
274
|
+
if (obj && obj.nickName) {
|
275
|
+
item._modifyNickName = obj.nickName;
|
276
|
+
item._modifyMobile = obj.mobile;
|
277
|
+
}
|
278
|
+
}
|
279
|
+
})
|
280
|
+
}
|
281
|
+
});
|
282
|
+
}
|
283
|
+
|
284
|
+
// response interceptor
|
285
|
+
service.interceptors.response.use(
|
286
|
+
async response => {
|
287
|
+
const res = response.data;
|
288
|
+
const config = response.config;
|
289
|
+
if (config.resultType == "other") {
|
290
|
+
config.callback && config.callback(res, response);
|
291
|
+
removeModel(config);
|
292
|
+
return res;
|
293
|
+
} else if (res.type) {
|
294
|
+
if (res.type == "success") {
|
295
|
+
if (settingConfig.queryCreateInfo !== false && config.queryCreateInfo && config.queryCreateInfo != "0") {
|
296
|
+
let vueTarget = config.vueTarget;
|
297
|
+
await handleNickName({vueTarget, res, config});
|
298
|
+
}
|
299
|
+
if (config.addCreateInfo) {
|
300
|
+
handleCreateInfo(config, res);
|
301
|
+
}
|
302
|
+
|
303
|
+
config.success && config.success(res, response);
|
304
|
+
config.callback && config.callback(res, response);
|
305
|
+
removeModel(config);
|
306
|
+
return res;
|
307
|
+
} else {
|
308
|
+
if (res.rmid == "999999999") {
|
309
|
+
removeModel(config);
|
310
|
+
configUtil.logout();
|
311
|
+
} else {
|
312
|
+
config.fail && config.fail(res, response);
|
313
|
+
config.callback && config.callback(res, response);
|
314
|
+
if (config.modalStrictly !== true) {
|
315
|
+
removeModel(config);
|
316
|
+
}
|
317
|
+
if (config.resultType != "special" && config.failMsg !== false) {
|
318
|
+
ErroreBox.msg(res);
|
319
|
+
}
|
320
|
+
}
|
321
|
+
return res;
|
322
|
+
}
|
323
|
+
} else {
|
324
|
+
if (config.modalStrictly !== true) {
|
325
|
+
removeModel(config);
|
326
|
+
}
|
327
|
+
return res;
|
328
|
+
}
|
329
|
+
},
|
330
|
+
error => {
|
331
|
+
let config = error.config;
|
332
|
+
if (error.response && error.response.data && error.response.data.rmid == "999999999") {
|
333
|
+
removeModel(config);
|
334
|
+
configUtil.logout();
|
335
|
+
} else {
|
336
|
+
config.error && config.error(error);
|
337
|
+
if (config.modalStrictly !== true) {
|
338
|
+
removeModel(config);
|
339
|
+
}
|
340
|
+
if (config.errorMsg !== false) {
|
341
|
+
ErroreBox.msg({
|
342
|
+
content: error.message,
|
343
|
+
type: 'error',
|
344
|
+
});
|
345
|
+
}
|
346
|
+
}
|
347
|
+
return Promise.reject(error);
|
348
|
+
}
|
349
|
+
);
|
350
|
+
|
351
|
+
export default service;
|