win-chart 1.0.3 → 1.2.0
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/README.md +15 -0
- package/esm/api/README.md +15 -0
- package/esm/api/index.js +6 -0
- package/esm/api/index.js.map +1 -0
- package/esm/api/layout/index.js +53 -0
- package/esm/api/layout/index.js.map +1 -0
- package/esm/api/request.d.ts +25 -0
- package/esm/api/request.js +89 -0
- package/esm/api/request.js.map +1 -0
- package/esm/api/url-map/index.js +7 -0
- package/esm/api/user/index.js +33 -0
- package/esm/api/user/index.js.map +1 -0
- package/esm/components/FilterContext.d.ts +4 -0
- package/esm/components/FilterContext.js +7 -0
- package/esm/components/FilterContext.js.map +1 -0
- package/esm/components/GlobalStyle.d.ts +2 -0
- package/esm/components/GlobalStyle.js +26 -0
- package/esm/components/GlobalStyle.js.map +1 -0
- package/esm/components/HalfScreenBrowser.d.ts +1 -0
- package/esm/components/HalfScreenBrowser.js +96 -0
- package/esm/components/HalfScreenBrowser.js.map +1 -0
- package/esm/components/ImgBox.d.ts +8 -0
- package/esm/components/ImgBox.js +15 -0
- package/esm/components/ImgBox.js.map +1 -0
- package/esm/components/JumpBtn.d.ts +11 -0
- package/esm/components/JumpBtn.js +40 -0
- package/esm/components/JumpBtn.js.map +1 -0
- package/esm/components/MCardWrapper.d.ts +4 -0
- package/esm/components/MCardWrapper.js +36 -0
- package/esm/components/MCardWrapper.js.map +1 -0
- package/esm/components/NoContent/index.d.ts +10 -0
- package/esm/components/NoContent/index.js +68 -0
- package/esm/components/NoContent/index.js.map +1 -0
- package/esm/components/ResponsiveReactGridLayout.d.ts +4 -0
- package/esm/components/ResponsiveReactGridLayout.js +15 -0
- package/esm/components/ResponsiveReactGridLayout.js.map +1 -0
- package/esm/components/SliderDecoration.d.ts +3 -0
- package/esm/components/SliderDecoration.js +51 -0
- package/esm/components/SliderDecoration.js.map +1 -0
- package/esm/components/VisionUserConfigContext.d.ts +1 -0
- package/esm/components/VisionUserConfigContext.js +4 -0
- package/esm/components/VisionUserConfigContext.js.map +1 -0
- package/esm/components/WinMenu/README.md +11 -0
- package/esm/components/WinMenu/WinHeader.d.ts +3 -0
- package/esm/components/WinMenu/WinHeader.js +15 -0
- package/esm/components/WinMenu/WinHeader.js.map +1 -0
- package/esm/components/WinMenu/components/ExtraBox.d.ts +7 -0
- package/esm/components/WinMenu/components/ExtraBox.js +57 -0
- package/esm/components/WinMenu/components/ExtraBox.js.map +1 -0
- package/esm/components/WinMenu/components/FullMenuBox.d.ts +2 -0
- package/esm/components/WinMenu/components/FullMenuBox.js +67 -0
- package/esm/components/WinMenu/components/FullMenuBox.js.map +1 -0
- package/esm/components/WinMenu/components/FullMenuContainer.d.ts +2 -0
- package/esm/components/WinMenu/components/FullMenuContainer.js +41 -0
- package/esm/components/WinMenu/components/FullMenuContainer.js.map +1 -0
- package/esm/components/WinMenu/components/FullMenuItem.d.ts +7 -0
- package/esm/components/WinMenu/components/FullMenuItem.js +75 -0
- package/esm/components/WinMenu/components/FullMenuItem.js.map +1 -0
- package/esm/components/WinMenu/components/LangSwitch.d.ts +1 -0
- package/esm/components/WinMenu/components/LangSwitch.js +86 -0
- package/esm/components/WinMenu/components/LangSwitch.js.map +1 -0
- package/esm/components/WinMenu/components/LogoBox.d.ts +4 -0
- package/esm/components/WinMenu/components/LogoBox.js +42 -0
- package/esm/components/WinMenu/components/LogoBox.js.map +1 -0
- package/esm/components/WinMenu/components/PinDialog.d.ts +9 -0
- package/esm/components/WinMenu/components/PinDialog.js +56 -0
- package/esm/components/WinMenu/components/PinDialog.js.map +1 -0
- package/esm/components/WinMenu/components/PinnedMenuBox.d.ts +11 -0
- package/esm/components/WinMenu/components/PinnedMenuBox.js +188 -0
- package/esm/components/WinMenu/components/PinnedMenuBox.js.map +1 -0
- package/esm/components/WinMenu/components/UserBox.d.ts +2 -0
- package/esm/components/WinMenu/components/UserBox.js +87 -0
- package/esm/components/WinMenu/components/UserBox.js.map +1 -0
- package/esm/components/WinMenu/hooks/useUserInfo.d.ts +2 -0
- package/esm/components/WinMenu/hooks/useUserInfo.js +52 -0
- package/esm/components/WinMenu/hooks/useUserInfo.js.map +1 -0
- package/esm/components/WinMenu/hooks/useUserMenu.d.ts +8 -0
- package/esm/components/WinMenu/hooks/useUserMenu.js +73 -0
- package/esm/components/WinMenu/hooks/useUserMenu.js.map +1 -0
- package/esm/components/WinMenu/index.d.ts +7 -0
- package/esm/components/WinMenu/index.js +151 -0
- package/esm/components/WinMenu/index.js.map +1 -0
- package/esm/components/WinMenu/services/WinService.d.ts +24 -0
- package/esm/components/WinMenu/services/WinService.js +155 -0
- package/esm/components/WinMenu/services/WinService.js.map +1 -0
- package/esm/components/WinMenu/services/request.d.ts +2 -0
- package/esm/components/WinMenu/services/request.js +60 -0
- package/esm/components/WinMenu/services/request.js.map +1 -0
- package/esm/components/WinMenu/utils/const.d.ts +36 -0
- package/esm/components/WinMenu/utils/const.js +52 -0
- package/esm/components/WinMenu/utils/enum.d.ts +17 -0
- package/esm/components/WinMenu/utils/enum.js +14 -0
- package/esm/components/WinMenu/utils/interface.d.ts +54 -0
- package/esm/components/WinMenu/utils/interface.js +3 -0
- package/esm/components/WinMenu/utils/map.d.ts +14 -0
- package/esm/components/WinMenu/utils/map.js +37 -0
- package/esm/components/WinMenu/utils/map.js.map +1 -0
- package/esm/components/WinMenu/utils/tool.d.ts +70 -0
- package/esm/components/WinMenu/utils/tool.js +154 -0
- package/esm/components/WinMenu/utils/tool.js.map +1 -0
- package/esm/components/WinMenu/utils/type.d.ts +1 -0
- package/esm/components/WinMenu/utils/type.js +1 -0
- package/esm/components/hover-view.d.ts +11 -0
- package/esm/components/hover-view.js +27 -0
- package/esm/components/hover-view.js.map +1 -0
- package/esm/components/icon.d.ts +11 -0
- package/esm/components/icon.js +36 -0
- package/esm/components/icon.js.map +1 -0
- package/esm/components/indicator-remark.d.ts +6 -0
- package/esm/components/indicator-remark.js +20 -0
- package/esm/components/indicator-remark.js.map +1 -0
- package/esm/components/none-content.d.ts +11 -0
- package/esm/components/none-content.js +70 -0
- package/esm/components/none-content.js.map +1 -0
- package/esm/components/panel-tab.d.ts +15 -0
- package/esm/components/panel-tab.js +160 -0
- package/esm/components/panel-tab.js.map +1 -0
- package/esm/components/panel-title-tab.d.ts +12 -0
- package/esm/components/panel-title-tab.js +40 -0
- package/esm/components/panel-title-tab.js.map +1 -0
- package/esm/components/win-card/components/ChartContent.d.ts +8 -0
- package/esm/components/win-card/components/ChartContent.js +36 -0
- package/esm/components/win-card/components/ChartContent.js.map +1 -0
- package/esm/components/win-card/components/Indicator.d.ts +2 -0
- package/esm/components/win-card/components/Indicator.js +40 -0
- package/esm/components/win-card/components/Indicator.js.map +1 -0
- package/esm/components/win-card/components/IndicatorArea.d.ts +2 -0
- package/esm/components/win-card/components/IndicatorArea.js +57 -0
- package/esm/components/win-card/components/IndicatorArea.js.map +1 -0
- package/esm/components/win-card/components/IndicatorInfo.d.ts +14 -0
- package/esm/components/win-card/components/IndicatorInfo.js +67 -0
- package/esm/components/win-card/components/IndicatorInfo.js.map +1 -0
- package/esm/components/win-card/components/MatterContent.d.ts +5 -0
- package/esm/components/win-card/components/MatterContent.js +124 -0
- package/esm/components/win-card/components/MatterContent.js.map +1 -0
- package/esm/components/win-card/components/MatterList.d.ts +7 -0
- package/esm/components/win-card/components/MatterList.js +115 -0
- package/esm/components/win-card/components/MatterList.js.map +1 -0
- package/esm/components/win-card/components/NoticeContent.d.ts +6 -0
- package/esm/components/win-card/components/NoticeContent.js +75 -0
- package/esm/components/win-card/components/NoticeContent.js.map +1 -0
- package/esm/components/win-card/components/NoticeList.d.ts +7 -0
- package/esm/components/win-card/components/NoticeList.js +55 -0
- package/esm/components/win-card/components/NoticeList.js.map +1 -0
- package/esm/components/win-card/components/SelectDecoration.d.ts +4 -0
- package/esm/components/win-card/components/SelectDecoration.js +43 -0
- package/esm/components/win-card/components/SelectDecoration.js.map +1 -0
- package/esm/components/win-card/components/WinRankContent.d.ts +1 -0
- package/esm/components/win-card/components/WinRankContent.js +99 -0
- package/esm/components/win-card/components/WinRankContent.js.map +1 -0
- package/esm/components/win-card/index.d.ts +9 -0
- package/esm/components/win-card/index.js +263 -0
- package/esm/components/win-card/index.js.map +1 -0
- package/esm/components/win-card/utils/interface.d.ts +11 -0
- package/esm/components/win-card/utils/interface.js +1 -0
- package/esm/components/win-card/utils/tool.d.ts +1 -0
- package/esm/components/win-card/utils/tool.js +14 -0
- package/esm/components/win-card/utils/tool.js.map +1 -0
- package/esm/components/win-card-mobile/components/ChartContent.d.ts +8 -0
- package/esm/components/win-card-mobile/components/ChartContent.js +36 -0
- package/esm/components/win-card-mobile/components/ChartContent.js.map +1 -0
- package/esm/components/win-card-mobile/components/DualLineBar.d.ts +2 -0
- package/esm/components/win-card-mobile/components/DualLineBar.js +41 -0
- package/esm/components/win-card-mobile/components/DualLineBar.js.map +1 -0
- package/esm/components/win-card-mobile/components/Indicator.d.ts +2 -0
- package/esm/components/win-card-mobile/components/Indicator.js +40 -0
- package/esm/components/win-card-mobile/components/Indicator.js.map +1 -0
- package/esm/components/win-card-mobile/components/IndicatorArea.d.ts +2 -0
- package/esm/components/win-card-mobile/components/IndicatorArea.js +59 -0
- package/esm/components/win-card-mobile/components/IndicatorArea.js.map +1 -0
- package/esm/components/win-card-mobile/components/IndicatorInfo.d.ts +13 -0
- package/esm/components/win-card-mobile/components/IndicatorInfo.js +72 -0
- package/esm/components/win-card-mobile/components/IndicatorInfo.js.map +1 -0
- package/esm/components/win-card-mobile/components/SelectDecoration.d.ts +9 -0
- package/esm/components/win-card-mobile/components/SelectDecoration.js +33 -0
- package/esm/components/win-card-mobile/components/SelectDecoration.js.map +1 -0
- package/esm/components/win-card-mobile/index.d.ts +7 -0
- package/esm/components/win-card-mobile/index.js +215 -0
- package/esm/components/win-card-mobile/index.js.map +1 -0
- package/esm/components/win-card-mobile/utils/interface.d.ts +10 -0
- package/esm/components/win-card-mobile/utils/interface.js +1 -0
- package/esm/components/win-card-mobile/utils/tool.d.ts +1 -0
- package/esm/components/win-card-mobile/utils/tool.js +8 -0
- package/esm/components/win-chart/components/chart-wrapper.d.ts +2 -0
- package/esm/components/win-chart/components/chart-wrapper.js +14 -0
- package/esm/components/win-chart/components/chart-wrapper.js.map +1 -0
- package/esm/components/win-chart/index.d.ts +4 -0
- package/esm/components/win-chart/index.js +60 -0
- package/esm/components/win-chart/index.js.map +1 -0
- package/esm/components/win-chart/theme/win-dark.json +372 -0
- package/esm/components/win-chart/theme/win-light.json +372 -0
- package/esm/components/win-chart/utils/const.d.ts +8 -0
- package/esm/components/win-chart/utils/const.js +34 -0
- package/esm/components/win-chart/utils/getAreaSpec.d.ts +14 -0
- package/esm/components/win-chart/utils/getAreaSpec.js +149 -0
- package/esm/components/win-chart/utils/getAreaSpec.js.map +1 -0
- package/esm/components/win-chart/utils/getBarSpec.d.ts +8 -0
- package/esm/components/win-chart/utils/getBarSpec.js +66 -0
- package/esm/components/win-chart/utils/getBarSpec.js.map +1 -0
- package/esm/components/win-chart/utils/getChartOptions.d.ts +7 -0
- package/esm/components/win-chart/utils/getChartOptions.js +45 -0
- package/esm/components/win-chart/utils/getChartOptions.js.map +1 -0
- package/esm/components/win-chart/utils/getColumnSpec.d.ts +14 -0
- package/esm/components/win-chart/utils/getColumnSpec.js +119 -0
- package/esm/components/win-chart/utils/getColumnSpec.js.map +1 -0
- package/esm/components/win-chart/utils/getDualSpec.d.ts +7 -0
- package/esm/components/win-chart/utils/getDualSpec.js +93 -0
- package/esm/components/win-chart/utils/getDualSpec.js.map +1 -0
- package/esm/components/win-chart/utils/getFunnelSpec.d.ts +8 -0
- package/esm/components/win-chart/utils/getFunnelSpec.js +66 -0
- package/esm/components/win-chart/utils/getFunnelSpec.js.map +1 -0
- package/esm/components/win-chart/utils/getLineSpec.d.ts +8 -0
- package/esm/components/win-chart/utils/getLineSpec.js +52 -0
- package/esm/components/win-chart/utils/getLineSpec.js.map +1 -0
- package/esm/components/win-chart/utils/getPieSpec.d.ts +13 -0
- package/esm/components/win-chart/utils/getPieSpec.js +126 -0
- package/esm/components/win-chart/utils/getPieSpec.js.map +1 -0
- package/esm/components/win-chart/utils/getRadarSpec.d.ts +7 -0
- package/esm/components/win-chart/utils/getRadarSpec.js +88 -0
- package/esm/components/win-chart/utils/getRadarSpec.js.map +1 -0
- package/esm/components/win-chart/utils/tool.d.ts +57 -0
- package/esm/components/win-chart/utils/tool.js +146 -0
- package/esm/components/win-chart/utils/tool.js.map +1 -0
- package/esm/components/win-chart/utils/type.d.ts +82 -0
- package/esm/components/win-chart/utils/type.js +36 -0
- package/esm/components/win-icon/index.d.ts +8 -0
- package/esm/components/win-icon/index.js +79 -0
- package/esm/components/win-icon/index.js.map +1 -0
- package/esm/components/win-wrappers/card-wrapper.d.ts +17 -0
- package/esm/components/win-wrappers/card-wrapper.js +170 -0
- package/esm/components/win-wrappers/card-wrapper.js.map +1 -0
- package/esm/components/win-wrappers/dot-wrapper.d.ts +4 -0
- package/esm/components/win-wrappers/dot-wrapper.js +29 -0
- package/esm/components/win-wrappers/dot-wrapper.js.map +1 -0
- package/esm/components/win-wrappers/iframe-wrapper.d.ts +2 -0
- package/esm/components/win-wrappers/iframe-wrapper.js +14 -0
- package/esm/components/win-wrappers/iframe-wrapper.js.map +1 -0
- package/esm/components/win-wrappers/request-wrapper.d.ts +41 -0
- package/esm/components/win-wrappers/request-wrapper.js +170 -0
- package/esm/components/win-wrappers/request-wrapper.js.map +1 -0
- package/esm/hooks/useCardOptionList.d.ts +2 -0
- package/esm/hooks/useCardOptionList.js +58 -0
- package/esm/hooks/useCardOptionList.js.map +1 -0
- package/esm/hooks/useCostFiltersDicList.d.ts +2 -0
- package/esm/hooks/useCostFiltersDicList.js +61 -0
- package/esm/hooks/useCostFiltersDicList.js.map +1 -0
- package/esm/hooks/useFbiUrl.d.ts +1 -0
- package/esm/hooks/useFbiUrl.js +58 -0
- package/esm/hooks/useFbiUrl.js.map +1 -0
- package/esm/hooks/useHalfScreenState.d.ts +19 -0
- package/esm/hooks/useHalfScreenState.js +52 -0
- package/esm/hooks/useHalfScreenState.js.map +1 -0
- package/esm/hooks/useHasIntersected.d.ts +8 -0
- package/esm/hooks/useHasIntersected.js +33 -0
- package/esm/hooks/useHasIntersected.js.map +1 -0
- package/esm/hooks/useIndicatorCardInfo.d.ts +2 -0
- package/esm/hooks/useIndicatorCardInfo.js +61 -0
- package/esm/hooks/useIndicatorCardInfo.js.map +1 -0
- package/esm/hooks/useIndicatorCardQueryList.d.ts +2 -0
- package/esm/hooks/useIndicatorCardQueryList.js +59 -0
- package/esm/hooks/useIndicatorCardQueryList.js.map +1 -0
- package/esm/hooks/useIndicatorClassifyList.d.ts +2 -0
- package/esm/hooks/useIndicatorClassifyList.js +57 -0
- package/esm/hooks/useIndicatorClassifyList.js.map +1 -0
- package/esm/hooks/useIndicatorDetailsDateList.d.ts +2 -0
- package/esm/hooks/useIndicatorDetailsDateList.js +59 -0
- package/esm/hooks/useIndicatorDetailsDateList.js.map +1 -0
- package/esm/hooks/useIndicatorDetailsInfo.d.ts +5 -0
- package/esm/hooks/useIndicatorDetailsInfo.js +102 -0
- package/esm/hooks/useIndicatorDetailsInfo.js.map +1 -0
- package/esm/hooks/useIndicatorDetailsTrend.d.ts +2 -0
- package/esm/hooks/useIndicatorDetailsTrend.js +60 -0
- package/esm/hooks/useIndicatorDetailsTrend.js.map +1 -0
- package/esm/hooks/useIndicatorDicList.d.ts +2 -0
- package/esm/hooks/useIndicatorDicList.js +59 -0
- package/esm/hooks/useIndicatorDicList.js.map +1 -0
- package/esm/hooks/useIndicatorLabelList.d.ts +2 -0
- package/esm/hooks/useIndicatorLabelList.js +51 -0
- package/esm/hooks/useIndicatorLabelList.js.map +1 -0
- package/esm/hooks/useIndicatorList.d.ts +2 -0
- package/esm/hooks/useIndicatorList.js +53 -0
- package/esm/hooks/useIndicatorList.js.map +1 -0
- package/esm/hooks/useIndicatorRangeList.d.ts +2 -0
- package/esm/hooks/useIndicatorRangeList.js +51 -0
- package/esm/hooks/useIndicatorRangeList.js.map +1 -0
- package/esm/hooks/useIndicatorTypeList.d.ts +2 -0
- package/esm/hooks/useIndicatorTypeList.js +51 -0
- package/esm/hooks/useIndicatorTypeList.js.map +1 -0
- package/esm/hooks/useIndicatorUnitList.d.ts +2 -0
- package/esm/hooks/useIndicatorUnitList.js +50 -0
- package/esm/hooks/useIndicatorUnitList.js.map +1 -0
- package/esm/hooks/useListenQuery.d.ts +1 -0
- package/esm/hooks/useListenQuery.js +24 -0
- package/esm/hooks/useListenQuery.js.map +1 -0
- package/esm/hooks/useMobile.d.ts +13 -0
- package/esm/hooks/useMobile.js +51 -0
- package/esm/hooks/useMobile.js.map +1 -0
- package/esm/hooks/useNotice.d.ts +3 -0
- package/esm/hooks/useNotice.js +109 -0
- package/esm/hooks/useNotice.js.map +1 -0
- package/esm/hooks/useOrgLevelList.d.ts +2 -0
- package/esm/hooks/useOrgLevelList.js +58 -0
- package/esm/hooks/useOrgLevelList.js.map +1 -0
- package/esm/hooks/usePageSelection.d.ts +7 -0
- package/esm/hooks/usePageSelection.js +99 -0
- package/esm/hooks/usePageSelection.js.map +1 -0
- package/esm/hooks/usePageState.d.ts +12 -0
- package/esm/hooks/usePageState.js +20 -0
- package/esm/hooks/usePageState.js.map +1 -0
- package/esm/hooks/usePendingList.d.ts +2 -0
- package/esm/hooks/usePendingList.js +75 -0
- package/esm/hooks/usePendingList.js.map +1 -0
- package/esm/hooks/usePortalPageInfo.d.ts +11 -0
- package/esm/hooks/usePortalPageInfo.js +71 -0
- package/esm/hooks/usePortalPageInfo.js.map +1 -0
- package/esm/hooks/useRefreshByLocationChange.d.ts +1 -0
- package/esm/hooks/useRefreshByLocationChange.js +18 -0
- package/esm/hooks/useRefreshByLocationChange.js.map +1 -0
- package/esm/hooks/useReportIndicatorList.d.ts +2 -0
- package/esm/hooks/useReportIndicatorList.js +50 -0
- package/esm/hooks/useReportIndicatorList.js.map +1 -0
- package/esm/hooks/useReportInfo.d.ts +3 -0
- package/esm/hooks/useReportInfo.js +109 -0
- package/esm/hooks/useReportInfo.js.map +1 -0
- package/esm/hooks/useReportPersonList.d.ts +2 -0
- package/esm/hooks/useReportPersonList.js +50 -0
- package/esm/hooks/useReportPersonList.js.map +1 -0
- package/esm/hooks/useScriptLoader.d.ts +1 -0
- package/esm/hooks/useScriptLoader.js +26 -0
- package/esm/hooks/useScriptLoader.js.map +1 -0
- package/esm/hooks/useUnreadMsgList.d.ts +5 -0
- package/esm/hooks/useUnreadMsgList.js +56 -0
- package/esm/hooks/useUnreadMsgList.js.map +1 -0
- package/esm/hooks/useUserAvatar.d.ts +2 -0
- package/esm/hooks/useUserAvatar.js +59 -0
- package/esm/hooks/useUserAvatar.js.map +1 -0
- package/esm/hooks/useVReportInfo.d.ts +3 -0
- package/esm/hooks/useVReportInfo.js +113 -0
- package/esm/hooks/useVReportInfo.js.map +1 -0
- package/esm/hooks/useVisionUserConfig.d.ts +5 -0
- package/esm/hooks/useVisionUserConfig.js +57 -0
- package/esm/hooks/useVisionUserConfig.js.map +1 -0
- package/esm/hooks/useWorkbenchOptions.d.ts +6 -0
- package/esm/hooks/useWorkbenchOptions.js +116 -0
- package/esm/hooks/useWorkbenchOptions.js.map +1 -0
- package/esm/index.d.ts +3 -0
- package/esm/index.js +5 -0
- package/esm/index.js.map +1 -0
- package/esm/index.module.css +4 -0
- package/esm/services/CardService.d.ts +33 -0
- package/esm/services/CardService.js +183 -0
- package/esm/services/CardService.js.map +1 -0
- package/esm/services/CommonService.d.ts +8 -0
- package/esm/services/CommonService.js +44 -0
- package/esm/services/CommonService.js.map +1 -0
- package/esm/services/CostService.d.ts +14 -0
- package/esm/services/CostService.js +117 -0
- package/esm/services/CostService.js.map +1 -0
- package/esm/services/DialogService.d.ts +24 -0
- package/esm/services/DialogService.js +150 -0
- package/esm/services/DialogService.js.map +1 -0
- package/esm/services/IndicatorService.d.ts +138 -0
- package/esm/services/IndicatorService.js +732 -0
- package/esm/services/IndicatorService.js.map +1 -0
- package/esm/services/PageService.d.ts +58 -0
- package/esm/services/PageService.js +337 -0
- package/esm/services/PageService.js.map +1 -0
- package/esm/services/ReportService.d.ts +120 -0
- package/esm/services/ReportService.js +610 -0
- package/esm/services/ReportService.js.map +1 -0
- package/esm/services/WorkbenchService.d.ts +129 -0
- package/esm/services/WorkbenchService.js +718 -0
- package/esm/services/WorkbenchService.js.map +1 -0
- package/esm/styles/README.md +12 -0
- package/esm/styles/index.scss +9 -0
- package/esm/styles/mixins/index.scss +25 -0
- package/esm/styles/next-cover.scss +4 -0
- package/esm/styles/normalize.scss +27 -0
- package/esm/styles/utilities/index.scss +5 -0
- package/esm/styles/vars/index.scss +17 -0
- package/esm/types/enum-workbench.d.ts +26 -0
- package/esm/types/enum-workbench.js +20 -0
- package/esm/types/enum.d.ts +128 -0
- package/esm/types/enum.js +98 -0
- package/esm/types/index.d.ts +15 -0
- package/esm/types/index.js +10 -0
- package/esm/types/index.js.map +1 -0
- package/esm/types/indicator.d.ts +252 -0
- package/esm/types/indicator.js +1 -0
- package/esm/types/interface.d.ts +260 -0
- package/esm/types/interface.js +1 -0
- package/esm/types/portal.d.ts +180 -0
- package/esm/types/portal.js +1 -0
- package/esm/types/report.d.ts +25 -0
- package/esm/types/report.js +1 -0
- package/esm/types/type.d.ts +9 -0
- package/esm/types/type.js +1 -0
- package/esm/types/user.d.ts +26 -0
- package/esm/types/user.js +1 -0
- package/esm/typings.d.ts +1 -0
- package/esm/utils/README.md +4 -0
- package/esm/utils/arms.js +46 -0
- package/esm/utils/arr.d.ts +35 -0
- package/esm/utils/arr.js +125 -0
- package/esm/utils/arr.js.map +1 -0
- package/esm/utils/const-workbench.d.ts +8 -0
- package/esm/utils/const-workbench.js +6 -0
- package/esm/utils/const.d.ts +14 -0
- package/esm/utils/const.js +11 -0
- package/esm/utils/index.d.ts +17 -0
- package/esm/utils/index.js +18 -0
- package/esm/utils/index.js.map +1 -0
- package/esm/utils/init.d.ts +5 -0
- package/esm/utils/init.js +7 -0
- package/esm/utils/init.js.map +1 -0
- package/esm/utils/map-workbench.d.ts +22 -0
- package/esm/utils/map-workbench.js +74 -0
- package/esm/utils/map-workbench.js.map +1 -0
- package/esm/utils/map.d.ts +84 -0
- package/esm/utils/map.js +509 -0
- package/esm/utils/map.js.map +1 -0
- package/esm/utils/number.d.ts +44 -0
- package/esm/utils/number.js +92 -0
- package/esm/utils/number.js.map +1 -0
- package/esm/utils/page.d.ts +33 -0
- package/esm/utils/page.js +68 -0
- package/esm/utils/page.js.map +1 -0
- package/esm/utils/str.d.ts +12 -0
- package/esm/utils/str.js +21 -0
- package/esm/utils/tools.d.ts +7 -0
- package/esm/utils/tools.js +35 -0
- package/esm/utils/tools.js.map +1 -0
- package/esm/utils/tree.d.ts +49 -0
- package/esm/utils/tree.js +153 -0
- package/esm/utils/tree.js.map +1 -0
- package/esm/utils/url.d.ts +20 -0
- package/esm/utils/url.js +40 -0
- package/esm/utils/url.js.map +1 -0
- package/esm/utils/util.d.ts +38 -0
- package/esm/utils/util.js +89 -0
- package/esm/utils/util.js.map +1 -0
- package/esm/utils/workbench.d.ts +6 -0
- package/esm/utils/workbench.js +31 -0
- package/package.json +60 -37
- package/build/js/index.js +0 -1
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
|
|
2
|
+
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
|
|
3
|
+
import { _ as _create_class } from "@swc/helpers/_/_create_class";
|
|
4
|
+
import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
5
|
+
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
|
6
|
+
import { newRequest } from "@/api/request";
|
|
7
|
+
import { getAliyuncsNewSrc, replaceSrcValues } from "@/pages/brief-report/utils/tool";
|
|
8
|
+
import { handleResult } from "@/utils";
|
|
9
|
+
export var ReportService = /*#__PURE__*/ function() {
|
|
10
|
+
"use strict";
|
|
11
|
+
function ReportService() {
|
|
12
|
+
_class_call_check(this, ReportService);
|
|
13
|
+
}
|
|
14
|
+
_create_class(ReportService, null, [
|
|
15
|
+
{
|
|
16
|
+
key: "getTemplateList",
|
|
17
|
+
value: /**
|
|
18
|
+
* 获取模版
|
|
19
|
+
* @returns
|
|
20
|
+
*/ function getTemplateList() {
|
|
21
|
+
return _async_to_generator(function() {
|
|
22
|
+
var resp;
|
|
23
|
+
return _ts_generator(this, function(_state) {
|
|
24
|
+
switch(_state.label){
|
|
25
|
+
case 0:
|
|
26
|
+
return [
|
|
27
|
+
4,
|
|
28
|
+
newRequest({
|
|
29
|
+
url: "/weekly/report/template/list"
|
|
30
|
+
})
|
|
31
|
+
];
|
|
32
|
+
case 1:
|
|
33
|
+
resp = handleResult.apply(void 0, [
|
|
34
|
+
_state.sent()
|
|
35
|
+
]);
|
|
36
|
+
return [
|
|
37
|
+
2,
|
|
38
|
+
resp
|
|
39
|
+
];
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
})();
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
key: "deleteTemplateById",
|
|
47
|
+
value: /**
|
|
48
|
+
* 删除模版
|
|
49
|
+
* @param templateId
|
|
50
|
+
* @returns
|
|
51
|
+
*/ function deleteTemplateById(templateId) {
|
|
52
|
+
return _async_to_generator(function() {
|
|
53
|
+
var resp;
|
|
54
|
+
return _ts_generator(this, function(_state) {
|
|
55
|
+
switch(_state.label){
|
|
56
|
+
case 0:
|
|
57
|
+
return [
|
|
58
|
+
4,
|
|
59
|
+
newRequest({
|
|
60
|
+
url: "/weekly/report/template/delete",
|
|
61
|
+
method: "POST",
|
|
62
|
+
data: {
|
|
63
|
+
templateId: templateId
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
];
|
|
67
|
+
case 1:
|
|
68
|
+
resp = handleResult.apply(void 0, [
|
|
69
|
+
_state.sent()
|
|
70
|
+
]);
|
|
71
|
+
return [
|
|
72
|
+
2,
|
|
73
|
+
resp
|
|
74
|
+
];
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
})();
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
key: "saveTemplate",
|
|
82
|
+
value: /**
|
|
83
|
+
* 保存模版
|
|
84
|
+
* @param data
|
|
85
|
+
* @returns
|
|
86
|
+
*/ function saveTemplate(data) {
|
|
87
|
+
return _async_to_generator(function() {
|
|
88
|
+
var resp;
|
|
89
|
+
return _ts_generator(this, function(_state) {
|
|
90
|
+
switch(_state.label){
|
|
91
|
+
case 0:
|
|
92
|
+
return [
|
|
93
|
+
4,
|
|
94
|
+
newRequest({
|
|
95
|
+
url: "/weekly/report/template/save",
|
|
96
|
+
method: "POST",
|
|
97
|
+
data: data
|
|
98
|
+
})
|
|
99
|
+
];
|
|
100
|
+
case 1:
|
|
101
|
+
resp = handleResult.apply(void 0, [
|
|
102
|
+
_state.sent()
|
|
103
|
+
]);
|
|
104
|
+
return [
|
|
105
|
+
2,
|
|
106
|
+
resp
|
|
107
|
+
];
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
})();
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
key: "getTemplateDetails",
|
|
115
|
+
value: /**
|
|
116
|
+
* 获取模版详情
|
|
117
|
+
* @param templateId
|
|
118
|
+
* @returns
|
|
119
|
+
*/ function getTemplateDetails(templateId) {
|
|
120
|
+
return _async_to_generator(function() {
|
|
121
|
+
var resp, _tmp, _tmp1, _tmp2, _;
|
|
122
|
+
return _ts_generator(this, function(_state) {
|
|
123
|
+
switch(_state.label){
|
|
124
|
+
case 0:
|
|
125
|
+
return [
|
|
126
|
+
4,
|
|
127
|
+
newRequest({
|
|
128
|
+
url: "/weekly/report/template/details",
|
|
129
|
+
method: "POST",
|
|
130
|
+
data: {
|
|
131
|
+
templateId: templateId
|
|
132
|
+
}
|
|
133
|
+
})
|
|
134
|
+
];
|
|
135
|
+
case 1:
|
|
136
|
+
resp = handleResult.apply(void 0, [
|
|
137
|
+
_state.sent()
|
|
138
|
+
]);
|
|
139
|
+
_tmp = [
|
|
140
|
+
{},
|
|
141
|
+
resp
|
|
142
|
+
];
|
|
143
|
+
_tmp1 = resp.content;
|
|
144
|
+
if (!_tmp1) return [
|
|
145
|
+
3,
|
|
146
|
+
3
|
|
147
|
+
];
|
|
148
|
+
_tmp2 = {};
|
|
149
|
+
_ = JSON.stringify;
|
|
150
|
+
return [
|
|
151
|
+
4,
|
|
152
|
+
replaceSrcValues(JSON.parse(resp.content), getAliyuncsNewSrc)
|
|
153
|
+
];
|
|
154
|
+
case 2:
|
|
155
|
+
_tmp1 = (_tmp2.content = _.apply(JSON, [
|
|
156
|
+
_state.sent()
|
|
157
|
+
]), _tmp2);
|
|
158
|
+
_state.label = 3;
|
|
159
|
+
case 3:
|
|
160
|
+
return [
|
|
161
|
+
2,
|
|
162
|
+
_object_spread.apply(void 0, _tmp.concat([
|
|
163
|
+
_tmp1
|
|
164
|
+
]))
|
|
165
|
+
];
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
})();
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
key: "getPersonList",
|
|
173
|
+
value: /**
|
|
174
|
+
* 获取使用人
|
|
175
|
+
* @returns
|
|
176
|
+
*/ function getPersonList() {
|
|
177
|
+
return _async_to_generator(function() {
|
|
178
|
+
var resp;
|
|
179
|
+
return _ts_generator(this, function(_state) {
|
|
180
|
+
switch(_state.label){
|
|
181
|
+
case 0:
|
|
182
|
+
return [
|
|
183
|
+
4,
|
|
184
|
+
newRequest({
|
|
185
|
+
url: "/weekly/report/person"
|
|
186
|
+
})
|
|
187
|
+
];
|
|
188
|
+
case 1:
|
|
189
|
+
resp = handleResult.apply(void 0, [
|
|
190
|
+
_state.sent()
|
|
191
|
+
]);
|
|
192
|
+
return [
|
|
193
|
+
2,
|
|
194
|
+
resp
|
|
195
|
+
];
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
})();
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
key: "getIndicatorList",
|
|
203
|
+
value: /**
|
|
204
|
+
* 获取指标列表
|
|
205
|
+
* @returns
|
|
206
|
+
*/ function getIndicatorList() {
|
|
207
|
+
return _async_to_generator(function() {
|
|
208
|
+
var resp;
|
|
209
|
+
return _ts_generator(this, function(_state) {
|
|
210
|
+
switch(_state.label){
|
|
211
|
+
case 0:
|
|
212
|
+
return [
|
|
213
|
+
4,
|
|
214
|
+
newRequest({
|
|
215
|
+
url: "/weekly/report/indicator/list",
|
|
216
|
+
method: "POST",
|
|
217
|
+
data: {}
|
|
218
|
+
})
|
|
219
|
+
];
|
|
220
|
+
case 1:
|
|
221
|
+
resp = handleResult.apply(void 0, [
|
|
222
|
+
_state.sent()
|
|
223
|
+
]);
|
|
224
|
+
return [
|
|
225
|
+
2,
|
|
226
|
+
resp
|
|
227
|
+
];
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
})();
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
key: "getIndicatorInfo",
|
|
235
|
+
value: /**
|
|
236
|
+
* 获取指标详情
|
|
237
|
+
* @param subId
|
|
238
|
+
* @returns
|
|
239
|
+
*/ function getIndicatorInfo(subId) {
|
|
240
|
+
return _async_to_generator(function() {
|
|
241
|
+
var resp;
|
|
242
|
+
return _ts_generator(this, function(_state) {
|
|
243
|
+
switch(_state.label){
|
|
244
|
+
case 0:
|
|
245
|
+
return [
|
|
246
|
+
4,
|
|
247
|
+
newRequest({
|
|
248
|
+
url: "/weekly/report/indicator/init",
|
|
249
|
+
method: "POST",
|
|
250
|
+
data: {
|
|
251
|
+
subId: subId
|
|
252
|
+
}
|
|
253
|
+
})
|
|
254
|
+
];
|
|
255
|
+
case 1:
|
|
256
|
+
resp = handleResult.apply(void 0, [
|
|
257
|
+
_state.sent()
|
|
258
|
+
]);
|
|
259
|
+
return [
|
|
260
|
+
2,
|
|
261
|
+
resp
|
|
262
|
+
];
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
})();
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
key: "queryIndicatorInfo",
|
|
270
|
+
value: /**
|
|
271
|
+
* 查询指标信息
|
|
272
|
+
* @param subId
|
|
273
|
+
* @returns
|
|
274
|
+
*/ function queryIndicatorInfo(subId, type) {
|
|
275
|
+
return _async_to_generator(function() {
|
|
276
|
+
var _handleResult, value, expectValue, ratio, selectLabel, uniqueCode, indicatorType;
|
|
277
|
+
return _ts_generator(this, function(_state) {
|
|
278
|
+
switch(_state.label){
|
|
279
|
+
case 0:
|
|
280
|
+
return [
|
|
281
|
+
4,
|
|
282
|
+
newRequest({
|
|
283
|
+
url: "/weekly/report/card/single",
|
|
284
|
+
method: "POST",
|
|
285
|
+
data: {
|
|
286
|
+
subId: subId,
|
|
287
|
+
type: type
|
|
288
|
+
}
|
|
289
|
+
})
|
|
290
|
+
];
|
|
291
|
+
case 1:
|
|
292
|
+
_handleResult = handleResult.apply(void 0, [
|
|
293
|
+
_state.sent()
|
|
294
|
+
]), value = _handleResult.value, expectValue = _handleResult.expectValue, ratio = _handleResult.ratio, selectLabel = _handleResult.selectLabel, uniqueCode = _handleResult.uniqueCode, indicatorType = _handleResult.indicatorType;
|
|
295
|
+
return [
|
|
296
|
+
2,
|
|
297
|
+
{
|
|
298
|
+
value: value,
|
|
299
|
+
expectValue: expectValue,
|
|
300
|
+
ratio: ratio,
|
|
301
|
+
selectLabel: selectLabel,
|
|
302
|
+
indicatorType: indicatorType,
|
|
303
|
+
uniqueCode: uniqueCode
|
|
304
|
+
}
|
|
305
|
+
];
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
})();
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
key: "getContentList",
|
|
313
|
+
value: /**
|
|
314
|
+
* 获取内容
|
|
315
|
+
* @returns
|
|
316
|
+
*/ function getContentList() {
|
|
317
|
+
return _async_to_generator(function() {
|
|
318
|
+
var resp;
|
|
319
|
+
return _ts_generator(this, function(_state) {
|
|
320
|
+
switch(_state.label){
|
|
321
|
+
case 0:
|
|
322
|
+
return [
|
|
323
|
+
4,
|
|
324
|
+
newRequest({
|
|
325
|
+
url: "/weekly/report/content/list",
|
|
326
|
+
method: "POST",
|
|
327
|
+
data: {}
|
|
328
|
+
})
|
|
329
|
+
];
|
|
330
|
+
case 1:
|
|
331
|
+
resp = handleResult.apply(void 0, [
|
|
332
|
+
_state.sent()
|
|
333
|
+
]);
|
|
334
|
+
return [
|
|
335
|
+
2,
|
|
336
|
+
resp
|
|
337
|
+
];
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
})();
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
key: "saveContent",
|
|
345
|
+
value: /**
|
|
346
|
+
* 保存内容
|
|
347
|
+
* @param data
|
|
348
|
+
* @returns
|
|
349
|
+
*/ function saveContent(data) {
|
|
350
|
+
return _async_to_generator(function() {
|
|
351
|
+
var resp;
|
|
352
|
+
return _ts_generator(this, function(_state) {
|
|
353
|
+
switch(_state.label){
|
|
354
|
+
case 0:
|
|
355
|
+
return [
|
|
356
|
+
4,
|
|
357
|
+
newRequest({
|
|
358
|
+
url: "/weekly/report/content/save",
|
|
359
|
+
method: "POST",
|
|
360
|
+
data: data
|
|
361
|
+
})
|
|
362
|
+
];
|
|
363
|
+
case 1:
|
|
364
|
+
resp = handleResult.apply(void 0, [
|
|
365
|
+
_state.sent()
|
|
366
|
+
]);
|
|
367
|
+
return [
|
|
368
|
+
2,
|
|
369
|
+
resp
|
|
370
|
+
];
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
})();
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
key: "getContentDetails",
|
|
378
|
+
value: /**
|
|
379
|
+
* 获取内容详情
|
|
380
|
+
* @param templateId
|
|
381
|
+
* @returns
|
|
382
|
+
*/ function getContentDetails(templateId, importType) {
|
|
383
|
+
return _async_to_generator(function() {
|
|
384
|
+
var resp, _tmp, _tmp1, _tmp2, _;
|
|
385
|
+
return _ts_generator(this, function(_state) {
|
|
386
|
+
switch(_state.label){
|
|
387
|
+
case 0:
|
|
388
|
+
return [
|
|
389
|
+
4,
|
|
390
|
+
newRequest({
|
|
391
|
+
url: "/weekly/report/content/import",
|
|
392
|
+
method: "POST",
|
|
393
|
+
data: {
|
|
394
|
+
templateId: templateId,
|
|
395
|
+
importType: importType
|
|
396
|
+
}
|
|
397
|
+
})
|
|
398
|
+
];
|
|
399
|
+
case 1:
|
|
400
|
+
resp = handleResult.apply(void 0, [
|
|
401
|
+
_state.sent()
|
|
402
|
+
]);
|
|
403
|
+
_tmp = [
|
|
404
|
+
{},
|
|
405
|
+
resp
|
|
406
|
+
];
|
|
407
|
+
_tmp1 = resp.content;
|
|
408
|
+
if (!_tmp1) return [
|
|
409
|
+
3,
|
|
410
|
+
3
|
|
411
|
+
];
|
|
412
|
+
_tmp2 = {};
|
|
413
|
+
_ = JSON.stringify;
|
|
414
|
+
return [
|
|
415
|
+
4,
|
|
416
|
+
replaceSrcValues(JSON.parse(resp.content), getAliyuncsNewSrc)
|
|
417
|
+
];
|
|
418
|
+
case 2:
|
|
419
|
+
_tmp1 = (_tmp2.content = _.apply(JSON, [
|
|
420
|
+
_state.sent()
|
|
421
|
+
]), _tmp2);
|
|
422
|
+
_state.label = 3;
|
|
423
|
+
case 3:
|
|
424
|
+
return [
|
|
425
|
+
2,
|
|
426
|
+
_object_spread.apply(void 0, _tmp.concat([
|
|
427
|
+
_tmp1
|
|
428
|
+
]))
|
|
429
|
+
];
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
})();
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
key: "getDingLink",
|
|
437
|
+
value: /**
|
|
438
|
+
* 获取钉钉跳转链接
|
|
439
|
+
* @param content
|
|
440
|
+
* @returns
|
|
441
|
+
*/ function getDingLink(content) {
|
|
442
|
+
var contentType = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "asl";
|
|
443
|
+
return _async_to_generator(function() {
|
|
444
|
+
var resp;
|
|
445
|
+
return _ts_generator(this, function(_state) {
|
|
446
|
+
switch(_state.label){
|
|
447
|
+
case 0:
|
|
448
|
+
return [
|
|
449
|
+
4,
|
|
450
|
+
newRequest({
|
|
451
|
+
url: "/weekly/report/ding",
|
|
452
|
+
method: "POST",
|
|
453
|
+
data: {
|
|
454
|
+
content: content,
|
|
455
|
+
contentType: contentType
|
|
456
|
+
}
|
|
457
|
+
})
|
|
458
|
+
];
|
|
459
|
+
case 1:
|
|
460
|
+
resp = handleResult.apply(void 0, [
|
|
461
|
+
_state.sent()
|
|
462
|
+
]);
|
|
463
|
+
return [
|
|
464
|
+
2,
|
|
465
|
+
resp
|
|
466
|
+
];
|
|
467
|
+
}
|
|
468
|
+
});
|
|
469
|
+
})();
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
key: "getUrlByKey",
|
|
474
|
+
value: /**
|
|
475
|
+
* 根据 key 获取地址
|
|
476
|
+
* @param key
|
|
477
|
+
* @returns
|
|
478
|
+
*/ function getUrlByKey(key) {
|
|
479
|
+
return _async_to_generator(function() {
|
|
480
|
+
var resp;
|
|
481
|
+
return _ts_generator(this, function(_state) {
|
|
482
|
+
switch(_state.label){
|
|
483
|
+
case 0:
|
|
484
|
+
return [
|
|
485
|
+
4,
|
|
486
|
+
newRequest({
|
|
487
|
+
url: "/weekly/report/OssUrl",
|
|
488
|
+
params: {
|
|
489
|
+
key: key
|
|
490
|
+
}
|
|
491
|
+
})
|
|
492
|
+
];
|
|
493
|
+
case 1:
|
|
494
|
+
resp = handleResult.apply(void 0, [
|
|
495
|
+
_state.sent()
|
|
496
|
+
]);
|
|
497
|
+
return [
|
|
498
|
+
2,
|
|
499
|
+
resp
|
|
500
|
+
];
|
|
501
|
+
}
|
|
502
|
+
});
|
|
503
|
+
})();
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
key: "getOssSign",
|
|
508
|
+
value: /**
|
|
509
|
+
* 获取图片上传签名
|
|
510
|
+
* @returns
|
|
511
|
+
*/ function getOssSign() {
|
|
512
|
+
return _async_to_generator(function() {
|
|
513
|
+
var resp;
|
|
514
|
+
return _ts_generator(this, function(_state) {
|
|
515
|
+
switch(_state.label){
|
|
516
|
+
case 0:
|
|
517
|
+
return [
|
|
518
|
+
4,
|
|
519
|
+
newRequest({
|
|
520
|
+
url: "/weekly/report/generateOssPolicy"
|
|
521
|
+
})
|
|
522
|
+
];
|
|
523
|
+
case 1:
|
|
524
|
+
resp = handleResult.apply(void 0, [
|
|
525
|
+
_state.sent()
|
|
526
|
+
]);
|
|
527
|
+
return [
|
|
528
|
+
2,
|
|
529
|
+
resp
|
|
530
|
+
];
|
|
531
|
+
}
|
|
532
|
+
});
|
|
533
|
+
})();
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
key: "ossUpload",
|
|
538
|
+
value: /**
|
|
539
|
+
* 获取图片上传
|
|
540
|
+
* @returns
|
|
541
|
+
*/ function ossUpload(param) {
|
|
542
|
+
var key = param.key, policy = param.policy, ossAccessKeyId = param.ossAccessKeyId, signature = param.signature, host = param.host, file = param.file, securityToken = param.securityToken;
|
|
543
|
+
return _async_to_generator(function() {
|
|
544
|
+
var data;
|
|
545
|
+
return _ts_generator(this, function(_state) {
|
|
546
|
+
switch(_state.label){
|
|
547
|
+
case 0:
|
|
548
|
+
data = new FormData();
|
|
549
|
+
data.append("x-oss-security-token", securityToken);
|
|
550
|
+
data.append("signature", signature);
|
|
551
|
+
data.append("policy", policy);
|
|
552
|
+
data.append("OSSAccessKeyId", ossAccessKeyId);
|
|
553
|
+
data.append("key", key);
|
|
554
|
+
data.append("file", file);
|
|
555
|
+
return [
|
|
556
|
+
4,
|
|
557
|
+
fetch(host, {
|
|
558
|
+
method: "POST",
|
|
559
|
+
body: data
|
|
560
|
+
})
|
|
561
|
+
];
|
|
562
|
+
case 1:
|
|
563
|
+
_state.sent();
|
|
564
|
+
return [
|
|
565
|
+
2
|
|
566
|
+
];
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
})();
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
key: "getAiSearch",
|
|
574
|
+
value: /**
|
|
575
|
+
* AI 生成
|
|
576
|
+
* @returns
|
|
577
|
+
*/ function getAiSearch(content) {
|
|
578
|
+
return _async_to_generator(function() {
|
|
579
|
+
var resp;
|
|
580
|
+
return _ts_generator(this, function(_state) {
|
|
581
|
+
switch(_state.label){
|
|
582
|
+
case 0:
|
|
583
|
+
return [
|
|
584
|
+
4,
|
|
585
|
+
newRequest({
|
|
586
|
+
url: "/weekly/report/ai/search",
|
|
587
|
+
method: "POST",
|
|
588
|
+
data: {
|
|
589
|
+
content: content
|
|
590
|
+
}
|
|
591
|
+
})
|
|
592
|
+
];
|
|
593
|
+
case 1:
|
|
594
|
+
resp = handleResult.apply(void 0, [
|
|
595
|
+
_state.sent()
|
|
596
|
+
]);
|
|
597
|
+
return [
|
|
598
|
+
2,
|
|
599
|
+
resp
|
|
600
|
+
];
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
})();
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
]);
|
|
607
|
+
return ReportService;
|
|
608
|
+
}();
|
|
609
|
+
|
|
610
|
+
//# sourceMappingURL=ReportService.js.map
|