create-ssnode-cli 0.1.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 (107) hide show
  1. package/README.md +1 -2
  2. package/index.js +10 -4
  3. package/package.json +2 -2
  4. package/secrets.js +10 -7
  5. package/templates/backend/Dockerfile +4 -0
  6. package/templates/backend/config/config.develop.yaml +10 -0
  7. package/templates/backend/config/config.prod.yaml +10 -0
  8. package/templates/backend/dist/config/configuration.js +1 -1
  9. package/templates/backend/dist/config/configuration.js.map +1 -1
  10. package/templates/backend/dist/modules/auth/auth.service.js +1 -1
  11. package/templates/backend/dist/modules/auth/auth.service.js.map +1 -1
  12. package/templates/backend/dist/modules/page-data/page-data.controller.js +1 -1
  13. package/templates/backend/dist/modules/page-data/page-data.controller.js.map +1 -1
  14. package/templates/backend/dist/modules/screen-config/screen-config.controller.js +1 -1
  15. package/templates/backend/dist/modules/screen-config/screen-config.controller.js.map +1 -1
  16. package/templates/backend/dist/tsconfig.build.tsbuildinfo +1 -1
  17. package/templates/backend/node_modules/.bin/js-yaml +2 -2
  18. package/templates/backend/node_modules/.bin/typeorm +2 -2
  19. package/templates/backend/node_modules/.bin/typeorm-ts-node-commonjs +2 -2
  20. package/templates/backend/node_modules/.bin/typeorm-ts-node-esm +2 -2
  21. package/templates/backend/ops/docker/.env.example +4 -0
  22. package/templates/backend/ops/docker/config.sh +2 -0
  23. package/templates/backend/ops/docker/install.sh +35 -0
  24. package/templates/backend/ops/install.sh +17 -3
  25. package/templates/backend/ops/pm2/config.sh +2 -0
  26. package/templates/backend/ops/systemd/config.sh +2 -0
  27. package/templates/backend/package.json +13 -6
  28. package/templates/backend/scripts/build.cjs +67 -1
  29. package/templates/backend/src/config/config.interface.ts +9 -0
  30. package/templates/backend/src/config/configuration.ts +11 -0
  31. package/templates/backend/src/modules/auth/auth.service.ts +57 -12
  32. package/templates/backend/src/modules/page-data/page-data.controller.ts +33 -10
  33. package/templates/backend/src/modules/screen-config/screen-config.controller.ts +33 -5
  34. package/templates/root/AGENTS.md +1 -1
  35. package/templates/root/README.md +9 -6
  36. package/templates/root/package.json +9 -1
  37. package/templates/web/dist/assets/{404-f80ef771.js → 404-e6edada0.js} +1 -1
  38. package/templates/web/dist/assets/{404-legacy-3002ee98.js → 404-legacy-f6ca5b91.js} +1 -1
  39. package/templates/web/dist/assets/AuthLayout-bcf98efb.js +1 -0
  40. package/templates/web/dist/assets/AuthLayout-legacy-6e7a8ae1.js +1 -0
  41. package/templates/web/dist/assets/Background-90a49ee7.css +1 -0
  42. package/templates/web/dist/assets/Background-eb77ef54.js +1 -0
  43. package/templates/web/dist/assets/Background-legacy-50457007.js +1 -0
  44. package/templates/web/dist/assets/{Screen-2126fd8d.js → Screen-318c3fc2.js} +1 -1
  45. package/templates/web/dist/assets/{Screen-legacy-e1974f1b.js → Screen-legacy-af123b0f.js} +1 -1
  46. package/templates/web/dist/assets/{ScreenChartOption-cc9d0192.js → ScreenChartOption-953b9157.js} +1 -1
  47. package/templates/web/dist/assets/{ScreenChartOption-legacy-b1b2d49d.js → ScreenChartOption-legacy-2e8fcfd8.js} +1 -1
  48. package/templates/web/dist/assets/api-beff4a3e.js +1 -0
  49. package/templates/web/dist/assets/api-legacy-9fe41d4b.js +1 -0
  50. package/templates/web/dist/assets/{base-8cbac341.js → base-a14309c8.js} +1 -1
  51. package/templates/web/dist/assets/{base-legacy-ee9fb316.js → base-legacy-2bc6e427.js} +1 -1
  52. package/templates/web/dist/assets/{child-10cea360.js → child-2a48ca65.js} +1 -1
  53. package/templates/web/dist/assets/{child-legacy-5af47aba.js → child-legacy-7665b5f8.js} +1 -1
  54. package/templates/web/dist/assets/{component-ae0df581.js → component-89b5253e.js} +1 -1
  55. package/templates/web/dist/assets/{component-legacy-7824b5dc.js → component-legacy-8c5a28ef.js} +1 -1
  56. package/templates/web/dist/assets/{demo-1b5e36be.js → demo-d7272cf4.js} +1 -1
  57. package/templates/web/dist/assets/{demo-legacy-e12d2ac9.js → demo-legacy-f7bbfe55.js} +1 -1
  58. package/templates/web/dist/assets/echarts-vendor-50090982.js +9 -0
  59. package/templates/web/dist/assets/echarts-vendor-legacy-50b58722.js +10 -0
  60. package/templates/web/dist/assets/{grandson-d5883b90.js → grandson-05f8bb58.js} +1 -1
  61. package/templates/web/dist/assets/{grandson-legacy-10cd2476.js → grandson-legacy-3e10990b.js} +1 -1
  62. package/templates/web/dist/assets/{index-9fbd51da.js → index-466a1ec1.js} +1 -1
  63. package/templates/web/dist/assets/{index-5dbae75a.js → index-5b5a8146.js} +1 -1
  64. package/templates/web/dist/assets/{index-6faaa6d8.js → index-7277cbfb.js} +1 -1
  65. package/templates/web/dist/assets/{index-8f6fba9f.js → index-777ef781.js} +1 -1
  66. package/templates/web/dist/assets/{index-2e42b180.js → index-86214b19.js} +1 -1
  67. package/templates/web/dist/assets/{index-463d9205.js → index-9cd5622a.js} +1 -1
  68. package/templates/web/dist/assets/{index-16f6b85c.js → index-a79e448b.js} +1 -1
  69. package/templates/web/dist/assets/{index-3a9a0a97.js → index-b60badf7.js} +1 -1
  70. package/templates/web/dist/assets/{index-fbf4ee3f.js → index-bd4ed808.js} +1 -1
  71. package/templates/web/dist/assets/{index-687d6cfe.js → index-cba19800.js} +1 -1
  72. package/templates/web/dist/assets/{index-5dbcad00.js → index-d70eb540.js} +1 -1
  73. package/templates/web/dist/assets/{index-25ea283a.js → index-e6071630.js} +1 -1
  74. package/templates/web/dist/assets/{index-legacy-ced5a7f1.js → index-legacy-028ed5d5.js} +1 -1
  75. package/templates/web/dist/assets/{index-legacy-8c7d1ee7.js → index-legacy-06483318.js} +1 -1
  76. package/templates/web/dist/assets/{index-legacy-ba034322.js → index-legacy-0da8de82.js} +1 -1
  77. package/templates/web/dist/assets/{index-legacy-3d221bb6.js → index-legacy-3965dcaf.js} +1 -1
  78. package/templates/web/dist/assets/{index-legacy-f3e49a4e.js → index-legacy-4a13dddc.js} +1 -1
  79. package/templates/web/dist/assets/{index-legacy-e9af81d8.js → index-legacy-783129a7.js} +1 -1
  80. package/templates/web/dist/assets/{index-legacy-07d00151.js → index-legacy-8a2cfb9d.js} +1 -1
  81. package/templates/web/dist/assets/{index-legacy-dd62c9e7.js → index-legacy-993ef005.js} +1 -1
  82. package/templates/web/dist/assets/{index-legacy-38c170dc.js → index-legacy-b075295d.js} +1 -1
  83. package/templates/web/dist/assets/{index-legacy-95da3338.js → index-legacy-b3bd40c1.js} +1 -1
  84. package/templates/web/dist/assets/{index-legacy-9be704da.js → index-legacy-d510e318.js} +1 -1
  85. package/templates/web/dist/assets/{index-legacy-0f01787c.js → index-legacy-feb54578.js} +1 -1
  86. package/templates/web/dist/assets/{parent-e7114c1b.js → parent-bba709aa.js} +1 -1
  87. package/templates/web/dist/assets/{parent-legacy-9e493d04.js → parent-legacy-48111978.js} +1 -1
  88. package/templates/web/dist/assets/vendor-affac96c.js +124 -0
  89. package/templates/web/dist/assets/vendor-legacy-55fa76eb.js +122 -0
  90. package/templates/web/dist/index.html +3 -3
  91. package/templates/web/package.json +7 -7
  92. package/templates/web/src/js/xlsl.ts +110 -59
  93. package/templates/web/src/layouts/AuthLayout.tsx +16 -11
  94. package/templates/web/src/layouts/Background.module.less +5 -3
  95. package/templates/web/src/services/api/admin/user.ts +9 -2
  96. package/templates/web/dist/assets/AuthLayout-f07f2dff.js +0 -1
  97. package/templates/web/dist/assets/AuthLayout-legacy-635887dd.js +0 -1
  98. package/templates/web/dist/assets/Background-63ce83a2.js +0 -1
  99. package/templates/web/dist/assets/Background-b264d337.css +0 -1
  100. package/templates/web/dist/assets/Background-legacy-a34b521f.js +0 -1
  101. package/templates/web/dist/assets/api-21ca288f.js +0 -1
  102. package/templates/web/dist/assets/api-legacy-b464070b.js +0 -1
  103. package/templates/web/dist/assets/echarts-vendor-fdb2c14f.js +0 -9
  104. package/templates/web/dist/assets/echarts-vendor-legacy-e99e5121.js +0 -10
  105. package/templates/web/dist/assets/vendor-e7ea3a11.js +0 -96
  106. package/templates/web/dist/assets/vendor-legacy-a62a28c9.js +0 -87
  107. package/templates/web/node_modules/.bin/xlsx +0 -17
@@ -1 +1 @@
1
- System.register(["./vendor-legacy-a62a28c9.js","./base-legacy-ee9fb316.js","./echarts-vendor-legacy-e99e5121.js","./ScreenChartOption-legacy-b1b2d49d.js","./index-legacy-07d00151.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}}}}));