import{d as a,m as e,ag as t,o as l,b as r,u as o,X as s,i as n,l as i,S as d,c,a as p,F as m,P as u,a4 as h,O as g,E as b,J as y,Q as f,L as w,e as D,aq as v,I as A,h as x,W as C,M as L,n as k}from"./@vue-37836d09.js";import{_ as S,a as I}from"./plan-circle-small-925e5f29.js";import{u as V}from"./index-6530d0f6.js";import{d as T,a as Y}from"./logo-4fe3e538.js";import{a as B}from"./index-817aeea8.js";import{l as O,m as j}from"./largeHeader-f70d0a70.js";import{u as _,m as U,g as R,p as M,a as N}from"./panelBox-38406f97.js";import"./echarts-liquidfill-bd8f0ed5.js";import"./echarts-a77f8af6.js";import{V as E}from"./zrender-ee9f2f6d.js";import{n as Q}from"./permission-0bbfb5e8.js";import{g as z,a as W}from"./weather-6f401959.js";import{d as F}from"./dayjs-423c4f07.js";import{_ as q}from"./vue-next-wxlogin-91e03b70.js";import{v as H}from"./request-2ce564d0.js";import{E as P}from"./element-plus-842069d4.js";import"./vue-router-c7cbbcaa.js";import"./@element-plus-bb6eebe0.js";import"./pinia-0c8641d4.js";import"./vue-demi-71ba0ef2.js";import"./pinia-plugin-persistedstate-1ec13968.js";import"./destr-9c6e2924.js";import"./deep-pick-omit-418f72d7.js";import"./nprogress-85851b89.js";import"./@turf-e5dd68ad.js";import"./d3-geo-106fc929.js";import"./d3-array-d83825ab.js";import"./mapbox-gl-b315653c.js";import"./lodash-es-acda58df.js";import"./@vueuse-1ddca6f0.js";import"./@popperjs-b696b006.js";import"./@ctrl-41c0891e.js";import"./async-validator-7d693152.js";import"./memoize-one-63ab667a.js";import"./normalize-wheel-es-cf7d7ba7.js";import"./@floating-ui-f285e0b8.js";import"./login-4259abe5.js";import"./sm-crypto-2cfdc71b.js";import"./jsbn-6a317af9.js";import"./axios-7accb92c.js";const X=a({__name:"jcBarChart",props:{chartData:{type:Object}},setup(a){const s=a,n=e((()=>{const{datas:a,unit:e,xAxisData:t}=s.chartData,l=Math.max(...a);let r=[];for(let o=0;o<a.length;o++)r.push(l);return{tooltip:{
//   trigger: 'item'
trigger:"axis",axisPointer:{type:"shadow"}},animation:!1,grid:{left:"4%",right:"4%",bottom:"4%",top:"16%",containLabel:!0},xAxis:{data:t,axisLabel:{
// rotate: 30,
color:"rgba(255,255,255,0.8)",fontSize:11,rotate:30,margin:14},axisLine:{lineStyle:{color:"rgba(255,255,255,0.1)"}}},yAxis:{name:e,nameTextStyle:{type:"value",align:"right",color:"rgba(255,255,255,0.6)",fontSize:12},axisLabel:{color:"rgba(255,255,255,0.8)",fontSize:12},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.1)",type:"dashed"}}},series:[{
// 边框
name:"",barGap:"-85%",type:"bar",barWidth:22,showBackground:!0,tooltip:{trigger:"none"},backgroundStyle:{borderWidth:2,borderColor:"rgba(31, 198, 255, 0.2)"},itemStyle:{normal:{color:"rgba(0, 0, 0, 0.1)"}},data:r,z:0,zlevel:-1},{
// 值
name:"",type:"bar",barWidth:16,
// tooltip: {
//   trigger: 'item',
//   formatter: '{b}: {c}'
// },
itemStyle:{normal:{color:"#1FC6FF"}},data:a,z:10,zlevel:2,label:{show:!1,position:"top",distance:10,fontSize:12,fontFamily:"DIN",color:"rgba(255,255,255,0.8)",zlevel:4,z:10,formatter:"{c}%"}},{
// 值分隔
type:"pictorialBar",tooltip:{trigger:"none"},itemStyle:{normal:{color:"rgba(0, 0, 0, 0.6)"}},symbolRepeat:"fixed",symbolMargin:3,symbol:"rect",symbolClip:!0,symbolSize:[18,2],
// 设置黑色大小
symbolPosition:"center",symbolOffset:[2,-6],
// symbolBoundingData: this.total,
data:a,z:0,zlevel:4}]}}));return(a,e)=>{const s=t("baseChart");return l(),r(s,{options:o(n)},null,8,["options"])}}}),K=a({__name:"jcShuiweiChart",props:{chartData:{type:Object}},setup(a){const s=a,n=e((()=>{const{datas:a,unit:e,rate:t}=s.chartData;let l=t/100,r=[],o="",n="rgba(31, 198, 255, 1)";o=n,r.push(n),r.push("rgba(31, 198, 255, 0.2)");let i=[];return i.push(l),i.push(l),{
/* title:{
        	top: '33%',
        	left: 'center',
        	text: '安全状态',
        	color:'red',
        	textStyle: {
        		color: 'rgba(0, 0, 0, 0.45)',
        		fontWeight: 'normal',
        		fontSize: 14
        	},
        	subtext: (value * 100) + '%',
        	subtextStyle: {
        		color: 'rgba(0, 0, 0, 0.85)',
        		fontSize: 18,
        	}
        }, */
series:[{type:"liquidFill",
//水球echarts-liquidfill.min.js
radius:"90%",center:["50%","46%"],data:i,backgroundStyle:{color:"transparent"},outline:{show:!0,
//是否显示轮廓 布尔值
borderDistance:2,
//外部轮廓与图表的距离 数字
itemStyle:{borderColor:"rgba(31, 198, 255, 0.2)",
//边框的颜色
borderWidth:1}},color:[...r],label:{fontSize:20,color:o}
/* color: [  //color一定要是个数组 ，每一项对应一个波浪，可以给每个波浪单独配置颜色
             {
            type: "linear",
            x: 0,
            y: 0,
            x2: 0,
            y2: 1,
            colorStops: [
              {
            	offset: 1,
            	color: "rgba(255,255,255,1)"
              },
              {
            	offset: 0,
            	color: "rgba(103,205,251,1)"
              }
            ],
            globalCoord: false
             }], */}]}}));return(a,e)=>{const s=t("baseChart");return l(),r(s,{options:o(n)},null,8,["options"])}}}),J=a({__name:"jcLineChart",props:{chartData:{type:Object}},setup(a){const s=a,n=e((()=>{const{datas:a,unit:e,xAxisData:t,senseUpdateCount:l}=s.chartData;return{title:{text:`累计更新：${l}${e}`,right:10,top:"2%",textStyle:{color:"rgba(255,255,255,0.6)",fontSize:12}},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},grid:{left:"4%",right:"4%",bottom:"0%",top:"18%",containLabel:!0},xAxis:{type:"category",data:t,boundaryGap:!0,axisLabel:{
// rotate: 30,
color:"rgba(255,255,255,0.8)",fontSize:12},axisLine:{lineStyle:{color:"rgba(255,255,255,0.6)"}},axisTick:{show:!1},splitLine:{show:!1,lineStyle:{color:"rgba(255,255,255,0.1)",type:"dashed"}}},yAxis:{name:e,nameTextStyle:{type:"value",align:"left",color:"rgba(255,255,255,0.6)",fontSize:12},axisLabel:{color:"#fff",fontSize:12},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.1)",type:"dashed"}}},series:[{data:a,type:"line",smooth:!0,symbol:"none",areaStyle:{color:new E(0,0,0,1,[{offset:0,color:"rgba(255, 200, 55, 0.8)"},{offset:1,color:"rgba(255, 200, 55, 0)"}])},lineStyle:{width:3,color:"rgba(255, 200, 55, 0.8)"},emphasis:{focus:"series"}}]}}));return(a,e)=>{const s=t("baseChart");return l(),r(s,{options:o(n)},null,8,["options"])}}}),G=a({__name:"orderChart",props:{chartData:{type:Object}},setup(a){const s=a,n=e((()=>{const{datas:a,unit:e,xAxisData:t}=s.chartData;return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},grid:{left:"4%",right:"4%",bottom:"0%",top:"18%",containLabel:!0},xAxis:{type:"category",data:t,boundaryGap:!0,axisLabel:{color:"rgba(255,255,255,0.8)",fontSize:12},axisLine:{lineStyle:{color:"rgba(255,255,255,0.6)"}},axisTick:{show:!1},splitLine:{show:!1,lineStyle:{color:"rgba(255,255,255,0.1)",type:"dashed"}}},yAxis:{name:e,nameTextStyle:{type:"value",align:"right",color:"rgba(255,255,255,0.6)",fontSize:12},axisLabel:{color:"rgba(255,255,255,0.8)",fontSize:12},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.1)",type:"dashed"}}},series:[{data:a,type:"bar",smooth:!0,symbol:"none",barMaxWidth:14,itemStyle:{color:"rgba(24, 144, 255, 1)",borderRadius:[8,8,0,0]},
// areaStyle: {
//   color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
//     {
//       offset: 0,
//       color: 'rgba(24, 144, 255, 1)'
//     },
//     {
//       offset: 1,
//       color: 'rgba(24, 144, 255, 0)'
//     }
//   ])
// },
// lineStyle: {
//   width: 3,
//   color: 'rgba(24, 144, 255, 0.8)'
// },
emphasis:{focus:"series"}}]}}));return(a,e)=>{const s=t("baseChart");return l(),r(s,{options:o(n)},null,8,["options"])}}}),Z=a({__name:"planChart",props:{chartData:{type:Object}},setup(a){const s=a,n=e((()=>{const{datas:a,colors:e,total:t}=s.chartData;return a&&a.length,{tooltip:{trigger:"item",confine:!0},color:e,title:[{text:t+"套",top:"42%",textAlign:"center",left:"48%",textStyle:{color:"#fff",fontSize:14}}],legend:{show:!1},series:[{name:"",type:"pie",radius:["60%","80%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:0,borderColor:"#0A2B4D",borderWidth:2},label:{show:!1},emphasis:{label:{show:!1}},labelLine:{show:!1},data:a||[]}]}}));return(a,e)=>{const s=t("baseChart");return l(),r(s,{options:o(n)},null,8,["options"])}}}),$=a({__name:"warnLineChart",props:{chartData:{type:Object}},setup(a){const s=a,n=e((()=>{const{datas:a,unit:e,xAxisData:t}=s.chartData;return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},grid:{left:"4%",right:"4%",bottom:"0%",top:"6%",containLabel:!0},xAxis:{type:"category",data:t,boundaryGap:!0,axisLabel:{
// rotate: 30,
color:"rgba(255,255,255,0.8)",fontSize:12},axisLine:{lineStyle:{color:"rgba(255,255,255,0.6)"}},axisTick:{show:!1},splitLine:{show:!1,lineStyle:{color:"rgba(255,255,255,0.1)",type:"dashed"}}},yAxis:{name:e,nameLocation:"bottom",nameTextStyle:{padding:[0,0,-66,-30],type:"value",align:"left",color:"rgba(255,255,255,0.6)",fontSize:12},axisLabel:{color:"rgba(255,255,255,0.8)",fontSize:12},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.1)",type:"dashed"}}},series:[{data:a,type:"line",smooth:!0,symbol:"circle",symbolSize:10,areaStyle:{color:new E(0,0,0,1,[{offset:0,color:"rgba(0, 150, 199, .8)"},{offset:1,color:"rgba(0, 150, 199, 0)"}])},itemStyle:{normal:{
// 点的颜色
color:"rgba(0, 150, 199, 1)",
// 点的边框颜色
borderColor:"#fff",
// 点的边框宽度
borderWidth:1.6}},lineStyle:{width:3,color:"rgba(0, 150, 199, .8)"},emphasis:{focus:"series"}}]}}));return(a,e)=>{const s=t("baseChart");return l(),r(s,{options:o(n)},null,8,["options"])}}}),aa=a({__name:"expertBarChart",props:{chartData:{type:Object}},setup(a){const s=a,n=e((()=>{const{datas:a,unit:e,xAxisData:t,legendData:l}=s.chartData,r=["rgba(24, 144, 255, 1)","rgba(18, 255, 235, 1)"];let o=[];return a&&a.length>0&&a.forEach(((a,e)=>{o.push({name:l[e],type:"bar",barWidth:8,emphasis:{focus:"series"},data:a,itemStyle:{color:r[e],borderRadius:[8,8,0,0]}})})),{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},animation:!1,grid:{left:"4%",right:"4%",bottom:"0%",top:"20%",containLabel:!0},legend:{top:0,right:0,itemWidth:16,itemHeight:10,data:l,textStyle:{color:"rgba(255,255,255,0.8)",fontSize:10}},xAxis:{data:t,axisLabel:{
// rotate: 30,
color:"#fff",fontSize:12},axisLine:{lineStyle:{color:"rgba(255,255,255,0.6)"}},axisTick:{show:!1},splitLine:{show:!1,lineStyle:{color:"rgba(255,255,255,0.1)",type:"dashed"}}},yAxis:{name:e,nameTextStyle:{type:"value",align:"left",color:"rgba(255,255,255,0.6)",fontSize:12},axisLabel:{color:"rgba(255,255,255,0.8)",fontSize:12},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.1)",type:"dashed"}}},series:o}}));return(a,e)=>{const s=t("baseChart");return l(),r(s,{options:o(n)},null,8,["options"])}}}),ea=a({props:{style:{type:String,defult:"width: 100%"}},components:{},emits:["callback"],setup(a,e){const t=_();let l,r,o="";const c=s({playStatus:!1,loadRate:0,scrollMath:0,lefts:[],timeLine:[],imgLayerKeys:[],showImgIndex:null});n((()=>t.mapStyle),(a=>{})),n((()=>c.playStatus),(a=>{a?m():p()})),n((()=>t.mapLoading),(a=>{a||(v(),f())}));const p=()=>{l&&(window.clearInterval(l),l=null),r&&(clearTimeout(r),r=null)},m=()=>{let a;l&&clearInterval(l),a=Math.floor(c.scrollMath/90),l=setInterval((()=>{c.loadRate+=a,D(y(c.loadRate)),c.loadRate>=c.scrollMath&&(clearInterval(l),r=setTimeout((()=>{c.loadRate=0,m()}),1500))}),5e3)},u=a=>{let e=F(a[a.length-1],"YYYYMMDDHHmmss").diff(F(a[0],"YYYYMMDDHHmmss"),"minute"),t=[];a.forEach((l=>{let r=F(l,"YYYYMMDDHHmmss").diff(F(a[0],"YYYYMMDDHHmmss"),"minute"),o=Math.floor(r/e*c.scrollMath);t.push(o)})),c.lefts=t},h=()=>{const a="ontouchstart"in document.documentElement==1?"touchstart":"click",e="ontouchmove"in document.documentElement==1?"touchmove":null;o.addEventListener(a,b),e&&o.addEventListener(e,b)},g=a=>{let e=0;return e=a.offsetLeft+(a.offsetParent?g(a.offsetParent):a.x?a.x:0),e},b=a=>{if(Q("ver.perm.two.hours.weather"))return;let e=g(o);c.playStatus=!1,setTimeout((()=>{let t=-1!=a.type.indexOf("touch")?a.touches[0].pageX-e:a.offsetX;t>=c.scrollMath?c.loadRate=c.scrollMath:c.loadRate=t<=0?1:t,D(y(c.loadRate))}),0)},y=a=>c.lefts.findIndex(((e,t)=>c.lefts[t]<=a&&c.lefts[t+1]>a||t==c.lefts.length-1)),f=()=>{c.playStatus=!1,z({
// longitude: mapStore.farmInfo.longitude,
// latitude: mapStore.farmInfo.latitude,
longitude:U.center[0],latitude:U.center[1]}).then((a=>{const t=a.twoHoursCloudPic?.series;t&&(c.imgLayerKeys=Object.keys(t),w(a.twoHoursCloudPic,c.imgLayerKeys),(a=>{const e=document.querySelector(".time-flag");c.scrollMath=e.offsetWidth,u(a);let t=c.scrollMath>600?10:20,l=F(a[a.length-1],"YYYYMMDDHHmmss").diff(F(a[0],"YYYYMMDDHHmmss"),"minute"),r=Math.ceil(l/t),o=[],s=F(a[0],"YYYYMMDDHHmmss");for(let n=0;n<r;n++){let a=s.add(t*(n+1),"minutes").format("HH:mm");o.push(a)}c.timeLine=o,h()})(c.imgLayerKeys.sort())),e.emit("callback",a)}))},w=(a,e)=>{const t=window.$map;let l=[[a.bbox.minlon,a.bbox.maxlat],[a.bbox.maxlon,a.bbox.maxlat],[a.bbox.maxlon,a.bbox.minlat],[a.bbox.minlon,a.bbox.minlat]];e.forEach(((e,r)=>{t.addSource(`cloud_${r}`,{type:"image",url:`${a.host}${a.series[e]}`,coordinates:l}),t.addLayer({id:`cloud_${r}`,type:"raster",source:`cloud_${r}`,opacity:.5,paint:{"raster-fade-duration":0,"raster-opacity":0}})}))},D=a=>{const e=window.$map;null!==c.showImgIndex&&e.setPaintProperty(`cloud_${c.showImgIndex}`,"raster-opacity",0),e.setPaintProperty(`cloud_${a}`,"raster-opacity",.5),c.showImgIndex=a},v=()=>{l&&(window.clearInterval(l),clearInterval(l),l=null),r&&(window.clearTimeout(r),clearTimeout(r),r=null)};return i((()=>{o=document.querySelector(".cover-view")})),d((()=>{v()})),{state:c,playClouds:()=>{Q("ver.perm.two.hours.weather")||(c.playStatus=!c.playStatus)}}}}),ta={class:"play-inner"},la={class:"timeline"},ra={class:"time-flag"},oa={class:"iconfont"},sa={key:0,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAB4SURBVHgB7c7LDUBQFEXR+whjBgrRAVWpQRRFCTph7vOMTOXFic9gr9lN7km2GYBLLvSxmZYq9q4/723zdVskw53t4vayy9MxZBvZB6LVZcG/9nMEqghUEagiUEWgikAVgSoCVQSqCFQRqCJQRaDqlcDY/GwAnnEAt7gUPYZEzwkAAAAASUVORK5CYII=",width:"16"},na={key:1,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHaSURBVHgB7ZhBUsIwFIZf0paFKxDYcwS8Ad4ATuBwAmHhMMBCWAEr8AZ4AvEEcgO4AaxVLCudQZJnUquiM0JaknbTb8VMH9Nv3mv+pAVISPih4WIBIoaqFrZdNrSQLVov20WUosqCiFjzfxaE6Ky52tQgApQF/5AmhA6bKzYEwxDVQjFa/OfSkhHrfJAhSzBA2A7uIkf+0HzelsEAOgQlBULhruWya9CMjhH/AhEmnFp1XSPX1cFvCIGyHLmuKNIu6COfy4WOKDIl6PEVRTUX0xASo4ISQrB2IoI97MiNC/p4u0/b3V5AQKISlKTFCh8HjSLtMaN42zkjtKISRVF2cAcsyii6etwUD1XGJOhRcGw6azy9l/YVxSn4KUChtPc6xIh4qJec2uN9NbEJIvLbN2KdHVooNsSAkKv3sqmRSm2kgt5IGVYH+dRU9T+RCQq5KSeWkAt2DItEkCPe9LNOqJONacE1cqj2c84EQmJQ0N/OcsedrI3EjBzpK6Fa3vR0d3AtIqTbV4wQFbQJygghhFd6p6k5aESLoIwQsStURhl7DZo5WlB8s+n2sk4HDHGM4JoxrAzyzhQMEmQV74xPRojY6A3LSZQ7yDmvU2pdilV638vaHUhI0MMH1vu8ET/WydUAAAAASUVORK5CYII=",width:"16"},ia={class:"legend"},da={class:"center"};const ca=a({components:{timeLine:q(ea,[["render",function(a,e,t,r,o,s){return l(),c("div",{class:"time-line",style:m(a.style)},[p("div",ta,[p("div",la,[e[2]||(e[2]=p("span",{class:"tit"},"天气云图",-1)),e[3]||(e[3]=p("div",{class:"cloud-tag"},"2h",-1)),p("div",ra,[p("div",{class:"pointer",style:m({left:a.state.loadRate+"px"})},null,4),e[1]||(e[1]=p("div",{class:"cover-view"},null,-1)),(l(!0),c(u,null,h(a.state.timeLine,((a,e)=>(l(),c("span",{key:e},g(a),1)))),128))]),p("div",{class:"play-pause",onClick:e[0]||(e[0]=(...e)=>a.playClouds&&a.playClouds(...e))},[p("em",oa,[a.state.playStatus?(l(),c("img",sa)):(l(),c("img",na))])])]),p("div",ia,[e[4]||(e[4]=p("span",{class:"left"},"降水量：弱",-1)),p("span",da,[(l(),c(u,null,h(13,(a=>p("em",{key:a}))),64))]),e[5]||(e[5]=p("span",{class:"right"},"强",-1))])])],4)}],["__scopeId","data-v-be05ad5c"]])},setup(){const a=s({showDetail:!1,value:!0,twoHoursRain:null,windsKeypoint:null,rainKeypoint:null,todayWeather:null,rainData:[]});return i((()=>{(async()=>{try{let e={longitude:U.center[0],latitude:U.center[1]};const t=await W(e);a.rainData=t||[]}catch(e){}})()})),d((()=>{})),{state:a,hanldChange:()=>{a.value=!a.value},callback:e=>{a.todayWeather=e.todayWeather,a.twoHoursRain=e.twoHoursRain,a.windsKeypoint=e.wind.keypoint,a.rainKeypoint=e.twoHoursRain.keypoint}}}}),pa={key:0,class:"weather"},ma={class:"detail scroll-black"},ua={class:"rain"},ha={class:"roll"},ga=["title"],ba={class:"ovflow1"};const ya=q(ca,[["render",function(a,e,r,o,s,n){const i=t("timeLine");return l(),c("div",{class:b(["weatherCloud",["",a.state.value?"":"close"]])},[a.state.rainData.length>0?(l(),c("div",pa,[p("ul",ma,[p("li",ua,[e[5]||(e[5]=p("span",{class:"icon iconfont"},"",-1)),p("span",ha,[p("i",{class:b(a.state.rainKeypoint.length>18?"marquee-txt":"")},"2小时短临降雨天气提示",2)]),y(p("p",{class:"icon-box",onClick:e[0]||(e[0]=e=>a.state.showDetail=!a.state.showDetail)},e[3]||(e[3]=[p("span",null,"查看",-1),p("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHCSURBVHgB7ZmLUcMwDIb/9BigI3iEjpBukBUYgRGYgBEYpYyQDeINYANjg8OV1LKlVOm1d/rufBxXWZYc+SELMAzjoemoH0II+/jnAB6+6zoPAZvqj8pdbFPgM2WDbq5/R4zhcuOSZLmzqap/Bx18blxGoTzJE+Q8FwYfY4x+gUmSjSFxxOVXSP+/xcYOxyJRed+IRwdlGOuiL/XjhtD57LrYTppOZF0nyNbFD1wHXvA/bByUnCCM9/gN1SZcB3xsRyg7UTF+ORYJexfKB4maEzXjJYeWaBttOCE6yKBgfEJ8DlSc6MHnAAXjSdJsnm1pxW1zse1NkjBi6m/KtAZx+TzYN2QGSfhI+nJsMAzDMAzjLsl3kb52B8kyQ1h3nW725dhAdVxe1PZrZAT6nab+UlLfV5TPDAL9w6LvhRMtG2bE+UCgk5ERfD6glNmJHAhKmVR+Q1JJT9kOaBk/o5Vjcx1wUDR+puYEVrwR/RHqL3PFRXcNxKbwuckihnYCDvJLsLZN6eNuWnyvsbnFF9AqcCTd77gWRgiVQmrLAodqCJVw2LbAQUI5IC1AeGxb4PCUfK3I58CfJVGB4xb6DcN4EL4Bl4UwctgckhEAAAAASUVORK5CYII=",alt:""},null,-1)]),512),[[f,!a.state.showDetail]]),y(p("p",{class:"icon-box",onClick:e[1]||(e[1]=e=>a.state.showDetail=!a.state.showDetail)},e[4]||(e[4]=[p("span",null,"收起",-1),p("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAN5JREFUaEPtmFEOwjAMQ52bwcnhZkFIm0CIVmnIxgpv312a2I7T1jT5Z5PnLwr4NoMwMCUD7n6RdHpO3syG2HR3fyn+ambnUUCGNl2DU4AkGFjkgITWvqCJpVoXWpym52rlNtrbrGWxzR544xJdiy6QUCo+BRQ2MQyMHkMOsT41yA6R+SeTmAIKEUBChWCmQsFACrbCn2CgEMxUKBhIwVb4E8dpjtNBObVufD8tofv757yX+l7mvI3yNvrQR2oSIyEk9O8SCg7PXZalmniXzIKbUEAQqM2WwcBm0AYD3wBMOdAx32AcXAAAAABJRU5ErkJggg==",alt:""},null,-1)]),512),[[f,a.state.showDetail]])]),(l(!0),c(u,null,h(a.state.rainData,((e,t)=>y((l(),c("li",{class:"rain-li",key:t,title:e.keypoint},[p("span",null,g(e.position),1),p("span",ba,g(e.keypoint),1)],8,ga)),[[f,a.state.showDetail]]))),128))])])):w("",!0),p("div",{class:b(["mSwitch",a.state.value?"":"close"]),onClick:e[2]||(e[2]=(...e)=>a.hanldChange&&a.hanldChange(...e))},e[6]||(e[6]=[p("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALUSURBVHgB3VXNThNRFD73dkqESJxGRPGPaWJIdFUWJBpjbGFjWJj2CaA+gLRP0PIElScgvoBtYqLsCtHEBYvWrZrMZSOJYhhTU9q5P8czJRpmWqBd6tdMezvfOfc7555zZgD+dbCTf7IHKquNsWOce7UpqxY1/ssj8Vf7+UHgYTk2yxnfRIRq9gBX+qwRvR7Pofr0uy7BqBkEIMcKAyzQ0mNWbL6WYOIkn/2m15DhCwqGfsxi7Up8G4bOILhh8XVtsEmXLbuynnbRPsnXpmMbBrCmjAFloPpkH52RBChiTxmV87XxpEYnPuZXojaxX1ZeSr3nK2Mb7VejQZwpEGBrZlz4XT8nNUWp9GrabRdCQSSZ5/uY8ZX2pDEpw49KIwkE2E5ObpNA2dcIEk3l/udWOsyPC+qoIomA1qbwwG2vDdqHwTlY+NJ6xRByiEaQYKZ5NyFC/KcWFRyeU2N4iHpxdy7RHCqDP5At9cyXWkhFxaT2jfK7c5MFqfSOL01CalZNNQ7tkQSa8wkPGGbkcdFT9z7+KPcZdTBPtaAgjCOtcBAWDAGv04E4fRgLZq2/Yzp0aamDQUX6EiMJ2A3XBsXrPsNLDFGIhelC1OZIySrVwKGlAMusjyQw0Z3Y9HvOWowhZqL8tQ/7Jal1iuoDYwAZsTAjhhaYekfOSmfpYOhoTP7ro1sh58vv91do4suKHl4xxgri4XUR3ePUNr1Yd9MWt+rYM+Jl7/GNUOp23XWQxRtE0tHBhpe+WRy0z0CBC+TMDK8HT1dyftleup2PbG53DW+Qs0MBiKOl2SScgoFHJLtQZ9w4iMydbGOxHeFbXagwZhwSEDEDGTgD/QJv3IpBdFCzQ+rvRS+X9EL8W7dEUa8aE9SFrcrlpDhLIDxoW+4a53DchghFyEWcX7tpascyzUJQ9nVYTu7AOQhnYPSeYZAnbw+W7/S/Ei3Vi5pWPwfy/yV+A5EWiNCUfVvNAAAAAElFTkSuQmCC",width:"24",height:"24",alt:""},null,-1)]),2),p("div",{class:b(["cloud",a.state.value?"":"close"])},[D(i,{visible:a.state.value,winMapKey:"mapbox2",onCallback:a.callback},null,8,["visible","onCallback"])],2)],2)}],["__scopeId","data-v-b65bbbb9"]]),fa="https://plant2.hbatg.com/v2",wa={class:"abnormalWeather"},Da=q(a({__name:"abnormalWeather",props:{farmOpts:{type:Array},downloadLoading:{type:Boolean}},emits:["update:downloadLoading"],setup(a,{expose:e,emit:n}){const d=n,p=a,m=s({loading:!1,serviceOpts:[],columns:[],tableData:[]}),g=s({date:[...T],farmType:"",serviceCenterId:""}),b=({row:a,column:e,rowIndex:t,columnIndex:l})=>{if(0===l){if(t>0&&a.serviceCenterName===m.tableData[t-1].serviceCenterName)return{rowspan:0,colspan:1};{let e=1;for(let l=t+1;l<m.tableData.length&&m.tableData[l].serviceCenterName===a.serviceCenterName;l++)e++;return{rowspan:e,colspan:1}}}return{rowspan:1,colspan:1}},f=async()=>{m.loading=!0;let a={farmType:g.farmType,serviceCenterId:g.serviceCenterId,startDate:"",endDate:""};g.date.length>0&&(a.startDate=g.date[0],a.endDate=g.date[1]);try{const e=await(a=>H.request({url:fa+"/datav-api/technology-power/abnormal-weather-details",method:"get",params:a}))(a);m.tableData=e.tableData||[],m.columns=e.columns||[],m.loading=!1}catch(e){}},w=async()=>{await(async()=>{try{m.loading=!0;let a={keywords:""};const e=await R(a);m.serviceOpts=e.data||[],m.loading=!1}catch(a){}})(),f()};return i((()=>{w()})),e({exportFile:async()=>{d("update:downloadLoading",!0);let a={farmType:g.farmType,serviceCenterId:g.serviceCenterId,startDate:"",endDate:""};g.date.length>0&&(a.startDate=g.date[0],a.endDate=g.date[1]);try{await((a,e)=>H.fileRequest({url:fa+"/datav-api/technology-power/abnormal-weather-export",method:"get",params:a,responseType:"blob"},e))(a,{fileConfig:{filename:"明细.xlsx"}});P.success("导出成功")}catch(e){}finally{d("update:downloadLoading",!1)}}}),(a,e)=>{const s=t("el-date-picker"),n=t("el-form-item"),i=t("el-option"),d=t("el-select"),w=t("el-form"),x=t("el-table-column"),C=t("el-table"),L=v("loading");return l(),c("div",wa,[D(w,{inline:!0,model:o(g)},{default:A((()=>[D(n,{label:""},{default:A((()=>[D(s,{class:"form-i dv-date-picker-range",modelValue:o(g).date,"onUpdate:modelValue":e[0]||(e[0]=a=>o(g).date=a),type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY年MM月DD日",onChange:f,size:"small"},null,8,["modelValue"])])),_:1}),D(n,{label:""},{default:A((()=>[D(d,{class:"form-i dv-select",modelValue:o(g).farmType,"onUpdate:modelValue":e[1]||(e[1]=a=>o(g).farmType=a),placeholder:"全部",onChange:f},{default:A((()=>[(l(!0),c(u,null,h(p.farmOpts,(a=>(l(),r(i,{label:a.label,value:a.value,key:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),D(n,{label:""},{default:A((()=>[D(d,{class:"form-i dv-select",modelValue:o(g).serviceCenterId,"onUpdate:modelValue":e[2]||(e[2]=a=>o(g).serviceCenterId=a),placeholder:"全部服务中心",onChange:f},{default:A((()=>[(l(!0),c(u,null,h(o(m).serviceOpts,(a=>(l(),r(i,{label:a.name,value:a.id,key:a.id},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model"]),y((l(),r(C,{"element-loading-background":"rgba(0, 53, 83, 0.5)",class:"dv-table",data:o(m).tableData,"cell-class-name":"dv-table-cell","header-cell-class-name":"dv-table-header-cell",height:"680px","span-method":b},{default:A((()=>[D(x,{prop:"serviceCenterName",label:"所属服务中心/小程序",width:"157"}),D(x,{prop:"farmName",label:"所属农场",width:"157"}),D(x,{prop:"farmType",label:"农场自营/签约",width:"146"}),(l(!0),c(u,null,h(o(m).columns,(a=>(l(),r(x,{key:a.prop,prop:a.prop,width:"120",label:a.label},null,8,["prop","label"])))),128))])),_:1},8,["data"])),[[L,o(m).loading]])])}}}),[["__scopeId","data-v-2c241b6c"]]),va={class:"abnormalWeatherReminder"},Aa=q(a({__name:"abnormalWeatherReminder",props:{farmOpts:{type:Array},downloadLoading:{type:Boolean}},emits:["update:downloadLoading"],setup(a,{expose:e,emit:n}){const d=n,p=a,m=s({loading:!1,serviceOpts:[],columns:[],tableData:[]}),g=s({date:[...T],farmType:"",serviceCenterId:""}),b=({row:a,column:e,rowIndex:t,columnIndex:l})=>{if(0===l){if(t>0&&a.serviceCenterName===m.tableData[t-1].serviceCenterName)return{rowspan:0,colspan:1};{let e=1;for(let l=t+1;l<m.tableData.length&&m.tableData[l].serviceCenterName===a.serviceCenterName;l++)e++;return{rowspan:e,colspan:1}}}return{rowspan:1,colspan:1}},f=async()=>{m.loading=!0;let a={farmType:g.farmType,serviceCenterId:g.serviceCenterId,startDate:"",endDate:""};g.date.length>0&&(a.startDate=g.date[0],a.endDate=g.date[1]);try{const e=await(a=>H.request({url:fa+"/datav-api/technology-power/abnormal-weather-reminder-details",method:"get",params:a}))(a);m.tableData=e.tableData||[],m.columns=e.columns||[],m.loading=!1}catch(e){}},w=async()=>{await(async()=>{try{m.loading=!0;let a={keywords:""};const e=await R(a);m.serviceOpts=e.data||[],m.loading=!1}catch(a){}})(),f()};return i((()=>{w()})),e({exportFile:async()=>{d("update:downloadLoading",!0);let a={farmType:g.farmType,serviceCenterId:g.serviceCenterId,startDate:"",endDate:""};g.date.length>0&&(a.startDate=g.date[0],a.endDate=g.date[1]);try{await((a,e)=>H.fileRequest({url:fa+"/datav-api/technology-power/abnormal-weather-reminder-export",method:"get",params:a,responseType:"blob"},e))(a,{fileConfig:{filename:"明细.xlsx"}});P.success("导出成功")}catch(e){}finally{d("update:downloadLoading",!1)}}}),(a,e)=>{const s=t("el-date-picker"),n=t("el-form-item"),i=t("el-option"),d=t("el-select"),w=t("el-form"),x=t("el-table-column"),C=t("el-table"),L=v("loading");return l(),c("div",va,[D(w,{inline:!0,model:o(g)},{default:A((()=>[D(n,{label:""},{default:A((()=>[D(s,{class:"form-i dv-date-picker-range",modelValue:o(g).date,"onUpdate:modelValue":e[0]||(e[0]=a=>o(g).date=a),type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY年MM月DD日",onChange:f,size:"small"},null,8,["modelValue"])])),_:1}),D(n,{label:""},{default:A((()=>[D(d,{class:"form-i dv-select",modelValue:o(g).farmType,"onUpdate:modelValue":e[1]||(e[1]=a=>o(g).farmType=a),placeholder:"全部",onChange:f},{default:A((()=>[(l(!0),c(u,null,h(p.farmOpts,(a=>(l(),r(i,{label:a.label,value:a.value,key:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),D(n,{label:""},{default:A((()=>[D(d,{class:"form-i dv-select",modelValue:o(g).serviceCenterId,"onUpdate:modelValue":e[2]||(e[2]=a=>o(g).serviceCenterId=a),placeholder:"全部服务中心",onChange:f},{default:A((()=>[(l(!0),c(u,null,h(o(m).serviceOpts,(a=>(l(),r(i,{label:a.name,value:a.id,key:a.id},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model"]),y((l(),r(C,{"element-loading-background":"rgba(0, 53, 83, 0.5)",class:"dv-table",data:o(m).tableData,"cell-class-name":"dv-table-cell","header-cell-class-name":"dv-table-header-cell",height:"680px","span-method":b},{default:A((()=>[D(x,{prop:"serviceCenterName",label:"所属服务中心/小程序",width:"157"}),D(x,{prop:"farmName",label:"所属农场",width:"157"}),D(x,{prop:"farmType",label:"农场自营/签约",width:"146"}),(l(!0),c(u,null,h(o(m).columns,(a=>(l(),r(x,{key:a.prop,prop:a.prop,width:"120",label:a.label+"人次"},null,8,["prop","label"])))),128))])),_:1},8,["data"])),[[L,o(m).loading]])])}}}),[["__scopeId","data-v-6d55587e"]]),xa={class:"agriculturalOrder"},Ca=q(a({__name:"agriculturalOrder",props:{farmOpts:{type:Array},downloadLoading:{type:Boolean}},emits:["update:downloadLoading"],setup(a,{expose:e,emit:n}){const d=n,p=a,m=s({loading:!1,serviceOpts:[],columns:[],tableData:[]}),g=s({date:[...T],farmType:"",serviceCenterId:""}),b=({row:a,column:e,rowIndex:t,columnIndex:l})=>{if(0===l){if(t>0&&a.serviceCenterName===m.tableData[t-1].serviceCenterName)return{rowspan:0,colspan:1};{let e=1;for(let l=t+1;l<m.tableData.length&&m.tableData[l].serviceCenterName===a.serviceCenterName;l++)e++;return{rowspan:e,colspan:1}}}return{rowspan:1,colspan:1}},f=async()=>{m.loading=!0;let a={farmType:g.farmType,serviceCenterId:g.serviceCenterId,startDate:"",endDate:""};g.date.length>0&&(a.startDate=g.date[0],a.endDate=g.date[1]);try{const e=await(a=>H.request({url:fa+"/datav-api/technology-power/agricultural-order-details",method:"get",params:a}))(a);m.tableData=e.tableData||[],m.columns=e.columns||[],m.loading=!1}catch(e){}},w=async()=>{await(async()=>{try{m.loading=!0;let a={keywords:""};const e=await R(a);m.serviceOpts=e.data||[],m.loading=!1}catch(a){}})(),f()};return i((()=>{w()})),e({exportFile:async()=>{d("update:downloadLoading",!0);let a={farmType:g.farmType,serviceCenterId:g.serviceCenterId,startDate:"",endDate:""};g.date.length>0&&(a.startDate=g.date[0],a.endDate=g.date[1]);try{await((a,e)=>H.fileRequest({url:fa+"/datav-api/technology-power/agricultural-order-export",method:"get",params:a,responseType:"blob"},e))(a,{fileConfig:{filename:"明细.xlsx"}});P.success("导出成功")}catch(e){}finally{d("update:downloadLoading",!1)}}}),(a,e)=>{const s=t("el-date-picker"),n=t("el-form-item"),i=t("el-option"),d=t("el-select"),w=t("el-form"),x=t("el-table-column"),C=t("el-table"),L=v("loading");return l(),c("div",xa,[D(w,{inline:!0,model:o(g)},{default:A((()=>[D(n,{label:""},{default:A((()=>[D(s,{class:"form-i dv-date-picker-range",modelValue:o(g).date,"onUpdate:modelValue":e[0]||(e[0]=a=>o(g).date=a),type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY年MM月DD日",onChange:f,size:"small"},null,8,["modelValue"])])),_:1}),D(n,{label:""},{default:A((()=>[D(d,{class:"form-i dv-select",modelValue:o(g).farmType,"onUpdate:modelValue":e[1]||(e[1]=a=>o(g).farmType=a),placeholder:"全部",onChange:f},{default:A((()=>[(l(!0),c(u,null,h(p.farmOpts,(a=>(l(),r(i,{label:a.label,value:a.value,key:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),D(n,{label:""},{default:A((()=>[D(d,{class:"form-i dv-select",modelValue:o(g).serviceCenterId,"onUpdate:modelValue":e[2]||(e[2]=a=>o(g).serviceCenterId=a),placeholder:"全部服务中心",onChange:f},{default:A((()=>[(l(!0),c(u,null,h(o(m).serviceOpts,(a=>(l(),r(i,{label:a.name,value:a.id,key:a.id},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model"]),y((l(),r(C,{"element-loading-background":"rgba(0, 53, 83, 0.5)",class:"dv-table",data:o(m).tableData,"cell-class-name":"dv-table-cell","header-cell-class-name":"dv-table-header-cell",height:"680px","span-method":b},{default:A((()=>[D(x,{prop:"serviceCenterName",label:"所属服务中心/小程序",width:"157"}),D(x,{prop:"farmName",label:"所属农场",width:"157"}),D(x,{prop:"farmType",label:"农场自营/签约",width:"146"}),(l(!0),c(u,null,h(o(m).columns,(a=>(l(),r(x,{key:a.prop,prop:a.prop,width:"120",label:a.label+"（单次）"},null,8,["prop","label"])))),128))])),_:1},8,["data"])),[[L,o(m).loading]])])}}}),[["__scopeId","data-v-6a98beea"]]),La={class:"customPlan"},ka=q(a({__name:"customPlan",props:{farmOpts:{type:Array},downloadLoading:{type:Boolean}},emits:["update:downloadLoading"],setup(a,{expose:e,emit:n}){const d=n,p=a,m=s({loading:!1,serviceOpts:[],columns:[],tableData:[]}),g=s({date:[...T],farmType:"",serviceCenterId:""}),b=({row:a,column:e,rowIndex:t,columnIndex:l})=>{if(0===l){if(t>0&&a.serviceCenterName===m.tableData[t-1].serviceCenterName)return{rowspan:0,colspan:1};{let e=1;for(let l=t+1;l<m.tableData.length&&m.tableData[l].serviceCenterName===a.serviceCenterName;l++)e++;return{rowspan:e,colspan:1}}}return{rowspan:1,colspan:1}},f=async()=>{m.loading=!0;let a={farmType:g.farmType,serviceCenterId:g.serviceCenterId,startDate:"",endDate:""};g.date.length>0&&(a.startDate=g.date[0],a.endDate=g.date[1]);try{const e=await(a=>H.request({url:fa+"/datav-api/technology-power/custom-plan-details",method:"get",params:a}))(a);m.tableData=e.tableData||[],m.columns=e.columns||[],m.loading=!1}catch(e){}},w=async()=>{await(async()=>{try{m.loading=!0;let a={keywords:""};const e=await R(a);m.serviceOpts=e.data||[],m.loading=!1}catch(a){}})(),f()};return i((()=>{w()})),e({exportFile:async()=>{d("update:downloadLoading",!0);let a={farmType:g.farmType,serviceCenterId:g.serviceCenterId,startDate:"",endDate:""};g.date.length>0&&(a.startDate=g.date[0],a.endDate=g.date[1]);try{await((a,e)=>H.fileRequest({url:fa+"/datav-api/technology-power/custom-plan-export",method:"get",params:a,responseType:"blob"},e))(a,{fileConfig:{filename:"明细.xlsx"}});P.success("导出成功")}catch(e){}finally{d("update:downloadLoading",!1)}}}),(a,e)=>{const s=t("el-date-picker"),n=t("el-form-item"),i=t("el-option"),d=t("el-select"),w=t("el-form"),x=t("el-table-column"),C=t("el-table"),L=v("loading");return l(),c("div",La,[D(w,{inline:!0,model:o(g)},{default:A((()=>[D(n,{label:""},{default:A((()=>[D(s,{class:"form-i dv-date-picker-range",modelValue:o(g).date,"onUpdate:modelValue":e[0]||(e[0]=a=>o(g).date=a),type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY年MM月DD日",onChange:f,size:"small"},null,8,["modelValue"])])),_:1}),D(n,{label:""},{default:A((()=>[D(d,{class:"form-i dv-select",modelValue:o(g).farmType,"onUpdate:modelValue":e[1]||(e[1]=a=>o(g).farmType=a),placeholder:"全部",onChange:f},{default:A((()=>[(l(!0),c(u,null,h(p.farmOpts,(a=>(l(),r(i,{label:a.label,value:a.value,key:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),D(n,{label:""},{default:A((()=>[D(d,{class:"form-i dv-select",modelValue:o(g).serviceCenterId,"onUpdate:modelValue":e[2]||(e[2]=a=>o(g).serviceCenterId=a),placeholder:"全部服务中心",onChange:f},{default:A((()=>[(l(!0),c(u,null,h(o(m).serviceOpts,(a=>(l(),r(i,{label:a.name,value:a.id,key:a.id},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model"]),y((l(),r(C,{"element-loading-background":"rgba(0, 53, 83, 0.5)",class:"dv-table",data:o(m).tableData,"cell-class-name":"dv-table-cell","header-cell-class-name":"dv-table-header-cell",height:"680px","span-method":b},{default:A((()=>[D(x,{prop:"serviceCenterName",label:"所属服务中心/小程序",width:"157"}),D(x,{prop:"farmName",label:"所属农场",width:"157"}),D(x,{prop:"farmType",label:"农场自营/签约",width:"146"}),(l(!0),c(u,null,h(o(m).columns,(a=>(l(),r(x,{key:a.prop,prop:a.prop,width:"120",label:a.label+"（套）"},null,8,["prop","label"])))),128))])),_:1},8,["data"])),[[L,o(m).loading]])])}}}),[["__scopeId","data-v-0199e58b"]]),Sa={class:"expertQuestion"},Ia=q(a({__name:"expertQuestion",props:{farmOpts:{type:Array},downloadLoading:{type:Boolean}},emits:["update:downloadLoading"],setup(a,{expose:e,emit:n}){const d=n,p=a,m=s({loading:!1,serviceOpts:[],columns:[],tableData:[]}),g=s({date:[...T],farmType:"",serviceCenterId:""}),b=({row:a,column:e,rowIndex:t,columnIndex:l})=>{if(0===l){if(t>0&&a.serviceCenterName===m.tableData[t-1].serviceCenterName)return{rowspan:0,colspan:1};{let e=1;for(let l=t+1;l<m.tableData.length&&m.tableData[l].serviceCenterName===a.serviceCenterName;l++)e++;return{rowspan:e,colspan:1}}}return{rowspan:1,colspan:1}},f=async()=>{m.loading=!0;let a={farmType:g.farmType,serviceCenterId:g.serviceCenterId,startDate:"",endDate:""};g.date.length>0&&(a.startDate=g.date[0],a.endDate=g.date[1]);try{const e=await(a=>H.request({url:fa+"/datav-api/technology-power/expert-question-stat-details",method:"get",params:a}))(a);m.tableData=e.tableData||[],m.columns=e.columns||[],m.loading=!1}catch(e){}},w=async()=>{await(async()=>{try{m.loading=!0;let a={keywords:""};const e=await R(a);m.serviceOpts=e.data||[],m.loading=!1}catch(a){}})(),f()};return i((()=>{w()})),e({exportFile:async()=>{d("update:downloadLoading",!0);let a={farmType:g.farmType,serviceCenterId:g.serviceCenterId,startDate:"",endDate:""};g.date.length>0&&(a.startDate=g.date[0],a.endDate=g.date[1]);try{await((a,e)=>H.fileRequest({url:fa+"/datav-api/technology-power/expert-question-stat-export",method:"get",params:a,responseType:"blob"},e))(a,{fileConfig:{filename:"明细.xlsx"}});P.success("导出成功")}catch(e){}finally{d("update:downloadLoading",!1)}}}),(a,e)=>{const s=t("el-date-picker"),n=t("el-form-item"),i=t("el-option"),d=t("el-select"),w=t("el-form"),x=t("el-table-column"),C=t("el-table"),L=v("loading");return l(),c("div",Sa,[D(w,{inline:!0,model:o(g)},{default:A((()=>[D(n,{label:""},{default:A((()=>[D(s,{class:"form-i dv-date-picker-range",modelValue:o(g).date,"onUpdate:modelValue":e[0]||(e[0]=a=>o(g).date=a),type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY年MM月DD日",onChange:f,size:"small"},null,8,["modelValue"])])),_:1}),D(n,{label:""},{default:A((()=>[D(d,{class:"form-i dv-select",modelValue:o(g).farmType,"onUpdate:modelValue":e[1]||(e[1]=a=>o(g).farmType=a),placeholder:"全部",onChange:f},{default:A((()=>[(l(!0),c(u,null,h(p.farmOpts,(a=>(l(),r(i,{label:a.label,value:a.value,key:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),D(n,{label:""},{default:A((()=>[D(d,{class:"form-i dv-select",modelValue:o(g).serviceCenterId,"onUpdate:modelValue":e[2]||(e[2]=a=>o(g).serviceCenterId=a),placeholder:"全部服务中心",onChange:f},{default:A((()=>[(l(!0),c(u,null,h(o(m).serviceOpts,(a=>(l(),r(i,{label:a.name,value:a.id,key:a.id},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model"]),y((l(),r(C,{"element-loading-background":"rgba(0, 53, 83, 0.5)",class:"dv-table",data:o(m).tableData,"cell-class-name":"dv-table-cell","header-cell-class-name":"dv-table-header-cell",height:"680px","span-method":b},{default:A((()=>[D(x,{prop:"serviceCenterName",label:"所属服务中心/小程序",width:"157"}),D(x,{prop:"farmName",label:"所属农场",width:"157"}),D(x,{prop:"farmType",label:"农场自营/签约",width:"146"}),D(x,{prop:"statType",label:"类型",width:"120"}),(l(!0),c(u,null,h(o(m).columns,(a=>(l(),r(x,{key:a.prop,prop:a.prop,width:"120",label:a.label+"次"},null,8,["prop","label"])))),128))])),_:1},8,["data"])),[[L,o(m).loading]])])}}}),[["__scopeId","data-v-9eb80740"]]),Va={class:"remoteSense"},Ta=q(a({__name:"remoteSense",props:{farmOpts:{type:Array},downloadLoading:{type:Boolean}},emits:["update:downloadLoading"],setup(a,{expose:e,emit:n}){const d=n,p=a,m=s({loading:!1,serviceOpts:[],columns:[],tableData:[]}),g=s({date:[...T],farmType:"",serviceCenterId:""}),b=({row:a,column:e,rowIndex:t,columnIndex:l})=>{if(0===l){if(t>0&&a.serviceCenterName===m.tableData[t-1].serviceCenterName)return{rowspan:0,colspan:1};{let e=1;for(let l=t+1;l<m.tableData.length&&m.tableData[l].serviceCenterName===a.serviceCenterName;l++)e++;return{rowspan:e,colspan:1}}}return{rowspan:1,colspan:1}},f=async()=>{m.loading=!0;let a={farmType:g.farmType,serviceCenterId:g.serviceCenterId,startDate:"",endDate:""};g.date.length>0&&(a.startDate=g.date[0],a.endDate=g.date[1]);try{const e=await(a=>H.request({url:fa+"/datav-api/technology-power/remote-sense-details",method:"get",params:a}))(a);m.tableData=e.tableData||[],m.columns=e.columns||[],m.loading=!1}catch(e){}},w=async()=>{await(async()=>{try{m.loading=!0;let a={keywords:""};const e=await R(a);m.serviceOpts=e.data||[],m.loading=!1}catch(a){}})(),f()};return i((()=>{w()})),e({exportFile:async()=>{d("update:downloadLoading",!0);let a={farmType:g.farmType,serviceCenterId:g.serviceCenterId,startDate:"",endDate:""};g.date.length>0&&(a.startDate=g.date[0],a.endDate=g.date[1]);try{await((a,e)=>H.fileRequest({url:fa+"/datav-api/technology-power/remote-sense-export",method:"get",params:a,responseType:"blob"},e))(a,{fileConfig:{filename:"明细.xlsx"}});P.success("导出成功")}catch(e){}finally{d("update:downloadLoading",!1)}}}),(a,e)=>{const s=t("el-date-picker"),n=t("el-form-item"),i=t("el-option"),d=t("el-select"),w=t("el-form"),x=t("el-table-column"),C=t("el-table"),L=v("loading");return l(),c("div",Va,[D(w,{inline:!0,model:o(g)},{default:A((()=>[D(n,{label:""},{default:A((()=>[D(s,{class:"form-i dv-date-picker-range",modelValue:o(g).date,"onUpdate:modelValue":e[0]||(e[0]=a=>o(g).date=a),type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY年MM月DD日",onChange:f,size:"small"},null,8,["modelValue"])])),_:1}),D(n,{label:""},{default:A((()=>[D(d,{class:"form-i dv-select",modelValue:o(g).farmType,"onUpdate:modelValue":e[1]||(e[1]=a=>o(g).farmType=a),placeholder:"全部",onChange:f},{default:A((()=>[(l(!0),c(u,null,h(p.farmOpts,(a=>(l(),r(i,{label:a.label,value:a.value,key:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),D(n,{label:""},{default:A((()=>[D(d,{class:"form-i dv-select",modelValue:o(g).serviceCenterId,"onUpdate:modelValue":e[2]||(e[2]=a=>o(g).serviceCenterId=a),placeholder:"全部服务中心",onChange:f},{default:A((()=>[(l(!0),c(u,null,h(o(m).serviceOpts,(a=>(l(),r(i,{label:a.name,value:a.id,key:a.id},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model"]),y((l(),r(C,{"element-loading-background":"rgba(0, 53, 83, 0.5)",class:"dv-table",data:o(m).tableData,"cell-class-name":"dv-table-cell","header-cell-class-name":"dv-table-header-cell",height:"680px","span-method":b},{default:A((()=>[D(x,{prop:"serviceCenterName",label:"所属服务中心/小程序",width:"157"}),D(x,{prop:"farmName",label:"所属农场",width:"157"}),D(x,{prop:"farmType",label:"农场自营/签约",width:"146"}),D(x,{prop:"farmType",label:"农场自营/签约",width:"146"}),D(x,{prop:"growingGood",label:"最新新期长势良好（亩）",width:"160"}),D(x,{prop:"growingBad",label:"最新新期长势不良（亩）",width:"160"}),D(x,{prop:"growingBadPlus",label:"最新新期长势重度不良（亩）",width:"180"}),D(x,{prop:"hasCloud",label:"最新新期有云（云）",width:"140"}),(l(!0),c(u,null,h(o(m).columns,(a=>(l(),r(x,{key:a.prop,prop:a.prop,width:"120",label:a.label},null,8,["prop","label"])))),128))])),_:1},8,["data"])),[[L,o(m).loading]])])}}}),[["__scopeId","data-v-e505c1d2"]]),Ya={class:"technology-empower"},Ba={class:"h2run"},Oa={class:"main-content"},ja={class:"left-panel"},_a={class:"jc-card","element-loading-background":"rgba(0, 53, 83, 0.5)"},Ua={class:"jc-card-top"},Ra={key:0,class:"jcshuiwei-chart"},Ma={class:"chart-detail"},Na={class:"texts"},Ea={class:"sub-text"},Qa={class:"jcbar-chart"},za={class:"jc-card-bottom"},Wa={class:"supply-card","element-loading-background":"rgba(0, 53, 83, 0.5)"},Fa={class:"supply-card-chart"},qa={class:"legend scroll-black"},Ha={class:""},Pa={class:""},Xa={class:""},Ka={class:"date-filter-box"},Ja={class:"sub-text"},Ga={class:"nzfw-chart","element-loading-background":"rgba(0, 53, 83, 0.5)"},Za={class:"right-panel"},$a={key:0},ae=["title"],ee={class:"orange-text"},te={class:"red-text"},le={class:"date-filter-box"},re={class:"warn-chart"},oe={class:"expert","element-loading-background":"rgba(0, 53, 83, 0.5)"},se={class:"info"},ne={class:"name-rank"},ie={class:"no1"},de={class:"job"},ce={key:0},pe={key:1},me=["title"],ue={class:"date-filter-box"},he={"element-loading-background":"rgba(0, 53, 83, 0.5)"},ge={class:"expert-consult"},be={class:"expert-consult-total"},ye={class:"expert-chart"},fe={key:0},we=["title"],De={class:"body"},ve={class:"footer"},Ae=a({__name:"index",setup(a){V();const e=x(),o=x(),n=x(null),d=s({dialogData:{show:!1,title:"",type:"",downloadLoading:!1},farmInfoVisible:!0,expertListLoading:!1,enumData:{farmOpts:[]},remoteDate:[...Y],warningDate:[...Y],orderDate:[...Y],expertListDate:[...Y],remoteVal:"",customPlanVal:"",orderVal:"",abnormalWeatherVal:"",
// 遥感监测水位图
shuiweiChartData:{loading:!0,show:!1,remoteTotalArea:0,remoteTotalAreaUnit:"",landTotalArea:0,landTotalAreaUnit:"",data:{unit:"",rate:0,
// datas: [1, 234, 23, 5, 3, 66, 4, 7, 88, 643, 77, 99, 44],
// xAxisData: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']
datas:[],xAxisData:[]}},jcLineChartData:{show:!1,data:{unit:"",datas:[],xAxisData:[],senseUpdateCount:0}},jcBarChartData:{show:!1,data:{unit:"",datas:[],xAxisData:[]}},
// 农资服务订单
orderChartData:{loading:!1,show:!1,data:{unit:"",total:"",datas:[],xAxisData:[]}},
// 定制方案
planChartData:{loading:!1,show:!1,data:{classifyIList:[],
// 列表
total:0,colors:["#2F81FF","#00ECB3","#F2B949","#FF801F","#23CAFF"],datas:[]}},warnLoading:!1,warnList:[],warnChartData:{loading:!1,show:!1,data:{unit:"",datas:[],xAxisData:[]}},expertBarChartData:{loading:!1,show:!1,data:{unit:"",totalAnswer:0,totalQuestion:0,legendData:["咨询量","回答量"],datas:[],xAxisData:[]}},expertQuestionList:[],expertList:[],expertListLen:0}),T=(a,e)=>{d.dialogData.show=!0,d.dialogData.type=a,d.dialogData.title=e},_=a=>{let e={startMonth:"",endMonth:""};return d[a]&&d[a][0]&&d[a][1]&&(e.startMonth=d[a][0],e.endMonth=d[a][1]),e},U=async()=>{let a={..._("remoteDate"),farmType:d.remoteVal};try{d.shuiweiChartData.loading=!0;const e=await(a=>H.request({url:fa+"/datav-api/technology-power/remote-sense-stat",method:"get",params:a}))(a);d.shuiweiChartData.remoteTotalArea=e.remoteTotalArea?.toFixed(1),d.shuiweiChartData.remoteTotalAreaUnit=e.remoteTotalAreaUnit,d.shuiweiChartData.landTotalArea=e.landTotalArea?.toFixed(1),d.shuiweiChartData.landTotalAreaUnit=e.landTotalAreaUnit,d.shuiweiChartData.data.rate=e.rate,d.shuiweiChartData.show=!0,d.jcBarChartData.data.xAxisData=e.senseResultStat.xaxisData,d.jcBarChartData.data.datas=e.senseResultStat.yaxisData,d.jcBarChartData.data.unit=e.senseResultStat.unit,0==e.senseResultStat.xaxisData.length&&0==e.senseResultStat.yaxisData.length?d.jcBarChartData.show=!1:d.jcBarChartData.show=!0,d.jcLineChartData.data.xAxisData=e.periodStat.xaxisData,d.jcLineChartData.data.datas=e.periodStat.yaxisData,d.jcLineChartData.data.unit=e.periodStat.unit,d.jcLineChartData.data.senseUpdateCount=e.senseUpdateCount,d.jcLineChartData.show=!0,d.shuiweiChartData.loading=!1}catch(e){}},R=async()=>{let a={..._("warningDate"),farmType:d.abnormalWeatherVal};try{d.warnLoading=!0;const t=await(a=>H.request({url:fa+"/datav-api/technology-power/abnormal-weather-warning",method:"get",params:a}))(a),l=[];d.warnChartData.data.xAxisData=t.chartData.xaxisData,d.warnChartData.data.datas=t.chartData.yaxisData,d.warnChartData.data.unit=t.chartData.unit||"人次",d.warnChartData.show=!0,t.warningList.length>0&&t.warningList.forEach(((a,e)=>{a.farmList.length>0&&(a.farmListStr=a.farmList.map((a=>`“${a}”`)).join("、")),l.push({_h0:!1,id:e,areaName:a.area,info:a.date+"受到 ",red:a.level,detail:` 侵袭，可能波及到${a.farmListStr}等${a.farmList.length}个农场`})})),d.warnList=l,e.value.begin(d.warnList),d.warnLoading=!1}catch(t){}},E=async()=>{let a={..._("expertListDate")};try{d.expertBarChartData.loading=!0;const e=await(a=>H.request({url:fa+"/datav-api/technology-power/expert-question-stat",method:"get",params:a}))(a),t=[];e.latestMessages?.length&&e.latestMessages.forEach(((a,e)=>{t.push({id:e,detail:a,_h0:!1})})),d.expertBarChartData.show=!0,d.expertQuestionList=t,o.value.begin(d.expertQuestionList),d.expertBarChartData.data.xAxisData=e.monthList||[],d.expertBarChartData.data.datas[0]=e.monthQuestionList||[],d.expertBarChartData.data.datas[1]=e.monthAnswerList||[],d.expertBarChartData.data.totalAnswer=e.totalAnswer,d.expertBarChartData.data.totalQuestion=e.totalQuestion,d.expertBarChartData.loading=!1}catch(e){}},Q=async()=>{try{d.expertListLoading=!0;const e=await H.request({url:fa+"/datav-api/technology-power/expert-list",method:"get",params:a});let t=e.content.slice(0,3);d.expertList=t||[],d.expertListLen=e.totalSize||0,d.expertListLoading=!1}catch(e){}var a},z=async()=>{let a={
// ...dealCommonDate('remoteDate'),
farmType:d.customPlanVal};try{d.planChartData.loading=!0;const e=await(a=>H.request({url:fa+"/datav-api/technology-power/custom-plan-stat",method:"get",params:a}))(a),t=[];if(e?.classifyIList?.length){for(const a of e.classifyIList)t.push({name:a.label,value:a.originalValue,
// unit: item.unit,
percent:a.present});d.planChartData.data.total=e.totalValue,d.planChartData.data.unit=e.unit,d.planChartData.data.datas=t,d.planChartData.data.classifyIList=e.classifyIList,d.planChartData.show=!0}else d.planChartData.show=!1;d.planChartData.loading=!1}catch(e){}},W=async()=>{let a={..._("orderDate"),farmType:d.orderVal};try{d.orderChartData.loading=!0;const e=await(a=>H.request({url:fa+"/datav-api/technology-power/agricultural-order-stat",method:"get",params:a}))(a);e?.chartData?.yaxisData?.length?(d.orderChartData.show=!0,d.orderChartData.data.xAxisData=e.chartData.xaxisData?.map((a=>a+"月"))||[],d.orderChartData.data.datas=e.chartData.yaxisData):d.orderChartData.show=!1,d.orderChartData.data.total=e.total,d.orderChartData.data.unit=e.unit,d.orderChartData.loading=!1}catch(e){}};return i((async()=>{await(async()=>{try{const a=await N();let e=[];if(a.length>0)for(const t of a){let a=t;"全部"==t&&(a=""),e.push({label:t,value:a})}d.enumData.farmOpts=e}catch(a){}})(),(async()=>{k((async()=>{U(),z(),W(),R(),E(),Q()}))})()})),C((()=>{})),(a,s)=>{const i=t("el-date-picker"),x=t("el-option"),C=t("el-select"),k=t("empty-black"),V=t("el-image"),Y=t("big-dialog"),_=v("loading");return l(),c("div",Ya,[D(O,{tabIndex:3}),p("div",Ba,[d.farmInfoVisible?(l(),r(ya,{key:0})):w("",!0)]),D(j),p("main",Oa,[p("section",ja,[D(M,{title:"遥感监测",class:"data-card left-panel-1",onViewMore:s[2]||(s[2]=a=>T("remoteSense","遥感监测"))},{header:A((({})=>[D(i,{class:"dv-date-picker-range",modelValue:d.remoteDate,"onUpdate:modelValue":s[0]||(s[0]=a=>d.remoteDate=a),type:"monthrange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY年MM月",onChange:U,size:"small"},null,8,["modelValue"]),D(C,{class:"dv-select small",modelValue:d.remoteVal,"onUpdate:modelValue":s[1]||(s[1]=a=>d.remoteVal=a),placeholder:"全部",onChange:U},{default:A((()=>[(l(!0),c(u,null,h(d.enumData.farmOpts,(a=>(l(),r(x,{key:a.value,label:a.label,value:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),default:A((()=>[y((l(),c("div",_a,[p("div",Ua,[d.shuiweiChartData.show?(l(),c("div",Ra,[D(K,{chartData:d.shuiweiChartData.data},null,8,["chartData"]),p("div",Ma,[p("div",Na,[p("p",null,[p("span",null,g(d.shuiweiChartData.remoteTotalArea),1),p("span",null,g(d.shuiweiChartData.remoteTotalAreaUnit),1)]),s[17]||(s[17]=p("span",{class:"line"},"/",-1)),p("p",Ea,[p("span",null,g(d.shuiweiChartData.landTotalArea),1),p("span",null,g(d.shuiweiChartData.landTotalAreaUnit),1)])]),s[18]||(s[18]=p("p",{class:"sub-text"},"已经开通监测",-1))])])):w("",!0),p("div",Qa,[d.jcBarChartData.show?(l(),r(X,{key:0,chartData:d.jcBarChartData.data},null,8,["chartData"])):y((l(),r(k,{key:1,height:"80%"},null,512)),[[f,!d.shuiweiChartData.loading]])])]),p("div",za,[d.jcLineChartData.show?(l(),r(J,{key:0,chartData:d.jcLineChartData.data},null,8,["chartData"])):w("",!0)])])),[[_,d.shuiweiChartData.loading]])])),_:1}),D(M,{title:"定制方案",class:"data-card left-panel-2",onViewMore:s[4]||(s[4]=a=>T("customPlan","定制方案"))},{header:A((({})=>[D(C,{class:"dv-select small",modelValue:d.customPlanVal,"onUpdate:modelValue":s[3]||(s[3]=a=>d.customPlanVal=a),placeholder:"全部",onChange:z},{default:A((()=>[(l(!0),c(u,null,h(d.enumData.farmOpts,(a=>(l(),r(x,{key:a.value,label:a.label,value:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),default:A((()=>[y((l(),c("div",Wa,[d.planChartData.show?(l(),c(u,{key:0},[p("div",Fa,[s[19]||(s[19]=p("img",{class:"big-circle",src:S,alt:""},null,-1)),s[20]||(s[20]=p("img",{class:"small-circle",src:I,alt:""},null,-1)),d.planChartData.show?(l(),r(Z,{key:0,chartData:d.planChartData.data},null,8,["chartData"])):w("",!0)]),p("div",qa,[(l(!0),c(u,null,h(d.planChartData.data.classifyIList,((a,e)=>(l(),c("div",{key:e,class:"legend-item",style:m({color:d.planChartData.data.colors[e]})},[p("p",Ha,[p("i",{class:b(["legend-item-index",{"text-shadow":e<3}]),style:m({textShadow:e<3?`2px 2px 2px ${d.planChartData.data.colors[e]}`:"none"})},g(e+1>9?e+1:"0"+(e+1)),7),p("span",null,g(a.label),1)]),p("p",null,[p("span",Pa,g(a.value),1),p("span",Xa,g(a.unit||d.planChartData.data.unit),1)])],4)))),128))])],64)):(l(),r(k,{key:1,height:"100%"}))])),[[_,d.planChartData.loading]])])),_:1}),D(M,{title:"农资服务订单",class:"data-card left-panel-3",onViewMore:s[7]||(s[7]=a=>T("agriculturalOrder","农资服务订单"))},{header:A((({})=>[D(C,{class:"dv-select small",modelValue:d.orderVal,"onUpdate:modelValue":s[5]||(s[5]=a=>d.orderVal=a),placeholder:"全部",onChange:W},{default:A((()=>[(l(!0),c(u,null,h(d.enumData.farmOpts,(a=>(l(),r(x,{key:a.value,label:a.label,value:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),default:A((()=>[p("div",Ka,[D(i,{class:"dv-date-picker-range small",modelValue:d.orderDate,"onUpdate:modelValue":s[6]||(s[6]=a=>d.orderDate=a),type:"monthrange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY年MM月",onChange:W,size:"small"},null,8,["modelValue"]),p("span",Ja," 累计下单："+g(d.orderChartData.data.total)+g(d.orderChartData.data.unit),1)]),y((l(),c("div",Ga,[d.orderChartData.show?(l(),r(G,{key:0,chartData:d.orderChartData.data},null,8,["chartData"])):(l(),r(k,{key:1,height:"100%"}))])),[[_,d.orderChartData.loading]])])),_:1})]),s[21]||(s[21]=p("section",{class:"center-panel"},null,-1)),p("section",Za,[y((l(),r(M,{title:"异常天气预警",class:"data-card right-panel-1",onViewMore:s[11]||(s[11]=a=>T("abnormalWeather","异常天气预警")),"element-loading-background":"rgba(0, 53, 83, 0.5)"},{header:A((({})=>[D(C,{class:"dv-select small",modelValue:d.abnormalWeatherVal,"onUpdate:modelValue":s[8]||(s[8]=a=>d.abnormalWeatherVal=a),placeholder:"全部",onChange:R},{default:A((()=>[(l(!0),c(u,null,h(d.enumData.farmOpts,(a=>(l(),r(x,{key:a.value,label:a.label,value:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),default:A((()=>[D(B,{class:"warn-auto-scroll",ref_key:"warnAutoScrollRef",ref:e,mouseoverStop:!0,showScrollbar:!0,itemLen:3},{default:A((()=>[d.warnList.length>0?(l(),c("ul",$a,[(l(!0),c(u,null,h(d.warnList,((a,e)=>(l(),c("li",{key:a.id+e,class:b(["row-item",{"row-item-h":a._h0}])},[p("div",null,[p("p",{class:"ovflow2",title:a.areaName+a.info+a.red+a.detail},[p("span",ee,g(a.areaName),1),p("span",null,g(a.info),1),p("span",te,g(a.red),1),p("span",null,g(a.detail),1)],8,ae)])],2)))),128))])):(l(),r(k,{key:1,height:"80%"}))])),_:1},512),p("div",le,[D(i,{class:"dv-date-picker-range",modelValue:d.warningDate,"onUpdate:modelValue":s[9]||(s[9]=a=>d.warningDate=a),type:"monthrange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY年MM月",onChange:R,size:"small"},null,8,["modelValue"]),p("span",{class:"more",onClick:s[10]||(s[10]=a=>T("abnormalWeatherReminder","异常天气提醒"))},"更多>")]),p("div",re,[d.warnChartData.show?(l(),r($,{key:0,chartData:d.warnChartData.data},null,8,["chartData"])):w("",!0)])])),_:1})),[[_,d.warnLoading]]),D(M,{title:`专家队伍（${d.expertListLen}位专家）`,class:"data-card right-panel-2",showMore:!1},{default:A((()=>[y((l(),c("div",oe,[d.expertList.length>0?(l(!0),c(u,{key:0},h(d.expertList,((a,e)=>(l(),c("div",{class:b(["expert-card",["expert-card-"+(e+1)]]),key:e},[D(V,{src:a.avatar},null,8,["src"]),p("div",se,[p("p",ne,[p("span",null,g(a.name),1),p("span",ie,"No."+g(e+1),1)]),p("p",de,[a.title?(l(),c("span",ce,"·"+g(a.title),1)):w("",!0),a.type?(l(),c("span",pe,"·"+g(a.type),1)):w("",!0)]),p("p",{class:"job ovflow1",title:a.intro},g(a.intro),9,me)])],2)))),128)):(l(),r(k,{key:1,height:"80%"}))])),[[_,d.expertListLoading]]),p("div",ue,[D(i,{class:"dv-date-picker-range",modelValue:d.expertListDate,"onUpdate:modelValue":s[12]||(s[12]=a=>d.expertListDate=a),type:"monthrange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY年MM月",onChange:E,size:"small"},null,8,["modelValue"]),p("span",{class:"more",onClick:s[13]||(s[13]=a=>T("expertQuestion","累计咨询量"))},"更多>")]),y((l(),c("div",he,[p("div",ge,[p("p",be," 累计咨询量："+g(d.expertBarChartData.data.totalQuestion)+"人次 | 回答量："+g(d.expertBarChartData.data.totalAnswer)+"次 ",1),p("div",ye,[d.expertBarChartData.show?(l(),r(aa,{key:0,chartData:d.expertBarChartData.data},null,8,["chartData"])):w("",!0)])]),D(B,{class:"expert-auto-scroll",ref_key:"expertAutoScrollRef",ref:o,mouseoverStop:!0,showScrollbar:!0,itemLen:3},{default:A((()=>[d.expertQuestionList.length?(l(),c("ul",fe,[(l(!0),c(u,null,h(d.expertQuestionList,((a,e)=>(l(),c("li",{key:a.id+e,class:b(["row-item",{"row-item-h":a._h0}])},[p("div",null,[p("p",{class:"ovflow1",title:a.detail},g(a.detail),9,we)])],2)))),128))])):(l(),r(k,{key:1,height:"60%"}))])),_:1},512)])),[[_,d.expertBarChartData.loading]])])),_:1},8,["title"])])]),d.dialogData.show?(l(),r(Y,{key:0,width:"1620",height:"920",title:d.dialogData.title,onDialogBack:s[16]||(s[16]=a=>d.dialogData.show=!1)},{default:A((()=>[p("div",De,["abnormalWeather"==d.dialogData.type?(l(),r(Da,{key:0,ref_key:"currentDialogRef",ref:n,farmOpts:d.enumData.farmOpts,downloadLoading:d.dialogData.downloadLoading},null,8,["farmOpts","downloadLoading"])):"abnormalWeatherReminder"==d.dialogData.type?(l(),r(Aa,{key:1,ref_key:"currentDialogRef",ref:n,farmOpts:d.enumData.farmOpts,downloadLoading:d.dialogData.downloadLoading},null,8,["farmOpts","downloadLoading"])):"agriculturalOrder"==d.dialogData.type?(l(),r(Ca,{key:2,ref_key:"currentDialogRef",ref:n,farmOpts:d.enumData.farmOpts,downloadLoading:d.dialogData.downloadLoading},null,8,["farmOpts","downloadLoading"])):"customPlan"==d.dialogData.type?(l(),r(ka,{key:3,ref_key:"currentDialogRef",ref:n,farmOpts:d.enumData.farmOpts,downloadLoading:d.dialogData.downloadLoading},null,8,["farmOpts","downloadLoading"])):"expertQuestion"==d.dialogData.type?(l(),r(Ia,{key:4,ref_key:"currentDialogRef",ref:n,farmOpts:d.enumData.farmOpts,downloadLoading:d.dialogData.downloadLoading},null,8,["farmOpts","downloadLoading"])):"remoteSense"==d.dialogData.type?(l(),r(Ta,{key:5,ref_key:"currentDialogRef",ref:n,farmOpts:d.enumData.farmOpts,downloadLoading:d.dialogData.downloadLoading},null,8,["farmOpts","downloadLoading"])):w("",!0)]),p("div",ve,[p("div",{class:"footer-btn footer-btn-cancel",onClick:s[14]||(s[14]=a=>d.dialogData.show=!1)},"取消"),y((l(),c("div",{class:"footer-btn footer-btn-download","element-loading-background":"transparent",onClick:s[15]||(s[15]=a=>(async()=>{d.dialogData.downloadLoading=!0,await n.value.exportFile(),d.dialogData.downloadLoading=!1})())},s[22]||(s[22]=[L(" 下载 ")]))),[[_,d.dialogData.downloadLoading]])])])),_:1},8,["title"])):w("",!0)])}}}),xe=q(Ae,[["__scopeId","data-v-2861671f"]]);export{xe as default};
//# sourceMappingURL=index-ca28b5e8.js.map
