feat: normalize F04 woodland database-backed screen

M先生 3 months ago
parent b16d41b8bf
commit d97e9846df
  1. 0
      docs/assets/AlibabaPuHuiTi-14435b65-balabala-1786541781548.woff2
  2. 0
      docs/assets/AlimamaShuHeiTi-Bold-6401fd0d-balabala-1786541781548.ttf
  3. 0
      docs/assets/AlimamaShuHeiTi-Bold-a95023f2-balabala-1786541781548.woff
  4. 0
      docs/assets/AlimamaShuHeiTi-Bold-fa4a258d-balabala-1786541781548.woff2
  5. 3
      docs/assets/FeatureInfoPanel-86a0dbfb-1786527543390.js
  6. 3
      docs/assets/FeatureInfoPanel-d72afc33-1786541781548.js
  7. 0
      docs/assets/FeatureInfoPanel-f349a457-balabala-1786541781548.css
  8. 2
      docs/assets/LayerPanel-3f19d00c-1786541781548.js
  9. 0
      docs/assets/LayerPanel-60397a69-balabala-1786541781548.css
  10. 2
      docs/assets/SmartChartRenderer-5a87bf85-1786541781548.js
  11. 0
      docs/assets/SmartChartRenderer-7a3a96b9-balabala-1786541781548.css
  12. 0
      docs/assets/TopicSwitcher-b6474311-balabala-1786541781548.css
  13. 4
      docs/assets/TopicSwitcher-dccf4985-1786541781548.js
  14. 0
      docs/assets/area-b57940eb-balabala-1786541781548.png
  15. 2
      docs/assets/assets-4ee2b5a6-1786541781548.js
  16. 2
      docs/assets/balanceApi-7cfaf8b2-1786541781548.js
  17. 0
      docs/assets/bg-3acb94e3-balabala-1786541781548.png
  18. 0
      docs/assets/bottom-menu-arrow-big-180b7071-balabala-1786541781548.svg
  19. 0
      docs/assets/bottom-menu-arrow-small-19304179-balabala-1786541781548.svg
  20. 0
      docs/assets/bottom-menu-bg-b465793d-balabala-1786541781548.png
  21. 0
      docs/assets/bottom-menu-btn-ee5c8064-balabala-1786541781548.png
  22. 0
      docs/assets/bottom-menu-btn-hover-df33e514-balabala-1786541781548.png
  23. 2
      docs/assets/chartTheme-5bd00e2e-1786541781548.js
  24. 0
      docs/assets/chinaBlurLine-1a2cbc0f-balabala-1786541781548.png
  25. 0
      docs/assets/content-bottom-left-arrow-3a8a61f3-balabala-1786541781548.svg
  26. 0
      docs/assets/content-bottom-right-arrow-a3c5270d-balabala-1786541781548.svg
  27. 0
      docs/assets/content-middle-line-162bc0d5-balabala-1786541781548.svg
  28. 2
      docs/assets/data-9dd0a7bb-1786541781548.js
  29. 0
      docs/assets/data-efe99d44-1786541781548.js
  30. 0
      docs/assets/featurePanelLayout-3e9b38ef-1786541781548.js
  31. 0
      docs/assets/flyline6-525edf67-balabala-1786541781548.png
  32. 0
      docs/assets/focus_bg-b6803e2d-balabala-1786541781548.png
  33. 0
      docs/assets/focus_move_bg-cf41417a-balabala-1786541781548.png
  34. 2
      docs/assets/geoserver-a49d147b-1786541781548.js
  35. 0
      docs/assets/header-bg-65b38012-balabala-1786541781548.png
  36. 2
      docs/assets/homeApi-5936c8b9-1786541781548.js
  37. 0
      docs/assets/huiguang-3c5dfda5-balabala-1786541781548.png
  38. 0
      docs/assets/icon1-6f7c222f-balabala-1786541781548.png
  39. 0
      docs/assets/icon2-4f77ccec-balabala-1786541781548.png
  40. 0
      docs/assets/index-0a7426a0-balabala-1786541781548.css
  41. 115
      docs/assets/index-0b61e595-1786527543390.js
  42. 2
      docs/assets/index-13bcce07-1786541781548.js
  43. 0
      docs/assets/index-148a2898-balabala-1786541781548.css
  44. 0
      docs/assets/index-1683923b-balabala-1786541781548.css
  45. 2
      docs/assets/index-1786541781548.js
  46. 0
      docs/assets/index-1ceb00fe-balabala-1786541781548.css
  47. 0
      docs/assets/index-23566d2f-balabala-1786541781548.css
  48. 4
      docs/assets/index-25a05535-1786541781548.js
  49. 2
      docs/assets/index-36e2c8dd-balabala-1786541781548.css
  50. 0
      docs/assets/index-4d7195ab-balabala-1786541781548.css
  51. 115
      docs/assets/index-4ef8d3f3-1786541781548.js
  52. 115
      docs/assets/index-6df75be9-1786541781548.js
  53. 2
      docs/assets/index-6fc47545-1786541781548.js
  54. 0
      docs/assets/index-8b25ae06-balabala-1786541781548.css
  55. 0
      docs/assets/index-8d752fbe-balabala-1786541781548.css
  56. 2
      docs/assets/index-a0584ff4-balabala-1786541781548.css
  57. 4
      docs/assets/index-a71f239c-1786541781548.js
  58. 2
      docs/assets/index-af4e3bce-1786541781548.js
  59. 2
      docs/assets/index-b00256ba-1786541781548.js
  60. 2
      docs/assets/index-b46bbe67-1786541781548.js
  61. 2
      docs/assets/index-bdfe0d19-balabala-1786541781548.css
  62. 0
      docs/assets/index-c0dfce03-balabala-1786541781548.css
  63. 2
      docs/assets/index-c31e131e-balabala-1786541781548.css
  64. 1
      docs/assets/index-d092c3c6-1786527543390.js
  65. 2
      docs/assets/index-df95950c-1786541781548.js
  66. 2
      docs/assets/index-e1b26b9e-1786541781548.js
  67. 115
      docs/assets/index-e46b1a57-1786527543390.js
  68. 0
      docs/assets/index-e6c4062a-balabala-1786541781548.css
  69. 1
      docs/assets/index-e9ee50f7-1786541781548.js
  70. 0
      docs/assets/index-e9f36657-1786541781548.js
  71. 2
      docs/assets/index-eb40d6cd-1786541781548.js
  72. 2
      docs/assets/index.esm.min-8cdcc8d4-1786541781548.js
  73. 2
      docs/assets/industryApi-72726f7b-1786541781548.js
  74. 0
      docs/assets/layout-45a2db57-balabala-1786541781548.css
  75. 0
      docs/assets/leaf-7be9efef-balabala-1786541781548.png
  76. 0
      docs/assets/left-kuang-5d6bd1ae-balabala-1786541781548.svg
  77. 4
      docs/assets/live-scene-1-6228d1a0-1786541781548.js
  78. 0
      docs/assets/live-scene-1-786cdd0a-balabala-1786541781548.png
  79. 0
      docs/assets/menu-btn-91a961cf-balabala-1786541781548.png
  80. 0
      docs/assets/menu-btn-hover-62eba0bb-balabala-1786541781548.png
  81. 0
      docs/assets/ocean-bg-8c848b8f-balabala-1786541781548.png
  82. 1
      docs/assets/openApi-8e4483d4-1786527543390.js
  83. 1
      docs/assets/openApi-e3a5d37a-1786541781548.js
  84. 0
      docs/assets/park-ee0533e0-balabala-1786541781548.png
  85. 1
      docs/assets/pastureApi-7cfbb2a4-1786527543390.js
  86. 1
      docs/assets/pastureApi-d30fd847-1786541781548.js
  87. 0
      docs/assets/pathLine2-d4134d4b-balabala-1786541781548.png
  88. 0
      docs/assets/right-kuang-b1937caf-balabala-1786541781548.svg
  89. 0
      docs/assets/ring2-a1b91808-balabala-1786541781548.png
  90. 0
      docs/assets/ring3-fe0f60d7-balabala-1786541781548.png
  91. 0
      docs/assets/ring4-f2e324d6-balabala-1786541781548.png
  92. 0
      docs/assets/rotationBorder1-2ce8e0ef-balabala-1786541781548.png
  93. 0
      docs/assets/rotationBorder2-7496b968-balabala-1786541781548.png
  94. 0
      docs/assets/saoguang-ccf84a88-balabala-1786541781548.svg
  95. 14
      docs/assets/screen2Standard-54c0337d-1786541781548.js
  96. 0
      docs/assets/screen2Standard-cdb21878-balabala-1786541781548.css
  97. 0
      docs/assets/stack-7a426057-balabala-1786541781548.png
  98. 38
      docs/assets/three.interactive-b20ac8b1-1786541781548.js
  99. 0
      docs/assets/title-zs1-c15a5ee8-balabala-1786541781548.svg
  100. 0
      docs/assets/town-f8c0c9cc-balabala-1786541781548.png
  101. Some files were not shown because too many files have changed in this diff Show More

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +1 @@
import{g as o,o as s,C as z,x as I,a as i,n as g,c as r,F as k,y as m,f as L,t as b,K as w,j as h}from"./index-1786527543390.js";import{_ as R}from"./index-9a0e7d8f-1786527543390.js";import{b as j}from"./townshipBoundaries-0eac6df6-1786527543390.js";const D={key:0,class:"layer-panel-list"},E=["onClick"],$=["onClick"],G={key:0,class:"layer-panel-empty"},J={key:1,class:"layer-panel-legend"},Q=["disabled","title","onClick"],U={class:"legend-name"},W={key:0,class:"legend-check"},X={key:1,class:"layer-panel-empty is-legend"},le={__name:"LayerPanel",props:{topicKey:{type:String,required:!0},modelValue:{type:[String,Array],default:""},legends:{type:Array,default:()=>[]},selectedLegendKey:{type:String,default:""},height:{type:Number,default:0},width:{type:Number,default:248},layers:{type:Array,default:null},overlayLayers:{type:Array,default:()=>[]},overlayKeys:{type:Array,default:()=>[]},legendOnly:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},showLegend:{type:Boolean,default:!0}},emits:["update:modelValue","update:selectedLegendKey","update:overlayKeys"],setup(d,{emit:V}){const t=d,p=V,f=o(()=>Array.isArray(t.layers)?t.layers:j(t.topicKey)),v=o(()=>Array.isArray(t.overlayLayers)?t.overlayLayers:[]),c=o(()=>Array.isArray(t.legends)?t.legends:[]),C=o(()=>Array.isArray(t.modelValue)?t.modelValue.map(String).filter(Boolean):t.modelValue?[String(t.modelValue)]:[]),A=o(()=>Array.isArray(t.overlayKeys)?t.overlayKeys.map(String).filter(Boolean):[]),x=o(()=>c.value.filter(K).length>1),M=o(()=>c.value.length===1),O=o(()=>t.legendOnly?"图例":t.compact?"图层":"图层控制"),T=o(()=>{const l=t.legendOnly?0:f.value.length+v.value.length,e=t.showLegend?Math.ceil(c.value.length/2):0,a=l?l*34+Math.max(0,l-1)*5:30,u=t.showLegend?c.value.length?30+Math.max(28,e*28):28:0,q=t.showLegend?172:108;return Math.max(q,Math.min(430,72+a+u))}),N=o(()=>t.compact?t.height||T.value:t.height?t.height:430);function F(n,l){var e,a;if((a=(e=n.currentTarget)==null?void 0:e.blur)==null||a.call(e),t.multiple){const u=new Set(C.value);u.has(l)?u.delete(l):u.add(l),p("update:modelValue",Array.from(u));return}p("update:modelValue",t.modelValue===l?"":l)}function S(n){return C.value.includes(String(n))}function H(n,l){var a,u;(u=(a=n.currentTarget)==null?void 0:a.blur)==null||u.call(a);const e=new Set(A.value);e.has(l)?e.delete(l):e.add(l),p("update:overlayKeys",Array.from(e))}function _(n){return A.value.includes(String(n))}function B(n={}){const l=n.color||n.fillColor||n.strokeColor||"";return l?{"--layer-item-color":l}:null}function P(n,l){var e,a;(a=(e=n.currentTarget)==null?void 0:e.blur)==null||a.call(e),y(l)&&p("update:selectedLegendKey",t.selectedLegendKey===l.key?"":l.key)}function K(n){return(n==null?void 0:n.selectable)===!1?!1:!!(n!=null&&n.key&&(n.cqlFilter||n.rankingValueKey))}function y(n){return x.value&&K(n)}return(n,l)=>(s(),z(R,{title:O.value,width:d.width,height:N.value},{default:I(()=>[i("div",{class:g(["layer-panel",{"is-legend-only":d.legendOnly,"is-compact":d.compact,"is-without-legend":!d.showLegend}])},[d.legendOnly?h("",!0):(s(),r("div",D,[(s(!0),r(k,null,m(f.value,e=>(s(),r("button",{key:e.key,class:g(["layer-panel-item",{"is-active":S(e.key),"is-checked":S(e.key)}]),type:"button",onMousedown:l[0]||(l[0]=L(()=>{},["prevent"])),onClick:a=>F(a,e.key)},[i("span",null,b(e.name),1),i("i",{style:w(B(e))},null,4)],42,E))),128)),(s(!0),r(k,null,m(v.value,e=>(s(),r("button",{key:e.key,class:g(["layer-panel-item is-overlay",{"is-active":_(e.key),"is-checked":_(e.key)}]),type:"button",onMousedown:l[1]||(l[1]=L(()=>{},["prevent"])),onClick:a=>H(a,e.key)},[i("span",null,b(e.name),1),i("i",{style:w(B(e))},null,4)],42,$))),128)),!f.value.length&&!v.value.length?(s(),r("div",G,"暂无图层配置")):h("",!0)])),d.showLegend?(s(),r("div",J,[l[3]||(l[3]=i("div",{class:"layer-panel-section-title"},"图例",-1)),c.value.length?(s(),r("div",{key:0,class:g(["layer-panel-legend-grid",{"is-single":M.value}])},[(s(!0),r(k,null,m(c.value,e=>(s(),r("button",{key:e.key||e.name,class:g(["layer-panel-legend-row",{"is-selected":y(e)&&e.key===d.selectedLegendKey,"is-checkable":y(e),"is-disabled":!y(e)}]),type:"button",disabled:!y(e),title:e.name,onMousedown:l[2]||(l[2]=L(()=>{},["prevent"])),onClick:a=>P(a,e)},[i("span",{class:"legend-swatch",style:w({backgroundColor:e.fillColor,borderColor:e.strokeColor||e.fillColor})},null,4),i("span",U,b(e.name),1),y(e)?(s(),r("i",W)):h("",!0)],42,Q))),128))],2)):(s(),r("div",X,"暂无图例"))])):h("",!0)],2)]),_:1},8,["title","width","height"]))}};export{le as _}; import{g as o,o as s,C as z,x as I,a as i,n as g,c as r,F as k,y as m,f as L,t as b,K as w,j as h}from"./index-1786541781548.js";import{_ as R}from"./index-6fc47545-1786541781548.js";import{b as j}from"./townshipBoundaries-cb449981-1786541781548.js";const D={key:0,class:"layer-panel-list"},E=["onClick"],$=["onClick"],G={key:0,class:"layer-panel-empty"},J={key:1,class:"layer-panel-legend"},Q=["disabled","title","onClick"],U={class:"legend-name"},W={key:0,class:"legend-check"},X={key:1,class:"layer-panel-empty is-legend"},le={__name:"LayerPanel",props:{topicKey:{type:String,required:!0},modelValue:{type:[String,Array],default:""},legends:{type:Array,default:()=>[]},selectedLegendKey:{type:String,default:""},height:{type:Number,default:0},width:{type:Number,default:248},layers:{type:Array,default:null},overlayLayers:{type:Array,default:()=>[]},overlayKeys:{type:Array,default:()=>[]},legendOnly:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},showLegend:{type:Boolean,default:!0}},emits:["update:modelValue","update:selectedLegendKey","update:overlayKeys"],setup(d,{emit:V}){const t=d,p=V,f=o(()=>Array.isArray(t.layers)?t.layers:j(t.topicKey)),v=o(()=>Array.isArray(t.overlayLayers)?t.overlayLayers:[]),c=o(()=>Array.isArray(t.legends)?t.legends:[]),C=o(()=>Array.isArray(t.modelValue)?t.modelValue.map(String).filter(Boolean):t.modelValue?[String(t.modelValue)]:[]),A=o(()=>Array.isArray(t.overlayKeys)?t.overlayKeys.map(String).filter(Boolean):[]),x=o(()=>c.value.filter(K).length>1),M=o(()=>c.value.length===1),O=o(()=>t.legendOnly?"图例":t.compact?"图层":"图层控制"),T=o(()=>{const l=t.legendOnly?0:f.value.length+v.value.length,e=t.showLegend?Math.ceil(c.value.length/2):0,a=l?l*34+Math.max(0,l-1)*5:30,u=t.showLegend?c.value.length?30+Math.max(28,e*28):28:0,q=t.showLegend?172:108;return Math.max(q,Math.min(430,72+a+u))}),N=o(()=>t.compact?t.height||T.value:t.height?t.height:430);function F(n,l){var e,a;if((a=(e=n.currentTarget)==null?void 0:e.blur)==null||a.call(e),t.multiple){const u=new Set(C.value);u.has(l)?u.delete(l):u.add(l),p("update:modelValue",Array.from(u));return}p("update:modelValue",t.modelValue===l?"":l)}function S(n){return C.value.includes(String(n))}function H(n,l){var a,u;(u=(a=n.currentTarget)==null?void 0:a.blur)==null||u.call(a);const e=new Set(A.value);e.has(l)?e.delete(l):e.add(l),p("update:overlayKeys",Array.from(e))}function _(n){return A.value.includes(String(n))}function B(n={}){const l=n.color||n.fillColor||n.strokeColor||"";return l?{"--layer-item-color":l}:null}function P(n,l){var e,a;(a=(e=n.currentTarget)==null?void 0:e.blur)==null||a.call(e),y(l)&&p("update:selectedLegendKey",t.selectedLegendKey===l.key?"":l.key)}function K(n){return(n==null?void 0:n.selectable)===!1?!1:!!(n!=null&&n.key&&(n.cqlFilter||n.rankingValueKey))}function y(n){return x.value&&K(n)}return(n,l)=>(s(),z(R,{title:O.value,width:d.width,height:N.value},{default:I(()=>[i("div",{class:g(["layer-panel",{"is-legend-only":d.legendOnly,"is-compact":d.compact,"is-without-legend":!d.showLegend}])},[d.legendOnly?h("",!0):(s(),r("div",D,[(s(!0),r(k,null,m(f.value,e=>(s(),r("button",{key:e.key,class:g(["layer-panel-item",{"is-active":S(e.key),"is-checked":S(e.key)}]),type:"button",onMousedown:l[0]||(l[0]=L(()=>{},["prevent"])),onClick:a=>F(a,e.key)},[i("span",null,b(e.name),1),i("i",{style:w(B(e))},null,4)],42,E))),128)),(s(!0),r(k,null,m(v.value,e=>(s(),r("button",{key:e.key,class:g(["layer-panel-item is-overlay",{"is-active":_(e.key),"is-checked":_(e.key)}]),type:"button",onMousedown:l[1]||(l[1]=L(()=>{},["prevent"])),onClick:a=>H(a,e.key)},[i("span",null,b(e.name),1),i("i",{style:w(B(e))},null,4)],42,$))),128)),!f.value.length&&!v.value.length?(s(),r("div",G,"暂无图层配置")):h("",!0)])),d.showLegend?(s(),r("div",J,[l[3]||(l[3]=i("div",{class:"layer-panel-section-title"},"图例",-1)),c.value.length?(s(),r("div",{key:0,class:g(["layer-panel-legend-grid",{"is-single":M.value}])},[(s(!0),r(k,null,m(c.value,e=>(s(),r("button",{key:e.key||e.name,class:g(["layer-panel-legend-row",{"is-selected":y(e)&&e.key===d.selectedLegendKey,"is-checkable":y(e),"is-disabled":!y(e)}]),type:"button",disabled:!y(e),title:e.name,onMousedown:l[2]||(l[2]=L(()=>{},["prevent"])),onClick:a=>P(a,e)},[i("span",{class:"legend-swatch",style:w({backgroundColor:e.fillColor,borderColor:e.strokeColor||e.fillColor})},null,4),i("span",U,b(e.name),1),y(e)?(s(),r("i",W)):h("",!0)],42,Q))),128))],2)):(s(),r("div",X,"暂无图例"))])):h("",!0)],2)]),_:1},8,["title","width","height"]))}};export{le as _};

@ -1,2 +1,2 @@
var D=Object.defineProperty,R=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var L=(a,r,o)=>r in a?D(a,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[r]=o,m=(a,r)=>{for(var o in r||(r={}))H.call(r,o)&&L(a,o,r[o]);if(z)for(var o of z(r))P.call(r,o)&&L(a,o,r[o]);return a},d=(a,r)=>R(a,W(r));import{g as p,q as Z,A as F,M as b,o as g,c as h,a as y,t as x,j as _,b as V,u as q,n as E}from"./index-1786527543390.js";import{H as j}from"./index.esm.min-479246a7-1786527543390.js";const G={class:"smart-chart-header"},M={key:0},I={key:0},A="口径",Q={__name:"SmartChartRenderer",props:{chart:{type:Object,required:!0}},emits:["ready"],setup(a,{emit:r}){const o=r,i=a,l=["#30dcff","#27f0c0","#ffd76c","#7aa7ff","#ff8f6b","#a6f06d"],k=p(()=>{const t=(i.chart.rows||[]).filter(e=>Number.isFinite(Number(e.value)));return i.chart.type==="pie"?T(t):i.chart.type==="line"?$(t):C(t)}),w=p(()=>{const t=i.chart.rows||[];return i.chart.type==="bar"&&v(t)}),S=p(()=>B(i.chart.subtitle));Z(()=>{F(()=>{window.requestAnimationFrame(()=>o("ready"))})});function C(t){return v(t)?N(t):{animationDuration:700,grid:{left:52,right:26,top:28,bottom:54},tooltip:c(),xAxis:{type:"category",data:t.map(e=>e.name),axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(48, 220, 255, 0.28)"}},axisLabel:{color:"rgba(223, 250, 255, 0.76)",fontSize:11,interval:0,rotate:t.length>6?28:0}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(48, 220, 255, 0.1)",type:"dashed"}},axisLabel:{color:"rgba(223, 250, 255, 0.58)",fontSize:11}},series:[{name:i.chart.title,type:"bar",barWidth:t.length>7?16:22,data:t.map((e,n)=>({value:e.value,name:e.name,itemStyle:{borderRadius:[8,8,0,0],color:new b(0,0,0,1,[{offset:0,color:l[n%l.length]},{offset:1,color:"rgba(48, 220, 255, 0.08)"}])}})),label:{show:!0,position:"top",color:"#ffffff",fontSize:11,formatter:({value:e})=>u(e)}}]}}function N(t){return{animationDuration:700,grid:{left:78,right:72,top:22,bottom:20},tooltip:d(m({},c()),{trigger:"axis",axisPointer:{type:"shadow"}}),xAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(48, 220, 255, 0.1)",type:"dashed"}},axisLabel:{color:"rgba(223, 250, 255, 0.58)",fontSize:11}},yAxis:{type:"category",inverse:!0,data:t.map(e=>e.name),axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(48, 220, 255, 0.22)"}},axisLabel:{color:"rgba(223, 250, 255, 0.82)",fontSize:12}},series:[{name:i.chart.title,type:"bar",barWidth:13,data:t.map((e,n)=>({value:e.value,name:e.name,itemStyle:{borderRadius:[0,8,8,0],color:new b(0,0,1,0,[{offset:0,color:"rgba(48, 220, 255, 0.16)"},{offset:1,color:l[n%l.length]}])}})),label:{show:!0,position:"right",color:"#ffffff",fontSize:11,formatter:({value:e})=>u(e)}}]}}function T(t){return{animationDuration:700,tooltip:c(),legend:{orient:"vertical",right:10,top:"middle",itemWidth:10,itemHeight:10,textStyle:{color:"rgba(223, 250, 255, 0.78)",fontSize:11}},series:[{name:i.chart.title,type:"pie",radius:["48%","68%"],center:["35%","52%"],avoidLabelOverlap:!0,label:{color:"#fff",fontSize:11,formatter:`{b} var D=Object.defineProperty,R=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var L=(a,r,o)=>r in a?D(a,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[r]=o,m=(a,r)=>{for(var o in r||(r={}))H.call(r,o)&&L(a,o,r[o]);if(z)for(var o of z(r))P.call(r,o)&&L(a,o,r[o]);return a},d=(a,r)=>R(a,W(r));import{g as p,q as Z,A as F,M as b,o as g,c as h,a as y,t as x,j as _,b as V,u as q,n as E}from"./index-1786541781548.js";import{H as j}from"./index.esm.min-8cdcc8d4-1786541781548.js";const G={class:"smart-chart-header"},M={key:0},I={key:0},A="口径",Q={__name:"SmartChartRenderer",props:{chart:{type:Object,required:!0}},emits:["ready"],setup(a,{emit:r}){const o=r,i=a,l=["#30dcff","#27f0c0","#ffd76c","#7aa7ff","#ff8f6b","#a6f06d"],k=p(()=>{const t=(i.chart.rows||[]).filter(e=>Number.isFinite(Number(e.value)));return i.chart.type==="pie"?T(t):i.chart.type==="line"?$(t):C(t)}),w=p(()=>{const t=i.chart.rows||[];return i.chart.type==="bar"&&v(t)}),S=p(()=>B(i.chart.subtitle));Z(()=>{F(()=>{window.requestAnimationFrame(()=>o("ready"))})});function C(t){return v(t)?N(t):{animationDuration:700,grid:{left:52,right:26,top:28,bottom:54},tooltip:c(),xAxis:{type:"category",data:t.map(e=>e.name),axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(48, 220, 255, 0.28)"}},axisLabel:{color:"rgba(223, 250, 255, 0.76)",fontSize:11,interval:0,rotate:t.length>6?28:0}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(48, 220, 255, 0.1)",type:"dashed"}},axisLabel:{color:"rgba(223, 250, 255, 0.58)",fontSize:11}},series:[{name:i.chart.title,type:"bar",barWidth:t.length>7?16:22,data:t.map((e,n)=>({value:e.value,name:e.name,itemStyle:{borderRadius:[8,8,0,0],color:new b(0,0,0,1,[{offset:0,color:l[n%l.length]},{offset:1,color:"rgba(48, 220, 255, 0.08)"}])}})),label:{show:!0,position:"top",color:"#ffffff",fontSize:11,formatter:({value:e})=>u(e)}}]}}function N(t){return{animationDuration:700,grid:{left:78,right:72,top:22,bottom:20},tooltip:d(m({},c()),{trigger:"axis",axisPointer:{type:"shadow"}}),xAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(48, 220, 255, 0.1)",type:"dashed"}},axisLabel:{color:"rgba(223, 250, 255, 0.58)",fontSize:11}},yAxis:{type:"category",inverse:!0,data:t.map(e=>e.name),axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(48, 220, 255, 0.22)"}},axisLabel:{color:"rgba(223, 250, 255, 0.82)",fontSize:12}},series:[{name:i.chart.title,type:"bar",barWidth:13,data:t.map((e,n)=>({value:e.value,name:e.name,itemStyle:{borderRadius:[0,8,8,0],color:new b(0,0,1,0,[{offset:0,color:"rgba(48, 220, 255, 0.16)"},{offset:1,color:l[n%l.length]}])}})),label:{show:!0,position:"right",color:"#ffffff",fontSize:11,formatter:({value:e})=>u(e)}}]}}function T(t){return{animationDuration:700,tooltip:c(),legend:{orient:"vertical",right:10,top:"middle",itemWidth:10,itemHeight:10,textStyle:{color:"rgba(223, 250, 255, 0.78)",fontSize:11}},series:[{name:i.chart.title,type:"pie",radius:["48%","68%"],center:["35%","52%"],avoidLabelOverlap:!0,label:{color:"#fff",fontSize:11,formatter:`{b}
{d}%`},labelLine:{lineStyle:{color:"rgba(223, 250, 255, 0.42)"}},itemStyle:{borderColor:"rgba(3, 18, 31, 0.92)",borderWidth:3},data:t.map((e,n)=>({name:e.name,value:e.value,itemStyle:{color:l[n%l.length]}}))}]}}function $(t){return{animationDuration:760,grid:{left:52,right:28,top:30,bottom:48},tooltip:d(m({},c()),{trigger:"axis",axisPointer:{type:"line",lineStyle:{color:"rgba(255, 215, 108, 0.52)"}}}),xAxis:{type:"category",boundaryGap:!1,data:t.map(e=>e.name),axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(48, 220, 255, 0.28)"}},axisLabel:{color:"rgba(223, 250, 255, 0.76)",fontSize:11,interval:0}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(48, 220, 255, 0.1)",type:"dashed"}},axisLabel:{color:"rgba(223, 250, 255, 0.58)",fontSize:11}},series:[{name:i.chart.title,type:"line",smooth:!0,symbol:"circle",symbolSize:8,lineStyle:{width:3,color:"#30dcff"},itemStyle:{color:"#ffd76c",borderColor:"#041522",borderWidth:2},areaStyle:{color:new b(0,0,0,1,[{offset:0,color:"rgba(48, 220, 255, 0.24)"},{offset:1,color:"rgba(48, 220, 255, 0.02)"}])},label:{show:!0,position:"top",color:"#ffffff",fontSize:11,formatter:({value:e})=>u(e)},data:t.map(e=>({value:e.value,name:e.name}))}]}}function c(){return{trigger:"item",backgroundColor:"rgba(2, 13, 22, 0.94)",borderColor:"rgba(48, 220, 255, 0.34)",borderWidth:1,textStyle:{color:"#fff",fontSize:12},formatter:t=>{const e=(i.chart.rows||[]).find(s=>s.name===t.name),n=(e==null?void 0:e.unit)||i.chart.unit||"",f=e!=null&&e.extra?`<br/><span style="color:rgba(223,250,255,.62)">${e.extra}</span>`:"";return`${t.marker}${t.name}: ${u(t.value)}${n}${f}`}}}function v(t=[]){return t.length>6||t.some(e=>String(e.name||"").length>4)}function B(t){const e=String(t||"").trim();if(!e||/^(数据)?来源[::]/.test(e)||e.includes("固定展示"))return"";const n=new RegExp(A,"g"),f=new RegExp(`统计${A}`,"g"),s=e.replace(f,"统计数据").replace(n,"数据").replace(/来源[::]\s*openApi\s*统计库\s*[a-zA-Z0-9_./:-]*[,,、]?\s*/gi,"").replace(/openApi\s*统计库\s*/gi,"").replace(/\b[a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+){2,}\b/g,"").replace(/[,,、]\s*[,,、]+/g,",").replace(/^[\s,,、::]+|[\s,,、]+$/g,"");return!s||/^来源[::]?$/.test(s)||O(s)?"":s}function O(t){return/^[a-zA-Z0-9_./:-]+$/.test(t)&&(t.includes("_")||t.length>24)}function u(t){const e=Number(t);return Number.isFinite(e)?Number.isInteger(e)?e.toLocaleString("zh-CN"):e.toLocaleString("zh-CN",{maximumFractionDigits:2}):"--"}return(t,e)=>(g(),h("div",{class:E(["smart-chart-card",{"is-horizontal":w.value}])},[y("div",G,[y("div",null,[y("strong",null,x(a.chart.title),1),S.value?(g(),h("span",M,x(S.value),1)):_("",!0)]),a.chart.unit?(g(),h("em",I,x(a.chart.unit),1)):_("",!0)]),V(q(j),{class:"smart-chart",option:k.value,autoresize:""},null,8,["option"])],2))}};export{Q as default}; {d}%`},labelLine:{lineStyle:{color:"rgba(223, 250, 255, 0.42)"}},itemStyle:{borderColor:"rgba(3, 18, 31, 0.92)",borderWidth:3},data:t.map((e,n)=>({name:e.name,value:e.value,itemStyle:{color:l[n%l.length]}}))}]}}function $(t){return{animationDuration:760,grid:{left:52,right:28,top:30,bottom:48},tooltip:d(m({},c()),{trigger:"axis",axisPointer:{type:"line",lineStyle:{color:"rgba(255, 215, 108, 0.52)"}}}),xAxis:{type:"category",boundaryGap:!1,data:t.map(e=>e.name),axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(48, 220, 255, 0.28)"}},axisLabel:{color:"rgba(223, 250, 255, 0.76)",fontSize:11,interval:0}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(48, 220, 255, 0.1)",type:"dashed"}},axisLabel:{color:"rgba(223, 250, 255, 0.58)",fontSize:11}},series:[{name:i.chart.title,type:"line",smooth:!0,symbol:"circle",symbolSize:8,lineStyle:{width:3,color:"#30dcff"},itemStyle:{color:"#ffd76c",borderColor:"#041522",borderWidth:2},areaStyle:{color:new b(0,0,0,1,[{offset:0,color:"rgba(48, 220, 255, 0.24)"},{offset:1,color:"rgba(48, 220, 255, 0.02)"}])},label:{show:!0,position:"top",color:"#ffffff",fontSize:11,formatter:({value:e})=>u(e)},data:t.map(e=>({value:e.value,name:e.name}))}]}}function c(){return{trigger:"item",backgroundColor:"rgba(2, 13, 22, 0.94)",borderColor:"rgba(48, 220, 255, 0.34)",borderWidth:1,textStyle:{color:"#fff",fontSize:12},formatter:t=>{const e=(i.chart.rows||[]).find(s=>s.name===t.name),n=(e==null?void 0:e.unit)||i.chart.unit||"",f=e!=null&&e.extra?`<br/><span style="color:rgba(223,250,255,.62)">${e.extra}</span>`:"";return`${t.marker}${t.name}: ${u(t.value)}${n}${f}`}}}function v(t=[]){return t.length>6||t.some(e=>String(e.name||"").length>4)}function B(t){const e=String(t||"").trim();if(!e||/^(数据)?来源[::]/.test(e)||e.includes("固定展示"))return"";const n=new RegExp(A,"g"),f=new RegExp(`统计${A}`,"g"),s=e.replace(f,"统计数据").replace(n,"数据").replace(/来源[::]\s*openApi\s*统计库\s*[a-zA-Z0-9_./:-]*[,,、]?\s*/gi,"").replace(/openApi\s*统计库\s*/gi,"").replace(/\b[a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+){2,}\b/g,"").replace(/[,,、]\s*[,,、]+/g,",").replace(/^[\s,,、::]+|[\s,,、]+$/g,"");return!s||/^来源[::]?$/.test(s)||O(s)?"":s}function O(t){return/^[a-zA-Z0-9_./:-]+$/.test(t)&&(t.includes("_")||t.length>24)}function u(t){const e=Number(t);return Number.isFinite(e)?Number.isInteger(e)?e.toLocaleString("zh-CN"):e.toLocaleString("zh-CN",{maximumFractionDigits:2}):"--"}return(t,e)=>(g(),h("div",{class:E(["smart-chart-card",{"is-horizontal":w.value}])},[y("div",G,[y("div",null,[y("strong",null,x(a.chart.title),1),S.value?(g(),h("span",M,x(S.value),1)):_("",!0)]),a.chart.unit?(g(),h("em",I,x(a.chart.unit),1)):_("",!0)]),V(q(j),{class:"smart-chart",option:k.value,autoresize:""},null,8,["option"])],2))}};export{Q as default};

@ -1 +1 @@
var m=Object.defineProperty;var p=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var i=(t,e,a)=>e in t?m(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,o=(t,e)=>{for(var a in e||(e={}))y.call(e,a)&&i(t,a,e[a]);if(p)for(var a of p(e))T.call(e,a)&&i(t,a,e[a]);return t};import{p as d}from"./screen2Standard-a1d50517-1786527543390.js";import{R as x,b as u,d as g,p as l,h as f,r as L,a as A,g as B,e as N,c as M,o as O,s as _,f as H,i as S,j as w,k as C,l as F,m as P,n as E}from"./TopicSwitcher-23495f80-1786527543390.js";import{g as n,a as h,H as q,C as G}from"./index-04d14bf6-1786527543390.js";const s=new Map;class b{constructor(e={}){this.options=o({includeChinaMap:!1},e),this.ready=null,this.init()}init(){const e=this.getSharedKey(),a=R(e,()=>this.createAssetList());this.instance=a.instance,this.ready=a.ready}getSharedKey(){return this.options.includeChinaMap?"hongyuan-map-with-china":"hongyuan-map"}createAssetList(){let e=[{type:"Texture",name:"flyline",path:u},{type:"Texture",name:"pathLine",path:u},{type:"Texture",name:"pathLine2",path:g},{type:"Texture",name:"pathLine3",path:l},{type:"File",name:"china",path:n(h)},{type:"File",name:"mapJson",path:n(q)},{type:"File",name:"mapStroke",path:n(h)},{type:"Texture",name:"huiguang",path:f},{type:"Texture",name:"rotationBorder1",path:L},{type:"Texture",name:"rotationBorder2",path:A},{type:"Texture",name:"guangquan1",path:B},{type:"Texture",name:"guangquan2",path:N},{type:"Texture",name:"chinaBlurLine",path:M},{type:"Texture",name:"ocean",path:O},{type:"Texture",name:"side",path:_},{type:"Texture",name:"arrow",path:H},{type:"Texture",name:"point",path:S},{type:"Texture",name:"focusArrows",path:w},{type:"Texture",name:"focusBar",path:C},{type:"Texture",name:"focusBg",path:F},{type:"Texture",name:"focusMidQuan",path:P},{type:"Texture",name:"focusMoveBg",path:E}];return this.options.includeChinaMap&&e.push({type:"File",name:"chinaMap",path:n(G)}),e}}function R(t,e){if(s.has(t))return s.get(t);const a=new x({cloneTextures:!0});a.addLoader(d,"FileLoader");const c=a.loadAll(e()),r={instance:a,ready:c};return s.set(t,r),r}export{b as A}; var m=Object.defineProperty;var p=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var i=(t,e,a)=>e in t?m(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,o=(t,e)=>{for(var a in e||(e={}))y.call(e,a)&&i(t,a,e[a]);if(p)for(var a of p(e))T.call(e,a)&&i(t,a,e[a]);return t};import{p as d}from"./screen2Standard-54c0337d-1786541781548.js";import{R as x,b as u,d as g,p as l,h as f,r as L,a as A,g as B,e as N,c as M,o as O,s as _,f as H,i as S,j as w,k as C,l as F,m as P,n as E}from"./TopicSwitcher-dccf4985-1786541781548.js";import{g as n,a as h,H as q,C as G}from"./index-af4e3bce-1786541781548.js";const s=new Map;class b{constructor(e={}){this.options=o({includeChinaMap:!1},e),this.ready=null,this.init()}init(){const e=this.getSharedKey(),a=R(e,()=>this.createAssetList());this.instance=a.instance,this.ready=a.ready}getSharedKey(){return this.options.includeChinaMap?"hongyuan-map-with-china":"hongyuan-map"}createAssetList(){let e=[{type:"Texture",name:"flyline",path:u},{type:"Texture",name:"pathLine",path:u},{type:"Texture",name:"pathLine2",path:g},{type:"Texture",name:"pathLine3",path:l},{type:"File",name:"china",path:n(h)},{type:"File",name:"mapJson",path:n(q)},{type:"File",name:"mapStroke",path:n(h)},{type:"Texture",name:"huiguang",path:f},{type:"Texture",name:"rotationBorder1",path:L},{type:"Texture",name:"rotationBorder2",path:A},{type:"Texture",name:"guangquan1",path:B},{type:"Texture",name:"guangquan2",path:N},{type:"Texture",name:"chinaBlurLine",path:M},{type:"Texture",name:"ocean",path:O},{type:"Texture",name:"side",path:_},{type:"Texture",name:"arrow",path:H},{type:"Texture",name:"point",path:S},{type:"Texture",name:"focusArrows",path:w},{type:"Texture",name:"focusBar",path:C},{type:"Texture",name:"focusBg",path:F},{type:"Texture",name:"focusMidQuan",path:P},{type:"Texture",name:"focusMoveBg",path:E}];return this.options.includeChinaMap&&e.push({type:"File",name:"chinaMap",path:n(G)}),e}}function R(t,e){if(s.has(t))return s.get(t);const a=new x({cloneTextures:!0});a.addLoader(d,"FileLoader");const c=a.loadAll(e()),r={instance:a,ready:c};return s.set(t,r),r}export{b as A};

@ -1 +1 @@
var R=Object.defineProperty,b=Object.defineProperties;var k=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var A=(r,i,t)=>i in r?R(r,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[i]=t,f=(r,i)=>{for(var t in i||(i={}))B.call(i,t)&&A(r,t,i[t]);if(y)for(var t of y(i))E.call(i,t)&&A(r,t,i[t]);return r},l=(r,i)=>b(r,k(i));var a=(r,i,t)=>new Promise((n,u)=>{var w=c=>{try{o(t.next(c))}catch(e){u(e)}},s=c=>{try{o(t.throw(c))}catch(e){u(e)}},o=c=>c.done?n(c.value):Promise.resolve(c.value).then(w,s);o((t=t.apply(r,i)).next())});import{r as K,n as N}from"./index-76b717d4-1786527543390.js";const m="/openApi";function O(r,i){return/^https?:\/\//.test(i)?i:`${r}${i.startsWith("/")?i:`/${i}`}`}function $(r){if((r==null?void 0:r.success)===!1||(r==null?void 0:r.code)!==void 0&&![0,200,"0","200"].includes(r.code)){const t=new Error((r==null?void 0:r.msg)||(r==null?void 0:r.message)||"接口请求失败");throw t.code=r==null?void 0:r.code,t}return N(r)}function g(r,i,t,n={}){return K(O(r,i),{params:t,timeout:n.timeout||16e3}).then($)}function x(r){return Array.isArray(r)?r:Array.isArray(r==null?void 0:r.rows)?r.rows:Array.isArray(r==null?void 0:r.list)?r.list:Array.isArray(r==null?void 0:r.data)?r.data:[]}function z(){return a(this,null,function*(){return x(yield g(m,"/ai/balance/areaRows",{},{timeout:18e3}))})}function _(){return a(this,null,function*(){const r=yield g(m,"/ai/balance/config",{},{timeout:18e3});if(!r||r.hasData===!1||!r.scenario)return null;const i=Array.isArray(r.riskActions)?r.riskActions:[];return l(f({},r),{riskRules:(Array.isArray(r.riskRules)?r.riskRules:[]).map(t=>l(f({},t),{key:t.ruleKey,range:t.rangeLabel,actions:i.filter(n=>n.ruleKey===t.ruleKey).sort((n,u)=>Number(n.actionOrder)-Number(u.actionOrder)).map(n=>n.actionText)}))})})}function h(){return a(this,null,function*(){return z()})}export{_ as a,h as b,z as g}; var R=Object.defineProperty,b=Object.defineProperties;var k=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var A=(r,i,t)=>i in r?R(r,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[i]=t,f=(r,i)=>{for(var t in i||(i={}))B.call(i,t)&&A(r,t,i[t]);if(y)for(var t of y(i))E.call(i,t)&&A(r,t,i[t]);return r},l=(r,i)=>b(r,k(i));var a=(r,i,t)=>new Promise((n,u)=>{var w=c=>{try{o(t.next(c))}catch(e){u(e)}},s=c=>{try{o(t.throw(c))}catch(e){u(e)}},o=c=>c.done?n(c.value):Promise.resolve(c.value).then(w,s);o((t=t.apply(r,i)).next())});import{r as K,n as N}from"./index-25a05535-1786541781548.js";const m="/openApi";function O(r,i){return/^https?:\/\//.test(i)?i:`${r}${i.startsWith("/")?i:`/${i}`}`}function $(r){if((r==null?void 0:r.success)===!1||(r==null?void 0:r.code)!==void 0&&![0,200,"0","200"].includes(r.code)){const t=new Error((r==null?void 0:r.msg)||(r==null?void 0:r.message)||"接口请求失败");throw t.code=r==null?void 0:r.code,t}return N(r)}function g(r,i,t,n={}){return K(O(r,i),{params:t,timeout:n.timeout||16e3}).then($)}function x(r){return Array.isArray(r)?r:Array.isArray(r==null?void 0:r.rows)?r.rows:Array.isArray(r==null?void 0:r.list)?r.list:Array.isArray(r==null?void 0:r.data)?r.data:[]}function z(){return a(this,null,function*(){return x(yield g(m,"/ai/balance/areaRows",{},{timeout:18e3}))})}function _(){return a(this,null,function*(){const r=yield g(m,"/ai/balance/config",{},{timeout:18e3});if(!r||r.hasData===!1||!r.scenario)return null;const i=Array.isArray(r.riskActions)?r.riskActions:[];return l(f({},r),{riskRules:(Array.isArray(r.riskRules)?r.riskRules:[]).map(t=>l(f({},t),{key:t.ruleKey,range:t.rangeLabel,actions:i.filter(n=>n.ruleKey===t.ruleKey).sort((n,u)=>Number(n.actionOrder)-Number(u.actionOrder)).map(n=>n.actionText)}))})})}function h(){return a(this,null,function*(){return z()})}export{_ as a,h as b,z as g};

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 93 KiB

@ -1 +1 @@
var m=(e,t,r)=>new Promise((s,u)=>{var a=i=>{try{c(r.next(i))}catch(l){u(l)}},n=i=>{try{c(r.throw(i))}catch(l){u(l)}},c=i=>i.done?s(i.value):Promise.resolve(i.value).then(a,n);c((r=r.apply(e,t)).next())});import{H as f,W as S}from"./townshipBoundaries-0eac6df6-1786527543390.js";import{r as E}from"./index-76b717d4-1786527543390.js";const d="/geoserver/ne/wms",_={}.VITE_GEOSERVER_WFS_URL||d.replace(/\/wms$/i,"/wfs"),h={}.VITE_GEOSERVER_WMTS_URL||"/geoserver/gwc/service/wmts";function o(e,t){const r=new URLSearchParams;return Object.entries(t).forEach(([s,u])=>{u!=null&&u!==""&&r.append(s,u)}),`${e}${e.includes("?")?"&":"?"}${r.toString()}`}function y(e,t={}){const r=t.bounds||f,s=t.size||S;return o(t.url||d,{service:"WMS",version:"1.1.1",request:"GetMap",layers:e.layerName,styles:e.styles||"",format:"image/png",transparent:!0,tiled:!0,srs:"EPSG:4326",bbox:[r.west,r.south,r.east,r.north].join(","),width:s.width,height:s.height,CQL_FILTER:t.cqlFilter||e.cqlFilter,SLD_BODY:t.sldBody||e.sldBody,_:Date.now()})}function W(e,t={}){var a,n,c,i,l;const r=e.tileMatrixSetID||e.tileMatrixSet||"EPSG:900913",s=Number((i=(c=(n=(a=t.z)!=null?a:t.zoom)!=null?n:e.wmtsZoom)!=null?c:e.homeWmtsZoom)!=null?i:0),u=t.tileMatrix||((l=e.tileMatrixLabels)==null?void 0:l[s])||`${r}:${s}`;return o(t.url||e.url||h,{service:"WMTS",version:"1.0.0",request:"GetTile",layer:e.layerName,style:e.style||e.styles||"",format:e.format||"image/png",tileMatrixSet:r,tileMatrix:u,tileRow:t.y,tileCol:t.x})}function F(e,t,r={}){var a,n;const s=r.bounds||f,u=r.size||S;return o(r.url||d,{service:"WMS",version:"1.1.1",request:"GetFeatureInfo",layers:e.layerName,query_layers:e.layerName,styles:e.styles||"",info_format:"application/json",feature_count:5,srs:"EPSG:4326",bbox:[s.west,s.south,s.east,s.north].join(","),width:u.width,height:u.height,x:Math.round(t.x),y:Math.round(t.y),buffer:(n=(a=r.buffer)!=null?a:e.queryBuffer)!=null?n:8,CQL_FILTER:r.cqlFilter||e.cqlFilter,SLD_BODY:r.sldBody||e.sldBody})}function g(s,u){return m(this,arguments,function*(e,t,r={}){const a=F(e,t,r);return E(a,{credentials:"include"})})}function R(e,t={}){return o(t.url||_,{service:"WFS",version:t.version||"1.0.0",request:"GetFeature",typeName:e,outputFormat:"json",propertyName:Array.isArray(t.propertyName)?t.propertyName.join(","):t.propertyName,CQL_FILTER:t.cqlFilter,maxFeatures:t.maxFeatures||2e5})}function w(r){return m(this,arguments,function*(e,t={}){const s=R(e,t);return E(s,{credentials:"include",timeout:t.timeout||2e4})})}export{g as a,y as b,W as c,w as g}; var m=(e,t,r)=>new Promise((s,u)=>{var a=i=>{try{c(r.next(i))}catch(l){u(l)}},n=i=>{try{c(r.throw(i))}catch(l){u(l)}},c=i=>i.done?s(i.value):Promise.resolve(i.value).then(a,n);c((r=r.apply(e,t)).next())});import{H as f,W as S}from"./townshipBoundaries-cb449981-1786541781548.js";import{r as E}from"./index-25a05535-1786541781548.js";const d="/geoserver/ne/wms",_={}.VITE_GEOSERVER_WFS_URL||d.replace(/\/wms$/i,"/wfs"),h={}.VITE_GEOSERVER_WMTS_URL||"/geoserver/gwc/service/wmts";function o(e,t){const r=new URLSearchParams;return Object.entries(t).forEach(([s,u])=>{u!=null&&u!==""&&r.append(s,u)}),`${e}${e.includes("?")?"&":"?"}${r.toString()}`}function y(e,t={}){const r=t.bounds||f,s=t.size||S;return o(t.url||d,{service:"WMS",version:"1.1.1",request:"GetMap",layers:e.layerName,styles:e.styles||"",format:"image/png",transparent:!0,tiled:!0,srs:"EPSG:4326",bbox:[r.west,r.south,r.east,r.north].join(","),width:s.width,height:s.height,CQL_FILTER:t.cqlFilter||e.cqlFilter,SLD_BODY:t.sldBody||e.sldBody,_:Date.now()})}function W(e,t={}){var a,n,c,i,l;const r=e.tileMatrixSetID||e.tileMatrixSet||"EPSG:900913",s=Number((i=(c=(n=(a=t.z)!=null?a:t.zoom)!=null?n:e.wmtsZoom)!=null?c:e.homeWmtsZoom)!=null?i:0),u=t.tileMatrix||((l=e.tileMatrixLabels)==null?void 0:l[s])||`${r}:${s}`;return o(t.url||e.url||h,{service:"WMTS",version:"1.0.0",request:"GetTile",layer:e.layerName,style:e.style||e.styles||"",format:e.format||"image/png",tileMatrixSet:r,tileMatrix:u,tileRow:t.y,tileCol:t.x})}function F(e,t,r={}){var a,n;const s=r.bounds||f,u=r.size||S;return o(r.url||d,{service:"WMS",version:"1.1.1",request:"GetFeatureInfo",layers:e.layerName,query_layers:e.layerName,styles:e.styles||"",info_format:"application/json",feature_count:5,srs:"EPSG:4326",bbox:[s.west,s.south,s.east,s.north].join(","),width:u.width,height:u.height,x:Math.round(t.x),y:Math.round(t.y),buffer:(n=(a=r.buffer)!=null?a:e.queryBuffer)!=null?n:8,CQL_FILTER:r.cqlFilter||e.cqlFilter,SLD_BODY:r.sldBody||e.sldBody})}function g(s,u){return m(this,arguments,function*(e,t,r={}){const a=F(e,t,r);return E(a,{credentials:"include"})})}function R(e,t={}){return o(t.url||_,{service:"WFS",version:t.version||"1.0.0",request:"GetFeature",typeName:e,outputFormat:"json",propertyName:Array.isArray(t.propertyName)?t.propertyName.join(","):t.propertyName,CQL_FILTER:t.cqlFilter,maxFeatures:t.maxFeatures||2e5})}function w(r){return m(this,arguments,function*(e,t={}){const s=R(e,t);return E(s,{credentials:"include",timeout:t.timeout||2e4})})}export{g as a,y as b,W as c,w as g};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,4 +1,4 @@
import{g as p,q as g,P as y,o as r,c as n,a as i,z as c,t as x,r as h,j as $,K as u,d as w}from"./index-1786527543390.js";const F=""+new URL("title-zs1-c15a5ee8-balabala-1786527543390.svg",import.meta.url).href,v=""+new URL("saoguang-ccf84a88-balabala-1786527543390.svg",import.meta.url).href,b=""+new URL("content-bottom-left-arrow-3a8a61f3-balabala-1786527543390.svg",import.meta.url).href,V=""+new URL("content-bottom-right-arrow-a3c5270d-balabala-1786527543390.svg",import.meta.url).href,f=""+new URL("content-middle-line-162bc0d5-balabala-1786527543390.svg",import.meta.url).href;const L={class:"m-card-hd"},H={class:"m-card-hd-bg"},U=["width","viewBox"],B=["clip-path"],E=["width"],M=["id"],S=["d"],Z=["d","fill"],G=["d","fill","mask"],C=["clip-path"],k=["x1"],D=["id","x1"],O=["id"],T=["id"],N=["width"],R=["id"],z={class:"m-card-hd-title"},A={key:0,class:"m-card-hd-extra"},P=["width","height","viewBox"],I=["opacity"],j=["d","fill"],q=["d"],K={class:"m-card-bd-content"},J={__name:"index",props:{width:{type:Number,default:398},height:{type:Number,default:200},title:{type:String,default:"标题"},bodyFill:{type:String,default:"rgba(26, 57, 77, 1)"},bodyOpacity:{type:Number,default:.6}},setup(e){const s=e,a=w(1),_=p(()=>{let l=s.width;return`M165 0.5 import{g as p,q as g,P as y,o as r,c as n,a as i,z as c,t as x,r as h,j as $,K as u,d as w}from"./index-1786541781548.js";const F=""+new URL("title-zs1-c15a5ee8-balabala-1786541781548.svg",import.meta.url).href,v=""+new URL("saoguang-ccf84a88-balabala-1786541781548.svg",import.meta.url).href,b=""+new URL("content-bottom-left-arrow-3a8a61f3-balabala-1786541781548.svg",import.meta.url).href,V=""+new URL("content-bottom-right-arrow-a3c5270d-balabala-1786541781548.svg",import.meta.url).href,f=""+new URL("content-middle-line-162bc0d5-balabala-1786541781548.svg",import.meta.url).href;const L={class:"m-card-hd"},H={class:"m-card-hd-bg"},U=["width","viewBox"],B=["clip-path"],E=["width"],M=["id"],S=["d"],Z=["d","fill"],G=["d","fill","mask"],C=["clip-path"],k=["x1"],D=["id","x1"],O=["id"],T=["id"],N=["width"],R=["id"],z={class:"m-card-hd-title"},A={key:0,class:"m-card-hd-extra"},P=["width","height","viewBox"],I=["opacity"],j=["d","fill"],q=["d"],K={class:"m-card-bd-content"},J={__name:"index",props:{width:{type:Number,default:398},height:{type:Number,default:200},title:{type:String,default:"标题"},bodyFill:{type:String,default:"rgba(26, 57, 77, 1)"},bodyOpacity:{type:Number,default:.6}},setup(e){const s=e,a=w(1),_=p(()=>{let l=s.width;return`M165 0.5
L165.707 -0.207107 L165.707 -0.207107
L165.414 -0.5 L165.414 -0.5
H165 H165

@ -1 +1 @@
var y=(_,v,i)=>new Promise((r,n)=>{var l=t=>{try{o(i.next(t))}catch(p){n(p)}},d=t=>{try{o(i.throw(t))}catch(p){n(p)}},o=t=>t.done?r(t.value):Promise.resolve(t.value).then(l,d);o((i=i.apply(_,v)).next())});import{_ as S,l as V,m as C,g as M,o as f,c as g,a as s,B as w,f as L,s as h,H as D,I,t as m,j as k,d as u,J as N}from"./index-1786527543390.js";const R={class:"login-screen"},U={class:"login-shell"},q={class:"login-field"},E={class:"login-field login-password-field"},K={class:"login-password-control"},T=["type"],$=["aria-label","aria-pressed"],j={key:0,class:"login-field-assist","aria-live":"polite"},F={key:1,class:"login-error",role:"alert"},H=["disabled"],J={__name:"index",setup(_){const v=V(),i=C(),r=u(""),n=u(""),l=u(!1),d=u(!1),o=u(!1),t=u(""),p=M(()=>{const a=typeof v.query.redirect=="string"?decodeURIComponent(v.query.redirect):"/platform";return a.startsWith("/login")?"/platform":a||"/platform"});function x(){return y(this,null,function*(){if(t.value="",!r.value||!n.value){t.value="请输入账号和密码。";return}o.value=!0;try{yield N(r.value,n.value),i.replace(p.value)}catch(a){t.value=B(a)}finally{o.value=!1}})}function b(a){var e;d.value=!!((e=a==null?void 0:a.getModifierState)!=null&&e.call(a,"CapsLock"))}function B(a){const e=String((a==null?void 0:a.message)||"").trim();return/401|403|账号|密码|unauthor/i.test(e)?"账号或密码不正确,请核对后重试。":/network|fetch|timeout|连接|服务|502|503|504/i.test(e)?"登录服务暂时无法连接,请稍后重试。":"暂时无法登录,请稍后重试。"}return(a,e)=>(f(),g("div",R,[s("div",U,[e[8]||(e[8]=s("section",{class:"login-brand","aria-label":"红原县数字畜牧业监管平台"},[s("div",{class:"login-brand-rule","aria-hidden":"true"},[s("i"),s("span"),s("i")]),s("h1",null,[w("红原县数字畜牧业"),s("br"),w("监管平台")]),s("div",{class:"login-brand-glow","aria-hidden":"true"})],-1)),s("form",{class:"login-panel","aria-label":"平台用户登录",onSubmit:L(x,["prevent"])},[e[7]||(e[7]=s("header",{class:"login-panel-head"},[s("div",{class:"login-panel-title"},"用户登录"),s("span",{"aria-hidden":"true"})],-1)),s("label",q,[e[4]||(e[4]=s("span",null,"账号",-1)),h(s("input",{"onUpdate:modelValue":e[0]||(e[0]=c=>r.value=c),autocomplete:"username",autofocus:"",placeholder:"请输入平台账号"},null,512),[[D,r.value,void 0,{trim:!0}]])]),s("label",E,[e[5]||(e[5]=s("span",null,"密码",-1)),s("span",K,[h(s("input",{"onUpdate:modelValue":e[1]||(e[1]=c=>n.value=c),autocomplete:"current-password",placeholder:"请输入密码",type:l.value?"text":"password",onKeydown:b,onKeyup:b,onBlur:e[2]||(e[2]=c=>d.value=!1)},null,40,T),[[I,n.value]]),s("button",{class:"login-password-toggle",type:"button","aria-label":l.value?"隐藏密码":"显示密码","aria-pressed":l.value,onClick:e[3]||(e[3]=c=>l.value=!l.value)},m(l.value?"隐藏":"显示"),9,$)])]),d.value?(f(),g("div",j,[...e[6]||(e[6]=[s("span",{class:"login-caps-lock"},"大写锁定已开启",-1)])])):k("",!0),t.value?(f(),g("div",F,m(t.value),1)):k("",!0),s("button",{class:"login-submit",disabled:o.value,type:"submit"},m(o.value?"登录中":"登录"),9,H)],32)])]))}},W=S(J,[["__scopeId","data-v-b11615f4"]]);export{W as default}; var y=(_,v,i)=>new Promise((r,n)=>{var l=t=>{try{o(i.next(t))}catch(p){n(p)}},d=t=>{try{o(i.throw(t))}catch(p){n(p)}},o=t=>t.done?r(t.value):Promise.resolve(t.value).then(l,d);o((i=i.apply(_,v)).next())});import{_ as S,l as V,m as C,g as M,o as f,c as g,a as s,B as w,f as L,s as h,H as D,I,t as m,j as k,d as u,J as N}from"./index-1786541781548.js";const R={class:"login-screen"},U={class:"login-shell"},q={class:"login-field"},E={class:"login-field login-password-field"},K={class:"login-password-control"},T=["type"],$=["aria-label","aria-pressed"],j={key:0,class:"login-field-assist","aria-live":"polite"},F={key:1,class:"login-error",role:"alert"},H=["disabled"],J={__name:"index",setup(_){const v=V(),i=C(),r=u(""),n=u(""),l=u(!1),d=u(!1),o=u(!1),t=u(""),p=M(()=>{const a=typeof v.query.redirect=="string"?decodeURIComponent(v.query.redirect):"/platform";return a.startsWith("/login")?"/platform":a||"/platform"});function x(){return y(this,null,function*(){if(t.value="",!r.value||!n.value){t.value="请输入账号和密码。";return}o.value=!0;try{yield N(r.value,n.value),i.replace(p.value)}catch(a){t.value=B(a)}finally{o.value=!1}})}function b(a){var e;d.value=!!((e=a==null?void 0:a.getModifierState)!=null&&e.call(a,"CapsLock"))}function B(a){const e=String((a==null?void 0:a.message)||"").trim();return/401|403|账号|密码|unauthor/i.test(e)?"账号或密码不正确,请核对后重试。":/network|fetch|timeout|连接|服务|502|503|504/i.test(e)?"登录服务暂时无法连接,请稍后重试。":"暂时无法登录,请稍后重试。"}return(a,e)=>(f(),g("div",R,[s("div",U,[e[8]||(e[8]=s("section",{class:"login-brand","aria-label":"红原县数字畜牧业监管平台"},[s("div",{class:"login-brand-rule","aria-hidden":"true"},[s("i"),s("span"),s("i")]),s("h1",null,[w("红原县数字畜牧业"),s("br"),w("监管平台")]),s("div",{class:"login-brand-glow","aria-hidden":"true"})],-1)),s("form",{class:"login-panel","aria-label":"平台用户登录",onSubmit:L(x,["prevent"])},[e[7]||(e[7]=s("header",{class:"login-panel-head"},[s("div",{class:"login-panel-title"},"用户登录"),s("span",{"aria-hidden":"true"})],-1)),s("label",q,[e[4]||(e[4]=s("span",null,"账号",-1)),h(s("input",{"onUpdate:modelValue":e[0]||(e[0]=c=>r.value=c),autocomplete:"username",autofocus:"",placeholder:"请输入平台账号"},null,512),[[D,r.value,void 0,{trim:!0}]])]),s("label",E,[e[5]||(e[5]=s("span",null,"密码",-1)),s("span",K,[h(s("input",{"onUpdate:modelValue":e[1]||(e[1]=c=>n.value=c),autocomplete:"current-password",placeholder:"请输入密码",type:l.value?"text":"password",onKeydown:b,onKeyup:b,onBlur:e[2]||(e[2]=c=>d.value=!1)},null,40,T),[[I,n.value]]),s("button",{class:"login-password-toggle",type:"button","aria-label":l.value?"隐藏密码":"显示密码","aria-pressed":l.value,onClick:e[3]||(e[3]=c=>l.value=!l.value)},m(l.value?"隐藏":"显示"),9,$)])]),d.value?(f(),g("div",j,[...e[6]||(e[6]=[s("span",{class:"login-caps-lock"},"大写锁定已开启",-1)])])):k("",!0),t.value?(f(),g("div",F,m(t.value),1)):k("",!0),s("button",{class:"login-submit",disabled:o.value,type:"submit"},m(o.value?"登录中":"登录"),9,H)],32)])]))}},W=S(J,[["__scopeId","data-v-b11615f4"]]);export{W as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +1 @@
var y=Object.defineProperty,m=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var R=(e,o,s)=>o in e?y(e,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[o]=s,i=(e,o)=>{for(var s in o||(o={}))g.call(o,s)&&R(e,s,o[s]);if(a)for(var s of a(o))d.call(o,s)&&R(e,s,o[s]);return e},n=(e,o)=>m(e,f(o));import{r as u,n as A}from"./index-76b717d4-1786527543390.js";const l="/openApi";function c(e,o){return/^https?:\/\//.test(o)?o:`${e}${o.startsWith("/")?o:`/${o}`}`}function h(e){if((e==null?void 0:e.success)===!1||(e==null?void 0:e.code)!==void 0&&![0,200,"0","200"].includes(e.code)){const s=new Error((e==null?void 0:e.msg)||(e==null?void 0:e.message)||"接口请求失败");throw s.code=e==null?void 0:e.code,s}return A(e)}function p(){return u(c(l,"/screen2/industryChain/overview"),{timeout:18e3}).then(h).then(e=>e||{})}function G(){return u(c(l,"/screen2/industryChain/familyPasture"),{timeout:18e3}).then(h).then(e=>e||{})}function t(e){if(Array.isArray(e))return e;if(typeof e!="string"||!e.trim())return[];try{const o=JSON.parse(e);return Array.isArray(o)?o:[]}catch(o){return[]}}function J(){return u(c(l,"/screen2/industryChain/artificialGrassland"),{timeout:18e3}).then(h).then(e=>n(i({},e||{}),{projectRows:Array.isArray(e==null?void 0:e.projectRows)?e.projectRows.map(o=>n(i({},o),{towns:t(o.townsJson),locations:t(o.locationsJson),notes:t(o.notesJson)})):[]}))}function T(){return u(c(l,"/screen2/industryChain/breedingBases"),{timeout:18e3}).then(h).then(e=>n(i({},e||{}),{profileRows:Array.isArray(e==null?void 0:e.profileRows)?e.profileRows.map(o=>n(i({},o),{aliases:t(o.aliasesJson),facts:t(o.factsJson),highlights:t(o.highlightsJson)})):[]}))}const v=["storageTopRows","storageTownRows","storageGrassTypeRows","storageListRows","milkTopRows","milkTownRows","milkListRows","slaughterTopRows","slaughterTownRows","slaughterValueRows","slaughterAbilityRows","slaughterListRows","tradeTopRows","tradeTownRows","tradeOverviewRows","tradeListRows","tradeRecordRows","stageRows"];function B(){return u(c(l,"/screen2/industryChain/downstreamIndustry"),{timeout:18e3}).then(h).then(e=>{const o=i({},e||{});return v.forEach(s=>{var r;o[s]=Array.isArray(e==null?void 0:e[s])?e[s]:t((r=e==null?void 0:e[s])==null?void 0:r.value)}),o})}const C=["topRows","townshipRows","townshipGradeRows","villageGradeRows","authorizationRows","institutionRows","userRatingRows","creditOverviewRows","creditServiceContextRows","serviceCapabilityRows","financialRows","stageRows"],w=[{key:"A级",displayName:"A级",color:"#37f2bd",valueKey:"gradeA"},{key:"B级",displayName:"B级",color:"#30dcff",valueKey:"gradeB"},{key:"C级",displayName:"C级",color:"#f7d675",valueKey:"gradeC"},{key:"D级",displayName:"D级",color:"#ff9b88",valueKey:"gradeD"}];function k(){return u(c(l,"/screen2/industryChain/socialCredit"),{timeout:18e3}).then(h).then(e=>{const o=i({},e||{});return C.forEach(s=>{var r;o[s]=Array.isArray(e==null?void 0:e[s])?e[s]:t((r=e==null?void 0:e[s])==null?void 0:r.value)}),o.villageGradeRows=o.villageGradeRows.map(s=>n(i(i({},s),w.find(r=>r.key===s.key)||{}),{name:s.name||s.key,value:Number(s.value||0),percent:Number(s.percent||0)})),o.townshipGradeRows=o.townshipGradeRows.map(s=>n(i({},s),{total:Number(s.total||0),householdCount:Number(s.householdCount||0),authorizationRate:Number(s.authorizationRate||0),segments:w.map(r=>({key:r.key,displayName:r.displayName,color:r.color,name:r.key,value:Number(s[r.valueKey]||0)}))})),o})}function K(){return u(c(l,"/screen2/industryChain/creditHouseholds"),{timeout:3e4}).then(h).then(e=>{var o;return n(i({},e||{}),{householdRows:Array.isArray(e==null?void 0:e.householdRows)?e.householdRows:t((o=e==null?void 0:e.householdRows)==null?void 0:o.value)})})}export{G as a,J as b,T as c,B as d,k as e,K as f,p as g}; var y=Object.defineProperty,m=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var R=(e,o,s)=>o in e?y(e,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[o]=s,i=(e,o)=>{for(var s in o||(o={}))g.call(o,s)&&R(e,s,o[s]);if(a)for(var s of a(o))d.call(o,s)&&R(e,s,o[s]);return e},n=(e,o)=>m(e,f(o));import{r as u,n as A}from"./index-25a05535-1786541781548.js";const l="/openApi";function c(e,o){return/^https?:\/\//.test(o)?o:`${e}${o.startsWith("/")?o:`/${o}`}`}function h(e){if((e==null?void 0:e.success)===!1||(e==null?void 0:e.code)!==void 0&&![0,200,"0","200"].includes(e.code)){const s=new Error((e==null?void 0:e.msg)||(e==null?void 0:e.message)||"接口请求失败");throw s.code=e==null?void 0:e.code,s}return A(e)}function p(){return u(c(l,"/screen2/industryChain/overview"),{timeout:18e3}).then(h).then(e=>e||{})}function G(){return u(c(l,"/screen2/industryChain/familyPasture"),{timeout:18e3}).then(h).then(e=>e||{})}function t(e){if(Array.isArray(e))return e;if(typeof e!="string"||!e.trim())return[];try{const o=JSON.parse(e);return Array.isArray(o)?o:[]}catch(o){return[]}}function J(){return u(c(l,"/screen2/industryChain/artificialGrassland"),{timeout:18e3}).then(h).then(e=>n(i({},e||{}),{projectRows:Array.isArray(e==null?void 0:e.projectRows)?e.projectRows.map(o=>n(i({},o),{towns:t(o.townsJson),locations:t(o.locationsJson),notes:t(o.notesJson)})):[]}))}function T(){return u(c(l,"/screen2/industryChain/breedingBases"),{timeout:18e3}).then(h).then(e=>n(i({},e||{}),{profileRows:Array.isArray(e==null?void 0:e.profileRows)?e.profileRows.map(o=>n(i({},o),{aliases:t(o.aliasesJson),facts:t(o.factsJson),highlights:t(o.highlightsJson)})):[]}))}const v=["storageTopRows","storageTownRows","storageGrassTypeRows","storageListRows","milkTopRows","milkTownRows","milkListRows","slaughterTopRows","slaughterTownRows","slaughterValueRows","slaughterAbilityRows","slaughterListRows","tradeTopRows","tradeTownRows","tradeOverviewRows","tradeListRows","tradeRecordRows","stageRows"];function B(){return u(c(l,"/screen2/industryChain/downstreamIndustry"),{timeout:18e3}).then(h).then(e=>{const o=i({},e||{});return v.forEach(s=>{var r;o[s]=Array.isArray(e==null?void 0:e[s])?e[s]:t((r=e==null?void 0:e[s])==null?void 0:r.value)}),o})}const C=["topRows","townshipRows","townshipGradeRows","villageGradeRows","authorizationRows","institutionRows","userRatingRows","creditOverviewRows","creditServiceContextRows","serviceCapabilityRows","financialRows","stageRows"],w=[{key:"A级",displayName:"A级",color:"#37f2bd",valueKey:"gradeA"},{key:"B级",displayName:"B级",color:"#30dcff",valueKey:"gradeB"},{key:"C级",displayName:"C级",color:"#f7d675",valueKey:"gradeC"},{key:"D级",displayName:"D级",color:"#ff9b88",valueKey:"gradeD"}];function k(){return u(c(l,"/screen2/industryChain/socialCredit"),{timeout:18e3}).then(h).then(e=>{const o=i({},e||{});return C.forEach(s=>{var r;o[s]=Array.isArray(e==null?void 0:e[s])?e[s]:t((r=e==null?void 0:e[s])==null?void 0:r.value)}),o.villageGradeRows=o.villageGradeRows.map(s=>n(i(i({},s),w.find(r=>r.key===s.key)||{}),{name:s.name||s.key,value:Number(s.value||0),percent:Number(s.percent||0)})),o.townshipGradeRows=o.townshipGradeRows.map(s=>n(i({},s),{total:Number(s.total||0),householdCount:Number(s.householdCount||0),authorizationRate:Number(s.authorizationRate||0),segments:w.map(r=>({key:r.key,displayName:r.displayName,color:r.color,name:r.key,value:Number(s[r.valueKey]||0)}))})),o})}function K(){return u(c(l,"/screen2/industryChain/creditHouseholds"),{timeout:3e4}).then(h).then(e=>{var o;return n(i({},e||{}),{householdRows:Array.isArray(e==null?void 0:e.householdRows)?e.householdRows:t((o=e==null?void 0:e.householdRows)==null?void 0:o.value)})})}export{G as a,J as b,T as c,B as d,k as e,K as f,p as g};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
import{r as o,n as y}from"./index-76b717d4-1786527543390.js";const h="/jsyApi",s="/openApi";function l(r,e){return/^https?:\/\//.test(e)?e:`${r}${e.startsWith("/")?e:`/${e}`}`}function c(r){if((r==null?void 0:r.success)===!1||(r==null?void 0:r.code)!==void 0&&![0,200,"0","200"].includes(r.code)){const t=new Error((r==null?void 0:r.msg)||(r==null?void 0:r.message)||"接口请求失败");throw t.code=r==null?void 0:r.code,t}return y(r)}function i(r,e,t={}){return o(l(h,r),{params:e,timeout:t.timeout||12e3}).then(c)}function P(){return o(l(s,"/screen2/pastureManagement/coreTown"),{timeout:18e3}).then(c).then(r=>r||{})}function w(){return o(l(s,"/screen2/pastureManagement/demographicsOnline"),{timeout:18e3}).then(c).then(r=>r||{})}function I(){return o(l(s,"/screen2/pastureManagement/pastureLedger"),{timeout:2e4}).then(c).then(r=>r||{})}function f(r){return Array.isArray(r)?r:Array.isArray(r==null?void 0:r.rows)?r.rows:Array.isArray(r==null?void 0:r.list)?r.list:Array.isArray(r==null?void 0:r.data)?r.data:r!=null&&r.data?f(r.data):r!=null&&r.result?f(r.result):[]}function B(r){return r==null||r===""?Promise.resolve([]):i("/api/home/grasslandByPastureId",{id:r},{timeout:2e4}).then(f)}function D(r){return r?i("/api/pastureDetails",{wkt:r},{timeout:2e4}).then(e=>e||null):Promise.resolve(null)}function g(r,e=[]){const t=[...e.map(n=>r==null?void 0:r[n]),...e.map(n=>{var u;return(u=r==null?void 0:r.data)==null?void 0:u[n]}),r==null?void 0:r.data,r==null?void 0:r.result,r];for(const n of t)if(Array.isArray(n)){const u=n.find(m=>m&&typeof m=="object");if(u)return u}else if(n&&typeof n=="object")return n;return null}function j(r={}){return i("/api/grasslandDetails",r,{timeout:2e4}).then(e=>g(e,["grassland"]))}function C(r={}){return i("/api/wetlandDetails",r,{timeout:2e4}).then(e=>g(e,["wetland"]))}function E(r){return r?i("/api/map/projectDetail",{wkt:r},{timeout:2e4}).then(e=>e||null):Promise.resolve(null)}function W(r){return i("/api/pastureDetailsById",{id:r}).then(e=>(e==null?void 0:e.data)||e||{})}export{C as a,E as b,I as c,w as d,P as e,D as f,j as g,B as h,W as i};

@ -0,0 +1 @@
import{r as o,n as g}from"./index-25a05535-1786541781548.js";const y="/jsyApi",s="/openApi";function c(r,e){return/^https?:\/\//.test(e)?e:`${r}${e.startsWith("/")?e:`/${e}`}`}function l(r){if((r==null?void 0:r.success)===!1||(r==null?void 0:r.code)!==void 0&&![0,200,"0","200"].includes(r.code)){const t=new Error((r==null?void 0:r.msg)||(r==null?void 0:r.message)||"接口请求失败");throw t.code=r==null?void 0:r.code,t}return g(r)}function i(r,e,t={}){return o(c(y,r),{params:e,timeout:t.timeout||12e3}).then(l)}function P(){return o(c(s,"/screen2/pastureManagement/coreTown"),{timeout:18e3}).then(l).then(r=>r||{})}function B(){return o(c(s,"/screen2/pastureManagement/demographicsOnline"),{timeout:18e3}).then(l).then(r=>r||{})}function I(){return o(c(s,"/screen2/pastureManagement/pastureLedger"),{timeout:2e4}).then(l).then(r=>r||{})}function f(r){return Array.isArray(r)?r:Array.isArray(r==null?void 0:r.rows)?r.rows:Array.isArray(r==null?void 0:r.list)?r.list:Array.isArray(r==null?void 0:r.data)?r.data:r!=null&&r.data?f(r.data):r!=null&&r.result?f(r.result):[]}function w(r){return r==null||r===""?Promise.resolve([]):i("/api/home/grasslandByPastureId",{id:r},{timeout:2e4}).then(f)}function D(r){return r?i("/api/pastureDetails",{wkt:r},{timeout:2e4}).then(e=>e||null):Promise.resolve(null)}function A(r,e=[]){const t=[...e.map(n=>r==null?void 0:r[n]),...e.map(n=>{var u;return(u=r==null?void 0:r.data)==null?void 0:u[n]}),r==null?void 0:r.data,r==null?void 0:r.result,r];for(const n of t)if(Array.isArray(n)){const u=n.find(m=>m&&typeof m=="object");if(u)return u}else if(n&&typeof n=="object")return n;return null}function j(r={}){return i("/api/grasslandDetails",r,{timeout:2e4}).then(e=>A(e,["grassland"]))}function C(r){return r?i("/api/map/projectDetail",{wkt:r},{timeout:2e4}).then(e=>e||null):Promise.resolve(null)}function E(r){return i("/api/pastureDetailsById",{id:r}).then(e=>(e==null?void 0:e.data)||e||{})}export{C as a,I as b,B as c,P as d,D as e,w as f,j as g,E as h};

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save