You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
23 KiB
2 lines
23 KiB
var Ft=Object.defineProperty,Ct=Object.defineProperties;var Pt=Object.getOwnPropertyDescriptors;var Ve=Object.getOwnPropertySymbols;var Lt=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable;var ze=(b,m,g)=>m in b?Ft(b,m,{enumerable:!0,configurable:!0,writable:!0,value:g}):b[m]=g,x=(b,m)=>{for(var g in m||(m={}))Lt.call(m,g)&&ze(b,g,m[g]);if(Ve)for(var g of Ve(m))Tt.call(m,g)&&ze(b,g,m[g]);return b},S=(b,m)=>Ct(b,Pt(m));var U=(b,m,g)=>new Promise((R,P)=>{var V=N=>{try{q(g.next(N))}catch(O){P(O)}},j=N=>{try{q(g.throw(N))}catch(O){P(O)}},q=N=>N.done?R(N.value):Promise.resolve(N.value).then(V,j);q((g=g.apply(b,m)).next())});import{H as Ke}from"./index.esm.min-469b3f53-1784074877048.js";import{_ as De}from"./index-1f5d6021-1784074877048.js";import{M as Nt}from"./index-b4ec1ae2-1784074877048.js";import{a as Ge,_ as $t}from"./FeatureInfoPanel-8e9f606e-1784074877048.js";import{_ as At}from"./LayerPanel-9c0c5952-1784074877048.js";import{_ as Ht}from"./TopicSwitcher-3ee7ffcb-1784074877048.js";import{A as Bt}from"./assets-34f9bc99-1784074877048.js";import{g as ge}from"./townshipBoundaries-1b068bef-1784074877048.js";import{q as ee,r as Rt,s as Ie}from"./screen2Standard-9c6af3a2-1784074877048.js";import{w as Vt,f as zt,l as We,m as Ue,n as Kt,o as Dt,p as Gt,q as It,s as Ee,e as me}from"./chartTheme-9a56b109-1784074877048.js";import{g as Ye,a as Wt,i as Ut,b as Et,c as pe,d as we,e as Yt}from"./data-631f012a-1784074877048.js";import{g as f,w as be,q as jt,h as qt,A as le,o as i,c as u,b as ie,a as l,j as T,F as M,y as F,C as E,x as je,u as oe,n as Y,t as c,J as ue,d as C}from"./index-1784074877048.js";import"./index-bc047bb3-1784074877048.js";import"./index-e9f36657-1784074877048.js";import"./livestockData-36ec0ae2-1784074877048.js";const Ot={class:"yak-industry-chain"},Jt={key:0,class:"industry-map-loading"},Xt={key:1,class:"fgw-left industry-side-panel industry-side-panel--left"},Zt={class:"fgw-side-stack industry-side-stack is-left"},Qt={key:1,class:"industry-panel-empty"},ea={key:3,class:"industry-featured-base-list"},ta=["disabled","aria-label","onClick"],aa={class:"industry-featured-base__index"},na={class:"industry-featured-base__copy"},sa={key:4,class:"industry-leadership-mode-list"},ra={key:5,class:"industry-ledger-list"},la={key:2,class:"fgw-right industry-side-panel industry-side-panel--right"},ia={class:"fgw-side-stack industry-side-stack is-right"},oa={key:1,class:"industry-panel-empty"},ua={key:3,class:"industry-featured-base-list"},ca=["disabled","aria-label","onClick"],da={class:"industry-featured-base__index"},ya={class:"industry-featured-base__copy"},fa={key:4,class:"industry-leadership-mode-list"},ha={key:5,class:"industry-ledger-list"},va={key:3,class:"industry-artificial-layer-tools"},ga={class:"industry-point-detail__head"},ma={class:"industry-point-detail__name"},pa={key:0,class:"industry-point-detail__profile"},wa={class:"industry-point-detail__profile-head"},ba=["src","alt"],_a={class:"industry-point-detail__facts"},ka={class:"industry-point-detail__highlights"},xa={class:"industry-bottom-switcher"},Da={__name:"index",props:{active:{type:Boolean,default:!0}},emits:["module-stats","loading-progress","map-ready"],setup(b,{expose:m,emit:g}){const R=b,P=g,V=ee.sideCardWidth,j=C(typeof window=="undefined"?1080:window.innerHeight),q=ee.sideCardGap,N=ee.sidePanelTop,O=ee.sidePanelBottom,qe=ee.sideCardMinHeight,J=f(()=>Rt(j.value)),ce=f(()=>Ie(J.value,2)),Oe=f(()=>Ie(J.value,4)),y=C("family-pasture"),p=C(null),z=C(!1),h=C(null),L=C(""),X=C({x:0,y:0}),$=C(null),Z=C({x:0,y:0}),K=C(!1),D=C(["artificial-grassland-plots"]);let te=null,de=!1,G=!1,A=null,_=null,ye=!1;const I=f(()=>Ye(y.value));f(()=>y.value==="family-pasture");const Q=f(()=>y.value==="artificial-grassland"),Je=f(()=>[{key:"artificial-grassland-plots",name:"待核定种草图斑",color:"#30DCFF",stroke:"#C9FBFF"},{key:"yak-industry-points",name:"人工种草基地点",color:"#19FFC6",stroke:"#B7FFF2"}]),Xe=f(()=>[{key:"artificial-grassland-pending",name:"待核定种草图斑",fillColor:"#30DCFF",strokeColor:"#C9FBFF",selectable:!1},{key:"artificial-grassland-base",name:"人工种草基地点",fillColor:"#19FFC6",strokeColor:"#B7FFF2",selectable:!1}]),Ze=f(()=>Wt(y.value)),_e=f(()=>it(Ze.value)),ke=f(()=>{const e=_e.value.left;return e.filter(t=>!(t!=null&&t.placeholder)).map(t=>Se(t,e.length))}),xe=f(()=>{const e=_e.value.right;return e.map(t=>Se(t,e.length))}),Qe=f(()=>{var n,a,s;const e=ge("yak-industry-chain","yak-industry-points");if(Q.value){const r=[];if(D.value.includes("artificial-grassland-plots")){const v=ge("yak-industry-chain","artificial-grassland-plots");v&&r.push(S(x({},v),{activeLegend:(n=v.legends)==null?void 0:n[0]}))}if(D.value.includes("yak-industry-points")&&e){const v=(a=e.legends)==null?void 0:a.find(k=>k.key==="yak-industry-artificial-grassland");r.push(S(x({},e),{showPointLabels:!1,activeLegend:v}))}if(!r.length)return null;const[d,...o]=r;return S(x({},d),{overlayLayers:o})}const t=(s=e==null?void 0:e.legends)==null?void 0:s.find(r=>{var d;return((d=r.match)==null?void 0:d.value)===y.value||r.key===`yak-industry-${y.value}`});return e&&S(x({},e),{hidePointFeatures:y.value==="family-pasture",hidePointMarkers:y.value==="family-pasture",showPointLabels:y.value==="family-pasture"?!1:e.showPointLabels,activeLegend:t||{key:`yak-industry-empty-${y.value}`,name:I.value.name,fillColor:I.value.color,strokeColor:I.value.color,match:{field:"stageKey",value:y.value}}})}),et=f(()=>Ut.map(e=>({key:e.key,name:e.name,color:e.color,width:e.width}))),tt=f(()=>{const e=y.value==="family-pasture",t=Q.value&&D.value.includes("yak-industry-points");return{showTownNames:!0,showBars:!1,showPointMarkers:!e&&!Q.value||t,showMissingTownStats:e,title:e?"家庭生态牧场":`${I.value.name}排行`,metricLabel:e?"生态牧场":I.value.metricLabel,unit:I.value.unit,rows:e?Et():[]}}),w=f(()=>{var e;return pe(S(x({},h.value||{}),{featuredBaseKey:L.value||((e=h.value)==null?void 0:e.featuredBaseKey)}))}),ae=f(()=>{const e=h.value;if(!e)return[];if(w.value){const t=w.value,n=we(e).filter(a=>["设计存栏","年出栏量"].includes(a.label));return[{label:"所在地",value:`${t.town} ${t.village}`},{label:"运营单位",value:t.operator},...n].filter(a=>a.value!==void 0&&a.value!==null&&String(a.value).trim()!=="")}return e.categoryCode==="YC-FAMILY-PASTURE"?[{label:"所在乡镇",value:B(e.town)},...we(e)].filter(t=>t.value!==void 0&&t.value!==null&&String(t.value).trim()!==""):[{label:"所属环节",value:B(e.stageName)},{label:"主体类型",value:B(e.categoryName)},{label:"所在乡镇",value:B(e.town)},{label:"能力规模",value:St(e)},{label:"运行状态",value:B(e.status)},...we(e)].filter(t=>t.value!==void 0&&t.value!==null&&String(t.value).trim()!=="")}),at=f(()=>{var e,t;return w.value?"重点示范基地":B(((e=h.value)==null?void 0:e.categoryName)||((t=h.value)==null?void 0:t.stageName))}),nt=f(()=>{var e,t;return((e=w.value)==null?void 0:e.name)||B((t=h.value)==null?void 0:t.name)}),st=f(()=>{var Re;const t=((Re=h.value)==null?void 0:Re.categoryCode)==="YC-FAMILY-PASTURE",n=ae.value.filter(Mt=>Mt.wide).length,a=Math.ceil(Math.max(0,ae.value.length-n)/2)+n,s=w.value?w.value.image?576:532:t?Math.min(400,Math.max(318,150+a*38)):Math.min(520,Math.max(252,116+ae.value.length*40)),r=24,d=28,o={x:Math.max(r,Math.min(1920-r,Number(X.value.x||0))),y:Math.max(r,Math.min(1080-r,Number(X.value.y||0)))},v=V+46,k=1920-V-46,H=Math.min(Math.max(o.x-456/2,v),k-456),W=Math.min(Math.max(o.y-s-d,128),1080-s-116),ve=Math.min(Math.max(o.x-H,34),456-34);return{left:`${H}px`,top:`${W}px`,"--point-arrow-left":`${ve}px`,"--point-arrow-top":"100%","--point-arrow-x":"-50%","--point-arrow-y":"-8px","--point-arrow-rotate":"45deg"}}),rt=f(()=>{const o={x:Math.max(452,Math.min(1468,Number(Z.value.x||960))),y:Math.max(128,Math.min(960,Number(Z.value.y||540)))},v=Math.min(Math.max(o.x-460/2,452),1468-460),k=o.y-374-26,H=k>=116,W=H?k:Math.min(Math.max(o.y+26,116),944-374),ve=Math.min(Math.max(o.x-v,26),460-26);return{left:`${v}px`,top:`${W}px`,"--feature-arrow-left":`${ve}px`,"--feature-arrow-top":H?`${374-6}px`:"-6px","--feature-arrow-rotate":H?"45deg":"225deg"}});be(y,e=>{vt(e)},{immediate:!0}),jt(()=>{fe(),window.addEventListener("resize",fe),gt()}),qt(()=>{var e,t;ye=!0,window.removeEventListener("resize",fe),A&&window.clearTimeout(A),_&&window.cancelAnimationFrame(_),(t=(e=p.value)==null?void 0:e.destroyMap)==null||t.call(e)}),be(()=>R.active,e=>{var t,n,a,s;p.value&&(e?(he(),(n=(t=p.value).resume)==null||n.call(t)):(s=(a=p.value).pause)==null||s.call(a))}),be(D,()=>{se()},{deep:!0});function lt(e){e!==y.value&&(y.value=e,se())}function it(e={}){const t=Me(e.left),n=Me(e.right);if(n.length)return{left:t,right:n};const a=[...t,...n];return a.length<=4?{left:a,right:[]}:{left:t,right:n}}function Se(e,t=0){if((e==null?void 0:e.fixedHeight)===!0)return S(x({},e),{height:J.value});if((e==null?void 0:e.fillHeight)===!0)return S(x({},e),{height:ot(t)});if(["projectTable","projectLedger"].includes(e==null?void 0:e.type))return S(x({},e),{height:ut(e)});const n=Number((e==null?void 0:e.height)||0)>=400||(e==null?void 0:e.span)===2,a=(e==null?void 0:e.keepSpanHeight)===!0;return S(x({},e),{height:t===1&&!a?Oe.value:n?ce.value:J.value})}function ot(e=1){const t=Math.max(1,Number(e)||1),a=Math.max(1080,Number(j.value)||1080)-N-O-q*Math.max(t-1,0);return Math.max(qe,Math.floor(a/t))}function ut(e={}){if((e==null?void 0:e.span)===2||(e==null?void 0:e.keepSpanHeight)===!0)return ce.value;const t=Array.isArray(e.rows)?e.rows:[],n=100,a=32,s=n+25+t.length*a;return Math.min(ce.value,Math.max(J.value,s))}function Me(e=[]){return e.filter(Boolean)}function ne(e={}){return(e==null?void 0:e.renderer)==="business"&&(e==null?void 0:e.type)==="column"&&(e==null?void 0:e.variant)==="townCompact"}function Fe(e={}){return Array.isArray(e.rows)&&e.rows.some(t=>Number(t!=null&&t.zero?0:(t==null?void 0:t.value)||0)>0)}function Ce(e={}){const t=Array.isArray(e.rows)?e.rows:[],n=t.map(r=>Number(r!=null&&r.zero?0:(r==null?void 0:r.value)||0)),a=Math.max(...n,1),s=ct(t);return Vt({animationDuration:720,animationEasing:"cubicOut",grid:{top:30,right:8,bottom:58,left:8,containLabel:!1},tooltip:zt((r=[])=>{var W;const o=((W=(Array.isArray(r)?r:[r])[0])==null?void 0:W.data)||{},v=o.zero?"0":o.displayValue,k=o.unit||s||"",H=o.extra?`<br/><span style="color:${We}">${o.extra}</span>`:"";return`${o.name||""}<br/><b style="color:${Ue}">${v}${k}</b>${H}`},{trigger:"axis",axisPointer:{type:"shadow",shadowStyle:{color:"rgba(48, 220, 255, 0.06)"}},confine:!0}),graphic:s?[{type:"text",right:10,top:4,silent:!0,style:{text:`单位:${s}`,fill:We,font:`10px ${Kt}`}}]:[],xAxis:{type:"category",data:t.map(r=>(r==null?void 0:r.name)||""),axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:"rgba(48, 220, 255, 0.26)"}},axisLabel:{color:Dt,fontSize:10,fontWeight:700,lineHeight:14,interval:0,margin:10,formatter:(e==null?void 0:e.axisLabelMode)==="short"?yt:dt}},yAxis:{type:"value",min:0,max:Math.ceil(a*1.18),splitNumber:3,axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:Gt,type:"dashed"}}},series:[{type:"bar",data:t.map((r,d)=>{var k;const o=!!(r!=null&&r.zero||r!=null&&r.isZero),v=o?0:Number((r==null?void 0:r.value)||0);return{name:r==null?void 0:r.name,value:v,displayValue:(k=r==null?void 0:r.displayValue)!=null?k:Pe(v),unit:(r==null?void 0:r.unit)||s||"",extra:(r==null?void 0:r.extra)||"",zero:o,itemStyle:{color:o?"rgba(48, 220, 255, 0.1)":e!=null&&e.uniformColor?ht():ft(d,r)}}}),barWidth:6,barMinHeight:3,showBackground:!0,backgroundStyle:{color:"rgba(48, 220, 255, 0.06)",borderColor:"rgba(48, 220, 255, 0.08)",borderWidth:1},itemStyle:{borderRadius:[4,4,0,0]},label:{show:!0,position:"top",distance:5,color:Ue,fontFamily:It,fontSize:10,fontWeight:700,formatter(r={}){var o;const d=r.data||{};return d.zero?"":(o=d.displayValue)!=null?o:Pe(Number(d.value||0))}},emphasis:{focus:"series",itemStyle:{shadowBlur:0,shadowColor:"rgba(48, 220, 255, 0)"}}}]})}function ct(e=[]){const t=[...new Set(e.map(n=>n==null?void 0:n.unit).filter(Boolean))];return t.length===1?t[0]:""}function dt(e){const t=String(e||"").replace(/\s+/g,"");return Array.from(t).slice(0,3).join(`
|
|
`)}function yt(e){return Array.from(String(e||"").replace(/\s+/g,"")).slice(0,2).join("")}function ft(e,t={}){return t.color||t.fillColor?t.color||t.fillColor:Ee(me[e%me.length])}function ht(){return Ee(me[0])}function Pe(e){const t=Number(e);return Number.isFinite(t)?Number.isInteger(t)?`${t}`:`${Number(t.toFixed(2))}`:"--"}function fe(){j.value=typeof window=="undefined"?1080:window.innerHeight}function vt(e=y.value){const t=e||y.value;P("module-stats",{moduleKey:"yak-industry-chain",items:Yt(t)})}function gt(){var e,t,n;te=new Bt,de=!1,P("loading-progress",{progress:0}),(t=(e=te.instance)==null?void 0:e.on)==null||t.call(e,"onProgress",(a,s,r)=>{P("loading-progress",{progress:Math.floor(s/(r||1)*100),path:a,itemsLoaded:s,itemsTotal:r})}),(n=te.ready)==null||n.then(()=>{de=!0,he()}).catch(()=>{z.value=!0,P("map-ready")})}function he(){ye||!R.active||!de||G||(G=!0,A&&window.clearTimeout(A),A=window.setTimeout(()=>{A=null,Le()},600))}function Le(e=0){return U(this,null,function*(){var n,a;if(ye)return;if(!R.active){G=!1;return}if(yield le(),!R.active){G=!1;return}const t=p.value;if((n=t==null?void 0:t.loadMap)==null||n.call(t,te),t!=null&&t.canvasMap){z.value=!0,P("loading-progress",{progress:100}),P("map-ready"),(a=t.play)==null||a.call(t);return}if(e<24){window.setTimeout(()=>Le(e+1),120);return}G=!1,z.value=!0,P("map-ready")})}function mt(){A&&(window.clearTimeout(A),A=null)}function Te(){var e,t,n,a;(t=(e=p.value)==null?void 0:e.resume)==null||t.call(e),(a=(n=p.value)==null?void 0:n.refreshView)==null||a.call(n)}function pt(){var e,t;if(se(),(t=(e=p.value)==null?void 0:e.hasMap)!=null&&t.call(e)){z.value=!0,Te();return}mt(),z.value=!1,G=!1,le(()=>{he()})}m({refreshMapView:Te,resetMap:pt});function wt(e={}){var a,s,r,d;const t=e.feature||null,n=(t==null?void 0:t.properties)||{};if(((a=t==null?void 0:t.layer)==null?void 0:a.key)==="artificial-grassland-plots"){h.value=null,$.value=t;const o=e.screen||((r=(s=p.value)==null?void 0:s.getVectorFeatureScreen)==null?void 0:r.call(s,t.feature));o&&(Z.value=re(o)),K.value=!!o;return}if($.value=null,K.value=!1,n.stageKey){if(String(n.stageKey)!==String(y.value)){h.value=null,L.value="";return}L.value=((d=pe(n))==null?void 0:d.key)||"",h.value=n,X.value=re(e.screen);return}h.value=null,L.value=""}function Ne(){return U(this,arguments,function*(e={}){if(e.stageKey==="artificial-grassland"){yield bt(e);return}yield Ae(e)})}function bt(){return U(this,arguments,function*(e={}){e!=null&&e.canLocate&&(Q.value||(y.value="artificial-grassland",yield le()),h.value=null,L.value="",$.value=null,Z.value={x:960,y:510},K.value=!1,window.setTimeout(()=>$e(e),90))})}function $e(e={},t=0){var s,r,d;const n=(r=(s=p.value)==null?void 0:s.focusVectorFeature)==null?void 0:r.call(s,e);if(!(n!=null&&n.feature)){t<4&&window.setTimeout(()=>$e(e,t+1),180);return}$.value={id:((d=n.feature.properties)==null?void 0:d.id)||e.id,properties:n.feature.properties||{},feature:n.feature,layer:ge("yak-industry-chain","artificial-grassland-plots")};const a=$.value.id;window.setTimeout(()=>{var o;((o=$.value)==null?void 0:o.id)===a&&(_t(n.feature,n.screen),K.value=!0)},820)}function _t(e,t=null){var a,s;const n=((s=(a=p.value)==null?void 0:a.getVectorFeatureScreen)==null?void 0:s.call(a,e))||t;n&&(Z.value=re(n))}function Ae(){return U(this,arguments,function*(e={}){var a;if(!e.canLocate)return;const t=!!(e.stageKey&&e.stageKey!==y.value);t&&(y.value=e.stageKey,yield le());const n=kt(e);L.value=((a=pe(n))==null?void 0:a.key)||"",h.value=n,X.value={x:960,y:500},window.setTimeout(()=>{var r,d;const s=(d=(r=p.value)==null?void 0:r.focusYakIndustryPoint)==null?void 0:d.call(r,n);Be(n,s),xt(n)},t?320:80)})}function He(){return U(this,arguments,function*(e={}){e.point&&(L.value=e.key,yield Ae(e.point))})}function se(){var t,n,a,s;h.value=null,L.value="",$.value=null,K.value=!1,_&&(window.cancelAnimationFrame(_),_=null);const e=((n=(t=p.value)==null?void 0:t.canvasMap)==null?void 0:n.value)||((a=p.value)==null?void 0:a.canvasMap);(s=e==null?void 0:e.clearSelectedFeature)==null||s.call(e)}function kt(e={}){var a;const t=Number(e.longitude),n=Number(e.latitude);return S(x({},e),{id:e.key||e.id,name:e.fullName||e.name,stageKey:e.stageKey,stageName:e.stageName||((a=Ye(e.stageKey))==null?void 0:a.name),categoryName:e.categoryName||e.typeName,capacity:e.value,capacityUnit:e.unit,longitude:t,latitude:n,geometry:Number.isFinite(t)&&Number.isFinite(n)?{type:"Point",coordinates:[t,n]}:void 0,preferCoordinateMatch:Number.isFinite(t)&&Number.isFinite(n),status:e.status})}function Be(e,t=null){var a,s;const n=((s=(a=p.value)==null?void 0:a.getYakIndustryPointScreen)==null?void 0:s.call(a,e))||(t==null?void 0:t.screen);n&&(X.value=re(n))}function xt(e,t=920){var s,r;_&&window.cancelAnimationFrame(_);const n=((r=(s=window.performance)==null?void 0:s.now)==null?void 0:r.call(s))||Date.now(),a=()=>{var o,v;if(!h.value||h.value.id!==e.id){_=null;return}if(Be(e),(((v=(o=window.performance)==null?void 0:o.now)==null?void 0:v.call(o))||Date.now())-n<t){_=window.requestAnimationFrame(a);return}_=null};_=window.requestAnimationFrame(a)}function St(e){return e.capacity===void 0||e.capacity===null||e.capacity===""?"":`${e.capacity}${e.capacityUnit||""}`}function B(e){return String(e!=null?e:"").replace(/\bcxpt[-_./\s]*/gi,"").replace(/\s+/g," ").trim()}function re(e={}){var o;const t=document.querySelector("#large-screen"),n=(o=t==null?void 0:t.getBoundingClientRect)==null?void 0:o.call(t),a=n!=null&&n.width?1920/n.width:1,s=n!=null&&n.height?1080/n.height:1,r=(n==null?void 0:n.left)||0,d=(n==null?void 0:n.top)||0;return{x:(Number(e.x)-r)*a,y:(Number(e.y)-d)*s}}return(e,t)=>{var n;return i(),u("div",Ot,[ie(Nt,{ref_key:"mapSceneRef",ref:p,class:"industry-map-scene","active-layer":Qe.value,"map-ranking":tt.value,"admin-boundary-line-scale":2.4,"auto-apply-layer-map-view":!1,"max-zoom":21,onFeatureInfo:wt},null,8,["active-layer","map-ranking"]),t[3]||(t[3]=l("div",{class:"industry-map-scrim"},null,-1)),z.value?T("",!0):(i(),u("div",Jt,"3D地图加载中")),ke.value.length?(i(),u("div",Xt,[l("div",Zt,[(i(!0),u(M,null,F(ke.value,a=>(i(),E(De,{key:a.key,class:Y(["fgw-side-card industry-side-card left-card",`industry-side-card--${a.key}`]),title:a.title,width:oe(V),height:a.height},{default:je(()=>[ne(a)&&Fe(a)?(i(),E(oe(Ke),{key:0,class:"industry-town-column-chart",option:Ce(a),autoresize:!0},null,8,["option"])):ne(a)?(i(),u("div",Qt," 暂无业务统计数据 ")):a.renderer==="business"?(i(),E(Ge,{key:2,panel:a,compact:"",onRowSelect:Ne},null,8,["panel"])):a.renderer==="featured"?(i(),u("div",ea,[(i(!0),u(M,null,F(a.rows,(s,r)=>(i(),u("button",{key:s.key,class:Y(["industry-featured-base",{"is-active":L.value===s.key}]),type:"button",disabled:!s.point,"aria-label":`查看${s.name}`,onClick:d=>He(s)},[l("span",aa,c(`0${r+1}`),1),l("span",na,[l("strong",null,c(s.name),1),l("em",null,c(s.town)+" · "+c(s.tag),1),l("small",null,c(s.summary),1)])],10,ta))),128))])):a.renderer==="leadershipMode"?(i(),u("div",sa,[(i(!0),u(M,null,F(a.rows,(s,r)=>(i(),u("div",{key:s.key,class:"industry-leadership-mode"},[l("i",{style:ue({color:s.color,background:s.color})},null,4),l("span",null,c(`0${r+1}`),1),l("div",null,[l("strong",null,c(s.name),1),l("small",null,c(s.description),1)])]))),128))])):a.renderer==="ledger"?(i(),u("div",ra,[(i(!0),u(M,null,F(a.rows,s=>(i(),u("div",{key:s.key,class:"industry-ledger-row"},[l("div",null,[l("strong",null,c(s.name),1),l("span",null,c(s.typeName)+" / "+c(s.town),1)]),l("em",null,c(s.valueText),1)]))),128))])):T("",!0)]),_:2},1032,["class","title","width","height"]))),128))])])):T("",!0),xe.value.length?(i(),u("div",la,[l("div",ia,[(i(!0),u(M,null,F(xe.value,a=>(i(),E(De,{key:a.key,class:Y(["fgw-side-card industry-side-card right-card",`industry-side-card--${a.key}`]),title:a.title,width:oe(V),height:a.height},{default:je(()=>[ne(a)&&Fe(a)?(i(),E(oe(Ke),{key:0,class:"industry-town-column-chart",option:Ce(a),autoresize:!0},null,8,["option"])):ne(a)?(i(),u("div",oa," 暂无业务统计数据 ")):a.renderer==="business"?(i(),E(Ge,{key:2,panel:a,compact:"",onRowSelect:Ne},null,8,["panel"])):a.renderer==="featured"?(i(),u("div",ua,[(i(!0),u(M,null,F(a.rows,(s,r)=>(i(),u("button",{key:s.key,class:Y(["industry-featured-base",{"is-active":L.value===s.key}]),type:"button",disabled:!s.point,"aria-label":`查看${s.name}`,onClick:d=>He(s)},[l("span",da,c(`0${r+1}`),1),l("span",ya,[l("strong",null,c(s.name),1),l("em",null,c(s.town)+" · "+c(s.tag),1),l("small",null,c(s.summary),1)])],10,ca))),128))])):a.renderer==="leadershipMode"?(i(),u("div",fa,[(i(!0),u(M,null,F(a.rows,(s,r)=>(i(),u("div",{key:s.key,class:"industry-leadership-mode"},[l("i",{style:ue({color:s.color,background:s.color})},null,4),l("span",null,c(`0${r+1}`),1),l("div",null,[l("strong",null,c(s.name),1),l("small",null,c(s.description),1)])]))),128))])):a.renderer==="ledger"?(i(),u("div",ha,[(i(!0),u(M,null,F(a.rows,s=>(i(),u("div",{key:s.key,class:"industry-ledger-row"},[l("div",null,[l("strong",null,c(s.name),1),l("span",null,c(s.typeName)+" / "+c(s.town),1)]),l("em",null,c(s.valueText),1)]))),128))])):T("",!0)]),_:2},1032,["class","title","width","height"]))),128))])])):T("",!0),Q.value?(i(),u("div",va,[ie(At,{modelValue:D.value,"onUpdate:modelValue":t[0]||(t[0]=a=>D.value=a),"topic-key":"yak-industry-chain",layers:Je.value,legends:Xe.value,width:248,height:430,multiple:""},null,8,["modelValue","layers","legends"])])):T("",!0),$.value&&K.value?(i(),u("div",{key:4,class:"industry-map-feature-info",style:ue(rt.value)},[ie($t,{title:"人工草地详情",feature:$.value,width:460,height:374},null,8,["feature"])],4)):T("",!0),h.value?(i(),u("div",{key:5,class:"industry-point-detail",style:ue(st.value)},[l("div",ga,[l("span",null,c(at.value),1),l("button",{type:"button",title:"关闭",onClick:se},"×")]),l("div",ma,c(nt.value),1),w.value?(i(),u("div",pa,[l("div",wa,[t[1]||(t[1]=l("span",null,"基地介绍",-1)),l("strong",null,c(w.value.tag),1)]),l("p",null,c(w.value.summary),1),w.value.image?(i(),u("img",{key:0,class:"industry-point-detail__image",src:w.value.image,alt:`${w.value.name}项目资料图`},null,8,ba)):T("",!0),l("div",_a,[(i(!0),u(M,null,F(w.value.facts,a=>(i(),u("div",{key:a.label},[l("span",null,c(a.label),1),l("strong",null,c(a.value),1),l("small",null,c(a.note),1)]))),128))]),l("div",ka,[t[2]||(t[2]=l("span",null,"示范亮点",-1)),(i(!0),u(M,null,F(w.value.highlights,a=>(i(),u("i",{key:a},c(a),1))),128))])])):T("",!0),l("div",{class:Y(["industry-point-detail__grid",{"is-family-layout":((n=h.value)==null?void 0:n.categoryCode)==="YC-FAMILY-PASTURE"}])},[(i(!0),u(M,null,F(ae.value,a=>(i(),u("div",{key:a.label,class:Y(["industry-point-detail__row",{"is-wide":a.wide}])},[l("span",null,c(a.label),1),l("strong",null,c(a.value),1)],2))),128))],2)],4)):T("",!0),l("div",xa,[ie(Ht,{"model-value":y.value,topics:et.value,"onUpdate:modelValue":lt},null,8,["model-value","topics"])])])}}};export{Da as default};
|
|
|