create-ssnode-cli 0.2.0 → 0.2.2

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.
Files changed (99) hide show
  1. package/index.js +10 -3
  2. package/package.json +1 -1
  3. package/secrets.js +10 -7
  4. package/templates/backend/Dockerfile +4 -0
  5. package/templates/backend/config/config.develop.yaml +10 -0
  6. package/templates/backend/config/config.prod.yaml +10 -0
  7. package/templates/backend/dist/config/configuration.js +1 -1
  8. package/templates/backend/dist/config/configuration.js.map +1 -1
  9. package/templates/backend/dist/modules/auth/auth.service.js +1 -1
  10. package/templates/backend/dist/modules/auth/auth.service.js.map +1 -1
  11. package/templates/backend/dist/modules/page-data/page-data.controller.js +1 -1
  12. package/templates/backend/dist/modules/page-data/page-data.controller.js.map +1 -1
  13. package/templates/backend/dist/modules/screen-config/screen-config.controller.js +1 -1
  14. package/templates/backend/dist/modules/screen-config/screen-config.controller.js.map +1 -1
  15. package/templates/backend/dist/tsconfig.build.tsbuildinfo +1 -1
  16. package/templates/backend/node_modules/.bin/js-yaml +2 -2
  17. package/templates/backend/node_modules/.bin/typeorm +2 -2
  18. package/templates/backend/node_modules/.bin/typeorm-ts-node-commonjs +2 -2
  19. package/templates/backend/node_modules/.bin/typeorm-ts-node-esm +2 -2
  20. package/templates/backend/ops/docker/.env.example +4 -0
  21. package/templates/backend/ops/docker/config.sh +2 -0
  22. package/templates/backend/ops/docker/install.sh +35 -0
  23. package/templates/backend/ops/install.sh +17 -3
  24. package/templates/backend/ops/pm2/config.sh +2 -0
  25. package/templates/backend/ops/systemd/config.sh +2 -0
  26. package/templates/backend/package.json +13 -6
  27. package/templates/backend/src/config/config.interface.ts +9 -0
  28. package/templates/backend/src/config/configuration.ts +11 -0
  29. package/templates/backend/src/modules/auth/auth.service.ts +57 -12
  30. package/templates/backend/src/modules/page-data/page-data.controller.ts +33 -10
  31. package/templates/backend/src/modules/screen-config/screen-config.controller.ts +33 -5
  32. package/templates/root/README.md +3 -0
  33. package/templates/root/package.json +9 -1
  34. package/templates/web/dist/assets/{404-63aa5037.js → 404-e6edada0.js} +1 -1
  35. package/templates/web/dist/assets/{404-legacy-494c4093.js → 404-legacy-f6ca5b91.js} +1 -1
  36. package/templates/web/dist/assets/AuthLayout-bcf98efb.js +1 -0
  37. package/templates/web/dist/assets/AuthLayout-legacy-6e7a8ae1.js +1 -0
  38. package/templates/web/dist/assets/{Background-13406ae6.js → Background-eb77ef54.js} +1 -1
  39. package/templates/web/dist/assets/{Background-legacy-35ca5eef.js → Background-legacy-50457007.js} +1 -1
  40. package/templates/web/dist/assets/{Screen-4310b270.js → Screen-318c3fc2.js} +1 -1
  41. package/templates/web/dist/assets/{Screen-legacy-d5f1a31f.js → Screen-legacy-af123b0f.js} +1 -1
  42. package/templates/web/dist/assets/{ScreenChartOption-a6927065.js → ScreenChartOption-953b9157.js} +1 -1
  43. package/templates/web/dist/assets/{ScreenChartOption-legacy-b4c04ce9.js → ScreenChartOption-legacy-2e8fcfd8.js} +1 -1
  44. package/templates/web/dist/assets/api-beff4a3e.js +1 -0
  45. package/templates/web/dist/assets/api-legacy-9fe41d4b.js +1 -0
  46. package/templates/web/dist/assets/{base-5bf689c3.js → base-a14309c8.js} +1 -1
  47. package/templates/web/dist/assets/{base-legacy-d3323277.js → base-legacy-2bc6e427.js} +1 -1
  48. package/templates/web/dist/assets/{child-87a05c88.js → child-2a48ca65.js} +1 -1
  49. package/templates/web/dist/assets/{child-legacy-d4d0277d.js → child-legacy-7665b5f8.js} +1 -1
  50. package/templates/web/dist/assets/{component-1fcd971d.js → component-89b5253e.js} +1 -1
  51. package/templates/web/dist/assets/{component-legacy-943364e8.js → component-legacy-8c5a28ef.js} +1 -1
  52. package/templates/web/dist/assets/{demo-14e7532b.js → demo-d7272cf4.js} +1 -1
  53. package/templates/web/dist/assets/{demo-legacy-da0d2bfa.js → demo-legacy-f7bbfe55.js} +1 -1
  54. package/templates/web/dist/assets/echarts-vendor-50090982.js +9 -0
  55. package/templates/web/dist/assets/echarts-vendor-legacy-50b58722.js +10 -0
  56. package/templates/web/dist/assets/{grandson-4f840b4d.js → grandson-05f8bb58.js} +1 -1
  57. package/templates/web/dist/assets/{grandson-legacy-527ae016.js → grandson-legacy-3e10990b.js} +1 -1
  58. package/templates/web/dist/assets/{index-268d1ac1.js → index-466a1ec1.js} +1 -1
  59. package/templates/web/dist/assets/{index-c1ee2fb3.js → index-5b5a8146.js} +1 -1
  60. package/templates/web/dist/assets/{index-3a2983ce.js → index-7277cbfb.js} +1 -1
  61. package/templates/web/dist/assets/{index-e03d0352.js → index-777ef781.js} +1 -1
  62. package/templates/web/dist/assets/{index-e4c9d42a.js → index-86214b19.js} +1 -1
  63. package/templates/web/dist/assets/{index-f57c9694.js → index-9cd5622a.js} +1 -1
  64. package/templates/web/dist/assets/{index-71f600d4.js → index-a79e448b.js} +1 -1
  65. package/templates/web/dist/assets/{index-af61b79b.js → index-b60badf7.js} +1 -1
  66. package/templates/web/dist/assets/{index-b75948c0.js → index-bd4ed808.js} +1 -1
  67. package/templates/web/dist/assets/{index-9120f091.js → index-cba19800.js} +1 -1
  68. package/templates/web/dist/assets/{index-3448ef35.js → index-d70eb540.js} +1 -1
  69. package/templates/web/dist/assets/{index-5e7dfdb5.js → index-e6071630.js} +1 -1
  70. package/templates/web/dist/assets/{index-legacy-081b881d.js → index-legacy-028ed5d5.js} +1 -1
  71. package/templates/web/dist/assets/{index-legacy-aebba3cb.js → index-legacy-06483318.js} +1 -1
  72. package/templates/web/dist/assets/{index-legacy-548904e6.js → index-legacy-0da8de82.js} +1 -1
  73. package/templates/web/dist/assets/{index-legacy-376a4633.js → index-legacy-3965dcaf.js} +1 -1
  74. package/templates/web/dist/assets/{index-legacy-5f22daba.js → index-legacy-4a13dddc.js} +1 -1
  75. package/templates/web/dist/assets/{index-legacy-0983aa0f.js → index-legacy-783129a7.js} +1 -1
  76. package/templates/web/dist/assets/{index-legacy-06643c96.js → index-legacy-8a2cfb9d.js} +1 -1
  77. package/templates/web/dist/assets/{index-legacy-8bba1715.js → index-legacy-993ef005.js} +1 -1
  78. package/templates/web/dist/assets/{index-legacy-19a8ac10.js → index-legacy-b075295d.js} +1 -1
  79. package/templates/web/dist/assets/{index-legacy-b03d819e.js → index-legacy-b3bd40c1.js} +1 -1
  80. package/templates/web/dist/assets/{index-legacy-35c1de97.js → index-legacy-d510e318.js} +1 -1
  81. package/templates/web/dist/assets/{index-legacy-3a393896.js → index-legacy-feb54578.js} +1 -1
  82. package/templates/web/dist/assets/{parent-ad02830b.js → parent-bba709aa.js} +1 -1
  83. package/templates/web/dist/assets/{parent-legacy-163f567f.js → parent-legacy-48111978.js} +1 -1
  84. package/templates/web/dist/assets/vendor-affac96c.js +124 -0
  85. package/templates/web/dist/assets/vendor-legacy-55fa76eb.js +122 -0
  86. package/templates/web/dist/index.html +3 -3
  87. package/templates/web/package.json +7 -7
  88. package/templates/web/src/js/xlsl.ts +110 -59
  89. package/templates/web/src/layouts/AuthLayout.tsx +16 -11
  90. package/templates/web/src/services/api/admin/user.ts +9 -2
  91. package/templates/web/dist/assets/AuthLayout-07e9f5d2.js +0 -1
  92. package/templates/web/dist/assets/AuthLayout-legacy-1b94749f.js +0 -1
  93. package/templates/web/dist/assets/api-83561db2.js +0 -1
  94. package/templates/web/dist/assets/api-legacy-8e15c853.js +0 -1
  95. package/templates/web/dist/assets/echarts-vendor-d6ce4b9c.js +0 -9
  96. package/templates/web/dist/assets/echarts-vendor-legacy-79597af6.js +0 -10
  97. package/templates/web/dist/assets/vendor-2663c204.js +0 -96
  98. package/templates/web/dist/assets/vendor-legacy-2df23db3.js +0 -87
  99. package/templates/web/node_modules/.bin/xlsx +0 -17
@@ -1 +1 @@
1
- System.register(["./vendor-legacy-2df23db3.js","./index-legacy-aebba3cb.js","./api-legacy-8e15c853.js","./theme-legacy-ad78aecb.js"],(function(e,_){"use strict";var o,r,n,t,i,l,s,a,c,g,f,d,u,m,h,b,x,q,p,k,y,j,v,w,N;return{setters:[e=>{o=e.e,r=e.u,n=e.r,t=e.j,i=e.C,l=e.Z,s=e.D,a=e.f,c=e.A,g=e.U,f=e.g,d=e.M,u=e.h,m=e.i,h=e.k,b=e.O,x=e.l,q=e.z,p=e.m,k=e.L},e=>{y=e.g,j=e.R,v=e.P},e=>{w=e.a},e=>{N=e.a}],execute:function(){var _=document.createElement("style");_.textContent="._background_1qfg6_10{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box;transform-origin:left top;background-color:#f8fafc}._background_1qfg6_10 ._header_1qfg6_19{display:flex;flex-direction:row;align-items:center;padding:0 15px;height:60px;color:#fff;background-color:#181d26}._background_1qfg6_10 ._header_1qfg6_19 ._logo_1qfg6_28{width:32px}._background_1qfg6_10 ._header_1qfg6_19 ._logotext_1qfg6_31{margin-left:10px;font-size:20px;line-height:20px}._background_1qfg6_10 ._header_1qfg6_19 ._menus_1qfg6_36{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;margin-right:50px;font-size:16px;flex:1}._background_1qfg6_10 ._header_1qfg6_19 ._menus_1qfg6_36 ._menublock_1qfg6_45{display:flex;flex-direction:row;align-items:center;margin-left:30px;border-bottom:2px solid transparent;height:60px;color:#d0d6e0;box-sizing:border-box;cursor:pointer}._background_1qfg6_10 ._header_1qfg6_19 ._menus_1qfg6_36 ._menublock_1qfg6_45 ._menublockimg_1qfg6_56{margin-right:8px;width:20px}._background_1qfg6_10 ._header_1qfg6_19 ._menus_1qfg6_36 ._menublock_1qfg6_45:hover,._background_1qfg6_10 ._header_1qfg6_19 ._menus_1qfg6_36 ._menublockselect_1qfg6_64{border-color:#fff;color:#fff}._background_1qfg6_10 ._header_1qfg6_19 ._userview_1qfg6_68{cursor:pointer;display:flex;align-items:center;gap:14px}._background_1qfg6_10 ._header_1qfg6_19 ._userview_1qfg6_68 ._version_1qfg6_75{color:#9297a0;font-size:12px;line-height:1;padding:3px 8px;border:1px solid #3a3f48;border-radius:10px;background:rgba(255,255,255,.04);white-space:nowrap}._background_1qfg6_10 ._header_1qfg6_19 ._userview_1qfg6_68 ._screenEntry_1qfg6_85{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;color:#9297a0;font-size:16px;line-height:1;transition:color .2s,background .2s}._background_1qfg6_10 ._header_1qfg6_19 ._userview_1qfg6_68 ._screenEntry_1qfg6_85:hover{color:#fff;background:rgba(255,255,255,.08)}._background_1qfg6_10 ._bottom_1qfg6_101{display:flex;flex-direction:row;width:100%;height:calc(100% - 60px);box-sizing:border-box}._background_1qfg6_10 ._bottom_1qfg6_101 ._slider_1qfg6_108{display:flex;flex-direction:column;background-color:#1d1f25;transition:width .2s ease;overflow:hidden}._background_1qfg6_10 ._bottom_1qfg6_101 ._slider_1qfg6_108 ._menuWrap_1qfg6_115{flex:1;overflow-y:auto;overflow-x:hidden}._background_1qfg6_10 ._bottom_1qfg6_101 ._slider_1qfg6_108 ._menuWrap_1qfg6_115::-webkit-scrollbar{width:4px}._background_1qfg6_10 ._bottom_1qfg6_101 ._slider_1qfg6_108 ._menuWrap_1qfg6_115::-webkit-scrollbar-thumb{background:#3a3f48;border-radius:2px}._background_1qfg6_10 ._bottom_1qfg6_101 ._slider_1qfg6_108 ._menuIcon_1qfg6_127{display:inline-block;width:16px;height:16px;background-color:currentColor;mask-size:contain;mask-repeat:no-repeat;mask-position:center;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center}._background_1qfg6_10 ._bottom_1qfg6_101 ._slider_1qfg6_108 ._sliderFooter_1qfg6_139{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;height:48px;border-top:1px solid #2a2d35;color:#d0d6e0;font-size:14px;cursor:pointer;user-select:none;flex-shrink:0}._background_1qfg6_10 ._bottom_1qfg6_101 ._slider_1qfg6_108 ._sliderFooter_1qfg6_139:hover{background-color:#23262e;color:#fff}._background_1qfg6_10 ._bottom_1qfg6_101 ._slider_1qfg6_108 ._sliderFooter_1qfg6_139 ._collapseText_1qfg6_157{white-space:nowrap}._background_1qfg6_10 ._bottom_1qfg6_101 ._right_1qfg6_160{display:flex;flex-direction:column;padding:0 40px;flex:1;width:0;box-sizing:border-box;background-color:#f8fafc}._background_1qfg6_10 ._bottom_1qfg6_101 ._right_1qfg6_160 ._route_1qfg6_169{display:flex;flex-direction:row;align-items:center;height:44px}._background_1qfg6_10 ._bottom_1qfg6_101 ._right_1qfg6_160 ._route_1qfg6_169 ._breadcrumb_1qfg6_175{color:#333840}._background_1qfg6_10 ._bottom_1qfg6_101 ._right_1qfg6_160 ._contentview_1qfg6_178{overflow:auto;height:calc(100% - 84px);box-sizing:border-box;background-color:#fff}\n",document.head.appendChild(_),e("default",(function(){const e=o(),_=r(),x=n.useRef(),[q,p]=n.useState([]),[C,I]=n.useState(!1),[K,E]=n.useState({selectKeys:[],openKeys:[]}),P=n.useCallback((e=>t.jsx("a",{href:e.path,style:{color:"unset",fontSize:16},children:e.title},e.path)),[]),W=n.useCallback(((e,_)=>{const o=_&&e.selectIcon||e.icon;if(o)return"string"!=typeof o?o:t.jsx("i",{className:z.menuIcon,style:{maskImage:`url(${o})`,WebkitMaskImage:`url(${o})`}})}),[]);n.useEffect((()=>{const{routes:_}=y(e.pathname),o=[..._];o.pop(),E({openKeys:o.map((e=>e.fullPath)),selectKeys:_.map((e=>e.fullPath))})}),[e.pathname]),n.useEffect((()=>{const e=j.find((e=>"系统"===e.name)),_=e?.children?.find((e=>"后台管理系统"===e.name)),o=_?.children?.find((e=>"后台管理系统"===e.name));p(o?.children||[])}),[]);const F=n.useMemo((()=>{const _=(e,o,r=[])=>e.filter((e=>e.name&&!e.hideInMenu)).reduce(((e,n)=>{if(e)return e;const t=[...r,n];if(n.fullPath===o)return t;if(n.children?.length){const e=_(n.children,o,t);if(e)return e}return null}),null);return _(q,e.pathname)||[]}),[q,e.pathname]),M=(e,_=[])=>e.filter((e=>e.name&&!e.hideInMenu)).map((e=>{const o=K.selectKeys.includes(e.fullPath);return e.children?.filter((e=>e.name&&!e.hideInMenu)).length>0?{key:e.fullPath,icon:W(e,o),label:e.name,children:M(e.children,[..._,e])}:{key:e.fullPath,icon:W(e,o),label:e.name}})),S=[{key:"logout",label:"退出系统",icon:t.jsx(k,{}),onClick:()=>{w.admin.user.logout().then((o=>{o&&_(`/login?redirect=${encodeURIComponent(e.pathname+e.search)}`)}))}}];return t.jsx(i,{locale:l,theme:N,children:t.jsx("div",{style:{width:"100vw",height:"100vh"},children:t.jsxs("div",{className:z.background,ref:x,children:[t.jsxs("div",{className:z.header,children:[t.jsx("img",{className:z.logo,alt:"logo",src:"/logo.svg"}),t.jsx("span",{className:z.logotext,children:v.title}),t.jsx("div",{style:{flex:1}}),t.jsxs("div",{className:z.userview,children:[t.jsx("span",{className:z.version,children:"v1.0.0"}),t.jsx("button",{type:"button",className:z.screenEntry,title:"进入大屏",onClick:()=>_("/screen"),children:t.jsx(s,{})}),t.jsx(a,{menu:{items:S},children:t.jsxs("div",{className:z.userInfo,children:[t.jsx(c,{style:{backgroundColor:"transparent",border:"2px solid #d1d1d1"},icon:t.jsx(g,{})}),t.jsx("span",{style:{margin:"0 10px"},children:"admin"}),t.jsx(f,{})]})})]})]}),t.jsxs("div",{className:z.bottom,children:[t.jsxs("div",{className:z.slider,style:{width:C?64:240},children:[t.jsx("div",{className:z.menuWrap,children:t.jsx(d,{mode:"inline",inlineCollapsed:C,items:M(q),onSelect:e=>{_(e.key)},selectedKeys:K.selectKeys,openKeys:C?[]:K.openKeys,onOpenChange:e=>{E({...K,openKeys:e})}})}),t.jsxs("div",{className:z.sliderFooter,onClick:()=>I((e=>!e)),role:"button",tabIndex:0,children:[C?t.jsx(u,{}):t.jsx(m,{}),!C&&t.jsx("span",{className:z.collapseText,children:"收起菜单"})]})]}),t.jsxs("div",{className:z.right,children:[t.jsx("div",{className:z.route,children:t.jsx(h,{items:F.map((e=>({key:e.name,title:e.name,path:e.fullPath}))),className:z.breadcrumb,itemRender:P})}),t.jsx("div",{className:z.contentview,children:t.jsx(b,{})})]})]})]})})})}));const z={background:"_background_1qfg6_10",header:"_header_1qfg6_19",logo:"_logo_1qfg6_28",logotext:"_logotext_1qfg6_31",menus:"_menus_1qfg6_36",menublock:"_menublock_1qfg6_45",menublockimg:"_menublockimg_1qfg6_56",menublockselect:"_menublockselect_1qfg6_64",userview:"_userview_1qfg6_68",version:"_version_1qfg6_75",screenEntry:"_screenEntry_1qfg6_85",bottom:"_bottom_1qfg6_101",slider:"_slider_1qfg6_108",menuWrap:"_menuWrap_1qfg6_115",menuIcon:"_menuIcon_1qfg6_127",sliderFooter:"_sliderFooter_1qfg6_139",collapseText:"_collapseText_1qfg6_157",right:"_right_1qfg6_160",route:"_route_1qfg6_169",breadcrumb:"_breadcrumb_1qfg6_175",contentview:"_contentview_1qfg6_178"};x.locale(q),p.object}}}));
1
+ System.register(["./vendor-legacy-55fa76eb.js","./index-legacy-06483318.js","./api-legacy-9fe41d4b.js","./theme-legacy-ad78aecb.js"],(function(e,_){"use strict";var o,r,n,t,i,l,s,a,c,g,f,d,u,m,h,b,x,q,p,k,y,j,v,w,N;return{setters:[e=>{o=e.e,r=e.u,n=e.r,t=e.j,i=e.C,l=e.Z,s=e.D,a=e.f,c=e.A,g=e.U,f=e.g,d=e.M,u=e.h,m=e.i,h=e.k,b=e.O,x=e.l,q=e.z,p=e.m,k=e.L},e=>{y=e.g,j=e.R,v=e.P},e=>{w=e.a},e=>{N=e.a}],execute:function(){var _=document.createElement("style");_.textContent="._background_1qfg6_10{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box;transform-origin:left top;background-color:#f8fafc}._background_1qfg6_10 ._header_1qfg6_19{display:flex;flex-direction:row;align-items:center;padding:0 15px;height:60px;color:#fff;background-color:#181d26}._background_1qfg6_10 ._header_1qfg6_19 ._logo_1qfg6_28{width:32px}._background_1qfg6_10 ._header_1qfg6_19 ._logotext_1qfg6_31{margin-left:10px;font-size:20px;line-height:20px}._background_1qfg6_10 ._header_1qfg6_19 ._menus_1qfg6_36{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;margin-right:50px;font-size:16px;flex:1}._background_1qfg6_10 ._header_1qfg6_19 ._menus_1qfg6_36 ._menublock_1qfg6_45{display:flex;flex-direction:row;align-items:center;margin-left:30px;border-bottom:2px solid transparent;height:60px;color:#d0d6e0;box-sizing:border-box;cursor:pointer}._background_1qfg6_10 ._header_1qfg6_19 ._menus_1qfg6_36 ._menublock_1qfg6_45 ._menublockimg_1qfg6_56{margin-right:8px;width:20px}._background_1qfg6_10 ._header_1qfg6_19 ._menus_1qfg6_36 ._menublock_1qfg6_45:hover,._background_1qfg6_10 ._header_1qfg6_19 ._menus_1qfg6_36 ._menublockselect_1qfg6_64{border-color:#fff;color:#fff}._background_1qfg6_10 ._header_1qfg6_19 ._userview_1qfg6_68{cursor:pointer;display:flex;align-items:center;gap:14px}._background_1qfg6_10 ._header_1qfg6_19 ._userview_1qfg6_68 ._version_1qfg6_75{color:#9297a0;font-size:12px;line-height:1;padding:3px 8px;border:1px solid #3a3f48;border-radius:10px;background:rgba(255,255,255,.04);white-space:nowrap}._background_1qfg6_10 ._header_1qfg6_19 ._userview_1qfg6_68 ._screenEntry_1qfg6_85{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;color:#9297a0;font-size:16px;line-height:1;transition:color .2s,background .2s}._background_1qfg6_10 ._header_1qfg6_19 ._userview_1qfg6_68 ._screenEntry_1qfg6_85:hover{color:#fff;background:rgba(255,255,255,.08)}._background_1qfg6_10 ._bottom_1qfg6_101{display:flex;flex-direction:row;width:100%;height:calc(100% - 60px);box-sizing:border-box}._background_1qfg6_10 ._bottom_1qfg6_101 ._slider_1qfg6_108{display:flex;flex-direction:column;background-color:#1d1f25;transition:width .2s ease;overflow:hidden}._background_1qfg6_10 ._bottom_1qfg6_101 ._slider_1qfg6_108 ._menuWrap_1qfg6_115{flex:1;overflow-y:auto;overflow-x:hidden}._background_1qfg6_10 ._bottom_1qfg6_101 ._slider_1qfg6_108 ._menuWrap_1qfg6_115::-webkit-scrollbar{width:4px}._background_1qfg6_10 ._bottom_1qfg6_101 ._slider_1qfg6_108 ._menuWrap_1qfg6_115::-webkit-scrollbar-thumb{background:#3a3f48;border-radius:2px}._background_1qfg6_10 ._bottom_1qfg6_101 ._slider_1qfg6_108 ._menuIcon_1qfg6_127{display:inline-block;width:16px;height:16px;background-color:currentColor;mask-size:contain;mask-repeat:no-repeat;mask-position:center;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center}._background_1qfg6_10 ._bottom_1qfg6_101 ._slider_1qfg6_108 ._sliderFooter_1qfg6_139{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;height:48px;border-top:1px solid #2a2d35;color:#d0d6e0;font-size:14px;cursor:pointer;user-select:none;flex-shrink:0}._background_1qfg6_10 ._bottom_1qfg6_101 ._slider_1qfg6_108 ._sliderFooter_1qfg6_139:hover{background-color:#23262e;color:#fff}._background_1qfg6_10 ._bottom_1qfg6_101 ._slider_1qfg6_108 ._sliderFooter_1qfg6_139 ._collapseText_1qfg6_157{white-space:nowrap}._background_1qfg6_10 ._bottom_1qfg6_101 ._right_1qfg6_160{display:flex;flex-direction:column;padding:0 40px;flex:1;width:0;box-sizing:border-box;background-color:#f8fafc}._background_1qfg6_10 ._bottom_1qfg6_101 ._right_1qfg6_160 ._route_1qfg6_169{display:flex;flex-direction:row;align-items:center;height:44px}._background_1qfg6_10 ._bottom_1qfg6_101 ._right_1qfg6_160 ._route_1qfg6_169 ._breadcrumb_1qfg6_175{color:#333840}._background_1qfg6_10 ._bottom_1qfg6_101 ._right_1qfg6_160 ._contentview_1qfg6_178{overflow:auto;height:calc(100% - 84px);box-sizing:border-box;background-color:#fff}\n",document.head.appendChild(_),e("default",(function(){const e=o(),_=r(),x=n.useRef(),[q,p]=n.useState([]),[C,I]=n.useState(!1),[K,E]=n.useState({selectKeys:[],openKeys:[]}),P=n.useCallback((e=>t.jsx("a",{href:e.path,style:{color:"unset",fontSize:16},children:e.title},e.path)),[]),W=n.useCallback(((e,_)=>{const o=_&&e.selectIcon||e.icon;if(o)return"string"!=typeof o?o:t.jsx("i",{className:z.menuIcon,style:{maskImage:`url(${o})`,WebkitMaskImage:`url(${o})`}})}),[]);n.useEffect((()=>{const{routes:_}=y(e.pathname),o=[..._];o.pop(),E({openKeys:o.map((e=>e.fullPath)),selectKeys:_.map((e=>e.fullPath))})}),[e.pathname]),n.useEffect((()=>{const e=j.find((e=>"系统"===e.name)),_=e?.children?.find((e=>"后台管理系统"===e.name)),o=_?.children?.find((e=>"后台管理系统"===e.name));p(o?.children||[])}),[]);const F=n.useMemo((()=>{const _=(e,o,r=[])=>e.filter((e=>e.name&&!e.hideInMenu)).reduce(((e,n)=>{if(e)return e;const t=[...r,n];if(n.fullPath===o)return t;if(n.children?.length){const e=_(n.children,o,t);if(e)return e}return null}),null);return _(q,e.pathname)||[]}),[q,e.pathname]),M=(e,_=[])=>e.filter((e=>e.name&&!e.hideInMenu)).map((e=>{const o=K.selectKeys.includes(e.fullPath);return e.children?.filter((e=>e.name&&!e.hideInMenu)).length>0?{key:e.fullPath,icon:W(e,o),label:e.name,children:M(e.children,[..._,e])}:{key:e.fullPath,icon:W(e,o),label:e.name}})),S=[{key:"logout",label:"退出系统",icon:t.jsx(k,{}),onClick:()=>{w.admin.user.logout().then((o=>{o&&_(`/login?redirect=${encodeURIComponent(e.pathname+e.search)}`)}))}}];return t.jsx(i,{locale:l,theme:N,children:t.jsx("div",{style:{width:"100vw",height:"100vh"},children:t.jsxs("div",{className:z.background,ref:x,children:[t.jsxs("div",{className:z.header,children:[t.jsx("img",{className:z.logo,alt:"logo",src:"/logo.svg"}),t.jsx("span",{className:z.logotext,children:v.title}),t.jsx("div",{style:{flex:1}}),t.jsxs("div",{className:z.userview,children:[t.jsx("span",{className:z.version,children:"v1.0.0"}),t.jsx("button",{type:"button",className:z.screenEntry,title:"进入大屏",onClick:()=>_("/screen"),children:t.jsx(s,{})}),t.jsx(a,{menu:{items:S},children:t.jsxs("div",{className:z.userInfo,children:[t.jsx(c,{style:{backgroundColor:"transparent",border:"2px solid #d1d1d1"},icon:t.jsx(g,{})}),t.jsx("span",{style:{margin:"0 10px"},children:"admin"}),t.jsx(f,{})]})})]})]}),t.jsxs("div",{className:z.bottom,children:[t.jsxs("div",{className:z.slider,style:{width:C?64:240},children:[t.jsx("div",{className:z.menuWrap,children:t.jsx(d,{mode:"inline",inlineCollapsed:C,items:M(q),onSelect:e=>{_(e.key)},selectedKeys:K.selectKeys,openKeys:C?[]:K.openKeys,onOpenChange:e=>{E({...K,openKeys:e})}})}),t.jsxs("div",{className:z.sliderFooter,onClick:()=>I((e=>!e)),role:"button",tabIndex:0,children:[C?t.jsx(u,{}):t.jsx(m,{}),!C&&t.jsx("span",{className:z.collapseText,children:"收起菜单"})]})]}),t.jsxs("div",{className:z.right,children:[t.jsx("div",{className:z.route,children:t.jsx(h,{items:F.map((e=>({key:e.name,title:e.name,path:e.fullPath}))),className:z.breadcrumb,itemRender:P})}),t.jsx("div",{className:z.contentview,children:t.jsx(b,{})})]})]})]})})})}));const z={background:"_background_1qfg6_10",header:"_header_1qfg6_19",logo:"_logo_1qfg6_28",logotext:"_logotext_1qfg6_31",menus:"_menus_1qfg6_36",menublock:"_menublock_1qfg6_45",menublockimg:"_menublockimg_1qfg6_56",menublockselect:"_menublockselect_1qfg6_64",userview:"_userview_1qfg6_68",version:"_version_1qfg6_75",screenEntry:"_screenEntry_1qfg6_85",bottom:"_bottom_1qfg6_101",slider:"_slider_1qfg6_108",menuWrap:"_menuWrap_1qfg6_115",menuIcon:"_menuIcon_1qfg6_127",sliderFooter:"_sliderFooter_1qfg6_139",collapseText:"_collapseText_1qfg6_157",right:"_right_1qfg6_160",route:"_route_1qfg6_169",breadcrumb:"_breadcrumb_1qfg6_175",contentview:"_contentview_1qfg6_178"};x.locale(q),p.object}}}));
@@ -1 +1 @@
1
- import{r as c,u as g,e as f,j as o,O as w}from"./vendor-2663c204.js";import{g as v,P as l}from"./index-e4c9d42a.js";const _="_background_16kac_10",m="_layoutheaderview_16kac_17",y="_headerbg_16kac_25",b="_layoutcontentview_16kac_31",u={background:_,layoutheaderview:m,headerbg:y,layoutcontentview:b};var h;const E=(h=l.screenWeb)==null?void 0:h.width;var d;const k=(d=l.screenWeb)==null?void 0:d.height,p=1600;function R(){const t=c.useRef(null);g();const a=f(),{width:s,height:i}=c.useMemo(()=>{const{routes:r}=v(a.pathname),n=r[r.length-1],e=n==null?void 0:n.meta;return e!=null&&e.width&&(e!=null&&e.height)?{width:e.width,height:e.height}:{width:E,height:k}},[a.pathname]);return c.useEffect(()=>{const r=new ResizeObserver(()=>{if(!t.current)return;const{parentElement:n}=t.current;if(!n)return;if(s<=p){t.current.style.transform="none";return}const e=n.offsetWidth/s;t.current.style.transform="scale(".concat(e,")")});return r.observe(t.current.parentElement),()=>{r.disconnect()}},[s,i]),o.jsx("div",{style:{width:"100vw",height:"100vh"},children:o.jsx("div",{className:u.background,style:{width:s,height:i},ref:t,children:o.jsx("div",{className:u.layoutcontentview,children:o.jsx(w,{})})})})}export{R as default};
1
+ import{r as c,u as g,e as f,j as o,O as w}from"./vendor-affac96c.js";import{g as v,P as l}from"./index-86214b19.js";const _="_background_16kac_10",m="_layoutheaderview_16kac_17",y="_headerbg_16kac_25",b="_layoutcontentview_16kac_31",u={background:_,layoutheaderview:m,headerbg:y,layoutcontentview:b};var h;const E=(h=l.screenWeb)==null?void 0:h.width;var d;const k=(d=l.screenWeb)==null?void 0:d.height,p=1600;function R(){const t=c.useRef(null);g();const a=f(),{width:s,height:i}=c.useMemo(()=>{const{routes:r}=v(a.pathname),n=r[r.length-1],e=n==null?void 0:n.meta;return e!=null&&e.width&&(e!=null&&e.height)?{width:e.width,height:e.height}:{width:E,height:k}},[a.pathname]);return c.useEffect(()=>{const r=new ResizeObserver(()=>{if(!t.current)return;const{parentElement:n}=t.current;if(!n)return;if(s<=p){t.current.style.transform="none";return}const e=n.offsetWidth/s;t.current.style.transform="scale(".concat(e,")")});return r.observe(t.current.parentElement),()=>{r.disconnect()}},[s,i]),o.jsx("div",{style:{width:"100vw",height:"100vh"},children:o.jsx("div",{className:u.background,style:{width:s,height:i},ref:t,children:o.jsx("div",{className:u.layoutcontentview,children:o.jsx(w,{})})})})}export{R as default};
@@ -1 +1 @@
1
- System.register(["./vendor-legacy-2df23db3.js","./index-legacy-aebba3cb.js"],(function(e,t){"use strict";var n,r,o,a,i,c,s;return{setters:[e=>{n=e.r,r=e.u,o=e.e,a=e.j,i=e.O},e=>{c=e.g,s=e.P}],execute:function(){var t=document.createElement("style");t.textContent="._background_16kac_10{display:flex;flex-direction:column;transform-origin:left top;background-color:#002241;background-size:100% 100%}._background_16kac_10 ._layoutheaderview_16kac_17{position:relative;display:flex;flex-direction:row;width:100%;height:120px;background-size:100% 100%}._background_16kac_10 ._layoutheaderview_16kac_17 ._headerbg_16kac_25{position:absolute;top:25px;left:50%;transform:translate(-50%)}._background_16kac_10 ._layoutcontentview_16kac_31{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}\n",document.head.appendChild(t),e("default",(function(){const e=n.useRef(null);r();const t=o(),{width:s,height:_}=n.useMemo((()=>{const{routes:e}=c(t.pathname),n=e[e.length-1],r=n?.meta;return r?.width&&r?.height?{width:r.width,height:r.height}:{width:u,height:h}}),[t.pathname]);return n.useEffect((()=>{const t=new ResizeObserver((()=>{if(!e.current)return;const{parentElement:t}=e.current;if(!t)return;if(s<=l)return void(e.current.style.transform="none");const n=t.offsetWidth/s;e.current.style.transform=`scale(${n})`}));return t.observe(e.current.parentElement),()=>{t.disconnect()}}),[s,_]),a.jsx("div",{style:{width:"100vw",height:"100vh"},children:a.jsx("div",{className:d.background,style:{width:s,height:_},ref:e,children:a.jsx("div",{className:d.layoutcontentview,children:a.jsx(i,{})})})})}));const d={background:"_background_16kac_10",layoutheaderview:"_layoutheaderview_16kac_17",headerbg:"_headerbg_16kac_25",layoutcontentview:"_layoutcontentview_16kac_31"},u=s.screenWeb?.width,h=s.screenWeb?.height,l=1600}}}));
1
+ System.register(["./vendor-legacy-55fa76eb.js","./index-legacy-06483318.js"],(function(e,t){"use strict";var n,r,o,a,i,c,s;return{setters:[e=>{n=e.r,r=e.u,o=e.e,a=e.j,i=e.O},e=>{c=e.g,s=e.P}],execute:function(){var t=document.createElement("style");t.textContent="._background_16kac_10{display:flex;flex-direction:column;transform-origin:left top;background-color:#002241;background-size:100% 100%}._background_16kac_10 ._layoutheaderview_16kac_17{position:relative;display:flex;flex-direction:row;width:100%;height:120px;background-size:100% 100%}._background_16kac_10 ._layoutheaderview_16kac_17 ._headerbg_16kac_25{position:absolute;top:25px;left:50%;transform:translate(-50%)}._background_16kac_10 ._layoutcontentview_16kac_31{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}\n",document.head.appendChild(t),e("default",(function(){const e=n.useRef(null);r();const t=o(),{width:s,height:_}=n.useMemo((()=>{const{routes:e}=c(t.pathname),n=e[e.length-1],r=n?.meta;return r?.width&&r?.height?{width:r.width,height:r.height}:{width:u,height:h}}),[t.pathname]);return n.useEffect((()=>{const t=new ResizeObserver((()=>{if(!e.current)return;const{parentElement:t}=e.current;if(!t)return;if(s<=l)return void(e.current.style.transform="none");const n=t.offsetWidth/s;e.current.style.transform=`scale(${n})`}));return t.observe(e.current.parentElement),()=>{t.disconnect()}}),[s,_]),a.jsx("div",{style:{width:"100vw",height:"100vh"},children:a.jsx("div",{className:d.background,style:{width:s,height:_},ref:e,children:a.jsx("div",{className:d.layoutcontentview,children:a.jsx(i,{})})})})}));const d={background:"_background_16kac_10",layoutheaderview:"_layoutheaderview_16kac_17",headerbg:"_headerbg_16kac_25",layoutcontentview:"_layoutcontentview_16kac_31"},u=s.screenWeb?.width,h=s.screenWeb?.height,l=1600}}}));
@@ -1 +1 @@
1
- import{a6 as m}from"./vendor-2663c204.js";import"./base-5bf689c3.js";import{L as p}from"./echarts-vendor-d6ce4b9c.js";const x="#194475",h="#7bc8ff",f="#b8ddff",d="#194475",y="#7bc8ff",s="#b8ddff",S="#194475";function b(t){const n=[];for(let l=0;l<12;l++)n.push({type:"".concat(l+1,"月"),value:200*Math.random()});const r={dimensions:["type","value"],source:n},o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:"0%",right:"0%",bottom:"0px",top:"50px",containLabel:!0,z:22},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},yAxis:{name:"单位:%",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{color:f,fontSize:14,margin:10}},series:{name:"数值",type:"bar",barWidth:"30%",xAxisIndex:0,yAxisIndex:0,itemStyle:{borderRadius:[20,20,0,0],color:new p(0,1,0,0,[{offset:0,color:"#67c8ff"},{offset:1,color:"#1158b9"}])},showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],color:"#e9ebf7"}},dataset:r};return m.merge(o,t),o}function g(t,n){const r=[];for(let e=0;e<12;e++)r.push({type:"".concat(e+1,"月"),...t.reduce((a,c,u)=>(a[c]=(200*Math.random()*(u%2===1?1:-1)).toFixed(2),a),{})});const o={dimensions:["type",...t],source:r},l={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:"0%",right:"0%",bottom:"0px",top:"50px",containLabel:!0,z:22},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,textStyle:{color:s},fontSize:14,margin:10}},yAxis:{name:"单位:元",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,textStyle:{color:f},fontSize:14,margin:10}},series:[],dataset:o},i=t.map(e=>({name:e,type:"bar",xAxisIndex:0,yAxisIndex:0,showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],show:!0,color:"#e9ebf7"}}));return l.series=i,m.merge(l,n),l}function w(t,n){const r={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:40,right:20,bottom:"0px",top:0,containLabel:!0,z:22},xAxis:{name:"单位:%",nameTextStyle:{color:s},splitLine:{show:!0},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{color:f,fontSize:14,margin:10}},yAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},series:{name:"合格率",type:"bar",barWidth:"30%",xAxisIndex:0,yAxisIndex:0,itemStyle:{borderRadius:[0,20,20,0],color:new p(0,0,1,0,[{offset:0,color:"#67c8ff"},{offset:1,color:"#1158b9"}])},showBackground:!0,backgroundStyle:{borderRadius:[0,20,20,0],color:"#e9ebf7"}}};if(m.merge(r,n),!r.dataset){let o=[];t==null||t.forEach(l=>{o.push({type:l,value:(Math.random()*100).toFixed(2)})}),o.length===0&&(o=[{type:"克州",value:20},{type:"乌鲁木齐",value:30},{type:"超高压",value:80},{type:"昌吉",value:22},{type:"吐鲁番",value:20},{type:"奎屯",value:30},{type:"博尔塔拉",value:26},{type:"哈密",value:28}]),r.dataset={dimensions:["type","value"],source:o}}return r}const L=(t,n)=>{const r=[[{offset:0,color:"rgba(0,255,171, 0.8)"},{offset:1,color:"rgba(59,103,89,0)"}],[{offset:0,color:"rgba(255,255,255, 0.8)"},{offset:1,color:"rgba(255,255,255, 0)"}],[{offset:0,color:"rgba(0,180,255, 0.8)"},{offset:1,color:"rgba(255,255,255, 0)"}]],o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!0,textStyle:{color:s}},grid:{left:10,right:0,bottom:0,top:30,containLabel:!0},color:["#00ffab","#ffffff","#00b4ff"],xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},yAxis:{name:"单位:元",nameTextStyle:{color:s},splitLine:{show:!0,lineStyle:{type:"dashed",color:S}},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,color:f,fontSize:14,margin:10}},series:[],animation:!0},l=[];if(t.forEach((i,e)=>{l.push({name:i,type:"line",showAllSymbol:!0,symbol:"circle",symbolSize:0,label:{show:!1,position:"top",textStyle:{color:"#148c90"}},areaStyle:{normal:{color:new p(0,0,0,1,r[e],!1)}}})}),o.series=l,m.merge(o,n),!o.dataset){const i=[];for(let e=0;e<10;e++){const a={time:e+1};t.forEach(c=>{a[c]=Math.random()*100}),i.push(a)}o.dataset={dimensions:["time",...t],source:i}}return o};function A(t=["预测误差","预测波动"],n={}){const r=["#ffba00","#2759a4","#ff7e00","#6fbd6b","#50abdf","#7181d0","#ac77ce"],o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}},alwaysShowContent:!0,formatter:l=>{const[{data:i={},dimensionNames:e=[]}]=l;return"".concat(i.name,"<br /><span>").concat(t[0],":").concat(i[e[0]],"<br />").concat(t[1],":").concat(i[e[1]])}},legend:{show:!1,textStyle:{color:s}},grid:{left:50,right:80,bottom:30,top:30,containLabel:!0},xAxis:{name:t[0],splitLine:{show:!1},axisLine:{lineStyle:{color:d},symbol:["none","arrow"]},axisTick:{show:!1},axisLabel:{show:!1}},yAxis:{name:t[1],nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x},symbol:["none","arrow"]},axisTick:{show:!1},axisLabel:{show:!1}},series:{name:"",type:"scatter",symbol:"circle",symbolSize:20,label:{show:!0,position:"top"},itemStyle:{color(l){let i=l.dataIndex;return i>=6&&(i-=6),r[i]}}}};return m.merge(o,n),o.dataset||(o.dataset={dimensions:["均方误差","平均绝对误差"],source:[{name:"专家修正",平均绝对误差:2.349,均方误差:2.333},{name:"智能AI算法",平均绝对误差:3.333,均方误差:2.333},{name:"自回归移动平均模型",平均绝对误差:4.333,均方误差:5.333}]}),o}function v(t){const n={title:{text:"",left:"center",top:"53%",padding:[24,0]},series:[{name:"",type:"pie",radius:["40%","60%"],label:{formatter:r=>{const{percent:o}=r;return"{black|".concat(r.name,"} {yellow|").concat(r.value,"} {blue|").concat(o,"%}")},padding:[0,-60],height:50,rich:{black:{color:"#333",align:"right",fontSize:14,padding:[4,0],borderColor:"red"},yellow:{color:"#ffc72b",fontSize:16,padding:[5,4],align:"center"},blue:{color:"#28c9db",fontSize:14,align:"center"}}},labelLine:{showAbove:!0,length:60,length2:60,maxSurfaceAngle:0,lineStyle:{color:"#0b5263"}}}]};return m.merge(n,t),n.series[0].data||(n.series[0].data=[{value:260,name:"测试1"},{value:103,name:"测试2"},{value:63,name:"测试3"},{value:53,name:"测试4"},{value:48,name:"测试5"},{value:233,name:"测试6"}]),n}function z(t=["容量","同期","上一周期"],n=["同比","环比","占总比重"],r={}){const o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0,textStyle:{color:s}},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},color:["#00b4ff","#ffffff","#00ffab"],xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},yAxis:[{name:"单位:千瓦时",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,color:f,fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:s},min:-10,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,color:f,fontSize:14,margin:10}}],animation:!0,series:[]},l=[];if(t.forEach(i=>{l.push({name:i,type:"bar",yAxisIndex:0})}),n.forEach(i=>{l.push({name:i,yAxisIndex:1,type:"line",showAllSymbol:!1,symbol:"circle",symbolSize:0,label:{show:!1,position:"top",textStyle:{color:"#148c90"}}})}),o.series=l,m.merge(o,r),!o.dataset){const i=[];for(let e=0;e<30;e++){const a={time:e+1};t.forEach(c=>{a[c]=(Math.random()*500).toFixed(2)}),n.forEach(c=>{a[c]=(Math.random()*100).toFixed(2)}),i.push(a)}o.dataset={dimensions:["time",...t,...n],source:i}}return o}function k(t,n,r){const o=[];for(let a=0;a<10;a++){const c={time:a+1};t.forEach(u=>{c[u]=(Math.random()*500).toFixed(2)}),n.forEach(u=>{c[u]=(Math.random()*100).toFixed(2)}),o.push(c)}const l={dimensions:["time",...t,...n],source:o},i={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0,textStyle:{color:s}},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},color:["#00b4ff","#ffffff","#00ffab"],xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,textStyle:{color:s},fontSize:14,margin:10}},yAxis:[{name:"单位:万户",nameTextStyle:{color:f},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,textStyle:{color:f},fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:f},min:0,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,textStyle:{color:f},fontSize:14,margin:10}}],animation:!0,series:[],dataset:l},e=[];return t.forEach(a=>{e.push({name:a,type:"bar",barWidth:"30%",yAxisIndex:0,stack:!0})}),n.forEach(a=>{e.push({name:a,yAxisIndex:1,type:"line",showAllSymbol:!0,symbol:"circle",symbolSize:0,label:{show:!1,position:"top",textStyle:{color:"#148c90"}},areaStyle:{normal:{color:new p(0,0,0,1,[{offset:0,color:"rgba(0,255,171, 0.8)"},{offset:1,color:"rgba(59,103,89,0.8)"}],!1)}}})}),i.series=e,m.merge(i,r),i}function T(t,n){const r=[{name:"智能AI算法",value:[1.45,1.96]},{name:"专家修正",value:[2.39,3.81]},{name:"XGBoost",value:[3.84,4.26]}],o=()=>{let e=0;return t.forEach(a=>{e+=a.value[0]}),(e/t.length).toFixed(2)},l=()=>{let e=0;return t.forEach(a=>{e+=a.value[1]}),(e/t.length).toFixed(2)},i={title:{text:""},grid:{left:"10px",right:"100px",bottom:0,top:"30px",containLabel:!0},tooltip:{trigger:"item",axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}},formatter:e=>'<div style="border-bottom: 1px solid rgba(255,255,255,.3); font-size: 18px;padding-bottom: 7px;margin-bottom: 7px">'.concat(e.name,"</div><span>预测误差</span> : ").concat(e.data.value[0],"<br/><span>预测波动</span> : ").concat(e.data.value[1])},xAxis:{name:"预测误差",type:"value",scale:!0,splitLine:{show:!1},axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,textStyle:{color:s},fontSize:14,margin:10}},yAxis:{name:"预测波动",nameTextStyle:{color:f},type:"value",scale:!0,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,textStyle:{color:f},fontSize:14,margin:10}},series:[{type:"scatter",data:t||r,symbolSize:20,markLine:{label:{normal:{formatter(e){return e.name}}},lineStyle:{normal:{color:"#626c91",type:"solid",width:1},emphasis:{color:"#d9def7"}},data:[{xAxis:o(),name:"预测误差平均水平",label:{color:"red"}},{yAxis:l(),name:"预测波动平均水平",label:{color:"red"}}]}}]};return m.merge(i,n),i}function E(t=["容量","同期","上一周期"],n=["同比","环比","占总比重"],r={}){const o=[[{offset:0,color:"rgba(0,255,171, 0.8)"},{offset:1,color:"rgba(59,103,89,0)"}],[{offset:0,color:"rgba(255,255,255, 0.8)"},{offset:1,color:"rgba(255,255,255, 0)"}],[{offset:0,color:"rgba(0,180,255, 0.8)"},{offset:1,color:"rgba(255,255,255, 0)"}]],l={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0,textStyle:{color:s}},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10,rotate:60}},yAxis:[{name:"单位:千瓦时",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,color:f,fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:s},min:0,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,color:f,fontSize:14,margin:10}}],color:["#00ffab","#ffffff","#00b4ff"],animation:!0,series:[]},i=[];if(t.forEach(e=>{i.push({name:e,type:"bar",showBackground:!1,yAxisIndex:0,itemStyle:{color:"#06dbff"}})}),n.forEach((e,a)=>{i.push({name:e,yAxisIndex:1,type:"line",showAllSymbol:!1,symbol:"circle",symbolSize:10,lineStyle:{width:2},itemStyle:{normal:{borderWidth:2}},areaStyle:{normal:{color:new p(0,0,0,1,o[a],!1)}}})}),l.series=i,m.merge(l,r),!l.dataset){const e=[];for(let a=0;a<10;a++){const c={time:a+1};t.forEach(u=>{c[u]=(Math.random()*500).toFixed(2)}),n.forEach(u=>{c[u]=(Math.random()*100).toFixed(2)}),e.push(c)}l.dataset={dimensions:["time",...t,...n],source:e}}return l}function B(t=["容量","同期","上一周期"],n=["同比","环比","占总比重"],r={}){const o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0,textStyle:{color:s}},color:["#ffffff","#00b4ff","#00ffab"],grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},yAxis:[{name:"单位:千瓦时",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,color:f,fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:s},min:0,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,color:f,fontSize:14,margin:10}}],animation:!0,series:[]},l=[];if(t.forEach(i=>{l.push({name:i,type:"bar",yAxisIndex:0,showBackground:!0,backgroundStyle:{borderRadius:0,show:!0,color:"rgba(0,0,0,0)",borderColor:"#194475",borderWidth:1}})}),n.forEach(i=>{l.push({name:i,yAxisIndex:1,type:"line",showAllSymbol:!1,symbol:"circle",symbolSize:0,label:{show:!1,position:"top",textStyle:{color:"#148c90"}},lineStyle:{color:"#00ffab",width:2},itemStyle:{normal:{color:"#fff",borderColor:"#00ffab",borderWidth:2}},areaStyle:{normal:{color:new p(0,0,0,1,[{offset:0,color:"rgba(0,255,171, 0.8)"},{offset:1,color:"rgba(59,103,89,0.8)"}],!1)}}})}),o.series=l,m.merge(o,r),!o.dataset){const i=[];for(let e=0;e<10;e++){const a={time:e+1};t.forEach(c=>{a[c]=(Math.random()*500).toFixed(2)}),n.forEach(c=>{a[c]=(Math.random()*100).toFixed(2)}),i.push(a)}o.dataset={dimensions:["time",...t,...n],source:i}}return o}const O=Object.freeze(Object.defineProperty({__proto__:null,getBarAndBgLineOption:E,getBarAndLineOption:z,getBarStackAndLineOption:k,getBaseBarChartOption:b,getBaseBarRollbackChartOption:w,getBgBarAndLineOption:B,getLineChartOption:L,getMultiBarChartOption:g,getPieChartOption:v,getScatterChartOption:A,getScatterPlotOption:T},Symbol.toStringTag,{value:"Module"}));export{O as S,v as a,z as b,b as g};
1
+ import{a6 as m}from"./vendor-affac96c.js";import"./base-a14309c8.js";import{L as p}from"./echarts-vendor-50090982.js";const x="#194475",h="#7bc8ff",f="#b8ddff",d="#194475",y="#7bc8ff",s="#b8ddff",S="#194475";function b(t){const n=[];for(let l=0;l<12;l++)n.push({type:"".concat(l+1,"月"),value:200*Math.random()});const r={dimensions:["type","value"],source:n},o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:"0%",right:"0%",bottom:"0px",top:"50px",containLabel:!0,z:22},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},yAxis:{name:"单位:%",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{color:f,fontSize:14,margin:10}},series:{name:"数值",type:"bar",barWidth:"30%",xAxisIndex:0,yAxisIndex:0,itemStyle:{borderRadius:[20,20,0,0],color:new p(0,1,0,0,[{offset:0,color:"#67c8ff"},{offset:1,color:"#1158b9"}])},showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],color:"#e9ebf7"}},dataset:r};return m.merge(o,t),o}function g(t,n){const r=[];for(let e=0;e<12;e++)r.push({type:"".concat(e+1,"月"),...t.reduce((a,c,u)=>(a[c]=(200*Math.random()*(u%2===1?1:-1)).toFixed(2),a),{})});const o={dimensions:["type",...t],source:r},l={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:"0%",right:"0%",bottom:"0px",top:"50px",containLabel:!0,z:22},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,textStyle:{color:s},fontSize:14,margin:10}},yAxis:{name:"单位:元",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,textStyle:{color:f},fontSize:14,margin:10}},series:[],dataset:o},i=t.map(e=>({name:e,type:"bar",xAxisIndex:0,yAxisIndex:0,showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],show:!0,color:"#e9ebf7"}}));return l.series=i,m.merge(l,n),l}function w(t,n){const r={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:40,right:20,bottom:"0px",top:0,containLabel:!0,z:22},xAxis:{name:"单位:%",nameTextStyle:{color:s},splitLine:{show:!0},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{color:f,fontSize:14,margin:10}},yAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},series:{name:"合格率",type:"bar",barWidth:"30%",xAxisIndex:0,yAxisIndex:0,itemStyle:{borderRadius:[0,20,20,0],color:new p(0,0,1,0,[{offset:0,color:"#67c8ff"},{offset:1,color:"#1158b9"}])},showBackground:!0,backgroundStyle:{borderRadius:[0,20,20,0],color:"#e9ebf7"}}};if(m.merge(r,n),!r.dataset){let o=[];t==null||t.forEach(l=>{o.push({type:l,value:(Math.random()*100).toFixed(2)})}),o.length===0&&(o=[{type:"克州",value:20},{type:"乌鲁木齐",value:30},{type:"超高压",value:80},{type:"昌吉",value:22},{type:"吐鲁番",value:20},{type:"奎屯",value:30},{type:"博尔塔拉",value:26},{type:"哈密",value:28}]),r.dataset={dimensions:["type","value"],source:o}}return r}const L=(t,n)=>{const r=[[{offset:0,color:"rgba(0,255,171, 0.8)"},{offset:1,color:"rgba(59,103,89,0)"}],[{offset:0,color:"rgba(255,255,255, 0.8)"},{offset:1,color:"rgba(255,255,255, 0)"}],[{offset:0,color:"rgba(0,180,255, 0.8)"},{offset:1,color:"rgba(255,255,255, 0)"}]],o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!0,textStyle:{color:s}},grid:{left:10,right:0,bottom:0,top:30,containLabel:!0},color:["#00ffab","#ffffff","#00b4ff"],xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},yAxis:{name:"单位:元",nameTextStyle:{color:s},splitLine:{show:!0,lineStyle:{type:"dashed",color:S}},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,color:f,fontSize:14,margin:10}},series:[],animation:!0},l=[];if(t.forEach((i,e)=>{l.push({name:i,type:"line",showAllSymbol:!0,symbol:"circle",symbolSize:0,label:{show:!1,position:"top",textStyle:{color:"#148c90"}},areaStyle:{normal:{color:new p(0,0,0,1,r[e],!1)}}})}),o.series=l,m.merge(o,n),!o.dataset){const i=[];for(let e=0;e<10;e++){const a={time:e+1};t.forEach(c=>{a[c]=Math.random()*100}),i.push(a)}o.dataset={dimensions:["time",...t],source:i}}return o};function A(t=["预测误差","预测波动"],n={}){const r=["#ffba00","#2759a4","#ff7e00","#6fbd6b","#50abdf","#7181d0","#ac77ce"],o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}},alwaysShowContent:!0,formatter:l=>{const[{data:i={},dimensionNames:e=[]}]=l;return"".concat(i.name,"<br /><span>").concat(t[0],":").concat(i[e[0]],"<br />").concat(t[1],":").concat(i[e[1]])}},legend:{show:!1,textStyle:{color:s}},grid:{left:50,right:80,bottom:30,top:30,containLabel:!0},xAxis:{name:t[0],splitLine:{show:!1},axisLine:{lineStyle:{color:d},symbol:["none","arrow"]},axisTick:{show:!1},axisLabel:{show:!1}},yAxis:{name:t[1],nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x},symbol:["none","arrow"]},axisTick:{show:!1},axisLabel:{show:!1}},series:{name:"",type:"scatter",symbol:"circle",symbolSize:20,label:{show:!0,position:"top"},itemStyle:{color(l){let i=l.dataIndex;return i>=6&&(i-=6),r[i]}}}};return m.merge(o,n),o.dataset||(o.dataset={dimensions:["均方误差","平均绝对误差"],source:[{name:"专家修正",平均绝对误差:2.349,均方误差:2.333},{name:"智能AI算法",平均绝对误差:3.333,均方误差:2.333},{name:"自回归移动平均模型",平均绝对误差:4.333,均方误差:5.333}]}),o}function v(t){const n={title:{text:"",left:"center",top:"53%",padding:[24,0]},series:[{name:"",type:"pie",radius:["40%","60%"],label:{formatter:r=>{const{percent:o}=r;return"{black|".concat(r.name,"} {yellow|").concat(r.value,"} {blue|").concat(o,"%}")},padding:[0,-60],height:50,rich:{black:{color:"#333",align:"right",fontSize:14,padding:[4,0],borderColor:"red"},yellow:{color:"#ffc72b",fontSize:16,padding:[5,4],align:"center"},blue:{color:"#28c9db",fontSize:14,align:"center"}}},labelLine:{showAbove:!0,length:60,length2:60,maxSurfaceAngle:0,lineStyle:{color:"#0b5263"}}}]};return m.merge(n,t),n.series[0].data||(n.series[0].data=[{value:260,name:"测试1"},{value:103,name:"测试2"},{value:63,name:"测试3"},{value:53,name:"测试4"},{value:48,name:"测试5"},{value:233,name:"测试6"}]),n}function z(t=["容量","同期","上一周期"],n=["同比","环比","占总比重"],r={}){const o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0,textStyle:{color:s}},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},color:["#00b4ff","#ffffff","#00ffab"],xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},yAxis:[{name:"单位:千瓦时",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,color:f,fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:s},min:-10,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,color:f,fontSize:14,margin:10}}],animation:!0,series:[]},l=[];if(t.forEach(i=>{l.push({name:i,type:"bar",yAxisIndex:0})}),n.forEach(i=>{l.push({name:i,yAxisIndex:1,type:"line",showAllSymbol:!1,symbol:"circle",symbolSize:0,label:{show:!1,position:"top",textStyle:{color:"#148c90"}}})}),o.series=l,m.merge(o,r),!o.dataset){const i=[];for(let e=0;e<30;e++){const a={time:e+1};t.forEach(c=>{a[c]=(Math.random()*500).toFixed(2)}),n.forEach(c=>{a[c]=(Math.random()*100).toFixed(2)}),i.push(a)}o.dataset={dimensions:["time",...t,...n],source:i}}return o}function k(t,n,r){const o=[];for(let a=0;a<10;a++){const c={time:a+1};t.forEach(u=>{c[u]=(Math.random()*500).toFixed(2)}),n.forEach(u=>{c[u]=(Math.random()*100).toFixed(2)}),o.push(c)}const l={dimensions:["time",...t,...n],source:o},i={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0,textStyle:{color:s}},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},color:["#00b4ff","#ffffff","#00ffab"],xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,textStyle:{color:s},fontSize:14,margin:10}},yAxis:[{name:"单位:万户",nameTextStyle:{color:f},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,textStyle:{color:f},fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:f},min:0,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,textStyle:{color:f},fontSize:14,margin:10}}],animation:!0,series:[],dataset:l},e=[];return t.forEach(a=>{e.push({name:a,type:"bar",barWidth:"30%",yAxisIndex:0,stack:!0})}),n.forEach(a=>{e.push({name:a,yAxisIndex:1,type:"line",showAllSymbol:!0,symbol:"circle",symbolSize:0,label:{show:!1,position:"top",textStyle:{color:"#148c90"}},areaStyle:{normal:{color:new p(0,0,0,1,[{offset:0,color:"rgba(0,255,171, 0.8)"},{offset:1,color:"rgba(59,103,89,0.8)"}],!1)}}})}),i.series=e,m.merge(i,r),i}function T(t,n){const r=[{name:"智能AI算法",value:[1.45,1.96]},{name:"专家修正",value:[2.39,3.81]},{name:"XGBoost",value:[3.84,4.26]}],o=()=>{let e=0;return t.forEach(a=>{e+=a.value[0]}),(e/t.length).toFixed(2)},l=()=>{let e=0;return t.forEach(a=>{e+=a.value[1]}),(e/t.length).toFixed(2)},i={title:{text:""},grid:{left:"10px",right:"100px",bottom:0,top:"30px",containLabel:!0},tooltip:{trigger:"item",axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}},formatter:e=>'<div style="border-bottom: 1px solid rgba(255,255,255,.3); font-size: 18px;padding-bottom: 7px;margin-bottom: 7px">'.concat(e.name,"</div><span>预测误差</span> : ").concat(e.data.value[0],"<br/><span>预测波动</span> : ").concat(e.data.value[1])},xAxis:{name:"预测误差",type:"value",scale:!0,splitLine:{show:!1},axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,textStyle:{color:s},fontSize:14,margin:10}},yAxis:{name:"预测波动",nameTextStyle:{color:f},type:"value",scale:!0,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,textStyle:{color:f},fontSize:14,margin:10}},series:[{type:"scatter",data:t||r,symbolSize:20,markLine:{label:{normal:{formatter(e){return e.name}}},lineStyle:{normal:{color:"#626c91",type:"solid",width:1},emphasis:{color:"#d9def7"}},data:[{xAxis:o(),name:"预测误差平均水平",label:{color:"red"}},{yAxis:l(),name:"预测波动平均水平",label:{color:"red"}}]}}]};return m.merge(i,n),i}function E(t=["容量","同期","上一周期"],n=["同比","环比","占总比重"],r={}){const o=[[{offset:0,color:"rgba(0,255,171, 0.8)"},{offset:1,color:"rgba(59,103,89,0)"}],[{offset:0,color:"rgba(255,255,255, 0.8)"},{offset:1,color:"rgba(255,255,255, 0)"}],[{offset:0,color:"rgba(0,180,255, 0.8)"},{offset:1,color:"rgba(255,255,255, 0)"}]],l={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0,textStyle:{color:s}},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10,rotate:60}},yAxis:[{name:"单位:千瓦时",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,color:f,fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:s},min:0,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,color:f,fontSize:14,margin:10}}],color:["#00ffab","#ffffff","#00b4ff"],animation:!0,series:[]},i=[];if(t.forEach(e=>{i.push({name:e,type:"bar",showBackground:!1,yAxisIndex:0,itemStyle:{color:"#06dbff"}})}),n.forEach((e,a)=>{i.push({name:e,yAxisIndex:1,type:"line",showAllSymbol:!1,symbol:"circle",symbolSize:10,lineStyle:{width:2},itemStyle:{normal:{borderWidth:2}},areaStyle:{normal:{color:new p(0,0,0,1,o[a],!1)}}})}),l.series=i,m.merge(l,r),!l.dataset){const e=[];for(let a=0;a<10;a++){const c={time:a+1};t.forEach(u=>{c[u]=(Math.random()*500).toFixed(2)}),n.forEach(u=>{c[u]=(Math.random()*100).toFixed(2)}),e.push(c)}l.dataset={dimensions:["time",...t,...n],source:e}}return l}function B(t=["容量","同期","上一周期"],n=["同比","环比","占总比重"],r={}){const o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0,textStyle:{color:s}},color:["#ffffff","#00b4ff","#00ffab"],grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:d}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:y},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},yAxis:[{name:"单位:千瓦时",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,color:f,fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:s},min:0,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:x}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:h}},axisLabel:{interval:0,color:f,fontSize:14,margin:10}}],animation:!0,series:[]},l=[];if(t.forEach(i=>{l.push({name:i,type:"bar",yAxisIndex:0,showBackground:!0,backgroundStyle:{borderRadius:0,show:!0,color:"rgba(0,0,0,0)",borderColor:"#194475",borderWidth:1}})}),n.forEach(i=>{l.push({name:i,yAxisIndex:1,type:"line",showAllSymbol:!1,symbol:"circle",symbolSize:0,label:{show:!1,position:"top",textStyle:{color:"#148c90"}},lineStyle:{color:"#00ffab",width:2},itemStyle:{normal:{color:"#fff",borderColor:"#00ffab",borderWidth:2}},areaStyle:{normal:{color:new p(0,0,0,1,[{offset:0,color:"rgba(0,255,171, 0.8)"},{offset:1,color:"rgba(59,103,89,0.8)"}],!1)}}})}),o.series=l,m.merge(o,r),!o.dataset){const i=[];for(let e=0;e<10;e++){const a={time:e+1};t.forEach(c=>{a[c]=(Math.random()*500).toFixed(2)}),n.forEach(c=>{a[c]=(Math.random()*100).toFixed(2)}),i.push(a)}o.dataset={dimensions:["time",...t,...n],source:i}}return o}const O=Object.freeze(Object.defineProperty({__proto__:null,getBarAndBgLineOption:E,getBarAndLineOption:z,getBarStackAndLineOption:k,getBaseBarChartOption:b,getBaseBarRollbackChartOption:w,getBgBarAndLineOption:B,getLineChartOption:L,getMultiBarChartOption:g,getPieChartOption:v,getScatterChartOption:A,getScatterPlotOption:T},Symbol.toStringTag,{value:"Module"}));export{O as S,v as a,z as b,b as g};
@@ -1 +1 @@
1
- System.register(["./vendor-legacy-2df23db3.js","./base-legacy-d3323277.js","./echarts-vendor-legacy-79597af6.js"],(function(e,t){"use strict";var o,i;return{setters:[e=>{o=e.a6},null,e=>{i=e.L}],execute:function(){e({a:h,b:x,g:c});const t="#194475",l="#7bc8ff",a="#b8ddff",n="#194475",r="#7bc8ff",s="#b8ddff";function c(e){const c=[];for(let t=0;t<12;t++)c.push({type:`${t+1}月`,value:200*Math.random()});const h={dimensions:["type","value"],source:c},x={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:"0%",right:"0%",bottom:"0px",top:"50px",containLabel:!0,z:22},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},yAxis:{name:"单位:%",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{color:a,fontSize:14,margin:10}},series:{name:"数值",type:"bar",barWidth:"30%",xAxisIndex:0,yAxisIndex:0,itemStyle:{borderRadius:[20,20,0,0],color:new i(0,1,0,0,[{offset:0,color:"#67c8ff"},{offset:1,color:"#1158b9"}])},showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],color:"#e9ebf7"}},dataset:h};return o.merge(x,e),x}function h(e){const t={title:{text:"",left:"center",top:"53%",padding:[24,0]},series:[{name:"",type:"pie",radius:["40%","60%"],label:{formatter:e=>{const{percent:t}=e;return`{black|${e.name}} {yellow|${e.value}} {blue|${t}%}`},padding:[0,-60],height:50,rich:{black:{color:"#333",align:"right",fontSize:14,padding:[4,0],borderColor:"red"},yellow:{color:"#ffc72b",fontSize:16,padding:[5,4],align:"center"},blue:{color:"#28c9db",fontSize:14,align:"center"}}},labelLine:{showAbove:!0,length:60,length2:60,maxSurfaceAngle:0,lineStyle:{color:"#0b5263"}}}]};return o.merge(t,e),t.series[0].data||(t.series[0].data=[{value:260,name:"测试1"},{value:103,name:"测试2"},{value:63,name:"测试3"},{value:53,name:"测试4"},{value:48,name:"测试5"},{value:233,name:"测试6"}]),t}function x(e=["容量","同期","上一周期"],i=["同比","环比","占总比重"],c={}){const h={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0,textStyle:{color:s}},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},color:["#00b4ff","#ffffff","#00ffab"],xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},yAxis:[{name:"单位:千瓦时",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,color:a,fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:s},min:-10,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,color:a,fontSize:14,margin:10}}],animation:!0,series:[]},x=[];if(e.forEach((e=>{x.push({name:e,type:"bar",yAxisIndex:0})})),i.forEach((e=>{x.push({name:e,yAxisIndex:1,type:"line",showAllSymbol:!1,symbol:"circle",symbolSize:0,label:{show:!1,position:"top",textStyle:{color:"#148c90"}}})})),h.series=x,o.merge(h,c),!h.dataset){const t=[];for(let o=0;o<30;o++){const l={time:o+1};e.forEach((e=>{l[e]=(500*Math.random()).toFixed(2)})),i.forEach((e=>{l[e]=(100*Math.random()).toFixed(2)})),t.push(l)}h.dataset={dimensions:["time",...e,...i],source:t}}return h}const y=Object.freeze(Object.defineProperty({__proto__:null,getBarAndBgLineOption:function(e=["容量","同期","上一周期"],c=["同比","环比","占总比重"],h={}){const x=[[{offset:0,color:"rgba(0,255,171, 0.8)"},{offset:1,color:"rgba(59,103,89,0)"}],[{offset:0,color:"rgba(255,255,255, 0.8)"},{offset:1,color:"rgba(255,255,255, 0)"}],[{offset:0,color:"rgba(0,180,255, 0.8)"},{offset:1,color:"rgba(255,255,255, 0)"}]],y={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0,textStyle:{color:s}},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10,rotate:60}},yAxis:[{name:"单位:千瓦时",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,color:a,fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:s},min:0,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,color:a,fontSize:14,margin:10}}],color:["#00ffab","#ffffff","#00b4ff"],animation:!0,series:[]},f=[];if(e.forEach((e=>{f.push({name:e,type:"bar",showBackground:!1,yAxisIndex:0,itemStyle:{color:"#06dbff"}})})),c.forEach(((e,t)=>{f.push({name:e,yAxisIndex:1,type:"line",showAllSymbol:!1,symbol:"circle",symbolSize:10,lineStyle:{width:2},itemStyle:{normal:{borderWidth:2}},areaStyle:{normal:{color:new i(0,0,0,1,x[t],!1)}}})})),y.series=f,o.merge(y,h),!y.dataset){const t=[];for(let o=0;o<10;o++){const i={time:o+1};e.forEach((e=>{i[e]=(500*Math.random()).toFixed(2)})),c.forEach((e=>{i[e]=(100*Math.random()).toFixed(2)})),t.push(i)}y.dataset={dimensions:["time",...e,...c],source:t}}return y},getBarAndLineOption:x,getBarStackAndLineOption:function(e,c,h){const x=[];for(let t=0;t<10;t++){const o={time:t+1};e.forEach((e=>{o[e]=(500*Math.random()).toFixed(2)})),c.forEach((e=>{o[e]=(100*Math.random()).toFixed(2)})),x.push(o)}const y={dimensions:["time",...e,...c],source:x},f={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0,textStyle:{color:s}},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},color:["#00b4ff","#ffffff","#00ffab"],xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,textStyle:{color:s},fontSize:14,margin:10}},yAxis:[{name:"单位:万户",nameTextStyle:{color:a},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,textStyle:{color:a},fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:a},min:0,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,textStyle:{color:a},fontSize:14,margin:10}}],animation:!0,series:[],dataset:y},m=[];return e.forEach((e=>{m.push({name:e,type:"bar",barWidth:"30%",yAxisIndex:0,stack:!0})})),c.forEach((e=>{m.push({name:e,yAxisIndex:1,type:"line",showAllSymbol:!0,symbol:"circle",symbolSize:0,label:{show:!1,position:"top",textStyle:{color:"#148c90"}},areaStyle:{normal:{color:new i(0,0,0,1,[{offset:0,color:"rgba(0,255,171, 0.8)"},{offset:1,color:"rgba(59,103,89,0.8)"}],!1)}}})})),f.series=m,o.merge(f,h),f},getBaseBarChartOption:c,getBaseBarRollbackChartOption:function(e,c){const h={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:40,right:20,bottom:"0px",top:0,containLabel:!0,z:22},xAxis:{name:"单位:%",nameTextStyle:{color:s},splitLine:{show:!0},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{color:a,fontSize:14,margin:10}},yAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},series:{name:"合格率",type:"bar",barWidth:"30%",xAxisIndex:0,yAxisIndex:0,itemStyle:{borderRadius:[0,20,20,0],color:new i(0,0,1,0,[{offset:0,color:"#67c8ff"},{offset:1,color:"#1158b9"}])},showBackground:!0,backgroundStyle:{borderRadius:[0,20,20,0],color:"#e9ebf7"}}};if(o.merge(h,c),!h.dataset){let t=[];e?.forEach((e=>{t.push({type:e,value:(100*Math.random()).toFixed(2)})})),0===t.length&&(t=[{type:"克州",value:20},{type:"乌鲁木齐",value:30},{type:"超高压",value:80},{type:"昌吉",value:22},{type:"吐鲁番",value:20},{type:"奎屯",value:30},{type:"博尔塔拉",value:26},{type:"哈密",value:28}]),h.dataset={dimensions:["type","value"],source:t}}return h},getBgBarAndLineOption:function(e=["容量","同期","上一周期"],c=["同比","环比","占总比重"],h={}){const x={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0,textStyle:{color:s}},color:["#ffffff","#00b4ff","#00ffab"],grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},yAxis:[{name:"单位:千瓦时",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,color:a,fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:s},min:0,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,color:a,fontSize:14,margin:10}}],animation:!0,series:[]},y=[];if(e.forEach((e=>{y.push({name:e,type:"bar",yAxisIndex:0,showBackground:!0,backgroundStyle:{borderRadius:0,show:!0,color:"rgba(0,0,0,0)",borderColor:"#194475",borderWidth:1}})})),c.forEach((e=>{y.push({name:e,yAxisIndex:1,type:"line",showAllSymbol:!1,symbol:"circle",symbolSize:0,label:{show:!1,position:"top",textStyle:{color:"#148c90"}},lineStyle:{color:"#00ffab",width:2},itemStyle:{normal:{color:"#fff",borderColor:"#00ffab",borderWidth:2}},areaStyle:{normal:{color:new i(0,0,0,1,[{offset:0,color:"rgba(0,255,171, 0.8)"},{offset:1,color:"rgba(59,103,89,0.8)"}],!1)}}})})),x.series=y,o.merge(x,h),!x.dataset){const t=[];for(let o=0;o<10;o++){const i={time:o+1};e.forEach((e=>{i[e]=(500*Math.random()).toFixed(2)})),c.forEach((e=>{i[e]=(100*Math.random()).toFixed(2)})),t.push(i)}x.dataset={dimensions:["time",...e,...c],source:t}}return x},getLineChartOption:(e,c)=>{const h=[[{offset:0,color:"rgba(0,255,171, 0.8)"},{offset:1,color:"rgba(59,103,89,0)"}],[{offset:0,color:"rgba(255,255,255, 0.8)"},{offset:1,color:"rgba(255,255,255, 0)"}],[{offset:0,color:"rgba(0,180,255, 0.8)"},{offset:1,color:"rgba(255,255,255, 0)"}]],x={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!0,textStyle:{color:s}},grid:{left:10,right:0,bottom:0,top:30,containLabel:!0},color:["#00ffab","#ffffff","#00b4ff"],xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},yAxis:{name:"单位:元",nameTextStyle:{color:s},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#194475"}},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,color:a,fontSize:14,margin:10}},series:[],animation:!0},y=[];if(e.forEach(((e,t)=>{y.push({name:e,type:"line",showAllSymbol:!0,symbol:"circle",symbolSize:0,label:{show:!1,position:"top",textStyle:{color:"#148c90"}},areaStyle:{normal:{color:new i(0,0,0,1,h[t],!1)}}})})),x.series=y,o.merge(x,c),!x.dataset){const t=[];for(let o=0;o<10;o++){const i={time:o+1};e.forEach((e=>{i[e]=100*Math.random()})),t.push(i)}x.dataset={dimensions:["time",...e],source:t}}return x},getMultiBarChartOption:function(e,i){const c=[];for(let t=0;t<12;t++)c.push({type:`${t+1}月`,...e.reduce(((e,t,o)=>(e[t]=(200*Math.random()*(o%2==1?1:-1)).toFixed(2),e)),{})});const h={dimensions:["type",...e],source:c},x={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:"0%",right:"0%",bottom:"0px",top:"50px",containLabel:!0,z:22},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,textStyle:{color:s},fontSize:14,margin:10}},yAxis:{name:"单位:元",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,textStyle:{color:a},fontSize:14,margin:10}},series:[],dataset:h},y=e.map((e=>({name:e,type:"bar",xAxisIndex:0,yAxisIndex:0,showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],show:!0,color:"#e9ebf7"}})));return x.series=y,o.merge(x,i),x},getPieChartOption:h,getScatterChartOption:function(e=["预测误差","预测波动"],i={}){const l=["#ffba00","#2759a4","#ff7e00","#6fbd6b","#50abdf","#7181d0","#ac77ce"],a={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}},alwaysShowContent:!0,formatter:t=>{const[{data:o={},dimensionNames:i=[]}]=t;return`${o.name}<br /><span>${e[0]}:${o[i[0]]}<br />${e[1]}:${o[i[1]]}`}},legend:{show:!1,textStyle:{color:s}},grid:{left:50,right:80,bottom:30,top:30,containLabel:!0},xAxis:{name:e[0],splitLine:{show:!1},axisLine:{lineStyle:{color:n},symbol:["none","arrow"]},axisTick:{show:!1},axisLabel:{show:!1}},yAxis:{name:e[1],nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t},symbol:["none","arrow"]},axisTick:{show:!1},axisLabel:{show:!1}},series:{name:"",type:"scatter",symbol:"circle",symbolSize:20,label:{show:!0,position:"top"},itemStyle:{color(e){let t=e.dataIndex;return t>=6&&(t-=6),l[t]}}}};return o.merge(a,i),a.dataset||(a.dataset={dimensions:["均方误差","平均绝对误差"],source:[{name:"专家修正","平均绝对误差":2.349,"均方误差":2.333},{name:"智能AI算法","平均绝对误差":3.333,"均方误差":2.333},{name:"自回归移动平均模型","平均绝对误差":4.333,"均方误差":5.333}]}),a},getScatterPlotOption:function(e,i){const c={title:{text:""},grid:{left:"10px",right:"100px",bottom:0,top:"30px",containLabel:!0},tooltip:{trigger:"item",axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}},formatter:e=>`<div style="border-bottom: 1px solid rgba(255,255,255,.3); font-size: 18px;padding-bottom: 7px;margin-bottom: 7px">${e.name}</div><span>预测误差</span> : ${e.data.value[0]}<br/><span>预测波动</span> : ${e.data.value[1]}`},xAxis:{name:"预测误差",type:"value",scale:!0,splitLine:{show:!1},axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,textStyle:{color:s},fontSize:14,margin:10}},yAxis:{name:"预测波动",nameTextStyle:{color:a},type:"value",scale:!0,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,textStyle:{color:a},fontSize:14,margin:10}},series:[{type:"scatter",data:e||[{name:"智能AI算法",value:[1.45,1.96]},{name:"专家修正",value:[2.39,3.81]},{name:"XGBoost",value:[3.84,4.26]}],symbolSize:20,markLine:{label:{normal:{formatter:e=>e.name}},lineStyle:{normal:{color:"#626c91",type:"solid",width:1},emphasis:{color:"#d9def7"}},data:[{xAxis:(()=>{let t=0;return e.forEach((e=>{t+=e.value[0]})),(t/e.length).toFixed(2)})(),name:"预测误差平均水平",label:{color:"red"}},{yAxis:(()=>{let t=0;return e.forEach((e=>{t+=e.value[1]})),(t/e.length).toFixed(2)})(),name:"预测波动平均水平",label:{color:"red"}}]}}]};return o.merge(c,i),c}},Symbol.toStringTag,{value:"Module"}));e("S",y)}}}));
1
+ System.register(["./vendor-legacy-55fa76eb.js","./base-legacy-2bc6e427.js","./echarts-vendor-legacy-50b58722.js"],(function(e,t){"use strict";var o,i;return{setters:[e=>{o=e.a6},null,e=>{i=e.L}],execute:function(){e({a:h,b:x,g:c});const t="#194475",l="#7bc8ff",a="#b8ddff",n="#194475",r="#7bc8ff",s="#b8ddff";function c(e){const c=[];for(let t=0;t<12;t++)c.push({type:`${t+1}月`,value:200*Math.random()});const h={dimensions:["type","value"],source:c},x={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:"0%",right:"0%",bottom:"0px",top:"50px",containLabel:!0,z:22},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},yAxis:{name:"单位:%",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{color:a,fontSize:14,margin:10}},series:{name:"数值",type:"bar",barWidth:"30%",xAxisIndex:0,yAxisIndex:0,itemStyle:{borderRadius:[20,20,0,0],color:new i(0,1,0,0,[{offset:0,color:"#67c8ff"},{offset:1,color:"#1158b9"}])},showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],color:"#e9ebf7"}},dataset:h};return o.merge(x,e),x}function h(e){const t={title:{text:"",left:"center",top:"53%",padding:[24,0]},series:[{name:"",type:"pie",radius:["40%","60%"],label:{formatter:e=>{const{percent:t}=e;return`{black|${e.name}} {yellow|${e.value}} {blue|${t}%}`},padding:[0,-60],height:50,rich:{black:{color:"#333",align:"right",fontSize:14,padding:[4,0],borderColor:"red"},yellow:{color:"#ffc72b",fontSize:16,padding:[5,4],align:"center"},blue:{color:"#28c9db",fontSize:14,align:"center"}}},labelLine:{showAbove:!0,length:60,length2:60,maxSurfaceAngle:0,lineStyle:{color:"#0b5263"}}}]};return o.merge(t,e),t.series[0].data||(t.series[0].data=[{value:260,name:"测试1"},{value:103,name:"测试2"},{value:63,name:"测试3"},{value:53,name:"测试4"},{value:48,name:"测试5"},{value:233,name:"测试6"}]),t}function x(e=["容量","同期","上一周期"],i=["同比","环比","占总比重"],c={}){const h={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0,textStyle:{color:s}},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},color:["#00b4ff","#ffffff","#00ffab"],xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},yAxis:[{name:"单位:千瓦时",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,color:a,fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:s},min:-10,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,color:a,fontSize:14,margin:10}}],animation:!0,series:[]},x=[];if(e.forEach((e=>{x.push({name:e,type:"bar",yAxisIndex:0})})),i.forEach((e=>{x.push({name:e,yAxisIndex:1,type:"line",showAllSymbol:!1,symbol:"circle",symbolSize:0,label:{show:!1,position:"top",textStyle:{color:"#148c90"}}})})),h.series=x,o.merge(h,c),!h.dataset){const t=[];for(let o=0;o<30;o++){const l={time:o+1};e.forEach((e=>{l[e]=(500*Math.random()).toFixed(2)})),i.forEach((e=>{l[e]=(100*Math.random()).toFixed(2)})),t.push(l)}h.dataset={dimensions:["time",...e,...i],source:t}}return h}const y=Object.freeze(Object.defineProperty({__proto__:null,getBarAndBgLineOption:function(e=["容量","同期","上一周期"],c=["同比","环比","占总比重"],h={}){const x=[[{offset:0,color:"rgba(0,255,171, 0.8)"},{offset:1,color:"rgba(59,103,89,0)"}],[{offset:0,color:"rgba(255,255,255, 0.8)"},{offset:1,color:"rgba(255,255,255, 0)"}],[{offset:0,color:"rgba(0,180,255, 0.8)"},{offset:1,color:"rgba(255,255,255, 0)"}]],y={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0,textStyle:{color:s}},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10,rotate:60}},yAxis:[{name:"单位:千瓦时",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,color:a,fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:s},min:0,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,color:a,fontSize:14,margin:10}}],color:["#00ffab","#ffffff","#00b4ff"],animation:!0,series:[]},f=[];if(e.forEach((e=>{f.push({name:e,type:"bar",showBackground:!1,yAxisIndex:0,itemStyle:{color:"#06dbff"}})})),c.forEach(((e,t)=>{f.push({name:e,yAxisIndex:1,type:"line",showAllSymbol:!1,symbol:"circle",symbolSize:10,lineStyle:{width:2},itemStyle:{normal:{borderWidth:2}},areaStyle:{normal:{color:new i(0,0,0,1,x[t],!1)}}})})),y.series=f,o.merge(y,h),!y.dataset){const t=[];for(let o=0;o<10;o++){const i={time:o+1};e.forEach((e=>{i[e]=(500*Math.random()).toFixed(2)})),c.forEach((e=>{i[e]=(100*Math.random()).toFixed(2)})),t.push(i)}y.dataset={dimensions:["time",...e,...c],source:t}}return y},getBarAndLineOption:x,getBarStackAndLineOption:function(e,c,h){const x=[];for(let t=0;t<10;t++){const o={time:t+1};e.forEach((e=>{o[e]=(500*Math.random()).toFixed(2)})),c.forEach((e=>{o[e]=(100*Math.random()).toFixed(2)})),x.push(o)}const y={dimensions:["time",...e,...c],source:x},f={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0,textStyle:{color:s}},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},color:["#00b4ff","#ffffff","#00ffab"],xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,textStyle:{color:s},fontSize:14,margin:10}},yAxis:[{name:"单位:万户",nameTextStyle:{color:a},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,textStyle:{color:a},fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:a},min:0,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,textStyle:{color:a},fontSize:14,margin:10}}],animation:!0,series:[],dataset:y},m=[];return e.forEach((e=>{m.push({name:e,type:"bar",barWidth:"30%",yAxisIndex:0,stack:!0})})),c.forEach((e=>{m.push({name:e,yAxisIndex:1,type:"line",showAllSymbol:!0,symbol:"circle",symbolSize:0,label:{show:!1,position:"top",textStyle:{color:"#148c90"}},areaStyle:{normal:{color:new i(0,0,0,1,[{offset:0,color:"rgba(0,255,171, 0.8)"},{offset:1,color:"rgba(59,103,89,0.8)"}],!1)}}})})),f.series=m,o.merge(f,h),f},getBaseBarChartOption:c,getBaseBarRollbackChartOption:function(e,c){const h={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:40,right:20,bottom:"0px",top:0,containLabel:!0,z:22},xAxis:{name:"单位:%",nameTextStyle:{color:s},splitLine:{show:!0},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{color:a,fontSize:14,margin:10}},yAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},series:{name:"合格率",type:"bar",barWidth:"30%",xAxisIndex:0,yAxisIndex:0,itemStyle:{borderRadius:[0,20,20,0],color:new i(0,0,1,0,[{offset:0,color:"#67c8ff"},{offset:1,color:"#1158b9"}])},showBackground:!0,backgroundStyle:{borderRadius:[0,20,20,0],color:"#e9ebf7"}}};if(o.merge(h,c),!h.dataset){let t=[];e?.forEach((e=>{t.push({type:e,value:(100*Math.random()).toFixed(2)})})),0===t.length&&(t=[{type:"克州",value:20},{type:"乌鲁木齐",value:30},{type:"超高压",value:80},{type:"昌吉",value:22},{type:"吐鲁番",value:20},{type:"奎屯",value:30},{type:"博尔塔拉",value:26},{type:"哈密",value:28}]),h.dataset={dimensions:["type","value"],source:t}}return h},getBgBarAndLineOption:function(e=["容量","同期","上一周期"],c=["同比","环比","占总比重"],h={}){const x={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0,textStyle:{color:s}},color:["#ffffff","#00b4ff","#00ffab"],grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},yAxis:[{name:"单位:千瓦时",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,color:a,fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:s},min:0,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,color:a,fontSize:14,margin:10}}],animation:!0,series:[]},y=[];if(e.forEach((e=>{y.push({name:e,type:"bar",yAxisIndex:0,showBackground:!0,backgroundStyle:{borderRadius:0,show:!0,color:"rgba(0,0,0,0)",borderColor:"#194475",borderWidth:1}})})),c.forEach((e=>{y.push({name:e,yAxisIndex:1,type:"line",showAllSymbol:!1,symbol:"circle",symbolSize:0,label:{show:!1,position:"top",textStyle:{color:"#148c90"}},lineStyle:{color:"#00ffab",width:2},itemStyle:{normal:{color:"#fff",borderColor:"#00ffab",borderWidth:2}},areaStyle:{normal:{color:new i(0,0,0,1,[{offset:0,color:"rgba(0,255,171, 0.8)"},{offset:1,color:"rgba(59,103,89,0.8)"}],!1)}}})})),x.series=y,o.merge(x,h),!x.dataset){const t=[];for(let o=0;o<10;o++){const i={time:o+1};e.forEach((e=>{i[e]=(500*Math.random()).toFixed(2)})),c.forEach((e=>{i[e]=(100*Math.random()).toFixed(2)})),t.push(i)}x.dataset={dimensions:["time",...e,...c],source:t}}return x},getLineChartOption:(e,c)=>{const h=[[{offset:0,color:"rgba(0,255,171, 0.8)"},{offset:1,color:"rgba(59,103,89,0)"}],[{offset:0,color:"rgba(255,255,255, 0.8)"},{offset:1,color:"rgba(255,255,255, 0)"}],[{offset:0,color:"rgba(0,180,255, 0.8)"},{offset:1,color:"rgba(255,255,255, 0)"}]],x={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!0,textStyle:{color:s}},grid:{left:10,right:0,bottom:0,top:30,containLabel:!0},color:["#00ffab","#ffffff","#00b4ff"],xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,color:s,fontSize:14,margin:10}},yAxis:{name:"单位:元",nameTextStyle:{color:s},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#194475"}},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,color:a,fontSize:14,margin:10}},series:[],animation:!0},y=[];if(e.forEach(((e,t)=>{y.push({name:e,type:"line",showAllSymbol:!0,symbol:"circle",symbolSize:0,label:{show:!1,position:"top",textStyle:{color:"#148c90"}},areaStyle:{normal:{color:new i(0,0,0,1,h[t],!1)}}})})),x.series=y,o.merge(x,c),!x.dataset){const t=[];for(let o=0;o<10;o++){const i={time:o+1};e.forEach((e=>{i[e]=100*Math.random()})),t.push(i)}x.dataset={dimensions:["time",...e],source:t}}return x},getMultiBarChartOption:function(e,i){const c=[];for(let t=0;t<12;t++)c.push({type:`${t+1}月`,...e.reduce(((e,t,o)=>(e[t]=(200*Math.random()*(o%2==1?1:-1)).toFixed(2),e)),{})});const h={dimensions:["type",...e],source:c},x={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:"0%",right:"0%",bottom:"0px",top:"50px",containLabel:!0,z:22},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,textStyle:{color:s},fontSize:14,margin:10}},yAxis:{name:"单位:元",nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,textStyle:{color:a},fontSize:14,margin:10}},series:[],dataset:h},y=e.map((e=>({name:e,type:"bar",xAxisIndex:0,yAxisIndex:0,showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],show:!0,color:"#e9ebf7"}})));return x.series=y,o.merge(x,i),x},getPieChartOption:h,getScatterChartOption:function(e=["预测误差","预测波动"],i={}){const l=["#ffba00","#2759a4","#ff7e00","#6fbd6b","#50abdf","#7181d0","#ac77ce"],a={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}},alwaysShowContent:!0,formatter:t=>{const[{data:o={},dimensionNames:i=[]}]=t;return`${o.name}<br /><span>${e[0]}:${o[i[0]]}<br />${e[1]}:${o[i[1]]}`}},legend:{show:!1,textStyle:{color:s}},grid:{left:50,right:80,bottom:30,top:30,containLabel:!0},xAxis:{name:e[0],splitLine:{show:!1},axisLine:{lineStyle:{color:n},symbol:["none","arrow"]},axisTick:{show:!1},axisLabel:{show:!1}},yAxis:{name:e[1],nameTextStyle:{color:s},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t},symbol:["none","arrow"]},axisTick:{show:!1},axisLabel:{show:!1}},series:{name:"",type:"scatter",symbol:"circle",symbolSize:20,label:{show:!0,position:"top"},itemStyle:{color(e){let t=e.dataIndex;return t>=6&&(t-=6),l[t]}}}};return o.merge(a,i),a.dataset||(a.dataset={dimensions:["均方误差","平均绝对误差"],source:[{name:"专家修正","平均绝对误差":2.349,"均方误差":2.333},{name:"智能AI算法","平均绝对误差":3.333,"均方误差":2.333},{name:"自回归移动平均模型","平均绝对误差":4.333,"均方误差":5.333}]}),a},getScatterPlotOption:function(e,i){const c={title:{text:""},grid:{left:"10px",right:"100px",bottom:0,top:"30px",containLabel:!0},tooltip:{trigger:"item",axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}},formatter:e=>`<div style="border-bottom: 1px solid rgba(255,255,255,.3); font-size: 18px;padding-bottom: 7px;margin-bottom: 7px">${e.name}</div><span>预测误差</span> : ${e.data.value[0]}<br/><span>预测波动</span> : ${e.data.value[1]}`},xAxis:{name:"预测误差",type:"value",scale:!0,splitLine:{show:!1},axisLine:{lineStyle:{color:n}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:r},alignWithLabel:!0},axisLabel:{interval:0,textStyle:{color:s},fontSize:14,margin:10}},yAxis:{name:"预测波动",nameTextStyle:{color:a},type:"value",scale:!0,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:t}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:l}},axisLabel:{interval:0,textStyle:{color:a},fontSize:14,margin:10}},series:[{type:"scatter",data:e||[{name:"智能AI算法",value:[1.45,1.96]},{name:"专家修正",value:[2.39,3.81]},{name:"XGBoost",value:[3.84,4.26]}],symbolSize:20,markLine:{label:{normal:{formatter:e=>e.name}},lineStyle:{normal:{color:"#626c91",type:"solid",width:1},emphasis:{color:"#d9def7"}},data:[{xAxis:(()=>{let t=0;return e.forEach((e=>{t+=e.value[0]})),(t/e.length).toFixed(2)})(),name:"预测误差平均水平",label:{color:"red"}},{yAxis:(()=>{let t=0;return e.forEach((e=>{t+=e.value[1]})),(t/e.length).toFixed(2)})(),name:"预测波动平均水平",label:{color:"red"}}]}}]};return o.merge(c,i),c}},Symbol.toStringTag,{value:"Module"}));e("S",y)}}}));
@@ -0,0 +1 @@
1
+ import{a3 as a,w as i}from"./vendor-affac96c.js";import{P as _}from"./index-86214b19.js";const{CancelToken:y}=a,b=y.source(),u=a.create({baseURL:"",timeoutErrorMessage:"网络出点小差,请稍等重试",withCredentials:!1,responseType:"json",cancelToken:b.token});u.interceptors.request.use(e=>e);u.interceptors.response.use(e=>{const t=_.request.ignoreContentTypes,r=e.headers["content-type"];return t.some(n=>r.includes(n))?e:e.data},e=>Promise.reject(e));const o=u,l=a.create({timeoutErrorMessage:"网络出点小差,请稍等重试",withCredentials:!1,responseType:"json"});l.interceptors.response.use(e=>e.data);const d="login_type",s="storage_usertoken",p=(e,t)=>{localStorage.setItem(d,e),e==="sso"?sessionStorage.setItem(s,t):e==="password"&&localStorage.setItem(s,t),c(t&&"Bearer ".concat(t))},S=()=>{switch(localStorage.getItem(d)){case"password":return localStorage.getItem(s);case"sso":return sessionStorage.getItem(s);default:return""}};function h(e){return o.post("/api/login",e).then(t=>t.code===200&&t.data?(p("password",t.data),!0):!1)}function O(e){return!(e!=null&&e.username)||!(e!=null&&e.ts)||!(e!=null&&e.sign)?Promise.resolve(!1):o.get("/api/ssologin",{params:e}).then(t=>t.code===200&&t.data?(p("sso",t.data),!0):!1)}function T(){return S()}function j(){return o.get("/api/user/islogin").then(e=>{var t,r;return{login:e.code===200&&((t=e.data)==null?void 0:t.login),permission:e.code===200&&((r=e.data)==null?void 0:r.permission)}})}function I(){return o.get("/api/user/captcha").then(e=>e.data||{captchaId:"",svg:""})}function v(){return o.get("/api/user/info").then(e=>e.code===200?{status:"SUCCESS",data:e.data}:{status:"FAIL"})}function M(){return o.post("/api/user/logout").then(e=>e.code===200).finally(()=>{localStorage.removeItem(s),c(null)})}const P=Object.freeze(Object.defineProperty({__proto__:null,getAuthorization:T,getCaptcha:I,getInfo:v,isLogin:j,login:h,logout:M,ssoLogin:O},Symbol.toStringTag,{value:"Module"}));function L(){return o.get("/api/user/captcha")}const Y=Object.freeze(Object.defineProperty({__proto__:null,getCaptcha:L},Symbol.toStringTag,{value:"Module"})),w=10*1024*1024;function $(e){const t=new FormData;return t.append("file",e),o.post("/api/upload",t,{headers:{"Content-Type":"multipart/form-data"}})}const z=Object.freeze(Object.defineProperty({__proto__:null,UPLOAD_MAX_SIZE:w,upload:$},Symbol.toStringTag,{value:"Module"}));function U(e){return o.post("/api/add",e)}function B(e){return o.get("/api/getList",{params:e})}function C(e){return o.put("/api/edit",e)}function A(e){return o.delete("/api/deleteById",{params:e})}function E(e,t){const r=new FormData;return r.append("file",e),o.post("/api/v1/import",r,t)}const q=Object.freeze(Object.defineProperty({__proto__:null,add:U,deleteById:A,getList:B,update:C,upload:E},Symbol.toStringTag,{value:"Module"}));function N(){return o.get("/api/ops/overview")}function F(e){return o.get("/api/ops/probe/".concat(e))}const R=Object.freeze(Object.defineProperty({__proto__:null,overview:N,probe:F},Symbol.toStringTag,{value:"Module"}));function D(e){return o.get("/api/getList",{params:e})}function x(e){return o.post("/api/add",e)}function G(e){return o.put("/api/edit",e)}function k(e){return o.delete("/api/deleteById",{params:{id:e}})}const K=Object.freeze(Object.defineProperty({__proto__:null,add:x,deleteById:k,edit:G,getList:D},Symbol.toStringTag,{value:"Module"}));function W(e){return o.get("/api/image/getList",{params:e})}function V(e){return o.post("/api/image/add",e)}function X(e){return o.put("/api/image/edit",e)}function Z(e){return o.delete("/api/image/deleteById",{params:{id:e}})}const H=Object.freeze(Object.defineProperty({__proto__:null,add:V,deleteById:Z,edit:X,getList:W},Symbol.toStringTag,{value:"Module"}));function J(e){return o.get("/api/user/list",{params:e})}function Q(e){return o.post("/api/user/create",e)}function ee(e){return o.put("/api/user/update",e)}function te(e){return o.delete("/api/user/delete",{params:{id:e}})}function oe(e){return o.post("/api/user/resetPassword",null,{params:{id:e}})}function re(e){return o.post("/api/user/toggleStatus",null,{params:{id:e}})}const ne=Object.freeze(Object.defineProperty({__proto__:null,createUser:Q,deleteUser:te,listUsers:J,resetUserPassword:oe,toggleUserStatus:re,updateUser:ee},Symbol.toStringTag,{value:"Module"}));function se(e){return o.get("/api/audit/list",{params:e})}const ie=Object.freeze(Object.defineProperty({__proto__:null,listAuditLogs:se},Symbol.toStringTag,{value:"Module"})),f={user:P,captcha:Y,upload:z,test:q,ops:R,pageData:K,image:H,userManage:ne,auditLog:ie},ae=e=>{let t="YYYYMM";switch(e){case 1:t="YYYYMMDD";break;case 2:t="YYYYMM";break;case 3:t="YYYY";break}return t};function ue(e,t=2){return Number.isInteger(e)?e.toString():e.toFixed(t)}const ce=(e,t)=>{let r=e.id?1/e.id:0,n=t.id?1/t.id:0;return e.sort<0?r+=-1e3-e.sort:e.sort>0&&(r+=20*1e3*(e.sort?1/e.sort:1)),t.sort<0?n+=-1e3-t.sort:t.sort>0&&(n+=20*1e3*(t.sort?1/t.sort:1)),n-r},le=e=>{if(e.data instanceof Blob){const t=e.headers["content-disposition"],g=(t==null?void 0:t.split(";")).find(m=>m.trim().startsWith("filename=")).trim().replace("filename=","");return{data:e.data,fileName:decodeURIComponent(g)}}return{}},de=Object.freeze(Object.defineProperty({__proto__:null,exportFile:le,formatNumber:ue,getTimeFormatter:ae,sort:ce},Symbol.toStringTag,{value:"Module"})),pe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));o.defaults.baseURL=window.ENV.requestBaseUrl;o.defaults.validateStatus=e=>(e===401&&i.info("登录失效,请重新登录"),e>=200&&e<300);o.interceptors.response.use(e=>(e&&e.code!==void 0&&e.code!==200&&i.error(e.message||e.msg||"请求失败,请重试"),e),e=>{var t;i.error("".concat(e==null?void 0:e.message,"(").concat(decodeURIComponent((t=e.request)==null?void 0:t.responseURL),")"),5)});const c=e=>{const t=e&&(e.startsWith("Bearer ")?e:"Bearer ".concat(e));o.defaults.headers.Authorization=t,l.defaults.headers.Authorization=t};c(f.user.getAuthorization());const me={admin:f,common:de,mysql:pe};export{w as U,me as a};
@@ -0,0 +1 @@
1
+ System.register(["./vendor-legacy-55fa76eb.js","./index-legacy-06483318.js"],(function(e,t){"use strict";var r,o,n;return{setters:[e=>{r=e.a3,o=e.w},e=>{n=e.P}],execute:function(){const{CancelToken:t}=r,a=t.source(),s=r.create({baseURL:"",timeoutErrorMessage:"网络出点小差,请稍等重试",withCredentials:!1,responseType:"json",cancelToken:a.token});s.interceptors.request.use((e=>e)),s.interceptors.response.use((e=>{const t=n.request.ignoreContentTypes,r=e.headers["content-type"];return t.some((e=>r.includes(e)))?e:e.data}),(e=>Promise.reject(e)));const i=s,u=r.create({timeoutErrorMessage:"网络出点小差,请稍等重试",withCredentials:!1,responseType:"json"});u.interceptors.response.use((e=>e.data));const d="login_type",l="storage_usertoken",p=(e,t)=>{localStorage.setItem(d,e),"sso"===e?sessionStorage.setItem(l,t):"password"===e&&localStorage.setItem(l,t),y(t?`Bearer ${t}`:t)},c=Object.freeze(Object.defineProperty({__proto__:null,getAuthorization:function(){return(()=>{switch(localStorage.getItem(d)){case"password":return localStorage.getItem(l);case"sso":return sessionStorage.getItem(l);default:return""}})()},getCaptcha:function(){return i.get("/api/user/captcha").then((e=>e.data||{captchaId:"",svg:""}))},getInfo:function(){return i.get("/api/user/info").then((e=>200===e.code?{status:"SUCCESS",data:e.data}:{status:"FAIL"}))},isLogin:function(){return i.get("/api/user/islogin").then((e=>({login:200===e.code&&e.data?.login,permission:200===e.code&&e.data?.permission})))},login:function(e){return i.post("/api/login",e).then((e=>!(200!==e.code||!e.data||(p("password",e.data),0))))},logout:function(){return i.post("/api/user/logout").then((e=>200===e.code)).finally((()=>{localStorage.removeItem(l),y(null)}))},ssoLogin:function(e){return e?.username&&e?.ts&&e?.sign?i.get("/api/ssologin",{params:e}).then((e=>!(200!==e.code||!e.data||(p("sso",e.data),0)))):Promise.resolve(!1)}},Symbol.toStringTag,{value:"Module"})),g=Object.freeze(Object.defineProperty({__proto__:null,getCaptcha:function(){return i.get("/api/user/captcha")}},Symbol.toStringTag,{value:"Module"})),f=e("U",10485760),m={user:c,captcha:g,upload:Object.freeze(Object.defineProperty({__proto__:null,UPLOAD_MAX_SIZE:f,upload:function(e){const t=new FormData;return t.append("file",e),i.post("/api/upload",t,{headers:{"Content-Type":"multipart/form-data"}})}},Symbol.toStringTag,{value:"Module"})),test:Object.freeze(Object.defineProperty({__proto__:null,add:function(e){return i.post("/api/add",e)},deleteById:function(e){return i.delete("/api/deleteById",{params:e})},getList:function(e){return i.get("/api/getList",{params:e})},update:function(e){return i.put("/api/edit",e)},upload:function(e,t){const r=new FormData;return r.append("file",e),i.post("/api/v1/import",r,t)}},Symbol.toStringTag,{value:"Module"})),ops:Object.freeze(Object.defineProperty({__proto__:null,overview:function(){return i.get("/api/ops/overview")},probe:function(e){return i.get(`/api/ops/probe/${e}`)}},Symbol.toStringTag,{value:"Module"})),pageData:Object.freeze(Object.defineProperty({__proto__:null,add:function(e){return i.post("/api/add",e)},deleteById:function(e){return i.delete("/api/deleteById",{params:{id:e}})},edit:function(e){return i.put("/api/edit",e)},getList:function(e){return i.get("/api/getList",{params:e})}},Symbol.toStringTag,{value:"Module"})),image:Object.freeze(Object.defineProperty({__proto__:null,add:function(e){return i.post("/api/image/add",e)},deleteById:function(e){return i.delete("/api/image/deleteById",{params:{id:e}})},edit:function(e){return i.put("/api/image/edit",e)},getList:function(e){return i.get("/api/image/getList",{params:e})}},Symbol.toStringTag,{value:"Module"})),userManage:Object.freeze(Object.defineProperty({__proto__:null,createUser:function(e){return i.post("/api/user/create",e)},deleteUser:function(e){return i.delete("/api/user/delete",{params:{id:e}})},listUsers:function(e){return i.get("/api/user/list",{params:e})},resetUserPassword:function(e){return i.post("/api/user/resetPassword",null,{params:{id:e}})},toggleUserStatus:function(e){return i.post("/api/user/toggleStatus",null,{params:{id:e}})},updateUser:function(e){return i.put("/api/user/update",e)}},Symbol.toStringTag,{value:"Module"})),auditLog:Object.freeze(Object.defineProperty({__proto__:null,listAuditLogs:function(e){return i.get("/api/audit/list",{params:e})}},Symbol.toStringTag,{value:"Module"}))},_=Object.freeze(Object.defineProperty({__proto__:null,exportFile:e=>{if(e.data instanceof Blob){const t=e.headers["content-disposition"],r=t?.split(";"),o=r.find((e=>e.trim().startsWith("filename="))).trim().replace("filename=","");return{data:e.data,fileName:decodeURIComponent(o)}}return{}},formatNumber:function(e,t=2){return Number.isInteger(e)?e.toString():e.toFixed(t)},getTimeFormatter:e=>{let t="YYYYMM";switch(e){case 1:t="YYYYMMDD";break;case 2:t="YYYYMM";break;case 3:t="YYYY"}return t},sort:(e,t)=>{let r=e.id?1/e.id:0,o=t.id?1/t.id:0;return e.sort<0?r+=-1e3-e.sort:e.sort>0&&(r+=2e4*(e.sort?1/e.sort:1)),t.sort<0?o+=-1e3-t.sort:t.sort>0&&(o+=2e4*(t.sort?1/t.sort:1)),o-r}},Symbol.toStringTag,{value:"Module"})),b=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));i.defaults.baseURL=window.ENV.requestBaseUrl,i.defaults.validateStatus=e=>(401===e&&o.info("登录失效,请重新登录"),e>=200&&e<300),i.interceptors.response.use((e=>(e&&void 0!==e.code&&200!==e.code&&o.error(e.message||e.msg||"请求失败,请重试"),e)),(e=>{o.error(`${e?.message}(${decodeURIComponent(e.request?.responseURL)})`,5)}));const y=e=>{const t=e?e.startsWith("Bearer ")?e:`Bearer ${e}`:e;i.defaults.headers.Authorization=t,u.defaults.headers.Authorization=t};y(m.user.getAuthorization()),e("a",{admin:m,common:_,mysql:b})}}}));
@@ -1 +1 @@
1
- import{r as g,j as C}from"./vendor-2663c204.js";import{u as M,i as v,a as E,b as w,c as _,d as O,e as R,f as y,g as H,h as I,j,k,l as N,m as z,n as B}from"./echarts-vendor-d6ce4b9c.js";M([v,E,w,_,O,R,y,H,I,j,k,N,z]);const x={text:"操作处理中...",showSpinner:!1,textColor:"#9d9d9d",maskColor:"transparent",fontSize:"25px",fontWeight:"bold",fontFamily:"SourceHanSansCN"};function $(p){const{onLoad:h,chartOption:a,className:i,style:u,onEvents:s,chartOptionDeps:d,loading:f,onInit:e}=p,r=g.useRef(),n=g.useRef();return g.useEffect(()=>{const t=B(r.current);n.current=t,e==null||e(t),s&&s.forEach(l=>{t.on(l.eventName,m=>{var b;(b=l.eventCallback)==null||b.call(l,m,t)})});const c=new ResizeObserver(()=>{t.resize()});return c.observe(r.current),h==null||h(),()=>{c.disconnect(),t.dispose()}},[]),g.useEffect(()=>{n.current&&(n.current.off(),s&&s.forEach(t=>{n.current.on(t.eventName,c=>{var l;(l=t.eventCallback)==null||l.call(t,c,n.current)})}))},[s]),g.useEffect(()=>{f?n.current.showLoading(x):n.current.hideLoading()},[f]),g.useEffect(()=>a?(a.dataset&&(Array.isArray(a.dataset)?a.dataset.forEach(t=>{t.source||(t.source=[])}):a.dataset.source||(a.dataset.source=[])),n.current.setOption(a),()=>{n.current.clear()}):()=>{},d),C.jsx("div",{className:i,style:{height:"100%",width:"100%",...u},ref:r})}function D(){const p=Math.floor(Math.random()*256),h=Math.floor(Math.random()*256),a=Math.floor(Math.random()*256),i=u=>{const s=u.toString(16);return s.length===1?"0".concat(s):s};return"#".concat(i(p)).concat(i(h)).concat(i(a))}function L(p,h=.2){const a=e=>{const r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),t=parseInt(e.slice(5,7),16);return{r,g:n,b:t}},i=(e,r,n)=>{const t=c=>c.toString(16).padStart(2,"0");return"#".concat(t(e)).concat(t(r)).concat(t(n))},u=(e,r,n)=>{const t=e.r+(r.r-e.r)*n,c=e.g+(r.g-e.g)*n,l=e.b+(r.b-e.b)*n;return{r:t,g:c,b:l}},s=a(p),f=u(s,{r:255,g:255,b:255},h);return i(f.r,f.g,f.b)}function T(p,h=.2){h=.4;const a=p.replace(/^#/,""),i=parseInt(a.slice(0,2),16)/255,u=parseInt(a.slice(2,4),16)/255,s=parseInt(a.slice(4,6),16)/255,d=Math.max(i,u,s),f=Math.min(i,u,s);let e,r,n=(d+f)/2;if(d===f)e=r=0;else{const o=d-f;switch(r=n>.5?o/(2-d-f):o/(d+f),d){case i:e=(u-s)/o+(u<s?6:0);break;case u:e=(s-i)/o+2;break;case s:e=(i-u)/o+4;break}e/=6}n=Math.min(1,n+h);const t=n<.5?n*(1+r):n+r-n*r,c=2*n-t,l=o=>(o<0&&(o+=1),o>1&&(o-=1),o<1/6?c+(t-c)*6*o:o<1/2?t:o<2/3?c+(t-c)*(2/3-o)*6:c),m=Math.round(l(e+1/3)*255),b=Math.round(l(e)*255),S=Math.round(l(e-1/3)*255);return"#".concat([m.toString(16).padStart(2,"0"),b.toString(16).padStart(2,"0"),S.toString(16).padStart(2,"0")].join(""))}$.defaultProps={chartOption:null,style:null,className:null,onLoad:null,onEvents:null,chartOptionDeps:null,loading:!1,onInit:null};const F=Object.freeze(Object.defineProperty({__proto__:null,DefaultLoadingOptions:x,HighlightHexColor:T,MixHexColor:L,RandomHexColor:D,default:$},Symbol.toStringTag,{value:"Module"}));export{$ as B,F as _};
1
+ import{r as g,j as C}from"./vendor-affac96c.js";import{u as M,i as v,a as E,b as w,c as _,d as O,e as R,f as y,g as H,h as I,j,k,l as N,m as z,n as B}from"./echarts-vendor-50090982.js";M([v,E,w,_,O,R,y,H,I,j,k,N,z]);const x={text:"操作处理中...",showSpinner:!1,textColor:"#9d9d9d",maskColor:"transparent",fontSize:"25px",fontWeight:"bold",fontFamily:"SourceHanSansCN"};function $(p){const{onLoad:h,chartOption:a,className:i,style:u,onEvents:s,chartOptionDeps:d,loading:f,onInit:e}=p,r=g.useRef(),n=g.useRef();return g.useEffect(()=>{const t=B(r.current);n.current=t,e==null||e(t),s&&s.forEach(l=>{t.on(l.eventName,m=>{var b;(b=l.eventCallback)==null||b.call(l,m,t)})});const c=new ResizeObserver(()=>{t.resize()});return c.observe(r.current),h==null||h(),()=>{c.disconnect(),t.dispose()}},[]),g.useEffect(()=>{n.current&&(n.current.off(),s&&s.forEach(t=>{n.current.on(t.eventName,c=>{var l;(l=t.eventCallback)==null||l.call(t,c,n.current)})}))},[s]),g.useEffect(()=>{f?n.current.showLoading(x):n.current.hideLoading()},[f]),g.useEffect(()=>a?(a.dataset&&(Array.isArray(a.dataset)?a.dataset.forEach(t=>{t.source||(t.source=[])}):a.dataset.source||(a.dataset.source=[])),n.current.setOption(a),()=>{n.current.clear()}):()=>{},d),C.jsx("div",{className:i,style:{height:"100%",width:"100%",...u},ref:r})}function D(){const p=Math.floor(Math.random()*256),h=Math.floor(Math.random()*256),a=Math.floor(Math.random()*256),i=u=>{const s=u.toString(16);return s.length===1?"0".concat(s):s};return"#".concat(i(p)).concat(i(h)).concat(i(a))}function L(p,h=.2){const a=e=>{const r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),t=parseInt(e.slice(5,7),16);return{r,g:n,b:t}},i=(e,r,n)=>{const t=c=>c.toString(16).padStart(2,"0");return"#".concat(t(e)).concat(t(r)).concat(t(n))},u=(e,r,n)=>{const t=e.r+(r.r-e.r)*n,c=e.g+(r.g-e.g)*n,l=e.b+(r.b-e.b)*n;return{r:t,g:c,b:l}},s=a(p),f=u(s,{r:255,g:255,b:255},h);return i(f.r,f.g,f.b)}function T(p,h=.2){h=.4;const a=p.replace(/^#/,""),i=parseInt(a.slice(0,2),16)/255,u=parseInt(a.slice(2,4),16)/255,s=parseInt(a.slice(4,6),16)/255,d=Math.max(i,u,s),f=Math.min(i,u,s);let e,r,n=(d+f)/2;if(d===f)e=r=0;else{const o=d-f;switch(r=n>.5?o/(2-d-f):o/(d+f),d){case i:e=(u-s)/o+(u<s?6:0);break;case u:e=(s-i)/o+2;break;case s:e=(i-u)/o+4;break}e/=6}n=Math.min(1,n+h);const t=n<.5?n*(1+r):n+r-n*r,c=2*n-t,l=o=>(o<0&&(o+=1),o>1&&(o-=1),o<1/6?c+(t-c)*6*o:o<1/2?t:o<2/3?c+(t-c)*(2/3-o)*6:c),m=Math.round(l(e+1/3)*255),b=Math.round(l(e)*255),S=Math.round(l(e-1/3)*255);return"#".concat([m.toString(16).padStart(2,"0"),b.toString(16).padStart(2,"0"),S.toString(16).padStart(2,"0")].join(""))}$.defaultProps={chartOption:null,style:null,className:null,onLoad:null,onEvents:null,chartOptionDeps:null,loading:!1,onInit:null};const F=Object.freeze(Object.defineProperty({__proto__:null,DefaultLoadingOptions:x,HighlightHexColor:T,MixHexColor:L,RandomHexColor:D,default:$},Symbol.toStringTag,{value:"Module"}));export{$ as B,F as _};
@@ -1 +1 @@
1
- System.register(["./vendor-legacy-2df23db3.js","./echarts-vendor-legacy-79597af6.js"],(function(t,e){"use strict";var r,n,o,a,s,c,l,i,u,d,f,h,g,p,b,m,S;return{setters:[t=>{r=t.r,n=t.j},t=>{o=t.u,a=t.i,s=t.a,c=t.b,l=t.c,i=t.d,u=t.e,d=t.f,f=t.g,h=t.h,g=t.j,p=t.k,b=t.l,m=t.m,S=t.n}],execute:function(){t("B",v),o([a,s,c,l,i,u,d,f,h,g,p,b,m]);const e={text:"操作处理中...",showSpinner:!1,textColor:"#9d9d9d",maskColor:"transparent",fontSize:"25px",fontWeight:"bold",fontFamily:"SourceHanSansCN"};function v(t){const{onLoad:o,chartOption:a,className:s,style:c,onEvents:l,chartOptionDeps:i,loading:u,onInit:d}=t,f=r.useRef(),h=r.useRef();return r.useEffect((()=>{const t=S(f.current);h.current=t,d?.(t),l&&l.forEach((e=>{t.on(e.eventName,(r=>{e.eventCallback?.(r,t)}))}));const e=new ResizeObserver((()=>{t.resize()}));return e.observe(f.current),o?.(),()=>{e.disconnect(),t.dispose()}}),[]),r.useEffect((()=>{h.current&&(h.current.off(),l&&l.forEach((t=>{h.current.on(t.eventName,(e=>{t.eventCallback?.(e,h.current)}))})))}),[l]),r.useEffect((()=>{u?h.current.showLoading(e):h.current.hideLoading()}),[u]),r.useEffect((()=>a?(a.dataset&&(Array.isArray(a.dataset)?a.dataset.forEach((t=>{t.source||(t.source=[])})):a.dataset.source||(a.dataset.source=[])),h.current.setOption(a),()=>{h.current.clear()}):()=>{}),i),n.jsx("div",{className:s,style:{height:"100%",width:"100%",...c},ref:f})}v.defaultProps={chartOption:null,style:null,className:null,onLoad:null,onEvents:null,chartOptionDeps:null,loading:!1,onInit:null};const M=Object.freeze(Object.defineProperty({__proto__:null,DefaultLoadingOptions:e,HighlightHexColor:function(t,e=.2){const r=t.replace(/^#/,""),n=parseInt(r.slice(0,2),16)/255,o=parseInt(r.slice(2,4),16)/255,a=parseInt(r.slice(4,6),16)/255,s=Math.max(n,o,a),c=Math.min(n,o,a);let l,i,u=(s+c)/2;if(s===c)l=i=0;else{const t=s-c;switch(i=u>.5?t/(2-s-c):t/(s+c),s){case n:l=(o-a)/t+(o<a?6:0);break;case o:l=(a-n)/t+2;break;case a:l=(n-o)/t+4}l/=6}u=Math.min(1,u+.4);const d=u<.5?u*(1+i):u+i-u*i,f=2*u-d,h=t=>(t<0&&(t+=1),t>1&&(t-=1),t<1/6?f+6*(d-f)*t:t<.5?d:t<2/3?f+(d-f)*(2/3-t)*6:f),g=Math.round(255*h(l+1/3)),p=Math.round(255*h(l)),b=Math.round(255*h(l-1/3));return`#${[g.toString(16).padStart(2,"0"),p.toString(16).padStart(2,"0"),b.toString(16).padStart(2,"0")].join("")}`},MixHexColor:function(t,e=.2){const r=(n=t,{r:parseInt(n.slice(1,3),16),g:parseInt(n.slice(3,5),16),b:parseInt(n.slice(5,7),16)});var n;const o=(c=e,{r:(a=r).r+((s={r:255,g:255,b:255}).r-a.r)*c,g:a.g+(s.g-a.g)*c,b:a.b+(s.b-a.b)*c});var a,s,c;return((t,e,r)=>{const n=t=>t.toString(16).padStart(2,"0");return`#${n(t)}${n(e)}${n(r)}`})(o.r,o.g,o.b)},RandomHexColor:function(){const t=Math.floor(256*Math.random()),e=Math.floor(256*Math.random()),r=Math.floor(256*Math.random()),n=t=>{const e=t.toString(16);return 1===e.length?`0${e}`:e};return`#${n(t)}${n(e)}${n(r)}`},default:v},Symbol.toStringTag,{value:"Module"}));t("_",M)}}}));
1
+ System.register(["./vendor-legacy-55fa76eb.js","./echarts-vendor-legacy-50b58722.js"],(function(t,e){"use strict";var r,n,o,a,s,c,l,i,u,d,f,h,g,p,b,m,S;return{setters:[t=>{r=t.r,n=t.j},t=>{o=t.u,a=t.i,s=t.a,c=t.b,l=t.c,i=t.d,u=t.e,d=t.f,f=t.g,h=t.h,g=t.j,p=t.k,b=t.l,m=t.m,S=t.n}],execute:function(){t("B",v),o([a,s,c,l,i,u,d,f,h,g,p,b,m]);const e={text:"操作处理中...",showSpinner:!1,textColor:"#9d9d9d",maskColor:"transparent",fontSize:"25px",fontWeight:"bold",fontFamily:"SourceHanSansCN"};function v(t){const{onLoad:o,chartOption:a,className:s,style:c,onEvents:l,chartOptionDeps:i,loading:u,onInit:d}=t,f=r.useRef(),h=r.useRef();return r.useEffect((()=>{const t=S(f.current);h.current=t,d?.(t),l&&l.forEach((e=>{t.on(e.eventName,(r=>{e.eventCallback?.(r,t)}))}));const e=new ResizeObserver((()=>{t.resize()}));return e.observe(f.current),o?.(),()=>{e.disconnect(),t.dispose()}}),[]),r.useEffect((()=>{h.current&&(h.current.off(),l&&l.forEach((t=>{h.current.on(t.eventName,(e=>{t.eventCallback?.(e,h.current)}))})))}),[l]),r.useEffect((()=>{u?h.current.showLoading(e):h.current.hideLoading()}),[u]),r.useEffect((()=>a?(a.dataset&&(Array.isArray(a.dataset)?a.dataset.forEach((t=>{t.source||(t.source=[])})):a.dataset.source||(a.dataset.source=[])),h.current.setOption(a),()=>{h.current.clear()}):()=>{}),i),n.jsx("div",{className:s,style:{height:"100%",width:"100%",...c},ref:f})}v.defaultProps={chartOption:null,style:null,className:null,onLoad:null,onEvents:null,chartOptionDeps:null,loading:!1,onInit:null};const M=Object.freeze(Object.defineProperty({__proto__:null,DefaultLoadingOptions:e,HighlightHexColor:function(t,e=.2){const r=t.replace(/^#/,""),n=parseInt(r.slice(0,2),16)/255,o=parseInt(r.slice(2,4),16)/255,a=parseInt(r.slice(4,6),16)/255,s=Math.max(n,o,a),c=Math.min(n,o,a);let l,i,u=(s+c)/2;if(s===c)l=i=0;else{const t=s-c;switch(i=u>.5?t/(2-s-c):t/(s+c),s){case n:l=(o-a)/t+(o<a?6:0);break;case o:l=(a-n)/t+2;break;case a:l=(n-o)/t+4}l/=6}u=Math.min(1,u+.4);const d=u<.5?u*(1+i):u+i-u*i,f=2*u-d,h=t=>(t<0&&(t+=1),t>1&&(t-=1),t<1/6?f+6*(d-f)*t:t<.5?d:t<2/3?f+(d-f)*(2/3-t)*6:f),g=Math.round(255*h(l+1/3)),p=Math.round(255*h(l)),b=Math.round(255*h(l-1/3));return`#${[g.toString(16).padStart(2,"0"),p.toString(16).padStart(2,"0"),b.toString(16).padStart(2,"0")].join("")}`},MixHexColor:function(t,e=.2){const r=(n=t,{r:parseInt(n.slice(1,3),16),g:parseInt(n.slice(3,5),16),b:parseInt(n.slice(5,7),16)});var n;const o=(c=e,{r:(a=r).r+((s={r:255,g:255,b:255}).r-a.r)*c,g:a.g+(s.g-a.g)*c,b:a.b+(s.b-a.b)*c});var a,s,c;return((t,e,r)=>{const n=t=>t.toString(16).padStart(2,"0");return`#${n(t)}${n(e)}${n(r)}`})(o.r,o.g,o.b)},RandomHexColor:function(){const t=Math.floor(256*Math.random()),e=Math.floor(256*Math.random()),r=Math.floor(256*Math.random()),n=t=>{const e=t.toString(16);return 1===e.length?`0${e}`:e};return`#${n(t)}${n(e)}${n(r)}`},default:v},Symbol.toStringTag,{value:"Module"}));t("_",M)}}}));
@@ -1 +1 @@
1
- import{j as s,O as r}from"./vendor-2663c204.js";function n(t){return s.jsxs("div",{children:[s.jsx("span",{children:"二级页面"}),s.jsx(r,{})]})}export{n as default};
1
+ import{j as s,O as r}from"./vendor-affac96c.js";function n(t){return s.jsxs("div",{children:[s.jsx("span",{children:"二级页面"}),s.jsx(r,{})]})}export{n as default};
@@ -1 +1 @@
1
- System.register(["./vendor-legacy-2df23db3.js"],(function(e,t){"use strict";var n,r;return{setters:[e=>{n=e.j,r=e.O}],execute:function(){e("default",(function(e){return n.jsxs("div",{children:[n.jsx("span",{children:"二级页面"}),n.jsx(r,{})]})}))}}}));
1
+ System.register(["./vendor-legacy-55fa76eb.js"],(function(e,t){"use strict";var n,r;return{setters:[e=>{n=e.j,r=e.O}],execute:function(){e("default",(function(e){return n.jsxs("div",{children:[n.jsx("span",{children:"二级页面"}),n.jsx(r,{})]})}))}}}));
@@ -1 +1 @@
1
- import{_ as i}from"./base-5bf689c3.js";import{_}from"./index-c1ee2fb3.js";import{_ as m}from"./index-f57c9694.js";import{r,j as o}from"./vendor-2663c204.js";import{P as d}from"./index-e4c9d42a.js";import"./echarts-vendor-d6ce4b9c.js";const p="_background_1dv22_10",x="_block_1dv22_19",u="_name_1dv22_25",n={background:p,block:x,name:u},c=Object.assign({"../../components/Chart/base.tsx":i,"../../components/FlowLight/index.tsx":_,"../../components/ImagePreview/index.tsx":m});function k(){const[e,a]=r.useState();return r.useEffect(()=>{const s=[];Object.keys(c).forEach(t=>{const l=c[t].default;s.push({url:t,c:o.jsx(l,{style:{width:350}})})}),a(s)},[]),o.jsxs("div",{className:n.background,children:[o.jsxs("h2",{style:{margin:0},children:[d.title," - 目录"]}),o.jsxs("h4",{style:{margin:"15px 0px 0px"},children:["版本号:","v1.0.0"]}),e==null?void 0:e.map((s,t)=>o.jsxs("div",{className:n.block,children:[o.jsxs("span",{className:n.name,children:["【",t+1,"】 ,",s.url]}),s.c]},s.url))]})}export{k as default};
1
+ import{_ as i}from"./base-a14309c8.js";import{_}from"./index-5b5a8146.js";import{_ as m}from"./index-9cd5622a.js";import{r,j as o}from"./vendor-affac96c.js";import{P as d}from"./index-86214b19.js";import"./echarts-vendor-50090982.js";const p="_background_1dv22_10",x="_block_1dv22_19",u="_name_1dv22_25",n={background:p,block:x,name:u},c=Object.assign({"../../components/Chart/base.tsx":i,"../../components/FlowLight/index.tsx":_,"../../components/ImagePreview/index.tsx":m});function k(){const[e,a]=r.useState();return r.useEffect(()=>{const s=[];Object.keys(c).forEach(t=>{const l=c[t].default;s.push({url:t,c:o.jsx(l,{style:{width:350}})})}),a(s)},[]),o.jsxs("div",{className:n.background,children:[o.jsxs("h2",{style:{margin:0},children:[d.title," - 目录"]}),o.jsxs("h4",{style:{margin:"15px 0px 0px"},children:["版本号:","v1.0.0"]}),e==null?void 0:e.map((s,t)=>o.jsxs("div",{className:n.block,children:[o.jsxs("span",{className:n.name,children:["【",t+1,"】 ,",s.url]}),s.c]},s.url))]})}export{k as default};
@@ -1 +1 @@
1
- System.register(["./base-legacy-d3323277.js","./index-legacy-19a8ac10.js","./index-legacy-5f22daba.js","./vendor-legacy-2df23db3.js","./index-legacy-aebba3cb.js","./echarts-vendor-legacy-79597af6.js"],(function(e,n){"use strict";var s,t,a,c,o,l;return{setters:[e=>{s=e._},e=>{t=e._},e=>{a=e._},e=>{c=e.r,o=e.j},e=>{l=e.P},null],execute:function(){var n=document.createElement("style");n.textContent="._background_1dv22_10{padding:30px;display:flex;flex-direction:column;flex-wrap:wrap;background-color:#042c57;color:#fff;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}._background_1dv22_10 ._block_1dv22_19{display:flex;flex-direction:column;margin-bottom:20px;padding:10px}._background_1dv22_10 ._block_1dv22_19 ._name_1dv22_25{font-size:14px;color:#fff;margin-bottom:8px}\n",document.head.appendChild(n),e("default",(function(){const[e,n]=c.useState();return c.useEffect((()=>{const e=[];Object.keys(r).forEach((n=>{const s=r[n].default;e.push({url:n,c:o.jsx(s,{style:{width:350}})})})),n(e)}),[]),o.jsxs("div",{className:d.background,children:[o.jsxs("h2",{style:{margin:0},children:[l.title," - 目录"]}),o.jsxs("h4",{style:{margin:"15px 0px 0px"},children:["版本号:","v1.0.0"]}),e?.map(((e,n)=>o.jsxs("div",{className:d.block,children:[o.jsxs("span",{className:d.name,children:["【",n+1,"】 ,",e.url]}),e.c]},e.url)))]})}));const d={background:"_background_1dv22_10",block:"_block_1dv22_19",name:"_name_1dv22_25"},r=Object.assign({"../../components/Chart/base.tsx":s,"../../components/FlowLight/index.tsx":t,"../../components/ImagePreview/index.tsx":a})}}}));
1
+ System.register(["./base-legacy-2bc6e427.js","./index-legacy-b075295d.js","./index-legacy-4a13dddc.js","./vendor-legacy-55fa76eb.js","./index-legacy-06483318.js","./echarts-vendor-legacy-50b58722.js"],(function(e,n){"use strict";var s,t,a,c,o,l;return{setters:[e=>{s=e._},e=>{t=e._},e=>{a=e._},e=>{c=e.r,o=e.j},e=>{l=e.P},null],execute:function(){var n=document.createElement("style");n.textContent="._background_1dv22_10{padding:30px;display:flex;flex-direction:column;flex-wrap:wrap;background-color:#042c57;color:#fff;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}._background_1dv22_10 ._block_1dv22_19{display:flex;flex-direction:column;margin-bottom:20px;padding:10px}._background_1dv22_10 ._block_1dv22_19 ._name_1dv22_25{font-size:14px;color:#fff;margin-bottom:8px}\n",document.head.appendChild(n),e("default",(function(){const[e,n]=c.useState();return c.useEffect((()=>{const e=[];Object.keys(r).forEach((n=>{const s=r[n].default;e.push({url:n,c:o.jsx(s,{style:{width:350}})})})),n(e)}),[]),o.jsxs("div",{className:d.background,children:[o.jsxs("h2",{style:{margin:0},children:[l.title," - 目录"]}),o.jsxs("h4",{style:{margin:"15px 0px 0px"},children:["版本号:","v1.0.0"]}),e?.map(((e,n)=>o.jsxs("div",{className:d.block,children:[o.jsxs("span",{className:d.name,children:["【",n+1,"】 ,",e.url]}),e.c]},e.url)))]})}));const d={background:"_background_1dv22_10",block:"_block_1dv22_19",name:"_name_1dv22_25"},r=Object.assign({"../../components/Chart/base.tsx":s,"../../components/FlowLight/index.tsx":t,"../../components/ImagePreview/index.tsx":a})}}}));
@@ -1 +1 @@
1
- import{r as P,n as O,j as m,T as _,a4 as G,$ as K,I as q,a5 as H,l as j,a6 as z}from"./vendor-2663c204.js";import{B as J}from"./base-5bf689c3.js";import{L as X}from"./echarts-vendor-d6ce4b9c.js";import{S as Q}from"./ScreenChartOption-a6927065.js";import U from"./index-e03d0352.js";const Z="_editrow_1936a_10",ee={editrow:Z};function te(e){const{dataIndex:t,style:i,record:o,index:s,className:a,colSpan:n,rowSpan:r,children:x,editable:c,isEditing:A,editType:R="text",editRender:w,editSelectProps:p,editInputNumberProps:C,editInputProps:D,editDatePickerProps:B,editFormItemProps:W={}}=e,[Y,L]=P.useState(A),$=O.useFormInstance(),d=Array.isArray(t)?t.concat(s).join("."):"".concat(t,".").concat(s),u=()=>{L(!1)},F=()=>{L(!0),$.getFieldValue(d)===void 0&&$.setFieldValue("".concat(t,".").concat(s),o[t])};let g=null;switch(R){case"number":g=m.jsx(H,{...C});break;case"text":g=m.jsx(q,{autoFocus:!0,...D,onBlur:()=>{A||u()},onPressEnter:()=>{A||u()}});break;case"select":g=m.jsx(K,{...p});break;case"datepicker":g=m.jsx(G,{...B});break;case"custom":g=w==null?void 0:w(o[t],o);break}return P.useEffect(()=>{L(A)},[A]),m.jsxs("td",{className:a,colSpan:n,rowSpan:r,style:i,children:[Y&&m.jsx(O.Item,{name:d,style:{margin:0},...W,children:g}),!Y&&c&&m.jsx("div",{className:ee.editrow,onClick:()=>{F()},children:$.getFieldValue(d)!==void 0?$.getFieldValue(d):x}),!Y&&!c&&x]})}function ie(e){const{columns:t,dataSource:i,loadData:o,lazyLoadData:s=!1,currentTime:a,mock:n,editable:r,editFormProps:x}=e,[c,A]=P.useState({list:i,total:i==null?void 0:i.length}),[R,w]=P.useState(!1),p=P.useRef({current:1,pageSize:10}),[C]=O.useForm(),[D,B]=P.useState(),W=d=>d===D,Y=(d=50)=>{const u=[],F=(T=[])=>{const S=[];return T.forEach(l=>{if(l.children){const y=F(l.children);S.push(...y)}else S.push(l.dataIndex)}),S},g=F(t);for(let T=0;T<d;T++){const S={};g.forEach(l=>{if(typeof l=="string")S[l]=(Math.random()*100).toFixed(2);else if(Array.isArray(l)){const y=(v=[],E=0,V={})=>{if(E===l.length-1)V[v[E]]=(Math.random()*100).toFixed(2);else{const N=V[v[E]]||{};V[v[E]]=N,y(v,E+1,N)}};y(l,0,S)}}),S.time=a||j().subtract(T,"d").format("YYYY-MM-DD"),S.timeMonth=a||j().subtract(T,"d").format("YYYY-MM"),u.push(S)}return u},L=(d=!1)=>{o?(w(!0),d&&(p.current.current=1),o(p.current.current,p.current.pageSize).then(u=>{w(!1),A({list:u.data,total:u.total})}).catch(()=>{w(!1)})):n&&(w(!0),setTimeout(()=>{w(!1);const u=Y(p.current.pageSize);A({list:u,total:u.length})},500))};if(P.useEffect(()=>{(o&&!s||n)&&L()},[a]),delete e.dataSource,delete e.loadData,r){const d=l=>{C.setFieldsValue({...l}),B(l)},u=()=>{B(null)},F=()=>{C.resetFields()},g=()=>C.getFieldsValue(),T=t.map(l=>l.editable?{...l,onCell:(y,v)=>{var E;return{...(E=l.onCell)==null?void 0:E.call(l,y,v),record:y,dataIndex:l.dataIndex,index:v,editable:typeof l.editable=="function"?l.editable(y,v):l.editable,isEditing:l.isEditing!==void 0?l.isEditing:W(y),editType:l.editType||"text",editFormItemProps:l.editFormItemProps,editRender:l.editRender,editDatePickerProps:l.editDatePickerProps,editSelectProps:l.editSelectProps,editInputNumberProps:l.editInputNumberProps,editInputProps:l.editInputProps}}}:l);return delete e.columns,{element:m.jsx(O,{form:C,component:!1,...x,children:m.jsx(_,{components:{body:{cell:te}},bordered:!0,dataSource:i||(c==null?void 0:c.list),columns:T,scroll:{x:"max-content"},pagination:{showTotal:l=>"共".concat(l,"条"),showSizeChanger:!0,current:p.current.current,pageSize:p.current.pageSize,onShowSizeChange:(l,y)=>{p.current={current:l,pageSize:y},L()},onChange:u},...e})}),reload:L,startEdit:d,endEdit:u,submitEdit:g,resetEdit:F}}return{element:m.jsx(_,{dataSource:i||(c==null?void 0:c.list),scroll:{x:"max-content"},bordered:!0,loading:R,pagination:{showTotal:d=>"共".concat(d,"条"),total:c==null?void 0:c.total,showSizeChanger:!0,defaultCurrent:p.current.current,defaultPageSize:p.current.pageSize,onChange:(d,u)=>{p.current={current:d,pageSize:u},L()}},...e}),reload:L}}const b="#999999",k="#194a87",f="#404040",I="#999999",M="#194a87",h="#404040";function oe(e){const t=[];for(let s=0;s<12;s++)t.push({type:"".concat(s+1,"月"),value:200*Math.random()});const i={dimensions:["type","value"],source:t},o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:"0%",right:"0%",bottom:"0px",top:"50px",containLabel:!0,z:22},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:I}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:M},alignWithLabel:!0},axisLabel:{color:h,fontSize:14,margin:10}},yAxis:{name:"单位:%",nameTextStyle:{color:h},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}},series:{name:"数值",type:"bar",barWidth:"30%",xAxisIndex:0,yAxisIndex:0,itemStyle:{normal:{barBorderRadius:[20,20,0,0],color:new X(0,1,0,0,[{offset:0,color:"#67c8ff"},{offset:1,color:"#1158b9"}])}},showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],show:!0,color:"#e9ebf7"}},dataset:i};return z.merge(o,e),o}function ne(e=["demo"],t){const i=[];for(let n=0;n<12;n++)i.push({type:"".concat(n+1,"月"),...e.reduce((r,x,c)=>(r[x]=(200*Math.random()*(c%2===1?1:-1)).toFixed(2),r),{})});const o={dimensions:["type",...e],source:i},s={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:"0%",right:"0%",bottom:"0px",top:"50px",containLabel:!0,z:22},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:I}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:M},alignWithLabel:!0},axisLabel:{textStyle:{color:h},fontSize:14,margin:10}},yAxis:{name:"单位:元",nameTextStyle:{color:h},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}},series:[],dataset:o},a=e.map(n=>({name:n,type:"bar",xAxisIndex:0,yAxisIndex:0,showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],show:!0,color:"#e9ebf7"}}));return s.series=a,z.merge(s,t),s}function le(e){const t={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:40,right:20,bottom:"0px",top:0,containLabel:!0,z:22},xAxis:{name:"单位:%",nameTextStyle:{color:h},splitLine:{show:!0},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{color:f,fontSize:14,margin:10}},yAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:I}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:M},alignWithLabel:!0},axisLabel:{color:h,fontSize:14,margin:10}},series:{name:"",type:"bar",barWidth:"30%",xAxisIndex:0,yAxisIndex:0,itemStyle:{borderRadius:[0,20,20,0],color:new X(0,0,1,0,[{offset:0,color:"#67c8ff"},{offset:1,color:"#1158b9"}])},showBackground:!0,backgroundStyle:{borderRadius:[0,20,20,0],color:"#e9ebf7"}}};if(z.merge(t,e),!t.dataset){let i=[];const o=["a","b","c","d","e"];o==null||o.forEach(s=>{i.push({type:s,value:(Math.random()*100).toFixed(2)})}),i.length===0&&(i=[{type:"克州",value:20},{type:"乌鲁木齐",value:30},{type:"超高压",value:80},{type:"昌吉",value:22},{type:"吐鲁番",value:20},{type:"奎屯",value:30},{type:"博尔塔拉",value:26},{type:"哈密",value:28}]),t.dataset={dimensions:["type","value"],source:i}}return t}const ae=(e,t)=>{const i={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!0},grid:{left:10,right:0,bottom:0,top:30,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:I}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:M},alignWithLabel:!0},axisLabel:{color:h,fontSize:14,margin:10}},yAxis:{name:"单位:元",nameTextStyle:{color:h},splitLine:{show:!0},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{color:f,fontSize:14,margin:10}},series:[],animation:!0},o=[];if(e.forEach(s=>{o.push({name:s,type:"line",showAllSymbol:!0,symbol:"circle",symbolSize:10,label:{show:!1,position:"top",textStyle:{color:"#148c90"}}})}),i.series=o,z.merge(i,t),!i.dataset){const s=[];for(let a=0;a<10;a++){const n={time:j().subtract(a,"d").format("YYYY-MM-DD")};e.forEach(r=>{n[r]=Math.random()*100}),s.push(n)}i.dataset={dimensions:["time",...e],source:s}}return i};function se(e=["预测误差","预测波动"],t={}){const i=["#ffba00","#2759a4","#ff7e00","#6fbd6b","#50abdf","#7181d0","#ac77ce"],o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}},alwaysShowContent:!0,formatter:s=>{const[{data:a={},dimensionNames:n=[]}]=s;return"".concat(a.name,"<br /><span>").concat(e[0],":").concat(a[n[0]],"<br />").concat(e[1],":").concat(a[n[1]])}},legend:{show:!1},grid:{left:50,right:80,bottom:30,top:30,containLabel:!0},xAxis:{name:e[0],splitLine:{show:!1},axisLine:{lineStyle:{color:I},symbol:["none","arrow"]},axisTick:{show:!1},axisLabel:{show:!1}},yAxis:{name:e[1],nameTextStyle:{color:h},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:b},symbol:["none","arrow"]},axisTick:{show:!1},axisLabel:{show:!1}},series:{name:"",type:"scatter",symbol:"circle",symbolSize:20,label:{show:!0,position:"top"},itemStyle:{color(s){let a=s.dataIndex;return a>=6&&(a-=6),i[a]}}}};return z.merge(o,t),o.dataset||(o.dataset={dimensions:["均方误差","平均绝对误差"],source:[{name:"专家修正",平均绝对误差:2.349,均方误差:2.333},{name:"智能AI算法",平均绝对误差:3.333,均方误差:2.333},{name:"自回归移动平均模型",平均绝对误差:4.333,均方误差:5.333}]}),o}function re(e){const t={title:{text:"",left:"center",top:"53%",padding:[24,0]},series:{name:"",type:"pie",radius:["40%","60%"],hoverAnimation:!1,label:{formatter:(i,o,s)=>{const{percent:a}=i;return"{black|".concat(i.name,"} {yellow|").concat(i.value,"} {blue|").concat(a,"%}")},padding:[0,-60],height:50,rich:{black:{color:"#333",align:"right",fontSize:14,padding:[4,0],borderColor:"red",marginBottom:"-10px"},yellow:{color:"#ffc72b",fontSize:16,padding:[5,4],align:"center"},blue:{color:"#28c9db",fontSize:14,align:"center",marginRight:"-100px"}}},labelLine:{showAbove:!0,length:60,length2:60,maxSurfaceAngle:0,lineStyle:{color:"#0b5263"}}}};return z.merge(t,e),t.series.data||(t.series.data=[{value:260,name:"测试1"},{value:103,name:"测试2"}]),t}function ce(e=["容量","同期","上一周期"],t=["同比","环比","占总比重"],i={}){const o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:I}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:M},alignWithLabel:!0},axisLabel:{color:h,fontSize:14,margin:10}},yAxis:[{name:"单位:万户",nameTextStyle:{color:h},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{color:f,fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:h},min:-10,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{color:f,fontSize:14,margin:10}}],animation:!0,series:[]},s=[];if(e.forEach(a=>{s.push({name:a,type:"bar",yAxisIndex:0,showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],show:!0,color:"#e9ebf7"}})}),t.forEach(a=>{s.push({name:a,yAxisIndex:1,type:"line",showAllSymbol:!1,symbol:"circle",symbolSize:10,label:{show:!1,position:"top",textStyle:{color:"#148c90"}}})}),o.series=s,z.merge(o,i),!o.dataset){const a=[];for(let n=0;n<10;n++){const r={time:j().subtract(n,"M").format("YYYY/MM")};e.forEach(x=>{r[x]=(Math.random()*500).toFixed(2)}),t.forEach(x=>{r[x]=(Math.random()*100).toFixed(2)}),a.push(r)}o.dataset={dimensions:["time",...e,...t],source:a}}return o}function de(e=["10kV以下","10kV及以上"],t=["10kV及以上所占比重"],i){const o=[];for(let r=0;r<10;r++){const x={time:j().subtract(r,"M").format("YYYY/MM")};e.forEach(c=>{x[c]=(Math.random()*500).toFixed(2)}),t.forEach(c=>{x[c]=(Math.random()*100).toFixed(2)}),o.push(x)}const s={dimensions:["time",...e,...t],source:o},a={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:I}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:M},alignWithLabel:!0},axisLabel:{textStyle:{color:h},fontSize:14,margin:10}},yAxis:[{name:"单位:万户",nameTextStyle:{color:f},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:f},min:-10,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}}],animation:!0,series:[],dataset:s},n=[];return e.forEach(r=>{n.push({name:r,type:"bar",barWidth:"30%",yAxisIndex:0,stack:!0})}),t.forEach(r=>{n.push({name:r,yAxisIndex:1,type:"line",showAllSymbol:!0,symbol:"circle",symbolSize:10,label:{show:!1,position:"top",textStyle:{color:"#148c90"}}})}),a.series=n,z.merge(a,i),a}function ue(e,t){const i=[{name:"智能AI算法",value:[1.45,1.96]},{name:"专家修正",value:[2.39,3.81]},{name:"XGBoost",value:[3.84,4.26]}],o=function(){let n=0;return e.forEach(r=>{n+=r.value[0]}),(n/e.length).toFixed(2)},s=function(){let n=0;return e.forEach(r=>{n+=r.value[1]}),(n/e.length).toFixed(2)},a={title:{text:""},grid:{left:"10px",right:"100px",bottom:0,top:"30px",containLabel:!0},tooltip:{trigger:"item",axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}},formatter(n){if(n.componentType=="series")return'<div style="border-bottom: 1px solid rgba(255,255,255,.3); font-size: 18px;padding-bottom: 7px;margin-bottom: 7px">'.concat(n.name,"</div><span>预测误差</span> : ").concat(n.data.value[0],"<br/><span>预测波动</span> : ").concat(n.data.value[1])}},xAxis:{name:"预测误差",type:"value",scale:!0,splitLine:{show:!1},axisLine:{lineStyle:{color:I}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:M},alignWithLabel:!0},axisLabel:{textStyle:{color:h},fontSize:14,margin:10}},yAxis:{name:"预测波动",nameTextStyle:{color:f},type:"value",scale:!0,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}},series:[{type:"scatter",data:e||i,symbolSize:20,markLine:{label:{normal:{formatter(n){return n.name}}},lineStyle:{normal:{color:"#626c91",type:"solid",width:1},emphasis:{color:"#d9def7"}},data:[{xAxis:o(),name:"预测误差平均水平",label:{color:"red"}},{yAxis:s(),name:"预测波动平均水平",label:{color:"red"}}]}}]};return z.merge(a,t),a}const me=Object.freeze(Object.defineProperty({__proto__:null,getBarAndLineOption:ce,getBarStackAndLineOption:de,getBaseBarChartOption:oe,getBaseBarRollbackChartOption:le,getLineChartOption:ae,getMultiBarChartOption:ne,getPieChartOption:re,getScatterChartOption:se,getScatterPlotOption:ue},Symbol.toStringTag,{value:"Module"})),xe={BackgroundChart:me,ScreenChart:Q},he=xe;function be(e){const t=()=>[{title:"时间",dataIndex:"time"},{title:"数据1",dataIndex:"value1"},{title:"数据2",dataIndex:"value2"},{title:"数据3",dataIndex:"value3"},{title:"数据4",dataIndex:"value4"}],{element:i}=ie({columns:t(),mock:!0});return m.jsxs("div",{children:[m.jsx(U,{}),m.jsx("h3",{children:"折线图配置"}),m.jsx(J,{style:{height:200},chartOption:he.BackgroundChart.getLineChartOption(["农业","工业","商业","渔业"])}),m.jsx("h3",{children:"表格示例"}),i]})}export{be as default};
1
+ import{r as P,n as O,j as m,T as _,a4 as G,$ as K,I as q,a5 as H,l as j,a6 as z}from"./vendor-affac96c.js";import{B as J}from"./base-a14309c8.js";import{L as X}from"./echarts-vendor-50090982.js";import{S as Q}from"./ScreenChartOption-953b9157.js";import U from"./index-777ef781.js";const Z="_editrow_1936a_10",ee={editrow:Z};function te(e){const{dataIndex:t,style:i,record:o,index:s,className:a,colSpan:n,rowSpan:r,children:x,editable:c,isEditing:A,editType:R="text",editRender:w,editSelectProps:p,editInputNumberProps:C,editInputProps:D,editDatePickerProps:B,editFormItemProps:W={}}=e,[Y,L]=P.useState(A),$=O.useFormInstance(),d=Array.isArray(t)?t.concat(s).join("."):"".concat(t,".").concat(s),u=()=>{L(!1)},F=()=>{L(!0),$.getFieldValue(d)===void 0&&$.setFieldValue("".concat(t,".").concat(s),o[t])};let g=null;switch(R){case"number":g=m.jsx(H,{...C});break;case"text":g=m.jsx(q,{autoFocus:!0,...D,onBlur:()=>{A||u()},onPressEnter:()=>{A||u()}});break;case"select":g=m.jsx(K,{...p});break;case"datepicker":g=m.jsx(G,{...B});break;case"custom":g=w==null?void 0:w(o[t],o);break}return P.useEffect(()=>{L(A)},[A]),m.jsxs("td",{className:a,colSpan:n,rowSpan:r,style:i,children:[Y&&m.jsx(O.Item,{name:d,style:{margin:0},...W,children:g}),!Y&&c&&m.jsx("div",{className:ee.editrow,onClick:()=>{F()},children:$.getFieldValue(d)!==void 0?$.getFieldValue(d):x}),!Y&&!c&&x]})}function ie(e){const{columns:t,dataSource:i,loadData:o,lazyLoadData:s=!1,currentTime:a,mock:n,editable:r,editFormProps:x}=e,[c,A]=P.useState({list:i,total:i==null?void 0:i.length}),[R,w]=P.useState(!1),p=P.useRef({current:1,pageSize:10}),[C]=O.useForm(),[D,B]=P.useState(),W=d=>d===D,Y=(d=50)=>{const u=[],F=(T=[])=>{const S=[];return T.forEach(l=>{if(l.children){const y=F(l.children);S.push(...y)}else S.push(l.dataIndex)}),S},g=F(t);for(let T=0;T<d;T++){const S={};g.forEach(l=>{if(typeof l=="string")S[l]=(Math.random()*100).toFixed(2);else if(Array.isArray(l)){const y=(v=[],E=0,V={})=>{if(E===l.length-1)V[v[E]]=(Math.random()*100).toFixed(2);else{const N=V[v[E]]||{};V[v[E]]=N,y(v,E+1,N)}};y(l,0,S)}}),S.time=a||j().subtract(T,"d").format("YYYY-MM-DD"),S.timeMonth=a||j().subtract(T,"d").format("YYYY-MM"),u.push(S)}return u},L=(d=!1)=>{o?(w(!0),d&&(p.current.current=1),o(p.current.current,p.current.pageSize).then(u=>{w(!1),A({list:u.data,total:u.total})}).catch(()=>{w(!1)})):n&&(w(!0),setTimeout(()=>{w(!1);const u=Y(p.current.pageSize);A({list:u,total:u.length})},500))};if(P.useEffect(()=>{(o&&!s||n)&&L()},[a]),delete e.dataSource,delete e.loadData,r){const d=l=>{C.setFieldsValue({...l}),B(l)},u=()=>{B(null)},F=()=>{C.resetFields()},g=()=>C.getFieldsValue(),T=t.map(l=>l.editable?{...l,onCell:(y,v)=>{var E;return{...(E=l.onCell)==null?void 0:E.call(l,y,v),record:y,dataIndex:l.dataIndex,index:v,editable:typeof l.editable=="function"?l.editable(y,v):l.editable,isEditing:l.isEditing!==void 0?l.isEditing:W(y),editType:l.editType||"text",editFormItemProps:l.editFormItemProps,editRender:l.editRender,editDatePickerProps:l.editDatePickerProps,editSelectProps:l.editSelectProps,editInputNumberProps:l.editInputNumberProps,editInputProps:l.editInputProps}}}:l);return delete e.columns,{element:m.jsx(O,{form:C,component:!1,...x,children:m.jsx(_,{components:{body:{cell:te}},bordered:!0,dataSource:i||(c==null?void 0:c.list),columns:T,scroll:{x:"max-content"},pagination:{showTotal:l=>"共".concat(l,"条"),showSizeChanger:!0,current:p.current.current,pageSize:p.current.pageSize,onShowSizeChange:(l,y)=>{p.current={current:l,pageSize:y},L()},onChange:u},...e})}),reload:L,startEdit:d,endEdit:u,submitEdit:g,resetEdit:F}}return{element:m.jsx(_,{dataSource:i||(c==null?void 0:c.list),scroll:{x:"max-content"},bordered:!0,loading:R,pagination:{showTotal:d=>"共".concat(d,"条"),total:c==null?void 0:c.total,showSizeChanger:!0,defaultCurrent:p.current.current,defaultPageSize:p.current.pageSize,onChange:(d,u)=>{p.current={current:d,pageSize:u},L()}},...e}),reload:L}}const b="#999999",k="#194a87",f="#404040",I="#999999",M="#194a87",h="#404040";function oe(e){const t=[];for(let s=0;s<12;s++)t.push({type:"".concat(s+1,"月"),value:200*Math.random()});const i={dimensions:["type","value"],source:t},o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:"0%",right:"0%",bottom:"0px",top:"50px",containLabel:!0,z:22},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:I}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:M},alignWithLabel:!0},axisLabel:{color:h,fontSize:14,margin:10}},yAxis:{name:"单位:%",nameTextStyle:{color:h},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}},series:{name:"数值",type:"bar",barWidth:"30%",xAxisIndex:0,yAxisIndex:0,itemStyle:{normal:{barBorderRadius:[20,20,0,0],color:new X(0,1,0,0,[{offset:0,color:"#67c8ff"},{offset:1,color:"#1158b9"}])}},showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],show:!0,color:"#e9ebf7"}},dataset:i};return z.merge(o,e),o}function ne(e=["demo"],t){const i=[];for(let n=0;n<12;n++)i.push({type:"".concat(n+1,"月"),...e.reduce((r,x,c)=>(r[x]=(200*Math.random()*(c%2===1?1:-1)).toFixed(2),r),{})});const o={dimensions:["type",...e],source:i},s={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:"0%",right:"0%",bottom:"0px",top:"50px",containLabel:!0,z:22},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:I}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:M},alignWithLabel:!0},axisLabel:{textStyle:{color:h},fontSize:14,margin:10}},yAxis:{name:"单位:元",nameTextStyle:{color:h},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}},series:[],dataset:o},a=e.map(n=>({name:n,type:"bar",xAxisIndex:0,yAxisIndex:0,showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],show:!0,color:"#e9ebf7"}}));return s.series=a,z.merge(s,t),s}function le(e){const t={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:40,right:20,bottom:"0px",top:0,containLabel:!0,z:22},xAxis:{name:"单位:%",nameTextStyle:{color:h},splitLine:{show:!0},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{color:f,fontSize:14,margin:10}},yAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:I}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:M},alignWithLabel:!0},axisLabel:{color:h,fontSize:14,margin:10}},series:{name:"",type:"bar",barWidth:"30%",xAxisIndex:0,yAxisIndex:0,itemStyle:{borderRadius:[0,20,20,0],color:new X(0,0,1,0,[{offset:0,color:"#67c8ff"},{offset:1,color:"#1158b9"}])},showBackground:!0,backgroundStyle:{borderRadius:[0,20,20,0],color:"#e9ebf7"}}};if(z.merge(t,e),!t.dataset){let i=[];const o=["a","b","c","d","e"];o==null||o.forEach(s=>{i.push({type:s,value:(Math.random()*100).toFixed(2)})}),i.length===0&&(i=[{type:"克州",value:20},{type:"乌鲁木齐",value:30},{type:"超高压",value:80},{type:"昌吉",value:22},{type:"吐鲁番",value:20},{type:"奎屯",value:30},{type:"博尔塔拉",value:26},{type:"哈密",value:28}]),t.dataset={dimensions:["type","value"],source:i}}return t}const ae=(e,t)=>{const i={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!0},grid:{left:10,right:0,bottom:0,top:30,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:I}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:M},alignWithLabel:!0},axisLabel:{color:h,fontSize:14,margin:10}},yAxis:{name:"单位:元",nameTextStyle:{color:h},splitLine:{show:!0},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{color:f,fontSize:14,margin:10}},series:[],animation:!0},o=[];if(e.forEach(s=>{o.push({name:s,type:"line",showAllSymbol:!0,symbol:"circle",symbolSize:10,label:{show:!1,position:"top",textStyle:{color:"#148c90"}}})}),i.series=o,z.merge(i,t),!i.dataset){const s=[];for(let a=0;a<10;a++){const n={time:j().subtract(a,"d").format("YYYY-MM-DD")};e.forEach(r=>{n[r]=Math.random()*100}),s.push(n)}i.dataset={dimensions:["time",...e],source:s}}return i};function se(e=["预测误差","预测波动"],t={}){const i=["#ffba00","#2759a4","#ff7e00","#6fbd6b","#50abdf","#7181d0","#ac77ce"],o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}},alwaysShowContent:!0,formatter:s=>{const[{data:a={},dimensionNames:n=[]}]=s;return"".concat(a.name,"<br /><span>").concat(e[0],":").concat(a[n[0]],"<br />").concat(e[1],":").concat(a[n[1]])}},legend:{show:!1},grid:{left:50,right:80,bottom:30,top:30,containLabel:!0},xAxis:{name:e[0],splitLine:{show:!1},axisLine:{lineStyle:{color:I},symbol:["none","arrow"]},axisTick:{show:!1},axisLabel:{show:!1}},yAxis:{name:e[1],nameTextStyle:{color:h},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:b},symbol:["none","arrow"]},axisTick:{show:!1},axisLabel:{show:!1}},series:{name:"",type:"scatter",symbol:"circle",symbolSize:20,label:{show:!0,position:"top"},itemStyle:{color(s){let a=s.dataIndex;return a>=6&&(a-=6),i[a]}}}};return z.merge(o,t),o.dataset||(o.dataset={dimensions:["均方误差","平均绝对误差"],source:[{name:"专家修正",平均绝对误差:2.349,均方误差:2.333},{name:"智能AI算法",平均绝对误差:3.333,均方误差:2.333},{name:"自回归移动平均模型",平均绝对误差:4.333,均方误差:5.333}]}),o}function re(e){const t={title:{text:"",left:"center",top:"53%",padding:[24,0]},series:{name:"",type:"pie",radius:["40%","60%"],hoverAnimation:!1,label:{formatter:(i,o,s)=>{const{percent:a}=i;return"{black|".concat(i.name,"} {yellow|").concat(i.value,"} {blue|").concat(a,"%}")},padding:[0,-60],height:50,rich:{black:{color:"#333",align:"right",fontSize:14,padding:[4,0],borderColor:"red",marginBottom:"-10px"},yellow:{color:"#ffc72b",fontSize:16,padding:[5,4],align:"center"},blue:{color:"#28c9db",fontSize:14,align:"center",marginRight:"-100px"}}},labelLine:{showAbove:!0,length:60,length2:60,maxSurfaceAngle:0,lineStyle:{color:"#0b5263"}}}};return z.merge(t,e),t.series.data||(t.series.data=[{value:260,name:"测试1"},{value:103,name:"测试2"}]),t}function ce(e=["容量","同期","上一周期"],t=["同比","环比","占总比重"],i={}){const o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:I}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:M},alignWithLabel:!0},axisLabel:{color:h,fontSize:14,margin:10}},yAxis:[{name:"单位:万户",nameTextStyle:{color:h},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{color:f,fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:h},min:-10,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{color:f,fontSize:14,margin:10}}],animation:!0,series:[]},s=[];if(e.forEach(a=>{s.push({name:a,type:"bar",yAxisIndex:0,showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],show:!0,color:"#e9ebf7"}})}),t.forEach(a=>{s.push({name:a,yAxisIndex:1,type:"line",showAllSymbol:!1,symbol:"circle",symbolSize:10,label:{show:!1,position:"top",textStyle:{color:"#148c90"}}})}),o.series=s,z.merge(o,i),!o.dataset){const a=[];for(let n=0;n<10;n++){const r={time:j().subtract(n,"M").format("YYYY/MM")};e.forEach(x=>{r[x]=(Math.random()*500).toFixed(2)}),t.forEach(x=>{r[x]=(Math.random()*100).toFixed(2)}),a.push(r)}o.dataset={dimensions:["time",...e,...t],source:a}}return o}function de(e=["10kV以下","10kV及以上"],t=["10kV及以上所占比重"],i){const o=[];for(let r=0;r<10;r++){const x={time:j().subtract(r,"M").format("YYYY/MM")};e.forEach(c=>{x[c]=(Math.random()*500).toFixed(2)}),t.forEach(c=>{x[c]=(Math.random()*100).toFixed(2)}),o.push(x)}const s={dimensions:["time",...e,...t],source:o},a={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:I}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:M},alignWithLabel:!0},axisLabel:{textStyle:{color:h},fontSize:14,margin:10}},yAxis:[{name:"单位:万户",nameTextStyle:{color:f},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:f},min:-10,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}}],animation:!0,series:[],dataset:s},n=[];return e.forEach(r=>{n.push({name:r,type:"bar",barWidth:"30%",yAxisIndex:0,stack:!0})}),t.forEach(r=>{n.push({name:r,yAxisIndex:1,type:"line",showAllSymbol:!0,symbol:"circle",symbolSize:10,label:{show:!1,position:"top",textStyle:{color:"#148c90"}}})}),a.series=n,z.merge(a,i),a}function ue(e,t){const i=[{name:"智能AI算法",value:[1.45,1.96]},{name:"专家修正",value:[2.39,3.81]},{name:"XGBoost",value:[3.84,4.26]}],o=function(){let n=0;return e.forEach(r=>{n+=r.value[0]}),(n/e.length).toFixed(2)},s=function(){let n=0;return e.forEach(r=>{n+=r.value[1]}),(n/e.length).toFixed(2)},a={title:{text:""},grid:{left:"10px",right:"100px",bottom:0,top:"30px",containLabel:!0},tooltip:{trigger:"item",axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}},formatter(n){if(n.componentType=="series")return'<div style="border-bottom: 1px solid rgba(255,255,255,.3); font-size: 18px;padding-bottom: 7px;margin-bottom: 7px">'.concat(n.name,"</div><span>预测误差</span> : ").concat(n.data.value[0],"<br/><span>预测波动</span> : ").concat(n.data.value[1])}},xAxis:{name:"预测误差",type:"value",scale:!0,splitLine:{show:!1},axisLine:{lineStyle:{color:I}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:M},alignWithLabel:!0},axisLabel:{textStyle:{color:h},fontSize:14,margin:10}},yAxis:{name:"预测波动",nameTextStyle:{color:f},type:"value",scale:!0,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:b}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:k}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}},series:[{type:"scatter",data:e||i,symbolSize:20,markLine:{label:{normal:{formatter(n){return n.name}}},lineStyle:{normal:{color:"#626c91",type:"solid",width:1},emphasis:{color:"#d9def7"}},data:[{xAxis:o(),name:"预测误差平均水平",label:{color:"red"}},{yAxis:s(),name:"预测波动平均水平",label:{color:"red"}}]}}]};return z.merge(a,t),a}const me=Object.freeze(Object.defineProperty({__proto__:null,getBarAndLineOption:ce,getBarStackAndLineOption:de,getBaseBarChartOption:oe,getBaseBarRollbackChartOption:le,getLineChartOption:ae,getMultiBarChartOption:ne,getPieChartOption:re,getScatterChartOption:se,getScatterPlotOption:ue},Symbol.toStringTag,{value:"Module"})),xe={BackgroundChart:me,ScreenChart:Q},he=xe;function be(e){const t=()=>[{title:"时间",dataIndex:"time"},{title:"数据1",dataIndex:"value1"},{title:"数据2",dataIndex:"value2"},{title:"数据3",dataIndex:"value3"},{title:"数据4",dataIndex:"value4"}],{element:i}=ie({columns:t(),mock:!0});return m.jsxs("div",{children:[m.jsx(U,{}),m.jsx("h3",{children:"折线图配置"}),m.jsx(J,{style:{height:200},chartOption:he.BackgroundChart.getLineChartOption(["农业","工业","商业","渔业"])}),m.jsx("h3",{children:"表格示例"}),i]})}export{be as default};
@@ -1 +1 @@
1
- System.register(["./vendor-legacy-2df23db3.js","./base-legacy-d3323277.js","./echarts-vendor-legacy-79597af6.js","./ScreenChartOption-legacy-b4c04ce9.js","./index-legacy-06643c96.js"],(function(e,t){"use strict";var o,i,n,a,l,r,s,c,d,h,x,m,p,y;return{setters:[e=>{o=e.r,i=e.n,n=e.j,a=e.T,l=e.a4,r=e.$,s=e.I,c=e.a5,d=e.l,h=e.a6},e=>{x=e.B},e=>{m=e.L},e=>{p=e.S},e=>{y=e.default}],execute:function(){var t=document.createElement("style");t.textContent="._editrow_1936a_10{cursor:pointer;width:100%;min-height:20px;display:inline-block;border-radius:2px}._editrow_1936a_10:hover{border:1px solid #d9d9d9}\n",document.head.appendChild(t),e("default",(function(e){const{element:t}=function(e){const{columns:t,dataSource:l,loadData:r,lazyLoadData:s=!1,currentTime:c,mock:h,editable:x,editFormProps:m}=e,[p,y]=o.useState({list:l,total:l?.length}),[u,S]=o.useState(!1),b=o.useRef({current:1,pageSize:10}),[f]=i.useForm(),[w,L]=o.useState(),k=e=>e===w,z=(e=50)=>{const o=[],i=(e=[])=>{const t=[];return e.forEach((e=>{if(e.children){const o=i(e.children);t.push(...o)}else t.push(e.dataIndex)})),t},n=i(t);for(let t=0;t<e;t++){const e={};n.forEach((t=>{if("string"==typeof t)e[t]=(100*Math.random()).toFixed(2);else if(Array.isArray(t)){const o=(e=[],i=0,n={})=>{if(i===t.length-1)n[e[i]]=(100*Math.random()).toFixed(2);else{const t=n[e[i]]||{};n[e[i]]=t,o(e,i+1,t)}};o(t,0,e)}})),e.time=c||d().subtract(t,"d").format("YYYY-MM-DD"),e.timeMonth=c||d().subtract(t,"d").format("YYYY-MM"),o.push(e)}return o},v=(e=!1)=>{r?(S(!0),e&&(b.current.current=1),r(b.current.current,b.current.pageSize).then((e=>{S(!1),y({list:e.data,total:e.total})})).catch((()=>{S(!1)}))):h&&(S(!0),setTimeout((()=>{S(!1);const e=z(b.current.pageSize);y({list:e,total:e.length})}),500))};if(o.useEffect((()=>{(r&&!s||h)&&v()}),[c]),delete e.dataSource,delete e.loadData,x){const o=e=>{f.setFieldsValue({...e}),L(e)},r=()=>{L(null)},s=()=>{f.resetFields()},c=()=>f.getFieldsValue(),d=t.map((e=>e.editable?{...e,onCell:(t,o)=>({...e.onCell?.(t,o),record:t,dataIndex:e.dataIndex,index:o,editable:"function"==typeof e.editable?e.editable(t,o):e.editable,isEditing:void 0!==e.isEditing?e.isEditing:k(t),editType:e.editType||"text",editFormItemProps:e.editFormItemProps,editRender:e.editRender,editDatePickerProps:e.editDatePickerProps,editSelectProps:e.editSelectProps,editInputNumberProps:e.editInputNumberProps,editInputProps:e.editInputProps})}:e));return delete e.columns,{element:n.jsx(i,{form:f,component:!1,...m,children:n.jsx(a,{components:{body:{cell:g}},bordered:!0,dataSource:l||p?.list,columns:d,scroll:{x:"max-content"},pagination:{showTotal:e=>`共${e}条`,showSizeChanger:!0,current:b.current.current,pageSize:b.current.pageSize,onShowSizeChange:(e,t)=>{b.current={current:e,pageSize:t},v()},onChange:r},...e})}),reload:v,startEdit:o,endEdit:r,submitEdit:c,resetEdit:s}}const A=n.jsx(a,{dataSource:l||p?.list,scroll:{x:"max-content"},bordered:!0,loading:u,pagination:{showTotal:e=>`共${e}条`,total:p?.total,showSizeChanger:!0,defaultCurrent:b.current.current,defaultPageSize:b.current.pageSize,onChange:(e,t)=>{b.current={current:e,pageSize:t},v()}},...e});return{element:A,reload:v}}({columns:[{title:"时间",dataIndex:"time"},{title:"数据1",dataIndex:"value1"},{title:"数据2",dataIndex:"value2"},{title:"数据3",dataIndex:"value3"},{title:"数据4",dataIndex:"value4"}],mock:!0});return n.jsxs("div",{children:[n.jsx(y,{}),n.jsx("h3",{children:"折线图配置"}),n.jsx(x,{style:{height:200},chartOption:z.BackgroundChart.getLineChartOption(["农业","工业","商业","渔业"])}),n.jsx("h3",{children:"表格示例"}),t]})}));const u={editrow:"_editrow_1936a_10"};function g(e){const{dataIndex:t,style:a,record:d,index:h,className:x,colSpan:m,rowSpan:p,children:y,editable:g,isEditing:S,editType:b="text",editRender:f,editSelectProps:w,editInputNumberProps:L,editInputProps:k,editDatePickerProps:z,editFormItemProps:v={}}=e,[A,T]=o.useState(S),I=i.useFormInstance(),P=Array.isArray(t)?t.concat(h).join("."):`${t}.${h}`,E=()=>{T(!1)};let M=null;switch(b){case"number":M=n.jsx(c,{...L});break;case"text":M=n.jsx(s,{autoFocus:!0,...k,onBlur:()=>{S||E()},onPressEnter:()=>{S||E()}});break;case"select":M=n.jsx(r,{...w});break;case"datepicker":M=n.jsx(l,{...z});break;case"custom":M=f?.(d[t],d)}return o.useEffect((()=>{T(S)}),[S]),n.jsxs("td",{className:x,colSpan:m,rowSpan:p,style:a,children:[A&&n.jsx(i.Item,{name:P,style:{margin:0},...v,children:M}),!A&&g&&n.jsx("div",{className:u.editrow,onClick:()=>{T(!0),void 0===I.getFieldValue(P)&&I.setFieldValue(`${t}.${h}`,d[t])},children:void 0!==I.getFieldValue(P)?I.getFieldValue(P):y}),!A&&!g&&y]})}const S="#999999",b="#194a87",f="#404040",w="#999999",L="#194a87",k="#404040",z={BackgroundChart:Object.freeze(Object.defineProperty({__proto__:null,getBarAndLineOption:function(e=["容量","同期","上一周期"],t=["同比","环比","占总比重"],o={}){const i={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:w}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:L},alignWithLabel:!0},axisLabel:{color:k,fontSize:14,margin:10}},yAxis:[{name:"单位:万户",nameTextStyle:{color:k},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{color:f,fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:k},min:-10,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{color:f,fontSize:14,margin:10}}],animation:!0,series:[]},n=[];if(e.forEach((e=>{n.push({name:e,type:"bar",yAxisIndex:0,showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],show:!0,color:"#e9ebf7"}})})),t.forEach((e=>{n.push({name:e,yAxisIndex:1,type:"line",showAllSymbol:!1,symbol:"circle",symbolSize:10,label:{show:!1,position:"top",textStyle:{color:"#148c90"}}})})),i.series=n,h.merge(i,o),!i.dataset){const o=[];for(let i=0;i<10;i++){const n={time:d().subtract(i,"M").format("YYYY/MM")};e.forEach((e=>{n[e]=(500*Math.random()).toFixed(2)})),t.forEach((e=>{n[e]=(100*Math.random()).toFixed(2)})),o.push(n)}i.dataset={dimensions:["time",...e,...t],source:o}}return i},getBarStackAndLineOption:function(e=["10kV以下","10kV及以上"],t=["10kV及以上所占比重"],o){const i=[];for(let r=0;r<10;r++){const o={time:d().subtract(r,"M").format("YYYY/MM")};e.forEach((e=>{o[e]=(500*Math.random()).toFixed(2)})),t.forEach((e=>{o[e]=(100*Math.random()).toFixed(2)})),i.push(o)}const n={dimensions:["time",...e,...t],source:i},a={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:w}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:L},alignWithLabel:!0},axisLabel:{textStyle:{color:k},fontSize:14,margin:10}},yAxis:[{name:"单位:万户",nameTextStyle:{color:f},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:f},min:-10,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}}],animation:!0,series:[],dataset:n},l=[];return e.forEach((e=>{l.push({name:e,type:"bar",barWidth:"30%",yAxisIndex:0,stack:!0})})),t.forEach((e=>{l.push({name:e,yAxisIndex:1,type:"line",showAllSymbol:!0,symbol:"circle",symbolSize:10,label:{show:!1,position:"top",textStyle:{color:"#148c90"}}})})),a.series=l,h.merge(a,o),a},getBaseBarChartOption:function(e){const t=[];for(let n=0;n<12;n++)t.push({type:`${n+1}月`,value:200*Math.random()});const o={dimensions:["type","value"],source:t},i={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:"0%",right:"0%",bottom:"0px",top:"50px",containLabel:!0,z:22},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:w}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:L},alignWithLabel:!0},axisLabel:{color:k,fontSize:14,margin:10}},yAxis:{name:"单位:%",nameTextStyle:{color:k},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}},series:{name:"数值",type:"bar",barWidth:"30%",xAxisIndex:0,yAxisIndex:0,itemStyle:{normal:{barBorderRadius:[20,20,0,0],color:new m(0,1,0,0,[{offset:0,color:"#67c8ff"},{offset:1,color:"#1158b9"}])}},showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],show:!0,color:"#e9ebf7"}},dataset:o};return h.merge(i,e),i},getBaseBarRollbackChartOption:function(e){const t={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:40,right:20,bottom:"0px",top:0,containLabel:!0,z:22},xAxis:{name:"单位:%",nameTextStyle:{color:k},splitLine:{show:!0},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{color:f,fontSize:14,margin:10}},yAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:w}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:L},alignWithLabel:!0},axisLabel:{color:k,fontSize:14,margin:10}},series:{name:"",type:"bar",barWidth:"30%",xAxisIndex:0,yAxisIndex:0,itemStyle:{borderRadius:[0,20,20,0],color:new m(0,0,1,0,[{offset:0,color:"#67c8ff"},{offset:1,color:"#1158b9"}])},showBackground:!0,backgroundStyle:{borderRadius:[0,20,20,0],color:"#e9ebf7"}}};if(h.merge(t,e),!t.dataset){let e=[];const o=["a","b","c","d","e"];o?.forEach((t=>{e.push({type:t,value:(100*Math.random()).toFixed(2)})})),0===e.length&&(e=[{type:"克州",value:20},{type:"乌鲁木齐",value:30},{type:"超高压",value:80},{type:"昌吉",value:22},{type:"吐鲁番",value:20},{type:"奎屯",value:30},{type:"博尔塔拉",value:26},{type:"哈密",value:28}]),t.dataset={dimensions:["type","value"],source:e}}return t},getLineChartOption:(e,t)=>{const o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!0},grid:{left:10,right:0,bottom:0,top:30,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:w}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:L},alignWithLabel:!0},axisLabel:{color:k,fontSize:14,margin:10}},yAxis:{name:"单位:元",nameTextStyle:{color:k},splitLine:{show:!0},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{color:f,fontSize:14,margin:10}},series:[],animation:!0},i=[];if(e.forEach((e=>{i.push({name:e,type:"line",showAllSymbol:!0,symbol:"circle",symbolSize:10,label:{show:!1,position:"top",textStyle:{color:"#148c90"}}})})),o.series=i,h.merge(o,t),!o.dataset){const t=[];for(let o=0;o<10;o++){const i={time:d().subtract(o,"d").format("YYYY-MM-DD")};e.forEach((e=>{i[e]=100*Math.random()})),t.push(i)}o.dataset={dimensions:["time",...e],source:t}}return o},getMultiBarChartOption:function(e=["demo"],t){const o=[];for(let l=0;l<12;l++)o.push({type:`${l+1}月`,...e.reduce(((e,t,o)=>(e[t]=(200*Math.random()*(o%2==1?1:-1)).toFixed(2),e)),{})});const i={dimensions:["type",...e],source:o},n={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:"0%",right:"0%",bottom:"0px",top:"50px",containLabel:!0,z:22},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:w}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:L},alignWithLabel:!0},axisLabel:{textStyle:{color:k},fontSize:14,margin:10}},yAxis:{name:"单位:元",nameTextStyle:{color:k},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}},series:[],dataset:i},a=e.map((e=>({name:e,type:"bar",xAxisIndex:0,yAxisIndex:0,showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],show:!0,color:"#e9ebf7"}})));return n.series=a,h.merge(n,t),n},getPieChartOption:function(e){const t={title:{text:"",left:"center",top:"53%",padding:[24,0]},series:{name:"",type:"pie",radius:["40%","60%"],hoverAnimation:!1,label:{formatter:(e,t,o)=>{const{percent:i}=e;return`{black|${e.name}} {yellow|${e.value}} {blue|${i}%}`},padding:[0,-60],height:50,rich:{black:{color:"#333",align:"right",fontSize:14,padding:[4,0],borderColor:"red",marginBottom:"-10px"},yellow:{color:"#ffc72b",fontSize:16,padding:[5,4],align:"center"},blue:{color:"#28c9db",fontSize:14,align:"center",marginRight:"-100px"}}},labelLine:{showAbove:!0,length:60,length2:60,maxSurfaceAngle:0,lineStyle:{color:"#0b5263"}}}};return h.merge(t,e),t.series.data||(t.series.data=[{value:260,name:"测试1"},{value:103,name:"测试2"}]),t},getScatterChartOption:function(e=["预测误差","预测波动"],t={}){const o=["#ffba00","#2759a4","#ff7e00","#6fbd6b","#50abdf","#7181d0","#ac77ce"],i={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}},alwaysShowContent:!0,formatter:t=>{const[{data:o={},dimensionNames:i=[]}]=t;return`${o.name}<br /><span>${e[0]}:${o[i[0]]}<br />${e[1]}:${o[i[1]]}`}},legend:{show:!1},grid:{left:50,right:80,bottom:30,top:30,containLabel:!0},xAxis:{name:e[0],splitLine:{show:!1},axisLine:{lineStyle:{color:w},symbol:["none","arrow"]},axisTick:{show:!1},axisLabel:{show:!1}},yAxis:{name:e[1],nameTextStyle:{color:k},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:S},symbol:["none","arrow"]},axisTick:{show:!1},axisLabel:{show:!1}},series:{name:"",type:"scatter",symbol:"circle",symbolSize:20,label:{show:!0,position:"top"},itemStyle:{color(e){let t=e.dataIndex;return t>=6&&(t-=6),o[t]}}}};return h.merge(i,t),i.dataset||(i.dataset={dimensions:["均方误差","平均绝对误差"],source:[{name:"专家修正","平均绝对误差":2.349,"均方误差":2.333},{name:"智能AI算法","平均绝对误差":3.333,"均方误差":2.333},{name:"自回归移动平均模型","平均绝对误差":4.333,"均方误差":5.333}]}),i},getScatterPlotOption:function(e,t){const o={title:{text:""},grid:{left:"10px",right:"100px",bottom:0,top:"30px",containLabel:!0},tooltip:{trigger:"item",axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}},formatter(e){if("series"==e.componentType)return`<div style="border-bottom: 1px solid rgba(255,255,255,.3); font-size: 18px;padding-bottom: 7px;margin-bottom: 7px">${e.name}</div><span>预测误差</span> : ${e.data.value[0]}<br/><span>预测波动</span> : ${e.data.value[1]}`}},xAxis:{name:"预测误差",type:"value",scale:!0,splitLine:{show:!1},axisLine:{lineStyle:{color:w}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:L},alignWithLabel:!0},axisLabel:{textStyle:{color:k},fontSize:14,margin:10}},yAxis:{name:"预测波动",nameTextStyle:{color:f},type:"value",scale:!0,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}},series:[{type:"scatter",data:e||[{name:"智能AI算法",value:[1.45,1.96]},{name:"专家修正",value:[2.39,3.81]},{name:"XGBoost",value:[3.84,4.26]}],symbolSize:20,markLine:{label:{normal:{formatter:e=>e.name}},lineStyle:{normal:{color:"#626c91",type:"solid",width:1},emphasis:{color:"#d9def7"}},data:[{xAxis:function(){let t=0;return e.forEach((e=>{t+=e.value[0]})),(t/e.length).toFixed(2)}(),name:"预测误差平均水平",label:{color:"red"}},{yAxis:function(){let t=0;return e.forEach((e=>{t+=e.value[1]})),(t/e.length).toFixed(2)}(),name:"预测波动平均水平",label:{color:"red"}}]}}]};return h.merge(o,t),o}},Symbol.toStringTag,{value:"Module"})),ScreenChart:p}}}}));
1
+ System.register(["./vendor-legacy-55fa76eb.js","./base-legacy-2bc6e427.js","./echarts-vendor-legacy-50b58722.js","./ScreenChartOption-legacy-2e8fcfd8.js","./index-legacy-8a2cfb9d.js"],(function(e,t){"use strict";var o,i,n,a,l,r,s,c,d,h,x,m,p,y;return{setters:[e=>{o=e.r,i=e.n,n=e.j,a=e.T,l=e.a4,r=e.$,s=e.I,c=e.a5,d=e.l,h=e.a6},e=>{x=e.B},e=>{m=e.L},e=>{p=e.S},e=>{y=e.default}],execute:function(){var t=document.createElement("style");t.textContent="._editrow_1936a_10{cursor:pointer;width:100%;min-height:20px;display:inline-block;border-radius:2px}._editrow_1936a_10:hover{border:1px solid #d9d9d9}\n",document.head.appendChild(t),e("default",(function(e){const{element:t}=function(e){const{columns:t,dataSource:l,loadData:r,lazyLoadData:s=!1,currentTime:c,mock:h,editable:x,editFormProps:m}=e,[p,y]=o.useState({list:l,total:l?.length}),[u,S]=o.useState(!1),b=o.useRef({current:1,pageSize:10}),[f]=i.useForm(),[w,L]=o.useState(),k=e=>e===w,z=(e=50)=>{const o=[],i=(e=[])=>{const t=[];return e.forEach((e=>{if(e.children){const o=i(e.children);t.push(...o)}else t.push(e.dataIndex)})),t},n=i(t);for(let t=0;t<e;t++){const e={};n.forEach((t=>{if("string"==typeof t)e[t]=(100*Math.random()).toFixed(2);else if(Array.isArray(t)){const o=(e=[],i=0,n={})=>{if(i===t.length-1)n[e[i]]=(100*Math.random()).toFixed(2);else{const t=n[e[i]]||{};n[e[i]]=t,o(e,i+1,t)}};o(t,0,e)}})),e.time=c||d().subtract(t,"d").format("YYYY-MM-DD"),e.timeMonth=c||d().subtract(t,"d").format("YYYY-MM"),o.push(e)}return o},v=(e=!1)=>{r?(S(!0),e&&(b.current.current=1),r(b.current.current,b.current.pageSize).then((e=>{S(!1),y({list:e.data,total:e.total})})).catch((()=>{S(!1)}))):h&&(S(!0),setTimeout((()=>{S(!1);const e=z(b.current.pageSize);y({list:e,total:e.length})}),500))};if(o.useEffect((()=>{(r&&!s||h)&&v()}),[c]),delete e.dataSource,delete e.loadData,x){const o=e=>{f.setFieldsValue({...e}),L(e)},r=()=>{L(null)},s=()=>{f.resetFields()},c=()=>f.getFieldsValue(),d=t.map((e=>e.editable?{...e,onCell:(t,o)=>({...e.onCell?.(t,o),record:t,dataIndex:e.dataIndex,index:o,editable:"function"==typeof e.editable?e.editable(t,o):e.editable,isEditing:void 0!==e.isEditing?e.isEditing:k(t),editType:e.editType||"text",editFormItemProps:e.editFormItemProps,editRender:e.editRender,editDatePickerProps:e.editDatePickerProps,editSelectProps:e.editSelectProps,editInputNumberProps:e.editInputNumberProps,editInputProps:e.editInputProps})}:e));return delete e.columns,{element:n.jsx(i,{form:f,component:!1,...m,children:n.jsx(a,{components:{body:{cell:g}},bordered:!0,dataSource:l||p?.list,columns:d,scroll:{x:"max-content"},pagination:{showTotal:e=>`共${e}条`,showSizeChanger:!0,current:b.current.current,pageSize:b.current.pageSize,onShowSizeChange:(e,t)=>{b.current={current:e,pageSize:t},v()},onChange:r},...e})}),reload:v,startEdit:o,endEdit:r,submitEdit:c,resetEdit:s}}const A=n.jsx(a,{dataSource:l||p?.list,scroll:{x:"max-content"},bordered:!0,loading:u,pagination:{showTotal:e=>`共${e}条`,total:p?.total,showSizeChanger:!0,defaultCurrent:b.current.current,defaultPageSize:b.current.pageSize,onChange:(e,t)=>{b.current={current:e,pageSize:t},v()}},...e});return{element:A,reload:v}}({columns:[{title:"时间",dataIndex:"time"},{title:"数据1",dataIndex:"value1"},{title:"数据2",dataIndex:"value2"},{title:"数据3",dataIndex:"value3"},{title:"数据4",dataIndex:"value4"}],mock:!0});return n.jsxs("div",{children:[n.jsx(y,{}),n.jsx("h3",{children:"折线图配置"}),n.jsx(x,{style:{height:200},chartOption:z.BackgroundChart.getLineChartOption(["农业","工业","商业","渔业"])}),n.jsx("h3",{children:"表格示例"}),t]})}));const u={editrow:"_editrow_1936a_10"};function g(e){const{dataIndex:t,style:a,record:d,index:h,className:x,colSpan:m,rowSpan:p,children:y,editable:g,isEditing:S,editType:b="text",editRender:f,editSelectProps:w,editInputNumberProps:L,editInputProps:k,editDatePickerProps:z,editFormItemProps:v={}}=e,[A,T]=o.useState(S),I=i.useFormInstance(),P=Array.isArray(t)?t.concat(h).join("."):`${t}.${h}`,E=()=>{T(!1)};let M=null;switch(b){case"number":M=n.jsx(c,{...L});break;case"text":M=n.jsx(s,{autoFocus:!0,...k,onBlur:()=>{S||E()},onPressEnter:()=>{S||E()}});break;case"select":M=n.jsx(r,{...w});break;case"datepicker":M=n.jsx(l,{...z});break;case"custom":M=f?.(d[t],d)}return o.useEffect((()=>{T(S)}),[S]),n.jsxs("td",{className:x,colSpan:m,rowSpan:p,style:a,children:[A&&n.jsx(i.Item,{name:P,style:{margin:0},...v,children:M}),!A&&g&&n.jsx("div",{className:u.editrow,onClick:()=>{T(!0),void 0===I.getFieldValue(P)&&I.setFieldValue(`${t}.${h}`,d[t])},children:void 0!==I.getFieldValue(P)?I.getFieldValue(P):y}),!A&&!g&&y]})}const S="#999999",b="#194a87",f="#404040",w="#999999",L="#194a87",k="#404040",z={BackgroundChart:Object.freeze(Object.defineProperty({__proto__:null,getBarAndLineOption:function(e=["容量","同期","上一周期"],t=["同比","环比","占总比重"],o={}){const i={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:w}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:L},alignWithLabel:!0},axisLabel:{color:k,fontSize:14,margin:10}},yAxis:[{name:"单位:万户",nameTextStyle:{color:k},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{color:f,fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:k},min:-10,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{color:f,fontSize:14,margin:10}}],animation:!0,series:[]},n=[];if(e.forEach((e=>{n.push({name:e,type:"bar",yAxisIndex:0,showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],show:!0,color:"#e9ebf7"}})})),t.forEach((e=>{n.push({name:e,yAxisIndex:1,type:"line",showAllSymbol:!1,symbol:"circle",symbolSize:10,label:{show:!1,position:"top",textStyle:{color:"#148c90"}}})})),i.series=n,h.merge(i,o),!i.dataset){const o=[];for(let i=0;i<10;i++){const n={time:d().subtract(i,"M").format("YYYY/MM")};e.forEach((e=>{n[e]=(500*Math.random()).toFixed(2)})),t.forEach((e=>{n[e]=(100*Math.random()).toFixed(2)})),o.push(n)}i.dataset={dimensions:["time",...e,...t],source:o}}return i},getBarStackAndLineOption:function(e=["10kV以下","10kV及以上"],t=["10kV及以上所占比重"],o){const i=[];for(let r=0;r<10;r++){const o={time:d().subtract(r,"M").format("YYYY/MM")};e.forEach((e=>{o[e]=(500*Math.random()).toFixed(2)})),t.forEach((e=>{o[e]=(100*Math.random()).toFixed(2)})),i.push(o)}const n={dimensions:["time",...e,...t],source:i},a={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{show:!0},grid:{left:10,right:0,bottom:0,top:50,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:w}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:L},alignWithLabel:!0},axisLabel:{textStyle:{color:k},fontSize:14,margin:10}},yAxis:[{name:"单位:万户",nameTextStyle:{color:f},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}},{name:"单位:%",nameTextStyle:{color:f},min:-10,max:100,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}}],animation:!0,series:[],dataset:n},l=[];return e.forEach((e=>{l.push({name:e,type:"bar",barWidth:"30%",yAxisIndex:0,stack:!0})})),t.forEach((e=>{l.push({name:e,yAxisIndex:1,type:"line",showAllSymbol:!0,symbol:"circle",symbolSize:10,label:{show:!1,position:"top",textStyle:{color:"#148c90"}}})})),a.series=l,h.merge(a,o),a},getBaseBarChartOption:function(e){const t=[];for(let n=0;n<12;n++)t.push({type:`${n+1}月`,value:200*Math.random()});const o={dimensions:["type","value"],source:t},i={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:"0%",right:"0%",bottom:"0px",top:"50px",containLabel:!0,z:22},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:w}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:L},alignWithLabel:!0},axisLabel:{color:k,fontSize:14,margin:10}},yAxis:{name:"单位:%",nameTextStyle:{color:k},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}},series:{name:"数值",type:"bar",barWidth:"30%",xAxisIndex:0,yAxisIndex:0,itemStyle:{normal:{barBorderRadius:[20,20,0,0],color:new m(0,1,0,0,[{offset:0,color:"#67c8ff"},{offset:1,color:"#1158b9"}])}},showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],show:!0,color:"#e9ebf7"}},dataset:o};return h.merge(i,e),i},getBaseBarRollbackChartOption:function(e){const t={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:40,right:20,bottom:"0px",top:0,containLabel:!0,z:22},xAxis:{name:"单位:%",nameTextStyle:{color:k},splitLine:{show:!0},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{color:f,fontSize:14,margin:10}},yAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:w}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:L},alignWithLabel:!0},axisLabel:{color:k,fontSize:14,margin:10}},series:{name:"",type:"bar",barWidth:"30%",xAxisIndex:0,yAxisIndex:0,itemStyle:{borderRadius:[0,20,20,0],color:new m(0,0,1,0,[{offset:0,color:"#67c8ff"},{offset:1,color:"#1158b9"}])},showBackground:!0,backgroundStyle:{borderRadius:[0,20,20,0],color:"#e9ebf7"}}};if(h.merge(t,e),!t.dataset){let e=[];const o=["a","b","c","d","e"];o?.forEach((t=>{e.push({type:t,value:(100*Math.random()).toFixed(2)})})),0===e.length&&(e=[{type:"克州",value:20},{type:"乌鲁木齐",value:30},{type:"超高压",value:80},{type:"昌吉",value:22},{type:"吐鲁番",value:20},{type:"奎屯",value:30},{type:"博尔塔拉",value:26},{type:"哈密",value:28}]),t.dataset={dimensions:["type","value"],source:e}}return t},getLineChartOption:(e,t)=>{const o={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!0},grid:{left:10,right:0,bottom:0,top:30,containLabel:!0},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:w}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:L},alignWithLabel:!0},axisLabel:{color:k,fontSize:14,margin:10}},yAxis:{name:"单位:元",nameTextStyle:{color:k},splitLine:{show:!0},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{color:f,fontSize:14,margin:10}},series:[],animation:!0},i=[];if(e.forEach((e=>{i.push({name:e,type:"line",showAllSymbol:!0,symbol:"circle",symbolSize:10,label:{show:!1,position:"top",textStyle:{color:"#148c90"}}})})),o.series=i,h.merge(o,t),!o.dataset){const t=[];for(let o=0;o<10;o++){const i={time:d().subtract(o,"d").format("YYYY-MM-DD")};e.forEach((e=>{i[e]=100*Math.random()})),t.push(i)}o.dataset={dimensions:["time",...e],source:t}}return o},getMultiBarChartOption:function(e=["demo"],t){const o=[];for(let l=0;l<12;l++)o.push({type:`${l+1}月`,...e.reduce(((e,t,o)=>(e[t]=(200*Math.random()*(o%2==1?1:-1)).toFixed(2),e)),{})});const i={dimensions:["type",...e],source:o},n={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}}},legend:{show:!1},grid:{left:"0%",right:"0%",bottom:"0px",top:"50px",containLabel:!0,z:22},xAxis:{splitLine:{show:!1},type:"category",axisLine:{lineStyle:{color:w}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:L},alignWithLabel:!0},axisLabel:{textStyle:{color:k},fontSize:14,margin:10}},yAxis:{name:"单位:元",nameTextStyle:{color:k},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}},series:[],dataset:i},a=e.map((e=>({name:e,type:"bar",xAxisIndex:0,yAxisIndex:0,showBackground:!0,backgroundStyle:{borderRadius:[20,20,0,0],show:!0,color:"#e9ebf7"}})));return n.series=a,h.merge(n,t),n},getPieChartOption:function(e){const t={title:{text:"",left:"center",top:"53%",padding:[24,0]},series:{name:"",type:"pie",radius:["40%","60%"],hoverAnimation:!1,label:{formatter:(e,t,o)=>{const{percent:i}=e;return`{black|${e.name}} {yellow|${e.value}} {blue|${i}%}`},padding:[0,-60],height:50,rich:{black:{color:"#333",align:"right",fontSize:14,padding:[4,0],borderColor:"red",marginBottom:"-10px"},yellow:{color:"#ffc72b",fontSize:16,padding:[5,4],align:"center"},blue:{color:"#28c9db",fontSize:14,align:"center",marginRight:"-100px"}}},labelLine:{showAbove:!0,length:60,length2:60,maxSurfaceAngle:0,lineStyle:{color:"#0b5263"}}}};return h.merge(t,e),t.series.data||(t.series.data=[{value:260,name:"测试1"},{value:103,name:"测试2"}]),t},getScatterChartOption:function(e=["预测误差","预测波动"],t={}){const o=["#ffba00","#2759a4","#ff7e00","#6fbd6b","#50abdf","#7181d0","#ac77ce"],i={title:{text:"",textStyle:{fontSize:14}},tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{opacity:0}},alwaysShowContent:!0,formatter:t=>{const[{data:o={},dimensionNames:i=[]}]=t;return`${o.name}<br /><span>${e[0]}:${o[i[0]]}<br />${e[1]}:${o[i[1]]}`}},legend:{show:!1},grid:{left:50,right:80,bottom:30,top:30,containLabel:!0},xAxis:{name:e[0],splitLine:{show:!1},axisLine:{lineStyle:{color:w},symbol:["none","arrow"]},axisTick:{show:!1},axisLabel:{show:!1}},yAxis:{name:e[1],nameTextStyle:{color:k},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:S},symbol:["none","arrow"]},axisTick:{show:!1},axisLabel:{show:!1}},series:{name:"",type:"scatter",symbol:"circle",symbolSize:20,label:{show:!0,position:"top"},itemStyle:{color(e){let t=e.dataIndex;return t>=6&&(t-=6),o[t]}}}};return h.merge(i,t),i.dataset||(i.dataset={dimensions:["均方误差","平均绝对误差"],source:[{name:"专家修正","平均绝对误差":2.349,"均方误差":2.333},{name:"智能AI算法","平均绝对误差":3.333,"均方误差":2.333},{name:"自回归移动平均模型","平均绝对误差":4.333,"均方误差":5.333}]}),i},getScatterPlotOption:function(e,t){const o={title:{text:""},grid:{left:"10px",right:"100px",bottom:0,top:"30px",containLabel:!0},tooltip:{trigger:"item",axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}},formatter(e){if("series"==e.componentType)return`<div style="border-bottom: 1px solid rgba(255,255,255,.3); font-size: 18px;padding-bottom: 7px;margin-bottom: 7px">${e.name}</div><span>预测误差</span> : ${e.data.value[0]}<br/><span>预测波动</span> : ${e.data.value[1]}`}},xAxis:{name:"预测误差",type:"value",scale:!0,splitLine:{show:!1},axisLine:{lineStyle:{color:w}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:L},alignWithLabel:!0},axisLabel:{textStyle:{color:k},fontSize:14,margin:10}},yAxis:{name:"预测波动",nameTextStyle:{color:f},type:"value",scale:!0,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:S}},axisTick:{show:!0,length:4,lineStyle:{width:4,color:b}},axisLabel:{textStyle:{color:f},fontSize:14,margin:10}},series:[{type:"scatter",data:e||[{name:"智能AI算法",value:[1.45,1.96]},{name:"专家修正",value:[2.39,3.81]},{name:"XGBoost",value:[3.84,4.26]}],symbolSize:20,markLine:{label:{normal:{formatter:e=>e.name}},lineStyle:{normal:{color:"#626c91",type:"solid",width:1},emphasis:{color:"#d9def7"}},data:[{xAxis:function(){let t=0;return e.forEach((e=>{t+=e.value[0]})),(t/e.length).toFixed(2)}(),name:"预测误差平均水平",label:{color:"red"}},{yAxis:function(){let t=0;return e.forEach((e=>{t+=e.value[1]})),(t/e.length).toFixed(2)}(),name:"预测波动平均水平",label:{color:"red"}}]}}]};return h.merge(o,t),o}},Symbol.toStringTag,{value:"Module"})),ScreenChart:p}}}}));