@ -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-1786512564754.js";import{_ as R}from"./index-30e79df6-1786512564754.js";import{b as j}from"./townshipBoundaries-8d64be19-1786512564754.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-1786515885761.js";import{_ as R}from"./index-5fcd057f-1786515885761.js";import{b as j}from"./townshipBoundaries-887ecf27-1786515885761.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-1786512564754.js";import{H as j}from"./index.esm.min-d1465927-1786512564754.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-1786515885761.js";import{H as j}from"./index.esm.min-a86d8a35-1786515885761.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}; |
||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
@ -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-f89de86b-1786512564754.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-6338ac9d-1786512564754.js";import{g as n,a as h,H as q,C as G}from"./index-369d6a27-1786512564754.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-fc4c4b8d-1786515885761.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-2a8a4223-1786515885761.js";import{g as n,a as h,H as q,C as G}from"./index-3a516f22-1786515885761.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-749a1b46-1786512564754.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-bb4d300c-1786515885761.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 |
|
Before Width: | Height: | Size: 701 B After Width: | Height: | Size: 701 B |
|
Before Width: | Height: | Size: 668 B After Width: | Height: | Size: 668 B |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 149 B After Width: | Height: | Size: 149 B |
|
Before Width: | Height: | Size: 149 B After Width: | Height: | Size: 149 B |
|
Before Width: | Height: | Size: 981 B After Width: | Height: | Size: 981 B |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 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-8d64be19-1786512564754.js";import{r as E}from"./index-749a1b46-1786512564754.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-887ecf27-1786515885761.js";import{r as E}from"./index-bb4d300c-1786515885761.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}; |
||||
|
Before Width: | Height: | Size: 282 KiB After Width: | Height: | Size: 282 KiB |
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
@ -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-1786512564754.js";const F=""+new URL("title-zs1-c15a5ee8-balabala-1786512564754.svg",import.meta.url).href,v=""+new URL("saoguang-ccf84a88-balabala-1786512564754.svg",import.meta.url).href,b=""+new URL("content-bottom-left-arrow-3a8a61f3-balabala-1786512564754.svg",import.meta.url).href,V=""+new URL("content-bottom-right-arrow-a3c5270d-balabala-1786512564754.svg",import.meta.url).href,f=""+new URL("content-middle-line-162bc0d5-balabala-1786512564754.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-1786515885761.js";const F=""+new URL("title-zs1-c15a5ee8-balabala-1786515885761.svg",import.meta.url).href,v=""+new URL("saoguang-ccf84a88-balabala-1786515885761.svg",import.meta.url).href,b=""+new URL("content-bottom-left-arrow-3a8a61f3-balabala-1786515885761.svg",import.meta.url).href,V=""+new URL("content-bottom-right-arrow-a3c5270d-balabala-1786515885761.svg",import.meta.url).href,f=""+new URL("content-middle-line-162bc0d5-balabala-1786515885761.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.414 -0.5 |
||||
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-1786512564754.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-1786515885761.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}; |
||||
@ -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-749a1b46-1786512564754.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-bb4d300c-1786515885761.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}; |
||||
@ -0,0 +1 @@ |
||||
.forest-grass-wet{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;overflow:clip;overscroll-behavior:none}.forest-grass-wet>.map{width:100%;height:100%}.forest-grass-wet>.map>canvas{display:block;width:100%!important;height:100%!important}.forest-grass-wet>.map>div{width:100%!important;height:100%!important}.forest-grass-wet-ui{position:absolute;top:0;right:0;bottom:0;left:0;z-index:4;pointer-events:none}.forest-grass-wet .fgw-left,.forest-grass-wet .fgw-right{position:absolute;top:128px;bottom:8px;z-index:6;width:398px;perspective-origin:50% 50%;pointer-events:all}.forest-grass-wet .fgw-data-state{position:absolute;top:112px;left:50%;z-index:9;min-width:320px;padding:12px 24px;border:1px solid rgba(48,220,255,.45);background:rgba(3,18,30,.9);color:#b9f6ff;text-align:center;transform:translate(-50%);pointer-events:none}.forest-grass-wet .fgw-data-state.is-error{border-color:#ff6f6f99;color:#ffb6b6}.forest-grass-wet .fgw-left{left:32px;perspective:var(--screen-side-perspective-left, 500px)}.forest-grass-wet .fgw-right{right:32px;perspective:var(--screen-side-perspective-right, 800px)}.forest-grass-wet .fgw-side-stack{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;gap:12px;transform-style:preserve-3d}.forest-grass-wet .fgw-side-stack.is-left{transform:translateZ(0) rotateY(6deg);transform-origin:left center}.forest-grass-wet .fgw-side-stack.is-right{transform:translateZ(0) rotateY(-6deg);transform-origin:right center}.forest-grass-wet .fgw-side-card{flex:0 0 auto}.forest-grass-wet .fgw-side-card .m-card-bd-content{top:36px;bottom:0;color:#f3feff}.forest-grass-wet .fgw-map-layer-tools,.forest-grass-wet .fgw-map-feature-info{position:absolute;z-index:7;pointer-events:all}.forest-grass-wet .fgw-map-layer-tools .m-card,.forest-grass-wet .fgw-map-feature-info .m-card{background:rgba(3,18,30,.54);backdrop-filter:blur(2px)}.forest-grass-wet .fgw-map-layer-tools{top:auto;right:458px;left:auto;bottom:72px;width:248px;height:430px}.forest-grass-wet .fgw-map-layer-tools .m-card{width:100%!important;height:100%!important}.forest-grass-wet .fgw-ndvi-timeline{position:absolute;left:calc(50% - 136px);bottom:112px;z-index:7;transform:translate(-50%);pointer-events:all}.forest-grass-wet .fgw-map-feature-info{right:456px;bottom:150px}.forest-grass-wet .fgw-bottom-topic{position:absolute;left:50%;bottom:48px;z-index:8;transform:translate(-50%);pointer-events:all} |
||||
@ -1 +0,0 @@ |
||||
.forest-grass-wet{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;overflow:clip;overscroll-behavior:none}.forest-grass-wet>.map{width:100%;height:100%}.forest-grass-wet>.map>canvas{display:block;width:100%!important;height:100%!important}.forest-grass-wet>.map>div{width:100%!important;height:100%!important}.forest-grass-wet-ui{position:absolute;top:0;right:0;bottom:0;left:0;z-index:4;pointer-events:none}.forest-grass-wet .fgw-left,.forest-grass-wet .fgw-right{position:absolute;top:128px;bottom:8px;z-index:6;width:398px;perspective-origin:50% 50%;pointer-events:all}.forest-grass-wet .fgw-left{left:32px;perspective:var(--screen-side-perspective-left, 500px)}.forest-grass-wet .fgw-right{right:32px;perspective:var(--screen-side-perspective-right, 800px)}.forest-grass-wet .fgw-side-stack{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;gap:12px;transform-style:preserve-3d}.forest-grass-wet .fgw-side-stack.is-left{transform:translateZ(0) rotateY(6deg);transform-origin:left center}.forest-grass-wet .fgw-side-stack.is-right{transform:translateZ(0) rotateY(-6deg);transform-origin:right center}.forest-grass-wet .fgw-side-card{flex:0 0 auto}.forest-grass-wet .fgw-side-card .m-card-bd-content{top:36px;bottom:0;color:#f3feff}.forest-grass-wet .fgw-map-layer-tools,.forest-grass-wet .fgw-map-feature-info{position:absolute;z-index:7;pointer-events:all}.forest-grass-wet .fgw-map-layer-tools .m-card,.forest-grass-wet .fgw-map-feature-info .m-card{background:rgba(3,18,30,.54);backdrop-filter:blur(2px)}.forest-grass-wet .fgw-map-layer-tools{top:auto;right:458px;left:auto;bottom:72px;width:248px;height:430px}.forest-grass-wet .fgw-map-layer-tools .m-card{width:100%!important;height:100%!important}.forest-grass-wet .fgw-ndvi-timeline{position:absolute;left:calc(50% - 136px);bottom:112px;z-index:7;transform:translate(-50%);pointer-events:all}.forest-grass-wet .fgw-map-feature-info{right:456px;bottom:150px}.forest-grass-wet .fgw-bottom-topic{position:absolute;left:50%;bottom:48px;z-index:8;transform:translate(-50%);pointer-events:all} |
||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
@ -1 +1 @@ |
||||
import{r as o,n as y}from"./index-749a1b46-1786512564754.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}; |
||||
import{r as o,n as y}from"./index-bb4d300c-1786515885761.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}; |
||||
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 499 B |
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 9.2 KiB |