@maxtropy/v-components 0.1.12-beta.4 → 0.1.12-beta.6
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/dist/mx-vcomponents.umd.js +60 -0
- package/dist/types/common/request.d.ts +3 -3
- package/dist/types/components/alert/MxAlert.vue.d.ts +2 -2
- package/dist/types/components/authorizedpermission/AuthorizedPermission.vue.d.ts +1 -1
- package/dist/types/components/basiclayout/BasicLayout.vue.d.ts +5 -5
- package/dist/types/components/breadcrumb/BreadCrumb.vue.d.ts +4 -4
- package/dist/types/components/button/MxButton.vue.d.ts +18 -18
- package/dist/types/components/checkbox/MxCheckbox.vue.d.ts +4 -4
- package/dist/types/components/checkbox/MxCheckboxGroup.vue.d.ts +11 -11
- package/dist/types/components/checkbox/index.d.ts +1 -1
- package/dist/types/components/datePicker/MxDatePicker.vue.d.ts +2 -2
- package/dist/types/components/dialog/MxDialog.vue.d.ts +2 -2
- package/dist/types/components/empty/MxEmpty.vue.d.ts +2 -2
- package/dist/types/components/form/MxForm.vue.d.ts +28 -28
- package/dist/types/components/form/MxFormItem.vue.d.ts +4 -4
- package/dist/types/components/form/index.d.ts +5 -5
- package/dist/types/components/headnavigation/HeadNavigation.vue.d.ts +4 -4
- package/dist/types/components/headnavigation/MenuBar.vue.d.ts +5 -5
- package/dist/types/components/input/MxInput.vue.d.ts +2 -2
- package/dist/types/components/message/index.d.ts +2 -2
- package/dist/types/components/messageBox/index.d.ts +2 -2
- package/dist/types/components/messageBox/message.vue.d.ts +4 -4
- package/dist/types/components/pagination/MxPagination.vue.d.ts +2 -2
- package/dist/types/components/popconfirm/MxPopconfirm.vue.d.ts +1 -1
- package/dist/types/components/radio/MxRadio.vue.d.ts +11 -11
- package/dist/types/components/radio/MxRadioButton.vue.d.ts +9 -9
- package/dist/types/components/radio/MxRadioGroup.vue.d.ts +19 -19
- package/dist/types/components/radio/index.d.ts +2 -2
- package/dist/types/components/select/MxOption.vue.d.ts +2 -2
- package/dist/types/components/select/MxOptionGroup.vue.d.ts +2 -2
- package/dist/types/components/select/MxSelect.vue.d.ts +2 -2
- package/dist/types/components/select/index.d.ts +2 -2
- package/dist/types/components/sidermenu/SiderMenu.vue.d.ts +4 -4
- package/dist/types/components/slider/MxSlider.vue.d.ts +2 -2
- package/dist/types/components/steps/MxStep.vue.d.ts +2 -2
- package/dist/types/components/steps/MxSteps.vue.d.ts +2 -2
- package/dist/types/components/steps/index.d.ts +1 -1
- package/dist/types/components/switchstaff/SwitchStaff.vue.d.ts +4 -4
- package/dist/types/components/systemcontent/SystemContent.vue.d.ts +4 -4
- package/dist/types/components/table/MxTable.vue.d.ts +2 -2
- package/dist/types/components/table/MxTableColumn.vue.d.ts +2 -2
- package/dist/types/components/table/index.d.ts +1 -1
- package/dist/types/components/tabs/MxTabPane.vue.d.ts +2 -2
- package/dist/types/components/tabs/MxTabs.vue.d.ts +7 -7
- package/dist/types/components/tag/MxTag.vue.d.ts +2 -2
- package/dist/types/components/timePicker/MxTimePicker.vue.d.ts +2 -2
- package/dist/types/components/tooltip/MxTooltip.vue.d.ts +2 -2
- package/dist/types/components/tree/MxTree.vue.d.ts +2 -2
- package/dist/types/components/treeselect/MxTreeSelect.vue.d.ts +2 -2
- package/dist/types/components/upload/MxUpload.vue.d.ts +1 -1
- package/dist/types/components/upload/upload.d.ts +6 -6
- package/dist/types/components/upload/uploadList.vue.d.ts +1 -1
- package/dist/types/components/usercontent/UserContent.vue.d.ts +4 -4
- package/es/api/staff.d.ts +3 -0
- package/es/api/staff.js +11 -0
- package/es/api/tenant.d.ts +4 -0
- package/es/api/tenant.js +15 -0
- package/es/api/user.d.ts +24 -0
- package/es/api/user.js +20 -0
- package/es/assets/svg/ContainerSvg.vue.d.ts +2 -0
- package/es/assets/svg/ContainerSvg.vue.js +29 -0
- package/es/assets/svg/InfoCircleSvg.vue.d.ts +2 -0
- package/es/assets/svg/InfoCircleSvg.vue.js +31 -0
- package/es/assets/svg/InfoSvg.vue.d.ts +2 -0
- package/es/assets/svg/InfoSvg.vue.js +30 -0
- package/es/assets/svg/UploadSvg.vue.d.ts +2 -0
- package/es/assets/svg/UploadSvg.vue.js +29 -0
- package/es/common/const.d.ts +34 -0
- package/es/common/const.js +55 -0
- package/es/common/entity.d.ts +118 -0
- package/es/common/entity.js +32 -0
- package/es/common/fetch.d.ts +13 -0
- package/es/common/fetch.js +95 -0
- package/es/common/request.d.ts +30 -0
- package/es/common/request.js +107 -0
- package/es/common/subject.d.ts +20 -0
- package/es/common/subject.js +62 -0
- package/es/components/alert/MxAlert.css +47 -0
- package/es/components/alert/MxAlert.vue.d.ts +63 -0
- package/es/components/alert/MxAlert.vue.js +82 -0
- package/es/components/alert/index.d.ts +7 -0
- package/es/components/alert/index.js +8 -0
- package/es/components/authorizedpermission/AuthorizedPermission.css +14 -0
- package/es/components/authorizedpermission/AuthorizedPermission.vue.d.ts +10 -0
- package/es/components/authorizedpermission/AuthorizedPermission.vue.js +51 -0
- package/es/components/authorizedpermission/index.d.ts +7 -0
- package/es/components/authorizedpermission/index.js +8 -0
- package/es/components/basiclayout/BasicLayout.css +44 -0
- package/es/components/basiclayout/BasicLayout.vue.d.ts +45 -0
- package/es/components/basiclayout/BasicLayout.vue.js +64 -0
- package/es/components/basiclayout/index.d.ts +7 -0
- package/es/components/basiclayout/index.js +8 -0
- package/es/components/breadcrumb/BreadCrumb.css +20 -0
- package/es/components/breadcrumb/BreadCrumb.vue.d.ts +53 -0
- package/es/components/breadcrumb/BreadCrumb.vue.js +124 -0
- package/es/components/breadcrumb/index.d.ts +7 -0
- package/es/components/breadcrumb/index.js +8 -0
- package/es/components/button/MxButton.css +149 -0
- package/es/components/button/MxButton.vue.d.ts +107 -0
- package/es/components/button/MxButton.vue.js +76 -0
- package/es/components/button/index.d.ts +7 -0
- package/es/components/button/index.js +8 -0
- package/es/components/checkbox/MxCheckbox.css +35 -0
- package/es/components/checkbox/MxCheckbox.vue.d.ts +104 -0
- package/es/components/checkbox/MxCheckbox.vue.js +35 -0
- package/es/components/checkbox/MxCheckboxGroup.vue.d.ts +43 -0
- package/es/components/checkbox/MxCheckboxGroup.vue.js +26 -0
- package/es/components/checkbox/index.d.ts +351 -0
- package/es/components/checkbox/index.js +17 -0
- package/es/components/datePicker/MxDatePicker.css +586 -0
- package/es/components/datePicker/MxDatePicker.vue.d.ts +49 -0
- package/es/components/datePicker/MxDatePicker.vue.js +79 -0
- package/es/components/datePicker/index.d.ts +7 -0
- package/es/components/datePicker/index.js +8 -0
- package/es/components/dialog/MxDialog.css +62 -0
- package/es/components/dialog/MxDialog.vue.d.ts +164 -0
- package/es/components/dialog/MxDialog.vue.js +90 -0
- package/es/components/dialog/index.d.ts +7 -0
- package/es/components/dialog/index.js +8 -0
- package/es/components/dropdown/MxDropdown.css +30 -0
- package/es/components/dropdown/MxDropdown.vue.d.ts +71 -0
- package/es/components/dropdown/MxDropdown.vue.js +97 -0
- package/es/components/dropdown/index.d.ts +7 -0
- package/es/components/dropdown/index.js +8 -0
- package/es/components/ellipsisSpan/MxEllipsisSpan.css +3 -0
- package/es/components/ellipsisSpan/MxEllipsisSpan.vue.d.ts +42 -0
- package/es/components/ellipsisSpan/MxEllipsisSpan.vue.js +70 -0
- package/es/components/ellipsisSpan/index.d.ts +7 -0
- package/es/components/ellipsisSpan/index.js +8 -0
- package/es/components/empty/MxEmpty.css +10 -0
- package/es/components/empty/MxEmpty.vue.d.ts +7 -0
- package/es/components/empty/MxEmpty.vue.js +36 -0
- package/es/components/empty/index.d.ts +7 -0
- package/es/components/empty/index.js +8 -0
- package/es/components/form/MxForm.css +26 -0
- package/es/components/form/MxForm.vue.d.ts +123 -0
- package/es/components/form/MxForm.vue.js +99 -0
- package/es/components/form/MxFormItem.css +23 -0
- package/es/components/form/MxFormItem.vue.d.ts +94 -0
- package/es/components/form/MxFormItem.vue.js +63 -0
- package/es/components/form/index.d.ts +242 -0
- package/es/components/form/index.js +12 -0
- package/es/components/headnavigation/HeadNavigation.css +144 -0
- package/es/components/headnavigation/HeadNavigation.vue.d.ts +45 -0
- package/es/components/headnavigation/HeadNavigation.vue.js +201 -0
- package/es/components/headnavigation/MenuBar.css +113 -0
- package/es/components/headnavigation/MenuBar.vue.d.ts +35 -0
- package/es/components/headnavigation/MenuBar.vue.js +31 -0
- package/es/components/headnavigation/index.d.ts +7 -0
- package/es/components/headnavigation/index.js +8 -0
- package/es/components/index.d.ts +38 -0
- package/es/components/index.js +171 -0
- package/es/components/input/MxInput.css +54 -0
- package/es/components/input/MxInput.vue.d.ts +7 -0
- package/es/components/input/MxInput.vue.js +24 -0
- package/es/components/input/index.d.ts +7 -0
- package/es/components/input/index.js +8 -0
- package/es/components/message/index.d.ts +7 -0
- package/es/components/message/index.js +12 -0
- package/es/components/message/message.css +31 -0
- package/es/components/message/message.d.ts +4 -0
- package/es/components/message/message.js +42 -0
- package/es/components/messageBox/index.d.ts +7 -0
- package/es/components/messageBox/index.js +13 -0
- package/es/components/messageBox/message.vue.d.ts +48 -0
- package/es/components/messageBox/message.vue.js +58 -0
- package/es/components/messageBox/messageBox.css +160 -0
- package/es/components/messageBox/messageBox.d.ts +4 -0
- package/es/components/messageBox/messageBox.js +39 -0
- package/es/components/notification/index.d.ts +3 -0
- package/es/components/notification/index.js +7 -0
- package/es/components/notification/notification.css +58 -0
- package/es/components/notification/notification.d.ts +4 -0
- package/es/components/notification/notification.js +28 -0
- package/es/components/pagination/MxPagination.css +110 -0
- package/es/components/pagination/MxPagination.vue.d.ts +38 -0
- package/es/components/pagination/MxPagination.vue.js +53 -0
- package/es/components/pagination/index.d.ts +7 -0
- package/es/components/pagination/index.js +8 -0
- package/es/components/popconfirm/MxPopconfirm.css +26 -0
- package/es/components/popconfirm/MxPopconfirm.vue.d.ts +51 -0
- package/es/components/popconfirm/MxPopconfirm.vue.js +92 -0
- package/es/components/popconfirm/index.d.ts +7 -0
- package/es/components/popconfirm/index.js +8 -0
- package/es/components/radio/MxRadio.css +33 -0
- package/es/components/radio/MxRadio.vue.d.ts +36 -0
- package/es/components/radio/MxRadio.vue.js +35 -0
- package/es/components/radio/MxRadioButton.css +37 -0
- package/es/components/radio/MxRadioButton.vue.d.ts +31 -0
- package/es/components/radio/MxRadioButton.vue.js +33 -0
- package/es/components/radio/MxRadioGroup.vue.d.ts +45 -0
- package/es/components/radio/MxRadioGroup.vue.js +26 -0
- package/es/components/radio/index.d.ts +302 -0
- package/es/components/radio/index.js +16 -0
- package/es/components/select/MxOption.vue.d.ts +7 -0
- package/es/components/select/MxOption.vue.js +26 -0
- package/es/components/select/MxOptionGroup.vue.d.ts +7 -0
- package/es/components/select/MxOptionGroup.vue.js +23 -0
- package/es/components/select/MxSelect.css +91 -0
- package/es/components/select/MxSelect.vue.d.ts +7 -0
- package/es/components/select/MxSelect.vue.js +43 -0
- package/es/components/select/index.d.ts +191 -0
- package/es/components/select/index.js +16 -0
- package/es/components/sidermenu/HambShow.css +65 -0
- package/es/components/sidermenu/HambShow.vue.d.ts +16 -0
- package/es/components/sidermenu/HambShow.vue.js +76 -0
- package/es/components/sidermenu/SiderMenu.css +94 -0
- package/es/components/sidermenu/SiderMenu.vue.d.ts +46 -0
- package/es/components/sidermenu/SiderMenu.vue.js +246 -0
- package/es/components/sidermenu/index.d.ts +7 -0
- package/es/components/sidermenu/index.js +8 -0
- package/es/components/slider/MxSlider.css +54 -0
- package/es/components/slider/MxSlider.vue.d.ts +32 -0
- package/es/components/slider/MxSlider.vue.js +39 -0
- package/es/components/slider/index.d.ts +7 -0
- package/es/components/slider/index.js +8 -0
- package/es/components/steps/MxStep.css +572 -0
- package/es/components/steps/MxStep.vue.d.ts +7 -0
- package/es/components/steps/MxStep.vue.js +30 -0
- package/es/components/steps/MxSteps.vue.d.ts +29 -0
- package/es/components/steps/MxSteps.vue.js +40 -0
- package/es/components/steps/index.d.ts +99 -0
- package/es/components/steps/index.js +12 -0
- package/es/components/switch/MxSwitch.css +49 -0
- package/es/components/switch/MxSwitch.vue.d.ts +2 -0
- package/es/components/switch/MxSwitch.vue.js +23 -0
- package/es/components/switch/index.d.ts +7 -0
- package/es/components/switch/index.js +8 -0
- package/es/components/switchstaff/CustomSvg.vue.d.ts +2 -0
- package/es/components/switchstaff/CustomSvg.vue.js +28 -0
- package/es/components/switchstaff/SwitchStaff.css +132 -0
- package/es/components/switchstaff/SwitchStaff.vue.d.ts +32 -0
- package/es/components/switchstaff/SwitchStaff.vue.js +121 -0
- package/es/components/switchstaff/WarnSvg.vue.d.ts +2 -0
- package/es/components/switchstaff/WarnSvg.vue.js +28 -0
- package/es/components/switchstaff/index.d.ts +7 -0
- package/es/components/switchstaff/index.js +8 -0
- package/es/components/systemcontent/SystemContent.css +28 -0
- package/es/components/systemcontent/SystemContent.vue.d.ts +51 -0
- package/es/components/systemcontent/SystemContent.vue.js +91 -0
- package/es/components/systemcontent/index.d.ts +7 -0
- package/es/components/systemcontent/index.js +8 -0
- package/es/components/table/MxTable.css +190 -0
- package/es/components/table/MxTable.vue.d.ts +37 -0
- package/es/components/table/MxTable.vue.js +63 -0
- package/es/components/table/MxTableColumn.css +31 -0
- package/es/components/table/MxTableColumn.vue.d.ts +11 -0
- package/es/components/table/MxTableColumn.vue.js +28 -0
- package/es/components/table/index.d.ts +103 -0
- package/es/components/table/index.js +12 -0
- package/es/components/tabs/MxTabPane.vue.d.ts +7 -0
- package/es/components/tabs/MxTabPane.vue.js +26 -0
- package/es/components/tabs/MxTabs.css +132 -0
- package/es/components/tabs/MxTabs.vue.d.ts +37 -0
- package/es/components/tabs/MxTabs.vue.js +44 -0
- package/es/components/tag/MxTag.css +84 -0
- package/es/components/tag/MxTag.vue.d.ts +40 -0
- package/es/components/tag/MxTag.vue.js +96 -0
- package/es/components/tag/index.d.ts +7 -0
- package/es/components/tag/index.js +8 -0
- package/es/components/timePicker/MxTimePicker.css +180 -0
- package/es/components/timePicker/MxTimePicker.vue.d.ts +49 -0
- package/es/components/timePicker/MxTimePicker.vue.js +79 -0
- package/es/components/timePicker/index.d.ts +7 -0
- package/es/components/timePicker/index.js +8 -0
- package/es/components/tooltip/MxTooltip.css +17 -0
- package/es/components/tooltip/MxTooltip.vue.d.ts +7 -0
- package/es/components/tooltip/MxTooltip.vue.js +24 -0
- package/es/components/tooltip/index.d.ts +7 -0
- package/es/components/tooltip/index.js +8 -0
- package/es/components/tree/MxTree.css +56 -0
- package/es/components/tree/MxTree.vue.d.ts +7 -0
- package/es/components/tree/MxTree.vue.js +27 -0
- package/es/components/tree/index.d.ts +7 -0
- package/es/components/tree/index.js +8 -0
- package/es/components/treeselect/MxTreeSelect.css +111 -0
- package/es/components/treeselect/MxTreeSelect.vue.d.ts +7 -0
- package/es/components/treeselect/MxTreeSelect.vue.js +35 -0
- package/es/components/treeselect/index.d.ts +7 -0
- package/es/components/treeselect/index.js +8 -0
- package/es/components/upload/MxUpload.css +111 -0
- package/es/components/upload/MxUpload.vue.d.ts +111 -0
- package/es/components/upload/MxUpload.vue.js +311 -0
- package/es/components/upload/index.d.ts +7 -0
- package/es/components/upload/index.js +8 -0
- package/es/components/upload/upload.d.ts +139 -0
- package/es/components/upload/upload.js +11 -0
- package/es/components/upload/uploadList.css +70 -0
- package/es/components/upload/uploadList.vue.d.ts +15 -0
- package/es/components/upload/uploadList.vue.js +118 -0
- package/es/components/upload/use-handlers.d.ts +13 -0
- package/es/components/upload/use-handlers.js +54 -0
- package/es/components/usercontent/ArrowSvg.vue.d.ts +2 -0
- package/es/components/usercontent/ArrowSvg.vue.js +28 -0
- package/es/components/usercontent/UserContent.css +53 -0
- package/es/components/usercontent/UserContent.vue.d.ts +28 -0
- package/es/components/usercontent/UserContent.vue.js +134 -0
- package/es/components/usercontent/UserSvg.vue.d.ts +2 -0
- package/es/components/usercontent/UserSvg.vue.js +29 -0
- package/es/components/usercontent/index.d.ts +7 -0
- package/es/components/usercontent/index.js +8 -0
- package/es/constants/const.d.ts +1 -0
- package/es/constants/const.js +4 -0
- package/es/constants/index.d.ts +2 -0
- package/es/constants/index.js +4 -0
- package/es/env.d.ts +30 -0
- package/es/index.d.ts +13 -0
- package/es/index.js +17 -0
- package/es/utils/hooks.d.ts +23 -0
- package/es/utils/hooks.js +126 -0
- package/es/utils/index.d.ts +3 -0
- package/es/utils/index.js +6 -0
- package/es/utils/lib.d.ts +9 -0
- package/es/utils/lib.js +102 -0
- package/es/utils/micro.d.ts +12 -0
- package/es/utils/micro.js +128 -0
- package/lib/api/staff.d.ts +3 -0
- package/lib/api/staff.js +11 -0
- package/lib/api/tenant.d.ts +4 -0
- package/lib/api/tenant.js +15 -0
- package/lib/api/user.d.ts +24 -0
- package/lib/api/user.js +20 -0
- package/lib/assets/svg/ContainerSvg.vue.d.ts +2 -0
- package/lib/assets/svg/ContainerSvg.vue.js +28 -0
- package/lib/assets/svg/InfoCircleSvg.vue.d.ts +2 -0
- package/lib/assets/svg/InfoCircleSvg.vue.js +30 -0
- package/lib/assets/svg/InfoSvg.vue.d.ts +2 -0
- package/lib/assets/svg/InfoSvg.vue.js +29 -0
- package/lib/assets/svg/UploadSvg.vue.d.ts +2 -0
- package/lib/assets/svg/UploadSvg.vue.js +28 -0
- package/lib/common/const.d.ts +34 -0
- package/lib/common/const.js +55 -0
- package/lib/common/entity.d.ts +118 -0
- package/lib/common/entity.js +32 -0
- package/lib/common/fetch.d.ts +13 -0
- package/lib/common/fetch.js +95 -0
- package/lib/common/request.d.ts +30 -0
- package/lib/common/request.js +107 -0
- package/lib/common/subject.d.ts +20 -0
- package/lib/common/subject.js +62 -0
- package/lib/components/alert/MxAlert.css +47 -0
- package/lib/components/alert/MxAlert.vue.d.ts +63 -0
- package/lib/components/alert/MxAlert.vue.js +82 -0
- package/lib/components/alert/index.d.ts +7 -0
- package/lib/components/alert/index.js +6 -0
- package/lib/components/authorizedpermission/AuthorizedPermission.css +14 -0
- package/lib/components/authorizedpermission/AuthorizedPermission.vue.d.ts +10 -0
- package/lib/components/authorizedpermission/AuthorizedPermission.vue.js +50 -0
- package/lib/components/authorizedpermission/index.d.ts +7 -0
- package/lib/components/authorizedpermission/index.js +6 -0
- package/lib/components/basiclayout/BasicLayout.css +44 -0
- package/lib/components/basiclayout/BasicLayout.vue.d.ts +45 -0
- package/lib/components/basiclayout/BasicLayout.vue.js +63 -0
- package/lib/components/basiclayout/index.d.ts +7 -0
- package/lib/components/basiclayout/index.js +6 -0
- package/lib/components/breadcrumb/BreadCrumb.css +20 -0
- package/lib/components/breadcrumb/BreadCrumb.vue.d.ts +53 -0
- package/lib/components/breadcrumb/BreadCrumb.vue.js +123 -0
- package/lib/components/breadcrumb/index.d.ts +7 -0
- package/lib/components/breadcrumb/index.js +6 -0
- package/lib/components/button/MxButton.css +149 -0
- package/lib/components/button/MxButton.vue.d.ts +107 -0
- package/lib/components/button/MxButton.vue.js +75 -0
- package/lib/components/button/index.d.ts +7 -0
- package/lib/components/button/index.js +6 -0
- package/lib/components/checkbox/MxCheckbox.css +35 -0
- package/lib/components/checkbox/MxCheckbox.vue.d.ts +104 -0
- package/lib/components/checkbox/MxCheckbox.vue.js +34 -0
- package/lib/components/checkbox/MxCheckboxGroup.vue.d.ts +43 -0
- package/lib/components/checkbox/MxCheckboxGroup.vue.js +25 -0
- package/lib/components/checkbox/index.d.ts +351 -0
- package/lib/components/checkbox/index.js +16 -0
- package/lib/components/datePicker/MxDatePicker.css +586 -0
- package/lib/components/datePicker/MxDatePicker.vue.d.ts +49 -0
- package/lib/components/datePicker/MxDatePicker.vue.js +78 -0
- package/lib/components/datePicker/index.d.ts +7 -0
- package/lib/components/datePicker/index.js +6 -0
- package/lib/components/dialog/MxDialog.css +62 -0
- package/lib/components/dialog/MxDialog.vue.d.ts +164 -0
- package/lib/components/dialog/MxDialog.vue.js +89 -0
- package/lib/components/dialog/index.d.ts +7 -0
- package/lib/components/dialog/index.js +6 -0
- package/lib/components/dropdown/MxDropdown.css +30 -0
- package/lib/components/dropdown/MxDropdown.vue.d.ts +71 -0
- package/lib/components/dropdown/MxDropdown.vue.js +96 -0
- package/lib/components/dropdown/index.d.ts +7 -0
- package/lib/components/dropdown/index.js +6 -0
- package/lib/components/ellipsisSpan/MxEllipsisSpan.css +3 -0
- package/lib/components/ellipsisSpan/MxEllipsisSpan.vue.d.ts +42 -0
- package/lib/components/ellipsisSpan/MxEllipsisSpan.vue.js +69 -0
- package/lib/components/ellipsisSpan/index.d.ts +7 -0
- package/lib/components/ellipsisSpan/index.js +6 -0
- package/lib/components/empty/MxEmpty.css +10 -0
- package/lib/components/empty/MxEmpty.vue.d.ts +7 -0
- package/lib/components/empty/MxEmpty.vue.js +35 -0
- package/lib/components/empty/index.d.ts +7 -0
- package/lib/components/empty/index.js +6 -0
- package/lib/components/form/MxForm.css +26 -0
- package/lib/components/form/MxForm.vue.d.ts +123 -0
- package/lib/components/form/MxForm.vue.js +98 -0
- package/lib/components/form/MxFormItem.css +23 -0
- package/lib/components/form/MxFormItem.vue.d.ts +94 -0
- package/lib/components/form/MxFormItem.vue.js +63 -0
- package/lib/components/form/index.d.ts +242 -0
- package/lib/components/form/index.js +11 -0
- package/lib/components/headnavigation/HeadNavigation.css +144 -0
- package/lib/components/headnavigation/HeadNavigation.vue.d.ts +45 -0
- package/lib/components/headnavigation/HeadNavigation.vue.js +200 -0
- package/lib/components/headnavigation/MenuBar.css +113 -0
- package/lib/components/headnavigation/MenuBar.vue.d.ts +35 -0
- package/lib/components/headnavigation/MenuBar.vue.js +30 -0
- package/lib/components/headnavigation/index.d.ts +7 -0
- package/lib/components/headnavigation/index.js +6 -0
- package/lib/components/index.d.ts +38 -0
- package/lib/components/index.js +175 -0
- package/lib/components/input/MxInput.css +54 -0
- package/lib/components/input/MxInput.vue.d.ts +7 -0
- package/lib/components/input/MxInput.vue.js +23 -0
- package/lib/components/input/index.d.ts +7 -0
- package/lib/components/input/index.js +6 -0
- package/lib/components/message/index.d.ts +7 -0
- package/lib/components/message/index.js +12 -0
- package/lib/components/message/message.css +31 -0
- package/lib/components/message/message.d.ts +4 -0
- package/lib/components/message/message.js +41 -0
- package/lib/components/messageBox/index.d.ts +7 -0
- package/lib/components/messageBox/index.js +13 -0
- package/lib/components/messageBox/message.vue.d.ts +48 -0
- package/lib/components/messageBox/message.vue.js +57 -0
- package/lib/components/messageBox/messageBox.css +160 -0
- package/lib/components/messageBox/messageBox.d.ts +4 -0
- package/lib/components/messageBox/messageBox.js +38 -0
- package/lib/components/notification/index.d.ts +3 -0
- package/lib/components/notification/index.js +6 -0
- package/lib/components/notification/notification.css +58 -0
- package/lib/components/notification/notification.d.ts +4 -0
- package/lib/components/notification/notification.js +27 -0
- package/lib/components/pagination/MxPagination.css +110 -0
- package/lib/components/pagination/MxPagination.vue.d.ts +38 -0
- package/lib/components/pagination/MxPagination.vue.js +52 -0
- package/lib/components/pagination/index.d.ts +7 -0
- package/lib/components/pagination/index.js +6 -0
- package/lib/components/popconfirm/MxPopconfirm.css +26 -0
- package/lib/components/popconfirm/MxPopconfirm.vue.d.ts +51 -0
- package/lib/components/popconfirm/MxPopconfirm.vue.js +91 -0
- package/lib/components/popconfirm/index.d.ts +7 -0
- package/lib/components/popconfirm/index.js +6 -0
- package/lib/components/radio/MxRadio.css +33 -0
- package/lib/components/radio/MxRadio.vue.d.ts +36 -0
- package/lib/components/radio/MxRadio.vue.js +34 -0
- package/lib/components/radio/MxRadioButton.css +37 -0
- package/lib/components/radio/MxRadioButton.vue.d.ts +31 -0
- package/lib/components/radio/MxRadioButton.vue.js +32 -0
- package/lib/components/radio/MxRadioGroup.vue.d.ts +45 -0
- package/lib/components/radio/MxRadioGroup.vue.js +25 -0
- package/lib/components/radio/index.d.ts +302 -0
- package/lib/components/radio/index.js +15 -0
- package/lib/components/select/MxOption.vue.d.ts +7 -0
- package/lib/components/select/MxOption.vue.js +25 -0
- package/lib/components/select/MxOptionGroup.vue.d.ts +7 -0
- package/lib/components/select/MxOptionGroup.vue.js +22 -0
- package/lib/components/select/MxSelect.css +91 -0
- package/lib/components/select/MxSelect.vue.d.ts +7 -0
- package/lib/components/select/MxSelect.vue.js +42 -0
- package/lib/components/select/index.d.ts +191 -0
- package/lib/components/select/index.js +15 -0
- package/lib/components/sidermenu/HambShow.css +65 -0
- package/lib/components/sidermenu/HambShow.vue.d.ts +16 -0
- package/lib/components/sidermenu/HambShow.vue.js +75 -0
- package/lib/components/sidermenu/SiderMenu.css +94 -0
- package/lib/components/sidermenu/SiderMenu.vue.d.ts +46 -0
- package/lib/components/sidermenu/SiderMenu.vue.js +245 -0
- package/lib/components/sidermenu/index.d.ts +7 -0
- package/lib/components/sidermenu/index.js +6 -0
- package/lib/components/slider/MxSlider.css +54 -0
- package/lib/components/slider/MxSlider.vue.d.ts +32 -0
- package/lib/components/slider/MxSlider.vue.js +38 -0
- package/lib/components/slider/index.d.ts +7 -0
- package/lib/components/slider/index.js +6 -0
- package/lib/components/steps/MxStep.css +572 -0
- package/lib/components/steps/MxStep.vue.d.ts +7 -0
- package/lib/components/steps/MxStep.vue.js +29 -0
- package/lib/components/steps/MxSteps.vue.d.ts +29 -0
- package/lib/components/steps/MxSteps.vue.js +39 -0
- package/lib/components/steps/index.d.ts +99 -0
- package/lib/components/steps/index.js +11 -0
- package/lib/components/switch/MxSwitch.css +49 -0
- package/lib/components/switch/MxSwitch.vue.d.ts +2 -0
- package/lib/components/switch/MxSwitch.vue.js +22 -0
- package/lib/components/switch/index.d.ts +7 -0
- package/lib/components/switch/index.js +6 -0
- package/lib/components/switchstaff/CustomSvg.vue.d.ts +2 -0
- package/lib/components/switchstaff/CustomSvg.vue.js +27 -0
- package/lib/components/switchstaff/SwitchStaff.css +132 -0
- package/lib/components/switchstaff/SwitchStaff.vue.d.ts +32 -0
- package/lib/components/switchstaff/SwitchStaff.vue.js +120 -0
- package/lib/components/switchstaff/WarnSvg.vue.d.ts +2 -0
- package/lib/components/switchstaff/WarnSvg.vue.js +27 -0
- package/lib/components/switchstaff/index.d.ts +7 -0
- package/lib/components/switchstaff/index.js +6 -0
- package/lib/components/systemcontent/SystemContent.css +28 -0
- package/lib/components/systemcontent/SystemContent.vue.d.ts +51 -0
- package/lib/components/systemcontent/SystemContent.vue.js +90 -0
- package/lib/components/systemcontent/index.d.ts +7 -0
- package/lib/components/systemcontent/index.js +6 -0
- package/lib/components/table/MxTable.css +190 -0
- package/lib/components/table/MxTable.vue.d.ts +37 -0
- package/lib/components/table/MxTable.vue.js +62 -0
- package/lib/components/table/MxTableColumn.css +31 -0
- package/lib/components/table/MxTableColumn.vue.d.ts +11 -0
- package/lib/components/table/MxTableColumn.vue.js +27 -0
- package/lib/components/table/index.d.ts +103 -0
- package/lib/components/table/index.js +11 -0
- package/lib/components/tabs/MxTabPane.vue.d.ts +7 -0
- package/lib/components/tabs/MxTabPane.vue.js +25 -0
- package/lib/components/tabs/MxTabs.css +132 -0
- package/lib/components/tabs/MxTabs.vue.d.ts +37 -0
- package/lib/components/tabs/MxTabs.vue.js +43 -0
- package/lib/components/tag/MxTag.css +84 -0
- package/lib/components/tag/MxTag.vue.d.ts +40 -0
- package/lib/components/tag/MxTag.vue.js +95 -0
- package/lib/components/tag/index.d.ts +7 -0
- package/lib/components/tag/index.js +6 -0
- package/lib/components/timePicker/MxTimePicker.css +180 -0
- package/lib/components/timePicker/MxTimePicker.vue.d.ts +49 -0
- package/lib/components/timePicker/MxTimePicker.vue.js +78 -0
- package/lib/components/timePicker/index.d.ts +7 -0
- package/lib/components/timePicker/index.js +6 -0
- package/lib/components/tooltip/MxTooltip.css +17 -0
- package/lib/components/tooltip/MxTooltip.vue.d.ts +7 -0
- package/lib/components/tooltip/MxTooltip.vue.js +23 -0
- package/lib/components/tooltip/index.d.ts +7 -0
- package/lib/components/tooltip/index.js +6 -0
- package/lib/components/tree/MxTree.css +56 -0
- package/lib/components/tree/MxTree.vue.d.ts +7 -0
- package/lib/components/tree/MxTree.vue.js +26 -0
- package/lib/components/tree/index.d.ts +7 -0
- package/lib/components/tree/index.js +6 -0
- package/lib/components/treeselect/MxTreeSelect.css +111 -0
- package/lib/components/treeselect/MxTreeSelect.vue.d.ts +7 -0
- package/lib/components/treeselect/MxTreeSelect.vue.js +34 -0
- package/lib/components/treeselect/index.d.ts +7 -0
- package/lib/components/treeselect/index.js +6 -0
- package/lib/components/upload/MxUpload.css +111 -0
- package/lib/components/upload/MxUpload.vue.d.ts +111 -0
- package/lib/components/upload/MxUpload.vue.js +310 -0
- package/lib/components/upload/index.d.ts +7 -0
- package/lib/components/upload/index.js +6 -0
- package/lib/components/upload/upload.d.ts +139 -0
- package/lib/components/upload/upload.js +11 -0
- package/lib/components/upload/uploadList.css +70 -0
- package/lib/components/upload/uploadList.vue.d.ts +15 -0
- package/lib/components/upload/uploadList.vue.js +117 -0
- package/lib/components/upload/use-handlers.d.ts +13 -0
- package/lib/components/upload/use-handlers.js +54 -0
- package/lib/components/usercontent/ArrowSvg.vue.d.ts +2 -0
- package/lib/components/usercontent/ArrowSvg.vue.js +27 -0
- package/lib/components/usercontent/UserContent.css +53 -0
- package/lib/components/usercontent/UserContent.vue.d.ts +28 -0
- package/lib/components/usercontent/UserContent.vue.js +133 -0
- package/lib/components/usercontent/UserSvg.vue.d.ts +2 -0
- package/lib/components/usercontent/UserSvg.vue.js +28 -0
- package/lib/components/usercontent/index.d.ts +7 -0
- package/lib/components/usercontent/index.js +6 -0
- package/lib/constants/const.d.ts +1 -0
- package/lib/constants/const.js +4 -0
- package/lib/constants/index.d.ts +2 -0
- package/lib/constants/index.js +21 -0
- package/lib/env.d.ts +30 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +82 -0
- package/lib/utils/hooks.d.ts +23 -0
- package/lib/utils/hooks.js +126 -0
- package/lib/utils/index.d.ts +3 -0
- package/lib/utils/index.js +6 -0
- package/lib/utils/lib.d.ts +9 -0
- package/lib/utils/lib.js +102 -0
- package/lib/utils/micro.d.ts +12 -0
- package/lib/utils/micro.js +128 -0
- package/package.json +8 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, Partial<Record<string | number
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, Partial<Record<NonNullable<string | number>, (_: {}) => any>>>;
|
|
2
2
|
export default _default;
|
|
3
|
-
|
|
3
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
4
4
|
new (): {
|
|
5
5
|
$slots: S;
|
|
6
6
|
};
|
|
@@ -104,7 +104,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
104
104
|
file?(_: {}): any;
|
|
105
105
|
}>;
|
|
106
106
|
export default _default;
|
|
107
|
-
|
|
107
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
108
108
|
new (): {
|
|
109
109
|
$slots: S;
|
|
110
110
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { UploadFile as ElUploadFile, UploadListProps as ElUploadListProps, UploadProps as ElUploadProps, UploadRawFile as ElUploadRawFile } from 'element-plus';
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
3
|
+
export type UploadFile = ElUploadFile;
|
|
4
|
+
export type UploadFiles = UploadFile[];
|
|
5
|
+
export type UploadListProps = ElUploadListProps;
|
|
6
|
+
export type UploadRawFile = ElUploadRawFile;
|
|
7
|
+
export type UploadProps = ElUploadProps;
|
|
8
8
|
export declare const uploadListEmits: {
|
|
9
9
|
remove: (file: ElUploadFile) => boolean;
|
|
10
10
|
};
|
|
@@ -132,7 +132,7 @@ export declare const uploadProps: {
|
|
|
132
132
|
readonly disabled: BooleanConstructor;
|
|
133
133
|
readonly limit: NumberConstructor;
|
|
134
134
|
};
|
|
135
|
-
export
|
|
135
|
+
export type FileSpec = {
|
|
136
136
|
width?: number;
|
|
137
137
|
height?: number;
|
|
138
138
|
};
|
|
@@ -3,7 +3,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
type: import("vue").PropType<import("element-plus").UploadFile>;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("preview" | "remove")[], "preview" | "remove", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
7
|
file: {
|
|
8
8
|
type: import("vue").PropType<import("element-plus").UploadFile>;
|
|
9
9
|
required: true;
|
|
@@ -9,8 +9,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
9
9
|
customClass: string;
|
|
10
10
|
}, {}>;
|
|
11
11
|
export default _default;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
14
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
15
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
16
|
} : {
|
|
@@ -18,11 +18,11 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
18
18
|
required: true;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
|
|
21
|
+
type __VLS_WithDefaults<P, D> = {
|
|
22
22
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
23
23
|
default: D[K];
|
|
24
24
|
}> : P[K];
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
type __VLS_Prettify<T> = {
|
|
27
27
|
[K in keyof T]: T[K];
|
|
28
28
|
} & {};
|
package/es/api/staff.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MenuItemProps } from '../common/entity';
|
|
2
|
+
export declare function combineURL(origin: string, relativeURL?: string): string;
|
|
3
|
+
export declare function getTenantMenuList(): import("../common/request").PromiseWithErrorHandler<MenuItemProps[]>;
|
|
4
|
+
export declare function getIntegratedAuthority(): import("../common/request").PromiseWithErrorHandler<string[]>;
|
package/es/api/tenant.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { fetch } from "../common/request";
|
|
2
|
+
function combineURL(origin, relativeURL) {
|
|
3
|
+
return relativeURL ? (origin ?? "").replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : origin;
|
|
4
|
+
}
|
|
5
|
+
function getTenantMenuList() {
|
|
6
|
+
return fetch("/api/getStaffNavigation");
|
|
7
|
+
}
|
|
8
|
+
function getIntegratedAuthority() {
|
|
9
|
+
return fetch("/api/getIntegratedAuthority");
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
combineURL,
|
|
13
|
+
getIntegratedAuthority,
|
|
14
|
+
getTenantMenuList
|
|
15
|
+
};
|
package/es/api/user.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PlatformTitleType } from '../common/entity';
|
|
2
|
+
export interface UserInfo {
|
|
3
|
+
name?: string;
|
|
4
|
+
headPic?: string;
|
|
5
|
+
currentStaffId?: number;
|
|
6
|
+
username?: string;
|
|
7
|
+
sessionId?: string;
|
|
8
|
+
tenantUuid?: string;
|
|
9
|
+
userId?: string;
|
|
10
|
+
logoUrl?: string;
|
|
11
|
+
navigationPreference?: number;
|
|
12
|
+
navigationId?: number | null;
|
|
13
|
+
currentId?: number | null;
|
|
14
|
+
iconUrl?: string;
|
|
15
|
+
platformTitleType?: PlatformTitleType;
|
|
16
|
+
platformName?: string;
|
|
17
|
+
platformSloganName?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function getCurrent(): Promise<UserInfo>;
|
|
20
|
+
export interface UserConfig {
|
|
21
|
+
customerUrl?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function getConfig(): Promise<UserConfig | null>;
|
|
24
|
+
export declare function logout(): Promise<void>;
|
package/es/api/user.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { fetch } from "../common/request";
|
|
2
|
+
function getCurrent() {
|
|
3
|
+
return fetch("/api/getUserInfo");
|
|
4
|
+
}
|
|
5
|
+
function getConfig() {
|
|
6
|
+
return fetch("/api/getConfig").then((res) => {
|
|
7
|
+
return res;
|
|
8
|
+
}).catch(() => {
|
|
9
|
+
console.error("获取后端配置customerUrl失败,请检查");
|
|
10
|
+
return null;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function logout() {
|
|
14
|
+
return fetch("/server/logout");
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
getConfig,
|
|
18
|
+
getCurrent,
|
|
19
|
+
logout
|
|
20
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
+
const _export_sfc = (sfc, props) => {
|
|
3
|
+
const target = sfc.__vccOpts || sfc;
|
|
4
|
+
for (const [key, val] of props) {
|
|
5
|
+
target[key] = val;
|
|
6
|
+
}
|
|
7
|
+
return target;
|
|
8
|
+
};
|
|
9
|
+
const _sfc_main = {};
|
|
10
|
+
const _hoisted_1 = {
|
|
11
|
+
viewBox: "64 64 896 896",
|
|
12
|
+
focusable: "false",
|
|
13
|
+
"data-icon": "container",
|
|
14
|
+
width: "1em",
|
|
15
|
+
height: "1em",
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
"aria-hidden": "true"
|
|
18
|
+
};
|
|
19
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("path", { d: "M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" }, null, -1);
|
|
20
|
+
const _hoisted_3 = [
|
|
21
|
+
_hoisted_2
|
|
22
|
+
];
|
|
23
|
+
function _sfc_render(_ctx, _cache) {
|
|
24
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, _hoisted_3);
|
|
25
|
+
}
|
|
26
|
+
const ContainerSvg = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
27
|
+
export {
|
|
28
|
+
ContainerSvg as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
+
const _export_sfc = (sfc, props) => {
|
|
3
|
+
const target = sfc.__vccOpts || sfc;
|
|
4
|
+
for (const [key, val] of props) {
|
|
5
|
+
target[key] = val;
|
|
6
|
+
}
|
|
7
|
+
return target;
|
|
8
|
+
};
|
|
9
|
+
const _sfc_main = {};
|
|
10
|
+
const _hoisted_1 = {
|
|
11
|
+
viewBox: "64 64 896 896",
|
|
12
|
+
focusable: "false",
|
|
13
|
+
"data-icon": "info-circle",
|
|
14
|
+
width: "1em",
|
|
15
|
+
height: "1em",
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
"aria-hidden": "true"
|
|
18
|
+
};
|
|
19
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" }, null, -1);
|
|
20
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("path", { d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" }, null, -1);
|
|
21
|
+
const _hoisted_4 = [
|
|
22
|
+
_hoisted_2,
|
|
23
|
+
_hoisted_3
|
|
24
|
+
];
|
|
25
|
+
function _sfc_render(_ctx, _cache) {
|
|
26
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, _hoisted_4);
|
|
27
|
+
}
|
|
28
|
+
const InfoCircleSvg = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
29
|
+
export {
|
|
30
|
+
InfoCircleSvg as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
+
const _export_sfc = (sfc, props) => {
|
|
3
|
+
const target = sfc.__vccOpts || sfc;
|
|
4
|
+
for (const [key, val] of props) {
|
|
5
|
+
target[key] = val;
|
|
6
|
+
}
|
|
7
|
+
return target;
|
|
8
|
+
};
|
|
9
|
+
const _sfc_main = {};
|
|
10
|
+
const _hoisted_1 = {
|
|
11
|
+
viewBox: "64 64 896 896",
|
|
12
|
+
focusable: "false",
|
|
13
|
+
"data-icon": "info-circle",
|
|
14
|
+
width: "1em",
|
|
15
|
+
height: "1em",
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
"aria-hidden": "true",
|
|
18
|
+
color: "#4A90E2"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" }, null, -1);
|
|
21
|
+
const _hoisted_3 = [
|
|
22
|
+
_hoisted_2
|
|
23
|
+
];
|
|
24
|
+
function _sfc_render(_ctx, _cache) {
|
|
25
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, _hoisted_3);
|
|
26
|
+
}
|
|
27
|
+
const InfoSvg = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
28
|
+
export {
|
|
29
|
+
InfoSvg as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
+
const _export_sfc = (sfc, props) => {
|
|
3
|
+
const target = sfc.__vccOpts || sfc;
|
|
4
|
+
for (const [key, val] of props) {
|
|
5
|
+
target[key] = val;
|
|
6
|
+
}
|
|
7
|
+
return target;
|
|
8
|
+
};
|
|
9
|
+
const _sfc_main = {};
|
|
10
|
+
const _hoisted_1 = {
|
|
11
|
+
viewBox: "64 64 896 896",
|
|
12
|
+
focusable: "false",
|
|
13
|
+
"data-icon": "upload",
|
|
14
|
+
width: "1em",
|
|
15
|
+
height: "1em",
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
"aria-hidden": "true"
|
|
18
|
+
};
|
|
19
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("path", { d: "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" }, null, -1);
|
|
20
|
+
const _hoisted_3 = [
|
|
21
|
+
_hoisted_2
|
|
22
|
+
];
|
|
23
|
+
function _sfc_render(_ctx, _cache) {
|
|
24
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, _hoisted_3);
|
|
25
|
+
}
|
|
26
|
+
const UploadSvg = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
27
|
+
export {
|
|
28
|
+
UploadSvg as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare enum UserStatus {
|
|
2
|
+
ENABLE = 0,
|
|
3
|
+
DISABLE = 1,
|
|
4
|
+
FREEZE = 2
|
|
5
|
+
}
|
|
6
|
+
export declare enum Gender {
|
|
7
|
+
MALE = 0,
|
|
8
|
+
FEMALE = 1
|
|
9
|
+
}
|
|
10
|
+
export declare enum PermissionType {
|
|
11
|
+
MENU = "p",
|
|
12
|
+
BUTTON = "b"
|
|
13
|
+
}
|
|
14
|
+
export declare enum MenuLevel {
|
|
15
|
+
ONE = 1,
|
|
16
|
+
TWO = 2,
|
|
17
|
+
THREE = 3
|
|
18
|
+
}
|
|
19
|
+
export declare enum MenuOpenType {
|
|
20
|
+
CurrentPage = 0,
|
|
21
|
+
NewPage = 1,
|
|
22
|
+
CurrentPageForce = 2
|
|
23
|
+
}
|
|
24
|
+
export declare enum TenantMenuJumpType {
|
|
25
|
+
WITHINSYSTEM = 1,
|
|
26
|
+
CUSTOMIZATIONWITHINSYSTEM = 2,
|
|
27
|
+
OUTSIDESYSTEM = 3
|
|
28
|
+
}
|
|
29
|
+
export declare enum TenantMenuPermissionType {
|
|
30
|
+
PLATFORM = 1,
|
|
31
|
+
INTEGRATEDAPP = 2,
|
|
32
|
+
NOPERMISSION = 3
|
|
33
|
+
}
|
|
34
|
+
export declare const envMap: Record<string, string>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
|
|
2
|
+
UserStatus2[UserStatus2["ENABLE"] = 0] = "ENABLE";
|
|
3
|
+
UserStatus2[UserStatus2["DISABLE"] = 1] = "DISABLE";
|
|
4
|
+
UserStatus2[UserStatus2["FREEZE"] = 2] = "FREEZE";
|
|
5
|
+
return UserStatus2;
|
|
6
|
+
})(UserStatus || {});
|
|
7
|
+
var Gender = /* @__PURE__ */ ((Gender2) => {
|
|
8
|
+
Gender2[Gender2["MALE"] = 0] = "MALE";
|
|
9
|
+
Gender2[Gender2["FEMALE"] = 1] = "FEMALE";
|
|
10
|
+
return Gender2;
|
|
11
|
+
})(Gender || {});
|
|
12
|
+
var PermissionType = /* @__PURE__ */ ((PermissionType2) => {
|
|
13
|
+
PermissionType2["MENU"] = "p";
|
|
14
|
+
PermissionType2["BUTTON"] = "b";
|
|
15
|
+
return PermissionType2;
|
|
16
|
+
})(PermissionType || {});
|
|
17
|
+
var MenuLevel = /* @__PURE__ */ ((MenuLevel2) => {
|
|
18
|
+
MenuLevel2[MenuLevel2["ONE"] = 1] = "ONE";
|
|
19
|
+
MenuLevel2[MenuLevel2["TWO"] = 2] = "TWO";
|
|
20
|
+
MenuLevel2[MenuLevel2["THREE"] = 3] = "THREE";
|
|
21
|
+
return MenuLevel2;
|
|
22
|
+
})(MenuLevel || {});
|
|
23
|
+
var MenuOpenType = /* @__PURE__ */ ((MenuOpenType2) => {
|
|
24
|
+
MenuOpenType2[MenuOpenType2["CurrentPage"] = 0] = "CurrentPage";
|
|
25
|
+
MenuOpenType2[MenuOpenType2["NewPage"] = 1] = "NewPage";
|
|
26
|
+
MenuOpenType2[MenuOpenType2["CurrentPageForce"] = 2] = "CurrentPageForce";
|
|
27
|
+
return MenuOpenType2;
|
|
28
|
+
})(MenuOpenType || {});
|
|
29
|
+
var TenantMenuJumpType = /* @__PURE__ */ ((TenantMenuJumpType2) => {
|
|
30
|
+
TenantMenuJumpType2[TenantMenuJumpType2["WITHINSYSTEM"] = 1] = "WITHINSYSTEM";
|
|
31
|
+
TenantMenuJumpType2[TenantMenuJumpType2["CUSTOMIZATIONWITHINSYSTEM"] = 2] = "CUSTOMIZATIONWITHINSYSTEM";
|
|
32
|
+
TenantMenuJumpType2[TenantMenuJumpType2["OUTSIDESYSTEM"] = 3] = "OUTSIDESYSTEM";
|
|
33
|
+
return TenantMenuJumpType2;
|
|
34
|
+
})(TenantMenuJumpType || {});
|
|
35
|
+
var TenantMenuPermissionType = /* @__PURE__ */ ((TenantMenuPermissionType2) => {
|
|
36
|
+
TenantMenuPermissionType2[TenantMenuPermissionType2["PLATFORM"] = 1] = "PLATFORM";
|
|
37
|
+
TenantMenuPermissionType2[TenantMenuPermissionType2["INTEGRATEDAPP"] = 2] = "INTEGRATEDAPP";
|
|
38
|
+
TenantMenuPermissionType2[TenantMenuPermissionType2["NOPERMISSION"] = 3] = "NOPERMISSION";
|
|
39
|
+
return TenantMenuPermissionType2;
|
|
40
|
+
})(TenantMenuPermissionType || {});
|
|
41
|
+
const envMap = {
|
|
42
|
+
s35: "https://cc.s35.test.maxtropy.com",
|
|
43
|
+
test: "https://cc.test.maxtropy.com",
|
|
44
|
+
cloud: "https://cc.cloud.maxtropy.com"
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
Gender,
|
|
48
|
+
MenuLevel,
|
|
49
|
+
MenuOpenType,
|
|
50
|
+
PermissionType,
|
|
51
|
+
TenantMenuJumpType,
|
|
52
|
+
TenantMenuPermissionType,
|
|
53
|
+
UserStatus,
|
|
54
|
+
envMap
|
|
55
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { UserStatus, Gender } from './const';
|
|
2
|
+
export declare enum NavigationPreference {
|
|
3
|
+
AUTO = 1,
|
|
4
|
+
OPEN = 2,
|
|
5
|
+
HIDE = 3
|
|
6
|
+
}
|
|
7
|
+
export interface Customer {
|
|
8
|
+
mcid: string;
|
|
9
|
+
name: string;
|
|
10
|
+
fullName: string;
|
|
11
|
+
uscc?: string;
|
|
12
|
+
address?: string;
|
|
13
|
+
phone?: string;
|
|
14
|
+
contactName?: string;
|
|
15
|
+
adCode: string;
|
|
16
|
+
logoUrl?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
username?: string;
|
|
19
|
+
contactPhone: string;
|
|
20
|
+
createTime: string;
|
|
21
|
+
updateTime: string;
|
|
22
|
+
}
|
|
23
|
+
export interface Staff {
|
|
24
|
+
id: number;
|
|
25
|
+
mcid: string;
|
|
26
|
+
muid: string;
|
|
27
|
+
admin: boolean;
|
|
28
|
+
createTime: string;
|
|
29
|
+
updateTime: string;
|
|
30
|
+
status: UserStatus;
|
|
31
|
+
staffCode: string;
|
|
32
|
+
iconUrl?: string;
|
|
33
|
+
platformTitleType?: PlatformTitleType;
|
|
34
|
+
platformName?: string;
|
|
35
|
+
homePageLogoUrl?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface StaffProps {
|
|
38
|
+
customerName: string;
|
|
39
|
+
customerFullName: string;
|
|
40
|
+
id: number;
|
|
41
|
+
muid: string;
|
|
42
|
+
mcid: string;
|
|
43
|
+
staffCode?: string;
|
|
44
|
+
tenantMcid: string;
|
|
45
|
+
tenantName: string;
|
|
46
|
+
customerMcid: string;
|
|
47
|
+
}
|
|
48
|
+
export interface CustomerUser {
|
|
49
|
+
muid: string;
|
|
50
|
+
username: string;
|
|
51
|
+
name: string;
|
|
52
|
+
cellphone: string;
|
|
53
|
+
expired: boolean;
|
|
54
|
+
disabled: boolean;
|
|
55
|
+
status: UserStatus;
|
|
56
|
+
gender: Gender;
|
|
57
|
+
birthday?: string;
|
|
58
|
+
email?: string;
|
|
59
|
+
wechat?: string;
|
|
60
|
+
qq?: string;
|
|
61
|
+
headPic?: string;
|
|
62
|
+
humanCode: string;
|
|
63
|
+
createTime: string;
|
|
64
|
+
updateTime: string;
|
|
65
|
+
passwordUpdateTime: string;
|
|
66
|
+
navigationPreference?: NavigationPreference;
|
|
67
|
+
}
|
|
68
|
+
export interface Tenant {
|
|
69
|
+
mcid: string;
|
|
70
|
+
name: string;
|
|
71
|
+
uscc?: string;
|
|
72
|
+
tenantCode: string;
|
|
73
|
+
}
|
|
74
|
+
export declare enum PlaceType {
|
|
75
|
+
TOP = "top",
|
|
76
|
+
NAVBAR = "navbar"
|
|
77
|
+
}
|
|
78
|
+
export interface IMenu {
|
|
79
|
+
id: number;
|
|
80
|
+
name: string;
|
|
81
|
+
code: string;
|
|
82
|
+
type: string;
|
|
83
|
+
place: PlaceType;
|
|
84
|
+
path: string;
|
|
85
|
+
origin: string;
|
|
86
|
+
}
|
|
87
|
+
export interface MenuEntry {
|
|
88
|
+
name: string;
|
|
89
|
+
url: string;
|
|
90
|
+
key: number | string;
|
|
91
|
+
children?: MenuEntry[];
|
|
92
|
+
always?: boolean;
|
|
93
|
+
origin?: string;
|
|
94
|
+
}
|
|
95
|
+
export declare enum PlatformTitleType {
|
|
96
|
+
PLATFORMNAME = 1,
|
|
97
|
+
NAVIGATIONNAME = 2,
|
|
98
|
+
PLATFORMANDNAVIGATIONNAME = 3
|
|
99
|
+
}
|
|
100
|
+
export interface MenuItemProps {
|
|
101
|
+
currentId: string;
|
|
102
|
+
level: number;
|
|
103
|
+
name: string;
|
|
104
|
+
openType: number;
|
|
105
|
+
parentId: string;
|
|
106
|
+
rootId: string;
|
|
107
|
+
transitPagePath: string | null;
|
|
108
|
+
weighting: number;
|
|
109
|
+
}
|
|
110
|
+
export interface MenuItem extends MenuItemProps {
|
|
111
|
+
children?: MenuItem[];
|
|
112
|
+
}
|
|
113
|
+
export declare enum MicroAppNameEnum {
|
|
114
|
+
WO = "ms-wo"
|
|
115
|
+
}
|
|
116
|
+
export declare enum MicroAppIdEnum {
|
|
117
|
+
WO = 1
|
|
118
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var NavigationPreference = /* @__PURE__ */ ((NavigationPreference2) => {
|
|
2
|
+
NavigationPreference2[NavigationPreference2["AUTO"] = 1] = "AUTO";
|
|
3
|
+
NavigationPreference2[NavigationPreference2["OPEN"] = 2] = "OPEN";
|
|
4
|
+
NavigationPreference2[NavigationPreference2["HIDE"] = 3] = "HIDE";
|
|
5
|
+
return NavigationPreference2;
|
|
6
|
+
})(NavigationPreference || {});
|
|
7
|
+
var PlaceType = /* @__PURE__ */ ((PlaceType2) => {
|
|
8
|
+
PlaceType2["TOP"] = "top";
|
|
9
|
+
PlaceType2["NAVBAR"] = "navbar";
|
|
10
|
+
return PlaceType2;
|
|
11
|
+
})(PlaceType || {});
|
|
12
|
+
var PlatformTitleType = /* @__PURE__ */ ((PlatformTitleType2) => {
|
|
13
|
+
PlatformTitleType2[PlatformTitleType2["PLATFORMNAME"] = 1] = "PLATFORMNAME";
|
|
14
|
+
PlatformTitleType2[PlatformTitleType2["NAVIGATIONNAME"] = 2] = "NAVIGATIONNAME";
|
|
15
|
+
PlatformTitleType2[PlatformTitleType2["PLATFORMANDNAVIGATIONNAME"] = 3] = "PLATFORMANDNAVIGATIONNAME";
|
|
16
|
+
return PlatformTitleType2;
|
|
17
|
+
})(PlatformTitleType || {});
|
|
18
|
+
var MicroAppNameEnum = /* @__PURE__ */ ((MicroAppNameEnum2) => {
|
|
19
|
+
MicroAppNameEnum2["WO"] = "ms-wo";
|
|
20
|
+
return MicroAppNameEnum2;
|
|
21
|
+
})(MicroAppNameEnum || {});
|
|
22
|
+
var MicroAppIdEnum = /* @__PURE__ */ ((MicroAppIdEnum2) => {
|
|
23
|
+
MicroAppIdEnum2[MicroAppIdEnum2["WO"] = 1] = "WO";
|
|
24
|
+
return MicroAppIdEnum2;
|
|
25
|
+
})(MicroAppIdEnum || {});
|
|
26
|
+
export {
|
|
27
|
+
MicroAppIdEnum,
|
|
28
|
+
MicroAppNameEnum,
|
|
29
|
+
NavigationPreference,
|
|
30
|
+
PlaceType,
|
|
31
|
+
PlatformTitleType
|
|
32
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import 'element-plus/es/components/message-box/style/css';
|
|
2
|
+
import { Subscription } from 'rxjs';
|
|
3
|
+
export declare function fetch<T>(input: RequestInfo, init?: RequestInit): Promise<T>;
|
|
4
|
+
export declare class ResponseCodeError extends Error {
|
|
5
|
+
readonly status: number;
|
|
6
|
+
readonly errorType?: string;
|
|
7
|
+
readonly errorMessage?: string;
|
|
8
|
+
readonly body?: any;
|
|
9
|
+
constructor(status: number, errorType?: string, errorMessage?: string, body?: any);
|
|
10
|
+
static getMessage(err: any): string | undefined;
|
|
11
|
+
static getMessage(err: any, defaultMessage: string): string;
|
|
12
|
+
}
|
|
13
|
+
export declare function observeHttpStatus(listener: (status: number) => void): Subscription;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
import { ElMessageBox } from "element-plus";
|
|
8
|
+
import "element-plus/es/components/message-box/style/css";
|
|
9
|
+
import { Subject } from "rxjs";
|
|
10
|
+
const httpStatusSubject = new Subject();
|
|
11
|
+
async function fetch(input, init) {
|
|
12
|
+
const compoundInit = {
|
|
13
|
+
credentials: "include",
|
|
14
|
+
...init
|
|
15
|
+
};
|
|
16
|
+
if (compoundInit.headers instanceof Headers) {
|
|
17
|
+
if (!compoundInit.headers.has("Accept")) {
|
|
18
|
+
compoundInit.headers.set("Accept", "application/json");
|
|
19
|
+
}
|
|
20
|
+
if (!compoundInit.headers.has("Content-Type") && (init == null ? void 0 : init.body)) {
|
|
21
|
+
compoundInit.headers.set("Content-Type", "application/json;charset=UTF-8");
|
|
22
|
+
}
|
|
23
|
+
if (compoundInit.headers.has("Content-Type") && compoundInit.headers.get("Content-Type") === "multipart/form-data") {
|
|
24
|
+
compoundInit.headers.delete("Content-Type");
|
|
25
|
+
}
|
|
26
|
+
} else {
|
|
27
|
+
const defaultHeaders = {
|
|
28
|
+
Accept: "application/json"
|
|
29
|
+
};
|
|
30
|
+
if (init == null ? void 0 : init.body) {
|
|
31
|
+
defaultHeaders["Content-Type"] = "application/json;charset=UTF-8";
|
|
32
|
+
}
|
|
33
|
+
compoundInit.headers = {
|
|
34
|
+
...defaultHeaders,
|
|
35
|
+
...compoundInit.headers
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
const response = await window.fetch(input, compoundInit);
|
|
39
|
+
httpStatusSubject.next(response.status);
|
|
40
|
+
const text = await response.text();
|
|
41
|
+
let body = void 0;
|
|
42
|
+
if (text) {
|
|
43
|
+
body = JSON.parse(text);
|
|
44
|
+
}
|
|
45
|
+
if (!response.ok) {
|
|
46
|
+
throw new ResponseCodeError(response.status, body == null ? void 0 : body.errorType, body == null ? void 0 : body.errorMessage, body);
|
|
47
|
+
} else {
|
|
48
|
+
if ((body == null ? void 0 : body.code) === 401) {
|
|
49
|
+
const url = new URL(window.location.href);
|
|
50
|
+
url.searchParams.delete("isvAppToken");
|
|
51
|
+
if (process.env.NODE_ENV === "development") {
|
|
52
|
+
ElMessageBox.confirm(
|
|
53
|
+
"<div><div>检测到您尚未登录登录,是否跳转到登录页面?</div><div>注意:在租户端登录后请再次打开当前站点</div></div>",
|
|
54
|
+
"账号登录",
|
|
55
|
+
{
|
|
56
|
+
dangerouslyUseHTMLString: true,
|
|
57
|
+
confirmButtonText: "确定",
|
|
58
|
+
cancelButtonText: "取消",
|
|
59
|
+
type: "warning",
|
|
60
|
+
appendTo: document.body
|
|
61
|
+
}
|
|
62
|
+
).then(() => {
|
|
63
|
+
window.location.assign("/server/landing?to=" + encodeURIComponent(url.toString()));
|
|
64
|
+
});
|
|
65
|
+
} else {
|
|
66
|
+
window.location.assign("/server/landing?to=" + encodeURIComponent(url.toString()));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return body == null ? void 0 : body.data;
|
|
71
|
+
}
|
|
72
|
+
class ResponseCodeError extends Error {
|
|
73
|
+
constructor(status, errorType, errorMessage, body) {
|
|
74
|
+
super();
|
|
75
|
+
__publicField(this, "status");
|
|
76
|
+
__publicField(this, "errorType");
|
|
77
|
+
__publicField(this, "errorMessage");
|
|
78
|
+
__publicField(this, "body");
|
|
79
|
+
this.status = status;
|
|
80
|
+
this.errorType = errorType;
|
|
81
|
+
this.errorMessage = errorMessage;
|
|
82
|
+
this.body = body;
|
|
83
|
+
}
|
|
84
|
+
static getMessage(err, defaultMessage) {
|
|
85
|
+
return err instanceof ResponseCodeError && err.errorMessage || defaultMessage;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function observeHttpStatus(listener) {
|
|
89
|
+
return httpStatusSubject.subscribe(listener);
|
|
90
|
+
}
|
|
91
|
+
export {
|
|
92
|
+
ResponseCodeError,
|
|
93
|
+
fetch,
|
|
94
|
+
observeHttpStatus
|
|
95
|
+
};
|