Agriculture-front-end/dist/assets/index.03b39294.js
2023-06-22 06:50:23 +08:00

14 lines
20 KiB
JavaScript

import{_ as Le,r as f,A as K,U as Ie,V as Pe,X as Z,d as b,o as L,c as z,l as o,e as g,w as _,m as k,g as A,x as I,L as Te,N as Ee,f as N,k as Fe,y as re,p as Oe,q as ze}from"./index.9172db1d.js";import ae from"./downloads.e955445d.js";import{_ as Ae,a as Ve,b as We,c as Xe,d as Be,e as Ze}from"./linesGL.90f708a5.js";import{i as ee}from"./index.c9f5bd8b.js";import{u as te}from"./useEcharts.963c5809.js";import{a as Ne,b as Re,c as Ue,g as Ge}from"./classify.7a190974.js";const C=P=>(Oe("data-v-d061be2f"),P=P(),ze(),P),Qe={class:"center"},qe=C(()=>o("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),je={class:"rightWra"},Je={class:"rightTop"},Ye=C(()=>o("div",{class:"title"},[o("span",null,"\u4F4D\u7F6E\u5B9A\u4F4D")],-1)),$e=C(()=>o("div",{class:"depth"},[o("p",{class:"SelectedDiv"},"\u5730\u540D"),o("p",null,"\u884C\u653F\u533A"),o("p",null,"\u7ECF\u7EAC\u5EA6")],-1)),He={class:"seach_button"},Ke={class:"rightbottom"},et=re('<div class="title" data-v-d061be2f><span data-v-d061be2f>\u4FE1\u606F\u7EDF\u8BA1</span></div><div class="overview" data-v-d061be2f><div class="overview_title" data-v-d061be2f>\u4FE1\u606F\u603B\u89C8</div><div class="overview_content" data-v-d061be2f><div data-v-d061be2f>\u533A\u5212</div><span data-v-d061be2f>\u9EC4\u5C9B\u533A</span></div><div class="overview_content" data-v-d061be2f><div data-v-d061be2f>\u57FA\u672C\u519C\u7530</div><span data-v-d061be2f>12364\u4EA9</span></div></div>',2),tt={class:"chart_div"},rt={class:"chart_div_title"},at=C(()=>o("span",null,"\u57FA\u672C\u519C\u7530\u9762\u79EF\u53CA\u5360\u6BD4",-1)),ot=C(()=>o("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),lt={class:"chart_div"},st={class:"chart_div_title"},nt=C(()=>o("span",null,"\u4E24\u533A\u5212\u5B9A\u9762\u79EF\u53CA\u5360\u6BD4",-1)),it=C(()=>o("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),dt=re('<div class="tool" data-v-d061be2f><span data-v-d061be2f><img src="'+Ae+'" alt="" data-v-d061be2f></span><span data-v-d061be2f><img src="'+Ve+'" alt="" data-v-d061be2f></span><span data-v-d061be2f><img src="'+We+'" alt="" data-v-d061be2f></span><span data-v-d061be2f><img src="'+Xe+'" alt="" data-v-d061be2f></span><span data-v-d061be2f><img src="'+Be+'" alt="" data-v-d061be2f></span><span data-v-d061be2f><img src="'+Ze+'" alt="" data-v-d061be2f></span></div>',1),ct={id:"popup"},ut={id:"pop"},pt={key:0},mt=C(()=>o("div",null,"\u6751\u540D\uFF1A",-1)),ft={class:"mt-4"},gt={class:"treeDiv"},vt={__name:"index",setup(P){let n=f(null);const oe=f("370211");f(null);let D=K({arr:[],brr:[],crr:[]});K({arr:[]});const R=f({name:"",value:""});f([]);const le=f([]),V=f(!1);f(!0);let W=f(!0);const U=f(""),G=f("null"),Q=f("null"),se={children:"children",label:"label"};Ie(()=>D.arr,e=>{console.log("val:",e)});var q={title:[]};let X={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]};const ne=[{label:"\u9AD8\u6807\u51C6\u519C\u7530",children:[{label:"\u9AD8\u6807\u51C6\u519C\u7530"}]},{label:"\u6C38\u4E45\u57FA\u672C\u519C\u7530",children:[{label:"\u6C38\u4E45\u57FA\u672C\u519C\u7530"}]},{label:"\u8015\u5730",children:[{label:"\u8015\u5730"}]},{label:"\u7CAE\u98DF\u529F\u80FD\u533A",children:[{label:"\u7247\u5757\u4FE1\u606F"},{label:"\u5730\u5757\u4FE1\u606F"}]},{label:"\u571F\u5730\u786E\u6743",children:[{label:"\u571F\u5730\u786E\u6743"}]}];Pe(()=>{ve(),ye(),he(),be(),de(),ue(),Ce(),we()});const ie={url:"http://{s}.tianditu.gov.cn/img_c/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=c&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=31091965e263284a501a723b8909f405",layer:"tdtCva",style:"default",format:"tiles",tileMatrixSetID:"c",subdomains:["t0","t1","t2","t3","t4","t5","t6","t7"],tilingScheme:new Cesium.GeographicTilingScheme,tileMatrixLabels:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],maximumLevel:18};Cesium.Ion.defaultAccessToken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiYzcwZmJmNi02MzQ5LTQ1MGEtODgzMy0yZTZiZGExY2MzMGMiLCJpZCI6MTAxOTgsInNjb3BlcyI6WyJhc2wiLCJhc3IiLCJnYyJdLCJpYXQiOjE1ODEzMDgxNTR9.NeJU4yfUi-SnLrNDOBYsQgmiSh3B4axCTi1m84Qw99c";function de(){n=new Cesium.Viewer("cesiumContainer",{baseLayerPicker:!1,shouldAnimate:!0,infoBox:!1,animation:!1,timeline:!1,geocoder:!1,homeButton:!1,navigationHelpButton:!1,selectionIndicator:!1,fullscreenButton:!1,terrainProvider:new Cesium.EllipsoidTerrainProvider({}),sceneModePicker:!1,contextOptions:{webgl:{alpha:!0}},imageryProvider:new Cesium.WebMapTileServiceImageryProvider({...ie})}),n.cesiumWidget.creditContainer.style.display="none",Y("shuzisannong:huangdaoqu_town","tl"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),pe(),ke()}function j(e,t,r){e.forEach(a=>{let l=[];a[0].forEach(d=>{l.push(d[0]),l.push(d[1])}),n.entities.add({name:t,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(l),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:r?Cesium.Color.fromCssColorString(r):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function ce(e){return e>48e6?0:e>24e6?1:e>12e6?2:e>6e6?3:e>3e6?4:e>15e5?5:e>75e4?6:e>375e3?7:e>187500?8:e>93750?9:e>46875?10:e>23437.5?11:e>11718.75?12:e>5859.38?13:e>2929.69?14:e>1464.84?15:e>732.42?16:e>366.21?17:18}function ue(){Z({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afarmland&maxFeatures=50&outputFormat=application%2Fjson",method:"get"}).then(e=>{console.log("\u519C\u7530\uFF1A",e),le.value=e.data.features}).catch(e=>{})}let v=f({label:[]}),T="";function pe(){var e=new Cesium.ScreenSpaceEventHandler(n.canvas);e.setInputAction(function(t){var r=n.camera.getPickRay(t.position),a=n.scene.globe.pick(r,n.scene);if(a){let l=Cesium.Cartographic.fromCartesian(a);if(l){let d=new Cesium.Cartesian2,c=n.camera.positionCartographic.height,m=ce(c);const p=n.imageryLayers._layers,i=p.findIndex(u=>u._imageryProvider._layers&&u._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(i>-1){const u=p[i];let s=u._imageryProvider;if(s&&s.ready&&s._layers&&u.show===!0){d=s.tilingScheme.positionToTileXY(l,m,d);let y=s.pickFeatures(d.x,d.y,m,l.longitude,l.latitude);y&&y.then(F=>{if(F.length>0){let h=F[0];if(h.properties&&h.properties.XZDM)if(T!==h.properties.XZDM){T=h.properties.XZDM,oe.value=T,selectTab();let S=h.data;n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(S.bbox[0],S.bbox[1],S.bbox[2],S.bbox[3]),duration:2}),M("townLine"),j(S.geometry&&S.geometry.coordinates,"townLine","yellow"),x(["village_CQL"]),fe(`XZDM=${h.properties.XZDM}`,"village_CQL");let O=n.entities._entities._array;for(var w=O.length-1;w>=0;w--)if(O[w]._name&&O[w]._name==="point"+h.properties.XZDM){let Me=O[w]._info;v.value=Me,console.log(v.value,"------------------"),De(t.position),n.scene.postRender.addEventListener(H)}M("villageLine"),E=""}else me(p,d,m,l);else x(["village_CQL"]),B()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let E="";function me(e,t,r,a){const l=e.findIndex(d=>d._imageryProvider._layers&&d._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(l>-1){const d=e[l];let c=d._imageryProvider;if(c&&c.ready&&c._layers&&d.show===!0){t=c.tilingScheme.positionToTileXY(a,r,t);let m=c.pickFeatures(t.x,t.y,r,a.longitude,a.latitude);m&&m.then(p=>{if(p.length>0){let i=p[0];if(i.properties&&i.properties.XZQDM&&E!==i.properties.XZQDM){E=i.properties.XZQDM;let u=i.data;if(M("villageLine"),j(u.geometry&&u.geometry.coordinates,"villageLine","yellow"),i.properties.XZQDM==="370211104217"){const s=Cesium.Rectangle.fromDegrees(u.bbox[0],u.bbox[1],u.bbox[2],u.bbox[3]),y=Cesium.Rectangle.center(s);let F=Cesium.Math.toDegrees(y.longitude),w=Cesium.Math.toDegrees(y.latitude),h={lon:F,lat:w,...u.properties,label:[{crop:"\u8336\u53F6",Shape_Area:2820},{crop:"\u5927\u8C46",Shape_Area:2767},{crop:"\u82B1\u751F",Shape_Area:62356},{crop:"\u84DD\u8393",Shape_Area:5443},{crop:"\u5730\u74DC",Shape_Area:897},{crop:"\u5C0F\u9EA6",Shape_Area:20111}]};v.value=h}}}})}}}function fe(e,t){let r=new Cesium.WebMapServiceImageryProvider({url:`${serverAPI.geoserverUrl}/shuzisannong/wms`,layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:e}});r.customName=t,n.imageryLayers.addImageryProvider(r)}function x(e,t){if(n){const r=n.imageryLayers._layers;for(let a=r.length-1;a>=0;a--)e.forEach(l=>{r[a]._imageryProvider&&r[a]._imageryProvider.customName&&(t?r[a]._imageryProvider.customName.indexOf(l)>-1&&n.imageryLayers.remove(r[a]):r[a]._imageryProvider.customName===l&&n.imageryLayers.remove(r[a]))})}}function M(e){if(n){let r=n.entities._entities._array;for(var t=r.length-1;t>=0;t--)r[t]._name&&r[t]._name===e&&n.entities.remove(r[t])}}function ge(){if(W.value=!W.value,W.value){let e=document.querySelector(".rightWra");e.style.transform="translate(0,0)"}else{let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"}}const ve=()=>{Ne({time:"2023-04-25",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(e=>{console.log(e)})},he=()=>{Re().then(e=>{D.arr=e.features,D.arr.unshift({bbox:[119.5091,35.5671,120.3285,36.1455],properties:{XZDM:"370211",XZMC:"\u5168\u90E8"}});let t=[...e.features],r=[];t.splice(0,1),t.forEach(a=>{r.push(a.properties.XZMC)}),q.title=[...Object.values(r)]})},be=()=>{Ue().then(e=>{D.brr=e.features})},ye=()=>{Ge().then(e=>{D.crr=e.features,q.title.forEach((t,r)=>{let a=e.features.map(l=>{if(t===l.properties.town)return l.properties});Object.keys(X).forEach(l=>{const d=a.findIndex(c=>c&&c.crop===l);d>-1?X[l].push(a[d].Shape_Area):X[l].push(null)})})})},J=e=>{_e(e)},_e=e=>{let t=document.createElement("a");t.style.display="none",t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)};function Ce(){const e=ee(G.value);let t={primarySector:46036,primarySectorPercent:29,secondarySector:53942,secondarySectorPercent:35,tertiarySector:54107,tertiarySectorPercent:35.1};const r=[{value:t.primarySector,percent:t.primarySectorPercent,name:"\u6C34\u6D47\u5730",itemStyle:{borderColor:"rgba(84, 111, 198, 1)",borderWidth:5,shadowBlur:20,shadowColor:"#3C4039",shadowOffsetx:25,shadowOffsety:20,color:"rgba(84, 111, 198, 1)"}},{value:t.secondarySector,percent:t.secondarySectorPercent,name:"\u65F1\u5730",itemStyle:{borderColor:"rgba(239, 102, 105, 1)",borderWidth:5,shadowBlur:20,shadowColor:"#0C3E4E",shadowOffsetx:25,shadowOffsety:20,color:"rgba(239, 102, 105, 1)"}},{value:t.tertiarySector,percent:t.tertiarySectorPercent,name:"\u83DC\u5730",itemStyle:{borderColor:"rgba(62, 161, 114, 1)",borderWidth:5,shadowBlur:20,shadowColor:"#043E39",shadowOffsetx:25,shadowOffsety:20,color:"rgba(62, 161, 114, 1)"}},{value:t.tertiarySector,percent:t.tertiarySectorPercent,name:"\u704C\u6E89\u6C34\u7530",itemStyle:{borderColor:"rgba(246, 133, 75, 0.6)",borderWidth:5,shadowBlur:20,shadowColor:"#043E39",shadowOffsetx:25,shadowOffsety:20,color:"rgba(246, 133, 75, 0.6)"}},{value:t.tertiarySector,percent:t.tertiarySectorPercent,name:"\u671B\u5929\u7530",itemStyle:{borderColor:"rgba(145, 203, 115, 1)",borderWidth:5,shadowBlur:20,shadowColor:"#043E39",shadowOffsetx:25,shadowOffsety:20,color:" rgba(145, 203, 115, 1)"}}],l=1*r.reduce((i,u)=>i+u.value,0)/100,d=[],c={name:"",value:l,itemStyle:{color:"transparent"}};let m=0;r.forEach(i=>{m+=i.value});for(let i=0;i<r.length;i++)d.push({...r[i]}),d.push(c);let p={grid:{left:"2",right:"2%",top:"15%",bottom:"17%"},legend:{show:!0,right:"5%",top:"5%",height:300,itemGap:15,textStyle:{color:"rgba(255,255,255,0.7)"}},title:{text:"\u884C\u4E1A\u5360\u6BD4",subtext:"353",x:"30%",y:"40%",itemGap:15,textStyle:{color:"#F6F6F6",fontSize:14,fontWeight:"bold"},subtextStyle:{color:"#f5f5f6",fontSize:14,fontWeight:"bold"},textAlign:"center"},tooltip:{show:!0,textStyle:{color:"#000",fontSize:14},backgroundColor:"rgba(255,255,255,1)",extraCssText:"box-shadow: 2px 2px 4px 0px rgba(0,0,0,0.3);",formatter(i){return i.name===""?"":`${i.name} : ${i.data.percent}%`}},series:[{name:"",type:"pie",roundCap:!0,radius:["90%","55%"],center:["30%","50%"],label:{show:!1},labelLine:{show:!0},data:d,labelLine:{length:60,length2:80,lineStyle:{width:2}}}]};p&&e.setOption(p,{notMerge:!0,grid:{bottom:20}}),te(e,p)}function we(){const e=ee(Q.value);let t={tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c}\u4E07 ({d}%)"},legend:{show:!0,right:"0.1%",top:"30%",orient:"vertical",height:300,itemGap:15,textStyle:{color:"rgba(255,255,255,0.7)"}},color:["rgba(91, 154, 213, 1)","rgba(254, 192, 0, 1)"],series:[{name:"",type:"pie",radius:"80%",center:["30%","50%"],selectedMode:"single",hoverOffset:3,selectedOffset:5,label:{normal:{show:!1,position:"inside",color:"red",formatter:`{b}
{d}%`}},labelLine:{normal:{show:!1,length:3,length2:5}},data:[{value:36.7,name:"\u7CAE\u98DF\u751F\u4EA7\u529F\u80FD\u533A",selected:!0},{value:26.3,name:"\u91CD\u8981\u519C\u4EA7\u54C1\u751F\u4EA7\u4FDD\u62A4\u533A"}],itemStyle:{normal:{borderColor:"",borderWidth:2,shadowBlur:2,shadowOffsetX:0,shadowColor:"#00a5f4",opacity:1}}}]};t&&e.setOption(t,{notMerge:!0,grid:{bottom:20}}),te(e,t)}function Y(e,t){let r=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:e,parameters:{service:"WMS",format:"image/png",transparent:!0}});r.customName=t;let a=n.imageryLayers.addImageryProvider(r);t.indexOf("gbznt")>-1&&(n.imageryLayers.lowerToBottom(a),n.imageryLayers.raise(a))}function xe(){x(["gbznt"],!0),Y("shuzisannong:huangdaoqu_town","tl"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),V.value=!1}function Se(){let e=$.value;console.log("fl:",e),Z({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(t=>{console.log("res1111:",t),t.data.features.forEach((a,l)=>{const d=Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),c=Cesium.Rectangle.center(d);let m=Cesium.Math.toDegrees(c.longitude),p=Cesium.Math.toDegrees(c.latitude);a.properties.XZDM==="370211011"?(m=120.0863,p=35.941):a.properties.XZDM==="370211003"&&(m=120.243682,p=35.97123201);const i=e[a.properties.XZMC];let u=[];i&&(u=i.map((s,y)=>s.properties)),n.entities.add({name:"point"+a.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(m,p),point:new Cesium.PointGraphics({show:!0,pixelSize:10,color:Cesium.Color.fromCssColorString("rgba(255, 255, 26, 1)"),outlineColor:new Cesium.Color(0,0,0,0),outlineWidth:0,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND}),info:{label:u,...a.properties,lon:m,lat:p}})})}).catch(t=>{})}let $=f({});function ke(){Z({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(e=>{let t=e.data.features,r={};t.forEach(a=>{let l=a.properties.town;r[l]?r[l].push(a):r[l]=[a]}),$.value=r,Se()}).catch(e=>{})}function H(){if(v.value&&v.value.lon&&v.value.lat){const t=Cesium.Cartesian3.fromDegrees(Number(v.value.lon),Number(v.value.lat),0);var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(n.scene,t);if(Cesium.defined(e)){const r=document.getElementById("pop");r.style.top=e.y-10+"px",r.style.left=e.x+10+"px"}}}function B(){T="",E="",x(["village_CQL"]),x(["aaa"]),M("villageLine"),M("townLine");const e=document.getElementById("pop");e.style.display="none",n.scene.postRender.removeEventListener(H),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),x(["gbznt"],!0),V.value=!1}function De(e){console.log(e);const t=document.getElementById("pop");t.style.display="block",t.style.position="absolute",t.style.top=e.y-10+"px",t.style.left=e.x+10+"px",t.style.zIndex=99}return(e,t)=>{const r=b("el-input"),a=b("el-button"),l=b("ArrowLeftBold"),d=b("el-icon"),c=b("el-checkbox"),m=b("el-checkbox-group"),p=b("el-collapse-item"),i=b("el-collapse"),u=b("el-tree");return L(),z("div",Qe,[qe,o("div",je,[o("div",Je,[Ye,$e,g(r,{class:"seach_input",modelValue:U.value,"onUpdate:modelValue":t[0]||(t[0]=s=>U.value=s),placeholder:"\u8BF7\u8F93\u5165\u5730\u540D",clearable:""},null,8,["modelValue"]),o("div",He,[g(a,{class:"seach"},{default:_(()=>[k("\u67E5\u8BE2")]),_:1}),g(a,{class:"resetting"},{default:_(()=>[k("\u91CD\u7F6E")]),_:1})]),A(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),o("div",Ke,[et,o("div",tt,[o("div",rt,[at,o("p",{onClick:t[1]||(t[1]=s=>J("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[k(" \u4E0B\u8F7D \xA0 "),ot])]),o("div",{ref_key:"Farmland_area",ref:G,class:"Farmland_area"},null,512)]),o("div",lt,[o("div",st,[nt,o("p",{onClick:t[2]||(t[2]=s=>J("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[k(" \u4E0B\u8F7D \xA0 "),it])]),o("div",{ref_key:"Delineation",ref:Q,class:"Delineation"},null,512)])]),o("div",{class:"rightFoldDiv",onClick:t[3]||(t[3]=s=>ge())},[g(d,null,{default:_(()=>[g(l)]),_:1})])]),dt,o("div",ct,[o("div",null,I(R.value.name)+"\uFF1A",1),o("div",null,I(R.value.value)+"\u4EA9",1),o("div",{class:"cancel",onClick:B},"X")]),o("div",ut,[(L(!0),z(Te,null,Ee(N(v).label,(s,y)=>(L(),z("div",{key:y},[o("div",null,I(s.crop)+"\uFF1A",1),o("div",null,I((s.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),N(v).XZQMC?(L(),z("div",pt,[mt,o("div",null,I(N(v).XZQMC),1)])):A("v-if",!0),o("div",{class:"cancel",onClick:B},"X")]),V.value?(L(),Fe(a,{key:0,class:"back_button",onClick:t[4]||(t[4]=s=>xe())},{default:_(()=>[k("\u8FD4\u56DE")]),_:1})):A("v-if",!0),g(i,{class:"legend",accordion:""},{default:_(()=>[g(p,{name:"1"},{title:_(()=>[k("\u56FE\u4F8B")]),default:_(()=>[o("div",ft,[g(m,{modelValue:e.checkList,"onUpdate:modelValue":t[10]||(t[10]=s=>e.checkList=s),onChange:e.change},{default:_(()=>[A(` <el-checkbox
v-for="(value, item, key) in dic"
:key="key"
:style="{
background: value.color,
border: \`1px solid \${value.color}\`,
width: \`100%\`,
}"
v-model="checked3"
:disabled="value.disabled"
:label="item"
/> `),g(c,{style:{background:"rgba(255, 238, 204, 1)",border:"1px solid rgba(251, 171, 60, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":t[5]||(t[5]=s=>e.checked3=s),label:"0-200"},null,8,["modelValue"]),g(c,{style:{background:"rgba(255, 220, 153, 1)",border:"1px solid rgba(251, 219, 13, 1)",width:"100%"},modelValue:e.checked4,"onUpdate:modelValue":t[6]||(t[6]=s=>e.checked4=s),label:"200-400"},null,8,["modelValue"]),g(c,{style:{background:"rgba(255, 203, 102, 1)",border:"1px solid rgba(244, 218, 136, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":t[7]||(t[7]=s=>e.checked3=s),label:"400-600"},null,8,["modelValue"]),g(c,{style:{background:"rgba(255, 185, 51, 1)",border:"1px solid rgba(174, 83, 110, 1)",width:"100%"},modelValue:e.checked4,"onUpdate:modelValue":t[8]||(t[8]=s=>e.checked4=s),label:"600-800"},null,8,["modelValue"]),g(c,{style:{background:"rgba(255, 168, 0, 1)",border:"1px solid rgba(242, 177, 167, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":t[9]||(t[9]=s=>e.checked3=s),label:"800-1000"},null,8,["modelValue"])]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),o("div",gt,[g(u,{props:se,data:ne,"show-checkbox":""})])])}}},xt=Le(vt,[["__scopeId","data-v-d061be2f"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/plough/resources/index.vue"]]);export{xt as default};