diff --git a/dist 2.zip b/dist 2.zip index 3910b43..9619b69 100644 Binary files a/dist 2.zip and b/dist 2.zip differ diff --git a/dist/assets/401.515940fa.js.gz b/dist/assets/401.515940fa.js.gz deleted file mode 100644 index 278bead..0000000 Binary files a/dist/assets/401.515940fa.js.gz and /dev/null differ diff --git a/dist/assets/401.515940fa.js b/dist/assets/401.bca7d926.js similarity index 95% rename from dist/assets/401.515940fa.js rename to dist/assets/401.bca7d926.js index 57ea291..da82f35 100644 --- a/dist/assets/401.515940fa.js +++ b/dist/assets/401.bca7d926.js @@ -1 +1 @@ -import{_ as f,r as h,d as n,o as m,c as g,e as t,w as o,m as r,l as e,f as k,s as w,p as x,q as v}from"./index.5f349928.js";const b="/assets/401.a61ddb94.gif";const a=s=>(x("data-v-5fa95398"),s=s(),v(),s),y={class:"errPage-container"},I=a(()=>e("h1",{class:"text-jumbo text-ginormous"}," 401\u9519\u8BEF! ",-1)),B=a(()=>e("h2",null,"\u60A8\u6CA1\u6709\u8BBF\u95EE\u6743\u9650\uFF01",-1)),C=a(()=>e("h6",null,"\u5BF9\u4E0D\u8D77\uFF0C\u60A8\u6CA1\u6709\u8BBF\u95EE\u6743\u9650\uFF0C\u8BF7\u4E0D\u8981\u8FDB\u884C\u975E\u6CD5\u64CD\u4F5C\uFF01\u60A8\u53EF\u4EE5\u8FD4\u56DE\u4E3B\u9875\u9762",-1)),G={class:"list-unstyled"},N={class:"link-type"},S=["src"],V={__name:"401",setup(s){let{proxy:c}=w();const l=h(b+"?"+ +new Date);function u(){c.$route.query.noGoBack?c.$router.push({path:"/"}):c.$router.go(-1)}return($,q)=>{const i=n("el-button"),d=n("router-link"),_=n("el-col"),p=n("el-row");return m(),g("div",y,[t(i,{icon:"arrow-left",class:"pan-back-btn",onClick:u},{default:o(()=>[r(" \u8FD4\u56DE ")]),_:1}),t(p,null,{default:o(()=>[t(_,{span:12},{default:o(()=>[I,B,C,e("ul",G,[e("li",N,[t(d,{to:"/"},{default:o(()=>[r(" \u56DE\u9996\u9875 ")]),_:1})])])]),_:1}),t(_,{span:12},{default:o(()=>[e("img",{src:k(l),width:"313",height:"428",alt:"Girl has dropped her ice cream."},null,8,S)]),_:1})]),_:1})])}}},j=f(V,[["__scopeId","data-v-5fa95398"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/error/401.vue"]]);export{j as default}; +import{_ as f,r as h,d as n,o as m,c as g,e as t,w as o,m as r,l as e,f as k,s as w,p as x,q as v}from"./index.b3a66a9e.js";const b="/assets/401.a61ddb94.gif";const a=s=>(x("data-v-5fa95398"),s=s(),v(),s),y={class:"errPage-container"},I=a(()=>e("h1",{class:"text-jumbo text-ginormous"}," 401\u9519\u8BEF! ",-1)),B=a(()=>e("h2",null,"\u60A8\u6CA1\u6709\u8BBF\u95EE\u6743\u9650\uFF01",-1)),C=a(()=>e("h6",null,"\u5BF9\u4E0D\u8D77\uFF0C\u60A8\u6CA1\u6709\u8BBF\u95EE\u6743\u9650\uFF0C\u8BF7\u4E0D\u8981\u8FDB\u884C\u975E\u6CD5\u64CD\u4F5C\uFF01\u60A8\u53EF\u4EE5\u8FD4\u56DE\u4E3B\u9875\u9762",-1)),G={class:"list-unstyled"},N={class:"link-type"},S=["src"],V={__name:"401",setup(s){let{proxy:c}=w();const l=h(b+"?"+ +new Date);function u(){c.$route.query.noGoBack?c.$router.push({path:"/"}):c.$router.go(-1)}return($,q)=>{const i=n("el-button"),d=n("router-link"),_=n("el-col"),p=n("el-row");return m(),g("div",y,[t(i,{icon:"arrow-left",class:"pan-back-btn",onClick:u},{default:o(()=>[r(" \u8FD4\u56DE ")]),_:1}),t(p,null,{default:o(()=>[t(_,{span:12},{default:o(()=>[I,B,C,e("ul",G,[e("li",N,[t(d,{to:"/"},{default:o(()=>[r(" \u56DE\u9996\u9875 ")]),_:1})])])]),_:1}),t(_,{span:12},{default:o(()=>[e("img",{src:k(l),width:"313",height:"428",alt:"Girl has dropped her ice cream."},null,8,S)]),_:1})]),_:1})])}}},j=f(V,[["__scopeId","data-v-5fa95398"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/error/401.vue"]]);export{j as default}; diff --git a/dist/assets/401.bca7d926.js.gz b/dist/assets/401.bca7d926.js.gz new file mode 100644 index 0000000..9e1c8d4 Binary files /dev/null and b/dist/assets/401.bca7d926.js.gz differ diff --git a/dist/assets/404.68c4eb6f.js.gz b/dist/assets/404.68c4eb6f.js.gz deleted file mode 100644 index 54c767d..0000000 Binary files a/dist/assets/404.68c4eb6f.js.gz and /dev/null differ diff --git a/dist/assets/404.68c4eb6f.js b/dist/assets/404.c3fa3cdd.js similarity index 96% rename from dist/assets/404.68c4eb6f.js rename to dist/assets/404.c3fa3cdd.js index 87e0815..e9068d3 100644 --- a/dist/assets/404.68c4eb6f.js +++ b/dist/assets/404.c3fa3cdd.js @@ -1 +1 @@ -import{_ as o,v as d,d as i,o as l,c as n,l as s,x as r,f as p,e as h,w as u,y as v,m,p as f,q as g}from"./index.5f349928.js";const x="/assets/404.538aa4d7.png",t="/assets/404_cloud.98e7ac66.png";const c=e=>(f("data-v-472cde65"),e=e(),g(),e),w={class:"wscn-http404-container"},b={class:"wscn-http404"},k=v('
',1),S={class:"bullshit"},y=c(()=>s("div",{class:"bullshit__oops"}," 404\u9519\u8BEF! ",-1)),I={class:"bullshit__headline"},N=c(()=>s("div",{class:"bullshit__info"}," \u5BF9\u4E0D\u8D77\uFF0C\u60A8\u6B63\u5728\u5BFB\u627E\u7684\u9875\u9762\u4E0D\u5B58\u5728\u3002\u5C1D\u8BD5\u68C0\u67E5URL\u7684\u9519\u8BEF\uFF0C\u7136\u540E\u6309\u6D4F\u89C8\u5668\u4E0A\u7684\u5237\u65B0\u6309\u94AE\u6216\u5C1D\u8BD5\u5728\u6211\u4EEC\u7684\u5E94\u7528\u7A0B\u5E8F\u4E2D\u627E\u5230\u5176\u4ED6\u5185\u5BB9\u3002 ",-1)),V={__name:"404",setup(e){let a=d(()=>"\u627E\u4E0D\u5230\u7F51\u9875\uFF01");return(B,C)=>{const _=i("router-link");return l(),n("div",w,[s("div",b,[k,s("div",S,[y,s("div",I,r(p(a)),1),N,h(_,{to:"/index",class:"bullshit__return-home"},{default:u(()=>[m(" \u8FD4\u56DE\u9996\u9875 ")]),_:1})])])])}}},U=o(V,[["__scopeId","data-v-472cde65"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/error/404.vue"]]);export{U as default}; +import{_ as o,v as d,d as i,o as l,c as n,l as s,x as r,f as p,e as h,w as u,y as v,m,p as f,q as g}from"./index.b3a66a9e.js";const x="/assets/404.538aa4d7.png",t="/assets/404_cloud.98e7ac66.png";const c=e=>(f("data-v-472cde65"),e=e(),g(),e),w={class:"wscn-http404-container"},b={class:"wscn-http404"},k=v('',1),S={class:"bullshit"},y=c(()=>s("div",{class:"bullshit__oops"}," 404\u9519\u8BEF! ",-1)),I={class:"bullshit__headline"},N=c(()=>s("div",{class:"bullshit__info"}," \u5BF9\u4E0D\u8D77\uFF0C\u60A8\u6B63\u5728\u5BFB\u627E\u7684\u9875\u9762\u4E0D\u5B58\u5728\u3002\u5C1D\u8BD5\u68C0\u67E5URL\u7684\u9519\u8BEF\uFF0C\u7136\u540E\u6309\u6D4F\u89C8\u5668\u4E0A\u7684\u5237\u65B0\u6309\u94AE\u6216\u5C1D\u8BD5\u5728\u6211\u4EEC\u7684\u5E94\u7528\u7A0B\u5E8F\u4E2D\u627E\u5230\u5176\u4ED6\u5185\u5BB9\u3002 ",-1)),V={__name:"404",setup(e){let a=d(()=>"\u627E\u4E0D\u5230\u7F51\u9875\uFF01");return(B,C)=>{const _=i("router-link");return l(),n("div",w,[s("div",b,[k,s("div",S,[y,s("div",I,r(p(a)),1),N,h(_,{to:"/index",class:"bullshit__return-home"},{default:u(()=>[m(" \u8FD4\u56DE\u9996\u9875 ")]),_:1})])])])}}},U=o(V,[["__scopeId","data-v-472cde65"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/error/404.vue"]]);export{U as default}; diff --git a/dist/assets/404.c3fa3cdd.js.gz b/dist/assets/404.c3fa3cdd.js.gz new file mode 100644 index 0000000..d8079ac Binary files /dev/null and b/dist/assets/404.c3fa3cdd.js.gz differ diff --git a/dist/assets/Area.869e5591.js b/dist/assets/Area.869e5591.js deleted file mode 100644 index 0c4bce6..0000000 --- a/dist/assets/Area.869e5591.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as Ge,r as b,B as ae,C as $e,D as je,F as pe,d as re,o as k,c as z,l as a,m as L,x as w,f as g,e as Q,w as V,g as F,J as Me,K as De,k as ke,y as Je,p as Ue,q as Ye}from"./index.5f349928.js";import le from"./downloads.e955445d.js";import{_ as J}from"./crops.d314ada0.js";import{_ as ie}from"./close1.45635d81.js";import{h as Ie,g as He,i as Ke,a as et,_ as tt,b as ot,c as at,d as rt,e as st,f as lt}from"./linesGL.badda9a7.js";import{i as se,L as R}from"./index.c9f5bd8b.js";import{T as it}from"./TimeLine.ca858622.js";import{u as me}from"./useEcharts.f096c4b4.js";const x=U=>(Ue("data-v-dfd23c6a"),U=U(),Ye(),U),nt={class:"center"},ct=x(()=>a("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),dt={class:"leftWra"},ut={class:"leftTop"},ft={class:"title"},pt=x(()=>a("span",null,"\u79CD\u690D\u9762\u79EF\u65F6\u95F4\u7EDF\u8BA1",-1)),mt=x(()=>a("img",{src:le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),gt={class:"leftbottom"},ht={class:"title"},vt=x(()=>a("span",null,"\u79CD\u690D\u9762\u79EF\u7EDF\u8BA1",-1)),yt=x(()=>a("img",{src:le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),bt={class:"tableDiv"},_t={class:"Crops"},wt=x(()=>a("div",null,[a("img",{src:J,alt:""}),L(" \u5C0F\u9EA6 ")],-1)),xt={style:{color:"rgba(110, 209, 84, 1)"}},St={style:{color:"rgba(110, 209, 84, 1)"}},Ct={class:"Crops"},Mt=x(()=>a("div",null,[a("img",{src:J,alt:""}),L(" \u82B1\u751F ")],-1)),Dt={style:{color:"rgba(229, 205, 38, 1)"}},kt={style:{color:"rgba(229, 205, 38, 1)"}},It={class:"Crops"},Lt=x(()=>a("div",null,[a("img",{src:J,alt:""}),L(" \u5927\u8C46 ")],-1)),At={style:{color:"rgba(252, 169, 63, 1)"}},Bt={style:{color:"rgba(252, 169, 63, 1)"}},Pt={class:"Crops"},Tt=x(()=>a("div",null,[a("img",{src:J,alt:""}),L(" \u5730\u74DC ")],-1)),zt={style:{color:"rgba(103, 153, 242, 1)"}},Rt={style:{color:"rgba(103, 153, 242, 1)"}},Et={class:"Crops"},Wt=x(()=>a("div",null,[a("img",{src:J,alt:""}),L(" \u84DD\u8393 ")],-1)),Zt={style:{color:"rgba(4, 179, 228, 1)"}},Xt={style:{color:"rgba(4, 179, 228, 1)"}},Ft={key:0,src:ie,alt:""},Nt={key:0,class:"imgrotate",src:ie,alt:""},Ot={class:"rightWra"},qt={class:"rightTop"},Qt={class:"title"},Vt=x(()=>a("span",null,"\u79CD\u690D\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Gt=x(()=>a("img",{src:le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),$t={class:"rightbottom"},jt={class:"title"},Jt=x(()=>a("span",null,"\u79CD\u690D\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Ut=x(()=>a("img",{src:le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Yt={key:0,src:ie,alt:""},Ht={key:0,class:"imgrotate",src:ie,alt:""},Kt={class:"bottom_center"},eo=Je('0&&S(e).unusedInput.push(l),t=t.slice(t.indexOf(a)+a.length),M+=a.length),st[i]?(a?S(e).empty=!1:S(e).unusedTokens.push(i),Li(i,a,e)):e._strict&&!a&&S(e).unusedTokens.push(i);S(e).charsLeftOver=p-M,t.length>0&&S(e).unusedInput.push(t),e._a[Q]<=12&&S(e).bigHour===!0&&e._a[Q]>0&&(S(e).bigHour=void 0),S(e).parsedDateParts=e._a.slice(0),S(e).meridiem=e._meridiem,e._a[Q]=tl(e._locale,e._a[Q],e._meridiem),C=S(e).era,C!==null&&(e._a[X]=e._locale.erasConvertYear(C,e._a[X])),Us(e),Fs(e)}function tl(e,t,s){var a;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(a=e.isPM(s),a&&t<12&&(t+=12),!a&&t===12&&(t=0)),t)}function sl(e){var t,s,a,r,i,l,p=!1,M=e._f.length;if(M===0){S(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;rthis?this:e:Lt()});function $a(e,t){var s,a;if(t.length===1&&ge(t[0])&&(t=t[0]),!t.length)return P();for(s=t[0],a=1;a this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Dl(){if(!re(this._isDSTShifted))return this._isDSTShifted;var e={},t;return xs(e,this),e=ja(e),e._a?(t=e._isUTC?ke(e._a):P(e._a),this._isDSTShifted=this.isValid()&&ml(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sl(){return this.isValid()?!this._isUTC:!1}function bl(){return this.isValid()?this._isUTC:!1}function tr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Yl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,xl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ye(e,t){var s=e,a=null,r,i,l;return It(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:Oe(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(a=Yl.exec(e))?(r=a[1]==="-"?-1:1,s={y:0,d:Y(a[we])*r,h:Y(a[Q])*r,m:Y(a[me])*r,s:Y(a[Ce])*r,ms:Y(Ms(a[Qe]*1e3))*r}):(a=xl.exec(e))?(r=a[1]==="-"?-1:1,s={y:ze(a[2],r),M:ze(a[3],r),w:ze(a[4],r),d:ze(a[5],r),h:ze(a[6],r),m:ze(a[7],r),s:ze(a[8],r)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(l=Cl(P(s.from),P(s.to)),s={},s.ms=l.milliseconds,s.M=l.months),i=new $t(s),It(e)&&O(e,"_locale")&&(i._locale=e._locale),It(e)&&O(e,"_isValid")&&(i._isValid=e._isValid),i}ye.fn=$t.prototype;ye.invalid=fl;function ze(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function Sa(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function Cl(e,t){var s;return e.isValid()&&t.isValid()?(t=Bs(t,e),e.isBefore(t)?s=Sa(e,t):(s=Sa(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function sr(e,t){return function(s,a){var r,i;return a!==null&&!isNaN(+a)&&(Oa(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=s,s=a,a=i),r=ye(s,a),ar(this,r,e),this}}function ar(e,t,s,a){var r=t._milliseconds,i=Ms(t._days),l=Ms(t._months);!e.isValid()||(a=a==null?!0:a,l&&Wa(e,Pt(e,"Month")+l*s),i&&Ra(e,"Date",Pt(e,"Date")+i*s),r&&e._d.setTime(e._d.valueOf()+r*s),a&&f.updateOffset(e,i||l))}var _l=sr(1,"add"),Ol=sr(-1,"subtract");function rr(e){return typeof e=="string"||e instanceof String}function Tl(e){return pe(e)||kt(e)||rr(e)||Oe(e)||Rl(e)||El(e)||e===null||e===void 0}function El(e){var t=qe(e)&&!bs(e),s=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,i,l=a.length;for(r=0;r s.valueOf():s.valueOf() 9999?Rt(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Me(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Rt(s,"Z")):Rt(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ql(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,a,r,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(s+a+r+i)}function Jl(e){e||(e=this.isUtc()?f.defaultFormatUtc:f.defaultFormat);var t=Rt(this,e);return this.localeData().postformat(t)}function Xl(e,t){return this.isValid()&&(pe(e)&&e.isValid()||P(e).isValid())?ye({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Zl(e){return this.from(P(),e)}function jl(e,t){return this.isValid()&&(pe(e)&&e.isValid()||P(e).isValid())?ye({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Kl(e){return this.to(P(),e)}function ir(e){var t;return e===void 0?this._locale._abbr:(t=Ee(e),t!=null&&(this._locale=t),this)}var nr=de("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function lr(){return this._locale}var Nt=1e3,at=60*Nt,Wt=60*at,or=(365*400+97)*24*Wt;function rt(e,t){return(e%t+t)%t}function ur(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-or:new Date(e,t,s).valueOf()}function dr(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-or:Date.UTC(e,t,s)}function $l(e){var t,s;if(e=ce(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?dr:ur,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=rt(t+(this._isUTC?0:this.utcOffset()*at),Wt);break;case"minute":t=this._d.valueOf(),t-=rt(t,at);break;case"second":t=this._d.valueOf(),t-=rt(t,Nt);break}return this._d.setTime(t),f.updateOffset(this,!0),this}function eo(e){var t,s;if(e=ce(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?dr:ur,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Wt-rt(t+(this._isUTC?0:this.utcOffset()*at),Wt)-1;break;case"minute":t=this._d.valueOf(),t+=at-rt(t,at)-1;break;case"second":t=this._d.valueOf(),t+=Nt-rt(t,Nt)-1;break}return this._d.setTime(t),f.updateOffset(this,!0),this}function to(){return this._d.valueOf()-(this._offset||0)*6e4}function so(){return Math.floor(this.valueOf()/1e3)}function ao(){return new Date(this.valueOf())}function ro(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function io(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function no(){return this.isValid()?this.toISOString():null}function lo(){return Ys(this)}function oo(){return He({},S(this))}function uo(){return S(this).overflow}function co(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}y("N",0,0,"eraAbbr");y("NN",0,0,"eraAbbr");y("NNN",0,0,"eraAbbr");y("NNNN",0,0,"eraName");y("NNNNN",0,0,"eraNarrow");y("y",["y",1],"yo","eraYear");y("y",["yy",2],0,"eraYear");y("y",["yyy",3],0,"eraYear");y("y",["yyyy",4],0,"eraYear");g("N",Vs);g("NN",Vs);g("NNN",Vs);g("NNNN",Mo);g("NNNNN",Do);I(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,a){var r=s._locale.erasParse(e,a,s._strict);r?S(s).era=r:S(s).invalidEra=e});g("y",nt);g("yy",nt);g("yyy",nt);g("yyyy",nt);g("yo",So);I(["y","yy","yyy","yyyy"],X);I(["yo"],function(e,t,s,a){var r;s._locale._eraYearOrdinalRegex&&(r=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[X]=s._locale.eraYearOrdinalParse(e,r):t[X]=parseInt(e,10)});function ho(e,t){var s,a,r,i=this._eras||Ee("en")._eras;for(s=0,a=i.length;s=0)return i[a]}function mo(e,t){var s=e.since<=e.until?1:-1;return t===void 0?f(e.since).year():f(e.since).year()+(t-e.offset)*s}function go(){var e,t,s,a=this.localeData().eras();for(e=0,t=a.length;e i&&(t=i),To.call(this,e,t,s,a,r))}function To(e,t,s,a,r){var i=La(e,t,s,a,r),l=vt(i.year,0,i.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}y("Q",0,"Qo","quarter");Z("quarter","Q");j("quarter",7);g("Q",Ia);I("Q",function(e,t){t[xe]=(Y(e)-1)*3});function Eo(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}y("D",["DD",2],"Do","date");Z("date","D");j("date",9);g("D",F);g("DD",F,le);g("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});I(["D","DD"],we);I("Do",function(e,t){t[we]=Y(e.match(F)[0])});var hr=it("Date",!0);y("DDD",["DDDD",3],"DDDo","dayOfYear");Z("dayOfYear","DDD");j("dayOfYear",4);g("DDD",qt);g("DDDD",Ha);I(["DDD","DDDD"],function(e,t,s){s._dayOfYear=Y(e)});function Ro(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}y("m",["mm",2],0,"minute");Z("minute","m");j("minute",14);g("m",F);g("mm",F,le);I(["m","mm"],me);var Io=it("Minutes",!1);y("s",["ss",2],0,"second");Z("second","s");j("second",15);g("s",F);g("ss",F,le);I(["s","ss"],Ce);var Ho=it("Seconds",!1);y("S",0,0,function(){return~~(this.millisecond()/100)});y(0,["SS",2],0,function(){return~~(this.millisecond()/10)});y(0,["SSS",3],0,"millisecond");y(0,["SSSS",4],0,function(){return this.millisecond()*10});y(0,["SSSSS",5],0,function(){return this.millisecond()*100});y(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});y(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});y(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});y(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Z("millisecond","ms");j("millisecond",16);g("S",qt,Ia);g("SS",qt,le);g("SSS",qt,Ha);var Pe,fr;for(Pe="SSSS";Pe.length<=9;Pe+="S")g(Pe,nt);function Po(e,t){t[Qe]=Y(("0."+e)*1e3)}for(Pe="S";Pe.length<=9;Pe+="S")I(Pe,Po);fr=it("Milliseconds",!1);y("z",0,0,"zoneAbbr");y("zz",0,0,"zoneName");function Fo(){return this._isUTC?"UTC":""}function Uo(){return this._isUTC?"Coordinated Universal Time":""}var c=Mt.prototype;c.add=_l;c.calendar=Pl;c.clone=Fl;c.diff=Ll;c.endOf=eo;c.format=Jl;c.from=Xl;c.fromNow=Zl;c.to=jl;c.toNow=Kl;c.get=Ui;c.invalidAt=uo;c.isAfter=Ul;c.isBefore=Nl;c.isBetween=Wl;c.isSame=Bl;c.isSameOrAfter=Vl;c.isSameOrBefore=Gl;c.isValid=lo;c.lang=nr;c.locale=ir;c.localeData=lr;c.max=ll;c.min=nl;c.parsingFlags=oo;c.set=Ni;c.startOf=$l;c.subtract=Ol;c.toArray=ro;c.toObject=io;c.toDate=ao;c.toISOString=Ql;c.inspect=ql;typeof Symbol<"u"&&Symbol.for!=null&&(c[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});c.toJSON=no;c.toString=zl;c.unix=so;c.valueOf=to;c.creationData=co;c.eraName=go;c.eraNarrow=po;c.eraAbbr=yo;c.eraYear=vo;c.year=Ga;c.isLeapYear=rn;c.weekYear=bo;c.isoWeekYear=Yo;c.quarter=c.quarters=Eo;c.month=Ba;c.daysInMonth=tn;c.week=c.weeks=cn;c.isoWeek=c.isoWeeks=hn;c.weeksInYear=_o;c.weeksInWeekYear=Oo;c.isoWeeksInYear=xo;c.isoWeeksInISOWeekYear=Co;c.date=hr;c.day=c.days=bn;c.weekday=Yn;c.isoWeekday=xn;c.dayOfYear=Ro;c.hour=c.hours=In;c.minute=c.minutes=Io;c.second=c.seconds=Ho;c.millisecond=c.milliseconds=fr;c.utcOffset=pl;c.utc=vl;c.local=wl;c.parseZone=Al;c.hasAlignedHourOffset=kl;c.isDST=Ml;c.isLocal=Sl;c.isUtcOffset=bl;c.isUtc=tr;c.isUTC=tr;c.zoneAbbr=Fo;c.zoneName=Uo;c.dates=de("dates accessor is deprecated. Use date instead.",hr);c.months=de("months accessor is deprecated. Use month instead",Ba);c.years=de("years accessor is deprecated. Use year instead",Ga);c.zone=de("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yl);c.isDSTShifted=de("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Dl);function No(e){return P(e*1e3)}function Wo(){return P.apply(null,arguments).parseZone()}function mr(e){return e}var T=Cs.prototype;T.calendar=Si;T.longDateFormat=Ci;T.invalidDate=Oi;T.ordinal=Ri;T.preparse=mr;T.postformat=mr;T.relativeTime=Hi;T.pastFuture=Pi;T.set=Mi;T.eras=ho;T.erasParse=fo;T.erasConvertYear=mo;T.erasAbbrRegex=Ao;T.erasNameRegex=wo;T.erasNarrowRegex=ko;T.months=ji;T.monthsShort=Ki;T.monthsParse=en;T.monthsRegex=an;T.monthsShortRegex=sn;T.week=ln;T.firstDayOfYear=dn;T.firstDayOfWeek=un;T.weekdays=An;T.weekdaysMin=Mn;T.weekdaysShort=kn;T.weekdaysParse=Sn;T.weekdaysRegex=Cn;T.weekdaysShortRegex=_n;T.weekdaysMinRegex=On;T.isPM=En;T.meridiem=Hn;function Bt(e,t,s,a){var r=Ee(),i=ke().set(a,t);return r[s](i,e)}function gr(e,t,s){if(Oe(e)&&(t=e,e=void 0),e=e||"",t!=null)return Bt(e,t,s,"month");var a,r=[];for(a=0;a<12;a++)r[a]=Bt(e,a,s,"month");return r}function Ls(e,t,s,a){typeof e=="boolean"?(Oe(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,Oe(t)&&(s=t,t=void 0),t=t||"");var r=Ee(),i=e?r._week.dow:0,l,p=[];if(s!=null)return Bt(t,(s+i)%7,a,"day");for(l=0;l<7;l++)p[l]=Bt(t,(l+i)%7,a,"day");return p}function Bo(e,t){return gr(e,t,"months")}function Vo(e,t){return gr(e,t,"monthsShort")}function Go(e,t,s){return Ls(e,t,s,"weekdays")}function Lo(e,t,s){return Ls(e,t,s,"weekdaysShort")}function zo(e,t,s){return Ls(e,t,s,"weekdaysMin")}Fe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=Y(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}});f.lang=de("moment.lang is deprecated. Use moment.locale instead.",Fe);f.langData=de("moment.langData is deprecated. Use moment.localeData instead.",Ee);var be=Math.abs;function Qo(){var e=this._data;return this._milliseconds=be(this._milliseconds),this._days=be(this._days),this._months=be(this._months),e.milliseconds=be(e.milliseconds),e.seconds=be(e.seconds),e.minutes=be(e.minutes),e.hours=be(e.hours),e.months=be(e.months),e.years=be(e.years),this}function pr(e,t,s,a){var r=ye(t,s);return e._milliseconds+=a*r._milliseconds,e._days+=a*r._days,e._months+=a*r._months,e._bubble()}function qo(e,t){return pr(this,e,t,1)}function Jo(e,t){return pr(this,e,t,-1)}function ba(e){return e<0?Math.floor(e):Math.ceil(e)}function Xo(){var e=this._milliseconds,t=this._days,s=this._months,a=this._data,r,i,l,p,M;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=ba(Ss(s)+t)*864e5,t=0,s=0),a.milliseconds=e%1e3,r=ue(e/1e3),a.seconds=r%60,i=ue(r/60),a.minutes=i%60,l=ue(i/60),a.hours=l%24,t+=ue(l/24),M=ue(yr(t)),s+=M,t-=ba(Ss(M)),p=ue(s/12),s%=12,a.days=t,a.months=s,a.years=p,this}function yr(e){return e*4800/146097}function Ss(e){return e*146097/4800}function Zo(e){if(!this.isValid())return NaN;var t,s,a=this._milliseconds;if(e=ce(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+a/864e5,s=this._months+yr(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(Ss(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return t*24+a/36e5;case"minute":return t*1440+a/6e4;case"second":return t*86400+a/1e3;case"millisecond":return Math.floor(t*864e5)+a;default:throw new Error("Unknown unit "+e)}}function jo(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Y(this._months/12)*31536e6:NaN}function Re(e){return function(){return this.as(e)}}var Ko=Re("ms"),$o=Re("s"),eu=Re("m"),tu=Re("h"),su=Re("d"),au=Re("w"),ru=Re("M"),iu=Re("Q"),nu=Re("y");function lu(){return ye(this)}function ou(e){return e=ce(e),this.isValid()?this[e+"s"]():NaN}function Je(e){return function(){return this.isValid()?this._data[e]:NaN}}var uu=Je("milliseconds"),du=Je("seconds"),cu=Je("minutes"),hu=Je("hours"),fu=Je("days"),mu=Je("months"),gu=Je("years");function pu(){return ue(this.days()/7)}var Ye=Math.round,tt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function yu(e,t,s,a,r){return r.relativeTime(t||1,!!s,e,a)}function vu(e,t,s,a){var r=ye(e).abs(),i=Ye(r.as("s")),l=Ye(r.as("m")),p=Ye(r.as("h")),M=Ye(r.as("d")),C=Ye(r.as("M")),q=Ye(r.as("w")),J=Ye(r.as("y")),ie=i<=s.ss&&["s",i]||i 0,ie[4]=a,yu.apply(null,ie)}function wu(e){return e===void 0?Ye:typeof e=="function"?(Ye=e,!0):!1}function Au(e,t){return tt[e]===void 0?!1:t===void 0?tt[e]:(tt[e]=t,e==="s"&&(tt.ss=t-1),!0)}function ku(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,a=tt,r,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(a=Object.assign({},tt,t),t.s!=null&&t.ss==null&&(a.ss=t.s-1)),r=this.localeData(),i=vu(this,!s,a,r),s&&(i=r.pastFuture(+this,i)),r.postformat(i)}var ys=Math.abs;function $e(e){return(e>0)-(e<0)||+e}function ts(){if(!this.isValid())return this.localeData().invalidDate();var e=ys(this._milliseconds)/1e3,t=ys(this._days),s=ys(this._months),a,r,i,l,p=this.asSeconds(),M,C,q,J;return p?(a=ue(e/60),r=ue(a/60),e%=60,a%=60,i=ue(s/12),s%=12,l=e?e.toFixed(3).replace(/\.?0+$/,""):"",M=p<0?"-":"",C=$e(this._months)!==$e(p)?"-":"",q=$e(this._days)!==$e(p)?"-":"",J=$e(this._milliseconds)!==$e(p)?"-":"",M+"P"+(i?C+i+"Y":"")+(s?C+s+"M":"")+(t?q+t+"D":"")+(r||a||e?"T":"")+(r?J+r+"H":"")+(a?J+a+"M":"")+(e?J+l+"S":"")):"P0D"}var x=$t.prototype;x.isValid=hl;x.abs=Qo;x.add=qo;x.subtract=Jo;x.as=Zo;x.asMilliseconds=Ko;x.asSeconds=$o;x.asMinutes=eu;x.asHours=tu;x.asDays=su;x.asWeeks=au;x.asMonths=ru;x.asQuarters=iu;x.asYears=nu;x.valueOf=jo;x._bubble=Xo;x.clone=lu;x.get=ou;x.milliseconds=uu;x.seconds=du;x.minutes=cu;x.hours=hu;x.days=fu;x.weeks=pu;x.months=mu;x.years=gu;x.humanize=ku;x.toISOString=ts;x.toString=ts;x.toJSON=ts;x.locale=ir;x.localeData=lr;x.toIsoString=de("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ts);x.lang=nr;y("X",0,0,"unix");y("x",0,0,"valueOf");g("x",Xt);g("X",Bi);I("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)});I("x",function(e,t,s){s._d=new Date(Y(e))});//! moment.js -f.version="2.29.4";Ai(P);f.fn=c;f.min=ol;f.max=ul;f.now=dl;f.utc=ke;f.unix=No;f.months=Bo;f.isDate=kt;f.locale=Fe;f.invalid=Lt;f.duration=ye;f.isMoment=pe;f.weekdays=Go;f.parseZone=Wo;f.localeData=Ee;f.isDuration=It;f.monthsShort=Vo;f.weekdaysMin=zo;f.defineLocale=Ps;f.updateLocale=Nn;f.locales=Wn;f.weekdaysShort=Lo;f.normalizeUnits=ce;f.relativeTimeRounding=wu;f.relativeTimeThreshold=Au;f.calendarFormat=Hl;f.prototype=c;f.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function Mu(e){console.log(111);let t=e.split("/"),s=t[t.length-1],a={resource:e};console.log(a),console.log(s),Zr("/common/download/resource",a,s),console.log("\u6587\u4EF6\u540D"),console.log("value")}const H=e=>(ti("data-v-b301384e"),e=e(),si(),e),Du={class:"center"},Su={class:"leftWra"},bu={class:"leftTop"},Yu=H(()=>n("span",null,"\u8BBE\u5907\u7C7B\u578B\u9009\u62E9",-1)),xu={class:"types"},Cu={width:"100%",class:"types_left"},_u=H(()=>n("img",{width:"90",src:ci,alt:""},null,-1)),Ou={width:"100%",class:"types_center"},Tu=H(()=>n("img",{width:"90",src:hi,alt:""},null,-1)),Eu={width:"100%",class:"types_right"},Ru=H(()=>n("img",{width:"90",src:fi,alt:""},null,-1)),Iu={key:0,class:"leftbottom"},Hu=H(()=>n("span",null,"\u667A\u80FD\u5B62\u5B50\u76D1\u6D4B\u6570\u636E",-1)),Pu=H(()=>n("img",{src:Vt,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Fu={class:"tableDiv"},Uu=H(()=>n("div",{slot:"error",class:"image-slot"},[n("i",{class:"el-icon-picture-outline"})],-1)),Nu={key:1,class:"leftbottom"},Wu=H(()=>n("span",null,"\u5B9E\u65F6\u76D1\u6D4B\u6570\u636E",-1)),Bu=H(()=>n("img",{src:Vt,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Vu={class:"tableDiv"},Gu=H(()=>n("div",{slot:"error",class:"image-slot"},[n("i",{class:"el-icon-picture-outline"})],-1)),Lu={key:2,class:"leftbottom"},zu=H(()=>n("span",null,"\u8BBE\u5907\u76D1\u6D4B\u4FE1\u606F\u5217\u8868",-1)),Qu=H(()=>n("img",{src:Vt,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),qu={class:"tableDiv"},Ju={class:"selectdiv",m:"4"},Xu={key:0,src:Gt,alt:""},Zu={key:0,class:"imgrotate",src:Gt,alt:""},ju={class:"rightWra"},Ku={class:"rightTop"},$u=H(()=>n("div",{class:"title"},[n("span",null,"\u5892\u60C5\u3001\u571F\u8D28\u76D1\u6D4B\u6570\u636E")],-1)),ed={class:"depth"},td={key:0,src:Gt,alt:""},sd={key:0,class:"imgrotate",src:Gt,alt:""},ad={class:"bottom_center"},rd=H(()=>n("div",{class:"left_bottom"},[n("div",{class:"title"},[n("span",null,"\u8BBE\u5907\u7167\u7247")]),n("div",{class:"imgdiv"},[n("img",{src:"https://img.js.design/assets/img/641d73b4634e77963ddc9e3c.png#34e63fa85ea624d67ab959d24318b0e9",alt:""})])],-1)),id={class:"right_bottom"},nd=H(()=>n("span",null,"\u866B\u60C5\u76D1\u6D4B\u6570\u636E",-1)),ld=H(()=>n("img",{src:Vt,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),od={class:"tableDiv"},ud=H(()=>n("div",{slot:"error",class:"image-slot"},[n("i",{class:"el-icon-picture-outline"})],-1)),dd={key:0,src:Ya,alt:""},cd={key:0,class:"imgrotate",src:Ya,alt:""},hd=ei(' ',1),fd={id:"popup"},md={id:"pop"},gd={class:"content"},pd={key:0,style:{"background-color":"rgba(67, 207, 124, 1)"}},yd={key:1,style:{background:"red"}},vd={class:"my-header"},wd=["id"],Ad={class:"buttonbox"},kd=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u67E5\u8BE2",-1)),Md=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u4E0B\u8F7D",-1)),Dd=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u91CD\u7F6E",-1)),Sd={class:"select_div"},bd={class:"slele_time"},Yd={class:"time_on"},xd={class:"time_end"},Cd={class:"device"},_d={class:"tableDiv"},Od=H(()=>n("div",{slot:"error",class:"image-slot"},[n("i",{class:"el-icon-picture-outline"})],-1)),Td={class:"block"},Ed={class:"my-header"},Rd=["id"],Id={class:"buttonbox"},Hd=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u67E5\u8BE2",-1)),Pd=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u91CD\u7F6E",-1)),Fd={class:"select_div"},Ud={class:"slele_time"},Nd={class:"time_on"},Wd={class:"time_end"},Bd={class:"device"},Vd={class:"tableDiv"},Gd=H(()=>n("div",{slot:"error",class:"image-slot"},[n("i",{class:"el-icon-picture-outline"})],-1)),Ld={class:"block"},zd={class:"my-header"},Qd=["id"],qd={class:"buttonbox"},Jd=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u67E5\u8BE2",-1)),Xd=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u4E0B\u8F7D",-1)),Zd=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u91CD\u7F6E",-1)),jd={class:"select_div"},Kd={class:"slele_time"},$d={class:"time_on"},ec={class:"time_end"},tc={class:"device"},sc={class:"tableDiv"},ac={class:"block"},rc={__name:"index",setup(e){const t=w(!1),s=w(!1),a=w(!1);let r=w(null);const i=w(null),l=w(null),p=w(null),M=w(null);w("370211");let C=ls({arr:[],brr:[],crr:[]});ls({arr:[]});const q=w({name:"",value:""});let J=w([]);const ie=w([]),vr=w([]),ss=w(!1);let se=w("4"),lt=w(!0),ot=w(!0),Ue=w(!0),Ne=w(!0),We=w(!0);const K=w(""),$=w(""),ee=w("");let _=w(1),D=w(5),ut=w([]),Ie=w([]),Be=w([]),zs=w([]),bt=w([]),Yt=w([]),as=w([]),Qs=w([]),Xe=w("1"),Ve=w([]),qs=w([]),Js=w([]),Xs=w([]),Zs=w([]),js=w([]),Ge=w([]),Ks=w([]),$s=w([]),ea=w([]),ta=w([]),sa=w([]),Le=w({});var ua="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABMCAYAAAB033kxAAA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ab6LLCDZRvDPDCP4WNVWaeo6izzMLQSvsfweqxeYwi6VJH6Pb2OdfDkZUV1ZhDuEpMjp9TzStsTcoSP9S3PI7wHnFU70dXvW9Z+VuCwFlrXXnFwGrk/JK1SSRIDcIa4OyptuvkQoxmuqrCT1qbA7j0idUr7RdJekZRhXWgMyF57QwZUmeuBSkzadZVWvL+p70gSMWpX1QFUVJMObQdV8rVFMEPbv5KRW9fBW8SUWdAFDOsKUCp5plr0RxiegvK5czCyEpc2+QDl5ptbjd88Vs742P4QWET4iLh76hNidvYdInD17W2ptrFcAiH1PZKHtVGnfN9hvqxOjZhlt9QA5aYeiJ7am9pO29derD1fr1HX9xtCtefwqcbgvFdrN/cXQrXH8CWEVb2XXFdgKDF4THsMjwwQGAEK7N6FC8MAJVodwdt+O3JHUV3dNGm5dq+5C3el9rtj3oV7pP/hAKP5WKkDLyM+5uqIh+NMHQYlqY9rDIM3ii5BaXPWG39rbn+u+o/36xPmEAz1JHSkErIfNUDanyZY17Qv3e9/gmGGmscCwD4sPDwkTb4Oa2jMrsupDPqMZjSjGc1oRjOa0YxmNKMZPUz0v54el+boawe6AAAAAElFTkSuQmCC";const Ze=w([{value:"dev10101",label:"dev10101"},{value:"dev20101",label:"dev20101"}]);Kr(()=>C.arr,u=>{console.log("val:",u)});var aa={title:[]};let rs={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},je=ls({arr:[],arrs:[]});$r(()=>{Ar(),Br(),is(),la(),oa(),zr(),Lr(),ha(),kr(),fa(),ns()});const wr={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 Ar(){r=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({...wr})}),r.cesiumWidget.creditContainer.style.display="none",ma("shuzisannong:huangdaoqu_town","tl"),r.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),Jr();var u=new Cesium.ScreenSpaceEventHandler(r.canvas);u.setInputAction(function(o){var d=r.scene.pick(o.position);if(Cesium.defined(d)&&d.id instanceof Cesium.Entity&&d.id.billboard){var A=d.id.position.getValue(r.clock.currentTime),b=Cesium.Cartographic.fromCartesian(A),R=Cesium.Math.toDegrees(b.longitude),E=Cesium.Math.toDegrees(b.latitude),U=b.height.toFixed(2);console.log("\u7ECF\u5EA6: "+R+"\uFF0C\u7EAC\u5EA6: "+E+"\uFF0C\u9AD8\u5EA6: "+U),De.label.forEach((W,G)=>{W.dev_code==d.id.name&&(Le.value=W)}),Xr(o.position),r.scene.postRender.addEventListener(pa)}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}function kr(){os({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afarmland&maxFeatures=50&outputFormat=application%2Fjson",method:"get"}).then(u=>{vr.value=u.data.features}).catch(u=>{})}let De=w({label:[]});const Mr=u=>{se.value="1",lt.value=!1,ot.value=!1,is()},Dr=u=>{se.value="2",lt.value=!1,ot.value=!1,Gr()},Sr=u=>{se.value="3",lt.value=!0,ot.value=!1,Vr(),la()},br=()=>{se.value="4",ot.value=!0,lt.value=!0,is()},Yr=u=>{_.value=u,ut.value=ie.value.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)},xr=u=>{_.value=u,Be.value=Ie.value.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)},Cr=u=>{_.value=u,bt.value=J.value.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)},dt=u=>{switch(Xe.value=u,u){case 1:Ve=qs,Ge=Ks;break;case 2:Ve=Js,Ge=$s;break;case 3:Ve=Xs,Ge=ea;break;case 4:Ve=Zs,Ge=ta;break;case 5:Ve=js,Ge=sa;break}ns()},_r=()=>{fs({startTime:Ke(K),endTime:Ke($),equipment:ee.value}).then(u=>{je.arr=u.data,ie.value=u.data,ut.value=u.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},Or=()=>{Ot({startTime:Ke(K),endTime:Ke($),equipment:ee.value}).then(u=>{Ie.value=u.data,Be.value=u.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},Tr=()=>{_t({startTime:Ke(K),endTime:Ke($),equipment:ee.value}).then(u=>{J.value=u.data,bt.value=u.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},Er=()=>{console.log(111),Mu("D:\\ruoyi\\uploadPath/download/1dbcfb0c-f497-47ac-9df6-7e49cada71c8_DataExport.xlsx")},Rr=()=>{K.value="",$.value="",ee.value="",na()},Ir=()=>{K.value="",$.value="",ee.value="",Ot().then(u=>{Ie.value=u.data,Be.value=u.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},Hr=()=>{K.value="",$.value="",ee.value="",_t().then(u=>{Ie.value=u.data,Be.value=u.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},Ke=u=>{const o=new Date(u.value),d=o.getFullYear(),A=o.getMonth()+1,b=o.getDate(),R=o.getHours(),E=o.getMinutes(),U=o.getSeconds();return`${d}-${A.toString().padStart(2,"0")}-${b.toString().padStart(2,"0")} ${R.toString().padStart(2,"0")}:${E.toString().padStart(2,"0")}:${U.toString().padStart(2,"0")}`},Pr=()=>{t.value=!0,na(),K.value="",$.value="",ee.value="",mi().then(u=>{Ze.value=u.data})},ra=()=>{s.value=!0,oa(),K.value="",$.value="",ee.value="",gi().then(u=>{Ze.value=u.data}),Ot().then(u=>{Ie.value=u.data,Be.value=u.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},Fr=()=>{a.value=!0,K.value="",$.value="",ee.value="",pi().then(u=>{Ze.value=u.data})};function xt(u,o){if(r){const d=r.imageryLayers._layers;for(let A=d.length-1;A>=0;A--)u.forEach(b=>{d[A]._imageryProvider&&d[A]._imageryProvider.customName&&(o?d[A]._imageryProvider.customName.indexOf(b)>-1&&r.imageryLayers.remove(d[A]):d[A]._imageryProvider.customName===b&&r.imageryLayers.remove(d[A]))})}}function ia(u){if(r){let d=r.entities._entities._array;for(var o=d.length-1;o>=0;o--)d[o]._name&&d[o]._name===u&&r.entities.remove(d[o])}}function Ur(){if(Ue.value=!Ue.value,Ue.value){let u=document.querySelector(".leftWra");u.style.transform="translate(0,0)"}else{let u=document.querySelector(".leftWra");u.style.transform="translate(-107%,0)"}}function Nr(){if(Ne.value=!Ne.value,Ne.value){let u=document.querySelector(".rightWra");u.style.transform="translate(0,0)"}else{let u=document.querySelector(".rightWra");u.style.transform="translate(107%,0)"}}function Wr(){if(We.value=!We.value,We.value){console.log(111);let u=document.querySelector(".bottom_center");u.style.transform="translate(0,0)"}else{let u=document.querySelector(".bottom_center");u.style.transform="translate(0,107%)"}}const na=()=>{fs().then(u=>{je.arr=u.data,je.arrs=u.data,ie.value=u.data,ut.value=u.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},Br=()=>{console.log(),fs({startTime:f().subtract(3,"days").startOf("day").format("YYYY-MM-DD HH:mm:ss"),endTime:f().format("YYYY-MM-DD HH:mm:ss")}).then(u=>{je.arrs=u.data,ie.value=u.data,ut.value=u.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},is=()=>{r.entities&&r.entities.removeAll(),yi().then(u=>{De.label=u.data,u.data.forEach((o,d)=>{r.entities.add({name:o.dev_code,position:Cesium.Cartesian3.fromDegrees(parseFloat(o.longitude),parseFloat(o.latitude)),billboard:{image:ua,scale:.9,width:35,height:35,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND}})})})},la=()=>{_t().then(u=>{J.value=u.data}),_t({startTime:f(new Date).add("year",0).format("YYYY-MM-DD"),endTime:f().format("YYYY-MM-DD HH:mm:ss")}).then(u=>{bt.value=J.value.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value),u.data.forEach((o,d)=>{Yt.value.push(o.dataTime),as.value.push(o.soilEc),Qs.value.push(Number(o.soilPh)),Ve.value.push(o.soilTemperature1),qs.value.push(o.soilTemperature1),Js.value.push(o.soilTemperature2),Xs.value.push(o.soilTemperature3),Zs.value.push(o.soilTemperature4),js.value.push(o.soilTemperature5),Ge.value.push(o.soilHumidity1),Ks.value.push(o.soilHumidity1),$s.value.push(o.soilHumidity2),ea.value.push(o.soilHumidity3),ta.value.push(o.soilHumidity4),sa.value.push(o.soilHumidity5)}),ha(),fa(),ns()})},Vr=()=>{r.entities&&r.entities.removeAll(),vi().then(u=>{De.label=u.data,u.data.forEach((o,d)=>{r.entities.add({name:o.dev_code,position:Cesium.Cartesian3.fromDegrees(parseFloat(o.longitude),parseFloat(o.latitude)),billboard:{image:ca,scale:.9,width:35,height:35,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND}})})})},oa=()=>{Ot({startTime:f().subtract(3,"days").startOf("day").format("YYYY-MM-DD HH:mm:ss"),endTime:f().format("YYYY-MM-DD HH:mm:ss")}).then(u=>{Ie.value=u.data,zs.value=u.data,Be.value=u.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},Gr=()=>{r.entities&&r.entities.removeAll(),wi().then(u=>{De.label=u.data,u.data.forEach((o,d)=>{r.entities.add({name:o.dev_code,position:Cesium.Cartesian3.fromDegrees(parseFloat(o.longitude),parseFloat(o.latitude)),billboard:{image:da,scale:.9,width:35,height:35,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND}})})})},Lr=()=>{ai().then(u=>{C.arr=u.features,C.arr.unshift({bbox:[119.5091,35.5671,120.3285,36.1455],properties:{XZDM:"370211",XZMC:"\u5168\u90E8"}});let o=[...u.features],d=[];o.splice(0,1),o.forEach(A=>{d.push(A.properties.XZMC)}),aa.title=[...Object.values(d)]})},zr=()=>{ri().then(u=>{C.crr=u.features,aa.title.forEach((o,d)=>{let A=u.features.map(b=>{if(o===b.properties.town)return b.properties});Object.keys(rs).forEach(b=>{const R=A.findIndex(E=>E&&E.crop===b);R>-1?rs[b].push(A[R].Shape_Area):rs[b].push(null)})})})};var ua="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABMCAYAAAB033kxAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAABElSURBVHic7ZtrjCXHVcd/p6rvax6efXjGOPFzFRuylkNMUISQiQcQAYlgCaEVEkgIQVA+IisgEUUwXgWIQEQRkpHCBz4GRfhjhIiihMzGS8SXjWWUbMBO1vtynOxovTs7uzv3dndV8aFO9e372Nm589oxzJFaXV23H6fqX+f8z6mqCwdyIAdyd5F78VG3euFFAOPNshx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uI64NBnknSQLodWRgTbtTu+fCkJ5P1MqXh357qPbF4V1dj9Z+W6+VzxCnRZKkNZAEBAyCIdVpR8EYev3uyIbALNXq6lZ0Qs/LQ7q9XrvezIaE4f30Tw514CL9mYm6JJ6oz+zuISCwy/+jH8hrIF4Nmz/EmdRhWRm6Plx77hx98O4k5zZ434nau0a/nfixL7vgojaSXbWUjWSsFW0kd/jL96Zl3GAYJ3sMwB1U2F8ShnXaye6Rkct72vkHciAHciAHciAHciAHciAHciDvFvlfoYgLEgTKylIAAAAASUVORK5CYII=",da="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAABMCAYAAAALDmvAAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAABQoSURBVHic7ZtrjF1Xdcd/a59z75074/H4gR0wydhxISFOQxMoFEocj6WWBJX0Q9U0UvhSFQkqUgigpoBEY49bCGoREkKiBQk+VVXBSEXQSqUVeJyJQhqaKCXYkEedeGxI4sGx52HP3HvP2bsf9trn7HvnjufheUSK19XVeZ+zzn+t/V9rr70PXJEr8loUWW8F8omTBwFEZJ/kMgwgm68ZWU+d1krWDfx84uRBQQ50O+Zww8nAzoOr/XzwRgdwzh011oyspeHXBfxLAR9ktQyw4LOFEclleC2MsObgu3OnhpxxR4rtCGQ7Mebic83A4IrqZyfHjuAYatspjMzZB4iV/attALOaN19IxMr+S3l3oIZY3LlTQ8t5VjfgHW7YbBzcbwYGRazsRxgpjkUOslqy5uC7xBVNvtOzzMCgdHp7PnHyYD5x8qCdGHN2Ysw5447YiTFnJ8eO2MmxI4sxhjt3aqgAXhhxuOE5J/3impfNxsH98bFuxl9JWXPaiTnX4YYFORBTTyctLUoW4OnY67vRiXuYL+H4BHCv7OWrBf0JI2bj4P4l6bIESVfrxouRYISQcQBYY4eki090equI7Cu82THkjBvKJ052D9KR189joO163uvCed3iwErLumQ7nfwrVvZbY4e8Qu2ZyEJZT+e9ugXp2JPnSyndUf5Q9vG9tnuusuevS8ANnakgzrgjghxYKP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BW8SUWdAFDOsKUCp5plr0RxiegvK5czCyEpc2+QDl5ptbjd88Vs742P4QWET4iLh76hNidvYdInD17W2ptrFcAiH1PZKHtVGnfN9hvqxOjZhlt9QA5aYeiJ7am9pO29derD1fr1HX9xtCtefwqcbgvFdrN/cXQrXH8CWEVb2XXFdgKDF4THsMjwwQGAEK7N6FC8MAJVodwdt+O3JHUV3dNGm5dq+5C3el9rtj3oV7pP/hAKP5WKkDLyM+5uqIh+NMHQYlqY9rDIM3ii5BaXPWG39rbn+u+o/36xPmEAz1JHSkErIfNUDanyZY17Qv3e9/gmGGmscCwD4sPDwkTb4Oa2jMrsupDPqMZjSjGc1oRjOa0YxmNKMZPUz0v54el+boawe6AAAAAElFTkSuQmCC";function ha(){const u=cs(l.value);var o={grid:{top:"15%",left:"17%",right:"7%",bottom:"14%"},legend:{data:["EC\u503C"],inactiveColor:"rgba(92,200,255,0.35)",icon:"roundRect",top:0,right:0,itemWidth:20,itemHeight:7,textStyle:{color:"#FFF"},show:!0},dataZoom:[{type:"slider",show:!1,handleSize:0,startValue:0,endValue:6,height:10,left:"5%",right:"4%",bottom:5,borderColor:"#000",fillerColor:"#269cdb",borderRadius:5,backgroundColor:"#33384b",showDataShadow:!1,showDetail:!1,realtime:!0,filterMode:"filter"},{type:"inside",show:!0,start:1,end:100}],tooltip:{show:!0},xAxis:{data:Yt._rawValue,axisLine:{lineStyle:{color:"transparent"}},axisLabel:{show:!0,interval:1,textStyle:{color:"rgba(219, 225, 255, 1)"},formatter:function(d){var A="",b=d.length,R=10,E=Math.ceil(b/R);if(b>R)for(var U=0;UU)for(var G=0;G W)for(var ae=0;ae -1&&(r.imageryLayers.lowerToBottom(A),r.imageryLayers.raise(A))}function Qr(){xt(["gbznt"],!0),ma("shuzisannong:huangdaoqu_town","tl"),r.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),ss.value=!1}function qr(){let u=ga.value;os({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(o=>{o.data.features.forEach((A,b)=>{const R=Cesium.Rectangle.fromDegrees(A.bbox[0],A.bbox[1],A.bbox[2],A.bbox[3]),E=Cesium.Rectangle.center(R);Cesium.Math.toDegrees(E.longitude),Cesium.Math.toDegrees(E.latitude),A.properties.XZDM==="370211011"||A.properties.XZDM;const U=u[A.properties.XZMC];U&&U.map((W,G)=>W.properties)})}).catch(o=>{})}let ga=w({});function Jr(){os({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(u=>{let o=u.data.features,d={};o.forEach(A=>{let b=A.properties.town;d[b]?d[b].push(A):d[b]=[A]}),ga.value=d,qr()}).catch(u=>{})}function pa(){if(De.value&&De.label[0].longitude&&De.label[0].latitude){const o=Cesium.Cartesian3.fromDegrees(Number(De.label[0].longitude),Number(De.label[0].latitude),0);var u=Cesium.SceneTransforms.wgs84ToWindowCoordinates(r.scene,o);if(Cesium.defined(u)){const d=document.getElementById("pop");d.style.top=u.y-10+"px",d.style.left=u.x+10+"px"}}}function ya(){xt(["village_CQL"]),xt(["aaa"]),ia("villageLine"),ia("townLine");const u=document.getElementById("pop");u.style.display="none",r.scene.postRender.removeEventListener(pa),r.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),xt(["gbznt"],!0),ss.value=!1}function Xr(u){const o=document.getElementById("pop");o.style.display="block",o.style.position="absolute",o.style.top=u.y-10+"px",o.style.left=u.x+10+"px",o.style.zIndex=99}return(u,o)=>{const d=oe("el-table-column"),A=oe("image-preview"),b=oe("el-table"),R=oe("el-tooltip"),E=oe("el-button"),U=oe("Close"),W=oe("el-icon"),G=oe("el-date-picker"),ae=oe("el-option"),he=oe("el-select"),Se=oe("el-pagination"),ct=oe("el-dialog");return L(),te("div",Du,[n("div",{ref_key:"cesiumContainer",ref:i,style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,512),n("div",Su,[n("div",bu,[n("div",{class:"title"},[Yu,n("p",{onClick:br},"\u5C55\u793A\u5168\u90E8")]),n("div",xu,[n("div",Cu,[_u,n("p",{onClick:o[0]||(o[0]=m=>{Mr()}),class:fe(v(se)==1||v(se)==4?"sele_types":"")}," \u667A\u80FD\u5B62\u5B50\u6355\u6349\u5206\u6790 ",2)]),n("div",Ou,[Tu,n("p",{onClick:o[1]||(o[1]=m=>{Dr()}),class:fe(v(se)==2||v(se)==4?"sele_types":"")}," \u866B\u60C5\u76D1\u6D4B\u4EEA ",2)]),n("div",Eu,[Ru,n("p",{onClick:o[2]||(o[2]=m=>{Sr()}),class:fe(v(se)==3||v(se)==4?"sele_types":"")}," \u571F\u58E4\u5892\u60C5\u3001\u571F\u8D28 ",2)])])]),v(se)==4||v(se)==1?(L(),te("div",Iu,[n("div",{class:"title"},[Hu,n("p",{onClick:Pr},[B(" \u5386\u53F2\u6570\u636E \xA0 "),Pu])]),n("div",Fu,[h(b,{"max-height":"100%",height:"100%",data:v(je).arrs,stripe:"",style:{width:"100%"},"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"}},{default:k(()=>[h(d,{prop:"devCode",label:"\u8BBE\u5907\u7F16\u53F7"}),h(d,{prop:"pictureTime",label:"\u76D1\u6D4B\u65F6\u95F4"}),h(d,{prop:"warning",width:"52",label:"\u9884\u8B66\u60C5\u51B5"}),h(d,{prop:"picturePath",label:"\u7167\u7247"},{default:k(m=>[n("div",null,[h(A,{"append-to-body":"",style:{width:"60px",height:"60px"},src:m.row.picturePath,"zoom-rate":1.2,fit:"cover"},{default:k(()=>[Uu]),_:2},1032,["src","zoom-rate"])])]),_:1})]),_:1},8,["data"])])])):ve("v-if",!0),v(se)==2?(L(),te("div",Nu,[n("div",{class:"title"},[Wu,n("p",{onClick:ra},[B(" \u5386\u53F2\u6570\u636E \xA0 "),Bu])]),n("div",Vu,[h(b,{"max-height":"100%",height:"100%",data:v(zs),stripe:"",style:{width:"100%"},"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"}},{default:k(()=>[h(d,{prop:"devCode",label:"\u8BBE\u5907\u7F16\u53F7"}),h(d,{prop:"pictureTime",label:"\u76D1\u6D4B\u65F6\u95F4"}),h(d,{prop:"warning",label:"\u9884\u8B66\u60C5\u51B5"}),h(d,{prop:"picturePath",label:"\u7167\u7247"},{default:k(m=>[h(A,{style:{width:"60px",height:"60px"},src:m.row.picturePath},{default:k(()=>[Gu]),_:2},1032,["src"])]),_:1})]),_:1},8,["data"])])])):ve("v-if",!0),v(se)==3?(L(),te("div",Lu,[n("div",{class:"title"},[zu,n("p",{onClick:Fr},[B(" \u5386\u53F2\u6570\u636E \xA0 "),Qu])]),n("div",qu,[h(b,{"max-height":"100%",height:"100%",data:v(J),stripe:"",style:{width:"100%"},"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"}},{default:k(()=>[h(d,{label:"\u76D1\u6D4B\u6570\u503C",type:"expand"},{default:k(m=>[n("div",Ju,[n("p",null,"\u6E7F\u5EA61:"+z(m.row.soilHumidity1),1),n("p",null,"\u6E7F\u5EA62:"+z(m.row.soilHumidity2),1),n("p",null,"\u6E7F\u5EA63:"+z(m.row.soilHumidity3),1),n("p",null,"\u6E7F\u5EA64:"+z(m.row.soilHumidity4),1),n("p",null,"\u6E7F\u5EA65:"+z(m.row.soilHumidity5),1),n("p",null,"\u6E29\u5EA61:"+z(m.row.soilTemperature1),1),n("p",null,"\u6E29\u5EA62:"+z(m.row.soilTemperature2),1),n("p",null,"\u6E29\u5EA63:"+z(m.row.soilTemperature3),1),n("p",null,"\u6E29\u5EA64:"+z(m.row.soilTemperature4),1),n("p",null,"\u6E29\u5EA65:"+z(m.row.soilTemperature5),1),n("p",null,"PH\u503C:"+z(m.row.soilPh),1),n("p",null,"EC\u503C:"+z(m.row.soilEc),1)])]),_:1}),h(d,{prop:"devCode",label:"\u8BBE\u5907\u7F16\u53F7"}),h(d,{prop:"warning",width:"52",label:"\u9884\u8B66\u60C5\u51B5"}),h(d,{prop:"dataTime",label:"\u76D1\u6D4B\u65F6\u95F4"})]),_:1},8,["data"])])])):ve("v-if",!0),n("div",{class:"leftFoldDiv",onClick:o[3]||(o[3]=m=>Ur())},[h(R,{class:"box-item","show-arrow":!1,disabled:v(Ue),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:k(()=>[v(Ue)?ve("v-if",!0):(L(),te("img",Xu))]),_:1},8,["disabled"]),h(R,{disabled:!v(Ue),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:k(()=>[v(Ue)?(L(),te("img",Zu)):ve("v-if",!0)]),_:1},8,["disabled"])])]),va(n("div",ju,[n("div",Ku,[$u,n("div",{ref_key:"farmlandDiv",ref:l,class:"farmlandDiv"},null,512),n("div",{ref_key:"Phdiv",ref:p,class:"Phdiv"},null,512),n("div",ed,[n("p",{class:fe(v(Xe)=="1"?"SelectedDiv":""),onClick:o[4]||(o[4]=m=>dt(1))},"0cm",2),n("p",{class:fe(v(Xe)=="2"?"SelectedDiv":""),onClick:o[5]||(o[5]=m=>dt(2))},"-10cm",2),n("p",{class:fe(v(Xe)=="3"?"SelectedDiv":""),onClick:o[6]||(o[6]=m=>dt(3))},"-20cm",2),n("p",{class:fe(v(Xe)=="4"?"SelectedDiv":""),onClick:o[7]||(o[7]=m=>dt(4))},"-30cm",2),n("p",{class:fe(v(Xe)=="5"?"SelectedDiv":""),onClick:o[8]||(o[8]=m=>dt(5))},"-40cm",2)]),n("div",{ref_key:"soilDiv",ref:M,class:"soilDiv"},null,512)]),n("div",{class:"rightFoldDiv",onClick:o[9]||(o[9]=m=>Nr())},[h(R,{disabled:!v(Ne),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:k(()=>[v(Ne)?(L(),te("img",td)):ve("v-if",!0)]),_:1},8,["disabled"]),h(R,{disabled:v(Ne),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:k(()=>[v(Ne)?ve("v-if",!0):(L(),te("img",sd))]),_:1},8,["disabled"])])],512),[[wa,v(lt)]]),va(n("div",ad,[rd,n("div",id,[n("div",{class:"title"},[nd,n("p",{onClick:ra},[B(" \u5386\u53F2\u6570\u636E \xA0 "),ld])]),n("div",od,[h(b,{"max-height":"100%",height:"100%",data:v(Ie),stripe:"",style:{width:"100%"},"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"}},{default:k(()=>[h(d,{prop:"devCode",label:"\u8BBE\u5907\u7F16\u53F7"}),h(d,{prop:"pictureTime",label:"\u76D1\u6D4B\u65F6\u95F4"}),h(d,{prop:"warning",label:"\u9884\u8B66\u60C5\u51B5"}),h(d,{prop:"picturePath",label:"\u7167\u7247"},{default:k(m=>[h(A,{style:{width:"60px",height:"60px"},src:m.row.picturePath},{default:k(()=>[ud]),_:2},1032,["src"])]),_:1})]),_:1},8,["data"])])]),n("div",{class:"bottonFold",onClick:Wr},[h(R,{disabled:v(We),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:k(()=>[v(We)?ve("v-if",!0):(L(),te("img",dd))]),_:1},8,["disabled"]),h(R,{disabled:!v(We),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:k(()=>[v(We)?(L(),te("img",cd)):ve("v-if",!0)]),_:1},8,["disabled"])])],512),[[wa,v(ot)]]),hd,n("div",fd,[n("div",null,z(q.value.name)+"\uFF1A",1),n("div",null,z(q.value.value)+"\u4EA9",1),n("div",{class:"cancel",onClick:ya},"X")]),n("div",md,[n("div",gd,[n("div",null,[B(" \u8BBE\u5907\uFF1A "),n("p",null,z(v(Le).dev_code),1)]),n("div",null,[B(" \u7ECF\u5EA6\uFF1A "),n("p",null,z(v(Le).longitude),1)]),n("div",null,[B(" \u7EAC\u5EA6\uFF1A "),n("p",null,z(v(Le).latitude),1)]),n("div",null,[B(" \u8BBE\u5907\u72B6\u51B5\uFF1A "),n("p",null,[v(Le).equipment=="\u6B63\u5E38"?(L(),te("span",pd,z(v(Le).equipment),1)):(L(),te("span",yd,z(v(Le).equipment),1))])])]),n("div",{class:"cancel",onClick:ya},"X")]),ss.value?(L(),Ct(E,{key:0,class:"back_button",onClick:o[10]||(o[10]=m=>Qr())},{default:k(()=>[B("\u8FD4\u56DE")]),_:1})):ve("v-if",!0),h(ct,{modelValue:t.value,"onUpdate:modelValue":o[14]||(o[14]=m=>t.value=m),"show-close":!1},{header:k(({close:m,titleId:ht,titleClass:ft})=>[n("div",vd,[n("h4",{id:ht,class:fe(ft)},"\u5386\u53F2\u6570\u636E\u67E5\u8BE2",10,wd),n("div",Ad,[h(E,{type:"primary",onClick:_r},{default:k(()=>[kd]),_:1}),h(E,{type:"primary"},{default:k(()=>[Md]),_:1}),h(E,{type:"primary",onClick:Rr},{default:k(()=>[Dd]),_:1}),B(" \u2003 "),h(W,{style:{cursor:"pointer"},onClick:m},{default:k(()=>[h(U)]),_:2},1032,["onClick"])])])]),default:k(()=>[n("div",Sd,[n("div",bd,[n("div",Yd,[B(" \u5F00\u59CB\u65F6\u95F4\uFF1A "),h(G,{modelValue:K.value,"onUpdate:modelValue":o[11]||(o[11]=m=>K.value=m),type:"datetime",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),B(" \u2003 "),n("div",xd,[B(" \u7ED3\u675F\u65F6\u95F4\uFF1A "),h(G,{modelValue:$.value,"onUpdate:modelValue":o[12]||(o[12]=m=>$.value=m),type:"datetime",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])])]),n("div",Cd,[h(he,{"popper-class":"select_city",modelValue:ee.value,"onUpdate:modelValue":o[13]||(o[13]=m=>ee.value=m),class:"m-2",placeholder:"\u8BF7\u9009\u62E9"},{default:k(()=>[(L(!0),te(us,null,ds(Ze.value,m=>(L(),Ct(ae,{"popper-class":"device_item",key:m.value,label:m.label,value:m.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),n("div",_d,[h(b,{"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},data:v(ut),stripe:"",style:{width:"100%"}},{default:k(()=>[h(d,{prop:"id",label:"\u7F16\u53F7"}),h(d,{prop:"devCode",label:"\u8BBE\u5907\u53F7"}),h(d,{prop:"pictureTime",label:"\u76D1\u6D4B\u65F6\u95F4"}),h(d,{prop:"warning",label:"\u9884\u8B66\u60C5\u51B5"}),h(d,{prop:"picturePath",label:"\u7167\u7247"},{default:k(m=>[h(A,{style:{width:"60px",height:"60px"},src:m.row.picturePath},{default:k(()=>[Od]),_:2},1032,["src"])]),_:1})]),_:1},8,["data"]),n("div",Td,[h(Se,{background:"",layout:"prev, pager, next","current-page":v(_),"page-size":v(D),onCurrentChange:Yr,total:v(je).arr.length},null,8,["current-page","page-size","total"])])])]),_:1},8,["modelValue"]),h(ct,{modelValue:s.value,"onUpdate:modelValue":o[18]||(o[18]=m=>s.value=m),"show-close":!1},{header:k(({close:m,titleId:ht,titleClass:ft})=>[n("div",Ed,[n("h4",{id:ht,class:fe(ft)},"\u5386\u53F2\u6570\u636E\u67E5\u8BE2",10,Rd),n("div",Id,[h(E,{type:"primary",onClick:Or},{default:k(()=>[Hd]),_:1}),h(E,{type:"primary"},{default:k(()=>[n("span",{style:{"vertical-align":"middle"},onClick:Er},"\u4E0B\u8F7D")]),_:1}),h(E,{onClick:Ir,type:"primary"},{default:k(()=>[Pd]),_:1}),B(" \u2003 "),h(W,{style:{cursor:"pointer"},onClick:m},{default:k(()=>[h(U)]),_:2},1032,["onClick"])])])]),default:k(()=>[n("div",Fd,[n("div",Ud,[n("div",Nd,[B(" \u5F00\u59CB\u65F6\u95F4\uFF1A "),h(G,{modelValue:K.value,"onUpdate:modelValue":o[15]||(o[15]=m=>K.value=m),type:"datetime",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),B(" \u2003 "),n("div",Wd,[B(" \u7ED3\u675F\u65F6\u95F4\uFF1A "),h(G,{modelValue:$.value,"onUpdate:modelValue":o[16]||(o[16]=m=>$.value=m),type:"datetime",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])])]),n("div",Bd,[h(he,{"popper-class":"select_city",modelValue:ee.value,"onUpdate:modelValue":o[17]||(o[17]=m=>ee.value=m),class:"m-2",placeholder:"\u8BF7\u9009\u62E9"},{default:k(()=>[(L(!0),te(us,null,ds(Ze.value,m=>(L(),Ct(ae,{"popper-class":"device_item",key:m.value,label:m.label,value:m.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),n("div",Vd,[h(b,{"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},data:v(Be),stripe:"",style:{width:"100%"}},{default:k(()=>[h(d,{prop:"id",label:"\u7F16\u53F7"}),h(d,{prop:"devCode",label:"\u8BBE\u5907\u53F7"}),h(d,{prop:"pictureTime",label:"\u76D1\u6D4B\u65F6\u95F4"}),h(d,{prop:"warning",label:"\u9884\u8B66\u60C5\u51B5"}),h(d,{prop:"picturePath",label:"\u7167\u7247"},{default:k(m=>[h(A,{style:{width:"60px",height:"60px"},src:m.row.picturePath},{default:k(()=>[Gd]),_:2},1032,["src"])]),_:1})]),_:1},8,["data"]),n("div",Ld,[h(Se,{background:"",layout:"prev, pager, next","current-page":v(_),"page-size":v(D),onCurrentChange:xr,total:v(Ie).length},null,8,["current-page","page-size","total"])])])]),_:1},8,["modelValue"]),h(ct,{modelValue:a.value,"onUpdate:modelValue":o[22]||(o[22]=m=>a.value=m),"show-close":!1},{header:k(({close:m,titleId:ht,titleClass:ft})=>[n("div",zd,[n("h4",{id:ht,class:fe(ft)},"\u571F\u58E4\u5386\u53F2\u6570\u636E\u67E5\u8BE2",10,Qd),n("div",qd,[h(E,{type:"primary",onClick:Tr},{default:k(()=>[Jd]),_:1}),h(E,{type:"primary"},{default:k(()=>[Xd]),_:1}),h(E,{onClick:Hr,type:"primary"},{default:k(()=>[Zd]),_:1}),B(" \u2003 "),h(W,{style:{cursor:"pointer"},onClick:m},{default:k(()=>[h(U)]),_:2},1032,["onClick"])])])]),default:k(()=>[n("div",jd,[n("div",Kd,[n("div",$d,[B(" \u5F00\u59CB\u65F6\u95F4\uFF1A "),h(G,{modelValue:K.value,"onUpdate:modelValue":o[19]||(o[19]=m=>K.value=m),type:"datetime",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),B(" \u2003 "),n("div",ec,[B(" \u7ED3\u675F\u65F6\u95F4\uFF1A "),h(G,{modelValue:$.value,"onUpdate:modelValue":o[20]||(o[20]=m=>$.value=m),type:"datetime",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])])]),n("div",tc,[h(he,{"popper-class":"select_city",modelValue:ee.value,"onUpdate:modelValue":o[21]||(o[21]=m=>ee.value=m),class:"m-2",placeholder:"\u8BF7\u9009\u62E9"},{default:k(()=>[(L(!0),te(us,null,ds(Ze.value,m=>(L(),Ct(ae,{"popper-class":"device_item",key:m.value,label:m.label,value:m.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),n("div",sc,[h(b,{"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},data:v(bt),stripe:"",style:{width:"100%"}},{default:k(()=>[h(d,{prop:"dataTime",label:"\u65E5\u671F"}),h(d,{prop:"soilTemperature1",label:"\u6E29\u5EA61\uFF08\u2103\uFF09"}),h(d,{prop:"soilTemperature2",label:"\u6E29\u5EA62"}),h(d,{prop:"soilTemperature3",label:"\u6E29\u5EA63"}),h(d,{prop:"soilTemperature4",label:"\u6E29\u5EA64"}),h(d,{prop:"soilTemperature5",label:"\u6E29\u5EA65"}),h(d,{prop:"soilHumidity1",label:"\u6E7F\u5EA61\uFF08%rh\uFF09"}),h(d,{prop:"soilHumidity2",label:"\u6E7F\u5EA62\uFF08%rh\uFF09"}),h(d,{prop:"soilHumidity3",label:"\u6E7F\u5EA63\uFF08%rh\uFF09"}),h(d,{prop:"soilHumidity4",label:"\u6E7F\u5EA64\uFF08%rh\uFF09"}),h(d,{prop:"soilHumidity5",label:"\u6E7F\u5EA65\uFF08%rh\uFF09"}),h(d,{prop:"soilPh",label:"PH\u503C\uFF08ph\uFF09"}),h(d,{prop:"soilEc",label:"EC\u503C\uFF08 S/cm\uFF09"}),h(d,{prop:"warning",label:"\u9884\u8B66\u60C5\u51B5"})]),_:1},8,["data"]),n("div",ac,[h(Se,{background:"",layout:"prev, pager, next","current-page":v(_),"page-size":v(D),onCurrentChange:Cr,total:v(J).length},null,8,["current-page","page-size","total"])])])]),_:1},8,["modelValue"])])}}},cc=jr(rc,[["__scopeId","data-v-b301384e"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/index.vue"]]);export{cc as default}; diff --git a/dist/assets/index.4bf8bb31.js.gz b/dist/assets/index.4bf8bb31.js.gz deleted file mode 100644 index 055391d..0000000 Binary files a/dist/assets/index.4bf8bb31.js.gz and /dev/null differ diff --git a/dist/assets/index.53450fb2.js b/dist/assets/index.53450fb2.js new file mode 100644 index 0000000..1cebc2e --- /dev/null +++ b/dist/assets/index.53450fb2.js @@ -0,0 +1,13 @@ +import{z as Ee,_ as $r,r as w,A as oa,B as ei,C as ti,D as ua,d as ue,o as Q,c as te,l as n,F as me,f as v,m as G,e as h,w as k,g as we,G as ws,H as As,x as q,k as Ot,y as ai,I as da,J as ca,p as si,q as ri}from"./index.b3a66a9e.js";import Gt from"./downloads.e955445d.js";import{_ as Lt}from"./close1.45635d81.js";import{_ as ii,a as ni,b as li,c as oi,d as ui,e as di}from"./linesGL.90f708a5.js";import{i as ha,L as ks}from"./index.c9f5bd8b.js";import{d as fa}from"./download.a6a18203.js";import{u as ma}from"./useEcharts.83442be8.js";import{g as ci,a as hi}from"./classify.ee69cc46.js";const fi="/assets/spore.b8bb2c5c.png",mi="/assets/insect.46611a7c.png",gi="/assets/soil.cf5e9f99.png",Cs="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAoCAYAAACfKfiZAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAEZ0FNQQAAsY8L/GEFAAAACXBIWXMAAA7DAAAOwwHHb6hkAAACFElEQVRYR+2V723CMBDF7XSOFHWPUsEoHaBdgbBCOwCjEJXuUdGMAF+Ley85SJz4z9moHyrxk4ztkPg9350TdQ2PlVk8VabiaRaa+2QgbIxa8VQZrZafla55KqbgPomxONBGbXOikRyB+cpsqVt0sylaq/VHpcVGxAaQb9oldn0Rh9hJqRq750stKSZEBlg8KDKOjNRE1IAz357FHffWVJzrUHEGDbjEY9We+oz3FLh2s1trHTtqiAwixNMWEvEWrdcAiouHAOJLHnd8NQv93WzRin1jpQMmsGsaYo1aUgtOEAUUIE8vQFDvGzNsYxNSkt8D2LEynpBqKrr70o5UBLkBhLywj6IPc6LwP5TBWjkjehW3IXeJ0455ZIF7pSmJGsBCRtnHqoXDbWYlFb1d9QDPSEz4U4CQ35GwI98QPM1Ka/GYUZ5NcBsI5DuUX68JwmUaTAwEd/JDoRYUl++kuExYBlIejOHbyHitzkBivqWEUnJOpZbcxNM8IvWk8RrleU/GGy2GM72kU+CHpy0IuUjcmDdqhtqhHUfAmlibpwMQInxQ4JDGfDVMLz5sURMAKYdWkt6EqTjagf9NQvQtcHDk/mpyDWy4H+K69od0dYACFBXhjRs3fHSf4wzmFY6heqHhkVbZ7Cr92v2TRpaBgXiPVu85JvLehGNxYNQzj5L4p98CyjmPelzXBFxbhF3Ys4tQqV+LyF9Q2/m3qgAAAABJRU5ErkJggg==";function Tt(e){return Ee({url:"equipment/findAllSpore",method:"get",params:e})}function mt(e){return Ee({url:"equipment/findAllSoil",method:"get",params:e})}function gt(e){return Ee({url:"equipment/findAllDetectionLights",method:"get",params:e})}function pi(e){return Ee({url:"equipment/sporeEquipment",method:"get",params:e})}function yi(e){return Ee({url:"equipment/detectionLightsEquipment",method:"get",params:e})}function vi(e){return Ee({url:"equipment/soilEquipment",method:"get",params:e})}function wi(e){return Ee({url:"equipment/sporeEquipmentCondition",method:"get",params:e})}function Ai(e){return Ee({url:"equipment/equipmentCondition",method:"get",params:e})}function ki(e){return Ee({url:"equipment/eqLightEquipmentCondition",method:"get",params:e})}//! moment.js +//! version : 2.29.4 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +var xs;function f(){return xs.apply(null,arguments)}function Mi(e){xs=e}function pe(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Je(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ya(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(O(e,t))return!1;return!0}function re(e){return e===void 0}function Te(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Dt(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function _s(e,t){var a=[],s,r=e.length;for(s=0;s >>0,s;for(s=0;s0)for(a=0;a=0;return(i?a?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+s}var Oa=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Et=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,pa={},at={};function y(e,t,a,s){var r=s;typeof s=="string"&&(r=function(){return this[s]()}),e&&(at[e]=r),t&&(at[t[0]]=function(){return ke(r.apply(this,arguments),t[1],t[2])}),a&&(at[a]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function Ci(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function xi(e){var t=e.match(Oa),a,s;for(a=0,s=t.length;a =0&&Et.test(e);)e=e.replace(Et,s),Et.lastIndex=0,a-=1;return e}var _i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Oi(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match(Oa).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var Ti="Invalid date";function Ei(){return this._invalidDate}var Ri="%d",Ii=/\d{1,2}/;function Hi(e){return this._ordinal.replace("%d",e)}var Pi={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Fi(e,t,a,s){var r=this._relativeTime[a];return De(r)?r(e,t,a,s):r.replace(/%d/i,e)}function Ui(e,t){var a=this._relativeTime[e>0?"future":"past"];return De(a)?a(t):a.replace(/%s/i,t)}var vt={};function $(e,t){var a=e.toLowerCase();vt[a]=vt[a+"s"]=vt[t]=e}function he(e){return typeof e=="string"?vt[e]||vt[e.toLowerCase()]:void 0}function Ta(e){var t={},a,s;for(s in e)O(e,s)&&(a=he(s),a&&(t[a]=e[s]));return t}var Rs={};function ee(e,t){Rs[e]=t}function Ni(e){var t=[],a;for(a in e)O(e,a)&&t.push({unit:a,priority:Rs[a]});return t.sort(function(s,r){return s.priority-r.priority}),t}function Qt(e){return e%4===0&&e%100!==0||e%400===0}function de(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Y(e){var t=+e,a=0;return t!==0&&isFinite(t)&&(a=de(t)),a}function it(e,t){return function(a){return a!=null?(Is(this,e,a),f.updateOffset(this,t),this):Ft(this,e)}}function Ft(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Is(e,t,a){e.isValid()&&!isNaN(a)&&(t==="FullYear"&&Qt(e.year())&&e.month()===1&&e.date()===29?(a=Y(a),e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),Kt(a,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](a))}function Wi(e){return e=he(e),De(this[e])?this[e]():this}function Bi(e,t){if(typeof e=="object"){e=Ta(e);var a=Ni(e),s,r=a.length;for(s=0;s68?1900:2e3)};var Ls=it("FullYear",!0);function ln(){return Qt(this.year())}function on(e,t,a,s,r,i,l){var p;return e<100&&e>=0?(p=new Date(e+400,t,a,s,r,i,l),isFinite(p.getFullYear())&&p.setFullYear(e)):p=new Date(e,t,a,s,r,i,l),p}function At(e){var t,a;return e<100&&e>=0?(a=Array.prototype.slice.call(arguments),a[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Nt(e,t,a){var s=7+t-a,r=(7+At(e,0,s).getUTCDay()-t)%7;return-r+s-1}function zs(e,t,a,s,r){var i=(7+a-s)%7,l=Nt(e,s,r),p=1+7*(t-1)+i+l,M,x;return p<=0?(M=e-1,x=wt(M)+p):p>wt(e)?(M=e+1,x=p-wt(e)):(M=e,x=p),{year:M,dayOfYear:x}}function kt(e,t,a){var s=Nt(e.year(),t,a),r=Math.floor((e.dayOfYear()-s-1)/7)+1,i,l;return r<1?(l=e.year()-1,i=r+Oe(l,t,a)):r>Oe(e.year(),t,a)?(i=r-Oe(e.year(),t,a),l=e.year()+1):(l=e.year(),i=r),{week:i,year:l}}function Oe(e,t,a){var s=Nt(e,t,a),r=Nt(e+1,t,a);return(wt(e)-s+r)/7}y("w",["ww",2],"wo","week");y("W",["WW",2],"Wo","isoWeek");$("week","w");$("isoWeek","W");ee("week",5);ee("isoWeek",5);g("w",F);g("ww",F,le);g("W",F);g("WW",F,le);Yt(["w","ww","W","WW"],function(e,t,a,s){t[s.substr(0,1)]=Y(e)});function un(e){return kt(e,this._week.dow,this._week.doy).week}var dn={dow:0,doy:6};function cn(){return this._week.dow}function hn(){return this._week.doy}function fn(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function mn(e){var t=kt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}y("d",0,"do","day");y("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});y("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});y("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});y("e",0,0,"weekday");y("E",0,0,"isoWeekday");$("day","d");$("weekday","e");$("isoWeekday","E");ee("day",11);ee("weekday",11);ee("isoWeekday",11);g("d",F);g("e",F);g("E",F);g("dd",function(e,t){return t.weekdaysMinRegex(e)});g("ddd",function(e,t){return t.weekdaysShortRegex(e)});g("dddd",function(e,t){return t.weekdaysRegex(e)});Yt(["dd","ddd","dddd"],function(e,t,a,s){var r=a._locale.weekdaysParse(e,s,a._strict);r!=null?t.d=r:S(a).invalidWeekday=e});Yt(["d","e","E"],function(e,t,a,s){t[s]=Y(e)});function gn(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function pn(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ia(e,t){return e.slice(t,7).concat(e.slice(0,t))}var yn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),vn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wn=bt,An=bt,kn=bt;function Mn(e,t){var a=pe(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Ia(a,this._week.dow):e?a[e.day()]:a}function Dn(e){return e===!0?Ia(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Sn(e){return e===!0?Ia(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function bn(e,t,a){var s,r,i,l=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)i=Me([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(i,"").toLocaleLowerCase();return a?t==="dddd"?(r=L.call(this._weekdaysParse,l),r!==-1?r:null):t==="ddd"?(r=L.call(this._shortWeekdaysParse,l),r!==-1?r:null):(r=L.call(this._minWeekdaysParse,l),r!==-1?r:null):t==="dddd"?(r=L.call(this._weekdaysParse,l),r!==-1||(r=L.call(this._shortWeekdaysParse,l),r!==-1)?r:(r=L.call(this._minWeekdaysParse,l),r!==-1?r:null)):t==="ddd"?(r=L.call(this._shortWeekdaysParse,l),r!==-1||(r=L.call(this._weekdaysParse,l),r!==-1)?r:(r=L.call(this._minWeekdaysParse,l),r!==-1?r:null)):(r=L.call(this._minWeekdaysParse,l),r!==-1||(r=L.call(this._weekdaysParse,l),r!==-1)?r:(r=L.call(this._shortWeekdaysParse,l),r!==-1?r:null))}function Yn(e,t,a){var s,r,i;if(this._weekdaysParseExact)return bn.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(r=Me([2e3,1]).day(s),a&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[s]=new RegExp(i.replace(".",""),"i")),a&&t==="dddd"&&this._fullWeekdaysParse[s].test(e))return s;if(a&&t==="ddd"&&this._shortWeekdaysParse[s].test(e))return s;if(a&&t==="dd"&&this._minWeekdaysParse[s].test(e))return s;if(!a&&this._weekdaysParse[s].test(e))return s}}function Cn(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=gn(e,this.localeData()),this.add(e-t,"d")):t}function xn(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function _n(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=pn(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function On(e){return this._weekdaysParseExact?(O(this,"_weekdaysRegex")||Ha.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(O(this,"_weekdaysRegex")||(this._weekdaysRegex=wn),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Tn(e){return this._weekdaysParseExact?(O(this,"_weekdaysRegex")||Ha.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(O(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=An),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function En(e){return this._weekdaysParseExact?(O(this,"_weekdaysRegex")||Ha.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(O(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=kn),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ha(){function e(X,j){return j.length-X.length}var t=[],a=[],s=[],r=[],i,l,p,M,x;for(i=0;i<7;i++)l=Me([2e3,1]).day(i),p=ne(this.weekdaysMin(l,"")),M=ne(this.weekdaysShort(l,"")),x=ne(this.weekdays(l,"")),t.push(p),a.push(M),s.push(x),r.push(p),r.push(M),r.push(x);t.sort(e),a.sort(e),s.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Pa(){return this.hours()%12||12}function Rn(){return this.hours()||24}y("H",["HH",2],0,"hour");y("h",["hh",2],0,Pa);y("k",["kk",2],0,Rn);y("hmm",0,0,function(){return""+Pa.apply(this)+ke(this.minutes(),2)});y("hmmss",0,0,function(){return""+Pa.apply(this)+ke(this.minutes(),2)+ke(this.seconds(),2)});y("Hmm",0,0,function(){return""+this.hours()+ke(this.minutes(),2)});y("Hmmss",0,0,function(){return""+this.hours()+ke(this.minutes(),2)+ke(this.seconds(),2)});function qs(e,t){y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}qs("a",!0);qs("A",!1);$("hour","h");ee("hour",13);function Js(e,t){return t._meridiemParse}g("a",Js);g("A",Js);g("H",F);g("h",F);g("k",F);g("HH",F,le);g("hh",F,le);g("kk",F,le);g("hmm",Fs);g("hmmss",Us);g("Hmm",Fs);g("Hmmss",Us);I(["H","HH"],J);I(["k","kk"],function(e,t,a){var s=Y(e);t[J]=s===24?0:s});I(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e});I(["h","hh"],function(e,t,a){t[J]=Y(e),S(a).bigHour=!0});I("hmm",function(e,t,a){var s=e.length-2;t[J]=Y(e.substr(0,s)),t[ge]=Y(e.substr(s)),S(a).bigHour=!0});I("hmmss",function(e,t,a){var s=e.length-4,r=e.length-2;t[J]=Y(e.substr(0,s)),t[ge]=Y(e.substr(s,2)),t[_e]=Y(e.substr(r)),S(a).bigHour=!0});I("Hmm",function(e,t,a){var s=e.length-2;t[J]=Y(e.substr(0,s)),t[ge]=Y(e.substr(s))});I("Hmmss",function(e,t,a){var s=e.length-4,r=e.length-2;t[J]=Y(e.substr(0,s)),t[ge]=Y(e.substr(s,2)),t[_e]=Y(e.substr(r))});function In(e){return(e+"").toLowerCase().charAt(0)==="p"}var Hn=/[ap]\.?m?\.?/i,Pn=it("Hours",!0);function Fn(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"}var Xs={calendar:bi,longDateFormat:_i,invalidDate:Ti,ordinal:Ri,dayOfMonthOrdinalParse:Ii,relativeTime:Pi,months:Zi,monthsShort:Ns,week:dn,weekdays:yn,weekdaysMin:vn,weekdaysShort:Qs,meridiemParse:Hn},N={},pt={},Mt;function Un(e,t){var a,s=Math.min(e.length,t.length);for(a=0;a 0;){if(r=$t(i.slice(0,a).join("-")),r)return r;if(s&&s.length>=a&&Un(i,s)>=a-1)break;a--}t++}return Mt}function Wn(e){return e.match("^[^/\\\\]*$")!=null}function $t(e){var t=null,a;if(N[e]===void 0&&typeof module<"u"&&module&&module.exports&&Wn(e))try{t=Mt._abbr,a=require,a("./locale/"+e),Ue(t)}catch{N[e]=null}return N[e]}function Ue(e,t){var a;return e&&(re(t)?a=Re(e):a=Fa(e,t),a?Mt=a:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Mt._abbr}function Fa(e,t){if(t!==null){var a,s=Xs;if(t.abbr=e,N[e]!=null)Ts("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=N[e]._config;else if(t.parentLocale!=null)if(N[t.parentLocale]!=null)s=N[t.parentLocale]._config;else if(a=$t(t.parentLocale),a!=null)s=a._config;else return pt[t.parentLocale]||(pt[t.parentLocale]=[]),pt[t.parentLocale].push({name:e,config:t}),null;return N[e]=new _a(Aa(s,t)),pt[e]&&pt[e].forEach(function(r){Fa(r.name,r.config)}),Ue(e),N[e]}else return delete N[e],null}function Bn(e,t){if(t!=null){var a,s,r=Xs;N[e]!=null&&N[e].parentLocale!=null?N[e].set(Aa(N[e]._config,t)):(s=$t(e),s!=null&&(r=s._config),t=Aa(r,t),s==null&&(t.abbr=e),a=new _a(t),a.parentLocale=N[e],N[e]=a),Ue(e)}else N[e]!=null&&(N[e].parentLocale!=null?(N[e]=N[e].parentLocale,e===Ue()&&Ue(e)):N[e]!=null&&delete N[e]);return N[e]}function Re(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Mt;if(!pe(e)){if(t=$t(e),t)return t;e=[e]}return Nn(e)}function Vn(){return ka(N)}function Ua(e){var t,a=e._a;return a&&S(e).overflow===-2&&(t=a[xe]<0||a[xe]>11?xe:a[Ae]<1||a[Ae]>Kt(a[K],a[xe])?Ae:a[J]<0||a[J]>24||a[J]===24&&(a[ge]!==0||a[_e]!==0||a[qe]!==0)?J:a[ge]<0||a[ge]>59?ge:a[_e]<0||a[_e]>59?_e:a[qe]<0||a[qe]>999?qe:-1,S(e)._overflowDayOfYear&&(tAe)&&(t=Ae),S(e)._overflowWeeks&&t===-1&&(t=qi),S(e)._overflowWeekday&&t===-1&&(t=Ji),S(e).overflow=t),e}var Gn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ln=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,zn=/Z|[+-]\d\d(?::?\d\d)?/,Rt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ya=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Qn=/^\/?Date\((-?\d+)/i,qn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Jn={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Zs(e){var t,a,s=e._i,r=Gn.exec(s)||Ln.exec(s),i,l,p,M,x=Rt.length,X=ya.length;if(r){for(S(e).iso=!0,t=0,a=x;twt(l)||e._dayOfYear===0)&&(S(e)._overflowDayOfYear=!0),a=At(l,0,e._dayOfYear),e._a[xe]=a.getUTCMonth(),e._a[Ae]=a.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[J]===24&&e._a[ge]===0&&e._a[_e]===0&&e._a[qe]===0&&(e._nextDay=!0,e._a[J]=0),e._d=(e._useUTC?At:on).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[J]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(S(e).weekdayMismatch=!0)}}function al(e){var t,a,s,r,i,l,p,M,x;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,l=4,a=et(t.GG,e._a[K],kt(P(),1,4).year),s=et(t.W,1),r=et(t.E,1),(r<1||r>7)&&(M=!0)):(i=e._locale._week.dow,l=e._locale._week.doy,x=kt(P(),i,l),a=et(t.gg,e._a[K],x.year),s=et(t.w,x.week),t.d!=null?(r=t.d,(r<0||r>6)&&(M=!0)):t.e!=null?(r=t.e+i,(t.e<0||t.e>6)&&(M=!0)):r=i),s<1||s>Oe(a,i,l)?S(e)._overflowWeeks=!0:M!=null?S(e)._overflowWeekday=!0:(p=zs(a,s,r,i,l),e._a[K]=p.year,e._dayOfYear=p.dayOfYear)}f.ISO_8601=function(){};f.RFC_2822=function(){};function Wa(e){if(e._f===f.ISO_8601){Zs(e);return}if(e._f===f.RFC_2822){js(e);return}e._a=[],S(e).empty=!0;var t=""+e._i,a,s,r,i,l,p=t.length,M=0,x,X;for(r=Es(e._f,e._locale).match(Oa)||[],X=r.length,a=0;a 0&&S(e).unusedInput.push(l),t=t.slice(t.indexOf(s)+s.length),M+=s.length),at[i]?(s?S(e).empty=!1:S(e).unusedTokens.push(i),Qi(i,s,e)):e._strict&&!s&&S(e).unusedTokens.push(i);S(e).charsLeftOver=p-M,t.length>0&&S(e).unusedInput.push(t),e._a[J]<=12&&S(e).bigHour===!0&&e._a[J]>0&&(S(e).bigHour=void 0),S(e).parsedDateParts=e._a.slice(0),S(e).meridiem=e._meridiem,e._a[J]=sl(e._locale,e._a[J],e._meridiem),x=S(e).era,x!==null&&(e._a[K]=e._locale.erasConvertYear(x,e._a[K])),Na(e),Ua(e)}function sl(e,t,a){var s;return a==null?t:e.meridiemHour!=null?e.meridiemHour(t,a):(e.isPM!=null&&(s=e.isPM(a),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function rl(e){var t,a,s,r,i,l,p=!1,M=e._f.length;if(M===0){S(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r this?this:e:zt()});function er(e,t){var a,s;if(t.length===1&&pe(t[0])&&(t=t[0]),!t.length)return P();for(a=t[0],s=1;s this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function bl(){if(!re(this._isDSTShifted))return this._isDSTShifted;var e={},t;return xa(e,this),e=Ks(e),e._a?(t=e._isUTC?Me(e._a):P(e._a),this._isDSTShifted=this.isValid()&&pl(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Yl(){return this.isValid()?!this._isUTC:!1}function Cl(){return this.isValid()?this._isUTC:!1}function ar(){return this.isValid()?this._isUTC&&this._offset===0:!1}var xl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,_l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ve(e,t){var a=e,s=null,r,i,l;return Ht(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:Te(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(s=xl.exec(e))?(r=s[1]==="-"?-1:1,a={y:0,d:Y(s[Ae])*r,h:Y(s[J])*r,m:Y(s[ge])*r,s:Y(s[_e])*r,ms:Y(Da(s[qe]*1e3))*r}):(s=_l.exec(e))?(r=s[1]==="-"?-1:1,a={y:Qe(s[2],r),M:Qe(s[3],r),w:Qe(s[4],r),d:Qe(s[5],r),h:Qe(s[6],r),m:Qe(s[7],r),s:Qe(s[8],r)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(l=Ol(P(a.from),P(a.to)),a={},a.ms=l.milliseconds,a.M=l.months),i=new ea(a),Ht(e)&&O(e,"_locale")&&(i._locale=e._locale),Ht(e)&&O(e,"_isValid")&&(i._isValid=e._isValid),i}ve.fn=ea.prototype;ve.invalid=gl;function Qe(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function bs(e,t){var a={};return a.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function Ol(e,t){var a;return e.isValid()&&t.isValid()?(t=Va(t,e),e.isBefore(t)?a=bs(e,t):(a=bs(t,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function sr(e,t){return function(a,s){var r,i;return s!==null&&!isNaN(+s)&&(Ts(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=a,a=s,s=i),r=ve(a,s),rr(this,r,e),this}}function rr(e,t,a,s){var r=t._milliseconds,i=Da(t._days),l=Da(t._months);!e.isValid()||(s=s==null?!0:s,l&&Bs(e,Ft(e,"Month")+l*a),i&&Is(e,"Date",Ft(e,"Date")+i*a),r&&e._d.setTime(e._d.valueOf()+r*a),s&&f.updateOffset(e,i||l))}var Tl=sr(1,"add"),El=sr(-1,"subtract");function ir(e){return typeof e=="string"||e instanceof String}function Rl(e){return ye(e)||Dt(e)||ir(e)||Te(e)||Hl(e)||Il(e)||e===null||e===void 0}function Il(e){var t=Je(e)&&!Ya(e),a=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,i,l=s.length;for(r=0;r a.valueOf():a.valueOf() 9999?It(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):De(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",It(a,"Z")):It(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Xl(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",a,s,r,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),a="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(a+s+r+i)}function Zl(e){e||(e=this.isUtc()?f.defaultFormatUtc:f.defaultFormat);var t=It(this,e);return this.localeData().postformat(t)}function jl(e,t){return this.isValid()&&(ye(e)&&e.isValid()||P(e).isValid())?ve({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Kl(e){return this.from(P(),e)}function $l(e,t){return this.isValid()&&(ye(e)&&e.isValid()||P(e).isValid())?ve({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function eo(e){return this.to(P(),e)}function nr(e){var t;return e===void 0?this._locale._abbr:(t=Re(e),t!=null&&(this._locale=t),this)}var lr=ce("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function or(){return this._locale}var Wt=1e3,st=60*Wt,Bt=60*st,ur=(365*400+97)*24*Bt;function rt(e,t){return(e%t+t)%t}function dr(e,t,a){return e<100&&e>=0?new Date(e+400,t,a)-ur:new Date(e,t,a).valueOf()}function cr(e,t,a){return e<100&&e>=0?Date.UTC(e+400,t,a)-ur:Date.UTC(e,t,a)}function to(e){var t,a;if(e=he(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?cr:dr,e){case"year":t=a(this.year(),0,1);break;case"quarter":t=a(this.year(),this.month()-this.month()%3,1);break;case"month":t=a(this.year(),this.month(),1);break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=a(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=rt(t+(this._isUTC?0:this.utcOffset()*st),Bt);break;case"minute":t=this._d.valueOf(),t-=rt(t,st);break;case"second":t=this._d.valueOf(),t-=rt(t,Wt);break}return this._d.setTime(t),f.updateOffset(this,!0),this}function ao(e){var t,a;if(e=he(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?cr:dr,e){case"year":t=a(this.year()+1,0,1)-1;break;case"quarter":t=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=a(this.year(),this.month()+1,1)-1;break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Bt-rt(t+(this._isUTC?0:this.utcOffset()*st),Bt)-1;break;case"minute":t=this._d.valueOf(),t+=st-rt(t,st)-1;break;case"second":t=this._d.valueOf(),t+=Wt-rt(t,Wt)-1;break}return this._d.setTime(t),f.updateOffset(this,!0),this}function so(){return this._d.valueOf()-(this._offset||0)*6e4}function ro(){return Math.floor(this.valueOf()/1e3)}function io(){return new Date(this.valueOf())}function no(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function lo(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function oo(){return this.isValid()?this.toISOString():null}function uo(){return Ca(this)}function co(){return Pe({},S(this))}function ho(){return S(this).overflow}function fo(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}y("N",0,0,"eraAbbr");y("NN",0,0,"eraAbbr");y("NNN",0,0,"eraAbbr");y("NNNN",0,0,"eraName");y("NNNNN",0,0,"eraNarrow");y("y",["y",1],"yo","eraYear");y("y",["yy",2],0,"eraYear");y("y",["yyy",3],0,"eraYear");y("y",["yyyy",4],0,"eraYear");g("N",Ga);g("NN",Ga);g("NNN",Ga);g("NNNN",So);g("NNNNN",bo);I(["N","NN","NNN","NNNN","NNNNN"],function(e,t,a,s){var r=a._locale.erasParse(e,s,a._strict);r?S(a).era=r:S(a).invalidEra=e});g("y",nt);g("yy",nt);g("yyy",nt);g("yyyy",nt);g("yo",Yo);I(["y","yy","yyy","yyyy"],K);I(["yo"],function(e,t,a,s){var r;a._locale._eraYearOrdinalRegex&&(r=e.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?t[K]=a._locale.eraYearOrdinalParse(e,r):t[K]=parseInt(e,10)});function mo(e,t){var a,s,r,i=this._eras||Re("en")._eras;for(a=0,s=i.length;a =0)return i[s]}function po(e,t){var a=e.since<=e.until?1:-1;return t===void 0?f(e.since).year():f(e.since).year()+(t-e.offset)*a}function yo(){var e,t,a,s=this.localeData().eras();for(e=0,t=s.length;ei&&(t=i),Ro.call(this,e,t,a,s,r))}function Ro(e,t,a,s,r){var i=zs(e,t,a,s,r),l=At(i.year,0,i.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}y("Q",0,"Qo","quarter");$("quarter","Q");ee("quarter",7);g("Q",Hs);I("Q",function(e,t){t[xe]=(Y(e)-1)*3});function Io(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}y("D",["DD",2],"Do","date");$("date","D");ee("date",9);g("D",F);g("DD",F,le);g("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});I(["D","DD"],Ae);I("Do",function(e,t){t[Ae]=Y(e.match(F)[0])});var fr=it("Date",!0);y("DDD",["DDDD",3],"DDDo","dayOfYear");$("dayOfYear","DDD");ee("dayOfYear",4);g("DDD",Jt);g("DDDD",Ps);I(["DDD","DDDD"],function(e,t,a){a._dayOfYear=Y(e)});function Ho(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}y("m",["mm",2],0,"minute");$("minute","m");ee("minute",14);g("m",F);g("mm",F,le);I(["m","mm"],ge);var Po=it("Minutes",!1);y("s",["ss",2],0,"second");$("second","s");ee("second",15);g("s",F);g("ss",F,le);I(["s","ss"],_e);var Fo=it("Seconds",!1);y("S",0,0,function(){return~~(this.millisecond()/100)});y(0,["SS",2],0,function(){return~~(this.millisecond()/10)});y(0,["SSS",3],0,"millisecond");y(0,["SSSS",4],0,function(){return this.millisecond()*10});y(0,["SSSSS",5],0,function(){return this.millisecond()*100});y(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});y(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});y(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});y(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});$("millisecond","ms");ee("millisecond",16);g("S",Jt,Hs);g("SS",Jt,le);g("SSS",Jt,Ps);var Fe,mr;for(Fe="SSSS";Fe.length<=9;Fe+="S")g(Fe,nt);function Uo(e,t){t[qe]=Y(("0."+e)*1e3)}for(Fe="S";Fe.length<=9;Fe+="S")I(Fe,Uo);mr=it("Milliseconds",!1);y("z",0,0,"zoneAbbr");y("zz",0,0,"zoneName");function No(){return this._isUTC?"UTC":""}function Wo(){return this._isUTC?"Coordinated Universal Time":""}var c=St.prototype;c.add=Tl;c.calendar=Ul;c.clone=Nl;c.diff=Ql;c.endOf=ao;c.format=Zl;c.from=jl;c.fromNow=Kl;c.to=$l;c.toNow=eo;c.get=Wi;c.invalidAt=ho;c.isAfter=Wl;c.isBefore=Bl;c.isBetween=Vl;c.isSame=Gl;c.isSameOrAfter=Ll;c.isSameOrBefore=zl;c.isValid=uo;c.lang=lr;c.locale=nr;c.localeData=or;c.max=ul;c.min=ol;c.parsingFlags=co;c.set=Bi;c.startOf=to;c.subtract=El;c.toArray=no;c.toObject=lo;c.toDate=io;c.toISOString=Jl;c.inspect=Xl;typeof Symbol<"u"&&Symbol.for!=null&&(c[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});c.toJSON=oo;c.toString=ql;c.unix=ro;c.valueOf=so;c.creationData=fo;c.eraName=yo;c.eraNarrow=vo;c.eraAbbr=wo;c.eraYear=Ao;c.year=Ls;c.isLeapYear=ln;c.weekYear=Co;c.isoWeekYear=xo;c.quarter=c.quarters=Io;c.month=Vs;c.daysInMonth=sn;c.week=c.weeks=fn;c.isoWeek=c.isoWeeks=mn;c.weeksInYear=To;c.weeksInWeekYear=Eo;c.isoWeeksInYear=_o;c.isoWeeksInISOWeekYear=Oo;c.date=fr;c.day=c.days=Cn;c.weekday=xn;c.isoWeekday=_n;c.dayOfYear=Ho;c.hour=c.hours=Pn;c.minute=c.minutes=Po;c.second=c.seconds=Fo;c.millisecond=c.milliseconds=mr;c.utcOffset=vl;c.utc=Al;c.local=kl;c.parseZone=Ml;c.hasAlignedHourOffset=Dl;c.isDST=Sl;c.isLocal=Yl;c.isUtcOffset=Cl;c.isUtc=ar;c.isUTC=ar;c.zoneAbbr=No;c.zoneName=Wo;c.dates=ce("dates accessor is deprecated. Use date instead.",fr);c.months=ce("months accessor is deprecated. Use month instead",Vs);c.years=ce("years accessor is deprecated. Use year instead",Ls);c.zone=ce("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",wl);c.isDSTShifted=ce("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",bl);function Bo(e){return P(e*1e3)}function Vo(){return P.apply(null,arguments).parseZone()}function gr(e){return e}var T=_a.prototype;T.calendar=Yi;T.longDateFormat=Oi;T.invalidDate=Ei;T.ordinal=Hi;T.preparse=gr;T.postformat=gr;T.relativeTime=Fi;T.pastFuture=Ui;T.set=Si;T.eras=mo;T.erasParse=go;T.erasConvertYear=po;T.erasAbbrRegex=Mo;T.erasNameRegex=ko;T.erasNarrowRegex=Do;T.months=$i;T.monthsShort=en;T.monthsParse=an;T.monthsRegex=nn;T.monthsShortRegex=rn;T.week=un;T.firstDayOfYear=hn;T.firstDayOfWeek=cn;T.weekdays=Mn;T.weekdaysMin=Sn;T.weekdaysShort=Dn;T.weekdaysParse=Yn;T.weekdaysRegex=On;T.weekdaysShortRegex=Tn;T.weekdaysMinRegex=En;T.isPM=In;T.meridiem=Fn;function Vt(e,t,a,s){var r=Re(),i=Me().set(s,t);return r[a](i,e)}function pr(e,t,a){if(Te(e)&&(t=e,e=void 0),e=e||"",t!=null)return Vt(e,t,a,"month");var s,r=[];for(s=0;s<12;s++)r[s]=Vt(e,s,a,"month");return r}function za(e,t,a,s){typeof e=="boolean"?(Te(t)&&(a=t,t=void 0),t=t||""):(t=e,a=t,e=!1,Te(t)&&(a=t,t=void 0),t=t||"");var r=Re(),i=e?r._week.dow:0,l,p=[];if(a!=null)return Vt(t,(a+i)%7,s,"day");for(l=0;l<7;l++)p[l]=Vt(t,(l+i)%7,s,"day");return p}function Go(e,t){return pr(e,t,"months")}function Lo(e,t){return pr(e,t,"monthsShort")}function zo(e,t,a){return za(e,t,a,"weekdays")}function Qo(e,t,a){return za(e,t,a,"weekdaysShort")}function qo(e,t,a){return za(e,t,a,"weekdaysMin")}Ue("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,a=Y(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+a}});f.lang=ce("moment.lang is deprecated. Use moment.locale instead.",Ue);f.langData=ce("moment.langData is deprecated. Use moment.localeData instead.",Re);var Ye=Math.abs;function Jo(){var e=this._data;return this._milliseconds=Ye(this._milliseconds),this._days=Ye(this._days),this._months=Ye(this._months),e.milliseconds=Ye(e.milliseconds),e.seconds=Ye(e.seconds),e.minutes=Ye(e.minutes),e.hours=Ye(e.hours),e.months=Ye(e.months),e.years=Ye(e.years),this}function yr(e,t,a,s){var r=ve(t,a);return e._milliseconds+=s*r._milliseconds,e._days+=s*r._days,e._months+=s*r._months,e._bubble()}function Xo(e,t){return yr(this,e,t,1)}function Zo(e,t){return yr(this,e,t,-1)}function Ys(e){return e<0?Math.floor(e):Math.ceil(e)}function jo(){var e=this._milliseconds,t=this._days,a=this._months,s=this._data,r,i,l,p,M;return e>=0&&t>=0&&a>=0||e<=0&&t<=0&&a<=0||(e+=Ys(ba(a)+t)*864e5,t=0,a=0),s.milliseconds=e%1e3,r=de(e/1e3),s.seconds=r%60,i=de(r/60),s.minutes=i%60,l=de(i/60),s.hours=l%24,t+=de(l/24),M=de(vr(t)),a+=M,t-=Ys(ba(M)),p=de(a/12),a%=12,s.days=t,s.months=a,s.years=p,this}function vr(e){return e*4800/146097}function ba(e){return e*146097/4800}function Ko(e){if(!this.isValid())return NaN;var t,a,s=this._milliseconds;if(e=he(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,a=this._months+vr(t),e){case"month":return a;case"quarter":return a/3;case"year":return a/12}else switch(t=this._days+Math.round(ba(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function $o(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Y(this._months/12)*31536e6:NaN}function Ie(e){return function(){return this.as(e)}}var eu=Ie("ms"),tu=Ie("s"),au=Ie("m"),su=Ie("h"),ru=Ie("d"),iu=Ie("w"),nu=Ie("M"),lu=Ie("Q"),ou=Ie("y");function uu(){return ve(this)}function du(e){return e=he(e),this.isValid()?this[e+"s"]():NaN}function Xe(e){return function(){return this.isValid()?this._data[e]:NaN}}var cu=Xe("milliseconds"),hu=Xe("seconds"),fu=Xe("minutes"),mu=Xe("hours"),gu=Xe("days"),pu=Xe("months"),yu=Xe("years");function vu(){return de(this.days()/7)}var Ce=Math.round,tt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function wu(e,t,a,s,r){return r.relativeTime(t||1,!!a,e,s)}function Au(e,t,a,s){var r=ve(e).abs(),i=Ce(r.as("s")),l=Ce(r.as("m")),p=Ce(r.as("h")),M=Ce(r.as("d")),x=Ce(r.as("M")),X=Ce(r.as("w")),j=Ce(r.as("y")),ie=i<=a.ss&&["s",i]||i 0,ie[4]=s,wu.apply(null,ie)}function ku(e){return e===void 0?Ce:typeof e=="function"?(Ce=e,!0):!1}function Mu(e,t){return tt[e]===void 0?!1:t===void 0?tt[e]:(tt[e]=t,e==="s"&&(tt.ss=t-1),!0)}function Du(e,t){if(!this.isValid())return this.localeData().invalidDate();var a=!1,s=tt,r,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(a=e),typeof t=="object"&&(s=Object.assign({},tt,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),r=this.localeData(),i=Au(this,!a,s,r),a&&(i=r.pastFuture(+this,i)),r.postformat(i)}var va=Math.abs;function $e(e){return(e>0)-(e<0)||+e}function aa(){if(!this.isValid())return this.localeData().invalidDate();var e=va(this._milliseconds)/1e3,t=va(this._days),a=va(this._months),s,r,i,l,p=this.asSeconds(),M,x,X,j;return p?(s=de(e/60),r=de(s/60),e%=60,s%=60,i=de(a/12),a%=12,l=e?e.toFixed(3).replace(/\.?0+$/,""):"",M=p<0?"-":"",x=$e(this._months)!==$e(p)?"-":"",X=$e(this._days)!==$e(p)?"-":"",j=$e(this._milliseconds)!==$e(p)?"-":"",M+"P"+(i?x+i+"Y":"")+(a?x+a+"M":"")+(t?X+t+"D":"")+(r||s||e?"T":"")+(r?j+r+"H":"")+(s?j+s+"M":"")+(e?j+l+"S":"")):"P0D"}var C=ea.prototype;C.isValid=ml;C.abs=Jo;C.add=Xo;C.subtract=Zo;C.as=Ko;C.asMilliseconds=eu;C.asSeconds=tu;C.asMinutes=au;C.asHours=su;C.asDays=ru;C.asWeeks=iu;C.asMonths=nu;C.asQuarters=lu;C.asYears=ou;C.valueOf=$o;C._bubble=jo;C.clone=uu;C.get=du;C.milliseconds=cu;C.seconds=hu;C.minutes=fu;C.hours=mu;C.days=gu;C.weeks=vu;C.months=pu;C.years=yu;C.humanize=Du;C.toISOString=aa;C.toString=aa;C.toJSON=aa;C.locale=nr;C.localeData=or;C.toIsoString=ce("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",aa);C.lang=lr;y("X",0,0,"unix");y("x",0,0,"valueOf");g("x",Zt);g("X",Gi);I("X",function(e,t,a){a._d=new Date(parseFloat(e)*1e3)});I("x",function(e,t,a){a._d=new Date(Y(e))});//! moment.js +f.version="2.29.4";Mi(P);f.fn=c;f.min=dl;f.max=cl;f.now=hl;f.utc=Me;f.unix=Bo;f.months=Go;f.isDate=Dt;f.locale=Ue;f.invalid=zt;f.duration=ve;f.isMoment=ye;f.weekdays=zo;f.parseZone=Vo;f.localeData=Re;f.isDuration=Ht;f.monthsShort=Lo;f.weekdaysMin=qo;f.defineLocale=Fa;f.updateLocale=Bn;f.locales=Vn;f.weekdaysShort=Qo;f.normalizeUnits=he;f.relativeTimeRounding=ku;f.relativeTimeThreshold=Mu;f.calendarFormat=Fl;f.prototype=c;f.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const H=e=>(si("data-v-b301384e"),e=e(),ri(),e),Su={class:"center"},bu={class:"leftWra"},Yu={class:"leftTop"},Cu=H(()=>n("span",null,"\u8BBE\u5907\u7C7B\u578B\u9009\u62E9",-1)),xu={class:"types"},_u={width:"100%",class:"types_left"},Ou=H(()=>n("img",{width:"90",src:fi,alt:""},null,-1)),Tu={width:"100%",class:"types_center"},Eu=H(()=>n("img",{width:"90",src:mi,alt:""},null,-1)),Ru={width:"100%",class:"types_right"},Iu=H(()=>n("img",{width:"90",src:gi,alt:""},null,-1)),Hu={key:0,class:"leftbottom"},Pu=H(()=>n("span",null,"\u667A\u80FD\u5B62\u5B50\u76D1\u6D4B\u6570\u636E",-1)),Fu=H(()=>n("img",{src:Gt,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Uu={class:"tableDiv"},Nu=H(()=>n("div",{slot:"error",class:"image-slot"},[n("i",{class:"el-icon-picture-outline"})],-1)),Wu={key:1,class:"leftbottom"},Bu=H(()=>n("span",null,"\u5B9E\u65F6\u76D1\u6D4B\u6570\u636E",-1)),Vu=H(()=>n("img",{src:Gt,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Gu={class:"tableDiv"},Lu=H(()=>n("div",{slot:"error",class:"image-slot"},[n("i",{class:"el-icon-picture-outline"})],-1)),zu={key:2,class:"leftbottom"},Qu=H(()=>n("span",null,"\u8BBE\u5907\u76D1\u6D4B\u4FE1\u606F\u5217\u8868",-1)),qu=H(()=>n("img",{src:Gt,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ju={class:"tableDiv"},Xu={class:"selectdiv",m:"4"},Zu={key:0,src:Lt,alt:""},ju={key:0,class:"imgrotate",src:Lt,alt:""},Ku={class:"rightWra"},$u={class:"rightTop"},ed=H(()=>n("div",{class:"title"},[n("span",null,"\u5892\u60C5\u3001\u571F\u8D28\u76D1\u6D4B\u6570\u636E")],-1)),td={class:"depth"},ad={key:0,src:Lt,alt:""},sd={key:0,class:"imgrotate",src:Lt,alt:""},rd={class:"bottom_center"},id=H(()=>n("div",{class:"left_bottom"},[n("div",{class:"title"},[n("span",null,"\u8BBE\u5907\u7167\u7247")]),n("div",{class:"imgdiv"},[n("img",{src:"https://img.js.design/assets/img/641d73b4634e77963ddc9e3c.png#34e63fa85ea624d67ab959d24318b0e9",alt:""})])],-1)),nd={class:"right_bottom"},ld=H(()=>n("span",null,"\u866B\u60C5\u76D1\u6D4B\u6570\u636E",-1)),od=H(()=>n("img",{src:Gt,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ud={class:"tableDiv"},dd=H(()=>n("div",{slot:"error",class:"image-slot"},[n("i",{class:"el-icon-picture-outline"})],-1)),cd={key:0,src:Cs,alt:""},hd={key:0,class:"imgrotate",src:Cs,alt:""},fd=ai(' ',1),md={id:"popup"},gd={id:"pop"},pd={class:"content"},yd={key:0,style:{"background-color":"rgba(67, 207, 124, 1)"}},vd={key:1,style:{background:"red"}},wd={class:"my-header"},Ad=["id"],kd={class:"buttonbox"},Md=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u67E5\u8BE2",-1)),Dd=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u4E0B\u8F7D",-1)),Sd=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u91CD\u7F6E",-1)),bd={class:"select_div"},Yd={class:"slele_time"},Cd={class:"time_on"},xd={class:"time_end"},_d={class:"device"},Od={class:"tableDiv"},Td=H(()=>n("div",{slot:"error",class:"image-slot"},[n("i",{class:"el-icon-picture-outline"})],-1)),Ed={class:"block"},Rd={class:"my-header"},Id=["id"],Hd={class:"buttonbox"},Pd=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u67E5\u8BE2",-1)),Fd=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u4E0B\u8F7D",-1)),Ud=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u91CD\u7F6E",-1)),Nd={class:"select_div"},Wd={class:"slele_time"},Bd={class:"time_on"},Vd={class:"time_end"},Gd={class:"device"},Ld={class:"tableDiv"},zd=H(()=>n("div",{slot:"error",class:"image-slot"},[n("i",{class:"el-icon-picture-outline"})],-1)),Qd={class:"block"},qd={class:"my-header"},Jd=["id"],Xd={class:"buttonbox"},Zd=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u67E5\u8BE2",-1)),jd=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u4E0B\u8F7D",-1)),Kd=H(()=>n("span",{style:{"vertical-align":"middle"}},"\u91CD\u7F6E",-1)),$d={class:"select_div"},ec={class:"slele_time"},tc={class:"time_on"},ac={class:"time_end"},sc={class:"device"},rc={class:"tableDiv"},ic={class:"block"},nc={__name:"index",setup(e){const t=w(!1),a=w(!1),s=w(!1);let r=w(null);const i=w(null),l=w(null),p=w(null),M=w(null);w("370211");let x=oa({arr:[],brr:[],crr:[]});oa({arr:[]});const X=w({name:"",value:""});let j=w([]);const ie=w([]),wr=w([]),sa=w(!1);let ae=w("4"),lt=w(!0),ot=w(!0),Ne=w(!0),We=w(!0),Be=w(!0);const W=w(""),B=w(""),Z=w("");let _=w(1),D=w(5),ut=w([]),He=w([]),Ve=w([]),Qa=w([]),Ct=w([]),xt=w([]),ra=w([]),qa=w([]),Ze=w("1"),Ge=w([]),Ja=w([]),Xa=w([]),Za=w([]),ja=w([]),Ka=w([]),Le=w([]),$a=w([]),es=w([]),ts=w([]),as=w([]),ss=w([]),ze=w({});var ds="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABMCAYAAAB033kxAAAAAXNSR0IArs4c6QA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4WNVWaeo6izzMLQSvsfweqxeYwi6VJH6Pb2OdfDkZUV1ZhDuEpMjp9TzStsTcoSP9S3PI7wHnFU70dXvW9Z+VuCwFlrXXnFwGrk/JK1SSRIDcIa4OyptuvkQoxmuqrCT1qbA7j0idUr7RdJekZRhXWgMyF57QwZUmeuBSkzadZVWvL+p70gSMWpX1QFUVJMObQdV8rVFMEPbv5KRW9fBW8SUWdAFDOsKUCp5plr0RxiegvK5czCyEpc2+QDl5ptbjd88Vs742P4QWET4iLh76hNidvYdInD17W2ptrFcAiH1PZKHtVGnfN9hvqxOjZhlt9QA5aYeiJ7am9pO29derD1fr1HX9xtCtefwqcbgvFdrN/cXQrXH8CWEVb2XXFdgKDF4THsMjwwQGAEK7N6FC8MAJVodwdt+O3JHUV3dNGm5dq+5C3el9rtj3oV7pP/hAKP5WKkDLyM+5uqIh+NMHQYlqY9rDIM3ii5BaXPWG39rbn+u+o/36xPmEAz1JHSkErIfNUDanyZY17Qv3e9/gmGGmscCwD4sPDwkTb4Oa2jMrsupDPqMZjSjGc1oRjOa0YxmNKMZPUz0v54el+boawe6AAAAAElFTkSuQmCC";const je=w([{value:"dev10101",label:"dev10101"},{value:"dev20101",label:"dev20101"}]);ei(()=>x.arr,o=>{console.log("val:",o)});var rs={title:[]};let ia={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},Ke=oa({arr:[],arrs:[]});ti(()=>{kr(),Lr(),na(),os(),us(),Jr(),qr(),fs(),Mr(),ms(),la()});const Ar={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 kr(){r=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({...Ar})}),r.cesiumWidget.creditContainer.style.display="none",gs("shuzisannong:huangdaoqu_town","tl"),r.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),jr();var o=new Cesium.ScreenSpaceEventHandler(r.canvas);o.setInputAction(function(u){var d=r.scene.pick(u.position);if(Cesium.defined(d)&&d.id instanceof Cesium.Entity&&d.id.billboard){var A=d.id.position.getValue(r.clock.currentTime),b=Cesium.Cartographic.fromCartesian(A),R=Cesium.Math.toDegrees(b.longitude),E=Cesium.Math.toDegrees(b.latitude),U=b.height.toFixed(2);console.log("\u7ECF\u5EA6: "+R+"\uFF0C\u7EAC\u5EA6: "+E+"\uFF0C\u9AD8\u5EA6: "+U),Se.label.forEach((V,z)=>{V.dev_code==d.id.name&&(ze.value=V)}),Kr(u.position),r.scene.postRender.addEventListener(ys)}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}function Mr(){ua({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afarmland&maxFeatures=50&outputFormat=application%2Fjson",method:"get"}).then(o=>{wr.value=o.data.features}).catch(o=>{})}let Se=w({label:[]});const Dr=o=>{ae.value="1",lt.value=!1,ot.value=!1,na()},Sr=o=>{ae.value="2",lt.value=!1,ot.value=!1,Qr()},br=o=>{ae.value="3",lt.value=!0,ot.value=!1,zr(),os()},Yr=()=>{ae.value="4",ot.value=!0,lt.value=!0,na()},Cr=o=>{_.value=o,ut.value=ie.value.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)},xr=o=>{_.value=o,Ve.value=He.value.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)},_r=o=>{_.value=o,Ct.value=j.value.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)},dt=o=>{switch(Ze.value=o,o){case 1:Ge=Ja,Le=$a;break;case 2:Ge=Xa,Le=es;break;case 3:Ge=Za,Le=ts;break;case 4:Ge=ja,Le=as;break;case 5:Ge=Ka,Le=ss;break}la()},Or=()=>{Tt({startTime:oe(W),endTime:oe(B),equipment:Z.value}).then(o=>{Ke.arr=o.data,ie.value=o.data,ut.value=o.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},Tr=()=>{gt({startTime:oe(W),endTime:oe(B),equipment:Z.value}).then(o=>{He.value=o.data,Ve.value=o.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},Er=()=>{mt({startTime:oe(W),endTime:oe(B),equipment:Z.value}).then(o=>{j.value=o.data,Ct.value=o.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},Rr=()=>{Tt({startTime:W.value?oe(W):"",endTime:B.value?oe(B):"",equipment:Z.value,whetherToDownload:!0}).then(o=>{fa(o.data[o.data.length-1].excelPath)})},Ir=()=>{gt({startTime:W.value?oe(W):"",endTime:B.value?oe(B):"",equipment:Z.value,whetherToDownload:!0}).then(o=>{fa(o.data[o.data.length-1].excelPath)})},Hr=()=>{mt({startTime:W.value?oe(W):"",endTime:B.value?oe(B):"",equipment:Z.value,whetherToDownload:!0}).then(o=>{fa(o.data[o.data.length-1].excelPath)})},Pr=()=>{W.value="",B.value="",Z.value="",ls()},Fr=()=>{W.value="",B.value="",Z.value="",gt().then(o=>{He.value=o.data,Ve.value=o.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},Ur=()=>{W.value="",B.value="",Z.value="",mt().then(o=>{He.value=o.data,Ve.value=o.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},oe=o=>{const u=new Date(o.value),d=u.getFullYear(),A=u.getMonth()+1,b=u.getDate(),R=u.getHours(),E=u.getMinutes(),U=u.getSeconds();return`${d}-${A.toString().padStart(2,"0")}-${b.toString().padStart(2,"0")} ${R.toString().padStart(2,"0")}:${E.toString().padStart(2,"0")}:${U.toString().padStart(2,"0")}`},Nr=()=>{t.value=!0,ls(),W.value="",B.value="",Z.value="",pi().then(o=>{je.value=o.data})},is=()=>{a.value=!0,us(),W.value="",B.value="",Z.value="",yi().then(o=>{je.value=o.data}),gt().then(o=>{He.value=o.data,Ve.value=o.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},Wr=()=>{s.value=!0,W.value="",B.value="",Z.value="",vi().then(o=>{je.value=o.data})};function _t(o,u){if(r){const d=r.imageryLayers._layers;for(let A=d.length-1;A>=0;A--)o.forEach(b=>{d[A]._imageryProvider&&d[A]._imageryProvider.customName&&(u?d[A]._imageryProvider.customName.indexOf(b)>-1&&r.imageryLayers.remove(d[A]):d[A]._imageryProvider.customName===b&&r.imageryLayers.remove(d[A]))})}}function ns(o){if(r){let d=r.entities._entities._array;for(var u=d.length-1;u>=0;u--)d[u]._name&&d[u]._name===o&&r.entities.remove(d[u])}}function Br(){if(Ne.value=!Ne.value,Ne.value){let o=document.querySelector(".leftWra");o.style.transform="translate(0,0)"}else{let o=document.querySelector(".leftWra");o.style.transform="translate(-107%,0)"}}function Vr(){if(We.value=!We.value,We.value){let o=document.querySelector(".rightWra");o.style.transform="translate(0,0)"}else{let o=document.querySelector(".rightWra");o.style.transform="translate(107%,0)"}}function Gr(){if(Be.value=!Be.value,Be.value){console.log(111);let o=document.querySelector(".bottom_center");o.style.transform="translate(0,0)"}else{let o=document.querySelector(".bottom_center");o.style.transform="translate(0,107%)"}}const ls=()=>{Tt().then(o=>{Ke.arr=o.data,Ke.arrs=o.data,ie.value=o.data,ut.value=o.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},Lr=()=>{console.log(),Tt({startTime:f().subtract(3,"days").startOf("day").format("YYYY-MM-DD HH:mm:ss"),endTime:f().format("YYYY-MM-DD HH:mm:ss")}).then(o=>{Ke.arrs=o.data,ie.value=o.data,ut.value=o.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},na=()=>{r.entities&&r.entities.removeAll(),wi().then(o=>{Se.label=o.data,o.data.forEach((u,d)=>{r.entities.add({name:u.dev_code,position:Cesium.Cartesian3.fromDegrees(parseFloat(u.longitude),parseFloat(u.latitude)),billboard:{image:ds,scale:.9,width:35,height:35,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND}})})})},os=()=>{mt().then(o=>{j.value=o.data}),mt({startTime:f(new Date).add("year",0).format("YYYY-MM-DD"),endTime:f().format("YYYY-MM-DD HH:mm:ss")}).then(o=>{Ct.value=j.value.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value),o.data.forEach((u,d)=>{xt.value.push(u.dataTime),ra.value.push(u.soilEc),qa.value.push(Number(u.soilPh)),Ge.value.push(u.soilTemperature1),Ja.value.push(u.soilTemperature1),Xa.value.push(u.soilTemperature2),Za.value.push(u.soilTemperature3),ja.value.push(u.soilTemperature4),Ka.value.push(u.soilTemperature5),Le.value.push(u.soilHumidity1),$a.value.push(u.soilHumidity1),es.value.push(u.soilHumidity2),ts.value.push(u.soilHumidity3),as.value.push(u.soilHumidity4),ss.value.push(u.soilHumidity5)}),fs(),ms(),la()})},zr=()=>{r.entities&&r.entities.removeAll(),Ai().then(o=>{Se.label=o.data,o.data.forEach((u,d)=>{r.entities.add({name:u.dev_code,position:Cesium.Cartesian3.fromDegrees(parseFloat(u.longitude),parseFloat(u.latitude)),billboard:{image:hs,scale:.9,width:35,height:35,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND}})})})},us=()=>{gt({startTime:f().subtract(3,"days").startOf("day").format("YYYY-MM-DD HH:mm:ss"),endTime:f().format("YYYY-MM-DD HH:mm:ss")}).then(o=>{He.value=o.data,Qa.value=o.data,Ve.value=o.data.slice((_.value-1)*D.value,(_.value-1)*D.value+D.value)})},Qr=()=>{r.entities&&r.entities.removeAll(),ki().then(o=>{Se.label=o.data,o.data.forEach((u,d)=>{r.entities.add({name:u.dev_code,position:Cesium.Cartesian3.fromDegrees(parseFloat(u.longitude),parseFloat(u.latitude)),billboard:{image:cs,scale:.9,width:35,height:35,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND}})})})},qr=()=>{ci().then(o=>{x.arr=o.features,x.arr.unshift({bbox:[119.5091,35.5671,120.3285,36.1455],properties:{XZDM:"370211",XZMC:"\u5168\u90E8"}});let u=[...o.features],d=[];u.splice(0,1),u.forEach(A=>{d.push(A.properties.XZMC)}),rs.title=[...Object.values(d)]})},Jr=()=>{hi().then(o=>{x.crr=o.features,rs.title.forEach((u,d)=>{let A=o.features.map(b=>{if(u===b.properties.town)return b.properties});Object.keys(ia).forEach(b=>{const R=A.findIndex(E=>E&&E.crop===b);R>-1?ia[b].push(A[R].Shape_Area):ia[b].push(null)})})})};var ds="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABMCAYAAAB033kxAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAABElSURBVHic7Ztrj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b2OdfDkZUV1ZhDuEpMjp9TzStsTcoSP9S3PI7wHnFU70dXvW9Z+VuCwFlrXXnFwGrk/JK1SSRIDcIa4OyptuvkQoxmuqrCT1qbA7j0idUr7RdJekZRhXWgMyF57QwZUmeuBSkzadZVWvL+p70gSMWpX1QFUVJMObQdV8rVFMEPbv5KRW9fBW8SUWdAFDOsKUCp5plr0RxiegvK5czCyEpc2+QDl5ptbjd88Vs742P4QWET4iLh76hNidvYdInD17W2ptrFcAiH1PZKHtVGnfN9hvqxOjZhlt9QA5aYeiJ7am9pO29derD1fr1HX9xtCtefwqcbgvFdrN/cXQrXH8CWEVb2XXFdgKDF4THsMjwwQGAEK7N6FC8MAJVodwdt+O3JHUV3dNGm5dq+5C3el9rtj3oV7pP/hAKP5WKkDLyM+5uqIh+NMHQYlqY9rDIM3ii5BaXPWG39rbn+u+o/36xPmEAz1JHSkErIfNUDanyZY17Qv3e9/gmGGmscCwD4sPDwkTb4Oa2jMrsupDPqMZjSjGc1oRjOa0YxmNKMZPUz0v54el+boawe6AAAAAElFTkSuQmCC";function fs(){const o=ha(l.value);var u={grid:{top:"15%",left:"17%",right:"7%",bottom:"14%"},legend:{data:["EC\u503C"],inactiveColor:"rgba(92,200,255,0.35)",icon:"roundRect",top:0,right:0,itemWidth:20,itemHeight:7,textStyle:{color:"#FFF"},show:!0},dataZoom:[{type:"slider",show:!1,handleSize:0,startValue:0,endValue:6,height:10,left:"5%",right:"4%",bottom:5,borderColor:"#000",fillerColor:"#269cdb",borderRadius:5,backgroundColor:"#33384b",showDataShadow:!1,showDetail:!1,realtime:!0,filterMode:"filter"},{type:"inside",show:!0,start:1,end:100}],tooltip:{show:!0},xAxis:{data:xt._rawValue,axisLine:{lineStyle:{color:"transparent"}},axisLabel:{show:!0,interval:1,textStyle:{color:"rgba(219, 225, 255, 1)"},formatter:function(d){var A="",b=d.length,R=10,E=Math.ceil(b/R);if(b>R)for(var U=0;UU)for(var z=0;z V)for(var se=0;se -1&&(r.imageryLayers.lowerToBottom(A),r.imageryLayers.raise(A))}function Xr(){_t(["gbznt"],!0),gs("shuzisannong:huangdaoqu_town","tl"),r.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),sa.value=!1}function Zr(){let o=ps.value;ua({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(u=>{u.data.features.forEach((A,b)=>{const R=Cesium.Rectangle.fromDegrees(A.bbox[0],A.bbox[1],A.bbox[2],A.bbox[3]),E=Cesium.Rectangle.center(R);Cesium.Math.toDegrees(E.longitude),Cesium.Math.toDegrees(E.latitude),A.properties.XZDM==="370211011"||A.properties.XZDM;const U=o[A.properties.XZMC];U&&U.map((V,z)=>V.properties)})}).catch(u=>{})}let ps=w({});function jr(){ua({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(o=>{let u=o.data.features,d={};u.forEach(A=>{let b=A.properties.town;d[b]?d[b].push(A):d[b]=[A]}),ps.value=d,Zr()}).catch(o=>{})}function ys(){if(Se.value&&Se.label[0].longitude&&Se.label[0].latitude){const u=Cesium.Cartesian3.fromDegrees(Number(Se.label[0].longitude),Number(Se.label[0].latitude),0);var o=Cesium.SceneTransforms.wgs84ToWindowCoordinates(r.scene,u);if(Cesium.defined(o)){const d=document.getElementById("pop");d.style.top=o.y-10+"px",d.style.left=o.x+10+"px"}}}function vs(){_t(["village_CQL"]),_t(["aaa"]),ns("villageLine"),ns("townLine");const o=document.getElementById("pop");o.style.display="none",r.scene.postRender.removeEventListener(ys),r.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),_t(["gbznt"],!0),sa.value=!1}function Kr(o){const u=document.getElementById("pop");u.style.display="block",u.style.position="absolute",u.style.top=o.y-10+"px",u.style.left=o.x+10+"px",u.style.zIndex=99}return(o,u)=>{const d=ue("el-table-column"),A=ue("image-preview"),b=ue("el-table"),R=ue("el-tooltip"),E=ue("el-button"),U=ue("Close"),V=ue("el-icon"),z=ue("el-date-picker"),se=ue("el-option"),fe=ue("el-select"),be=ue("el-pagination"),ct=ue("el-dialog");return Q(),te("div",Su,[n("div",{ref_key:"cesiumContainer",ref:i,style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,512),n("div",bu,[n("div",Yu,[n("div",{class:"title"},[Cu,n("p",{onClick:Yr},"\u5C55\u793A\u5168\u90E8")]),n("div",xu,[n("div",_u,[Ou,n("p",{onClick:u[0]||(u[0]=m=>{Dr()}),class:me(v(ae)==1||v(ae)==4?"sele_types":"")}," \u667A\u80FD\u5B62\u5B50\u4EEA ",2)]),n("div",Tu,[Eu,n("p",{onClick:u[1]||(u[1]=m=>{Sr()}),class:me(v(ae)==2||v(ae)==4?"sele_types":"")}," \u866B\u60C5\u76D1\u6D4B\u4EEA ",2)]),n("div",Ru,[Iu,n("p",{onClick:u[2]||(u[2]=m=>{br()}),class:me(v(ae)==3||v(ae)==4?"sele_types":"")}," \u571F\u58E4\u5892\u60C5\u3001\u571F\u8D28 ",2)])])]),v(ae)==4||v(ae)==1?(Q(),te("div",Hu,[n("div",{class:"title"},[Pu,n("p",{onClick:Nr},[G(" \u5386\u53F2\u6570\u636E \xA0 "),Fu])]),n("div",Uu,[h(b,{"max-height":"100%",height:"100%",data:v(Ke).arrs,stripe:"",style:{width:"100%"},"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"}},{default:k(()=>[h(d,{prop:"devCode",label:"\u8BBE\u5907\u7F16\u53F7"}),h(d,{prop:"pictureTime",label:"\u76D1\u6D4B\u65F6\u95F4"}),h(d,{prop:"warning",width:"52",label:"\u9884\u8B66\u60C5\u51B5"}),h(d,{prop:"picturePath",label:"\u7167\u7247"},{default:k(m=>[n("div",null,[h(A,{"append-to-body":"",style:{width:"60px",height:"60px"},src:m.row.picturePath,"zoom-rate":1.2,fit:"cover"},{default:k(()=>[Nu]),_:2},1032,["src","zoom-rate"])])]),_:1})]),_:1},8,["data"])])])):we("v-if",!0),v(ae)==2?(Q(),te("div",Wu,[n("div",{class:"title"},[Bu,n("p",{onClick:is},[G(" \u5386\u53F2\u6570\u636E \xA0 "),Vu])]),n("div",Gu,[h(b,{"max-height":"100%",height:"100%",data:v(Qa),stripe:"",style:{width:"100%"},"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"}},{default:k(()=>[h(d,{prop:"devCode",label:"\u8BBE\u5907\u7F16\u53F7"}),h(d,{prop:"pictureTime",label:"\u76D1\u6D4B\u65F6\u95F4"}),h(d,{prop:"warning",label:"\u9884\u8B66\u60C5\u51B5"}),h(d,{prop:"picturePath",label:"\u7167\u7247"},{default:k(m=>[h(A,{style:{width:"60px",height:"60px"},src:m.row.picturePath},{default:k(()=>[Lu]),_:2},1032,["src"])]),_:1})]),_:1},8,["data"])])])):we("v-if",!0),v(ae)==3?(Q(),te("div",zu,[n("div",{class:"title"},[Qu,n("p",{onClick:Wr},[G(" \u5386\u53F2\u6570\u636E \xA0 "),qu])]),n("div",Ju,[h(b,{"max-height":"100%",height:"100%",data:v(j),stripe:"",style:{width:"100%"},"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"}},{default:k(()=>[h(d,{label:"\u76D1\u6D4B\u6570\u503C",type:"expand"},{default:k(m=>[n("div",Xu,[n("p",null,"\u6E7F\u5EA61:"+q(m.row.soilHumidity1),1),n("p",null,"\u6E7F\u5EA62:"+q(m.row.soilHumidity2),1),n("p",null,"\u6E7F\u5EA63:"+q(m.row.soilHumidity3),1),n("p",null,"\u6E7F\u5EA64:"+q(m.row.soilHumidity4),1),n("p",null,"\u6E7F\u5EA65:"+q(m.row.soilHumidity5),1),n("p",null,"\u6E29\u5EA61:"+q(m.row.soilTemperature1),1),n("p",null,"\u6E29\u5EA62:"+q(m.row.soilTemperature2),1),n("p",null,"\u6E29\u5EA63:"+q(m.row.soilTemperature3),1),n("p",null,"\u6E29\u5EA64:"+q(m.row.soilTemperature4),1),n("p",null,"\u6E29\u5EA65:"+q(m.row.soilTemperature5),1),n("p",null,"PH\u503C:"+q(m.row.soilPh),1),n("p",null,"EC\u503C:"+q(m.row.soilEc),1)])]),_:1}),h(d,{prop:"devCode",label:"\u8BBE\u5907\u7F16\u53F7"}),h(d,{prop:"warning",width:"52",label:"\u9884\u8B66\u60C5\u51B5"}),h(d,{prop:"dataTime",label:"\u76D1\u6D4B\u65F6\u95F4"})]),_:1},8,["data"])])])):we("v-if",!0),n("div",{class:"leftFoldDiv",onClick:u[3]||(u[3]=m=>Br())},[h(R,{class:"box-item","show-arrow":!1,disabled:v(Ne),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:k(()=>[v(Ne)?we("v-if",!0):(Q(),te("img",Zu))]),_:1},8,["disabled"]),h(R,{disabled:!v(Ne),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:k(()=>[v(Ne)?(Q(),te("img",ju)):we("v-if",!0)]),_:1},8,["disabled"])])]),ws(n("div",Ku,[n("div",$u,[ed,n("div",{ref_key:"farmlandDiv",ref:l,class:"farmlandDiv"},null,512),n("div",{ref_key:"Phdiv",ref:p,class:"Phdiv"},null,512),n("div",td,[n("p",{class:me(v(Ze)=="1"?"SelectedDiv":""),onClick:u[4]||(u[4]=m=>dt(1))},"0cm",2),n("p",{class:me(v(Ze)=="2"?"SelectedDiv":""),onClick:u[5]||(u[5]=m=>dt(2))},"-10cm",2),n("p",{class:me(v(Ze)=="3"?"SelectedDiv":""),onClick:u[6]||(u[6]=m=>dt(3))},"-20cm",2),n("p",{class:me(v(Ze)=="4"?"SelectedDiv":""),onClick:u[7]||(u[7]=m=>dt(4))},"-30cm",2),n("p",{class:me(v(Ze)=="5"?"SelectedDiv":""),onClick:u[8]||(u[8]=m=>dt(5))},"-40cm",2)]),n("div",{ref_key:"soilDiv",ref:M,class:"soilDiv"},null,512)]),n("div",{class:"rightFoldDiv",onClick:u[9]||(u[9]=m=>Vr())},[h(R,{disabled:!v(We),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:k(()=>[v(We)?(Q(),te("img",ad)):we("v-if",!0)]),_:1},8,["disabled"]),h(R,{disabled:v(We),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:k(()=>[v(We)?we("v-if",!0):(Q(),te("img",sd))]),_:1},8,["disabled"])])],512),[[As,v(lt)]]),ws(n("div",rd,[id,n("div",nd,[n("div",{class:"title"},[ld,n("p",{onClick:is},[G(" \u5386\u53F2\u6570\u636E \xA0 "),od])]),n("div",ud,[h(b,{"max-height":"100%",height:"100%",data:v(He),stripe:"",style:{width:"100%"},"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"}},{default:k(()=>[h(d,{prop:"devCode",label:"\u8BBE\u5907\u7F16\u53F7"}),h(d,{prop:"pictureTime",label:"\u76D1\u6D4B\u65F6\u95F4"}),h(d,{prop:"warning",label:"\u9884\u8B66\u60C5\u51B5"}),h(d,{prop:"picturePath",label:"\u7167\u7247"},{default:k(m=>[h(A,{style:{width:"60px",height:"60px"},src:m.row.picturePath},{default:k(()=>[dd]),_:2},1032,["src"])]),_:1})]),_:1},8,["data"])])]),n("div",{class:"bottonFold",onClick:Gr},[h(R,{disabled:v(Be),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:k(()=>[v(Be)?we("v-if",!0):(Q(),te("img",cd))]),_:1},8,["disabled"]),h(R,{disabled:!v(Be),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:k(()=>[v(Be)?(Q(),te("img",hd)):we("v-if",!0)]),_:1},8,["disabled"])])],512),[[As,v(ot)]]),fd,n("div",md,[n("div",null,q(X.value.name)+"\uFF1A",1),n("div",null,q(X.value.value)+"\u4EA9",1),n("div",{class:"cancel",onClick:vs},"X")]),n("div",gd,[n("div",pd,[n("div",null,[G(" \u8BBE\u5907\uFF1A "),n("p",null,q(v(ze).dev_code),1)]),n("div",null,[G(" \u7ECF\u5EA6\uFF1A "),n("p",null,q(v(ze).longitude),1)]),n("div",null,[G(" \u7EAC\u5EA6\uFF1A "),n("p",null,q(v(ze).latitude),1)]),n("div",null,[G(" \u8BBE\u5907\u72B6\u51B5\uFF1A "),n("p",null,[v(ze).equipment=="\u6B63\u5E38"?(Q(),te("span",yd,q(v(ze).equipment),1)):(Q(),te("span",vd,q(v(ze).equipment),1))])])]),n("div",{class:"cancel",onClick:vs},"X")]),sa.value?(Q(),Ot(E,{key:0,class:"back_button",onClick:u[10]||(u[10]=m=>Xr())},{default:k(()=>[G("\u8FD4\u56DE")]),_:1})):we("v-if",!0),h(ct,{modelValue:t.value,"onUpdate:modelValue":u[15]||(u[15]=m=>t.value=m),"show-close":!1},{header:k(({close:m,titleId:ht,titleClass:ft})=>[n("div",wd,[n("h4",{id:ht,class:me(ft)},"\u5386\u53F2\u6570\u636E\u67E5\u8BE2",10,Ad),n("div",kd,[h(E,{type:"primary",onClick:Or},{default:k(()=>[Md]),_:1}),h(E,{type:"primary",onClick:u[11]||(u[11]=lc=>Rr())},{default:k(()=>[Dd]),_:1}),h(E,{type:"primary",onClick:Pr},{default:k(()=>[Sd]),_:1}),G(" \u2003 "),h(V,{style:{cursor:"pointer"},onClick:m},{default:k(()=>[h(U)]),_:2},1032,["onClick"])])])]),default:k(()=>[n("div",bd,[n("div",Yd,[n("div",Cd,[G(" \u5F00\u59CB\u65F6\u95F4\uFF1A "),h(z,{modelValue:W.value,"onUpdate:modelValue":u[12]||(u[12]=m=>W.value=m),type:"datetime",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),G(" \u2003 "),n("div",xd,[G(" \u7ED3\u675F\u65F6\u95F4\uFF1A "),h(z,{modelValue:B.value,"onUpdate:modelValue":u[13]||(u[13]=m=>B.value=m),type:"datetime",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])])]),n("div",_d,[h(fe,{"popper-class":"select_city",modelValue:Z.value,"onUpdate:modelValue":u[14]||(u[14]=m=>Z.value=m),class:"m-2",placeholder:"\u8BF7\u9009\u62E9"},{default:k(()=>[(Q(!0),te(da,null,ca(je.value,m=>(Q(),Ot(se,{"popper-class":"device_item",key:m.value,label:m.label,value:m.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),n("div",Od,[h(b,{"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},data:v(ut),stripe:"",style:{width:"100%"}},{default:k(()=>[h(d,{prop:"id",label:"\u7F16\u53F7"}),h(d,{prop:"devCode",label:"\u8BBE\u5907\u53F7"}),h(d,{prop:"pictureTime",label:"\u76D1\u6D4B\u65F6\u95F4"}),h(d,{prop:"warning",label:"\u9884\u8B66\u60C5\u51B5"}),h(d,{prop:"picturePath",label:"\u7167\u7247"},{default:k(m=>[h(A,{style:{width:"60px",height:"60px"},src:m.row.picturePath},{default:k(()=>[Td]),_:2},1032,["src"])]),_:1})]),_:1},8,["data"]),n("div",Ed,[h(be,{background:"",layout:"prev, pager, next","current-page":v(_),"page-size":v(D),onCurrentChange:Cr,total:v(Ke).arr.length},null,8,["current-page","page-size","total"])])])]),_:1},8,["modelValue"]),h(ct,{modelValue:a.value,"onUpdate:modelValue":u[19]||(u[19]=m=>a.value=m),"show-close":!1},{header:k(({close:m,titleId:ht,titleClass:ft})=>[n("div",Rd,[n("h4",{id:ht,class:me(ft)},"\u5386\u53F2\u6570\u636E\u67E5\u8BE2",10,Id),n("div",Hd,[h(E,{type:"primary",onClick:Tr},{default:k(()=>[Pd]),_:1}),h(E,{type:"primary",onClick:Ir},{default:k(()=>[Fd]),_:1}),h(E,{onClick:Fr,type:"primary"},{default:k(()=>[Ud]),_:1}),G(" \u2003 "),h(V,{style:{cursor:"pointer"},onClick:m},{default:k(()=>[h(U)]),_:2},1032,["onClick"])])])]),default:k(()=>[n("div",Nd,[n("div",Wd,[n("div",Bd,[G(" \u5F00\u59CB\u65F6\u95F4\uFF1A "),h(z,{modelValue:W.value,"onUpdate:modelValue":u[16]||(u[16]=m=>W.value=m),type:"datetime",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),G(" \u2003 "),n("div",Vd,[G(" \u7ED3\u675F\u65F6\u95F4\uFF1A "),h(z,{modelValue:B.value,"onUpdate:modelValue":u[17]||(u[17]=m=>B.value=m),type:"datetime",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])])]),n("div",Gd,[h(fe,{"popper-class":"select_city",modelValue:Z.value,"onUpdate:modelValue":u[18]||(u[18]=m=>Z.value=m),class:"m-2",placeholder:"\u8BF7\u9009\u62E9"},{default:k(()=>[(Q(!0),te(da,null,ca(je.value,m=>(Q(),Ot(se,{"popper-class":"device_item",key:m.value,label:m.label,value:m.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),n("div",Ld,[h(b,{"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},data:v(Ve),stripe:"",style:{width:"100%"}},{default:k(()=>[h(d,{prop:"id",label:"\u7F16\u53F7"}),h(d,{prop:"devCode",label:"\u8BBE\u5907\u53F7"}),h(d,{prop:"pictureTime",label:"\u76D1\u6D4B\u65F6\u95F4"}),h(d,{prop:"warning",label:"\u9884\u8B66\u60C5\u51B5"}),h(d,{prop:"picturePath",label:"\u7167\u7247"},{default:k(m=>[h(A,{style:{width:"60px",height:"60px"},src:m.row.picturePath},{default:k(()=>[zd]),_:2},1032,["src"])]),_:1})]),_:1},8,["data"]),n("div",Qd,[h(be,{background:"",layout:"prev, pager, next","current-page":v(_),"page-size":v(D),onCurrentChange:xr,total:v(He).length},null,8,["current-page","page-size","total"])])])]),_:1},8,["modelValue"]),h(ct,{modelValue:s.value,"onUpdate:modelValue":u[23]||(u[23]=m=>s.value=m),"show-close":!1},{header:k(({close:m,titleId:ht,titleClass:ft})=>[n("div",qd,[n("h4",{id:ht,class:me(ft)},"\u571F\u58E4\u5386\u53F2\u6570\u636E\u67E5\u8BE2",10,Jd),n("div",Xd,[h(E,{type:"primary",onClick:Er},{default:k(()=>[Zd]),_:1}),h(E,{type:"primary",onClick:Hr},{default:k(()=>[jd]),_:1}),h(E,{onClick:Ur,type:"primary"},{default:k(()=>[Kd]),_:1}),G(" \u2003 "),h(V,{style:{cursor:"pointer"},onClick:m},{default:k(()=>[h(U)]),_:2},1032,["onClick"])])])]),default:k(()=>[n("div",$d,[n("div",ec,[n("div",tc,[G(" \u5F00\u59CB\u65F6\u95F4\uFF1A "),h(z,{modelValue:W.value,"onUpdate:modelValue":u[20]||(u[20]=m=>W.value=m),type:"datetime",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),G(" \u2003 "),n("div",ac,[G(" \u7ED3\u675F\u65F6\u95F4\uFF1A "),h(z,{modelValue:B.value,"onUpdate:modelValue":u[21]||(u[21]=m=>B.value=m),type:"datetime",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])])]),n("div",sc,[h(fe,{"popper-class":"select_city",modelValue:Z.value,"onUpdate:modelValue":u[22]||(u[22]=m=>Z.value=m),class:"m-2",placeholder:"\u8BF7\u9009\u62E9"},{default:k(()=>[(Q(!0),te(da,null,ca(je.value,m=>(Q(),Ot(se,{"popper-class":"device_item",key:m.value,label:m.label,value:m.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),n("div",rc,[h(b,{"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},data:v(Ct),stripe:"",style:{width:"100%"}},{default:k(()=>[h(d,{prop:"dataTime",label:"\u65E5\u671F"}),h(d,{prop:"soilTemperature1",label:"\u6E29\u5EA61\uFF08\u2103\uFF09"}),h(d,{prop:"soilTemperature2",label:"\u6E29\u5EA62"}),h(d,{prop:"soilTemperature3",label:"\u6E29\u5EA63"}),h(d,{prop:"soilTemperature4",label:"\u6E29\u5EA64"}),h(d,{prop:"soilTemperature5",label:"\u6E29\u5EA65"}),h(d,{prop:"soilHumidity1",label:"\u6E7F\u5EA61\uFF08%rh\uFF09"}),h(d,{prop:"soilHumidity2",label:"\u6E7F\u5EA62\uFF08%rh\uFF09"}),h(d,{prop:"soilHumidity3",label:"\u6E7F\u5EA63\uFF08%rh\uFF09"}),h(d,{prop:"soilHumidity4",label:"\u6E7F\u5EA64\uFF08%rh\uFF09"}),h(d,{prop:"soilHumidity5",label:"\u6E7F\u5EA65\uFF08%rh\uFF09"}),h(d,{prop:"soilPh",label:"PH\u503C\uFF08ph\uFF09"}),h(d,{prop:"soilEc",label:"EC\u503C\uFF08 S/cm\uFF09"}),h(d,{prop:"warning",label:"\u9884\u8B66\u60C5\u51B5"})]),_:1},8,["data"]),n("div",ic,[h(be,{background:"",layout:"prev, pager, next","current-page":v(_),"page-size":v(D),onCurrentChange:_r,total:v(j).length},null,8,["current-page","page-size","total"])])])]),_:1},8,["modelValue"])])}}},pc=$r(nc,[["__scopeId","data-v-b301384e"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/index.vue"]]);export{pc as default}; diff --git a/dist/assets/index.53450fb2.js.gz b/dist/assets/index.53450fb2.js.gz new file mode 100644 index 0000000..d82c63a Binary files /dev/null and b/dist/assets/index.53450fb2.js.gz differ diff --git a/dist/assets/index.88b72161.js b/dist/assets/index.54142cc1.js similarity index 79% rename from dist/assets/index.88b72161.js rename to dist/assets/index.54142cc1.js index f2e6fbb..19c55e6 100644 --- a/dist/assets/index.88b72161.js +++ b/dist/assets/index.54142cc1.js @@ -1 +1 @@ -import{_ as e,o,c as r}from"./index.5f349928.js";const t={};function c(n,s,i,a,l,_){return o(),r("div",null,"\u51B7\u51BB\u9884\u8B66")}const p=e(t,[["render",c],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/monitor/freeze/index.vue"]]);export{p as default}; +import{_ as e,o,c as r}from"./index.b3a66a9e.js";const t={};function c(n,s,i,a,l,_){return o(),r("div",null,"\u51B7\u51BB\u9884\u8B66")}const p=e(t,[["render",c],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/monitor/freeze/index.vue"]]);export{p as default}; diff --git a/dist/assets/index.54313f41.js b/dist/assets/index.54313f41.js deleted file mode 100644 index 1301a54..0000000 --- a/dist/assets/index.54313f41.js +++ /dev/null @@ -1,12 +0,0 @@ -import{_ as ze,r as d,B as Z,D as Me,C as Ie,F as Ee,d as _,o as p,c as w,l as i,m as O,g as T,e as x,w as C,J as re,K as ne,f as E,k as le,x as P,y as Pe,p as Ne,q as We}from"./index.5f349928.js";import ue from"./downloads.e955445d.js";import{_ as de}from"./close1.45635d81.js";import{h as Ae,g as Be,i as Fe,a as Xe,_ as Ze,b as Oe,c as Re,d as qe,e as je,f as Je}from"./linesGL.badda9a7.js";import{i as ie,L as se}from"./index.c9f5bd8b.js";import{T as Qe}from"./TimeLine.ca858622.js";import{u as ce}from"./useEcharts.f096c4b4.js";const f=N=>(Ne("data-v-8f171897"),N=N(),We(),N),Ve={class:"center"},Ge=f(()=>i("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Ue={class:"rightWra"},$e={class:"rightTop"},Ye={class:"title"},He=f(()=>i("span",null,"\u975E\u7CAE\u5316\u8015\u5730\u7C7B\u578B\u7EDF\u8BA1",-1)),Ke=f(()=>i("img",{src:ue,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),et={class:"rightbottom"},tt={class:"title"},at=f(()=>i("span",null,"\u975E\u7CAE\u5316\u9762\u79EF\u7EDF\u8BA1",-1)),ot=f(()=>i("img",{src:ue,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),rt={key:0,src:de,alt:""},nt={key:0,class:"imgrotate",src:de,alt:""},lt={class:"mt-4"},it={class:"bottom_center"},st=Pe(' ',1),ct={id:"popup1"},ut={class:"rowWra"},dt=f(()=>i("span",null,"\u4F5C\u7269\uFF1A",-1)),pt={class:"rowWra"},ft=f(()=>i("span",null,"\u9762\u79EF\uFF1A",-1)),mt={class:"rowWra"},gt=f(()=>i("span",null,"\u9547\u540D\uFF1A",-1)),yt={key:0,class:"rowWra"},vt=f(()=>i("span",null,"\u6751\u540D\uFF1A",-1)),ht={key:1,class:"rowWra"},bt=f(()=>i("span",null,"\u571F\u5730\u6240\u6709\u4EBA\uFF1A",-1)),_t={__name:"index",setup(N){let s=d(null);const V=d(null);d(null);const G=d(null);let S=Z({arr:[],brr:[],crr:[]});const h=d("370211"),k=d({info:[]}),R=d(!1);d(!0);let L=d(!0);const U=e=>{pe(e)},pe=e=>{let t=document.createElement("a");t.style.display="none",t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)};let q={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},fe={\u5C0F\u9EA6:{color:"rgba(255, 141, 26, 1)",disabled:!1},\u7389\u7C73:{color:"rgba(255, 255, 26, 1)",disabled:!0},\u5927\u8C46:{color:"rgba(255, 201, 148, 1)",disabled:!1},\u5730\u74DC:{color:"rgba(255, 84, 84, 1)",disabled:!1},\u82B1\u751F:{color:"rgba(255, 140, 255, 1)",disabled:!1},\u84DD\u8393:{color:"rgba(26, 255, 255, 1)",disabled:!1},\u8336\u53F6:{color:"rgba(26, 255, 140, 1)",disabled:!1},\u9A6C\u94C3\u85AF:{color:"rgba(255, 171, 87, 1)",disabled:!0},\u767D\u83DC\u548C\u841D\u535C:{color:"rgba(140, 255, 26, 1)",disabled:!0},\u5176\u4ED6:{color:"rgba(140, 26, 255, 1)",disabled:!1}},W={\u5C0F\u9EA6:"shuzisannong:xiaomai",\u5927\u8C46:"shuzisannong:dadou",\u5730\u74DC:"shuzisannong:digua",\u82B1\u751F:"shuzisannong:huasheng",\u84DD\u8393:"shuzisannong:lanmei",\u8336\u53F6:"shuzisannong:chaye",\u5176\u4ED6:"shuzisannong:other"};Z({arr:[{name:"\u5C0F\u9EA6",value:101,itemStyle:{opacity:.8,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:156,itemStyle:{opacity:.8,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:156,itemStyle:{opacity:.8,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:156,itemStyle:{opacity:.8,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u84DD\u8393",value:56,itemStyle:{opacity:.8,color:"rgba(72, 102, 211, 0.9)"},label:{show:!0}}]});var j={title:["\u533A\u57DF\u4E00","\u533A\u57DF\u4E8C","\u533A\u57DF\u4E09","\u533A\u57DF\u56DB","\u533A\u57DF\u4E94","\u533A\u57DF\u516D","\u533A\u57DF\u4E03","\u533A\u57DF\u516B"],corn:[333.3,null,500,500,333.3,null,333.3,500],soybean:[333.3,null,null,null,333.3,null,333.3,null],peanut:[333.3,500,500,null,333.3,500,333.3,null],wheat:[null,500,null,500,null,500,null,null],Blueberries:[null,null,null,null,null,null,null,500]};Me(()=>{me()});function me(){ke(),ae(),Se(),ye(),Le(),X(),te(),we(),A.value=Object.keys(fe)}const ge={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 ye(){s=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({...ge})}),s.cesiumWidget.creditContainer.style.display="none",s.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),be(),B("shuzisannong:huangdaoqu_town","shuzisannong:huangdaoqu_town")}const A=d([]);function ve(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 he(e,t){}Ie(()=>A.value,(e,t)=>{e.length>t.length?e.filter(a=>{if(t.findIndex(n=>n===a)<0)return a}).forEach(a=>{W[a]&&B(W[a],a+"zuowu")}):e.length{if(e.findIndex(n=>n===a)<0)return a}).forEach(a=>{W[a]&&m([a+"zuowu"])})});function B(e,t,o){let a=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:e,parameters:{service:"WMS",format:"image/png",transparent:!0}});a.customName=t;let r=s.imageryLayers.addImageryProvider(a);o&&(s.imageryLayers.lowerToBottom(r),s.imageryLayers.raise(r))}let J="";function be(){var e=new Cesium.ScreenSpaceEventHandler(s.canvas);e.setInputAction(async function(t){var o=s.camera.getPickRay(t.position),a=s.scene.globe.pick(o,s.scene);if(a){let r=Cesium.Cartographic.fromCartesian(a);if(r){let n=new Cesium.Cartesian2,b=s.camera.positionCartographic.height,g=ve(b);const y=s.imageryLayers._layers,u=y.findIndex(l=>l._imageryProvider._layers&&l._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(u>-1){const l=y[u];let c=l._imageryProvider;if(c&&c.ready&&c._layers&&l.show===!0){n=c.tilingScheme.positionToTileXY(r,g,n);let D=c.pickFeatures(n.x,n.y,g,r.longitude,r.latitude);D&&D.then(async z=>{if(z.length>0){let v=z[0];if(v.properties&&v.properties.XZDM)if(J!==v.properties.XZDM){J=v.properties.XZDM,h.value=J,F();let M=v.data;s.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(M.bbox[0],M.bbox[1],M.bbox[2],M.bbox[3]),duration:2}),I("townLine"),Y(M.geometry.coordinates,"townLine","red"),m(["village_CQL"]),H(`XZDM=${v.properties.XZDM}`,"village_CQL"),Q()}else $(y,r,g,n,t);else m(["village_CQL"])}})}}else $(y,r,g,n,t)}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}async function $(e,t,o,a,r){let n=[],b=e.map(async u=>{if(u._imageryProvider._layers&&Object.values(W).findIndex(l=>l===u._imageryProvider._layers)>-1){const l=u;let c=l._imageryProvider;if(c&&c.ready&&c._layers&&l.show===!0){a=c.tilingScheme.positionToTileXY(t,o,a);let D=c.pickFeatures(a.x,a.y,o,t.longitude,t.latitude);D&&await D.then(z=>{if(z.length>0){I("landtype"),Y(z[0].data.geometry.coordinates,"landtype","red");let v=z[0].properties;n.findIndex(oe=>oe&&oe.crop===v.crop)<0&&n.push(v)}})}}});if(await Promise.all(b),n.length>0){const u=r.position;var g=s.scene.globe.ellipsoid,y=s.camera.pickEllipsoid(u,g);if(y){let l=g.cartesianToCartographic(y),c=Cesium.Math.toDegrees(l.longitude).toFixed(6),D=Cesium.Math.toDegrees(l.latitude).toFixed(6);k.value={info:n,lon:c,lat:D}}_e(u),s.scene.postRender.addEventListener(K)}else Q()}function Y(e,t,o){e.forEach(a=>{let r=[];a[0].forEach(n=>{r.push(n[0]),r.push(n[1])}),s.entities.add({name:t,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(r),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:o?Cesium.Color.fromCssColorString(o):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function H(e,t){let o=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:e}});o.customName=t,s.imageryLayers.addImageryProvider(o)}function m(e,t){if(s){const o=s.imageryLayers._layers;for(let a=o.length-1;a>=0;a--)e.forEach(r=>{o[a]&&o[a]._imageryProvider&&o[a]._imageryProvider.customName&&(t?o[a]._imageryProvider.customName.indexOf(r)>-1&&s.imageryLayers.remove(o[a]):o[a]._imageryProvider.customName===r&&s.imageryLayers.remove(o[a]))})}}function I(e){if(s){let o=s.entities._entities._array;for(var t=o.length-1;t>=0;t--)o[t]._name&&o[t]._name===e&&s.entities.remove(o[t])}}function K(){if(k.value&&k.value.lon&&k.value.lat){const t=Cesium.Cartesian3.fromDegrees(Number(k.value.lon),Number(k.value.lat),0);var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(s.scene,t);if(Cesium.defined(e)){const o=document.getElementById("popup1");o.style.top=e.y-10+"px",o.style.left=e.x+10+"px"}}}function Q(){const e=document.getElementById("popup1");e.style.display="none",s.scene.postRender.removeEventListener(K),I("landtype")}function _e(e){const t=document.getElementById("popup1");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}const ee=d([]);function we(){Ee({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),ee.value=e.data.features}).catch(e=>{})}function xe(){m(["huangdaoqu_town"],!0),m(["shuzisannong:farmlandgbzn"],!0),B("shuzisannong:huangdaoqu_town","shuzisannong:huangdaoqu_town"),s.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),R.value=!1}function Ce(){if(L.value=!L.value,L.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 te=(e,t)=>Ae({time:"2023-04-19",subregion:t,parent:e}).then(o=>o.data),ae=()=>{Be().then(e=>{S.arr=e.features,S.arr.unshift({bbox:[119.5091,35.5671,120.3285,36.1455],properties:{XZDM:"370211",XZMC:"\u5168\u90E8"}});let t=[...e.features],o=[];t.splice(0,1),t.forEach(a=>{o.push(a.properties.XZMC)}),j.title=[...Object.values(o)],X()})},Se=()=>{Fe().then(e=>{S.brr=e.features})},ke=()=>{Xe().then(e=>{console.log("res:",e),S.crr=e.features,j.title.forEach((t,o)=>{let a=e.features.map(r=>{if(t===r.properties.town)return r.properties});Object.keys(q).forEach(r=>{a.findIndex(b=>b&&b.crop===r)>-1?q[r].push(1):q[r].push(null)})}),X(),F()})},F=()=>{h.value=="370211"?(ae(),I("townLine"),m(["village_CQL"]),Z({arr:[{name:"\u5C0F\u9EA6",value:101,itemStyle:{opacity:.8,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:156,itemStyle:{opacity:.8,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:156,itemStyle:{opacity:.8,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:156,itemStyle:{opacity:.8,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u84DD\u8393",value:56,itemStyle:{opacity:.8,color:"rgba(72, 102, 211, 0.9)"},label:{show:!0}}]})):h.value&&Z({arr:[{name:"\u5C0F\u9EA6",value:101,itemStyle:{opacity:.8,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:156,itemStyle:{opacity:.8,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:156,itemStyle:{opacity:.8,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:0,itemStyle:{opacity:.8,color:"rgba(27, 85, 222, 1)"},label:{show:!1}},{name:"\u84DD\u8393",value:156,itemStyle:{opacity:.8,color:"rgba(72, 102, 211, 0.9)"},label:{show:!1}}]}),[...S.arr].forEach(t=>{t.properties.XZDM==h.value&&(te(t.properties.XZMC,"2"),s.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(t.bbox[0],t.bbox[1],t.bbox[2],t.bbox[3]),duration:2}));let o=[...S.brr],a=[];o.forEach(r=>{r.properties.XZDM==h.value&&a.push(r.properties.XZQMC)}),j.title=[...Object.values(a)],X()}),m(["village_CQL"]),I("townLine"),H(`XZDM=${h.value}`,"village_CQL")};function Le(){const e=ie(V.value);let t={color:["#1C86F1"],legend:{show:!0,top:"10",left:"center",textStyle:{color:"rgba(255,255,255,.9)"},itemWidth:20,itemHeight:12.5,icon:"rect",backgroundColor:"transparent",x:"right"},tooltip:{},grid:{left:"5%",right:"5%",bottom:"9%",top:"15%",containLabel:!0},xAxis:{type:"category",data:["\u6C34\u7530","\u65F1\u5730","\u6C34\u6D47\u5730","\u5176\u4ED6","\u5176\u4ED6"],axisLine:{lineStyle:{color:"#657CA8"}},axisTick:{show:!1},axisLabel:{color:"#eeeeee",rotate:0}},yAxis:{nameTextStyle:{color:"#c0c3cd",padding:[0,0,0,0],fontSize:14},axisLabel:{color:"#c0c3cd",fontSize:14},axisTick:{lineStyle:{color:"#668092",width:1},show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.7)",type:"solid"}},axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.7)",width:1},show:!1},name:"\u9762\u79EF(\u4EA9)"},series:[{type:"bar",barWidth:20,data:[100,78,56,124,67],label:{show:!0,position:"top",textStyle:{color:"#ffffff"}},itemStyle:{normal:{color:function(o){var a=[["rgba(12, 141, 211, 1)","transparent"],["rgba(67, 189, 178, 1)","transparent"],["rgba(254, 201, 107, 1)","transparent"],["rgba(255, 107, 107, 1)","transparent"],["rgba(107, 107, 255, 1)","transparent"]],r=o.dataIndex;return o.dataIndex>=a.length&&(r=o.dataIndex-a.length),new se(0,0,0,1,[{offset:0,color:a[r][0]},{offset:.5,color:a[r][0]},{offset:1,color:a[r][1]}])}}}}]};e.on("click",o=>De(o)),ce(e,t)}function De(e){console.log("item:",e),m(["huangdaoqu_town"],!0),m(["shuzisannong:huangdaoqu_town"]),F();let t="shuzisannong:farmland",o=!1;const a=s.imageryLayers._layers;for(let n=a.length-1;n>=0;n--)a[n]&&a[n]._imageryProvider.customName&&a[n]._imageryProvider.customName===t+"gbznt"&&(o=!0);o||B(t,t+"gbznt",!0),ee.value.forEach(n=>{console.log("it.properties.name:",n.properties.name),console.log("item.name:",e.name),n.properties.name===e.name&&(console.log("dingwei"),s.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(n.bbox[0],n.bbox[1],n.bbox[2],n.bbox[3]),duration:2}))}),R.value=!0}function X(){const e=ie(G.value);var t=[{areaName:"\u533A\u57DF\u4E00",rate:"3598"},{areaName:"\u533A\u57DF\u4E8C",rate:"1235"},{areaName:"\u533A\u57DF\u4E09",rate:"2354"},{areaName:"\u533A\u57DF\u56DB",rate:"3251"},{areaName:"\u533A\u57DF\u4E94",rate:"1652"}],o=[],a=[];t.forEach(n=>{o.push(n.areaName),a.push(parseInt(n.rate).toFixed(0))});var r={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!0,top:"10",right:"5%",textStyle:{color:"rgba(255,255,255,.9)"},itemWidth:20,itemHeight:12.5,icon:"rect",backgroundColor:"transparent"},grid:{left:"5%",right:"5%",bottom:"9%",top:"10%",containLabel:!0},xAxis:{data:o,triggerEvent:!0,axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:"#70F5FE"}},axisLabel:{show:!0,rotate:0,interval:0,textStyle:{padding:[8,0,0,0],fontSize:14,color:"rgba(21, 222, 255, 0.8)"}}},yAxis:{name:"",triggerEvent:!0,nameTextStyle:{color:"rgba(255,255,255,1)",fontSize:16,padding:[0,0,10,-20]},splitLine:{show:!0,lineStyle:{color:"#A6D9F6",type:"dashed"}},axisTick:{show:!1},axisLine:{show:!1},axisLabel:{show:!0,textStyle:{color:"rgba(24, 255, 255, 0.8)",fontSize:14}}},series:[{name:"\u9762\u79EF",barMinHeight:10,type:"pictorialBar",barCategoryGap:"60%",symbolOffset:[1,-5],symbol:"path://M0,10 L10,10 C5.5,10 5.5,5 5,0 C4.5,5 4.5,10 0,10 z",itemStyle:{normal:{color:new se(0,0,0,1,[{offset:0,color:"rgba(161, 222, 147, 1)"},{offset:1,color:"rgba(161, 222, 147, 0.08)"}])}},label:{show:!0,position:"top",textStyle:{color:"#ffffff"}},data:a,z:0}]};e.on("click",n=>Te(n)),ce(e,r)}function Te(e){console.log("\u53F3\u4E0B\u70B9\u51FB",e)}return(e,t)=>{const o=_("el-option"),a=_("el-select"),r=_("el-tooltip"),n=_("el-checkbox"),b=_("el-checkbox-group"),g=_("el-collapse-item"),y=_("el-collapse"),u=_("el-button");return p(),w("div",Ve,[Ge,i("div",Ue,[i("div",$e,[i("div",Ye,[He,i("p",{onClick:t[0]||(t[0]=l=>U("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[O(" \u4E0B\u8F7D \xA0 "),Ke])]),i("div",{ref_key:"farmlandDiv",ref:V,class:"farmlandDiv"},null,512),T(' ')]),i("div",et,[i("div",tt,[at,i("p",{onClick:t[1]||(t[1]=l=>U("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[O(" \u4E0B\u8F7D \xA0 "),ot])]),x(a,{"popper-class":"select_city",onChange:t[2]||(t[2]=l=>F(e.item)),modelValue:h.value,"onUpdate:modelValue":t[3]||(t[3]=l=>h.value=l),clearable:"",placeholder:"\u5168\u90E8"},{default:C(()=>[(p(!0),w(re,null,ne(E(S).arr,l=>(p(),le(o,{key:l.properties.XZDM,label:l.properties.XZMC,value:l.properties.XZDM},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i("div",{ref_key:"ASdivisionDiv",ref:G,class:"ASdivision"},null,512)]),i("div",{class:"rightFoldDiv",onClick:t[4]||(t[4]=l=>Ce())},[x(r,{disabled:!E(L),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:C(()=>[E(L)?(p(),w("img",rt)):T("v-if",!0)]),_:1},8,["disabled"]),x(r,{disabled:E(L),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:C(()=>[E(L)?T("v-if",!0):(p(),w("img",nt))]),_:1},8,["disabled"])])]),x(y,{class:"legend",accordion:""},{default:C(()=>[x(g,{name:"1"},{title:C(()=>[O("\u56FE\u4F8B")]),default:C(()=>[i("div",lt,[x(b,{modelValue:A.value,"onUpdate:modelValue":t[6]||(t[6]=l=>A.value=l),onChange:he},{default:C(()=>[T(` `),x(n,{style:{background:"rgba(175, 110, 250, 0.8)",border:"1px solid rgba(187, 164, 245, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":t[5]||(t[5]=l=>e.checked3=l),label:"\u975E\u7CAE\u5316"},null,8,["modelValue"])]),_:1},8,["modelValue"])])]),_:1})]),_:1}),i("div",it,[x(Qe)]),st,i("div",ct,[(p(!0),w(re,null,ne(k.value.info,(l,c)=>(p(),w("div",{key:c},[i("div",ut,[dt,i("span",null,P(l.crop),1)]),i("div",pt,[ft,i("span",null,P((l.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]),i("div",mt,[gt,i("span",null,P(l.town),1)]),l.village?(p(),w("div",yt,[vt,i("span",null,P(l.village),1)])):T("v-if",!0),l.people?(p(),w("div",ht,[bt,i("span",null,P(l.people),1)])):T("v-if",!0)]))),128)),i("div",{class:"cancel",onClick:Q},"X")]),R.value?(p(),le(u,{key:0,class:"back_button",onClick:t[7]||(t[7]=l=>xe())},{default:C(()=>[O("\u8FD4\u56DE")]),_:1})):T("v-if",!0)])}}},Tt=ze(_t,[["__scopeId","data-v-8f171897"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/plough/Degrain/index.vue"]]);export{Tt as default}; diff --git a/dist/assets/index.54313f41.js.gz b/dist/assets/index.54313f41.js.gz deleted file mode 100644 index 8f18d7e..0000000 Binary files a/dist/assets/index.54313f41.js.gz and /dev/null differ diff --git a/dist/assets/index.561b7889.css b/dist/assets/index.561b7889.css new file mode 100644 index 0000000..7079169 --- /dev/null +++ b/dist/assets/index.561b7889.css @@ -0,0 +1 @@ +.center[data-v-6a6af1d2]{width:100%;height:100%}.center .title[data-v-6a6af1d2]{width:100%;height:45px;background:url(/assets/title.d59867f0.png);background-repeat:no-repeat;background-size:110% 100%;color:#fff;font-size:18px;font-weight:700;line-height:45px;padding-left:46px;display:flex;cursor:pointer;align-items:center;justify-content:space-between}.center .title span[data-v-6a6af1d2]{width:80%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;background:linear-gradient(180deg,rgb(255,255,255) 33.33%,rgb(41,255,219) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.center .title p[data-v-6a6af1d2]{width:79px;height:25px;border-radius:20px;font-size:14px;background:linear-gradient(180deg,rgb(16,111,111) 0%,rgb(47,214,214) 100%);border:1.5px solid rgb(23,194,180);display:flex;justify-content:center;align-items:center}.leftWra[data-v-6a6af1d2]{position:absolute;top:10px;left:20px;height:calc(100vh - 100px);width:23%;background:rgba(2,31,26,.85);box-shadow:inset 0 0 15px 6px #29ffff80;transition:transform 1s}.leftWra .leftFoldDiv[data-v-6a6af1d2]{width:30px;height:30px;position:absolute;right:-12%;top:50%;transform:translate(-50%,-50%);font-size:30px;color:#ccc}.leftWra .leftTop[data-v-6a6af1d2]{width:100%;display:flex;flex-direction:column}.leftWra .leftTop .areaDiv[data-v-6a6af1d2]{width:100%;height:327px;opacity:1;display:flex;padding:1px;justify-content:center}.leftWra .leftTop .ProgressBar[data-v-6a6af1d2]{width:100%;height:9px;opacity:1}.leftWra .leftbottom[data-v-6a6af1d2]{width:100%;height:64%;opacity:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding-top:13px}.leftWra .leftbottom .typesofDiv[data-v-6a6af1d2]{width:100%;height:200px;opacity:1;display:flex;padding:1px;justify-content:center}.leftWra .leftbottom .tableDiv[data-v-6a6af1d2]{display:flex;justify-content:center;width:85%;flex-direction:column;padding:5px 10px;color:#fff;height:40%}.leftWra .leftbottom .tableDiv[data-v-6a6af1d2] .el-table tr{background-color:transparent}.leftWra .leftbottom .tableDiv[data-v-6a6af1d2] .el-table{--el-table-border-color: none;color:#fff}.leftWra .leftbottom .tableDiv[data-v-6a6af1d2] .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:revert}.leftWra .leftbottom .tableDiv .Crops[data-v-6a6af1d2]{display:flex;width:100%;margin-bottom:10px;font-size:14px;font-weight:400;height:31px;flex-direction:row;align-items:center;justify-content:space-around;opacity:1;background:linear-gradient(90deg,rgba(21,173,148,.1) 0%,rgba(21,173,148,0) 100%)}.leftWra .leftbottom .tableDiv .Crops div[data-v-6a6af1d2]{display:flex;align-items:center}.leftWra .leftbottom .tableDiv .el-checkbox-group[data-v-6a6af1d2]{display:flex;flex-direction:column}.leftWra .leftbottom .tableDiv[data-v-6a6af1d2] .ones{width:100%;height:171;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;--el-table-tr-bg-color: null;--el-table-border-color: null;font-size:14px;font-weight:400;letter-spacing:0px;line-height:0px;color:#fff}.rightWra[data-v-6a6af1d2]{position:absolute;top:10px;right:20px;width:23%;height:calc(100vh - 100px);opacity:1;display:flex;flex-direction:column;align-items:center;background:rgba(2,31,26,.85);box-shadow:inset 0 0 15px 6px #29ffff80;transition:transform 1s}.rightWra .rightFoldDiv[data-v-6a6af1d2]{width:30px;height:30px;position:absolute;left:-8%;top:50%;transform:translateY(-50%);font-size:30px;color:#ccc}.rightWra .rightTop[data-v-6a6af1d2]{width:100%;height:40%;opacity:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.rightWra .rightTop .farmlandDiv[data-v-6a6af1d2]{width:100%;height:340px;opacity:1;display:flex;justify-content:center}.rightWra .rightTop .ProgressBar[data-v-6a6af1d2]{width:100%;height:9px;opacity:1}.rightWra .rightbottom[data-v-6a6af1d2]{width:100%;height:490px;opacity:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.rightWra .rightbottom .el-select[data-v-6a6af1d2]{width:80%;font-size:14px;color:#333;background:rgb(22,94,102);border:1px solid rgb(4,153,153)!important;margin-top:20px}.rightWra .rightbottom .el-select[data-v-6a6af1d2] .el-input__wrapper{background-color:transparent}.rightWra .rightbottom .el-select[data-v-6a6af1d2] .el-input__inner{color:#ffffffb3}.rightWra .rightbottom .ASdivision[data-v-6a6af1d2]{width:100%;height:368px;opacity:1;display:flex;justify-content:center}.legend[data-v-6a6af1d2]{position:absolute;right:25%;bottom:7%;width:129px;border:1px solid rgb(4,153,153);--el-collapse-border-color: none;--el-collapse-content-bg-color: none}.legend[data-v-6a6af1d2] .el-collapse-item__header{background:rgba(2,31,26,.6);color:#fff;text-align:center;padding:0 30px;font-size:14px}.legend --el-collapse-content-bg-color[data-v-6a6af1d2]{background:rgba(2,31,26,.6)}.legend[data-v-6a6af1d2] .el-collapse-item__content{background:rgba(2,31,26,.6);padding:0 10px 10px}.legend p[data-v-6a6af1d2]{margin:10px;font-size:14px;font-weight:400;letter-spacing:0px;line-height:0px;color:#fff;text-align:center}.legend .mt-4 .el-checkbox[data-v-6a6af1d2]{height:30px;width:100%;margin-bottom:2px;padding-left:10px;font-size:14px;font-weight:400;letter-spacing:0px;line-height:0px;color:#fff;text-align:left}.legend[data-v-6a6af1d2] .el-checkbox__label{color:#fff}.bottom_center[data-v-6a6af1d2]{position:absolute;left:-2%;right:0;margin:auto;width:calc(100% - 800px - 20vw);min-width:380px;bottom:5%;height:75px;opacity:1;border-radius:5px;background:rgba(2,31,26,.6);border:1px solid rgb(4,153,153)}.tool[data-v-6a6af1d2]{position:absolute;right:30%;top:8%;width:30px;height:280px;opacity:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;display:none}#popup[data-v-6a6af1d2]{border-radius:5px;background:rgba(2,31,26,.6);display:none;padding:30px 8px 20px}#popup>div[data-v-6a6af1d2]:nth-child(1){font-weight:400;letter-spacing:0px;color:#fff;line-height:24px}#popup>div[data-v-6a6af1d2]:nth-child(2){color:#fff;width:129px;height:24px;opacity:1;border-radius:2px;background:rgba(217,231,255,.2);display:flex;justify-content:center;align-items:center;padding:2px 10px}#popup .cancel[data-v-6a6af1d2]{position:absolute;right:10px;top:5px;color:#fff;cursor:pointer}#pop[data-v-6a6af1d2]{border-radius:5px;background:rgb(2,31,26);display:none;padding:30px 8px 20px}#pop .cancel[data-v-6a6af1d2]{position:absolute;right:10px;top:5px;color:#fff;cursor:pointer}#pop>div[data-v-6a6af1d2]{display:flex;margin-bottom:10px}#pop>div>div[data-v-6a6af1d2]:nth-child(1){font-weight:400;letter-spacing:0px;color:#fff;line-height:24px;margin-right:10px}#pop>div>div[data-v-6a6af1d2]:nth-child(2){color:#fff;width:129px;height:24px;opacity:1;border-radius:2px;background:rgba(217,231,255,.2);display:flex;justify-content:center;align-items:center;padding:2px 10px}.back_button[data-v-6a6af1d2]{position:absolute;right:30%;top:20px}.select_city{background:rgba(2,31,26,.85);box-shadow:inset 0 0 15px 6px #29ffff80}.select_city .el-select-dropdown__item.hover{background:rgba(2,31,26,.95);box-shadow:inset 0 0 15px 6px #29ffffb3}.select_city .el-select-dropdown__item{color:#fff}.el-select__popper,.el-popper{border:none!important;background:transparent!important}.el-popper__arrow:before{background:rgba(41,255,255,.7)!important} diff --git a/dist/assets/index.561b7889.css.gz b/dist/assets/index.561b7889.css.gz new file mode 100644 index 0000000..9bb225d Binary files /dev/null and b/dist/assets/index.561b7889.css.gz differ diff --git a/dist/assets/index.70496c40.js b/dist/assets/index.6184a5c2.js similarity index 93% rename from dist/assets/index.70496c40.js rename to dist/assets/index.6184a5c2.js index 4b30eae..c20d43f 100644 --- a/dist/assets/index.70496c40.js +++ b/dist/assets/index.6184a5c2.js @@ -1 +1 @@ -import{z as x,_ as te,O as le,r as u,d as i,T as I,o as c,c as K,H as m,I as P,f as o,e,w as l,j as z,J as ae,K as re,k as _,P as Y,m as h,l as ie,x as se,s as ue}from"./index.5f349928.js";function de(f){return x({url:"/monitor/logininfor/list",method:"get",params:f})}function ce(f){return x({url:"/monitor/logininfor/"+f,method:"delete"})}function pe(f){return x({url:"/monitor/logininfor/unlock/"+f,method:"get"})}function me(){return x({url:"/monitor/logininfor/clean",method:"delete"})}const fe={class:"app-container"},ge=le({name:"Logininfor"}),_e=Object.assign(ge,{setup(f){const{proxy:s}=ue(),{sys_common_status:U}=s.useDict("sys_common_status"),L=u([]),S=u(!0),w=u(!0),R=u([]),T=u(!0),$=u(!0),B=u(""),C=u(0),v=u([]),N=u({prop:"loginTime",order:"descending"}),r=u({pageNum:1,pageSize:10,ipaddr:void 0,userName:void 0,status:void 0,orderByColumn:void 0,isAsc:void 0});function p(){S.value=!0,de(s.addDateRange(r.value,v.value)).then(a=>{L.value=a.rows,C.value=a.total,S.value=!1})}function V(){r.value.pageNum=1,p()}function q(){v.value=[],s.resetForm("queryRef"),r.value.pageNum=1,s.$refs.logininforRef.sort(N.value.prop,N.value.order)}function A(a){R.value=a.map(n=>n.infoId),$.value=!a.length,T.value=a.length!=1,B.value=a.map(n=>n.userName)}function Q(a,n,D){r.value.orderByColumn=a.prop,r.value.isAsc=a.order,p()}function j(a){const n=a.infoId||R.value;s.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BBF\u95EE\u7F16\u53F7\u4E3A"'+n+'"\u7684\u6570\u636E\u9879?').then(function(){return ce(n)}).then(()=>{p(),s.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function E(){s.$modal.confirm("\u662F\u5426\u786E\u8BA4\u6E05\u7A7A\u6240\u6709\u767B\u5F55\u65E5\u5FD7\u6570\u636E\u9879?").then(function(){return me()}).then(()=>{p(),s.$modal.msgSuccess("\u6E05\u7A7A\u6210\u529F")}).catch(()=>{})}function F(){const a=B.value;s.$modal.confirm('\u662F\u5426\u786E\u8BA4\u89E3\u9501\u7528\u6237"'+a+'"\u6570\u636E\u9879?').then(function(){return pe(a)}).then(()=>{s.$modal.msgSuccess("\u7528\u6237"+a+"\u89E3\u9501\u6210\u529F")}).catch(()=>{})}function M(){s.download("monitor/logininfor/export",{...r.value},`config_${new Date().getTime()}.xlsx`)}return p(),(a,n)=>{const D=i("el-input"),b=i("el-form-item"),O=i("el-option"),H=i("el-select"),J=i("el-date-picker"),g=i("el-button"),G=i("el-form"),y=i("el-col"),W=i("right-toolbar"),X=i("el-row"),d=i("el-table-column"),Z=i("dict-tag"),ee=i("el-table"),oe=i("pagination"),k=I("hasPermi"),ne=I("loading");return c(),K("div",fe,[m(e(G,{model:o(r),ref:"queryRef",inline:!0,"label-width":"68px"},{default:l(()=>[e(b,{label:"\u767B\u5F55\u5730\u5740",prop:"ipaddr"},{default:l(()=>[e(D,{modelValue:o(r).ipaddr,"onUpdate:modelValue":n[0]||(n[0]=t=>o(r).ipaddr=t),placeholder:"\u8BF7\u8F93\u5165\u767B\u5F55\u5730\u5740",clearable:"",style:{width:"240px"},onKeyup:z(V,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(b,{label:"\u7528\u6237\u540D\u79F0",prop:"userName"},{default:l(()=>[e(D,{modelValue:o(r).userName,"onUpdate:modelValue":n[1]||(n[1]=t=>o(r).userName=t),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u79F0",clearable:"",style:{width:"240px"},onKeyup:z(V,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(b,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(H,{modelValue:o(r).status,"onUpdate:modelValue":n[2]||(n[2]=t=>o(r).status=t),placeholder:"\u767B\u5F55\u72B6\u6001",clearable:"",style:{width:"240px"}},{default:l(()=>[(c(!0),K(ae,null,re(o(U),t=>(c(),_(O,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(b,{label:"\u767B\u5F55\u65F6\u95F4",style:{width:"308px"}},{default:l(()=>[e(J,{modelValue:o(v),"onUpdate:modelValue":n[3]||(n[3]=t=>Y(v)?v.value=t:null),"value-format":"YYYY-MM-DD",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(b,null,{default:l(()=>[e(g,{type:"primary",icon:"Search",onClick:V},{default:l(()=>[h("\u641C\u7D22")]),_:1}),e(g,{icon:"Refresh",onClick:q},{default:l(()=>[h("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[P,o(w)]]),e(X,{gutter:10,class:"mb8"},{default:l(()=>[e(y,{span:1.5},{default:l(()=>[m((c(),_(g,{type:"danger",plain:"",icon:"Delete",disabled:o($),onClick:j},{default:l(()=>[h("\u5220\u9664")]),_:1},8,["disabled"])),[[k,["monitor:logininfor:remove"]]])]),_:1},8,["span"]),e(y,{span:1.5},{default:l(()=>[m((c(),_(g,{type:"danger",plain:"",icon:"Delete",onClick:E},{default:l(()=>[h("\u6E05\u7A7A")]),_:1})),[[k,["monitor:logininfor:remove"]]])]),_:1},8,["span"]),e(y,{span:1.5},{default:l(()=>[m((c(),_(g,{type:"primary",plain:"",icon:"Unlock",disabled:o(T),onClick:F},{default:l(()=>[h("\u89E3\u9501")]),_:1},8,["disabled"])),[[k,["monitor:logininfor:unlock"]]])]),_:1},8,["span"]),e(y,{span:1.5},{default:l(()=>[m((c(),_(g,{type:"warning",plain:"",icon:"Download",onClick:M},{default:l(()=>[h("\u5BFC\u51FA")]),_:1})),[[k,["monitor:logininfor:export"]]])]),_:1},8,["span"]),e(W,{showSearch:o(w),"onUpdate:showSearch":n[4]||(n[4]=t=>Y(w)?w.value=t:null),onQueryTable:p},null,8,["showSearch"])]),_:1}),m((c(),_(ee,{ref:"logininforRef",data:o(L),onSelectionChange:A,"default-sort":o(N),onSortChange:Q},{default:l(()=>[e(d,{type:"selection",width:"55",align:"center"}),e(d,{label:"\u8BBF\u95EE\u7F16\u53F7",align:"center",prop:"infoId"}),e(d,{label:"\u7528\u6237\u540D\u79F0",align:"center",prop:"userName","show-overflow-tooltip":!0,sortable:"custom","sort-orders":["descending","ascending"]}),e(d,{label:"\u5730\u5740",align:"center",prop:"ipaddr","show-overflow-tooltip":!0}),e(d,{label:"\u767B\u5F55\u5730\u70B9",align:"center",prop:"loginLocation","show-overflow-tooltip":!0}),e(d,{label:"\u64CD\u4F5C\u7CFB\u7EDF",align:"center",prop:"os","show-overflow-tooltip":!0}),e(d,{label:"\u6D4F\u89C8\u5668",align:"center",prop:"browser","show-overflow-tooltip":!0}),e(d,{label:"\u767B\u5F55\u72B6\u6001",align:"center",prop:"status"},{default:l(t=>[e(Z,{options:o(U),value:t.row.status},null,8,["options","value"])]),_:1}),e(d,{label:"\u63CF\u8FF0",align:"center",prop:"msg"}),e(d,{label:"\u8BBF\u95EE\u65F6\u95F4",align:"center",prop:"loginTime",sortable:"custom","sort-orders":["descending","ascending"],width:"180"},{default:l(t=>[ie("span",null,se(a.parseTime(t.row.loginTime)),1)]),_:1})]),_:1},8,["data","default-sort"])),[[ne,o(S)]]),m(e(oe,{total:o(C),page:o(r).pageNum,"onUpdate:page":n[5]||(n[5]=t=>o(r).pageNum=t),limit:o(r).pageSize,"onUpdate:limit":n[6]||(n[6]=t=>o(r).pageSize=t),onPagination:p},null,8,["total","page","limit"]),[[P,o(C)>0]])])}}}),ve=te(_e,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/monitor/logininfor/index.vue"]]);export{ve as default}; +import{z as x,_ as te,O as le,r as u,d as i,T as I,o as c,c as K,G as m,H as P,f as o,e,w as l,j as z,I as ae,J as re,k as _,P as Y,m as h,l as ie,x as se,s as ue}from"./index.b3a66a9e.js";function de(f){return x({url:"/monitor/logininfor/list",method:"get",params:f})}function ce(f){return x({url:"/monitor/logininfor/"+f,method:"delete"})}function pe(f){return x({url:"/monitor/logininfor/unlock/"+f,method:"get"})}function me(){return x({url:"/monitor/logininfor/clean",method:"delete"})}const fe={class:"app-container"},ge=le({name:"Logininfor"}),_e=Object.assign(ge,{setup(f){const{proxy:s}=ue(),{sys_common_status:U}=s.useDict("sys_common_status"),L=u([]),S=u(!0),w=u(!0),R=u([]),T=u(!0),$=u(!0),B=u(""),C=u(0),v=u([]),N=u({prop:"loginTime",order:"descending"}),r=u({pageNum:1,pageSize:10,ipaddr:void 0,userName:void 0,status:void 0,orderByColumn:void 0,isAsc:void 0});function p(){S.value=!0,de(s.addDateRange(r.value,v.value)).then(a=>{L.value=a.rows,C.value=a.total,S.value=!1})}function V(){r.value.pageNum=1,p()}function q(){v.value=[],s.resetForm("queryRef"),r.value.pageNum=1,s.$refs.logininforRef.sort(N.value.prop,N.value.order)}function A(a){R.value=a.map(n=>n.infoId),$.value=!a.length,T.value=a.length!=1,B.value=a.map(n=>n.userName)}function Q(a,n,D){r.value.orderByColumn=a.prop,r.value.isAsc=a.order,p()}function j(a){const n=a.infoId||R.value;s.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BBF\u95EE\u7F16\u53F7\u4E3A"'+n+'"\u7684\u6570\u636E\u9879?').then(function(){return ce(n)}).then(()=>{p(),s.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function E(){s.$modal.confirm("\u662F\u5426\u786E\u8BA4\u6E05\u7A7A\u6240\u6709\u767B\u5F55\u65E5\u5FD7\u6570\u636E\u9879?").then(function(){return me()}).then(()=>{p(),s.$modal.msgSuccess("\u6E05\u7A7A\u6210\u529F")}).catch(()=>{})}function F(){const a=B.value;s.$modal.confirm('\u662F\u5426\u786E\u8BA4\u89E3\u9501\u7528\u6237"'+a+'"\u6570\u636E\u9879?').then(function(){return pe(a)}).then(()=>{s.$modal.msgSuccess("\u7528\u6237"+a+"\u89E3\u9501\u6210\u529F")}).catch(()=>{})}function M(){s.download("monitor/logininfor/export",{...r.value},`config_${new Date().getTime()}.xlsx`)}return p(),(a,n)=>{const D=i("el-input"),b=i("el-form-item"),O=i("el-option"),G=i("el-select"),H=i("el-date-picker"),g=i("el-button"),J=i("el-form"),y=i("el-col"),W=i("right-toolbar"),X=i("el-row"),d=i("el-table-column"),Z=i("dict-tag"),ee=i("el-table"),oe=i("pagination"),k=I("hasPermi"),ne=I("loading");return c(),K("div",fe,[m(e(J,{model:o(r),ref:"queryRef",inline:!0,"label-width":"68px"},{default:l(()=>[e(b,{label:"\u767B\u5F55\u5730\u5740",prop:"ipaddr"},{default:l(()=>[e(D,{modelValue:o(r).ipaddr,"onUpdate:modelValue":n[0]||(n[0]=t=>o(r).ipaddr=t),placeholder:"\u8BF7\u8F93\u5165\u767B\u5F55\u5730\u5740",clearable:"",style:{width:"240px"},onKeyup:z(V,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(b,{label:"\u7528\u6237\u540D\u79F0",prop:"userName"},{default:l(()=>[e(D,{modelValue:o(r).userName,"onUpdate:modelValue":n[1]||(n[1]=t=>o(r).userName=t),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u79F0",clearable:"",style:{width:"240px"},onKeyup:z(V,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(b,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(G,{modelValue:o(r).status,"onUpdate:modelValue":n[2]||(n[2]=t=>o(r).status=t),placeholder:"\u767B\u5F55\u72B6\u6001",clearable:"",style:{width:"240px"}},{default:l(()=>[(c(!0),K(ae,null,re(o(U),t=>(c(),_(O,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(b,{label:"\u767B\u5F55\u65F6\u95F4",style:{width:"308px"}},{default:l(()=>[e(H,{modelValue:o(v),"onUpdate:modelValue":n[3]||(n[3]=t=>Y(v)?v.value=t:null),"value-format":"YYYY-MM-DD",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(b,null,{default:l(()=>[e(g,{type:"primary",icon:"Search",onClick:V},{default:l(()=>[h("\u641C\u7D22")]),_:1}),e(g,{icon:"Refresh",onClick:q},{default:l(()=>[h("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[P,o(w)]]),e(X,{gutter:10,class:"mb8"},{default:l(()=>[e(y,{span:1.5},{default:l(()=>[m((c(),_(g,{type:"danger",plain:"",icon:"Delete",disabled:o($),onClick:j},{default:l(()=>[h("\u5220\u9664")]),_:1},8,["disabled"])),[[k,["monitor:logininfor:remove"]]])]),_:1},8,["span"]),e(y,{span:1.5},{default:l(()=>[m((c(),_(g,{type:"danger",plain:"",icon:"Delete",onClick:E},{default:l(()=>[h("\u6E05\u7A7A")]),_:1})),[[k,["monitor:logininfor:remove"]]])]),_:1},8,["span"]),e(y,{span:1.5},{default:l(()=>[m((c(),_(g,{type:"primary",plain:"",icon:"Unlock",disabled:o(T),onClick:F},{default:l(()=>[h("\u89E3\u9501")]),_:1},8,["disabled"])),[[k,["monitor:logininfor:unlock"]]])]),_:1},8,["span"]),e(y,{span:1.5},{default:l(()=>[m((c(),_(g,{type:"warning",plain:"",icon:"Download",onClick:M},{default:l(()=>[h("\u5BFC\u51FA")]),_:1})),[[k,["monitor:logininfor:export"]]])]),_:1},8,["span"]),e(W,{showSearch:o(w),"onUpdate:showSearch":n[4]||(n[4]=t=>Y(w)?w.value=t:null),onQueryTable:p},null,8,["showSearch"])]),_:1}),m((c(),_(ee,{ref:"logininforRef",data:o(L),onSelectionChange:A,"default-sort":o(N),onSortChange:Q},{default:l(()=>[e(d,{type:"selection",width:"55",align:"center"}),e(d,{label:"\u8BBF\u95EE\u7F16\u53F7",align:"center",prop:"infoId"}),e(d,{label:"\u7528\u6237\u540D\u79F0",align:"center",prop:"userName","show-overflow-tooltip":!0,sortable:"custom","sort-orders":["descending","ascending"]}),e(d,{label:"\u5730\u5740",align:"center",prop:"ipaddr","show-overflow-tooltip":!0}),e(d,{label:"\u767B\u5F55\u5730\u70B9",align:"center",prop:"loginLocation","show-overflow-tooltip":!0}),e(d,{label:"\u64CD\u4F5C\u7CFB\u7EDF",align:"center",prop:"os","show-overflow-tooltip":!0}),e(d,{label:"\u6D4F\u89C8\u5668",align:"center",prop:"browser","show-overflow-tooltip":!0}),e(d,{label:"\u767B\u5F55\u72B6\u6001",align:"center",prop:"status"},{default:l(t=>[e(Z,{options:o(U),value:t.row.status},null,8,["options","value"])]),_:1}),e(d,{label:"\u63CF\u8FF0",align:"center",prop:"msg"}),e(d,{label:"\u8BBF\u95EE\u65F6\u95F4",align:"center",prop:"loginTime",sortable:"custom","sort-orders":["descending","ascending"],width:"180"},{default:l(t=>[ie("span",null,se(a.parseTime(t.row.loginTime)),1)]),_:1})]),_:1},8,["data","default-sort"])),[[ne,o(S)]]),m(e(oe,{total:o(C),page:o(r).pageNum,"onUpdate:page":n[5]||(n[5]=t=>o(r).pageNum=t),limit:o(r).pageSize,"onUpdate:limit":n[6]||(n[6]=t=>o(r).pageSize=t),onPagination:p},null,8,["total","page","limit"]),[[P,o(C)>0]])])}}}),ve=te(_e,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/monitor/logininfor/index.vue"]]);export{ve as default}; diff --git a/dist/assets/index.6184a5c2.js.gz b/dist/assets/index.6184a5c2.js.gz new file mode 100644 index 0000000..a7a4fa4 Binary files /dev/null and b/dist/assets/index.6184a5c2.js.gz differ diff --git a/dist/assets/index.e35aefc8.js b/dist/assets/index.626bda5d.js similarity index 80% rename from dist/assets/index.e35aefc8.js rename to dist/assets/index.626bda5d.js index e472045..df4e825 100644 --- a/dist/assets/index.e35aefc8.js +++ b/dist/assets/index.626bda5d.js @@ -1 +1 @@ -import{_ as e,o,c as r}from"./index.5f349928.js";const n={};function t(c,s,i,a,l,_){return o(),r("div",null," \u6D2A\u6D9D\u9884\u8B66 ")}const p=e(n,[["render",t],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/monitor/FloodWarning/index.vue"]]);export{p as default}; +import{_ as e,o,c as r}from"./index.b3a66a9e.js";const n={};function t(c,s,i,a,l,_){return o(),r("div",null," \u6D2A\u6D9D\u9884\u8B66 ")}const p=e(n,[["render",t],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/monitor/FloodWarning/index.vue"]]);export{p as default}; diff --git a/dist/assets/index.04f4f625.js b/dist/assets/index.6ae92e88.js similarity index 79% rename from dist/assets/index.04f4f625.js rename to dist/assets/index.6ae92e88.js index 136d686..126e1c3 100644 --- a/dist/assets/index.04f4f625.js +++ b/dist/assets/index.6ae92e88.js @@ -1 +1 @@ -import{z as k,_ as fe,O as _e,r as m,B as ye,U as ge,d as a,T as J,o as r,c as S,H as b,I as G,f as n,e,w as l,j as M,J as P,K as $,k as f,m as c,P as W,l as X,x as Y,g as ve,s as be}from"./index.5f349928.js";function he(d){return k({url:"/system/notice/list",method:"get",params:d})}function we(d){return k({url:"/system/notice/"+d,method:"get"})}function Ve(d){return k({url:"/system/notice",method:"post",data:d})}function Te(d){return k({url:"/system/notice",method:"put",data:d})}function ke(d){return k({url:"/system/notice/"+d,method:"delete"})}const Ce={class:"app-container"},xe={class:"dialog-footer"},Se=_e({name:"Notice"}),Ne=Object.assign(Se,{setup(d){const{proxy:_}=be(),{sys_notice_status:q,sys_notice_type:N}=_.useDict("sys_notice_status","sys_notice_type"),K=m([]),y=m(!1),U=m(!0),C=m(!0),B=m([]),z=m(!0),F=m(!0),I=m(0),D=m(""),Z=ye({form:{},queryParams:{pageNum:1,pageSize:10,noticeTitle:void 0,createBy:void 0,status:void 0},rules:{noticeTitle:[{required:!0,message:"\u516C\u544A\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],noticeType:[{required:!0,message:"\u516C\u544A\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}]}}),{queryParams:s,form:i,rules:ee}=ge(Z);function h(){U.value=!0,he(s.value).then(u=>{K.value=u.rows,I.value=u.total,U.value=!1})}function te(){y.value=!1,R()}function R(){i.value={noticeId:void 0,noticeTitle:void 0,noticeType:void 0,noticeContent:void 0,status:"0"},_.resetForm("noticeRef")}function x(){s.value.pageNum=1,h()}function le(){_.resetForm("queryRef"),x()}function ne(u){B.value=u.map(o=>o.noticeId),z.value=u.length!=1,F.value=!u.length}function oe(){R(),y.value=!0,D.value="\u6DFB\u52A0\u516C\u544A"}function E(u){R();const o=u.noticeId||B.value;we(o).then(V=>{i.value=V.data,y.value=!0,D.value="\u4FEE\u6539\u516C\u544A"})}function ae(){_.$refs.noticeRef.validate(u=>{u&&(i.value.noticeId!=null?Te(i.value).then(o=>{_.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),y.value=!1,h()}):Ve(i.value).then(o=>{_.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),y.value=!1,h()}))})}function L(u){const o=u.noticeId||B.value;_.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u516C\u544A\u7F16\u53F7\u4E3A"'+o+'"\u7684\u6570\u636E\u9879\uFF1F').then(function(){return ke(o)}).then(()=>{h(),_.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}return h(),(u,o)=>{const V=a("el-input"),g=a("el-form-item"),Q=a("el-option"),j=a("el-select"),p=a("el-button"),A=a("el-form"),w=a("el-col"),ie=a("right-toolbar"),O=a("el-row"),v=a("el-table-column"),H=a("dict-tag"),ue=a("el-table"),se=a("pagination"),re=a("el-radio"),de=a("el-radio-group"),ce=a("el-dialog"),T=J("hasPermi"),pe=J("loading");return r(),S("div",Ce,[b(e(A,{model:n(s),ref:"queryRef",inline:!0},{default:l(()=>[e(g,{label:"\u516C\u544A\u6807\u9898",prop:"noticeTitle"},{default:l(()=>[e(V,{modelValue:n(s).noticeTitle,"onUpdate:modelValue":o[0]||(o[0]=t=>n(s).noticeTitle=t),placeholder:"\u8BF7\u8F93\u5165\u516C\u544A\u6807\u9898",clearable:"",style:{width:"200px"},onKeyup:M(x,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(g,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"createBy"},{default:l(()=>[e(V,{modelValue:n(s).createBy,"onUpdate:modelValue":o[1]||(o[1]=t=>n(s).createBy=t),placeholder:"\u8BF7\u8F93\u5165\u64CD\u4F5C\u4EBA\u5458",clearable:"",style:{width:"200px"},onKeyup:M(x,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(g,{label:"\u7C7B\u578B",prop:"noticeType"},{default:l(()=>[e(j,{modelValue:n(s).noticeType,"onUpdate:modelValue":o[2]||(o[2]=t=>n(s).noticeType=t),placeholder:"\u516C\u544A\u7C7B\u578B",clearable:"",style:{width:"200px"}},{default:l(()=>[(r(!0),S(P,null,$(n(N),t=>(r(),f(Q,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(g,null,{default:l(()=>[e(p,{type:"primary",icon:"Search",onClick:x},{default:l(()=>[c("\u641C\u7D22")]),_:1}),e(p,{icon:"Refresh",onClick:le},{default:l(()=>[c("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[G,n(C)]]),e(O,{gutter:10,class:"mb8"},{default:l(()=>[e(w,{span:1.5},{default:l(()=>[b((r(),f(p,{type:"primary",plain:"",icon:"Plus",onClick:oe},{default:l(()=>[c("\u65B0\u589E")]),_:1})),[[T,["system:notice:add"]]])]),_:1},8,["span"]),e(w,{span:1.5},{default:l(()=>[b((r(),f(p,{type:"success",plain:"",icon:"Edit",disabled:n(z),onClick:E},{default:l(()=>[c("\u4FEE\u6539")]),_:1},8,["disabled"])),[[T,["system:notice:edit"]]])]),_:1},8,["span"]),e(w,{span:1.5},{default:l(()=>[b((r(),f(p,{type:"danger",plain:"",icon:"Delete",disabled:n(F),onClick:L},{default:l(()=>[c("\u5220\u9664")]),_:1},8,["disabled"])),[[T,["system:notice:remove"]]])]),_:1},8,["span"]),e(ie,{showSearch:n(C),"onUpdate:showSearch":o[3]||(o[3]=t=>W(C)?C.value=t:null),onQueryTable:h},null,8,["showSearch"])]),_:1}),b((r(),f(ue,{data:n(K),onSelectionChange:ne},{default:l(()=>[e(v,{type:"selection",width:"55",align:"center"}),e(v,{label:"\u5E8F\u53F7",align:"center",prop:"noticeId",width:"100"}),e(v,{label:"\u516C\u544A\u6807\u9898",align:"center",prop:"noticeTitle","show-overflow-tooltip":!0}),e(v,{label:"\u516C\u544A\u7C7B\u578B",align:"center",prop:"noticeType",width:"100"},{default:l(t=>[e(H,{options:n(N),value:t.row.noticeType},null,8,["options","value"])]),_:1}),e(v,{label:"\u72B6\u6001",align:"center",prop:"status",width:"100"},{default:l(t=>[e(H,{options:n(q),value:t.row.status},null,8,["options","value"])]),_:1}),e(v,{label:"\u521B\u5EFA\u8005",align:"center",prop:"createBy",width:"100"}),e(v,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"100"},{default:l(t=>[X("span",null,Y(u.parseTime(t.row.createTime,"{y}-{m}-{d}")),1)]),_:1}),e(v,{label:"\u64CD\u4F5C",align:"center","class-name":"small-padding fixed-width"},{default:l(t=>[b((r(),f(p,{link:"",type:"primary",icon:"Edit",onClick:me=>E(t.row)},{default:l(()=>[c("\u4FEE\u6539")]),_:2},1032,["onClick"])),[[T,["system:notice:edit"]]]),b((r(),f(p,{link:"",type:"primary",icon:"Delete",onClick:me=>L(t.row)},{default:l(()=>[c("\u5220\u9664")]),_:2},1032,["onClick"])),[[T,["system:notice:remove"]]])]),_:1})]),_:1},8,["data"])),[[pe,n(U)]]),b(e(se,{total:n(I),page:n(s).pageNum,"onUpdate:page":o[4]||(o[4]=t=>n(s).pageNum=t),limit:n(s).pageSize,"onUpdate:limit":o[5]||(o[5]=t=>n(s).pageSize=t),onPagination:h},null,8,["total","page","limit"]),[[G,n(I)>0]]),ve(" \u6DFB\u52A0\u6216\u4FEE\u6539\u516C\u544A\u5BF9\u8BDD\u6846 "),e(ce,{title:n(D),modelValue:n(y),"onUpdate:modelValue":o[10]||(o[10]=t=>W(y)?y.value=t:null),width:"780px","append-to-body":""},{footer:l(()=>[X("div",xe,[e(p,{type:"primary",onClick:ae},{default:l(()=>[c("\u786E \u5B9A")]),_:1}),e(p,{onClick:te},{default:l(()=>[c("\u53D6 \u6D88")]),_:1})])]),default:l(()=>[e(A,{ref:"noticeRef",model:n(i),rules:n(ee),"label-width":"80px"},{default:l(()=>[e(O,null,{default:l(()=>[e(w,{span:12},{default:l(()=>[e(g,{label:"\u516C\u544A\u6807\u9898",prop:"noticeTitle"},{default:l(()=>[e(V,{modelValue:n(i).noticeTitle,"onUpdate:modelValue":o[6]||(o[6]=t=>n(i).noticeTitle=t),placeholder:"\u8BF7\u8F93\u5165\u516C\u544A\u6807\u9898"},null,8,["modelValue"])]),_:1})]),_:1}),e(w,{span:12},{default:l(()=>[e(g,{label:"\u516C\u544A\u7C7B\u578B",prop:"noticeType"},{default:l(()=>[e(j,{modelValue:n(i).noticeType,"onUpdate:modelValue":o[7]||(o[7]=t=>n(i).noticeType=t),placeholder:"\u8BF7\u9009\u62E9"},{default:l(()=>[(r(!0),S(P,null,$(n(N),t=>(r(),f(Q,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(w,{span:24},{default:l(()=>[e(g,{label:"\u72B6\u6001"},{default:l(()=>[e(de,{modelValue:n(i).status,"onUpdate:modelValue":o[8]||(o[8]=t=>n(i).status=t)},{default:l(()=>[(r(!0),S(P,null,$(n(q),t=>(r(),f(re,{key:t.value,label:t.value},{default:l(()=>[c(Y(t.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(w,{span:24},{default:l(()=>[e(g,{label:"\u5185\u5BB9"},{default:l(()=>[e(V,{rows:6,type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9",modelValue:n(i).noticeContent,"onUpdate:modelValue":o[9]||(o[9]=t=>n(i).noticeContent=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}}),Be=fe(Ne,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/system/notice/index.vue"]]);export{Be as default}; +import{z as k,_ as fe,O as _e,r as m,A as ye,U as ge,d as a,T as H,o as r,c as S,G as b,H as J,f as n,e,w as l,j as M,I as P,J as $,k as f,m as c,P as W,l as X,x as Y,g as ve,s as be}from"./index.b3a66a9e.js";function he(d){return k({url:"/system/notice/list",method:"get",params:d})}function we(d){return k({url:"/system/notice/"+d,method:"get"})}function Ve(d){return k({url:"/system/notice",method:"post",data:d})}function Te(d){return k({url:"/system/notice",method:"put",data:d})}function ke(d){return k({url:"/system/notice/"+d,method:"delete"})}const Ce={class:"app-container"},xe={class:"dialog-footer"},Se=_e({name:"Notice"}),Ne=Object.assign(Se,{setup(d){const{proxy:_}=be(),{sys_notice_status:q,sys_notice_type:N}=_.useDict("sys_notice_status","sys_notice_type"),K=m([]),y=m(!1),U=m(!0),C=m(!0),I=m([]),z=m(!0),F=m(!0),B=m(0),D=m(""),Z=ye({form:{},queryParams:{pageNum:1,pageSize:10,noticeTitle:void 0,createBy:void 0,status:void 0},rules:{noticeTitle:[{required:!0,message:"\u516C\u544A\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],noticeType:[{required:!0,message:"\u516C\u544A\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}]}}),{queryParams:s,form:i,rules:ee}=ge(Z);function h(){U.value=!0,he(s.value).then(u=>{K.value=u.rows,B.value=u.total,U.value=!1})}function te(){y.value=!1,R()}function R(){i.value={noticeId:void 0,noticeTitle:void 0,noticeType:void 0,noticeContent:void 0,status:"0"},_.resetForm("noticeRef")}function x(){s.value.pageNum=1,h()}function le(){_.resetForm("queryRef"),x()}function ne(u){I.value=u.map(o=>o.noticeId),z.value=u.length!=1,F.value=!u.length}function oe(){R(),y.value=!0,D.value="\u6DFB\u52A0\u516C\u544A"}function A(u){R();const o=u.noticeId||I.value;we(o).then(V=>{i.value=V.data,y.value=!0,D.value="\u4FEE\u6539\u516C\u544A"})}function ae(){_.$refs.noticeRef.validate(u=>{u&&(i.value.noticeId!=null?Te(i.value).then(o=>{_.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),y.value=!1,h()}):Ve(i.value).then(o=>{_.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),y.value=!1,h()}))})}function E(u){const o=u.noticeId||I.value;_.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u516C\u544A\u7F16\u53F7\u4E3A"'+o+'"\u7684\u6570\u636E\u9879\uFF1F').then(function(){return ke(o)}).then(()=>{h(),_.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}return h(),(u,o)=>{const V=a("el-input"),g=a("el-form-item"),L=a("el-option"),Q=a("el-select"),p=a("el-button"),j=a("el-form"),w=a("el-col"),ie=a("right-toolbar"),O=a("el-row"),v=a("el-table-column"),G=a("dict-tag"),ue=a("el-table"),se=a("pagination"),re=a("el-radio"),de=a("el-radio-group"),ce=a("el-dialog"),T=H("hasPermi"),pe=H("loading");return r(),S("div",Ce,[b(e(j,{model:n(s),ref:"queryRef",inline:!0},{default:l(()=>[e(g,{label:"\u516C\u544A\u6807\u9898",prop:"noticeTitle"},{default:l(()=>[e(V,{modelValue:n(s).noticeTitle,"onUpdate:modelValue":o[0]||(o[0]=t=>n(s).noticeTitle=t),placeholder:"\u8BF7\u8F93\u5165\u516C\u544A\u6807\u9898",clearable:"",style:{width:"200px"},onKeyup:M(x,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(g,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"createBy"},{default:l(()=>[e(V,{modelValue:n(s).createBy,"onUpdate:modelValue":o[1]||(o[1]=t=>n(s).createBy=t),placeholder:"\u8BF7\u8F93\u5165\u64CD\u4F5C\u4EBA\u5458",clearable:"",style:{width:"200px"},onKeyup:M(x,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(g,{label:"\u7C7B\u578B",prop:"noticeType"},{default:l(()=>[e(Q,{modelValue:n(s).noticeType,"onUpdate:modelValue":o[2]||(o[2]=t=>n(s).noticeType=t),placeholder:"\u516C\u544A\u7C7B\u578B",clearable:"",style:{width:"200px"}},{default:l(()=>[(r(!0),S(P,null,$(n(N),t=>(r(),f(L,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(g,null,{default:l(()=>[e(p,{type:"primary",icon:"Search",onClick:x},{default:l(()=>[c("\u641C\u7D22")]),_:1}),e(p,{icon:"Refresh",onClick:le},{default:l(()=>[c("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[J,n(C)]]),e(O,{gutter:10,class:"mb8"},{default:l(()=>[e(w,{span:1.5},{default:l(()=>[b((r(),f(p,{type:"primary",plain:"",icon:"Plus",onClick:oe},{default:l(()=>[c("\u65B0\u589E")]),_:1})),[[T,["system:notice:add"]]])]),_:1},8,["span"]),e(w,{span:1.5},{default:l(()=>[b((r(),f(p,{type:"success",plain:"",icon:"Edit",disabled:n(z),onClick:A},{default:l(()=>[c("\u4FEE\u6539")]),_:1},8,["disabled"])),[[T,["system:notice:edit"]]])]),_:1},8,["span"]),e(w,{span:1.5},{default:l(()=>[b((r(),f(p,{type:"danger",plain:"",icon:"Delete",disabled:n(F),onClick:E},{default:l(()=>[c("\u5220\u9664")]),_:1},8,["disabled"])),[[T,["system:notice:remove"]]])]),_:1},8,["span"]),e(ie,{showSearch:n(C),"onUpdate:showSearch":o[3]||(o[3]=t=>W(C)?C.value=t:null),onQueryTable:h},null,8,["showSearch"])]),_:1}),b((r(),f(ue,{data:n(K),onSelectionChange:ne},{default:l(()=>[e(v,{type:"selection",width:"55",align:"center"}),e(v,{label:"\u5E8F\u53F7",align:"center",prop:"noticeId",width:"100"}),e(v,{label:"\u516C\u544A\u6807\u9898",align:"center",prop:"noticeTitle","show-overflow-tooltip":!0}),e(v,{label:"\u516C\u544A\u7C7B\u578B",align:"center",prop:"noticeType",width:"100"},{default:l(t=>[e(G,{options:n(N),value:t.row.noticeType},null,8,["options","value"])]),_:1}),e(v,{label:"\u72B6\u6001",align:"center",prop:"status",width:"100"},{default:l(t=>[e(G,{options:n(q),value:t.row.status},null,8,["options","value"])]),_:1}),e(v,{label:"\u521B\u5EFA\u8005",align:"center",prop:"createBy",width:"100"}),e(v,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"100"},{default:l(t=>[X("span",null,Y(u.parseTime(t.row.createTime,"{y}-{m}-{d}")),1)]),_:1}),e(v,{label:"\u64CD\u4F5C",align:"center","class-name":"small-padding fixed-width"},{default:l(t=>[b((r(),f(p,{link:"",type:"primary",icon:"Edit",onClick:me=>A(t.row)},{default:l(()=>[c("\u4FEE\u6539")]),_:2},1032,["onClick"])),[[T,["system:notice:edit"]]]),b((r(),f(p,{link:"",type:"primary",icon:"Delete",onClick:me=>E(t.row)},{default:l(()=>[c("\u5220\u9664")]),_:2},1032,["onClick"])),[[T,["system:notice:remove"]]])]),_:1})]),_:1},8,["data"])),[[pe,n(U)]]),b(e(se,{total:n(B),page:n(s).pageNum,"onUpdate:page":o[4]||(o[4]=t=>n(s).pageNum=t),limit:n(s).pageSize,"onUpdate:limit":o[5]||(o[5]=t=>n(s).pageSize=t),onPagination:h},null,8,["total","page","limit"]),[[J,n(B)>0]]),ve(" \u6DFB\u52A0\u6216\u4FEE\u6539\u516C\u544A\u5BF9\u8BDD\u6846 "),e(ce,{title:n(D),modelValue:n(y),"onUpdate:modelValue":o[10]||(o[10]=t=>W(y)?y.value=t:null),width:"780px","append-to-body":""},{footer:l(()=>[X("div",xe,[e(p,{type:"primary",onClick:ae},{default:l(()=>[c("\u786E \u5B9A")]),_:1}),e(p,{onClick:te},{default:l(()=>[c("\u53D6 \u6D88")]),_:1})])]),default:l(()=>[e(j,{ref:"noticeRef",model:n(i),rules:n(ee),"label-width":"80px"},{default:l(()=>[e(O,null,{default:l(()=>[e(w,{span:12},{default:l(()=>[e(g,{label:"\u516C\u544A\u6807\u9898",prop:"noticeTitle"},{default:l(()=>[e(V,{modelValue:n(i).noticeTitle,"onUpdate:modelValue":o[6]||(o[6]=t=>n(i).noticeTitle=t),placeholder:"\u8BF7\u8F93\u5165\u516C\u544A\u6807\u9898"},null,8,["modelValue"])]),_:1})]),_:1}),e(w,{span:12},{default:l(()=>[e(g,{label:"\u516C\u544A\u7C7B\u578B",prop:"noticeType"},{default:l(()=>[e(Q,{modelValue:n(i).noticeType,"onUpdate:modelValue":o[7]||(o[7]=t=>n(i).noticeType=t),placeholder:"\u8BF7\u9009\u62E9"},{default:l(()=>[(r(!0),S(P,null,$(n(N),t=>(r(),f(L,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(w,{span:24},{default:l(()=>[e(g,{label:"\u72B6\u6001"},{default:l(()=>[e(de,{modelValue:n(i).status,"onUpdate:modelValue":o[8]||(o[8]=t=>n(i).status=t)},{default:l(()=>[(r(!0),S(P,null,$(n(q),t=>(r(),f(re,{key:t.value,label:t.value},{default:l(()=>[c(Y(t.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(w,{span:24},{default:l(()=>[e(g,{label:"\u5185\u5BB9"},{default:l(()=>[e(V,{rows:6,type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9",modelValue:n(i).noticeContent,"onUpdate:modelValue":o[9]||(o[9]=t=>n(i).noticeContent=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}}),Ie=fe(Ne,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/system/notice/index.vue"]]);export{Ie as default}; diff --git a/dist/assets/index.6ae92e88.js.gz b/dist/assets/index.6ae92e88.js.gz new file mode 100644 index 0000000..1db1e2e Binary files /dev/null and b/dist/assets/index.6ae92e88.js.gz differ diff --git a/dist/assets/index.6b88cbd5.js b/dist/assets/index.6b88cbd5.js deleted file mode 100644 index 52dbb9d..0000000 --- a/dist/assets/index.6b88cbd5.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as ge,r as p,B as ve,C as _e,D as ye,F as O,d as U,o as h,c as C,l as o,e as L,w as W,f as g,g as T,x as k,J as he,K as Ce,y as be,p as we,q as xe}from"./index.5f349928.js";import{_ as A}from"./close1.45635d81.js";import{h as Me,g as De,i as Se,a as Ie,_ as Le,b as Te,c as ke,d as Pe,e as Fe,f as Xe}from"./linesGL.badda9a7.js";import"./index.c9f5bd8b.js";const N=P=>(we("data-v-21cafe5e"),P=P(),xe(),P),Ze={class:"center"},Ee=N(()=>o("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),We={class:"leftWra"},Ae={class:"leftTop"},Ne=N(()=>o("div",{class:"title"},[o("span",null,"\u6444\u50CF\u5934\u9009\u62E9")],-1)),Re={class:"search"},ze={key:0,src:A,alt:""},Be={key:0,class:"imgrotate",src:A,alt:""},Oe={class:"rightWra"},Qe=N(()=>o("div",{class:"rightTop"},[o("div",{class:"title"},[o("span",null,"\u89C6\u9891\u76D1\u63A7")])],-1)),qe={key:0,src:A,alt:""},Ge={key:0,class:"imgrotate",src:A,alt:""},Je=be(' ',1),Ve={id:"popup"},Ue={id:"pop"},Ye={key:0},je=N(()=>o("div",null,"\u6751\u540D\uFF1A",-1)),He={__name:"index",setup(P){let i=p(null);p(null),p(null);const Y=p("370211");p(null);let M=ve({arr:[],brr:[],crr:[]});const Q=p({name:"",value:""}),j=p([]),H=p(!1);let b=p(!0),w=p(!0);_e(()=>M.arr,e=>{console.log("val:",e)});var q={title:[]};let R={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]};ye(()=>{ne(),ue(),le(),ce(),K(),te()});const $={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 K(){i=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({...$})}),i.cesiumWidget.creditContainer.style.display="none",de("shuzisannong:huangdaoqu_town","tl"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),ae(),fe()}function G(e,t,r){e.forEach(a=>{let s=[];a[0].forEach(l=>{s.push(l[0]),s.push(l[1])}),i.entities.add({name:t,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(s),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:r?Cesium.Color.fromCssColorString(r):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function ee(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 te(){O({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),j.value=e.data.features}).catch(e=>{})}let f=p({label:[]}),F="";function ae(){var e=new Cesium.ScreenSpaceEventHandler(i.canvas);e.setInputAction(function(t){var r=i.camera.getPickRay(t.position),a=i.scene.globe.pick(r,i.scene);if(a){let s=Cesium.Cartographic.fromCartesian(a);if(s){let l=new Cesium.Cartesian2,d=i.camera.positionCartographic.height,u=ee(d);const m=i.imageryLayers._layers,_=m.findIndex(n=>n._imageryProvider._layers&&n._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(_>-1){const n=m[_];let c=n._imageryProvider;if(c&&c.ready&&c._layers&&n.show===!0){l=c.tilingScheme.positionToTileXY(s,u,l);let S=c.pickFeatures(l.x,l.y,u,s.longitude,s.latitude);S&&S.then(I=>{if(I.length>0){let v=I[0];if(v.properties&&v.properties.XZDM)if(console.log("XZDM:",F),console.log("newData.properties.XZDM:",v.properties.XZDM),F!==v.properties.XZDM){H.value=!0,F=v.properties.XZDM,Y.value=F;let y=v.data;i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(y.bbox[0],y.bbox[1],y.bbox[2],y.bbox[3]),duration:2}),D("townLine"),G(y.geometry&&y.geometry.coordinates,"townLine","yellow"),Z(["village_CQL"]),se(`XZDM=${v.properties.XZDM}`,"village_CQL");let E=i.entities._entities._array;for(var x=E.length-1;x>=0;x--)if(E[x]._name&&E[x]._name==="point"+v.properties.XZDM){let me=E[x]._info;f.value=me,console.log(f.value,"------------------"),V(t.position),i.scene.postRender.addEventListener(z)}D("villageLine"),X=""}else re(m,l,u,s,t);else Z(["village_CQL"]),B()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let X="";function re(e,t,r,a,s){const l=e.findIndex(d=>d._imageryProvider._layers&&d._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(l>-1){const d=e[l];let u=d._imageryProvider;if(u&&u.ready&&u._layers&&d.show===!0){t=u.tilingScheme.positionToTileXY(a,r,t);let m=u.pickFeatures(t.x,t.y,r,a.longitude,a.latitude);m&&m.then(_=>{if(_.length>0){let n=_[0];if(console.log(n),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(n.data.bbox[0],n.data.bbox[1],n.data.bbox[2],n.data.bbox[3]),duration:2}),n.properties&&n.properties.XZQDM&&X!==n.properties.XZQDM){X=n.properties.XZQDM;let c=n.data;if(D("villageLine"),G(c.geometry&&c.geometry.coordinates,"villageLine","yellow"),n.properties.XZQDM==="370211104217"){const S=Cesium.Rectangle.fromDegrees(c.bbox[0],c.bbox[1],c.bbox[2],c.bbox[3]),I=Cesium.Rectangle.center(S);let x=Cesium.Math.toDegrees(I.longitude),v=Cesium.Math.toDegrees(I.latitude),y={lon:x,lat:v,...c.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}]};f.value=y,V(s.position),i.scene.postRender.addEventListener(z)}}}})}}}function se(e,t){let r=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:e}});r.customName=t,i.imageryLayers.addImageryProvider(r)}function Z(e,t){if(i){const r=i.imageryLayers._layers;for(let a=r.length-1;a>=0;a--)e.forEach(s=>{r[a]._imageryProvider&&r[a]._imageryProvider.customName&&(t?r[a]._imageryProvider.customName.indexOf(s)>-1&&i.imageryLayers.remove(r[a]):r[a]._imageryProvider.customName===s&&i.imageryLayers.remove(r[a]))})}}function D(e){if(i){let r=i.entities._entities._array;for(var t=r.length-1;t>=0;t--)r[t]._name&&r[t]._name===e&&i.entities.remove(r[t])}}function ie(){if(b.value=!b.value,b.value){let e=document.querySelector(".leftWra");e&&(e.style.transform="translate(0,0)")}else{let e=document.querySelector(".leftWra");e&&(e.style.transform="translate(-107%,0)")}}function oe(){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 ne=()=>{Me({time:"2023-04-25",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(e=>{console.log(e)})},le=()=>{De().then(e=>{M.arr=e.features,M.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)]})},ce=()=>{Se().then(e=>{M.brr=e.features})},ue=()=>{Ie().then(e=>{M.crr=e.features,q.title.forEach((t,r)=>{let a=e.features.map(s=>{if(t===s.properties.town)return s.properties});Object.keys(R).forEach(s=>{const l=a.findIndex(d=>d&&d.crop===s);l>-1?R[s].push(a[l].Shape_Area):R[s].push(null)})})})};function de(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=i.imageryLayers.addImageryProvider(r);t.indexOf("gbznt")>-1&&(i.imageryLayers.lowerToBottom(a),i.imageryLayers.raise(a))}function pe(){let e=J.value;console.log("fl:",e),O({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,s)=>{const l=Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),d=Cesium.Rectangle.center(l);let u=Cesium.Math.toDegrees(d.longitude),m=Cesium.Math.toDegrees(d.latitude);a.properties.XZDM==="370211011"?(u=120.0863,m=35.941):a.properties.XZDM==="370211003"&&(u=120.243682,m=35.97123201);const _=e[a.properties.XZMC];let n=[];_&&(n=_.map((c,S)=>c.properties)),i.entities.add({name:"point"+a.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(u,m),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:n,...a.properties,lon:u,lat:m}})})}).catch(t=>{})}let J=p({});function fe(){O({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 s=a.properties.town;r[s]?r[s].push(a):r[s]=[a]}),J.value=r,pe()}).catch(e=>{})}function z(){if(f.value&&f.value.lon&&f.value.lat){const t=Cesium.Cartesian3.fromDegrees(Number(f.value.lon),Number(f.value.lat),0);var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.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(){X="",Z(["village_CQL"]),D("villageLine"),D("townLine");const e=document.getElementById("pop");e.style.display="none",i.scene.postRender.removeEventListener(z),Z(["gbznt"],!0)}function V(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=U("el-input"),a=U("el-tooltip");return h(),C("div",Ze,[Ee,o("div",We,[o("div",Ae,[Ne,o("div",Re,[L(r,{class:"seach_input",modelValue:e.input,"onUpdate:modelValue":t[0]||(t[0]=s=>e.input=s),placeholder:"\u8BF7\u8F93\u5165\u8981\u7B5B\u9009\u6444\u50CF\u5934\u540D",clearable:""},null,8,["modelValue"])])]),o("div",{class:"leftFoldDiv",onClick:t[1]||(t[1]=s=>ie())},[L(a,{class:"box-item","show-arrow":!1,disabled:g(b),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:W(()=>[g(b)?T("v-if",!0):(h(),C("img",ze))]),_:1},8,["disabled"]),L(a,{disabled:!g(b),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:W(()=>[g(b)?(h(),C("img",Be)):T("v-if",!0)]),_:1},8,["disabled"])])]),o("div",Oe,[Qe,o("div",{class:"rightFoldDiv",onClick:t[2]||(t[2]=s=>oe())},[L(a,{disabled:!g(w),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:W(()=>[g(w)?(h(),C("img",qe)):T("v-if",!0)]),_:1},8,["disabled"]),L(a,{disabled:g(w),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:W(()=>[g(w)?T("v-if",!0):(h(),C("img",Ge))]),_:1},8,["disabled"])])]),Je,o("div",Ve,[o("div",null,k(Q.value.name)+"\uFF1A",1),o("div",null,k(Q.value.value)+"\u4EA9",1),o("div",{class:"cancel",onClick:B},"X")]),o("div",Ue,[(h(!0),C(he,null,Ce(g(f).label,(s,l)=>(h(),C("div",{key:l},[o("div",null,k(s.crop)+"\uFF1A",1),o("div",null,k((s.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),g(f).XZQMC?(h(),C("div",Ye,[je,o("div",null,k(g(f).XZQMC),1)])):T("v-if",!0),o("div",{class:"cancel",onClick:B},"X")])])}}},at=ge(He,[["__scopeId","data-v-21cafe5e"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/plough/VideoSurveillance/index.vue"]]);export{at as default}; diff --git a/dist/assets/index.6b88cbd5.js.gz b/dist/assets/index.6b88cbd5.js.gz deleted file mode 100644 index 8ba5f3f..0000000 Binary files a/dist/assets/index.6b88cbd5.js.gz and /dev/null differ diff --git a/dist/assets/index.70496c40.js.gz b/dist/assets/index.70496c40.js.gz deleted file mode 100644 index c546452..0000000 Binary files a/dist/assets/index.70496c40.js.gz and /dev/null differ diff --git a/dist/assets/index.71ee7c84.js b/dist/assets/index.71ee7c84.js new file mode 100644 index 0000000..f3d799e --- /dev/null +++ b/dist/assets/index.71ee7c84.js @@ -0,0 +1 @@ +import{_ as ge,r as p,A as ve,B as _e,C as ye,D as O,d as U,o as h,c as C,l as o,e as L,w as E,f as g,g as T,x as k,I as he,J as Ce,y as be,p as we,q as xe}from"./index.b3a66a9e.js";import{_ as W}from"./close1.45635d81.js";import{_ as Me,a as De,b as Ie,c as Se,d as Le,e as Te}from"./linesGL.90f708a5.js";import"./index.c9f5bd8b.js";import{b as ke,g as Pe,c as Fe,a as Xe}from"./classify.ee69cc46.js";const N=P=>(we("data-v-21cafe5e"),P=P(),xe(),P),Ze={class:"center"},Ae=N(()=>o("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Ee={class:"leftWra"},We={class:"leftTop"},Ne=N(()=>o("div",{class:"title"},[o("span",null,"\u6444\u50CF\u5934\u9009\u62E9")],-1)),Re={class:"search"},ze={key:0,src:W,alt:""},Be={key:0,class:"imgrotate",src:W,alt:""},Oe={class:"rightWra"},Qe=N(()=>o("div",{class:"rightTop"},[o("div",{class:"title"},[o("span",null,"\u89C6\u9891\u76D1\u63A7")])],-1)),qe={key:0,src:W,alt:""},Ge={key:0,class:"imgrotate",src:W,alt:""},Je=be('',1),Ve={id:"popup"},Ue={id:"pop"},Ye={key:0},je=N(()=>o("div",null,"\u6751\u540D\uFF1A",-1)),He={__name:"index",setup(P){let i=p(null);p(null),p(null);const Y=p("370211");p(null);let M=ve({arr:[],brr:[],crr:[]});const Q=p({name:"",value:""}),j=p([]),H=p(!1);let b=p(!0),w=p(!0);_e(()=>M.arr,e=>{console.log("val:",e)});var q={title:[]};let R={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]};ye(()=>{ne(),ue(),le(),ce(),K(),te()});const $={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 K(){i=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({...$})}),i.cesiumWidget.creditContainer.style.display="none",de("shuzisannong:huangdaoqu_town","tl"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),ae(),fe()}function G(e,t,r){e.forEach(a=>{let s=[];a[0].forEach(l=>{s.push(l[0]),s.push(l[1])}),i.entities.add({name:t,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(s),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:r?Cesium.Color.fromCssColorString(r):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function ee(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 te(){O({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),j.value=e.data.features}).catch(e=>{})}let f=p({label:[]}),F="";function ae(){var e=new Cesium.ScreenSpaceEventHandler(i.canvas);e.setInputAction(function(t){var r=i.camera.getPickRay(t.position),a=i.scene.globe.pick(r,i.scene);if(a){let s=Cesium.Cartographic.fromCartesian(a);if(s){let l=new Cesium.Cartesian2,d=i.camera.positionCartographic.height,u=ee(d);const m=i.imageryLayers._layers,_=m.findIndex(n=>n._imageryProvider._layers&&n._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(_>-1){const n=m[_];let c=n._imageryProvider;if(c&&c.ready&&c._layers&&n.show===!0){l=c.tilingScheme.positionToTileXY(s,u,l);let I=c.pickFeatures(l.x,l.y,u,s.longitude,s.latitude);I&&I.then(S=>{if(S.length>0){let v=S[0];if(v.properties&&v.properties.XZDM)if(console.log("XZDM:",F),console.log("newData.properties.XZDM:",v.properties.XZDM),F!==v.properties.XZDM){H.value=!0,F=v.properties.XZDM,Y.value=F;let y=v.data;i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(y.bbox[0],y.bbox[1],y.bbox[2],y.bbox[3]),duration:2}),D("townLine"),G(y.geometry&&y.geometry.coordinates,"townLine","yellow"),Z(["village_CQL"]),se(`XZDM=${v.properties.XZDM}`,"village_CQL");let A=i.entities._entities._array;for(var x=A.length-1;x>=0;x--)if(A[x]._name&&A[x]._name==="point"+v.properties.XZDM){let me=A[x]._info;f.value=me,console.log(f.value,"------------------"),V(t.position),i.scene.postRender.addEventListener(z)}D("villageLine"),X=""}else re(m,l,u,s,t);else Z(["village_CQL"]),B()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let X="";function re(e,t,r,a,s){const l=e.findIndex(d=>d._imageryProvider._layers&&d._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(l>-1){const d=e[l];let u=d._imageryProvider;if(u&&u.ready&&u._layers&&d.show===!0){t=u.tilingScheme.positionToTileXY(a,r,t);let m=u.pickFeatures(t.x,t.y,r,a.longitude,a.latitude);m&&m.then(_=>{if(_.length>0){let n=_[0];if(console.log(n),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(n.data.bbox[0],n.data.bbox[1],n.data.bbox[2],n.data.bbox[3]),duration:2}),n.properties&&n.properties.XZQDM&&X!==n.properties.XZQDM){X=n.properties.XZQDM;let c=n.data;if(D("villageLine"),G(c.geometry&&c.geometry.coordinates,"villageLine","yellow"),n.properties.XZQDM==="370211104217"){const I=Cesium.Rectangle.fromDegrees(c.bbox[0],c.bbox[1],c.bbox[2],c.bbox[3]),S=Cesium.Rectangle.center(I);let x=Cesium.Math.toDegrees(S.longitude),v=Cesium.Math.toDegrees(S.latitude),y={lon:x,lat:v,...c.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}]};f.value=y,V(s.position),i.scene.postRender.addEventListener(z)}}}})}}}function se(e,t){let r=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:e}});r.customName=t,i.imageryLayers.addImageryProvider(r)}function Z(e,t){if(i){const r=i.imageryLayers._layers;for(let a=r.length-1;a>=0;a--)e.forEach(s=>{r[a]._imageryProvider&&r[a]._imageryProvider.customName&&(t?r[a]._imageryProvider.customName.indexOf(s)>-1&&i.imageryLayers.remove(r[a]):r[a]._imageryProvider.customName===s&&i.imageryLayers.remove(r[a]))})}}function D(e){if(i){let r=i.entities._entities._array;for(var t=r.length-1;t>=0;t--)r[t]._name&&r[t]._name===e&&i.entities.remove(r[t])}}function ie(){if(b.value=!b.value,b.value){let e=document.querySelector(".leftWra");e&&(e.style.transform="translate(0,0)")}else{let e=document.querySelector(".leftWra");e&&(e.style.transform="translate(-107%,0)")}}function oe(){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 ne=()=>{ke({time:"2023-04-25",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(e=>{console.log(e)})},le=()=>{Pe().then(e=>{M.arr=e.features,M.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)]})},ce=()=>{Fe().then(e=>{M.brr=e.features})},ue=()=>{Xe().then(e=>{M.crr=e.features,q.title.forEach((t,r)=>{let a=e.features.map(s=>{if(t===s.properties.town)return s.properties});Object.keys(R).forEach(s=>{const l=a.findIndex(d=>d&&d.crop===s);l>-1?R[s].push(a[l].Shape_Area):R[s].push(null)})})})};function de(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=i.imageryLayers.addImageryProvider(r);t.indexOf("gbznt")>-1&&(i.imageryLayers.lowerToBottom(a),i.imageryLayers.raise(a))}function pe(){let e=J.value;console.log("fl:",e),O({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,s)=>{const l=Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),d=Cesium.Rectangle.center(l);let u=Cesium.Math.toDegrees(d.longitude),m=Cesium.Math.toDegrees(d.latitude);a.properties.XZDM==="370211011"?(u=120.0863,m=35.941):a.properties.XZDM==="370211003"&&(u=120.243682,m=35.97123201);const _=e[a.properties.XZMC];let n=[];_&&(n=_.map((c,I)=>c.properties)),i.entities.add({name:"point"+a.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(u,m),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:n,...a.properties,lon:u,lat:m}})})}).catch(t=>{})}let J=p({});function fe(){O({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 s=a.properties.town;r[s]?r[s].push(a):r[s]=[a]}),J.value=r,pe()}).catch(e=>{})}function z(){if(f.value&&f.value.lon&&f.value.lat){const t=Cesium.Cartesian3.fromDegrees(Number(f.value.lon),Number(f.value.lat),0);var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.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(){X="",Z(["village_CQL"]),D("villageLine"),D("townLine");const e=document.getElementById("pop");e.style.display="none",i.scene.postRender.removeEventListener(z),Z(["gbznt"],!0)}function V(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=U("el-input"),a=U("el-tooltip");return h(),C("div",Ze,[Ae,o("div",Ee,[o("div",We,[Ne,o("div",Re,[L(r,{class:"seach_input",modelValue:e.input,"onUpdate:modelValue":t[0]||(t[0]=s=>e.input=s),placeholder:"\u8BF7\u8F93\u5165\u8981\u7B5B\u9009\u6444\u50CF\u5934\u540D",clearable:""},null,8,["modelValue"])])]),o("div",{class:"leftFoldDiv",onClick:t[1]||(t[1]=s=>ie())},[L(a,{class:"box-item","show-arrow":!1,disabled:g(b),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:E(()=>[g(b)?T("v-if",!0):(h(),C("img",ze))]),_:1},8,["disabled"]),L(a,{disabled:!g(b),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:E(()=>[g(b)?(h(),C("img",Be)):T("v-if",!0)]),_:1},8,["disabled"])])]),o("div",Oe,[Qe,o("div",{class:"rightFoldDiv",onClick:t[2]||(t[2]=s=>oe())},[L(a,{disabled:!g(w),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:E(()=>[g(w)?(h(),C("img",qe)):T("v-if",!0)]),_:1},8,["disabled"]),L(a,{disabled:g(w),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:E(()=>[g(w)?T("v-if",!0):(h(),C("img",Ge))]),_:1},8,["disabled"])])]),Je,o("div",Ve,[o("div",null,k(Q.value.name)+"\uFF1A",1),o("div",null,k(Q.value.value)+"\u4EA9",1),o("div",{class:"cancel",onClick:B},"X")]),o("div",Ue,[(h(!0),C(he,null,Ce(g(f).label,(s,l)=>(h(),C("div",{key:l},[o("div",null,k(s.crop)+"\uFF1A",1),o("div",null,k((s.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),g(f).XZQMC?(h(),C("div",Ye,[je,o("div",null,k(g(f).XZQMC),1)])):T("v-if",!0),o("div",{class:"cancel",onClick:B},"X")])])}}},rt=ge(He,[["__scopeId","data-v-21cafe5e"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/plough/VideoSurveillance/index.vue"]]);export{rt as default}; diff --git a/dist/assets/index.71ee7c84.js.gz b/dist/assets/index.71ee7c84.js.gz new file mode 100644 index 0000000..f7f4a04 Binary files /dev/null and b/dist/assets/index.71ee7c84.js.gz differ diff --git a/dist/assets/index.72794fc3.js b/dist/assets/index.72794fc3.js new file mode 100644 index 0000000..5389d05 --- /dev/null +++ b/dist/assets/index.72794fc3.js @@ -0,0 +1,13 @@ +import{_ as De,r as m,A as K,B as Me,C as Le,D as Z,d as b,o as L,c as z,l,e as f,w as y,m as k,g as A,x as I,I as Ie,J as Pe,f as N,k as Te,y as re,p as Ee,q as Fe}from"./index.b3a66a9e.js";import oe from"./downloads.e955445d.js";import{_ as Oe,a as ze,b as Ae,c as Be,d as Ve,e as We}from"./linesGL.90f708a5.js";import{i as ee}from"./index.c9f5bd8b.js";import{u as te}from"./useEcharts.83442be8.js";import{b as Xe,g as Ze,c as Ne,a as Re}from"./classify.ee69cc46.js";const _=P=>(Ee("data-v-d061be2f"),P=P(),Fe(),P),Ge={class:"center"},Qe=_(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Ue={class:"rightWra"},qe={class:"rightTop"},Je=_(()=>l("div",{class:"title"},[l("span",null,"\u4F4D\u7F6E\u5B9A\u4F4D")],-1)),je=_(()=>l("div",{class:"depth"},[l("p",{class:"SelectedDiv"},"\u5730\u540D"),l("p",null,"\u884C\u653F\u533A"),l("p",null,"\u7ECF\u7EAC\u5EA6")],-1)),Ye={class:"seach_button"},$e={class:"rightbottom"},He=re('\u4FE1\u606F\u7EDF\u8BA1',2),Ke={class:"chart_div"},et={class:"chart_div_title"},tt=_(()=>l("span",null,"\u57FA\u672C\u519C\u7530\u9762\u79EF\u53CA\u5360\u6BD4",-1)),rt=_(()=>l("img",{src:oe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ot={class:"chart_div"},at={class:"chart_div_title"},lt=_(()=>l("span",null,"\u4E24\u533A\u5212\u5B9A\u9762\u79EF\u53CA\u5360\u6BD4",-1)),st=_(()=>l("img",{src:oe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),nt=re('\u4FE1\u606F\u603B\u89C8\u533A\u5212\u9EC4\u5C9B\u533A\u57FA\u672C\u519C\u753012364\u4EA9',1),it={id:"popup"},dt={id:"pop"},ct={key:0},ut=_(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),pt={class:"mt-4"},mt={__name:"index",setup(P){let n=m(null);const ae=m("370211");m(null);let D=K({arr:[],brr:[],crr:[]});K({arr:[]});const R=m({name:"",value:""});m([]);const le=m([]),B=m(!1);m(!0);let V=m(!0);const G=m(""),Q=m("null"),U=m("null");Me(()=>D.arr,e=>{console.log("val:",e)});var q={title:[]};let W={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]};Le(()=>{fe(),he(),ge(),ve(),ne(),de(),ye(),_e()});const se={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 ne(){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({...se})}),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}),ce(),xe()}function J(e,t,r){e.forEach(o=>{let s=[];o[0].forEach(d=>{s.push(d[0]),s.push(d[1])}),n.entities.add({name:t,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(s),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:r?Cesium.Color.fromCssColorString(r):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function ie(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 de(){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 g=m({label:[]}),T="";function ce(){var e=new Cesium.ScreenSpaceEventHandler(n.canvas);e.setInputAction(function(t){var r=n.camera.getPickRay(t.position),o=n.scene.globe.pick(r,n.scene);if(o){let s=Cesium.Cartographic.fromCartesian(o);if(s){let d=new Cesium.Cartesian2,c=n.camera.positionCartographic.height,p=ie(c);const u=n.imageryLayers._layers,i=u.findIndex(a=>a._imageryProvider._layers&&a._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(i>-1){const a=u[i];let v=a._imageryProvider;if(v&&v.ready&&v._layers&&a.show===!0){d=v.tilingScheme.positionToTileXY(s,p,d);let x=v.pickFeatures(d.x,d.y,p,s.longitude,s.latitude);x&&x.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,ae.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"),w(["village_CQL"]),pe(`XZDM=${h.properties.XZDM}`,"village_CQL");let O=n.entities._entities._array;for(var C=O.length-1;C>=0;C--)if(O[C]._name&&O[C]._name==="point"+h.properties.XZDM){let ke=O[C]._info;g.value=ke,console.log(g.value,"------------------"),Se(t.position),n.scene.postRender.addEventListener(H)}M("villageLine"),E=""}else ue(u,d,p,s);else w(["village_CQL"]),X()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let E="";function ue(e,t,r,o){const s=e.findIndex(d=>d._imageryProvider._layers&&d._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(s>-1){const d=e[s];let c=d._imageryProvider;if(c&&c.ready&&c._layers&&d.show===!0){t=c.tilingScheme.positionToTileXY(o,r,t);let p=c.pickFeatures(t.x,t.y,r,o.longitude,o.latitude);p&&p.then(u=>{if(u.length>0){let i=u[0];if(i.properties&&i.properties.XZQDM&&E!==i.properties.XZQDM){E=i.properties.XZQDM;let a=i.data;if(M("villageLine"),J(a.geometry&&a.geometry.coordinates,"villageLine","yellow"),i.properties.XZQDM==="370211104217"){const v=Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),x=Cesium.Rectangle.center(v);let F=Cesium.Math.toDegrees(x.longitude),C=Cesium.Math.toDegrees(x.latitude),h={lon:F,lat:C,...a.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}]};g.value=h}}}})}}}function pe(e,t){let r=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/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 w(e,t){if(n){const r=n.imageryLayers._layers;for(let o=r.length-1;o>=0;o--)e.forEach(s=>{r[o]._imageryProvider&&r[o]._imageryProvider.customName&&(t?r[o]._imageryProvider.customName.indexOf(s)>-1&&n.imageryLayers.remove(r[o]):r[o]._imageryProvider.customName===s&&n.imageryLayers.remove(r[o]))})}}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 me(){if(V.value=!V.value,V.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 fe=()=>{Xe({time:"2023-04-25",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(e=>{console.log(e)})},ge=()=>{Ze().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(o=>{r.push(o.properties.XZMC)}),q.title=[...Object.values(r)]})},ve=()=>{Ne().then(e=>{D.brr=e.features})},he=()=>{Re().then(e=>{D.crr=e.features,q.title.forEach((t,r)=>{let o=e.features.map(s=>{if(t===s.properties.town)return s.properties});Object.keys(W).forEach(s=>{const d=o.findIndex(c=>c&&c.crop===s);d>-1?W[s].push(o[d].Shape_Area):W[s].push(null)})})})},j=e=>{be(e)},be=e=>{let t=document.createElement("a");t.style.display="none",t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)};function ye(){const e=ee(Q.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)"}}],s=1*r.reduce((i,a)=>i+a.value,0)/100,d=[],c={name:"",value:s,itemStyle:{color:"transparent"}};let p=0;r.forEach(i=>{p+=i.value});for(let i=0;i{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 o=n.imageryLayers.addImageryProvider(r);t.indexOf("gbznt")>-1&&(n.imageryLayers.lowerToBottom(o),n.imageryLayers.raise(o))}function Ce(){w(["gbznt"],!0),Y("shuzisannong:huangdaoqu_town","tl"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),B.value=!1}function we(){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((o,s)=>{const d=Cesium.Rectangle.fromDegrees(o.bbox[0],o.bbox[1],o.bbox[2],o.bbox[3]),c=Cesium.Rectangle.center(d);let p=Cesium.Math.toDegrees(c.longitude),u=Cesium.Math.toDegrees(c.latitude);o.properties.XZDM==="370211011"?(p=120.0863,u=35.941):o.properties.XZDM==="370211003"&&(p=120.243682,u=35.97123201);const i=e[o.properties.XZMC];let a=[];i&&(a=i.map((v,x)=>v.properties)),n.entities.add({name:"point"+o.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(p,u),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:a,...o.properties,lon:p,lat:u}})})}).catch(t=>{})}let $=m({});function xe(){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(o=>{let s=o.properties.town;r[s]?r[s].push(o):r[s]=[o]}),$.value=r,we()}).catch(e=>{})}function H(){if(g.value&&g.value.lon&&g.value.lat){const t=Cesium.Cartesian3.fromDegrees(Number(g.value.lon),Number(g.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 X(){T="",E="",w(["village_CQL"]),w(["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}),w(["gbznt"],!0),B.value=!1}function Se(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"),o=b("el-button"),s=b("ArrowLeftBold"),d=b("el-icon"),c=b("el-checkbox"),p=b("el-checkbox-group"),u=b("el-collapse-item"),i=b("el-collapse");return L(),z("div",Ge,[Qe,l("div",Ue,[l("div",qe,[Je,je,f(r,{class:"seach_input",modelValue:G.value,"onUpdate:modelValue":t[0]||(t[0]=a=>G.value=a),placeholder:"\u8BF7\u8F93\u5165\u5730\u540D",clearable:""},null,8,["modelValue"]),l("div",Ye,[f(o,{class:"seach"},{default:y(()=>[k("\u67E5\u8BE2")]),_:1}),f(o,{class:"resetting"},{default:y(()=>[k("\u91CD\u7F6E")]),_:1})]),A(' ')]),l("div",$e,[He,l("div",Ke,[l("div",et,[tt,l("p",{onClick:t[1]||(t[1]=a=>j("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[k(" \u4E0B\u8F7D \xA0 "),rt])]),l("div",{ref_key:"Farmland_area",ref:Q,class:"Farmland_area"},null,512)]),l("div",ot,[l("div",at,[lt,l("p",{onClick:t[2]||(t[2]=a=>j("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[k(" \u4E0B\u8F7D \xA0 "),st])]),l("div",{ref_key:"Delineation",ref:U,class:"Delineation"},null,512)])]),l("div",{class:"rightFoldDiv",onClick:t[3]||(t[3]=a=>me())},[f(d,null,{default:y(()=>[f(s)]),_:1})])]),nt,l("div",it,[l("div",null,I(R.value.name)+"\uFF1A",1),l("div",null,I(R.value.value)+"\u4EA9",1),l("div",{class:"cancel",onClick:X},"X")]),l("div",dt,[(L(!0),z(Ie,null,Pe(N(g).label,(a,v)=>(L(),z("div",{key:v},[l("div",null,I(a.crop)+"\uFF1A",1),l("div",null,I((a.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),N(g).XZQMC?(L(),z("div",ct,[ut,l("div",null,I(N(g).XZQMC),1)])):A("v-if",!0),l("div",{class:"cancel",onClick:X},"X")]),B.value?(L(),Te(o,{key:0,class:"back_button",onClick:t[4]||(t[4]=a=>Ce())},{default:y(()=>[k("\u8FD4\u56DE")]),_:1})):A("v-if",!0),f(i,{class:"legend",accordion:""},{default:y(()=>[f(u,{name:"1"},{title:y(()=>[k("\u56FE\u4F8B")]),default:y(()=>[l("div",pt,[f(p,{modelValue:e.checkList,"onUpdate:modelValue":t[10]||(t[10]=a=>e.checkList=a),onChange:e.change},{default:y(()=>[A(` `),f(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]=a=>e.checked3=a),label:"0-200"},null,8,["modelValue"]),f(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]=a=>e.checked4=a),label:"200-400"},null,8,["modelValue"]),f(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]=a=>e.checked3=a),label:"400-600"},null,8,["modelValue"]),f(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]=a=>e.checked4=a),label:"600-800"},null,8,["modelValue"]),f(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]=a=>e.checked3=a),label:"800-1000"},null,8,["modelValue"])]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1})])}}},_t=De(mt,[["__scopeId","data-v-d061be2f"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/plough/resources/index.vue"]]);export{_t as default}; diff --git a/dist/assets/index.72794fc3.js.gz b/dist/assets/index.72794fc3.js.gz new file mode 100644 index 0000000..13a7e32 Binary files /dev/null and b/dist/assets/index.72794fc3.js.gz differ diff --git a/dist/assets/index.d674d3bd.js b/dist/assets/index.77cc1432.js similarity index 97% rename from dist/assets/index.d674d3bd.js rename to dist/assets/index.77cc1432.js index 820455c..91997e9 100644 --- a/dist/assets/index.d674d3bd.js +++ b/dist/assets/index.77cc1432.js @@ -1 +1 @@ -import{_ as g,O as x,r as f,d as u,o as t,c as a,e as _,w as i,l as e,f as l,x as o,g as c,s as w}from"./index.5f349928.js";import{g as C}from"./cache.dc56d82c.js";import{i as b}from"./index.c9f5bd8b.js";const I={class:"app-container"},O=e("span",null,"\u57FA\u672C\u4FE1\u606F",-1),B={class:"el-table el-table--enable-row-hover el-table--medium"},D={cellspacing:"0",style:{width:"100%"}},F=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"Redis\u7248\u672C")],-1),S={class:"el-table__cell is-leaf"},N={key:0,class:"cell"},V=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"\u8FD0\u884C\u6A21\u5F0F")],-1),z={class:"el-table__cell is-leaf"},A={key:0,class:"cell"},E=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"\u7AEF\u53E3")],-1),L={class:"el-table__cell is-leaf"},R={key:0,class:"cell"},U=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"\u5BA2\u6237\u7AEF\u6570")],-1),$={class:"el-table__cell is-leaf"},j={key:0,class:"cell"},K=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"\u8FD0\u884C\u65F6\u95F4(\u5929)")],-1),P={class:"el-table__cell is-leaf"},T={key:0,class:"cell"},q=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"\u4F7F\u7528\u5185\u5B58")],-1),G={class:"el-table__cell is-leaf"},H={key:0,class:"cell"},J=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"\u4F7F\u7528CPU")],-1),M={class:"el-table__cell is-leaf"},Q={key:0,class:"cell"},W=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"\u5185\u5B58\u914D\u7F6E")],-1),X={class:"el-table__cell is-leaf"},Y={key:0,class:"cell"},Z=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"AOF\u662F\u5426\u5F00\u542F")],-1),ee={class:"el-table__cell is-leaf"},se={key:0,class:"cell"},le=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"RDB\u662F\u5426\u6210\u529F")],-1),te={class:"el-table__cell is-leaf"},ae={key:0,class:"cell"},oe=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"Key\u6570\u91CF")],-1),ce={class:"el-table__cell is-leaf"},ie={key:0,class:"cell"},_e=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"\u7F51\u7EDC\u5165\u53E3/\u51FA\u53E3")],-1),ne={class:"el-table__cell is-leaf"},de={key:0,class:"cell"},re=e("span",null,"\u547D\u4EE4\u7EDF\u8BA1",-1),fe={class:"el-table el-table--enable-row-hover el-table--medium"},ue=e("span",null,"\u5185\u5B58\u4FE1\u606F",-1),me={class:"el-table el-table--enable-row-hover el-table--medium"},he=x({name:"Cache"}),ve=Object.assign(he,{setup(be){const s=f([]),m=f(null),h=f(null),{proxy:v}=w();function p(){v.$modal.loading("\u6B63\u5728\u52A0\u8F7D\u7F13\u5B58\u76D1\u63A7\u6570\u636E\uFF0C\u8BF7\u7A0D\u5019\uFF01"),C().then(d=>{v.$modal.closeLoading(),s.value=d.data,b(m.value,"macarons").setOption({tooltip:{trigger:"item",formatter:"{a}
{b} : {c} ({d}%)"},series:[{name:"\u547D\u4EE4",type:"pie",roseType:"radius",radius:[15,95],center:["50%","38%"],data:d.data.commandStats,animationEasing:"cubicInOut",animationDuration:1e3}]}),b(h.value,"macarons").setOption({tooltip:{formatter:"{b}
{a} : "+s.value.info.used_memory_human},series:[{name:"\u5CF0\u503C",type:"gauge",min:0,max:1e3,detail:{formatter:s.value.info.used_memory_human},data:[{value:parseFloat(s.value.info.used_memory_human),name:"\u5185\u5B58\u6D88\u8017"}]}]})})}return p(),(d,y)=>{const n=u("el-card"),r=u("el-col"),k=u("el-row");return t(),a("div",I,[_(k,null,{default:i(()=>[_(r,{span:24,class:"card-box"},{default:i(()=>[_(n,null,{header:i(()=>[O]),default:i(()=>[e("div",B,[e("table",D,[e("tbody",null,[e("tr",null,[F,e("td",S,[l(s).info?(t(),a("div",N,o(l(s).info.redis_version),1)):c("v-if",!0)]),V,e("td",z,[l(s).info?(t(),a("div",A,o(l(s).info.redis_mode=="standalone"?"\u5355\u673A":"\u96C6\u7FA4"),1)):c("v-if",!0)]),E,e("td",L,[l(s).info?(t(),a("div",R,o(l(s).info.tcp_port),1)):c("v-if",!0)]),U,e("td",$,[l(s).info?(t(),a("div",j,o(l(s).info.connected_clients),1)):c("v-if",!0)])]),e("tr",null,[K,e("td",P,[l(s).info?(t(),a("div",T,o(l(s).info.uptime_in_days),1)):c("v-if",!0)]),q,e("td",G,[l(s).info?(t(),a("div",H,o(l(s).info.used_memory_human),1)):c("v-if",!0)]),J,e("td",M,[l(s).info?(t(),a("div",Q,o(parseFloat(l(s).info.used_cpu_user_children).toFixed(2)),1)):c("v-if",!0)]),W,e("td",X,[l(s).info?(t(),a("div",Y,o(l(s).info.maxmemory_human),1)):c("v-if",!0)])]),e("tr",null,[Z,e("td",ee,[l(s).info?(t(),a("div",se,o(l(s).info.aof_enabled=="0"?"\u5426":"\u662F"),1)):c("v-if",!0)]),le,e("td",te,[l(s).info?(t(),a("div",ae,o(l(s).info.rdb_last_bgsave_status),1)):c("v-if",!0)]),oe,e("td",ce,[l(s).dbSize?(t(),a("div",ie,o(l(s).dbSize),1)):c("v-if",!0)]),_e,e("td",ne,[l(s).info?(t(),a("div",de,o(l(s).info.instantaneous_input_kbps)+"kps/"+o(l(s).info.instantaneous_output_kbps)+"kps",1)):c("v-if",!0)])])])])])]),_:1})]),_:1}),_(r,{span:12,class:"card-box"},{default:i(()=>[_(n,null,{header:i(()=>[re]),default:i(()=>[e("div",fe,[e("div",{ref_key:"commandstats",ref:m,style:{height:"420px"}},null,512)])]),_:1})]),_:1}),_(r,{span:12,class:"card-box"},{default:i(()=>[_(n,null,{header:i(()=>[ue]),default:i(()=>[e("div",me,[e("div",{ref_key:"usedmemory",ref:h,style:{height:"420px"}},null,512)])]),_:1})]),_:1})]),_:1})])}}}),ge=g(ve,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/monitor/cache/index.vue"]]);export{ge as default}; +import{_ as g,O as x,r as f,d as u,o as t,c as a,e as _,w as i,l as e,f as l,x as o,g as c,s as w}from"./index.b3a66a9e.js";import{g as C}from"./cache.425f4b27.js";import{i as b}from"./index.c9f5bd8b.js";const I={class:"app-container"},O=e("span",null,"\u57FA\u672C\u4FE1\u606F",-1),B={class:"el-table el-table--enable-row-hover el-table--medium"},D={cellspacing:"0",style:{width:"100%"}},F=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"Redis\u7248\u672C")],-1),S={class:"el-table__cell is-leaf"},N={key:0,class:"cell"},V=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"\u8FD0\u884C\u6A21\u5F0F")],-1),z={class:"el-table__cell is-leaf"},A={key:0,class:"cell"},E=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"\u7AEF\u53E3")],-1),L={class:"el-table__cell is-leaf"},R={key:0,class:"cell"},U=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"\u5BA2\u6237\u7AEF\u6570")],-1),$={class:"el-table__cell is-leaf"},j={key:0,class:"cell"},K=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"\u8FD0\u884C\u65F6\u95F4(\u5929)")],-1),P={class:"el-table__cell is-leaf"},T={key:0,class:"cell"},q=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"\u4F7F\u7528\u5185\u5B58")],-1),G={class:"el-table__cell is-leaf"},H={key:0,class:"cell"},J=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"\u4F7F\u7528CPU")],-1),M={class:"el-table__cell is-leaf"},Q={key:0,class:"cell"},W=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"\u5185\u5B58\u914D\u7F6E")],-1),X={class:"el-table__cell is-leaf"},Y={key:0,class:"cell"},Z=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"AOF\u662F\u5426\u5F00\u542F")],-1),ee={class:"el-table__cell is-leaf"},se={key:0,class:"cell"},le=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"RDB\u662F\u5426\u6210\u529F")],-1),te={class:"el-table__cell is-leaf"},ae={key:0,class:"cell"},oe=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"Key\u6570\u91CF")],-1),ce={class:"el-table__cell is-leaf"},ie={key:0,class:"cell"},_e=e("td",{class:"el-table__cell is-leaf"},[e("div",{class:"cell"},"\u7F51\u7EDC\u5165\u53E3/\u51FA\u53E3")],-1),ne={class:"el-table__cell is-leaf"},de={key:0,class:"cell"},re=e("span",null,"\u547D\u4EE4\u7EDF\u8BA1",-1),fe={class:"el-table el-table--enable-row-hover el-table--medium"},ue=e("span",null,"\u5185\u5B58\u4FE1\u606F",-1),me={class:"el-table el-table--enable-row-hover el-table--medium"},he=x({name:"Cache"}),ve=Object.assign(he,{setup(be){const s=f([]),m=f(null),h=f(null),{proxy:v}=w();function p(){v.$modal.loading("\u6B63\u5728\u52A0\u8F7D\u7F13\u5B58\u76D1\u63A7\u6570\u636E\uFF0C\u8BF7\u7A0D\u5019\uFF01"),C().then(d=>{v.$modal.closeLoading(),s.value=d.data,b(m.value,"macarons").setOption({tooltip:{trigger:"item",formatter:"{a}
{b} : {c} ({d}%)"},series:[{name:"\u547D\u4EE4",type:"pie",roseType:"radius",radius:[15,95],center:["50%","38%"],data:d.data.commandStats,animationEasing:"cubicInOut",animationDuration:1e3}]}),b(h.value,"macarons").setOption({tooltip:{formatter:"{b}
{a} : "+s.value.info.used_memory_human},series:[{name:"\u5CF0\u503C",type:"gauge",min:0,max:1e3,detail:{formatter:s.value.info.used_memory_human},data:[{value:parseFloat(s.value.info.used_memory_human),name:"\u5185\u5B58\u6D88\u8017"}]}]})})}return p(),(d,y)=>{const n=u("el-card"),r=u("el-col"),k=u("el-row");return t(),a("div",I,[_(k,null,{default:i(()=>[_(r,{span:24,class:"card-box"},{default:i(()=>[_(n,null,{header:i(()=>[O]),default:i(()=>[e("div",B,[e("table",D,[e("tbody",null,[e("tr",null,[F,e("td",S,[l(s).info?(t(),a("div",N,o(l(s).info.redis_version),1)):c("v-if",!0)]),V,e("td",z,[l(s).info?(t(),a("div",A,o(l(s).info.redis_mode=="standalone"?"\u5355\u673A":"\u96C6\u7FA4"),1)):c("v-if",!0)]),E,e("td",L,[l(s).info?(t(),a("div",R,o(l(s).info.tcp_port),1)):c("v-if",!0)]),U,e("td",$,[l(s).info?(t(),a("div",j,o(l(s).info.connected_clients),1)):c("v-if",!0)])]),e("tr",null,[K,e("td",P,[l(s).info?(t(),a("div",T,o(l(s).info.uptime_in_days),1)):c("v-if",!0)]),q,e("td",G,[l(s).info?(t(),a("div",H,o(l(s).info.used_memory_human),1)):c("v-if",!0)]),J,e("td",M,[l(s).info?(t(),a("div",Q,o(parseFloat(l(s).info.used_cpu_user_children).toFixed(2)),1)):c("v-if",!0)]),W,e("td",X,[l(s).info?(t(),a("div",Y,o(l(s).info.maxmemory_human),1)):c("v-if",!0)])]),e("tr",null,[Z,e("td",ee,[l(s).info?(t(),a("div",se,o(l(s).info.aof_enabled=="0"?"\u5426":"\u662F"),1)):c("v-if",!0)]),le,e("td",te,[l(s).info?(t(),a("div",ae,o(l(s).info.rdb_last_bgsave_status),1)):c("v-if",!0)]),oe,e("td",ce,[l(s).dbSize?(t(),a("div",ie,o(l(s).dbSize),1)):c("v-if",!0)]),_e,e("td",ne,[l(s).info?(t(),a("div",de,o(l(s).info.instantaneous_input_kbps)+"kps/"+o(l(s).info.instantaneous_output_kbps)+"kps",1)):c("v-if",!0)])])])])])]),_:1})]),_:1}),_(r,{span:12,class:"card-box"},{default:i(()=>[_(n,null,{header:i(()=>[re]),default:i(()=>[e("div",fe,[e("div",{ref_key:"commandstats",ref:m,style:{height:"420px"}},null,512)])]),_:1})]),_:1}),_(r,{span:12,class:"card-box"},{default:i(()=>[_(n,null,{header:i(()=>[ue]),default:i(()=>[e("div",me,[e("div",{ref_key:"usedmemory",ref:h,style:{height:"420px"}},null,512)])]),_:1})]),_:1})]),_:1})])}}}),ge=g(ve,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/monitor/cache/index.vue"]]);export{ge as default}; diff --git a/dist/assets/index.77cc1432.js.gz b/dist/assets/index.77cc1432.js.gz new file mode 100644 index 0000000..dd1d2d7 Binary files /dev/null and b/dist/assets/index.77cc1432.js.gz differ diff --git a/dist/assets/index.78a421aa.js b/dist/assets/index.78a421aa.js deleted file mode 100644 index 919725e..0000000 --- a/dist/assets/index.78a421aa.js +++ /dev/null @@ -1 +0,0 @@ -import{z as ge,_ as $e,r as u,B as ce,C as Ue,D as Ye,F as de,d as k,o as b,c as M,l,m as P,e as h,w as _,f as g,g as F,J as ue,K as fe,k as pe,Q as He,x as Q,y as Ke,p as et,q as tt}from"./index.5f349928.js";import oe from"./downloads.e955445d.js";import{_ as ae}from"./close1.45635d81.js";import{g as ot,i as at,a as rt,h as lt,_ as st,b as it,c as nt,d as ct,e as dt,f as ut}from"./linesGL.badda9a7.js";import{i as ee,L as te}from"./index.c9f5bd8b.js";import{T as ft}from"./TimeLine.ca858622.js";import{u as me}from"./useEcharts.f096c4b4.js";function pt(x){return ge({url:"equipment/statisticsOfTheArea",method:"get",params:x})}function mt(x){return ge({url:"equipment/proportionOfTheArea",method:"get",params:x})}function gt(x){return ge({url:"equipment/eachFreezingGradeArea",method:"get",params:x})}const L=x=>(et("data-v-4e1915e9"),x=x(),tt(),x),vt={class:"center"},bt=L(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),ht={class:"leftWra"},yt={class:"leftTop"},_t={class:"title"},xt=L(()=>l("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),wt=L(()=>l("img",{src:oe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ct={class:"leftbottom"},St={class:"title"},Dt=L(()=>l("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),kt=L(()=>l("img",{src:oe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Mt={class:"tableDiv"},Lt={key:0,src:ae,alt:""},zt={key:0,class:"imgrotate",src:ae,alt:""},At={class:"rightWra"},Tt={class:"rightTop"},Wt={class:"title"},It=L(()=>l("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Et=L(()=>l("img",{src:oe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Bt={class:"rightbottom"},Ft={class:"title"},Zt=L(()=>l("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Xt=L(()=>l("img",{src:oe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Pt={key:0,src:ae,alt:""},Rt={key:0,class:"imgrotate",src:ae,alt:""},Nt={class:"bottom_center"},Ot=Ke('',1),qt={class:"mt-4"},Qt={id:"popup"},Gt={id:"pop"},Vt={key:0},jt=L(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),Jt={__name:"index",setup(x){let i=u(null);const ve=u(null),be=u(null),he=u(null);u(null);const ye=u(null),y=u("370211"),Ae=u(null);let w=ce({arr:[],brr:[],crr:[]});const _e=u({name:"",value:""}),xe=u([]),Z=u(!1);let E=u(!1),B=u(!1);const we=u(["false"]);let R=ce({lable:[],value:[]}),G=u([]),re=u(0),Ce=["\u9AD8\u6807\u51C6\u519C\u75301","\u9AD8\u6807\u51C6\u519C\u75302","\u9AD8\u6807\u51C6\u519C\u75303"],T={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},Te={"-0\xB0\u4EE5\u4E0B":{color:"rgba(9, 187, 222, 1)",disabled:!1},"-3\xB0\u4EE5\u4E0B":{color:"rgba(255, 235, 59, 1)",disabled:!1},"-5\xB0\u4EE5\u4E0B":{color:"rgba(234, 165, 93, 1)",disabled:!1}};Ue(()=>w.arr,e=>{console.log("val:",e)});var V={title:[]};let W={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},le=u([]);Ye(()=>{De("370211"),ke("370211"),Re(),Oe(),Me(),Ne(),Ie(),U(),Y(),Le(),O(),Be();let e=document.querySelector(".leftWra");e&&(e.style.transform="translate(-107%,0)");let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)"});const We={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 Ie(){i=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({...We})}),i.cesiumWidget.creditContainer.style.display="none",ie("shuzisannong:huangdaoqu_town","tl"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),Fe(),je()}function se(e,t,o){e.forEach(a=>{let r=[];a[0].forEach(s=>{r.push(s[0]),r.push(s[1])}),i.entities.add({name:t,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(r),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:o?Cesium.Color.fromCssColorString(o):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function Ee(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 Be(){de({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),xe.value=e.data.features}).catch(e=>{})}let p=u({label:[]}),N="";function Fe(){var e=new Cesium.ScreenSpaceEventHandler(i.canvas);e.setInputAction(function(t){var o=i.camera.getPickRay(t.position),a=i.scene.globe.pick(o,i.scene);if(a){let r=Cesium.Cartographic.fromCartesian(a);if(r){let s=new Cesium.Cartesian2,f=i.camera.positionCartographic.height,c=Ee(f);const v=i.imageryLayers._layers,S=v.findIndex(d=>d._imageryProvider._layers&&d._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(S>-1){const d=v[S];let m=d._imageryProvider;if(m&&m.ready&&m._layers&&d.show===!0){s=m.tilingScheme.positionToTileXY(r,c,s);let n=m.pickFeatures(s.x,s.y,c,r.longitude,r.latitude);n&&n.then(z=>{if(z.length>0){let D=z[0];if(D.properties&&D.properties.XZDM)if(console.log("XZDM:",N),console.log("newData.properties.XZDM:",D.properties.XZDM),N!==D.properties.XZDM){Z.value=!0,N=D.properties.XZDM,y.value=N,J&&J();let I=D.data;i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(I.bbox[0],I.bbox[1],I.bbox[2],I.bbox[3]),duration:2}),X("townLine"),se(I.geometry&&I.geometry.coordinates,"townLine","yellow"),C(["village_CQL"]),Se(`XZDM=${D.properties.XZDM}`,"village_CQL");let K=i.entities._entities._array;for(var A=K.length-1;A>=0;A--)if(K[A]._name&&K[A]._name==="point"+D.properties.XZDM){let Je=K[A]._info;p.value=Je,console.log(p.value,"------------------"),H(t.position),i.scene.postRender.addEventListener(ne)}X("villageLine"),j=""}else Ze(v,s,c,r,t);else C(["village_CQL"]),q()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let j="";function Ze(e,t,o,a,r){const s=e.findIndex(f=>f._imageryProvider._layers&&f._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(s>-1){const f=e[s];let c=f._imageryProvider;if(c&&c.ready&&c._layers&&f.show===!0){t=c.tilingScheme.positionToTileXY(a,o,t);let v=c.pickFeatures(t.x,t.y,o,a.longitude,a.latitude);v&&v.then(S=>{if(S.length>0){let d=S[0];if(console.log(d),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(d.data.bbox[0],d.data.bbox[1],d.data.bbox[2],d.data.bbox[3]),duration:2}),d.properties&&d.properties.XZQDM&&j!==d.properties.XZQDM){j=d.properties.XZQDM;let m=d.data;if(X("villageLine"),se(m.geometry&&m.geometry.coordinates,"villageLine","yellow"),d.properties.XZQDM==="370211104217"){const n=Cesium.Rectangle.fromDegrees(m.bbox[0],m.bbox[1],m.bbox[2],m.bbox[3]),z=Cesium.Rectangle.center(n);let A=Cesium.Math.toDegrees(z.longitude),D=Cesium.Math.toDegrees(z.latitude),I={lon:A,lat:D,...m.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}]};p.value=I,H(r.position),i.scene.postRender.addEventListener(ne)}}}})}}}function Se(e,t){let o=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:e}});o.customName=t,i.imageryLayers.addImageryProvider(o)}function C(e,t){if(i){const o=i.imageryLayers._layers;for(let a=o.length-1;a>=0;a--)e.forEach(r=>{o[a]._imageryProvider&&o[a]._imageryProvider.customName&&(t?o[a]._imageryProvider.customName.indexOf(r)>-1&&i.imageryLayers.remove(o[a]):o[a]._imageryProvider.customName===r&&i.imageryLayers.remove(o[a]))})}}function X(e){if(i){let o=i.entities._entities._array;for(var t=o.length-1;t>=0;t--)o[t]._name&&o[t]._name===e&&i.entities.remove(o[t])}}function Xe(){if(E.value=!E.value,E.value){let e=document.querySelector(".leftWra");e&&(e.style.transform="translate(0,0)")}else{let e=document.querySelector(".leftWra");e&&(e.style.transform="translate(-107%,0)")}}function Pe(){if(B.value=!B.value,B.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 De=e=>{R=ce({lable:[],value:[]}),pt({divisions:e}).then(t=>{t.data.forEach(o=>{R.lable.push(o.level),R.value.push((o.area/666.67).toFixed(2))}),U()})},ke=e=>{G=u([]),le=u([]),re=u(0),mt({divisions:e}).then(t=>{t.data.forEach(o=>{re.value+=Number(o.area),G.value.push({name:o.level,value:(o.area/666.67).toFixed(2)}),le.value.push({date:o.level,name:`${(o.area/666.67).toFixed(2)}\u4EA9`,address:`${(o.percentage*100).toFixed(2)}%`})}),console.log(G.value),Y()})},Re=()=>{gt().then(e=>{Ce.forEach((t,o)=>{let a=e.data.map(r=>{if(t===r.region)return r});Object.keys(T).forEach(r=>{let s=0;a.findIndex(c=>(console.log(c,r),c&&c.level===r&&(s=c.area),c&&c.level===r))>-1?T[r].push(s):T[r].push(0)})}),Le()})},Me=()=>{ot().then(e=>{w.arr=e.features.sort((a,r)=>a.properties.XZMC.length-r.properties.XZMC.length),w.arr.unshift({bbox:[119.5091,35.5671,120.3285,36.1455],properties:{XZDM:"370211",XZMC:"\u5168\u90E8"}});let t=[...e.features],o=[];t.splice(0,1),t.forEach(a=>{o.push(a.properties.XZMC)}),V.title=[...Object.values(o)],O()})},Ne=()=>{at().then(e=>{w.brr=e.features})},Oe=()=>{rt().then(e=>{w.crr=e.features,V.title.forEach((t,o)=>{let a=e.features.map(r=>{if(t===r.properties.town)return r.properties});Object.keys(W).forEach(r=>{const s=a.findIndex(f=>f&&f.crop===r);s>-1?W[r].push(a[s].Shape_Area):W[r].push(null)})}),O()})},J=()=>{if(w.arr.forEach(a=>{a.properties.XZDM==y.value&&(De(y.value),ke(y.value))}),y.value=="370211"){C(["village_CQL"]),N=null,C(["aaa"]),Me(),q(),O(),U(),Y();return}let e=[...w.arr];console.log("arr:",e),e.forEach(a=>{a.properties.XZDM==y.value&&i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),duration:2});let r=[...w.brr],s=[];r.forEach(f=>{f.properties.XZDM==y.value&&s.push(f.properties.XZQMC)}),V.title=[...Object.values(s)]}),O(),U(),Y();const o=[...w.arr].find(a=>a.properties.XZDM===y.value);o&&(X("townLine"),se(o.geometry.coordinates,"townLine","yellow")),C(["aaa"]),Se(`XZDM=${y.value}`,"aaa"),lt({time:"2023-04-26",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(a=>{let r=[];a.data.map((s,f)=>{s.region==o.properties.XZMC&&r.push({crop:s.type,Shape_Area:s.area})}),p.value={label:r},console.log(),console.log(r),H({x:642,y:312})})},$=e=>{qe(e)},qe=e=>{let t=document.createElement("a");t.style.display="none",t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)};function U(){const e=ee(ve.value);var t={textStyle:{fontSize:0},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!0,top:"5%",data:["\u9762\u79EF"],right:"5%",icon:"rect",textStyle:{fontSize:14,color:"rgba(255, 255, 255, 0.7)"}},xAxis:{nameTextStyle:{color:"#c0c3cd",padding:[0,0,-10,0],fontSize:14},axisLabel:{color:"rgba(255, 255, 255, 0.7)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14},axisTick:{lineStyle:{color:"#0B1535",width:1},show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#384267",width:1,type:"dashed"},show:!0},data:R.lable,type:"category"},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255,255,255,0.7)"},splitLine:{lineStyle:{type:"dashed"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{data:R.value,name:"\u9762\u79EF",type:"bar",barMaxWidth:"auto",barWidth:35,itemStyle:{color:{x:0,y:0,x2:0,y2:1,type:"linear",global:!1,colorStops:[{offset:0,color:"rgba(45, 204, 177, 1)"},{offset:1,color:"rgba(71, 179, 161, 0)"}]}},label:{normal:{show:!1,fontSize:14,color:"#ffffff",position:"top"}}}]};t&&e.setOption(t),window.addEventListener("resize",function(){e.resize()})}function Y(){const e=ee(be.value);var t=G.value;let o={color:["rgba(9, 187, 222, 0.8)","rgba(255, 235, 59, 0.8)","rgba(234, 165, 93, 0.8)","rgba(215, 25, 28, 0.8)","#585247","#7F6AAD","#009D85","rgba(250,250,250,0.3)"],title:{text:"\u603B\u9762\u79EF",subtext:`${(re.value/666.67).toFixed(2)}\u4EA9`,textStyle:{color:"#f2f2f2",fontSize:14},subtextStyle:{fontSize:14,color:["#ff9d19"]},x:"center",y:"center"},grid:{top:0},legend:{orient:"vertical",top:"middle",right:"2%",textStyle:{color:"#f2f2f2",fontSize:14},icon:"roundRect",data:t},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a}
{b} : {c}
\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",data:t},{radius:["50%","54%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1},emphasis:{show:!1}},labelLine:{normal:{show:!1},emphasis:{show:!1}},animation:!1,tooltip:{show:!1},data:[{value:1,itemStyle:{color:"rgba(250,250,250,0.3)"}}]},{name:"\u5916\u8FB9\u6846",type:"pie",clockWise:!1,hoverAnimation:!1,center:["50%","50%"],radius:["85%","85%"],label:{normal:{show:!1}},data:[{value:9,name:"",itemStyle:{normal:{borderWidth:2,borderColor:"#0b5263"}}}]}]};me(e,o)}function Le(){const e=ee(he.value);console.log(T);let t={title:{text:"",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},xAxis:{type:"category",data:Ce,axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)",width:1,type:"solid"},axisLabel:{color:"rgba(255, 255, 255, 0.7)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14}}},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255, 255, 255, 0.7)"},splitLine:{lineStyle:{type:"solid",color:"rgba(255, 255, 255, 0.3)"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{name:"\u65E0\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:T.\u65E0\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(9, 187, 222, 1)",color:new te(0,0,0,1,[{offset:0,color:"rgba(9, 187, 222, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}])}}},{name:"\u8F7B\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:T.\u8F7B\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 235, 59, 1)",color:new te(0,0,0,1,[{offset:0,color:"rgba(255, 235, 59, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 0.8)"}])}}},{name:"\u4E2D\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:T.\u4E2D\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(234, 165, 93, 1)",color:new te(0,0,0,1,[{offset:0,color:"rgba(234, 165, 93, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}])}}},{name:"\u91CD\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:T.\u91CD\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(215, 25, 28, 1)",color:new te(0,0,0,1,[{offset:0,color:"rgba(215, 25, 28, 0.8)"},{offset:1,color:"rgba(215, 25, 28, 0.8)"}])}}}]};e.on("click",function(o){console.log(o.name)}),e.on("click",o=>Ge(o)),t&&e.setOption(t,{notMerge:!0,grid:{bottom:20}}),me(e,t)}function ie(e,t){let o=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:e,parameters:{service:"WMS",format:"image/png",transparent:!0}});o.customName=t;let a=i.imageryLayers.addImageryProvider(o);t.indexOf("gbznt")>-1&&(i.imageryLayers.lowerToBottom(a),i.imageryLayers.raise(a))}function Qe(){delete p.value.XZQMC,C(["gbznt"],!0),C(["aaa"]),y.value="370211",J(),Z.value==="1"&&(console.log(Z.value),ie("shuzisannong:huangdaoqu_town","tl")),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Z.value=!1,q()}function Ge(e){delete p.value,C(["huangdaoqu_town"],!0),C(["tl"],!0);let t="shuzisannong:farmland",o=!1;const a=i.imageryLayers._layers;for(let s=a.length-1;s>=0;s--)a[s]&&a[s]._imageryProvider.customName&&a[s]._imageryProvider.customName===t+"gbznt"&&(o=!0);o||(ie(t,t+"gbznt"),p.value.label=[{crop:"\u5C0F\u9EA6",Shape_Area:"53000"},{crop:"\u5730\u74DC",Shape_Area:"50000"}]),xe.value.forEach(s=>{console.log("it.properties.name:",s.properties.name),console.log("item.name:",e.name),s.properties.name===e.name&&(console.log("dingwei"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(s.bbox[0],s.bbox[1],s.bbox[2],s.bbox[3]),duration:2}))}),Z.value="1",H({x:642,y:312})}function O(){const e=ee(ye.value);var t={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},legend:{top:"5%",left:"10%",icon:"rect",textStyle:{color:"#fff"}},tooltip:{formatter:function(o){return o.seriesName+''+(o.value/666.67).toFixed(2)+"\u4EA9"}},dataZoom:[{type:"slider",show:!1,zoomLock:!0,width:8,yAxisIndex:[0],bottom:30,top:20,right:10,startValue:0,endValue:4,handleIcon:"M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z",handleSize:"100%",handleStyle:{color:"#DBDBDB",height:"100%"},backgroundColor:"transparent",fillerColor:"#DBDBDB",textStyle:{color:"transparent"},dataBackground:{lineStyle:{color:"transparent"},areaStyle:{color:"transparent"}},borderColor:"transparent"},{type:"inside",id:"insideY",yAxisIndex:0,start:0,end:50,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"category",axisTick:{show:!1},axisLine:{show:!1,lineStyle:{color:"#cdd3ee"}},splitLine:{show:!1},axisLabel:{show:!0,fontSize:12,color:"rgba(255, 255, 255, 1)",formatter:"{value}"},data:V.title,inverse:!0}],series:[{type:"bar",name:"\u7389\u7C73",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u7389\u7C73",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(4, 247, 227, 0.9)"},{offset:1,color:"rgba(4, 247, 227, 0.25)"}]}},data:W.\u7389\u7C73},{type:"bar",name:"\u5927\u8C46",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u5927\u8C46",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(143, 186, 243, 0.9)"},{offset:1,color:"rgba(143, 186, 243, 0.3)"}]}},data:W.\u5927\u8C46},{type:"bar",name:"\u82B1\u751F",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u82B1\u751F",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(4, 247, 227, 0.9)"},{offset:1,color:"rgba(4, 247, 227, 0.25)"}]}},data:W.\u82B1\u751F},{type:"bar",name:"\u5C0F\u9EA6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u5C0F\u9EA6",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(33, 187, 251, 0.9)"},{offset:1,color:"rgba(33, 187, 251, 0.25)"}]}},data:W.\u5C0F\u9EA6},{type:"bar",name:"\u84DD\u8393",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u84DD\u8393",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(14, 223, 255, 0.9)"},{offset:1,color:"rgba(14, 223, 255, 0.25)"}]}},data:W.\u84DD\u8393}]};me(e,t)}function Ve(){let e=ze.value;console.log("fl:",e),de({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,r)=>{const s=Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),f=Cesium.Rectangle.center(s);let c=Cesium.Math.toDegrees(f.longitude),v=Cesium.Math.toDegrees(f.latitude);a.properties.XZDM==="370211011"?(c=120.0863,v=35.941):a.properties.XZDM==="370211003"&&(c=120.243682,v=35.97123201);const S=e[a.properties.XZMC];let d=[];S&&(d=S.map((m,n)=>m.properties)),i.entities.add({name:"point"+a.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(c,v),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:d,...a.properties,lon:c,lat:v}})})}).catch(t=>{})}let ze=u({});function je(){de({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,o={};t.forEach(a=>{let r=a.properties.town;o[r]?o[r].push(a):o[r]=[a]}),ze.value=o,Ve()}).catch(e=>{})}function ne(){if(p.value&&p.value.lon&&p.value.lat){const t=Cesium.Cartesian3.fromDegrees(Number(p.value.lon),Number(p.value.lat),0);var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.scene,t);if(Cesium.defined(e)){const o=document.getElementById("pop");o&&(o.style.top=e.y-10+"px",o.style.left=e.x+10+"px")}}}function q(){delete p.value.XZQMC,j="",C(["village_CQL"]),X("villageLine"),X("townLine");const e=document.getElementById("pop");e&&(e.style.display="none"),i.scene.postRender.removeEventListener(ne)}function H(e){if(p.value.label.length){const t=document.getElementById("pop");t&&(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 o=k("el-table-column"),a=k("el-table"),r=k("el-tooltip"),s=k("el-option"),f=k("el-select"),c=k("el-checkbox"),v=k("el-checkbox-group"),S=k("el-collapse-item"),d=k("el-collapse"),m=k("el-button");return b(),M("div",vt,[bt,l("div",ht,[l("div",yt,[l("div",_t,[xt,l("p",{onClick:t[0]||(t[0]=n=>$("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianj_zuoshang.xlsx"))},[P(" \u4E0B\u8F7D \xA0 "),wt])]),l("div",{ref_key:"areaDiv",ref:ve,class:"areaDiv"},null,512),l("div",{ref_key:"leftProgressBarDiv",ref:Ae,class:"ProgressBar"},null,512)]),l("div",Ct,[l("div",St,[Dt,l("p",{onClick:t[1]||(t[1]=n=>$("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianji%20.xlsx"))},[P(" \u4E0B\u8F7D \xA0 "),kt])]),l("div",{ref_key:"typesofDiv",ref:be,class:"typesofDiv"},null,512),l("div",Mt,[h(a,{data:g(le),style:{width:"100%"}},{default:_(()=>[h(o,{prop:"date",label:"\u7C7B\u578B"}),h(o,{prop:"name",label:"\u9762\u79EF"}),h(o,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),l("div",{class:"leftFoldDiv",onClick:t[2]||(t[2]=n=>Xe())},[h(r,{class:"box-item","show-arrow":!1,disabled:g(E),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:_(()=>[g(E)?F("v-if",!0):(b(),M("img",Lt))]),_:1},8,["disabled"]),h(r,{disabled:!g(E),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:_(()=>[g(E)?(b(),M("img",zt)):F("v-if",!0)]),_:1},8,["disabled"])])]),l("div",At,[l("div",Tt,[l("div",Wt,[It,l("p",{onClick:t[3]||(t[3]=n=>$("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/81f3b011-7a5d-4a21-88aa-8ea51142e564_%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%87%BA.xlsx"))},[P(" \u4E0B\u8F7D \xA0 "),Et])]),l("div",{ref_key:"farmlandDiv",ref:he,class:"farmlandDiv"},null,512),F(' ')]),l("div",Bt,[l("div",Ft,[Zt,l("p",{onClick:t[4]||(t[4]=n=>$("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/0c0ff4cf-151a-470e-856a-b0fce0fde997_%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%87%BA.xlsx"))},[P(" \u4E0B\u8F7D \xA0 "),Xt])]),h(f,{"popper-class":"select_city",onChange:t[5]||(t[5]=n=>J(e.item)),modelValue:y.value,"onUpdate:modelValue":t[6]||(t[6]=n=>y.value=n),clearable:"",placeholder:"\u5168\u90E8"},{default:_(()=>[(b(!0),M(ue,null,fe(g(w).arr,n=>(b(),pe(s,{key:n.properties.XZDM,label:n.properties.XZMC,value:n.properties.XZDM},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l("div",{ref_key:"ASdivisionDiv",ref:ye,class:"ASdivision"},null,512)]),l("div",{class:"rightFoldDiv",onClick:t[7]||(t[7]=n=>Pe())},[h(r,{disabled:!g(B),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:_(()=>[g(B)?(b(),M("img",Pt)):F("v-if",!0)]),_:1},8,["disabled"]),h(r,{disabled:g(B),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:_(()=>[g(B)?F("v-if",!0):(b(),M("img",Rt))]),_:1},8,["disabled"])])]),l("div",Nt,[h(ft)]),Ot,h(d,{class:"legend",accordion:""},{default:_(()=>[h(S,{name:"1"},{title:_(()=>[P("\u56FE\u4F8B")]),default:_(()=>[l("div",qt,[h(v,{modelValue:we.value,"onUpdate:modelValue":t[8]||(t[8]=n=>we.value=n),onChange:e.change},{default:_(()=>[(b(!0),M(ue,null,fe(g(Te),(n,z,A)=>(b(),pe(c,{key:A,style:He({backgroundColor:n.color,border:"1px solid value.color",width:"100%"}),"v-model":n.disabled,disabled:n.disabled,label:z},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),l("div",Qt,[l("div",null,Q(_e.value.name)+"\uFF1A",1),l("div",null,Q(_e.value.value)+"\u4EA9",1),l("div",{class:"cancel",onClick:q},"X")]),l("div",Gt,[(b(!0),M(ue,null,fe(g(p).label,(n,z)=>(b(),M("div",{key:z},[l("div",null,Q(n.crop)+"\uFF1A",1),l("div",null,Q((n.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),g(p).XZQMC?(b(),M("div",Vt,[jt,l("div",null,Q(g(p).XZQMC),1)])):F("v-if",!0),l("div",{class:"cancel",onClick:q},"X")]),Z.value?(b(),pe(m,{key:0,class:"back_button",onClick:t[9]||(t[9]=n=>Qe())},{default:_(()=>[P("\u8FD4\u56DE")]),_:1})):F("v-if",!0)])}}},oo=$e(Jt,[["__scopeId","data-v-4e1915e9"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/remoteSense/freeze/index.vue"]]);export{oo as default}; diff --git a/dist/assets/index.78a421aa.js.gz b/dist/assets/index.78a421aa.js.gz deleted file mode 100644 index d79f09e..0000000 Binary files a/dist/assets/index.78a421aa.js.gz and /dev/null differ diff --git a/dist/assets/index.00e7b1c4.js b/dist/assets/index.8227796d.js similarity index 71% rename from dist/assets/index.00e7b1c4.js rename to dist/assets/index.8227796d.js index aede0eb..ab9abe7 100644 --- a/dist/assets/index.00e7b1c4.js +++ b/dist/assets/index.8227796d.js @@ -1 +1 @@ -import{_ as t,r as o,o as n,c as a,e as i,f as l}from"./index.5f349928.js";import{i as u}from"./index.994d4ae3.js";const c={__name:"index",setup(d){const e=o("/stage-api/druid/login.html");return(p,r)=>(n(),a("div",null,[i(l(u),{src:e.value,"onUpdate:src":r[0]||(r[0]=s=>e.value=s)},null,8,["src"])]))}},m=t(c,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/monitor/druid/index.vue"]]);export{m as default}; +import{_ as t,r as o,o as n,c as a,e as i,f as l}from"./index.b3a66a9e.js";import{i as u}from"./index.25818e4c.js";const c={__name:"index",setup(d){const e=o("/stage-api/druid/login.html");return(p,r)=>(n(),a("div",null,[i(l(u),{src:e.value,"onUpdate:src":r[0]||(r[0]=s=>e.value=s)},null,8,["src"])]))}},m=t(c,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/monitor/druid/index.vue"]]);export{m as default}; diff --git a/dist/assets/index.702a7e8c.js b/dist/assets/index.86d1843a.js similarity index 78% rename from dist/assets/index.702a7e8c.js rename to dist/assets/index.86d1843a.js index 722b90a..7cfe6e5 100644 --- a/dist/assets/index.702a7e8c.js +++ b/dist/assets/index.86d1843a.js @@ -1 +1 @@ -import{_ as e,o as t,c as o}from"./index.5f349928.js";const r={};function s(c,n,a,i,p,u){return t(),o("div",null,"\u7389\u7C73")}const l=e(r,[["render",s],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/output/maize/index.vue"]]);export{l as default}; +import{_ as e,o as t,c as o}from"./index.b3a66a9e.js";const r={};function s(c,n,a,i,p,u){return t(),o("div",null,"\u7389\u7C73")}const l=e(r,[["render",s],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/output/maize/index.vue"]]);export{l as default}; diff --git a/dist/assets/index.46cd207e.js b/dist/assets/index.8a99b8e0.js similarity index 78% rename from dist/assets/index.46cd207e.js rename to dist/assets/index.8a99b8e0.js index ac4e3c0..ff996c6 100644 --- a/dist/assets/index.46cd207e.js +++ b/dist/assets/index.8a99b8e0.js @@ -1 +1 @@ -import{_ as e,o,c as s}from"./index.5f349928.js";const t={};function r(c,n,a,p,u,_){return o(),s("div",null," \u5927\u8C46 ")}const l=e(t,[["render",r],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/output/soybean/index.vue"]]);export{l as default}; +import{_ as e,o,c as s}from"./index.b3a66a9e.js";const t={};function r(c,n,a,p,u,_){return o(),s("div",null," \u5927\u8C46 ")}const l=e(t,[["render",r],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/output/soybean/index.vue"]]);export{l as default}; diff --git a/dist/assets/index.9003591e.js b/dist/assets/index.9003591e.js deleted file mode 100644 index 179f317..0000000 --- a/dist/assets/index.9003591e.js +++ /dev/null @@ -1 +0,0 @@ -import{z as ge,_ as $e,r as c,B as Ue,C as Ye,D as He,F as de,d as k,o as v,c as M,l,m as X,e as h,w as _,f as g,g as Z,J as ue,K as fe,k as pe,Q as Ke,x as Q,y as et,p as tt,q as ot}from"./index.5f349928.js";import ee from"./downloads.e955445d.js";import{_ as te}from"./close1.45635d81.js";import{g as at,i as rt,a as lt,h as st,_ as it,b as nt,c as ct,d as dt,e as ut,f as ft}from"./linesGL.badda9a7.js";import{i as K,L as R}from"./index.c9f5bd8b.js";import{T as pt}from"./TimeLine.ca858622.js";import{u as me}from"./useEcharts.f096c4b4.js";function mt(x){return ge({url:"equipment/areaStatisticsDrought",method:"get",params:x})}function gt(x){return ge({url:"equipment/proportionOfArea",method:"get",params:x})}function bt(x){return ge({url:"equipment/statisticsOfArea",method:"get",params:x})}const L=x=>(tt("data-v-e73613e6"),x=x(),ot(),x),vt={class:"center"},ht=L(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),yt={class:"leftWra"},_t={class:"leftTop"},xt={class:"title"},wt=L(()=>l("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),Ct=L(()=>l("img",{src:ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),St={class:"leftbottom"},Dt={class:"title"},kt=L(()=>l("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),Mt=L(()=>l("img",{src:ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Lt={class:"tableDiv"},Wt={key:0,src:te,alt:""},zt={key:0,class:"imgrotate",src:te,alt:""},At={class:"rightWra"},Tt={class:"rightTop"},It={class:"title"},Et=L(()=>l("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Bt=L(()=>l("img",{src:ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Zt={class:"rightbottom"},Ft={class:"title"},Pt=L(()=>l("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Xt=L(()=>l("img",{src:ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Rt={key:0,src:te,alt:""},Nt={key:0,class:"imgrotate",src:te,alt:""},Ot={class:"bottom_center"},qt=et('',1),Qt={class:"mt-4"},Gt={id:"popup"},Vt={id:"pop"},jt={key:0},Jt=L(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),$t={__name:"index",setup(x){let i=c(null);const be=c(null),ve=c(null),he=c(null);c(null);const ye=c(null),y=c("370211"),ze=c(null);let w=Ue({arr:[],brr:[],crr:[]});const _e=c({name:"",value:""}),xe=c([]),F=c(!1);let E=c(!1),B=c(!1);const we=c(["false"]);let oe=c([]),G=c([]),ae=c([]),re=c(0),Ce=["\u9AD8\u6807\u51C6\u519C\u75301.0","\u9AD8\u6807\u51C6\u519C\u75302.0","\u9AD8\u6807\u51C6\u519C\u75303.0","\u9AD8\u6807\u51C6\u519C\u75304.0","\u9AD8\u6807\u51C6\u519C\u75305.0","\u9AD8\u6807\u51C6\u519C\u75306.0","\u9AD8\u6807\u51C6\u519C\u75307.0"],W={\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[],\u7279\u5927\u5E72\u65F1:[],\u9002\u5B9C:[],\u6E7F\u6DA6:[]},Ae={\u8F7B\u5FAE\u5E72\u65F1:{color:"rgba(9, 187, 222, 1)",disabled:!1},\u4E2D\u5EA6\u5E72\u65F1:{color:"rgba(255, 235, 59, 1)",disabled:!1},\u4E25\u91CD\u5E72\u65F1:{color:"rgba(234, 165, 93, 1)",disabled:!1},\u7279\u5927\u5E72\u65F1:{color:"rgba(215, 25, 28, 1)",disabled:!1}};Ye(()=>w.arr,e=>{console.log("val:",e)});var V={title:[]};let T={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},le=c([]);He(()=>{De("370211"),ke("370211"),Re(),Oe(),Me(),Ne(),Ie(),U(),Le(),O(),Be();let e=document.querySelector(".leftWra");e&&(e.style.transform="translate(-107%,0)");let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)"});const Te={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 Ie(){i=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({...Te})}),i.cesiumWidget.creditContainer.style.display="none",ne("shuzisannong:huangdaoqu_town","tl"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),Ze(),je()}function se(e,t,o){e.forEach(a=>{let r=[];a[0].forEach(s=>{r.push(s[0]),r.push(s[1])}),i.entities.add({name:t,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(r),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:o?Cesium.Color.fromCssColorString(o):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function Ee(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 Be(){de({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),xe.value=e.data.features}).catch(e=>{})}let p=c({label:[]}),N="";function Ze(){var e=new Cesium.ScreenSpaceEventHandler(i.canvas);e.setInputAction(function(t){var o=i.camera.getPickRay(t.position),a=i.scene.globe.pick(o,i.scene);if(a){let r=Cesium.Cartographic.fromCartesian(a);if(r){let s=new Cesium.Cartesian2,f=i.camera.positionCartographic.height,d=Ee(f);const b=i.imageryLayers._layers,S=b.findIndex(u=>u._imageryProvider._layers&&u._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(S>-1){const u=b[S];let m=u._imageryProvider;if(m&&m.ready&&m._layers&&u.show===!0){s=m.tilingScheme.positionToTileXY(r,d,s);let n=m.pickFeatures(s.x,s.y,d,r.longitude,r.latitude);n&&n.then(z=>{if(z.length>0){let D=z[0];if(D.properties&&D.properties.XZDM)if(console.log("XZDM:",N),console.log("newData.properties.XZDM:",D.properties.XZDM),N!==D.properties.XZDM){F.value=!0,N=D.properties.XZDM,y.value=N,J&&J();let I=D.data;i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(I.bbox[0],I.bbox[1],I.bbox[2],I.bbox[3]),duration:2}),P("townLine"),se(I.geometry&&I.geometry.coordinates,"townLine","yellow"),C(["village_CQL"]),Se(`XZDM=${D.properties.XZDM}`,"village_CQL");let H=i.entities._entities._array;for(var A=H.length-1;A>=0;A--)if(H[A]._name&&H[A]._name==="point"+D.properties.XZDM){let Je=H[A]._info;p.value=Je,console.log(p.value,"------------------"),Y(t.position),i.scene.postRender.addEventListener(ce)}P("villageLine"),j=""}else Fe(b,s,d,r,t);else C(["village_CQL"]),q()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let j="";function Fe(e,t,o,a,r){const s=e.findIndex(f=>f._imageryProvider._layers&&f._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(s>-1){const f=e[s];let d=f._imageryProvider;if(d&&d.ready&&d._layers&&f.show===!0){t=d.tilingScheme.positionToTileXY(a,o,t);let b=d.pickFeatures(t.x,t.y,o,a.longitude,a.latitude);b&&b.then(S=>{if(S.length>0){let u=S[0];if(console.log(u),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(u.data.bbox[0],u.data.bbox[1],u.data.bbox[2],u.data.bbox[3]),duration:2}),u.properties&&u.properties.XZQDM&&j!==u.properties.XZQDM){j=u.properties.XZQDM;let m=u.data;if(P("villageLine"),se(m.geometry&&m.geometry.coordinates,"villageLine","yellow"),u.properties.XZQDM==="370211104217"){const n=Cesium.Rectangle.fromDegrees(m.bbox[0],m.bbox[1],m.bbox[2],m.bbox[3]),z=Cesium.Rectangle.center(n);let A=Cesium.Math.toDegrees(z.longitude),D=Cesium.Math.toDegrees(z.latitude),I={lon:A,lat:D,...m.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}]};p.value=I,Y(r.position),i.scene.postRender.addEventListener(ce)}}}})}}}function Se(e,t){let o=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:e}});o.customName=t,i.imageryLayers.addImageryProvider(o)}function C(e,t){if(i){const o=i.imageryLayers._layers;for(let a=o.length-1;a>=0;a--)e.forEach(r=>{o[a]._imageryProvider&&o[a]._imageryProvider.customName&&(t?o[a]._imageryProvider.customName.indexOf(r)>-1&&i.imageryLayers.remove(o[a]):o[a]._imageryProvider.customName===r&&i.imageryLayers.remove(o[a]))})}}function P(e){if(i){let o=i.entities._entities._array;for(var t=o.length-1;t>=0;t--)o[t]._name&&o[t]._name===e&&i.entities.remove(o[t])}}function Pe(){if(E.value=!E.value,E.value){let e=document.querySelector(".leftWra");e&&(e.style.transform="translate(0,0)")}else{let e=document.querySelector(".leftWra");e&&(e.style.transform="translate(-107%,0)")}}function Xe(){if(B.value=!B.value,B.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 De=e=>{oe=c([]),G=c([]),mt({divisions:e}).then(t=>{t.data.forEach(o=>{oe.value.push(o.level),G.value.push((o.area/666.67).toFixed(2))}),ie()})},ke=e=>{ae=c([]),le=c([]),re=c(0),gt({divisions:e}).then(t=>{t.data.forEach(o=>{re.value+=Number(o.area),ae.value.push({name:o.level,value:(o.area/666.67).toFixed(2)}),le.value.push({date:o.level,name:`${(o.area/666.67).toFixed(2)}\u4EA9`,address:`${(o.percentage*100).toFixed(2)}%`})}),U()})},Re=()=>{bt().then(e=>{Ce.forEach((t,o)=>{let a=e.data.map(r=>{if(t===r.region)return r});Object.keys(W).forEach(r=>{let s=0;a.findIndex(d=>(d&&d.level===r&&(s=d.area),d&&d.level===r))>-1?W[r].push(s):W[r].push(0)})}),Le()})},Me=()=>{at().then(e=>{w.arr=e.features.sort((a,r)=>a.properties.XZMC.length-r.properties.XZMC.length),w.arr.unshift({bbox:[119.5091,35.5671,120.3285,36.1455],properties:{XZDM:"370211",XZMC:"\u5168\u90E8"}});let t=[...e.features],o=[];t.splice(0,1),t.forEach(a=>{o.push(a.properties.XZMC)}),V.title=[...Object.values(o)],O()})},Ne=()=>{rt().then(e=>{w.brr=e.features})},Oe=()=>{lt().then(e=>{w.crr=e.features,V.title.forEach((t,o)=>{let a=e.features.map(r=>{if(t===r.properties.town)return r.properties});Object.keys(T).forEach(r=>{const s=a.findIndex(f=>f&&f.crop===r);s>-1?T[r].push(a[s].Shape_Area):T[r].push(null)})}),O()})},J=()=>{if(w.arr.forEach(a=>{a.properties.XZDM==y.value&&(De(y.value),ke(y.value))}),y.value=="370211"){C(["village_CQL"]),N=null,C(["aaa"]),Me(),q(),O(),ie(),U();return}let e=[...w.arr];console.log("arr:",e),e.forEach(a=>{a.properties.XZDM==y.value&&i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),duration:2});let r=[...w.brr],s=[];r.forEach(f=>{f.properties.XZDM==y.value&&s.push(f.properties.XZQMC)}),V.title=[...Object.values(s)]}),O(),ie(),U();const o=[...w.arr].find(a=>a.properties.XZDM===y.value);o&&(P("townLine"),se(o.geometry.coordinates,"townLine","yellow")),C(["aaa"]),Se(`XZDM=${y.value}`,"aaa"),st({time:"2023-04-26",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(a=>{let r=[];a.data.map((s,f)=>{s.region==o.properties.XZMC&&r.push({crop:s.type,Shape_Area:s.area})}),p.value={label:r},console.log(),console.log(r),Y({x:642,y:312})})},$=e=>{qe(e)},qe=e=>{let t=document.createElement("a");t.style.display="none",t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)};function ie(){const e=K(be.value);console.log(G.value);var t={textStyle:{fontSize:0},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!0,top:"5%",data:["\u9762\u79EF"],right:"5%",icon:"rect",textStyle:{fontSize:14,color:"rgba(255, 255, 255, 0.7)"}},xAxis:{nameTextStyle:{color:"#c0c3cd",padding:[0,0,-10,0],fontSize:14},axisLabel:{color:"rgba(255, 255, 255, 0.7)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14},axisTick:{lineStyle:{color:"#0B1535",width:1},show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#384267",width:1,type:"dashed"},show:!0},data:oe.value,type:"category"},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255,255,255,0.7)"},splitLine:{lineStyle:{type:"dashed"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{data:G.value,name:"\u9762\u79EF",type:"bar",barMaxWidth:"auto",barWidth:35,itemStyle:{color:{x:0,y:0,x2:0,y2:1,type:"linear",global:!1,colorStops:[{offset:0,color:"rgba(45, 204, 177, 1)"},{offset:1,color:"rgba(71, 179, 161, 0)"}]}},label:{normal:{show:!1,fontSize:14,color:"#ffffff",position:"top"}}}]};t&&e.setOption(t),window.addEventListener("resize",function(){e.resize()})}function U(){const e=K(ve.value);var t=ae.value;let o={color:["rgba(9, 187, 222, 0.8)","rgba(255, 235, 59, 0.8)","rgba(234, 165, 93, 0.8)","rgba(215, 25, 28, 0.8)","#585247","#7F6AAD","#009D85","rgba(250,250,250,0.3)"],title:{text:"\u603B\u9762\u79EF",subtext:`${(re.value/666.67).toFixed(2)}\u4EA9`,textStyle:{color:"#f2f2f2",fontSize:14},subtextStyle:{fontSize:14,color:["#ff9d19"]},x:"center",y:"center"},grid:{top:0},legend:{orient:"vertical",top:"middle",right:"2%",textStyle:{color:"#f2f2f2",fontSize:14},icon:"roundRect",data:t},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a}
{b} : {c}\u4EA9
\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",data:t},{radius:["50%","54%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1},emphasis:{show:!1}},labelLine:{normal:{show:!1},emphasis:{show:!1}},animation:!1,tooltip:{show:!1},data:[{value:1,itemStyle:{color:"rgba(250,250,250,0.3)"}}]},{name:"\u5916\u8FB9\u6846",type:"pie",clockWise:!1,hoverAnimation:!1,center:["50%","50%"],radius:["85%","85%"],tooltip:{show:!1},label:{normal:{show:!1}},data:[{value:9,name:"",itemStyle:{normal:{borderWidth:2,borderColor:"#0b5263"}}}]}]};me(e,o)}function Le(){const e=K(he.value);let t={title:{text:"",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},xAxis:{type:"category",data:Ce,axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)",width:1,type:"solid"},axisLabel:{color:"rgba(255, 255, 255, 0.7)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14}}},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255, 255, 255, 0.7)"},splitLine:{lineStyle:{type:"solid",color:"rgba(255, 255, 255, 0.3)"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{name:"\u8F7B\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:W.\u8F7B\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(9, 187, 222, 1)",color:new R(0,0,0,1,[{offset:0,color:"rgba(9, 187, 222, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}])}}},{name:"\u4E2D\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:W.\u4E2D\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 235, 59, 1)",color:new R(0,0,0,1,[{offset:0,color:"rgba(255, 235, 59, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 0.8)"}])}}},{name:"\u4E25\u91CD\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:W.\u91CD\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(234, 165, 93, 1)",color:new R(0,0,0,1,[{offset:0,color:"rgba(234, 165, 93, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}])}}},{name:"\u7279\u5927\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:W.\u7279\u5927\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(215, 25, 28, 1)",color:new R(0,0,0,1,[{offset:0,color:"rgba(215, 25, 28, 0.8)"},{offset:1,color:"rgba(215, 25, 28, 0.8)"}])}}},{name:"\u9002\u5B9C",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:W.\u9002\u5B9C,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(23, 194, 180, 1)",color:new R(0,0,0,1,[{offset:0,color:"rgba(23, 194, 180, 0.7)"},{offset:1,color:"rgba(23, 194, 180, 0.7)"}])}}},{name:"\u6E7F\u6DA6",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:W.\u6E7F\u6DA6,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(9, 222, 133, 1)",color:new R(0,0,0,1,[{offset:0,color:"rgba(9, 222, 133, 0.7)"},{offset:1,color:"rgba(9, 222, 133, 0.7)"}])}}}]};e.on("click",function(o){console.log(o.name)}),e.on("click",o=>Ge(o)),t&&e.setOption(t,{notMerge:!0,grid:{bottom:20}}),me(e,t)}function ne(e,t){let o=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:e,parameters:{service:"WMS",format:"image/png",transparent:!0}});o.customName=t;let a=i.imageryLayers.addImageryProvider(o);t.indexOf("gbznt")>-1&&(i.imageryLayers.lowerToBottom(a),i.imageryLayers.raise(a))}function Qe(){delete p.value.XZQMC,C(["gbznt"],!0),C(["aaa"]),y.value="370211",J(),F.value==="1"&&(console.log(F.value),ne("shuzisannong:huangdaoqu_town","tl")),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),F.value=!1,q()}function Ge(e){delete p.value,C(["huangdaoqu_town"],!0),C(["tl"],!0);let t="shuzisannong:farmland",o=!1;const a=i.imageryLayers._layers;for(let s=a.length-1;s>=0;s--)a[s]&&a[s]._imageryProvider.customName&&a[s]._imageryProvider.customName===t+"gbznt"&&(o=!0);o||(ne(t,t+"gbznt"),p.value.label=[{crop:"\u5C0F\u9EA6",Shape_Area:"53000"},{crop:"\u5730\u74DC",Shape_Area:"50000"}]),xe.value.forEach(s=>{console.log("it.properties.name:",s.properties.name),console.log("item.name:",e.name),s.properties.name===e.name&&(console.log("dingwei"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(s.bbox[0],s.bbox[1],s.bbox[2],s.bbox[3]),duration:2}))}),F.value="1",Y({x:642,y:312})}function O(){const e=K(ye.value);var t={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},legend:{top:"5%",left:"10%",icon:"rect",textStyle:{color:"#fff"}},tooltip:{formatter:function(o){return o.seriesName+''+(o.value/666.67).toFixed(2)+"\u4EA9"}},dataZoom:[{type:"slider",show:!1,zoomLock:!0,width:8,yAxisIndex:[0],bottom:30,top:20,right:10,startValue:0,endValue:4,handleIcon:"M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z",handleSize:"100%",handleStyle:{color:"#DBDBDB",height:"100%"},backgroundColor:"transparent",fillerColor:"#DBDBDB",textStyle:{color:"transparent"},dataBackground:{lineStyle:{color:"transparent"},areaStyle:{color:"transparent"}},borderColor:"transparent"},{type:"inside",id:"insideY",yAxisIndex:0,start:0,end:50,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"category",axisTick:{show:!1},axisLine:{show:!1,lineStyle:{color:"#cdd3ee"}},splitLine:{show:!1},axisLabel:{show:!0,fontSize:12,color:"rgba(255, 255, 255, 1)",formatter:"{value}"},data:V.title,inverse:!0}],series:[{type:"bar",name:"\u7389\u7C73",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u7389\u7C73",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(4, 247, 227, 0.9)"},{offset:1,color:"rgba(4, 247, 227, 0.25)"}]}},data:T.\u7389\u7C73},{type:"bar",name:"\u5927\u8C46",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u5927\u8C46",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(143, 186, 243, 0.9)"},{offset:1,color:"rgba(143, 186, 243, 0.3)"}]}},data:T.\u5927\u8C46},{type:"bar",name:"\u82B1\u751F",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u82B1\u751F",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(4, 247, 227, 0.9)"},{offset:1,color:"rgba(4, 247, 227, 0.25)"}]}},data:T.\u82B1\u751F},{type:"bar",name:"\u5C0F\u9EA6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u5C0F\u9EA6",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(33, 187, 251, 0.9)"},{offset:1,color:"rgba(33, 187, 251, 0.25)"}]}},data:T.\u5C0F\u9EA6},{type:"bar",name:"\u84DD\u8393",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u84DD\u8393",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(14, 223, 255, 0.9)"},{offset:1,color:"rgba(14, 223, 255, 0.25)"}]}},data:T.\u84DD\u8393}]};me(e,t)}function Ve(){let e=We.value;console.log("fl:",e),de({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,r)=>{const s=Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),f=Cesium.Rectangle.center(s);let d=Cesium.Math.toDegrees(f.longitude),b=Cesium.Math.toDegrees(f.latitude);a.properties.XZDM==="370211011"?(d=120.0863,b=35.941):a.properties.XZDM==="370211003"&&(d=120.243682,b=35.97123201);const S=e[a.properties.XZMC];let u=[];S&&(u=S.map((m,n)=>m.properties)),i.entities.add({name:"point"+a.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(d,b),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:d,lat:b}})})}).catch(t=>{})}let We=c({});function je(){de({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,o={};t.forEach(a=>{let r=a.properties.town;o[r]?o[r].push(a):o[r]=[a]}),We.value=o,Ve()}).catch(e=>{})}function ce(){if(p.value&&p.value.lon&&p.value.lat){const t=Cesium.Cartesian3.fromDegrees(Number(p.value.lon),Number(p.value.lat),0);var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.scene,t);if(Cesium.defined(e)){const o=document.getElementById("pop");o&&(o.style.top=e.y-10+"px",o.style.left=e.x+10+"px")}}}function q(){delete p.value.XZQMC,j="",C(["village_CQL"]),P("villageLine"),P("townLine");const e=document.getElementById("pop");e&&(e.style.display="none"),i.scene.postRender.removeEventListener(ce)}function Y(e){if(p.value.label.length){const t=document.getElementById("pop");t&&(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 o=k("el-table-column"),a=k("el-table"),r=k("el-tooltip"),s=k("el-option"),f=k("el-select"),d=k("el-checkbox"),b=k("el-checkbox-group"),S=k("el-collapse-item"),u=k("el-collapse"),m=k("el-button");return v(),M("div",vt,[ht,l("div",yt,[l("div",_t,[l("div",xt,[wt,l("p",{onClick:t[0]||(t[0]=n=>$("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianj_zuoshang.xlsx"))},[X(" \u4E0B\u8F7D \xA0 "),Ct])]),l("div",{ref_key:"areaDiv",ref:be,class:"areaDiv"},null,512),l("div",{ref_key:"leftProgressBarDiv",ref:ze,class:"ProgressBar"},null,512)]),l("div",St,[l("div",Dt,[kt,l("p",{onClick:t[1]||(t[1]=n=>$("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianji%20.xlsx"))},[X(" \u4E0B\u8F7D \xA0 "),Mt])]),l("div",{ref_key:"typesofDiv",ref:ve,class:"typesofDiv"},null,512),l("div",Lt,[h(a,{data:g(le),style:{width:"100%"}},{default:_(()=>[h(o,{prop:"date",label:"\u7C7B\u578B"}),h(o,{prop:"name",label:"\u9762\u79EF"}),h(o,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),l("div",{class:"leftFoldDiv",onClick:t[2]||(t[2]=n=>Pe())},[h(r,{class:"box-item","show-arrow":!1,disabled:g(E),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:_(()=>[g(E)?Z("v-if",!0):(v(),M("img",Wt))]),_:1},8,["disabled"]),h(r,{disabled:!g(E),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:_(()=>[g(E)?(v(),M("img",zt)):Z("v-if",!0)]),_:1},8,["disabled"])])]),l("div",At,[l("div",Tt,[l("div",It,[Et,l("p",{onClick:t[3]||(t[3]=n=>$("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/81f3b011-7a5d-4a21-88aa-8ea51142e564_%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%87%BA.xlsx"))},[X(" \u4E0B\u8F7D \xA0 "),Bt])]),l("div",{ref_key:"farmlandDiv",ref:he,class:"farmlandDiv"},null,512),Z(' ')]),l("div",Zt,[l("div",Ft,[Pt,l("p",{onClick:t[4]||(t[4]=n=>$("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/0c0ff4cf-151a-470e-856a-b0fce0fde997_%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%87%BA.xlsx"))},[X(" \u4E0B\u8F7D \xA0 "),Xt])]),h(f,{"popper-class":"select_city",onChange:t[5]||(t[5]=n=>J(e.item)),modelValue:y.value,"onUpdate:modelValue":t[6]||(t[6]=n=>y.value=n),clearable:"",placeholder:"\u5168\u90E8"},{default:_(()=>[(v(!0),M(ue,null,fe(g(w).arr,n=>(v(),pe(s,{key:n.properties.XZDM,label:n.properties.XZMC,value:n.properties.XZDM},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l("div",{ref_key:"ASdivisionDiv",ref:ye,class:"ASdivision"},null,512)]),l("div",{class:"rightFoldDiv",onClick:t[7]||(t[7]=n=>Xe())},[h(r,{disabled:!g(B),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:_(()=>[g(B)?(v(),M("img",Rt)):Z("v-if",!0)]),_:1},8,["disabled"]),h(r,{disabled:g(B),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:_(()=>[g(B)?Z("v-if",!0):(v(),M("img",Nt))]),_:1},8,["disabled"])])]),l("div",Ot,[h(pt)]),qt,h(u,{class:"legend",accordion:""},{default:_(()=>[h(S,{name:"1"},{title:_(()=>[X("\u56FE\u4F8B")]),default:_(()=>[l("div",Qt,[h(b,{modelValue:we.value,"onUpdate:modelValue":t[8]||(t[8]=n=>we.value=n),onChange:e.change},{default:_(()=>[(v(!0),M(ue,null,fe(g(Ae),(n,z,A)=>(v(),pe(d,{key:A,style:Ke({backgroundColor:n.color,border:"1px solid value.color",width:"100%"}),"v-model":n.disabled,disabled:n.disabled,label:z},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),l("div",Gt,[l("div",null,Q(_e.value.name)+"\uFF1A",1),l("div",null,Q(_e.value.value)+"\u4EA9",1),l("div",{class:"cancel",onClick:q},"X")]),l("div",Vt,[(v(!0),M(ue,null,fe(g(p).label,(n,z)=>(v(),M("div",{key:z},[l("div",null,Q(n.crop)+"\uFF1A",1),l("div",null,Q((n.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),g(p).XZQMC?(v(),M("div",jt,[Jt,l("div",null,Q(g(p).XZQMC),1)])):Z("v-if",!0),l("div",{class:"cancel",onClick:q},"X")]),F.value?(v(),pe(m,{key:0,class:"back_button",onClick:t[9]||(t[9]=n=>Qe())},{default:_(()=>[X("\u8FD4\u56DE")]),_:1})):Z("v-if",!0)])}}},ao=$e($t,[["__scopeId","data-v-e73613e6"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/remoteSense/drought/index.vue"]]);export{ao as default}; diff --git a/dist/assets/index.9003591e.js.gz b/dist/assets/index.9003591e.js.gz deleted file mode 100644 index 2c5caba..0000000 Binary files a/dist/assets/index.9003591e.js.gz and /dev/null differ diff --git a/dist/assets/index.9194d0dc.js b/dist/assets/index.9194d0dc.js new file mode 100644 index 0000000..4b89a08 --- /dev/null +++ b/dist/assets/index.9194d0dc.js @@ -0,0 +1 @@ +import{_ as ye,O as ge,r as m,A as ve,U as be,d as n,T as A,o as u,c as I,G as f,H as L,f as a,e,w as l,j as Q,I as j,J as M,k as _,P as $,m as r,l as P,x as q,g as he,s as we,Y as ke}from"./index.b3a66a9e.js";import{l as Ve,g as xe,u as Ce,a as Te,d as Ne,r as Se}from"./type.c70a9fe5.js";const De={class:"app-container"},Ue={class:"dialog-footer"},Re=ge({name:"Dict"}),Ie=Object.assign(Re,{setup($e){const{proxy:p}=we(),{sys_normal_disable:T}=p.useDict("sys_normal_disable"),K=m([]),g=m(!1),N=m(!0),x=m(!0),S=m([]),Y=m(!0),B=m(!0),D=m(0),U=m(""),k=m([]),O=ve({form:{},queryParams:{pageNum:1,pageSize:10,dictName:void 0,dictType:void 0,status:void 0},rules:{dictName:[{required:!0,message:"\u5B57\u5178\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],dictType:[{required:!0,message:"\u5B57\u5178\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}}),{queryParams:d,form:s,rules:G}=be(O);function b(){N.value=!0,Ve(p.addDateRange(d.value,k.value)).then(i=>{K.value=i.rows,D.value=i.total,N.value=!1})}function H(){g.value=!1,R()}function R(){s.value={dictId:void 0,dictName:void 0,dictType:void 0,status:"0",remark:void 0},p.resetForm("dictRef")}function C(){d.value.pageNum=1,b()}function J(){k.value=[],p.resetForm("queryRef"),C()}function W(){R(),g.value=!0,U.value="\u6DFB\u52A0\u5B57\u5178\u7C7B\u578B"}function X(i){S.value=i.map(o=>o.dictId),Y.value=i.length!=1,B.value=!i.length}function E(i){R();const o=i.dictId||S.value;xe(o).then(h=>{s.value=h.data,g.value=!0,U.value="\u4FEE\u6539\u5B57\u5178\u7C7B\u578B"})}function Z(){p.$refs.dictRef.validate(i=>{i&&(s.value.dictId!=null?Ce(s.value).then(o=>{p.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),g.value=!1,b()}):Te(s.value).then(o=>{p.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),g.value=!1,b()}))})}function F(i){const o=i.dictId||S.value;p.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u5B57\u5178\u7F16\u53F7\u4E3A"'+o+'"\u7684\u6570\u636E\u9879\uFF1F').then(function(){return Ne(o)}).then(()=>{b(),p.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function ee(){p.download("system/dict/type/export",{...d.value},`dict_${new Date().getTime()}.xlsx`)}function te(){Se().then(()=>{p.$modal.msgSuccess("\u5237\u65B0\u6210\u529F"),ke().cleanDict()})}return b(),(i,o)=>{const h=n("el-input"),y=n("el-form-item"),le=n("el-option"),ae=n("el-select"),oe=n("el-date-picker"),c=n("el-button"),z=n("el-form"),V=n("el-col"),ne=n("right-toolbar"),de=n("el-row"),v=n("el-table-column"),se=n("router-link"),ie=n("dict-tag"),ue=n("el-table"),re=n("pagination"),pe=n("el-radio"),ce=n("el-radio-group"),me=n("el-dialog"),w=A("hasPermi"),fe=A("loading");return u(),I("div",De,[f(e(z,{model:a(d),ref:"queryRef",inline:!0,"label-width":"68px"},{default:l(()=>[e(y,{label:"\u5B57\u5178\u540D\u79F0",prop:"dictName"},{default:l(()=>[e(h,{modelValue:a(d).dictName,"onUpdate:modelValue":o[0]||(o[0]=t=>a(d).dictName=t),placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u540D\u79F0",clearable:"",style:{width:"240px"},onKeyup:Q(C,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(y,{label:"\u5B57\u5178\u7C7B\u578B",prop:"dictType"},{default:l(()=>[e(h,{modelValue:a(d).dictType,"onUpdate:modelValue":o[1]||(o[1]=t=>a(d).dictType=t),placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u7C7B\u578B",clearable:"",style:{width:"240px"},onKeyup:Q(C,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(y,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(ae,{modelValue:a(d).status,"onUpdate:modelValue":o[2]||(o[2]=t=>a(d).status=t),placeholder:"\u5B57\u5178\u72B6\u6001",clearable:"",style:{width:"240px"}},{default:l(()=>[(u(!0),I(j,null,M(a(T),t=>(u(),_(le,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(y,{label:"\u521B\u5EFA\u65F6\u95F4",style:{width:"308px"}},{default:l(()=>[e(oe,{modelValue:a(k),"onUpdate:modelValue":o[3]||(o[3]=t=>$(k)?k.value=t:null),"value-format":"YYYY-MM-DD",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(y,null,{default:l(()=>[e(c,{type:"primary",icon:"Search",onClick:C},{default:l(()=>[r("\u641C\u7D22")]),_:1}),e(c,{icon:"Refresh",onClick:J},{default:l(()=>[r("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[L,a(x)]]),e(de,{gutter:10,class:"mb8"},{default:l(()=>[e(V,{span:1.5},{default:l(()=>[f((u(),_(c,{type:"primary",plain:"",icon:"Plus",onClick:W},{default:l(()=>[r("\u65B0\u589E")]),_:1})),[[w,["system:dict:add"]]])]),_:1},8,["span"]),e(V,{span:1.5},{default:l(()=>[f((u(),_(c,{type:"success",plain:"",icon:"Edit",disabled:a(Y),onClick:E},{default:l(()=>[r("\u4FEE\u6539")]),_:1},8,["disabled"])),[[w,["system:dict:edit"]]])]),_:1},8,["span"]),e(V,{span:1.5},{default:l(()=>[f((u(),_(c,{type:"danger",plain:"",icon:"Delete",disabled:a(B),onClick:F},{default:l(()=>[r("\u5220\u9664")]),_:1},8,["disabled"])),[[w,["system:dict:remove"]]])]),_:1},8,["span"]),e(V,{span:1.5},{default:l(()=>[f((u(),_(c,{type:"warning",plain:"",icon:"Download",onClick:ee},{default:l(()=>[r("\u5BFC\u51FA")]),_:1})),[[w,["system:dict:export"]]])]),_:1},8,["span"]),e(V,{span:1.5},{default:l(()=>[f((u(),_(c,{type:"danger",plain:"",icon:"Refresh",onClick:te},{default:l(()=>[r("\u5237\u65B0\u7F13\u5B58")]),_:1})),[[w,["system:dict:remove"]]])]),_:1},8,["span"]),e(ne,{showSearch:a(x),"onUpdate:showSearch":o[4]||(o[4]=t=>$(x)?x.value=t:null),onQueryTable:b},null,8,["showSearch"])]),_:1}),f((u(),_(ue,{data:a(K),onSelectionChange:X},{default:l(()=>[e(v,{type:"selection",width:"55",align:"center"}),e(v,{label:"\u5B57\u5178\u7F16\u53F7",align:"center",prop:"dictId"}),e(v,{label:"\u5B57\u5178\u540D\u79F0",align:"center",prop:"dictName","show-overflow-tooltip":!0}),e(v,{label:"\u5B57\u5178\u7C7B\u578B",align:"center","show-overflow-tooltip":!0},{default:l(t=>[e(se,{to:"/system/dict-data/index/"+t.row.dictId,class:"link-type"},{default:l(()=>[P("span",null,q(t.row.dictType),1)]),_:2},1032,["to"])]),_:1}),e(v,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:l(t=>[e(ie,{options:a(T),value:t.row.status},null,8,["options","value"])]),_:1}),e(v,{label:"\u5907\u6CE8",align:"center",prop:"remark","show-overflow-tooltip":!0}),e(v,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180"},{default:l(t=>[P("span",null,q(i.parseTime(t.row.createTime)),1)]),_:1}),e(v,{label:"\u64CD\u4F5C",align:"center",width:"160","class-name":"small-padding fixed-width"},{default:l(t=>[f((u(),_(c,{link:"",type:"primary",icon:"Edit",onClick:_e=>E(t.row)},{default:l(()=>[r("\u4FEE\u6539")]),_:2},1032,["onClick"])),[[w,["system:dict:edit"]]]),f((u(),_(c,{link:"",type:"primary",icon:"Delete",onClick:_e=>F(t.row)},{default:l(()=>[r("\u5220\u9664")]),_:2},1032,["onClick"])),[[w,["system:dict:remove"]]])]),_:1})]),_:1},8,["data"])),[[fe,a(N)]]),f(e(re,{total:a(D),page:a(d).pageNum,"onUpdate:page":o[5]||(o[5]=t=>a(d).pageNum=t),limit:a(d).pageSize,"onUpdate:limit":o[6]||(o[6]=t=>a(d).pageSize=t),onPagination:b},null,8,["total","page","limit"]),[[L,a(D)>0]]),he(" \u6DFB\u52A0\u6216\u4FEE\u6539\u53C2\u6570\u914D\u7F6E\u5BF9\u8BDD\u6846 "),e(me,{title:a(U),modelValue:a(g),"onUpdate:modelValue":o[11]||(o[11]=t=>$(g)?g.value=t:null),width:"500px","append-to-body":""},{footer:l(()=>[P("div",Ue,[e(c,{type:"primary",onClick:Z},{default:l(()=>[r("\u786E \u5B9A")]),_:1}),e(c,{onClick:H},{default:l(()=>[r("\u53D6 \u6D88")]),_:1})])]),default:l(()=>[e(z,{ref:"dictRef",model:a(s),rules:a(G),"label-width":"80px"},{default:l(()=>[e(y,{label:"\u5B57\u5178\u540D\u79F0",prop:"dictName"},{default:l(()=>[e(h,{modelValue:a(s).dictName,"onUpdate:modelValue":o[7]||(o[7]=t=>a(s).dictName=t),placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(y,{label:"\u5B57\u5178\u7C7B\u578B",prop:"dictType"},{default:l(()=>[e(h,{modelValue:a(s).dictType,"onUpdate:modelValue":o[8]||(o[8]=t=>a(s).dictType=t),placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(y,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(ce,{modelValue:a(s).status,"onUpdate:modelValue":o[9]||(o[9]=t=>a(s).status=t)},{default:l(()=>[(u(!0),I(j,null,M(a(T),t=>(u(),_(pe,{key:t.value,label:t.value},{default:l(()=>[r(q(t.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(y,{label:"\u5907\u6CE8",prop:"remark"},{default:l(()=>[e(h,{modelValue:a(s).remark,"onUpdate:modelValue":o[10]||(o[10]=t=>a(s).remark=t),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}}),Ke=ye(Ie,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/system/dict/index.vue"]]);export{Ke as default}; diff --git a/dist/assets/index.9194d0dc.js.gz b/dist/assets/index.9194d0dc.js.gz new file mode 100644 index 0000000..3e0967e Binary files /dev/null and b/dist/assets/index.9194d0dc.js.gz differ diff --git a/dist/assets/index.92abb6b4.js b/dist/assets/index.92abb6b4.js deleted file mode 100644 index 5f96b05..0000000 --- a/dist/assets/index.92abb6b4.js +++ /dev/null @@ -1 +0,0 @@ -import{z as k,_ as ye,O as ve,r as g,B as he,U as be,d as a,T as L,o as s,c as $,H as _,I as Q,f as n,e,w as o,j,J as A,K as M,k as y,P as q,m as d,l as O,x as H,g as Ve,s as we}from"./index.5f349928.js";function ke(p){return k({url:"/system/config/list",method:"get",params:p})}function Ce(p){return k({url:"/system/config/"+p,method:"get"})}function xe(p){return k({url:"/system/config",method:"post",data:p})}function Ne(p){return k({url:"/system/config",method:"put",data:p})}function Te(p){return k({url:"/system/config/"+p,method:"delete"})}function Ke(){return k({url:"/system/config/refreshCache",method:"delete"})}const Se={class:"app-container"},Ue={class:"dialog-footer"},De=ve({name:"Config"}),Re=Object.assign(De,{setup(p){const{proxy:c}=we(),{sys_yes_no:K}=c.useDict("sys_yes_no"),P=g([]),h=g(!1),S=g(!0),N=g(!0),U=g([]),B=g(!0),Y=g(!0),D=g(0),R=g(""),C=g([]),J=he({form:{},queryParams:{pageNum:1,pageSize:10,configName:void 0,configKey:void 0,configType:void 0},rules:{configName:[{required:!0,message:"\u53C2\u6570\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],configKey:[{required:!0,message:"\u53C2\u6570\u952E\u540D\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],configValue:[{required:!0,message:"\u53C2\u6570\u952E\u503C\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}}),{queryParams:u,form:i,rules:G}=be(J);function V(){S.value=!0,ke(c.addDateRange(u.value,C.value)).then(r=>{P.value=r.rows,D.value=r.total,S.value=!1})}function W(){h.value=!1,I()}function I(){i.value={configId:void 0,configName:void 0,configKey:void 0,configValue:void 0,configType:"Y",remark:void 0},c.resetForm("configRef")}function T(){u.value.pageNum=1,V()}function X(){C.value=[],c.resetForm("queryRef"),T()}function Z(r){U.value=r.map(t=>t.configId),B.value=r.length!=1,Y.value=!r.length}function ee(){I(),h.value=!0,R.value="\u6DFB\u52A0\u53C2\u6570"}function z(r){I();const t=r.configId||U.value;Ce(t).then(b=>{i.value=b.data,h.value=!0,R.value="\u4FEE\u6539\u53C2\u6570"})}function le(){c.$refs.configRef.validate(r=>{r&&(i.value.configId!=null?Ne(i.value).then(t=>{c.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),h.value=!1,V()}):xe(i.value).then(t=>{c.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),h.value=!1,V()}))})}function E(r){const t=r.configId||U.value;c.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u53C2\u6570\u7F16\u53F7\u4E3A"'+t+'"\u7684\u6570\u636E\u9879\uFF1F').then(function(){return Te(t)}).then(()=>{V(),c.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function oe(){c.download("system/config/export",{...u.value},`config_${new Date().getTime()}.xlsx`)}function ne(){Ke().then(()=>{c.$modal.msgSuccess("\u5237\u65B0\u7F13\u5B58\u6210\u529F")})}return V(),(r,t)=>{const b=a("el-input"),m=a("el-form-item"),te=a("el-option"),ae=a("el-select"),ie=a("el-date-picker"),f=a("el-button"),F=a("el-form"),x=a("el-col"),ue=a("right-toolbar"),re=a("el-row"),v=a("el-table-column"),se=a("dict-tag"),de=a("el-table"),ce=a("pagination"),fe=a("el-radio"),pe=a("el-radio-group"),me=a("el-dialog"),w=L("hasPermi"),ge=L("loading");return s(),$("div",Se,[_(e(F,{model:n(u),ref:"queryRef",inline:!0,"label-width":"68px"},{default:o(()=>[e(m,{label:"\u53C2\u6570\u540D\u79F0",prop:"configName"},{default:o(()=>[e(b,{modelValue:n(u).configName,"onUpdate:modelValue":t[0]||(t[0]=l=>n(u).configName=l),placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u540D\u79F0",clearable:"",style:{width:"240px"},onKeyup:j(T,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(m,{label:"\u53C2\u6570\u952E\u540D",prop:"configKey"},{default:o(()=>[e(b,{modelValue:n(u).configKey,"onUpdate:modelValue":t[1]||(t[1]=l=>n(u).configKey=l),placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u952E\u540D",clearable:"",style:{width:"240px"},onKeyup:j(T,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(m,{label:"\u7CFB\u7EDF\u5185\u7F6E",prop:"configType"},{default:o(()=>[e(ae,{modelValue:n(u).configType,"onUpdate:modelValue":t[2]||(t[2]=l=>n(u).configType=l),placeholder:"\u7CFB\u7EDF\u5185\u7F6E",clearable:""},{default:o(()=>[(s(!0),$(A,null,M(n(K),l=>(s(),y(te,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(m,{label:"\u521B\u5EFA\u65F6\u95F4",style:{width:"308px"}},{default:o(()=>[e(ie,{modelValue:n(C),"onUpdate:modelValue":t[3]||(t[3]=l=>q(C)?C.value=l:null),"value-format":"YYYY-MM-DD",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(m,null,{default:o(()=>[e(f,{type:"primary",icon:"Search",onClick:T},{default:o(()=>[d("\u641C\u7D22")]),_:1}),e(f,{icon:"Refresh",onClick:X},{default:o(()=>[d("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[Q,n(N)]]),e(re,{gutter:10,class:"mb8"},{default:o(()=>[e(x,{span:1.5},{default:o(()=>[_((s(),y(f,{type:"primary",plain:"",icon:"Plus",onClick:ee},{default:o(()=>[d("\u65B0\u589E")]),_:1})),[[w,["system:config:add"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:o(()=>[_((s(),y(f,{type:"success",plain:"",icon:"Edit",disabled:n(B),onClick:z},{default:o(()=>[d("\u4FEE\u6539")]),_:1},8,["disabled"])),[[w,["system:config:edit"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:o(()=>[_((s(),y(f,{type:"danger",plain:"",icon:"Delete",disabled:n(Y),onClick:E},{default:o(()=>[d("\u5220\u9664")]),_:1},8,["disabled"])),[[w,["system:config:remove"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:o(()=>[_((s(),y(f,{type:"warning",plain:"",icon:"Download",onClick:oe},{default:o(()=>[d("\u5BFC\u51FA")]),_:1})),[[w,["system:config:export"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:o(()=>[_((s(),y(f,{type:"danger",plain:"",icon:"Refresh",onClick:ne},{default:o(()=>[d("\u5237\u65B0\u7F13\u5B58")]),_:1})),[[w,["system:config:remove"]]])]),_:1},8,["span"]),e(ue,{showSearch:n(N),"onUpdate:showSearch":t[4]||(t[4]=l=>q(N)?N.value=l:null),onQueryTable:V},null,8,["showSearch"])]),_:1}),_((s(),y(de,{data:n(P),onSelectionChange:Z},{default:o(()=>[e(v,{type:"selection",width:"55",align:"center"}),e(v,{label:"\u53C2\u6570\u4E3B\u952E",align:"center",prop:"configId"}),e(v,{label:"\u53C2\u6570\u540D\u79F0",align:"center",prop:"configName","show-overflow-tooltip":!0}),e(v,{label:"\u53C2\u6570\u952E\u540D",align:"center",prop:"configKey","show-overflow-tooltip":!0}),e(v,{label:"\u53C2\u6570\u952E\u503C",align:"center",prop:"configValue"}),e(v,{label:"\u7CFB\u7EDF\u5185\u7F6E",align:"center",prop:"configType"},{default:o(l=>[e(se,{options:n(K),value:l.row.configType},null,8,["options","value"])]),_:1}),e(v,{label:"\u5907\u6CE8",align:"center",prop:"remark","show-overflow-tooltip":!0}),e(v,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180"},{default:o(l=>[O("span",null,H(r.parseTime(l.row.createTime)),1)]),_:1}),e(v,{label:"\u64CD\u4F5C",align:"center",width:"150","class-name":"small-padding fixed-width"},{default:o(l=>[_((s(),y(f,{link:"",type:"primary",icon:"Edit",onClick:_e=>z(l.row)},{default:o(()=>[d("\u4FEE\u6539")]),_:2},1032,["onClick"])),[[w,["system:config:edit"]]]),_((s(),y(f,{link:"",type:"primary",icon:"Delete",onClick:_e=>E(l.row)},{default:o(()=>[d("\u5220\u9664")]),_:2},1032,["onClick"])),[[w,["system:config:remove"]]])]),_:1})]),_:1},8,["data"])),[[ge,n(S)]]),_(e(ce,{total:n(D),page:n(u).pageNum,"onUpdate:page":t[5]||(t[5]=l=>n(u).pageNum=l),limit:n(u).pageSize,"onUpdate:limit":t[6]||(t[6]=l=>n(u).pageSize=l),onPagination:V},null,8,["total","page","limit"]),[[Q,n(D)>0]]),Ve(" \u6DFB\u52A0\u6216\u4FEE\u6539\u53C2\u6570\u914D\u7F6E\u5BF9\u8BDD\u6846 "),e(me,{title:n(R),modelValue:n(h),"onUpdate:modelValue":t[12]||(t[12]=l=>q(h)?h.value=l:null),width:"500px","append-to-body":""},{footer:o(()=>[O("div",Ue,[e(f,{type:"primary",onClick:le},{default:o(()=>[d("\u786E \u5B9A")]),_:1}),e(f,{onClick:W},{default:o(()=>[d("\u53D6 \u6D88")]),_:1})])]),default:o(()=>[e(F,{ref:"configRef",model:n(i),rules:n(G),"label-width":"80px"},{default:o(()=>[e(m,{label:"\u53C2\u6570\u540D\u79F0",prop:"configName"},{default:o(()=>[e(b,{modelValue:n(i).configName,"onUpdate:modelValue":t[7]||(t[7]=l=>n(i).configName=l),placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u53C2\u6570\u952E\u540D",prop:"configKey"},{default:o(()=>[e(b,{modelValue:n(i).configKey,"onUpdate:modelValue":t[8]||(t[8]=l=>n(i).configKey=l),placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u952E\u540D"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u53C2\u6570\u952E\u503C",prop:"configValue"},{default:o(()=>[e(b,{modelValue:n(i).configValue,"onUpdate:modelValue":t[9]||(t[9]=l=>n(i).configValue=l),placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u952E\u503C"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u7CFB\u7EDF\u5185\u7F6E",prop:"configType"},{default:o(()=>[e(pe,{modelValue:n(i).configType,"onUpdate:modelValue":t[10]||(t[10]=l=>n(i).configType=l)},{default:o(()=>[(s(!0),$(A,null,M(n(K),l=>(s(),y(fe,{key:l.value,label:l.value},{default:o(()=>[d(H(l.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(m,{label:"\u5907\u6CE8",prop:"remark"},{default:o(()=>[e(b,{modelValue:n(i).remark,"onUpdate:modelValue":t[11]||(t[11]=l=>n(i).remark=l),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}}),$e=ye(Re,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/system/config/index.vue"]]);export{$e as default}; diff --git a/dist/assets/index.92abb6b4.js.gz b/dist/assets/index.92abb6b4.js.gz deleted file mode 100644 index b017dc6..0000000 Binary files a/dist/assets/index.92abb6b4.js.gz and /dev/null differ diff --git a/dist/assets/index.93241c06.js b/dist/assets/index.93241c06.js new file mode 100644 index 0000000..b817954 --- /dev/null +++ b/dist/assets/index.93241c06.js @@ -0,0 +1,12 @@ +import{z as R,_ as Ge,r as f,A as oe,B as Je,C as $e,D as re,d as _,o as z,c as N,l as r,m as T,e as m,w as D,f as P,g as q,I as Ce,J as Se,k as ke,x as F,y as Ye,p as He,q as Ke}from"./index.b3a66a9e.js";import G from"./downloads.e955445d.js";import{_ as et,a as tt,b as at,c as ot,d as rt,e as lt}from"./linesGL.90f708a5.js";import{i as U,L as B}from"./index.c9f5bd8b.js";import{T as st}from"./TimeLine.6cac5abc.js";import{u as le}from"./useEcharts.83442be8.js";function it(v){return R({url:"crops/farmland",method:"get",params:v})}function nt(v){return R({url:"crops/statistics",method:"get",params:v})}function dt(v){return R({url:"crops/highStandards",method:"get",params:v})}function ct(v){return R({url:"crops/gradeStatistics",method:"get",params:v})}function ut(v){return R({url:"crops/administrativeDivisions",method:"get",params:v})}const S=v=>(He("data-v-6a6af1d2"),v=v(),Ke(),v),ft={class:"center"},pt=S(()=>r("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),mt={class:"leftWra"},gt={class:"leftTop"},vt={class:"title"},bt=S(()=>r("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),ht=S(()=>r("img",{src:G,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),yt={class:"leftbottom"},_t={class:"title"},xt=S(()=>r("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),wt=S(()=>r("img",{src:G,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ct={class:"tableDiv"},St={class:"rightWra"},kt={class:"rightTop"},Dt={class:"title"},Lt=S(()=>r("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Mt=S(()=>r("img",{src:G,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),zt={class:"rightbottom"},It={class:"title"},Wt=S(()=>r("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),At=S(()=>r("img",{src:G,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Tt={class:"bottom_center"},Bt=Ye('',1),Et={id:"popup"},Nt={id:"pop"},Pt={key:0},Ft=S(()=>r("div",null,"\u6751\u540D\uFF1A",-1)),Rt={class:"mt-4"},Vt={__name:"index",setup(v){let n=f(null);const se=f(null),ie=f(null),ne=f(null);f(null);const de=f(null),k=f("370211"),De=f(null);let C=oe({arr:[],brr:[],crr:[]});oe({arr:[]});const ce=f({name:"",value:""}),Le=f([]),ue=f([]),V=f(!1);let J=f(!0),$=f(!0);f("{x:765,y:191}");let Y=f([]),H=f([]),K=f(0);f([]);let fe=["\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A1.0","\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A2.0","\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A3.0","\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A4.0","\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A5.0","\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A6.0","\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A7.0"],L={\u597D:[],\u8F83\u597D:[],\u9002\u4E2D:[],\u8F83\u5DEE:[],\u5DEE:[]};oe({arr:[{name:"\u5C0F\u9EA6",value:101,itemStyle:{opacity:.5,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:156,itemStyle:{opacity:.5,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:156,itemStyle:{opacity:.5,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:156,itemStyle:{opacity:.5,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u84DD\u8393",value:56,itemStyle:{opacity:.5,color:"rgba(72, 102, 211, 0.9)"},label:{show:!0}},{name:"\u8336\u53F6",value:56,itemStyle:{opacity:.5,color:"rgba(26, 255, 140, 1)"},label:{show:!0}}]});let ee=f([]);Je(()=>C.arr,e=>{console.log("val:",e)});var I={title:[]};let y={\u597D:[],\u8F83\u597D:[],\u9002\u4E2D:[],\u8F83\u5DEE:[],\u5DEE:[]};const Me=()=>{console.log(Le.value)};let te=f([]);$e(()=>{ge("370211"),ve("370211"),Pe(),be("370211"),Ie(),Ae()});const ze={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 Ie(){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({...ze})}),n.cesiumWidget.creditContainer.style.display="none",ae("shuzisannong:huangdaoqu_town","tl"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Te(),qe()}function pe(e,t,a){e.forEach(o=>{let l=[];o[0].forEach(s=>{l.push(s[0]),l.push(s[1])}),n.entities.add({name:t,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(l),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:a?Cesium.Color.fromCssColorString(a):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function We(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 Ae(){re({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),ue.value=e.data.features}).catch(e=>{})}let h=f({label:[]}),O="";function Te(){var e=new Cesium.ScreenSpaceEventHandler(n.canvas);e.setInputAction(function(t){var a=n.camera.getPickRay(t.position),o=n.scene.globe.pick(a,n.scene);if(o){let l=Cesium.Cartographic.fromCartesian(o);if(l){let s=new Cesium.Cartesian2,d=n.camera.positionCartographic.height,c=We(d);const g=n.imageryLayers._layers,u=g.findIndex(p=>p._imageryProvider._layers&&p._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(u>-1){const p=g[u];let b=p._imageryProvider;if(b&&b.ready&&b._layers&&p.show===!0){s=b.tilingScheme.positionToTileXY(l,c,s);let M=b.pickFeatures(s.x,s.y,c,l.longitude,l.latitude);M&&M.then(W=>{if(W.length>0){let w=W[0];if(w.properties&&w.properties.XZDM)if(O!==w.properties.XZDM){O=w.properties.XZDM,k.value=O,he();let A=w.data;n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(A.bbox[0],A.bbox[1],A.bbox[2],A.bbox[3]),duration:2}),E("townLine"),pe(A.geometry&&A.geometry.coordinates,"townLine","yellow"),x(["village_CQL"]),me(`XZDM=${w.properties.XZDM}`,"village_CQL");let j=n.entities._entities._array;for(var i=j.length-1;i>=0;i--)if(j[i]._name&&j[i]._name==="point"+w.properties.XZDM){let Ue=j[i]._info;h.value=Ue,console.log(h.value,"------------------"),we(t.position),n.scene.postRender.addEventListener(xe)}E("villageLine"),Z=""}else Be(g,s,c,l);else x(["village_CQL"]),Q()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let Z="";function Be(e,t,a,o){const l=e.findIndex(s=>s._imageryProvider._layers&&s._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(l>-1){const s=e[l];let d=s._imageryProvider;if(d&&d.ready&&d._layers&&s.show===!0){t=d.tilingScheme.positionToTileXY(o,a,t);let c=d.pickFeatures(t.x,t.y,a,o.longitude,o.latitude);c&&c.then(g=>{if(g.length>0){let u=g[0];if(u.properties&&u.properties.XZQDM&&Z!==u.properties.XZQDM){Z=u.properties.XZQDM;let p=u.data;if(E("villageLine"),pe(p.geometry&&p.geometry.coordinates,"villageLine","yellow"),u.properties.XZQDM==="370211104217"){const b=Cesium.Rectangle.fromDegrees(p.bbox[0],p.bbox[1],p.bbox[2],p.bbox[3]),M=Cesium.Rectangle.center(b);let W=Cesium.Math.toDegrees(M.longitude),i=Cesium.Math.toDegrees(M.latitude),w={lon:W,lat:i,...p.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}]};h.value=w}}}})}}}function me(e,t){let a=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:e}});a.customName=t,n.imageryLayers.addImageryProvider(a)}function x(e,t){if(n){const a=n.imageryLayers._layers;for(let o=a.length-1;o>=0;o--)e.forEach(l=>{a[o]._imageryProvider&&a[o]._imageryProvider.customName&&(t?a[o]._imageryProvider.customName.indexOf(l)>-1&&n.imageryLayers.remove(a[o]):a[o]._imageryProvider.customName===l&&n.imageryLayers.remove(a[o]))})}}function E(e){if(n){let a=n.entities._entities._array;for(var t=a.length-1;t>=0;t--)a[t]._name&&a[t]._name===e&&n.entities.remove(a[t])}}function Ee(){if(J.value=!J.value,J.value){let e=document.querySelector(".leftWra");e.style.transform="translate(0,0)"}else{let e=document.querySelector(".leftWra");e.style.transform="translate(-107%,0)"}}function Ne(){if($.value=!$.value,$.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 ge=e=>{Y=f([]),H=f([]),it({divisions:e}).then(t=>{t.data.forEach(a=>{Y.value.push(a.level),H.value.push((a.area/666.67).toFixed(2))}),Ve()})},ve=e=>{ee=f([]),te=f([]),K=f(0),nt({divisions:e}).then(t=>{t.data.forEach(a=>{K.value+=Number(a.area),ee.value.push({name:a.level,value:(a.area/666.67).toFixed(2)}),te.value.push({date:a.level,name:`${(a.area/666.67).toFixed(2)}\u4EA9`,address:`${(a.percentage*100).toFixed(2)}%`})}),Oe()})},Pe=()=>{f([]),dt().then(e=>{fe.forEach((t,a)=>{let o=e.data.map(l=>{if(t===l.streetName)return l});Object.keys(L).forEach(l=>{let s=0;o.findIndex(c=>(c&&c.type===l&&(s=c.area),c&&c.type===l))!==-1?L[l].push(s):L[l].push(0)})}),Ze()})},be=e=>{ct({divisions:e}).then(t=>{C.brr=t.data,C.arr=t.data.sort((d,c)=>d.streetName.length-c.streetName.length),C.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let a=[],o=[];C.arr.forEach(d=>{a.indexOf(d.streetName)==-1&&(a.push(d.streetName),o.push({streetName:d.streetName,streetCode:d.streetCode,area:d.area,type:d.type}))}),C.arr=o;let l=[...t.data],s=[];l.splice(0,1),l.forEach(d=>{s.indexOf(d.streetName)==-1&&s.push(d.streetName)}),I.title=[...Object.values(s)],I.title.forEach((d,c)=>{let g=t.data.map(u=>{if(d===u.streetName)return u});console.log(g),Object.keys(y).forEach(u=>{console.log(u),g.findIndex(b=>b&&b.type===u)>-1?y[u].push(1):y[u].push(null)})}),ye()})},Fe=e=>{ut({divisions:e}).then(t=>{C.brr=t.data;let a=[...t.data],o=[];a.forEach(l=>{o.indexOf(l.streetName)==-1&&o.push(l.streetName)}),I.title=[...Object.values(o)],I.title.forEach((l,s)=>{let d=t.data.map(c=>{if(l===c.streetName)return c});Object.keys(y).forEach(c=>{d.findIndex(u=>u&&u.type===c)>-1?y[c].push(1):y[c].push(null)})}),ye()})},he=()=>{ge(k.value),ve(k.value),k.value!=="370211"&&Fe(k.value),k.value=="370211"&&(x(["village_CQL"]),x(["aaa"]),be(),Q());let e=[...C.arr];console.log("arr:",e),[...C.arr],x(["aaa"]),me(`XZDM=${k.value}`,"aaa")},X=e=>{Re(e)},Re=e=>{let t=document.createElement("a");t.style.display="none",t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)};function Ve(){const e=U(se.value);let t=Y.value,a=H.value,o=!1;a.length>14?o=!0:o=!1;var l={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"10%",right:"5%",left:"15%",bottom:"10%"},xAxis:[{type:"category",data:t,axisLine:{lineStyle:{color:"rgba(66, 192, 255, .3)"}},axisLabel:{interval:0,margin:10,color:"#05D5FF",textStyle:{fontSize:11},rotate:"0"},axisTick:{show:!1}}],yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255,255,255,0.7)"},splitLine:{show:!1},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},dataZoom:[{show:o,type:"slider",realtime:!0,startValue:0,endValue:14,xAxisIndex:[0],bottom:"10",left:"30",height:10,borderColor:"rgba(0,0,0,0)",textStyle:{color:"#05D5FF"}}],series:[{type:"bar",data:a,barWidth:"10",itemStyle:{normal:{color:new B(0,0,0,1,[{offset:0,color:"rgba(45, 204, 177, 1)"},{offset:.98,color:"rgba(71, 179, 161, 0)"}],!1),shadowColor:"rgba(5, 213, 255, 1)",shadowBlur:4}},label:{normal:{show:!0,lineHeight:10,formatter:"{c}",position:"top",textStyle:{color:"#fff",fontSize:10}}}}]};l&&e.setOption(l),window.addEventListener("resize",function(){e.resize()})}function Oe(){const e=U(ie.value);var t=ee.value;let a={color:["rgba(9, 187, 222, 0.8)","rgba(255, 235, 59, 0.8)","rgba(234, 165, 93, 0.8)","rgb(152,251,152,0.8)","red"],title:{text:"\u603B\u9762\u79EF",subtext:`${(K.value/666.67).toFixed(2)}\u4EA9`,textStyle:{color:"#f2f2f2",fontSize:14},subtextStyle:{fontSize:14,color:["#ff9d19"]},x:"center",y:"center"},grid:{top:0},legend:{orient:"vertical",top:"middle",right:"2%",textStyle:{color:"#f2f2f2",fontSize:14},icon:"roundRect",data:t},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a}
{b} : {c}\u4EA9
\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",data:t},{radius:["50%","54%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1},emphasis:{show:!1}},labelLine:{normal:{show:!1},emphasis:{show:!1}},animation:!1,tooltip:{show:!1},data:[{value:1,itemStyle:{color:"rgba(250,250,250,0.3)"}}]},{name:"\u5916\u8FB9\u6846",type:"pie",clockWise:!1,hoverAnimation:!1,center:["50%","50%"],radius:["85%","85%"],tooltip:{show:!1},label:{normal:{show:!1}},data:[{value:9,name:"",itemStyle:{normal:{borderWidth:2,borderColor:"#0b5263"}}}]}]};le(e,a)}function Ze(){const e=U(ne.value);let t={title:{text:"",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},xAxis:{type:"category",data:fe,axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)",width:1,type:"solid"},axisLabel:{color:"rgba(255, 255, 255, 0.7)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14}}},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255, 255, 255, 0.7)"},splitLine:{lineStyle:{type:"solid",color:"rgba(255, 255, 255, 0.3)"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{name:"\u597D",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:L.\u597D,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(9, 187, 222, 1)",color:new B(0,0,0,1,[{offset:0,color:"rgba(9, 187, 222, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}])}}},{name:"\u8F83\u597D",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:L.\u8F83\u597D,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 235, 59, 1)",color:new B(0,0,0,1,[{offset:0,color:"rgba(255, 235, 59, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 0.8)"}])}}},{name:"\u9002\u4E2D",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:L.\u9002\u4E2D,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(234, 165, 93, 1)",color:new B(0,0,0,1,[{offset:0,color:"rgba(234, 165, 93, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}])}}},{name:"\u8F83\u5DEE",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:L.\u8F83\u5DEE,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(215, 25, 28, 1)",color:new B(0,0,0,1,[{offset:0,color:"rgba(215, 25, 28, 0.8)"},{offset:1,color:"rgba(215, 25, 28, 0.8)"}])}}},{name:"\u5DEE",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:L.\u5DEE,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(23, 194, 180, 1)",color:new B(0,0,0,1,[{offset:0,color:"rgba(23, 194, 180, 0.7)"},{offset:1,color:"rgba(23, 194, 180, 0.7)"}])}}}]};e.on("click",function(a){console.log(a.name)}),e.on("click",a=>Qe(a)),t&&e.setOption(t,{notMerge:!0,grid:{bottom:20}}),le(e,t)}function ae(e,t){let a=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:e,parameters:{service:"WMS",format:"image/png",transparent:!0}});a.customName=t;let o=n.imageryLayers.addImageryProvider(a);t.indexOf("gbznt")>-1&&(n.imageryLayers.lowerToBottom(o),n.imageryLayers.raise(o))}function Xe(){x(["gbznt"],!0),ae("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 Qe(e){console.log("item:",e),x(["huangdaoqu_town"],!0),x(["tl"],!0);let t="shuzisannong:farmland",a=!1;const o=n.imageryLayers._layers;for(let s=o.length-1;s>=0;s--)o[s]&&o[s]._imageryProvider.customName&&o[s]._imageryProvider.customName===t+"gbznt"&&(a=!0);a||ae(t,t+"gbznt"),ue.value.forEach(s=>{console.log("it.properties.name:",s.properties.name),console.log("item.name:",e.name),s.properties.name===e.name&&(console.log("dingwei"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(s.bbox[0],s.bbox[1],s.bbox[2],s.bbox[3]),duration:2}))}),V.value=!0,h.value={label:[{crop:"\u5C0F\u9EA6",Shape_Area:"53000"},{crop:"\u5730\u74DC",Shape_Area:"50000"}]},console.log(h.label),we({x:642,y:312})}function ye(){const e=U(de.value);console.log(y),console.log(I);var t={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},legend:{top:"5%",left:"10%",icon:"rect",textStyle:{color:"#fff"}},tooltip:{formatter:function(a){return a.seriesName+''+(a.value/66.72).toFixed(2)+"\u4EA9"}},dataZoom:[{type:"slider",show:!1,zoomLock:!0,width:8,yAxisIndex:[0],bottom:30,top:20,right:10,startValue:0,endValue:4,handleIcon:"M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z",handleSize:"100%",handleStyle:{color:"#DBDBDB",height:"100%"},backgroundColor:"transparent",fillerColor:"#DBDBDB",textStyle:{color:"transparent"},dataBackground:{lineStyle:{color:"transparent"},areaStyle:{color:"transparent"}},borderColor:"transparent"},{type:"inside",id:"insideY",yAxisIndex:0,start:0,end:50,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"category",axisTick:{show:!1},axisLine:{show:!1,lineStyle:{color:"#cdd3ee"}},splitLine:{show:!1},axisLabel:{show:!0,fontSize:12,color:"rgba(255, 255, 255, 1)",formatter:"{value}"},data:I.title,inverse:!0}],series:[{type:"bar",name:"\u597D",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u597D",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(4, 247, 227, 0.9)"},{offset:1,color:"rgba(4, 247, 227, 0.25)"}]}},data:y.\u597D},{type:"bar",name:"\u8F83\u597D",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F83\u597D",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(143, 186, 243, 0.9)"},{offset:1,color:"rgba(143, 186, 243, 0.3)"}]}},data:y.\u8F83\u597D},{type:"bar",name:"\u9002\u4E2D",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u9002\u4E2D",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(4, 247, 227, 0.9)"},{offset:1,color:"rgba(4, 247, 227, 0.25)"}]}},data:y.\u9002\u4E2D},{type:"bar",name:"\u8F83\u5DEE",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F83\u5DEE",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(33, 187, 251, 0.9)"},{offset:1,color:"rgba(33, 187, 251, 0.25)"}]}},data:y.\u8F83\u5DEE},{type:"bar",name:"\u5DEE",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u5DEE",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(14, 223, 255, 0.9)"},{offset:1,color:"rgba(14, 223, 255, 0.25)"}]}},data:y.\u5DEE}]};le(e,t)}function je(){let e=_e.value;console.log("fl:",e),re({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((o,l)=>{const s=Cesium.Rectangle.fromDegrees(o.bbox[0],o.bbox[1],o.bbox[2],o.bbox[3]),d=Cesium.Rectangle.center(s);let c=Cesium.Math.toDegrees(d.longitude),g=Cesium.Math.toDegrees(d.latitude);o.properties.XZDM==="370211011"?(c=120.0863,g=35.941):o.properties.XZDM==="370211003"&&(c=120.243682,g=35.97123201);const u=e[o.properties.XZMC];let p=[];u&&(p=u.map((b,M)=>b.properties)),n.entities.add({name:"point"+o.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(c,g),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:p,...o.properties,lon:c,lat:g}})})}).catch(t=>{})}let _e=f({});function qe(){re({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,a={};t.forEach(o=>{let l=o.properties.town;a[l]?a[l].push(o):a[l]=[o]}),_e.value=a,je()}).catch(e=>{})}function xe(){if(h.value&&h.value.lon&&h.value.lat){const t=Cesium.Cartesian3.fromDegrees(Number(h.value.lon),Number(h.value.lat),0);var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(n.scene,t);if(Cesium.defined(e)){const a=document.getElementById("pop");a.style.top=e.y-10+"px",a.style.left=e.x+10+"px"}}}function Q(){O="",Z="",x(["village_CQL"]),x(["aaa"]),E("villageLine"),E("townLine");const e=document.getElementById("pop");e.style.display="none",n.scene.postRender.removeEventListener(xe),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),x(["gbznt"],!0),V.value=!1}function we(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 a=_("el-table-column"),o=_("el-table"),l=_("ArrowRightBold"),s=_("el-icon"),d=_("el-option"),c=_("el-select"),g=_("ArrowLeftBold"),u=_("el-checkbox"),p=_("el-checkbox-group"),b=_("el-collapse-item"),M=_("el-collapse"),W=_("el-button");return z(),N("div",ft,[pt,r("div",mt,[r("div",gt,[r("div",vt,[bt,r("p",{onClick:t[0]||(t[0]=i=>X("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[T(" \u4E0B\u8F7D \xA0 "),ht])]),r("div",{ref_key:"areaDiv",ref:se,class:"areaDiv"},null,512),r("div",{ref_key:"leftProgressBarDiv",ref:De,class:"ProgressBar"},null,512)]),r("div",yt,[r("div",_t,[xt,r("p",{onClick:t[1]||(t[1]=i=>X("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianji%20.xlsx"))},[T(" \u4E0B\u8F7D \xA0 "),wt])]),r("div",{ref_key:"typesofDiv",ref:ie,class:"typesofDiv"},null,512),r("div",Ct,[m(o,{data:P(te),style:{width:"100%"}},{default:D(()=>[m(a,{prop:"date",label:"\u7C7B\u578B"}),m(a,{prop:"name",label:"\u9762\u79EF"}),m(a,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),r("div",{class:"leftFoldDiv",onClick:t[2]||(t[2]=i=>Ee())},[m(s,null,{default:D(()=>[m(l)]),_:1})])]),r("div",St,[r("div",kt,[r("div",Dt,[Lt,r("p",{onClick:t[3]||(t[3]=i=>X("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/81f3b011-7a5d-4a21-88aa-8ea51142e564_%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%87%BA.xlsx"))},[T(" \u4E0B\u8F7D \xA0 "),Mt])]),r("div",{ref_key:"farmlandDiv",ref:ne,class:"farmlandDiv"},null,512),q(' ')]),r("div",zt,[r("div",It,[Wt,r("p",{onClick:t[4]||(t[4]=i=>X("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/0c0ff4cf-151a-470e-856a-b0fce0fde997_%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%87%BA.xlsx"))},[T(" \u4E0B\u8F7D \xA0 "),At])]),m(c,{"popper-class":"select_city",onChange:t[5]||(t[5]=i=>he(e.item)),modelValue:k.value,"onUpdate:modelValue":t[6]||(t[6]=i=>k.value=i),clearable:"",placeholder:"\u5168\u90E8"},{default:D(()=>[(z(!0),N(Ce,null,Se(P(C).arr,i=>(z(),ke(d,{key:i.streetCode,label:i.streetName,value:i.streetCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),r("div",{ref_key:"ASdivisionDiv",ref:de,class:"ASdivision"},null,512)]),r("div",{class:"rightFoldDiv",onClick:t[7]||(t[7]=i=>Ne())},[m(s,null,{default:D(()=>[m(g)]),_:1})])]),r("div",Tt,[m(st)]),Bt,r("div",Et,[r("div",null,F(ce.value.name)+"\uFF1A",1),r("div",null,F(ce.value.value)+"\u4EA9",1),r("div",{class:"cancel",onClick:Q},"X")]),r("div",Nt,[(z(!0),N(Ce,null,Se(P(h).label,(i,w)=>(z(),N("div",{key:w},[r("div",null,F(i.crop)+"\uFF1A",1),r("div",null,F((i.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),P(h).XZQMC?(z(),N("div",Pt,[Ft,r("div",null,F(P(h).XZQMC),1)])):q("v-if",!0),r("div",{class:"cancel",onClick:Q},"X")]),m(M,{class:"legend",accordion:""},{default:D(()=>[m(b,{name:"1"},{title:D(()=>[T("\u56FE\u4F8B")]),default:D(()=>[r("div",Rt,[m(p,{modelValue:e.checkList,"onUpdate:modelValue":t[13]||(t[13]=i=>e.checkList=i),onChange:Me},{default:D(()=>[q(``),m(u,{style:{background:"rgba(50, 148, 1, 1)",border:"1px solid rgba(251, 171, 60, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":t[8]||(t[8]=i=>e.checked3=i),label:"\u597D"},null,8,["modelValue"]),m(u,{style:{background:"rgba(154, 208, 0, 1)",border:"1px solid rgba(251, 219, 13, 1)",width:"100%"},modelValue:e.checked4,"onUpdate:modelValue":t[9]||(t[9]=i=>e.checked4=i),label:"\u8F83\u597D"},null,8,["modelValue"]),m(u,{style:{background:"rgba(234, 219, 0, 1)",border:"1px solid rgba(244, 218, 136, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":t[10]||(t[10]=i=>e.checked3=i),label:"\u9002\u4E2D"},null,8,["modelValue"]),m(u,{style:{background:"rgba(239, 152, 0, 1)",border:"1px solid rgba(174, 83, 110, 1)",width:"100%"},modelValue:e.checked4,"onUpdate:modelValue":t[11]||(t[11]=i=>e.checked4=i),label:"\u8F83\u5DEE"},null,8,["modelValue"]),m(u,{style:{background:"rgba(247, 85, 0, 1)",border:"1px solid rgba(242, 177, 167, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":t[12]||(t[12]=i=>e.checked3=i),label:"\u5DEE"},null,8,["modelValue"])]),_:1},8,["modelValue"])])]),_:1})]),_:1}),V.value?(z(),ke(W,{key:0,class:"back_button",onClick:t[14]||(t[14]=i=>Xe())},{default:D(()=>[T("\u8FD4\u56DE")]),_:1})):q("v-if",!0)])}}},Ut=Ge(Vt,[["__scopeId","data-v-6a6af1d2"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/site/index.vue"]]);export{Ut as default}; diff --git a/dist/assets/index.93241c06.js.gz b/dist/assets/index.93241c06.js.gz new file mode 100644 index 0000000..83bb15c Binary files /dev/null and b/dist/assets/index.93241c06.js.gz differ diff --git a/dist/assets/index.5a03ac13.js b/dist/assets/index.9550a4ba.js similarity index 71% rename from dist/assets/index.5a03ac13.js rename to dist/assets/index.9550a4ba.js index 09f96e1..13f5013 100644 --- a/dist/assets/index.5a03ac13.js +++ b/dist/assets/index.9550a4ba.js @@ -1 +1 @@ -import{_ as o,r as a,o as n,k as i,f as s,P as l}from"./index.5f349928.js";import{i as u}from"./index.994d4ae3.js";const c={__name:"index",setup(f){const e=a("/stage-api/swagger-ui/index.html");return(p,r)=>(n(),i(s(u),{src:s(e),"onUpdate:src":r[0]||(r[0]=t=>l(e)?e.value=t:null)},null,8,["src"]))}},d=o(c,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/tool/swagger/index.vue"]]);export{d as default}; +import{_ as o,r as a,o as n,k as i,f as s,P as l}from"./index.b3a66a9e.js";import{i as u}from"./index.25818e4c.js";const c={__name:"index",setup(f){const e=a("/stage-api/swagger-ui/index.html");return(p,r)=>(n(),i(s(u),{src:s(e),"onUpdate:src":r[0]||(r[0]=t=>l(e)?e.value=t:null)},null,8,["src"]))}},d=o(c,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/tool/swagger/index.vue"]]);export{d as default}; diff --git a/dist/assets/index.9cf392c6.js b/dist/assets/index.9cf392c6.js new file mode 100644 index 0000000..fbf0ab4 --- /dev/null +++ b/dist/assets/index.9cf392c6.js @@ -0,0 +1,46 @@ +import{_ as ze,r as p,A as O,C as Ie,B as Me,D as Ee,d as C,o as d,c as v,l as i,m as P,g as D,e as z,w as k,I as V,J as G,f as M,k as U,Q as Pe,x as N,y as Ne,p as We,q as Ae}from"./index.b3a66a9e.js";import ue from"./downloads.e955445d.js";import{_ as pe}from"./close1.45635d81.js";import{_ as Be,a as Fe,b as Xe,c as Ze,d as Oe,e as Re}from"./linesGL.90f708a5.js";import{i as se,L as ce}from"./index.c9f5bd8b.js";import{T as qe}from"./TimeLine.6cac5abc.js";import{u as de}from"./useEcharts.83442be8.js";import{b as je,g as Je,c as Qe,a as Ve}from"./classify.ee69cc46.js";const m=W=>(We("data-v-722f0c81"),W=W(),Ae(),W),Ge={class:"center"},Ue=m(()=>i("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),$e={class:"rightWra"},Ye={class:"rightTop"},He={class:"title"},Ke=m(()=>i("span",null,"\u6482\u8352\u8015\u5730\u7C7B\u578B\u7EDF\u8BA1",-1)),et=m(()=>i("img",{src:ue,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),tt={class:"rightbottom"},at={class:"title"},ot=m(()=>i("span",null,"\u6482\u8352\u8015\u5730\u9762\u79EF\u7EDF\u8BA1",-1)),rt=m(()=>i("img",{src:ue,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),lt={key:0,src:pe,alt:""},nt={key:0,class:"imgrotate",src:pe,alt:""},it={class:"mt-4"},st={class:"bottom_center"},ct=Ne(' ',1),dt={id:"popup1"},ut={class:"rowWra"},pt=m(()=>i("span",null,"\u4F5C\u7269\uFF1A",-1)),mt={class:"rowWra"},gt=m(()=>i("span",null,"\u9762\u79EF\uFF1A",-1)),ft={class:"rowWra"},bt=m(()=>i("span",null,"\u9547\u540D\uFF1A",-1)),yt={key:0,class:"rowWra"},ht=m(()=>i("span",null,"\u6751\u540D\uFF1A",-1)),vt={key:1,class:"rowWra"},_t=m(()=>i("span",null,"\u571F\u5730\u6240\u6709\u4EBA\uFF1A",-1)),xt={__name:"index",setup(W){let s=p(null);const $=p(null);p(null);const Y=p(null);let S=O({arr:[],brr:[],crr:[]});const _=p("370211"),L=p({info:[]}),R=p(!1);p(!0);let T=p(!0);const H=e=>{me(e)},me=e=>{let t=document.createElement("a");t.style.display="none",t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)};let q={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},K={\u5C0F\u9EA6:{color:"rgba(255, 141, 26, 1)",disabled:!1},\u7389\u7C73:{color:"rgba(255, 255, 26, 1)",disabled:!0},\u5927\u8C46:{color:"rgba(255, 201, 148, 1)",disabled:!1},\u5730\u74DC:{color:"rgba(255, 84, 84, 1)",disabled:!1},\u82B1\u751F:{color:"rgba(255, 140, 255, 1)",disabled:!1},\u84DD\u8393:{color:"rgba(26, 255, 255, 1)",disabled:!1},\u8336\u53F6:{color:"rgba(26, 255, 140, 1)",disabled:!1},\u9A6C\u94C3\u85AF:{color:"rgba(255, 171, 87, 1)",disabled:!0},\u767D\u83DC\u548C\u841D\u535C:{color:"rgba(140, 255, 26, 1)",disabled:!0},\u5176\u4ED6:{color:"rgba(140, 26, 255, 1)",disabled:!1}},A={\u5C0F\u9EA6:"shuzisannong:xiaomai",\u5927\u8C46:"shuzisannong:dadou",\u5730\u74DC:"shuzisannong:digua",\u82B1\u751F:"shuzisannong:huasheng",\u84DD\u8393:"shuzisannong:lanmei",\u8336\u53F6:"shuzisannong:chaye",\u5176\u4ED6:"shuzisannong:other"};O({arr:[{name:"\u5C0F\u9EA6",value:101,itemStyle:{opacity:.8,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:156,itemStyle:{opacity:.8,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:156,itemStyle:{opacity:.8,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:156,itemStyle:{opacity:.8,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u84DD\u8393",value:56,itemStyle:{opacity:.8,color:"rgba(72, 102, 211, 0.9)"},label:{show:!0}}]});var j={title:["\u533A\u57DF\u4E00","\u533A\u57DF\u4E8C","\u533A\u57DF\u4E09","\u533A\u57DF\u56DB","\u533A\u57DF\u4E94","\u533A\u57DF\u516D","\u533A\u57DF\u4E03","\u533A\u57DF\u516B"],corn:[333.3,null,500,500,333.3,null,333.3,500],soybean:[333.3,null,null,null,333.3,null,333.3,null],peanut:[333.3,500,500,null,333.3,500,333.3,null],wheat:[null,500,null,500,null,500,null,null],Blueberries:[null,null,null,null,null,null,null,500]};Ie(()=>{ge()});function ge(){Se(),ne(),ke(),be(),Le(),Z(),le(),xe(),B.value=Object.keys(K)}const fe={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 be(){s=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({...fe})}),s.cesiumWidget.creditContainer.style.display="none",s.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),ve(),F("shuzisannong:huangdaoqu_town","shuzisannong:huangdaoqu_town")}const B=p([]);function ye(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 he(e,t){}Me(()=>B.value,(e,t)=>{e.length>t.length?e.filter(a=>{if(t.findIndex(l=>l===a)<0)return a}).forEach(a=>{A[a]&&F(A[a],a+"zuowu")}):e.length{if(e.findIndex(l=>l===a)<0)return a}).forEach(a=>{A[a]&&g([a+"zuowu"])})});function F(e,t,o){let a=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:e,parameters:{service:"WMS",format:"image/png",transparent:!0}});a.customName=t;let r=s.imageryLayers.addImageryProvider(a);o&&(s.imageryLayers.lowerToBottom(r),s.imageryLayers.raise(r))}let J="";function ve(){var e=new Cesium.ScreenSpaceEventHandler(s.canvas);e.setInputAction(async function(t){var o=s.camera.getPickRay(t.position),a=s.scene.globe.pick(o,s.scene);if(a){let r=Cesium.Cartographic.fromCartesian(a);if(r){let l=new Cesium.Cartesian2,x=s.camera.positionCartographic.height,f=ye(x);const b=s.imageryLayers._layers,u=b.findIndex(n=>n._imageryProvider._layers&&n._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(u>-1){const n=b[u];let c=n._imageryProvider;if(c&&c.ready&&c._layers&&n.show===!0){l=c.tilingScheme.positionToTileXY(r,f,l);let y=c.pickFeatures(l.x,l.y,f,r.longitude,r.latitude);y&&y.then(async w=>{if(w.length>0){let h=w[0];if(h.properties&&h.properties.XZDM)if(J!==h.properties.XZDM){J=h.properties.XZDM,_.value=J,X();let I=h.data;s.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(I.bbox[0],I.bbox[1],I.bbox[2],I.bbox[3]),duration:2}),E("townLine"),te(I.geometry.coordinates,"townLine","red"),g(["village_CQL"]),ae(`XZDM=${h.properties.XZDM}`,"village_CQL"),Q()}else ee(b,r,f,l,t);else g(["village_CQL"])}})}}else ee(b,r,f,l,t)}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}async function ee(e,t,o,a,r){let l=[],x=e.map(async u=>{if(u._imageryProvider._layers&&Object.values(A).findIndex(n=>n===u._imageryProvider._layers)>-1){const n=u;let c=n._imageryProvider;if(c&&c.ready&&c._layers&&n.show===!0){a=c.tilingScheme.positionToTileXY(t,o,a);let y=c.pickFeatures(a.x,a.y,o,t.longitude,t.latitude);y&&await y.then(w=>{if(w.length>0){E("landtype"),te(w[0].data.geometry.coordinates,"landtype","red");let h=w[0].properties;l.findIndex(ie=>ie&&ie.crop===h.crop)<0&&l.push(h)}})}}});if(await Promise.all(x),l.length>0){const u=r.position;var f=s.scene.globe.ellipsoid,b=s.camera.pickEllipsoid(u,f);if(b){let n=f.cartesianToCartographic(b),c=Cesium.Math.toDegrees(n.longitude).toFixed(6),y=Cesium.Math.toDegrees(n.latitude).toFixed(6);L.value={info:l,lon:c,lat:y}}_e(u),s.scene.postRender.addEventListener(oe)}else Q()}function te(e,t,o){e.forEach(a=>{let r=[];a[0].forEach(l=>{r.push(l[0]),r.push(l[1])}),s.entities.add({name:t,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(r),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:o?Cesium.Color.fromCssColorString(o):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function ae(e,t){let o=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:e}});o.customName=t,s.imageryLayers.addImageryProvider(o)}function g(e,t){if(s){const o=s.imageryLayers._layers;for(let a=o.length-1;a>=0;a--)e.forEach(r=>{o[a]&&o[a]._imageryProvider&&o[a]._imageryProvider.customName&&(t?o[a]._imageryProvider.customName.indexOf(r)>-1&&s.imageryLayers.remove(o[a]):o[a]._imageryProvider.customName===r&&s.imageryLayers.remove(o[a]))})}}function E(e){if(s){let o=s.entities._entities._array;for(var t=o.length-1;t>=0;t--)o[t]._name&&o[t]._name===e&&s.entities.remove(o[t])}}function oe(){if(L.value&&L.value.lon&&L.value.lat){const t=Cesium.Cartesian3.fromDegrees(Number(L.value.lon),Number(L.value.lat),0);var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(s.scene,t);if(Cesium.defined(e)){const o=document.getElementById("popup1");o.style.top=e.y-10+"px",o.style.left=e.x+10+"px"}}}function Q(){const e=document.getElementById("popup1");e.style.display="none",s.scene.postRender.removeEventListener(oe),E("landtype")}function _e(e){const t=document.getElementById("popup1");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}const re=p([]);function xe(){Ee({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),re.value=e.data.features}).catch(e=>{})}function we(){g(["huangdaoqu_town"],!0),g(["shuzisannong:farmlandgbzn"],!0),F("shuzisannong:huangdaoqu_town","shuzisannong:huangdaoqu_town"),s.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),R.value=!1}function Ce(){if(T.value=!T.value,T.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 le=(e,t)=>je({time:"2023-04-19",subregion:t,parent:e}).then(o=>o.data),ne=()=>{Je().then(e=>{S.arr=e.features,S.arr.unshift({bbox:[119.5091,35.5671,120.3285,36.1455],properties:{XZDM:"370211",XZMC:"\u5168\u90E8"}});let t=[...e.features],o=[];t.splice(0,1),t.forEach(a=>{o.push(a.properties.XZMC)}),j.title=[...Object.values(o)],Z()})},ke=()=>{Qe().then(e=>{S.brr=e.features})},Se=()=>{Ve().then(e=>{console.log("res:",e),S.crr=e.features,j.title.forEach((t,o)=>{let a=e.features.map(r=>{if(t===r.properties.town)return r.properties});Object.keys(q).forEach(r=>{a.findIndex(x=>x&&x.crop===r)>-1?q[r].push(1):q[r].push(null)})}),Z(),X()})},X=()=>{_.value=="370211"?(ne(),E("townLine"),g(["village_CQL"]),O({arr:[{name:"\u5C0F\u9EA6",value:101,itemStyle:{opacity:.8,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:156,itemStyle:{opacity:.8,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:156,itemStyle:{opacity:.8,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:156,itemStyle:{opacity:.8,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u84DD\u8393",value:56,itemStyle:{opacity:.8,color:"rgba(72, 102, 211, 0.9)"},label:{show:!0}}]})):_.value&&O({arr:[{name:"\u5C0F\u9EA6",value:101,itemStyle:{opacity:.8,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:156,itemStyle:{opacity:.8,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:156,itemStyle:{opacity:.8,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:0,itemStyle:{opacity:.8,color:"rgba(27, 85, 222, 1)"},label:{show:!1}},{name:"\u84DD\u8393",value:156,itemStyle:{opacity:.8,color:"rgba(72, 102, 211, 0.9)"},label:{show:!1}}]}),[...S.arr].forEach(t=>{t.properties.XZDM==_.value&&(le(t.properties.XZMC,"2"),s.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(t.bbox[0],t.bbox[1],t.bbox[2],t.bbox[3]),duration:2}));let o=[...S.brr],a=[];o.forEach(r=>{r.properties.XZDM==_.value&&a.push(r.properties.XZQMC)}),j.title=[...Object.values(a)],Z()}),g(["village_CQL"]),E("townLine"),ae(`XZDM=${_.value}`,"village_CQL")};function Le(){const e=se($.value);let t={color:["#1C86F1"],legend:{show:!0,top:"10",left:"center",textStyle:{color:"rgba(255,255,255,.9)"},itemWidth:20,itemHeight:12.5,icon:"rect",backgroundColor:"transparent",x:"right"},tooltip:{},grid:{left:"5%",right:"5%",bottom:"9%",top:"15%",containLabel:!0},xAxis:{type:"category",data:["\u6C34\u7530","\u65F1\u5730","\u6C34\u6D47\u5730","\u5176\u4ED6","\u5176\u4ED6"],axisLine:{lineStyle:{color:"#657CA8"}},axisTick:{show:!1},axisLabel:{color:"#eeeeee",rotate:0}},yAxis:{nameTextStyle:{color:"#c0c3cd",padding:[0,0,0,0],fontSize:14},axisLabel:{color:"#c0c3cd",fontSize:14},axisTick:{lineStyle:{color:"#668092",width:1},show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.7)",type:"solid"}},axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.7)",width:1},show:!1},name:"\u9762\u79EF(\u4EA9)"},series:[{type:"bar",barWidth:20,data:[100,78,56,124,67],label:{show:!0,position:"top",textStyle:{color:"#ffffff"}},itemStyle:{normal:{color:function(o){var a=[["rgba(12, 141, 211, 1)","transparent"],["rgba(67, 189, 178, 1)","transparent"],["rgba(254, 201, 107, 1)","transparent"],["rgba(255, 107, 107, 1)","transparent"],["rgba(107, 107, 255, 1)","transparent"]],r=o.dataIndex;return o.dataIndex>=a.length&&(r=o.dataIndex-a.length),new ce(0,0,0,1,[{offset:0,color:a[r][0]},{offset:.5,color:a[r][0]},{offset:1,color:a[r][1]}])}}}}]};e.on("click",o=>Te(o)),de(e,t)}function Te(e){console.log("item:",e),g(["huangdaoqu_town"],!0),g(["shuzisannong:huangdaoqu_town"]),X();let t="shuzisannong:farmland",o=!1;const a=s.imageryLayers._layers;for(let l=a.length-1;l>=0;l--)a[l]&&a[l]._imageryProvider.customName&&a[l]._imageryProvider.customName===t+"gbznt"&&(o=!0);o||F(t,t+"gbznt",!0),re.value.forEach(l=>{console.log("it.properties.name:",l.properties.name),console.log("item.name:",e.name),l.properties.name===e.name&&(console.log("dingwei"),s.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(l.bbox[0],l.bbox[1],l.bbox[2],l.bbox[3]),duration:2}))}),R.value=!0}function Z(){const e=se(Y.value);var t=[{areaName:"\u533A\u57DF\u4E00",rate:"3598"},{areaName:"\u533A\u57DF\u4E8C",rate:"1235"},{areaName:"\u533A\u57DF\u4E09",rate:"2354"},{areaName:"\u533A\u57DF\u56DB",rate:"3251"},{areaName:"\u533A\u57DF\u4E94",rate:"1652"}],o=[],a=[];t.forEach(l=>{o.push(l.areaName),a.push(parseInt(l.rate).toFixed(0))});var r={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!0,top:"10",right:"5%",textStyle:{color:"rgba(255,255,255,.9)"},itemWidth:20,itemHeight:12.5,icon:"rect",backgroundColor:"transparent"},grid:{left:"5%",right:"5%",bottom:"9%",top:"10%",containLabel:!0},xAxis:{data:o,triggerEvent:!0,axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:"#70F5FE"}},axisLabel:{show:!0,rotate:0,interval:0,textStyle:{padding:[8,0,0,0],fontSize:14,color:"rgba(21, 222, 255, 0.8)"}}},yAxis:{name:"",triggerEvent:!0,nameTextStyle:{color:"rgba(255,255,255,1)",fontSize:16,padding:[0,0,10,-20]},splitLine:{show:!0,lineStyle:{color:"#A6D9F6",type:"dashed"}},axisTick:{show:!1},axisLine:{show:!1},axisLabel:{show:!0,textStyle:{color:"rgba(24, 255, 255, 0.8)",fontSize:14}}},series:[{name:"\u9762\u79EF",barMinHeight:10,type:"pictorialBar",barCategoryGap:"60%",symbolOffset:[1,-5],symbol:"path://M0,10 L10,10 C5.5,10 5.5,5 5,0 C4.5,5 4.5,10 0,10 z",itemStyle:{normal:{color:new ce(0,0,0,1,[{offset:0,color:"rgba(161, 222, 147, 1)"},{offset:1,color:"rgba(161, 222, 147, 0.08)"}])}},label:{show:!0,position:"top",textStyle:{color:"#ffffff"}},data:a,z:0}]};e.on("click",l=>De(l)),de(e,r)}function De(e){console.log("\u53F3\u4E0B\u70B9\u51FB",e)}return(e,t)=>{const o=C("el-option"),a=C("el-select"),r=C("el-tooltip"),l=C("el-checkbox"),x=C("el-checkbox-group"),f=C("el-collapse-item"),b=C("el-collapse"),u=C("el-button");return d(),v("div",Ge,[Ue,i("div",$e,[i("div",Ye,[i("div",He,[Ke,i("p",{onClick:t[0]||(t[0]=n=>H("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[P(" \u4E0B\u8F7D \xA0 "),et])]),i("div",{ref_key:"farmlandDiv",ref:$,class:"farmlandDiv"},null,512),D(' ')]),i("div",tt,[i("div",at,[ot,i("p",{onClick:t[1]||(t[1]=n=>H("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[P(" \u4E0B\u8F7D \xA0 "),rt])]),z(a,{"popper-class":"select_city",onChange:t[2]||(t[2]=n=>X(e.item)),modelValue:_.value,"onUpdate:modelValue":t[3]||(t[3]=n=>_.value=n),clearable:"",placeholder:"\u5168\u90E8"},{default:k(()=>[(d(!0),v(V,null,G(M(S).arr,n=>(d(),U(o,{key:n.properties.XZDM,label:n.properties.XZMC,value:n.properties.XZDM},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i("div",{ref_key:"ASdivisionDiv",ref:Y,class:"ASdivision"},null,512)]),i("div",{class:"rightFoldDiv",onClick:t[4]||(t[4]=n=>Ce())},[z(r,{disabled:!M(T),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:k(()=>[M(T)?(d(),v("img",lt)):D("v-if",!0)]),_:1},8,["disabled"]),z(r,{disabled:M(T),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:k(()=>[M(T)?D("v-if",!0):(d(),v("img",nt))]),_:1},8,["disabled"])])]),z(b,{class:"legend",accordion:""},{default:k(()=>[z(f,{name:"1"},{title:k(()=>[P("\u56FE\u4F8B")]),default:k(()=>[i("div",it,[z(x,{modelValue:B.value,"onUpdate:modelValue":t[6]||(t[6]=n=>B.value=n),onChange:he},{default:k(()=>[(d(!0),v(V,null,G(M(K),(n,c,y)=>(d(),U(l,{key:y,style:Pe({background:n.color,border:`1px solid ${n.color}`,width:"100%"}),modelValue:e.checked3,"onUpdate:modelValue":t[5]||(t[5]=w=>e.checked3=w),disabled:n.disabled,label:c},null,8,["style","modelValue","disabled","label"]))),128)),D(` + + + + + + + + + ')]),_:1},8,["modelValue"])])]),_:1})]),_:1}),i("div",st,[z(qe)]),ct,i("div",dt,[(d(!0),v(V,null,G(L.value.info,(n,c)=>(d(),v("div",{key:c},[i("div",ut,[pt,i("span",null,N(n.crop),1)]),i("div",mt,[gt,i("span",null,N((n.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]),i("div",ft,[bt,i("span",null,N(n.town),1)]),n.village?(d(),v("div",yt,[ht,i("span",null,N(n.village),1)])):D("v-if",!0),n.people?(d(),v("div",vt,[_t,i("span",null,N(n.people),1)])):D("v-if",!0)]))),128)),i("div",{class:"cancel",onClick:Q},"X")]),R.value?(d(),U(u,{key:0,class:"back_button",onClick:t[7]||(t[7]=n=>we())},{default:k(()=>[P("\u8FD4\u56DE")]),_:1})):D("v-if",!0)])}}},It=ze(xt,[["__scopeId","data-v-722f0c81"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/plough/abandonedLand/index.vue"]]);export{It as default}; diff --git a/dist/assets/index.9cf392c6.js.gz b/dist/assets/index.9cf392c6.js.gz new file mode 100644 index 0000000..9bae307 Binary files /dev/null and b/dist/assets/index.9cf392c6.js.gz differ diff --git a/dist/assets/index.a62912e0.js.gz b/dist/assets/index.a62912e0.js.gz deleted file mode 100644 index e4db59e..0000000 Binary files a/dist/assets/index.a62912e0.js.gz and /dev/null differ diff --git a/dist/assets/index.a7fc6791.js b/dist/assets/index.a7fc6791.js new file mode 100644 index 0000000..e70fd90 --- /dev/null +++ b/dist/assets/index.a7fc6791.js @@ -0,0 +1,12 @@ +import{_ as Xe,r as g,A as R,B as Ze,C as Fe,D as Y,d as h,o as L,c as z,l,m as w,e as b,w as k,g as N,I as fe,J as me,f as V,k as ge,x as I,y as We,p as Re,q as Ne}from"./index.b3a66a9e.js";import K from"./downloads.e955445d.js";import{_ as Ve,a as Oe,b as Ge,c as Qe,d as qe,e as Ue}from"./linesGL.90f708a5.js";import{i as H,L as ye}from"./index.c9f5bd8b.js";import{T as je}from"./TimeLine.6cac5abc.js";import{u as be}from"./useEcharts.83442be8.js";import{b as ve,g as Je,c as $e,a as Ye}from"./classify.ee69cc46.js";const C=E=>(Re("data-v-7527f9ca"),E=E(),Ne(),E),He={class:"center"},Ke=C(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),eo={class:"leftWra"},oo={class:"leftTop"},ao={class:"title"},to=C(()=>l("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30",-1)),ro=C(()=>l("img",{src:K,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),lo=C(()=>l("div",{class:"production"},[l("div",{class:"leftProduction"},[l("p",null,[l("span",null,"900"),w(" \u5428 "),l("br"),w(" \u6700\u5C0F\u503C ")])]),l("div",{class:"rightProduction"},[l("p",null,[l("span",null,"960"),w(" \u5428 "),l("br"),w(" \u6700\u5C0F\u503C ")])])],-1)),so={class:"rightWra"},io={class:"rightTop"},no={class:"title"},co=C(()=>l("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u9AD8\u6807\u51C6\u519C\u7530",-1)),uo=C(()=>l("img",{src:K,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),po={class:"rightbottom"},fo={class:"title"},mo=C(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),go=C(()=>l("img",{src:K,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),yo={class:"bottom_center"},bo=We(' ',1),vo={id:"popup"},ho={id:"pop"},_o={key:0},xo=C(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),wo={class:"mt-4"},Co={__name:"index",setup(E){let n=g(null);const ee=g(null),oe=g(null);g(null);const ae=g(null),S=g("370211");g(null);let _=R({arr:[],brr:[],crr:[]});R({arr:[]});const te=g({name:"",value:""});g([]);const re=g([]),P=g(!1);let O=g(!0),G=g(!0);g("{x:765,y:191}");let le=R({arr:[{name:"\u5C0F\u9EA6",value:101,itemStyle:{opacity:.5,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:156,itemStyle:{opacity:.5,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:156,itemStyle:{opacity:.5,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:156,itemStyle:{opacity:.5,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u84DD\u8393",value:56,itemStyle:{opacity:.5,color:"rgba(72, 102, 211, 0.9)"},label:{show:!0}},{name:"\u8336\u53F6",value:56,itemStyle:{opacity:.5,color:"rgba(26, 255, 140, 1)"},label:{show:!0}}]});Ze(()=>_.arr,e=>{console.log("val:",e)});var Q={title:[]};let q={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]};Fe(()=>{ie(),Me(),ne(),Le(),_e(),ue(),Ae(),Z(),we()});const he={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 _e(){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({...he})}),n.cesiumWidget.creditContainer.style.display="none",J("shuzisannong:huangdaoqu_town","tl"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Ce(),Pe()}function U(e,o,t){e.forEach(a=>{let s=[];a[0].forEach(r=>{s.push(r[0]),s.push(r[1])}),n.entities.add({name:o,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(s),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:t?Cesium.Color.fromCssColorString(t):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function xe(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 we(){Y({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),re.value=e.data.features}).catch(e=>{})}let y=g({label:[]}),B="";function Ce(){var e=new Cesium.ScreenSpaceEventHandler(n.canvas);e.setInputAction(function(o){var t=n.camera.getPickRay(o.position),a=n.scene.globe.pick(t,n.scene);if(a){let s=Cesium.Cartographic.fromCartesian(a);if(s){let r=new Cesium.Cartesian2,d=n.camera.positionCartographic.height,c=xe(d);const p=n.imageryLayers._layers,m=p.findIndex(u=>u._imageryProvider._layers&&u._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(m>-1){const u=p[m];let f=u._imageryProvider;if(f&&f.ready&&f._layers&&u.show===!0){r=f.tilingScheme.positionToTileXY(s,c,r);let i=f.pickFeatures(r.x,r.y,c,s.longitude,s.latitude);i&&i.then(T=>{if(T.length>0){let x=T[0];if(x.properties&&x.properties.XZDM)if(B!==x.properties.XZDM){B=x.properties.XZDM,S.value=B,ce();let A=x.data;n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(A.bbox[0],A.bbox[1],A.bbox[2],A.bbox[3]),duration:2}),M("townLine"),U(A.geometry&&A.geometry.coordinates,"townLine","yellow"),v(["village_CQL"]),se(`XZDM=${x.properties.XZDM}`,"village_CQL");let W=n.entities._entities._array;for(var D=W.length-1;D>=0;D--)if(W[D]._name&&W[D]._name==="point"+x.properties.XZDM){let Be=W[D]._info;y.value=Be,console.log(y.value,"------------------"),$(o.position),n.scene.postRender.addEventListener(pe)}M("villageLine"),X=""}else Se(p,r,c,s);else v(["village_CQL"]),F()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let X="";function Se(e,o,t,a){const s=e.findIndex(r=>r._imageryProvider._layers&&r._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(s>-1){const r=e[s];let d=r._imageryProvider;if(d&&d.ready&&d._layers&&r.show===!0){o=d.tilingScheme.positionToTileXY(a,t,o);let c=d.pickFeatures(o.x,o.y,t,a.longitude,a.latitude);c&&c.then(p=>{if(p.length>0){let m=p[0];if(m.properties&&m.properties.XZQDM&&X!==m.properties.XZQDM){X=m.properties.XZQDM;let u=m.data;if(M("villageLine"),U(u.geometry&&u.geometry.coordinates,"villageLine","yellow"),m.properties.XZQDM==="370211104217"){const f=Cesium.Rectangle.fromDegrees(u.bbox[0],u.bbox[1],u.bbox[2],u.bbox[3]),i=Cesium.Rectangle.center(f);let T=Cesium.Math.toDegrees(i.longitude),D=Cesium.Math.toDegrees(i.latitude),x={lon:T,lat:D,...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}]};y.value=x}}}})}}}function se(e,o){let t=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:e}});t.customName=o,n.imageryLayers.addImageryProvider(t)}function v(e,o){if(n){const t=n.imageryLayers._layers;for(let a=t.length-1;a>=0;a--)e.forEach(s=>{t[a]._imageryProvider&&t[a]._imageryProvider.customName&&(o?t[a]._imageryProvider.customName.indexOf(s)>-1&&n.imageryLayers.remove(t[a]):t[a]._imageryProvider.customName===s&&n.imageryLayers.remove(t[a]))})}}function M(e){if(n){let t=n.entities._entities._array;for(var o=t.length-1;o>=0;o--)t[o]._name&&t[o]._name===e&&n.entities.remove(t[o])}}function ke(){if(O.value=!O.value,O.value){let e=document.querySelector(".leftWra");e.style.transform="translate(0,0)"}else{let e=document.querySelector(".leftWra");e.style.transform="translate(-107%,0)"}}function De(){if(G.value=!G.value,G.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 ie=()=>{ve({time:"2023-04-25",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(e=>{console.log(e)})},ne=()=>{Je().then(e=>{_.arr=e.features,_.arr.unshift({bbox:[119.5091,35.5671,120.3285,36.1455],properties:{XZDM:"370211",XZMC:"\u5168\u90E8"}});let o=[...e.features],t=[];o.splice(0,1),o.forEach(a=>{t.push(a.properties.XZMC)}),Q.title=[...Object.values(t)],Z()})},Le=()=>{$e().then(e=>{_.brr=e.features})},Me=()=>{Ye().then(e=>{_.crr=e.features,Q.title.forEach((o,t)=>{let a=e.features.map(s=>{if(o===s.properties.town)return s.properties});Object.keys(q).forEach(s=>{const r=a.findIndex(d=>d&&d.crop===s);r>-1?q[s].push(a[r].Shape_Area):q[s].push(null)})}),Z()})},ce=()=>{ie(),le.arr=[{name:"\u5C0F\u9EA6",value:20,itemStyle:{opacity:.5,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:10,itemStyle:{opacity:.5,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:13,itemStyle:{opacity:.5,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:18,itemStyle:{opacity:.5,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u8336\u53F6",value:16,itemStyle:{opacity:.5,color:"rgba(26, 255, 140, 1)"},label:{show:!0}}],S.value=="370211"&&(v(["village_CQL"]),v(["aaa"]),ne(),le=R({arr:[{name:"\u5C0F\u9EA6",value:101,itemStyle:{opacity:.5,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:156,itemStyle:{opacity:.5,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:156,itemStyle:{opacity:.5,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:156,itemStyle:{opacity:.5,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u84DD\u8393",value:56,itemStyle:{opacity:.5,color:"rgba(72, 102, 211, 0.9)"},label:{show:!0}},{name:"\u8336\u53F6",value:56,itemStyle:{opacity:.5,color:"rgba(26, 255, 140, 1)"},label:{show:!0}}]}),F());let e=[..._.arr];console.log("arr:",e),e.forEach(a=>{a.properties.XZDM==S.value&&n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),duration:2});let s=[..._.brr],r=[];s.forEach(d=>{d.properties.XZDM==S.value&&r.push(d.properties.XZQMC)}),Q.title=[...Object.values(r)]}),Z(),ue();const t=[..._.arr].find(a=>a.properties.XZDM===S.value);t&&(M("townLine"),U(t.geometry.coordinates,"townLine","yellow")),v(["aaa"]),se(`XZDM=${S.value}`,"aaa"),ve({time:"2023-04-26",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(a=>{let s=[];a.data.map((r,d)=>{r.region==t.properties.XZMC&&s.push({crop:r.type,Shape_Area:r.area})}),y.value={label:s},console.log(),console.log(s),$({x:642,y:312})})},j=e=>{Te(e)},Te=e=>{let o=document.createElement("a");o.style.display="none",o.href=e,document.body.appendChild(o),o.click(),document.body.removeChild(o)};function ue(){const e=H(ee.value);for(var o=[2,8,5,8,10,12,11],t=[1,7,2,7,9,11,10],a={chart0:{xcategory:["2017\u5E74","2018\u5E74","2019\u5E74","2020\u5E74","2021\u5E74","2022\u5E74","2023\u5E74"],low:o,lowLine:[]}},s={chart0:{xcategory:["2017\u5E74","2018\u5E74","2019\u5E74","2020\u5E74","2021\u5E74","2022\u5E74","2023\u5E74"],low:t,lowLine:[]}},r=[{coords:[]}],d=[{coords:[]}],c=0;c";return m.forEach(function(f){u+='',parseFloat(f.data)>=50?u+=f.seriesName+': '+f.data+"\u5428
":parseFloat(f.data)<50&&(u+=f.seriesName+': '+f.data+"\u5428
")}),u}},legend:{data:["\u6700\u5927\u503C","\u6700\u5C0F\u503C"],itemWidth:20,itemHeight:12.5,icon:"rect",textStyle:{fontSize:12,color:"rgb(0,253,255,0.6)"},top:"5%",right:"5%"},grid:{bottom:50,left:70,right:50},xAxis:{axisLine:{show:!0,lineStyle:{color:"#15faff"}},axisTick:{show:!1},axisLabel:{show:!0},data:["2017\u5E74","2018\u5E74","2019\u5E74","2020\u5E74","2021\u5E74","2022\u5E74","2023\u5E74"]},yAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed",color:"#4b4d64"}},axisLabel:{formatter:"{value}",textStyle:{color:"#ffffff"}}},series:[{name:"\u6700\u5927\u503C",type:"line",symbol:"none",symbolSize:10,areaStyle:{normal:{color:new ye(0,0,0,1,[{offset:0,color:"rgba(255, 204,1, .9)"},{offset:.8,color:"rgba(6, 8, 41,.1)"}],!1),shadowColor:"rgba(0, 0, 0, 0.1)",shadowBlur:10}},itemStyle:{normal:{color:"#ffcb00"}},data:o},{name:"\u6700\u5927\u503C",type:"lines",coordinateSystem:"cartesian2d",zlevel:1,polyline:!0,smooth:!0,symbol:"circle",effect:{show:!0,trailLength:.4,symbol:"circle",period:8,symbolSize:8},lineStyle:{normal:{color:"#ffcb00",width:0,opacity:0,curveness:0}},data:r},{name:"\u6700\u5C0F\u503C",type:"line",symbol:"none",symbolSize:10,areaStyle:{normal:{color:new ye(0,0,0,1,[{offset:0,color:"rgba(21, 250, 255,.9)"},{offset:.8,color:"rgba(6, 8, 41,.1)"}],!1),shadowColor:"rgba(0, 0, 0, 0.1)",shadowBlur:10}},itemStyle:{normal:{color:"#15faff"}},data:t},{name:"\u6700\u5C0F\u503C",type:"lines",coordinateSystem:"cartesian2d",zlevel:1,smooth:!0,polyline:!0,symbol:"circle",effect:{show:!0,trailLength:.4,symbol:"circle",period:8,symbolSize:8},lineStyle:{normal:{color:"#15faff",width:0,opacity:0,curveness:0}},data:d}]};p&&e.setOption(p),window.addEventListener("resize",function(){e.resize()})}function Ae(){const e=H(oe.value);let t={tooltip:{trigger:"axis",axisPointer:{type:"shadow",textStyle:{color:"#fff"}}},calculable:!0,legend:{top:"7%",right:"5%",icon:"rect",textStyle:{color:"#fff"}},grid:{left:"15%",bottom:"16%",right:"2%"},xAxis:[{type:"category",axisLine:{lineStyle:{color:"rgba(255,255,255,.5)"}},splitLine:{show:!1},axisTick:{show:!1},splitArea:{show:!1},axisLabel:{interval:0,color:"rgba(255,255,255,0.7)",fontSize:14},data:["\u533A\u57DF\u4E00","\u533A\u57DF\u4E8C","\u533A\u57DF\u4E09","\u533A\u57DF\u56DB","\u533A\u57DF\u4E94","\u533A\u57DF\u516D"]}],yAxis:[{type:"value",name:"\u4EA7\u91CF(\u5428)",nameTextStyle:{color:"rgba(255,255,255,0.8)",fontSize:14,padding:[0,60,0,10]},splitLine:{show:!1},axisLine:{show:!1},axisTick:{show:!1},axisLabel:{interval:0,color:"rgba(255,255,255,0.5)",fontSize:14},splitArea:{show:!1}}],series:[{name:"\u6700\u5927\u503C",type:"bar",barWidth:14,barGap:"85%",label:{show:!1,position:"top",fontSize:14,color:"rgba(255, 255, 255, 1)"},itemStyle:{normal:{barBorderRadius:2,color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(242, 252, 252, 0.5)"},{offset:.5,color:"rgba(242, 252, 252, 0.3)"},{offset:1,color:"rgba(242, 252, 252, 0)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}},data:[709,1917,2455,2610,1719,1433]},{name:"\u6700\u5C0F\u503C",type:"bar",barWidth:14,barGap:"85%",label:{show:!1,position:"top",fontSize:14,color:"rgba(255, 255, 255, 1)"},itemStyle:{normal:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(143, 186, 243, 0.5)"},{offset:.5,color:"rgba(143, 186, 243, 0.3)"},{offset:1,color:"rgba(143, 186, 243, 0)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}},data:[300,500,700,400,600,1200]}]};e.on("click",function(a){console.log(a.name)}),e.on("click",a=>Ie(a)),t&&e.setOption(t,{notMerge:!0,grid:{bottom:20}}),be(e,t)}function J(e,o){let t=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:e,parameters:{service:"WMS",format:"image/png",transparent:!0}});t.customName=o;let a=n.imageryLayers.addImageryProvider(t);o.indexOf("gbznt")>-1&&(n.imageryLayers.lowerToBottom(a),n.imageryLayers.raise(a))}function ze(){v(["gbznt"],!0),J("shuzisannong:huangdaoqu_town","tl"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),P.value=!1}function Ie(e){console.log("item:",e),v(["huangdaoqu_town"],!0),v(["tl"],!0);let o="shuzisannong:farmland",t=!1;const a=n.imageryLayers._layers;for(let r=a.length-1;r>=0;r--)a[r]&&a[r]._imageryProvider.customName&&a[r]._imageryProvider.customName===o+"gbznt"&&(t=!0);t||J(o,o+"gbznt"),re.value.forEach(r=>{console.log("it.properties.name:",r.properties.name),console.log("item.name:",e.name),r.properties.name===e.name&&(console.log("dingwei"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(r.bbox[0],r.bbox[1],r.bbox[2],r.bbox[3]),duration:2}))}),P.value=!0,y.value={label:[{crop:"\u5C0F\u9EA6",Shape_Area:"53000"},{crop:"\u5730\u74DC",Shape_Area:"50000"}]},console.log(y.label),$({x:642,y:312})}function Z(){const e=H(ae.value);be(e,{tooltip:{trigger:"axis",axisPointer:{type:"shadow",textStyle:{color:"#fff"}}},calculable:!0,legend:{top:"7%",right:"5%",icon:"rect",textStyle:{color:"#fff"}},grid:{left:"15%",bottom:"16%",right:"2%"},xAxis:[{type:"category",axisLine:{lineStyle:{color:"rgba(255,255,255,.5)"}},splitLine:{show:!1},axisTick:{show:!1},splitArea:{show:!1},axisLabel:{interval:0,color:"rgba(255,255,255,0.7)",fontSize:14},data:["\u533A\u57DF\u4E00","\u533A\u57DF\u4E8C","\u533A\u57DF\u4E09","\u533A\u57DF\u56DB","\u533A\u57DF\u4E94","\u533A\u57DF\u516D"]}],yAxis:[{type:"value",name:"\u4EA7\u91CF(\u5428)",nameTextStyle:{color:"rgba(255,255,255,0.8)",fontSize:14,padding:[0,60,0,10]},splitLine:{show:!1},axisLine:{show:!1},axisTick:{show:!1},axisLabel:{interval:0,color:"rgba(255,255,255,0.5)",fontSize:14},splitArea:{show:!1}}],series:[{name:"\u6700\u5927\u503C",type:"bar",barWidth:14,barGap:"85%",label:{show:!1,position:"top",fontSize:14,color:"rgba(255, 255, 255, 1)"},itemStyle:{normal:{barBorderRadius:2,color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(4, 247, 227, 1)"},{offset:.8,color:"rgba(4, 247, 227, 0.5)"},{offset:1,color:"rgba(4, 247, 227, 0.0)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}},data:[709,1917,2455,2610,1719,1433]},{name:"\u6700\u5C0F\u503C",type:"bar",barWidth:14,barGap:"85%",label:{show:!1,position:"top",fontSize:14,color:"rgba(255, 255, 255, 1)"},itemStyle:{normal:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(33, 187, 251, 0.5)"},{offset:.5,color:"rgba(33, 187, 251, 0.3)"},{offset:1,color:"rgba(33, 187, 251, 0)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}},data:[300,500,700,400,600,1200]}]})}function Ee(){let e=de.value;console.log("fl:",e),Y({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(o=>{console.log("res1111:",o),o.data.features.forEach((a,s)=>{const r=Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),d=Cesium.Rectangle.center(r);let c=Cesium.Math.toDegrees(d.longitude),p=Cesium.Math.toDegrees(d.latitude);a.properties.XZDM==="370211011"?(c=120.0863,p=35.941):a.properties.XZDM==="370211003"&&(c=120.243682,p=35.97123201);const m=e[a.properties.XZMC];let u=[];m&&(u=m.map((f,i)=>f.properties)),n.entities.add({name:"point"+a.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(c,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:c,lat:p}})})}).catch(o=>{})}let de=g({});function Pe(){Y({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(e=>{let o=e.data.features,t={};o.forEach(a=>{let s=a.properties.town;t[s]?t[s].push(a):t[s]=[a]}),de.value=t,Ee()}).catch(e=>{})}function pe(){if(y.value&&y.value.lon&&y.value.lat){const o=Cesium.Cartesian3.fromDegrees(Number(y.value.lon),Number(y.value.lat),0);var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(n.scene,o);if(Cesium.defined(e)){const t=document.getElementById("pop");t.style.top=e.y-10+"px",t.style.left=e.x+10+"px"}}}function F(){B="",X="",v(["village_CQL"]),v(["aaa"]),M("villageLine"),M("townLine");const e=document.getElementById("pop");e.style.display="none",n.scene.postRender.removeEventListener(pe),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),v(["gbznt"],!0),P.value=!1}function $(e){console.log(e);const o=document.getElementById("pop");o.style.display="block",o.style.position="absolute",o.style.top=e.y-10+"px",o.style.left=e.x+10+"px",o.style.zIndex=99}return(e,o)=>{const t=h("ArrowRightBold"),a=h("el-icon"),s=h("el-option"),r=h("el-select"),d=h("ArrowLeftBold"),c=h("el-button"),p=h("el-checkbox"),m=h("el-checkbox-group"),u=h("el-collapse-item"),f=h("el-collapse");return L(),z("div",He,[Ke,l("div",eo,[l("div",oo,[l("div",ao,[to,l("p",{onClick:o[0]||(o[0]=i=>j("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[w(" \u4E0B\u8F7D \xA0 "),ro])]),lo,l("div",{ref_key:"areaDiv",ref:ee,class:"areaDiv"},null,512)]),l("div",{class:"leftFoldDiv",onClick:o[1]||(o[1]=i=>ke())},[b(a,null,{default:k(()=>[b(t)]),_:1})])]),l("div",so,[l("div",io,[l("div",no,[co,l("p",{onClick:o[2]||(o[2]=i=>j("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/81f3b011-7a5d-4a21-88aa-8ea51142e564_%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%87%BA.xlsx"))},[w(" \u4E0B\u8F7D \xA0 "),uo])]),l("div",{ref_key:"farmlandDiv",ref:oe,class:"farmlandDiv"},null,512),N(' ')]),l("div",po,[l("div",fo,[mo,l("p",{onClick:o[3]||(o[3]=i=>j("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/0c0ff4cf-151a-470e-856a-b0fce0fde997_%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%87%BA.xlsx"))},[w(" \u4E0B\u8F7D \xA0 "),go])]),b(r,{"popper-class":"select_city",onChange:o[4]||(o[4]=i=>ce(e.item)),modelValue:S.value,"onUpdate:modelValue":o[5]||(o[5]=i=>S.value=i),clearable:"",placeholder:"\u5168\u90E8"},{default:k(()=>[(L(!0),z(fe,null,me(V(_).arr,i=>(L(),ge(s,{key:i.properties.XZDM,label:i.properties.XZMC,value:i.properties.XZDM},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l("div",{ref_key:"ASdivisionDiv",ref:ae,class:"ASdivision"},null,512)]),l("div",{class:"rightFoldDiv",onClick:o[6]||(o[6]=i=>De())},[b(a,null,{default:k(()=>[b(d)]),_:1})])]),l("div",yo,[b(je)]),bo,l("div",vo,[l("div",null,I(te.value.name)+"\uFF1A",1),l("div",null,I(te.value.value)+"\u4EA9",1),l("div",{class:"cancel",onClick:F},"X")]),l("div",ho,[(L(!0),z(fe,null,me(V(y).label,(i,T)=>(L(),z("div",{key:T},[l("div",null,I(i.crop)+"\uFF1A",1),l("div",null,I((i.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),V(y).XZQMC?(L(),z("div",_o,[xo,l("div",null,I(V(y).XZQMC),1)])):N("v-if",!0),l("div",{class:"cancel",onClick:F},"X")]),P.value?(L(),ge(c,{key:0,class:"back_button",onClick:o[7]||(o[7]=i=>ze())},{default:k(()=>[w("\u8FD4\u56DE")]),_:1})):N("v-if",!0),b(f,{class:"legend",accordion:""},{default:k(()=>[b(u,{name:"1"},{title:k(()=>[w("\u56FE\u4F8B")]),default:k(()=>[l("div",wo,[b(m,{modelValue:e.checkList,"onUpdate:modelValue":o[13]||(o[13]=i=>e.checkList=i),onChange:e.change},{default:k(()=>[N(``),b(p,{style:{background:"rgba(255, 238, 204, 1)",border:"1px solid rgba(251, 171, 60, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":o[8]||(o[8]=i=>e.checked3=i),label:"0-200"},null,8,["modelValue"]),b(p,{style:{background:"rgba(255, 220, 153, 1)",border:"1px solid rgba(251, 219, 13, 1)",width:"100%"},modelValue:e.checked4,"onUpdate:modelValue":o[9]||(o[9]=i=>e.checked4=i),label:"200-400"},null,8,["modelValue"]),b(p,{style:{background:"rgba(255, 203, 102, 1)",border:"1px solid rgba(244, 218, 136, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":o[10]||(o[10]=i=>e.checked3=i),label:"400-600"},null,8,["modelValue"]),b(p,{style:{background:"rgba(255, 185, 51, 1)",border:"1px solid rgba(174, 83, 110, 1)",width:"100%"},modelValue:e.checked4,"onUpdate:modelValue":o[11]||(o[11]=i=>e.checked4=i),label:"600-800"},null,8,["modelValue"]),b(p,{style:{background:"rgba(255, 168, 0, 1)",border:"1px solid rgba(242, 177, 167, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":o[12]||(o[12]=i=>e.checked3=i),label:"800-1000"},null,8,["modelValue"])]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1})])}}},zo=Xe(Co,[["__scopeId","data-v-7527f9ca"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/output/wheat/index.vue"]]);export{zo as default}; diff --git a/dist/assets/index.a7fc6791.js.gz b/dist/assets/index.a7fc6791.js.gz new file mode 100644 index 0000000..ea40bce Binary files /dev/null and b/dist/assets/index.a7fc6791.js.gz differ diff --git a/dist/assets/index.c0b6164e.js b/dist/assets/index.a9256ae6.js similarity index 94% rename from dist/assets/index.c0b6164e.js rename to dist/assets/index.a9256ae6.js index 697ef22..0aea5ac 100644 --- a/dist/assets/index.c0b6164e.js +++ b/dist/assets/index.a9256ae6.js @@ -1 +1 @@ -import{_ as ge,r as y,v as z,C as ee,d as x,o as b,k as $,w as a,e,f as l,P as k,m as c,c as A,J as K,K as Q,x as F,D as Se,l as R,g as fe,p as Re,q as Le,O as Me,a as Fe,B as Pe,U as We,T as Ae,H as re,I as Oe,j as qe,s as Ee}from"./index.5f349928.js";import{l as Ye,c as Ge,r as ze,g as $e,u as Je,a as He,d as Be}from"./job.3b41d90e.js";const Ke={__name:"second",props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},emits:["update"],setup(J,{emit:j}){const f=J,n=y(1),r=y(0),p=y(1),u=y(0),g=y(1),v=y([]),C=y([0]),O=z(()=>(r.value=f.check(r.value,0,58),p.value=f.check(p.value,r.value+1,59),r.value+"-"+p.value)),I=z(()=>(u.value=f.check(u.value,0,58),g.value=f.check(g.value,1,59-u.value),u.value+"/"+g.value)),L=z(()=>v.value.join(","));ee(()=>f.cron.second,_=>E(_)),ee([n,O,I,L],()=>P());function E(_){if(_==="*")n.value=1;else if(_.indexOf("-")>-1){const s=_.split("-");r.value=Number(s[0]),p.value=Number(s[1]),n.value=2}else if(_.indexOf("/")>-1){const s=_.split("/");u.value=Number(s[0]),g.value=Number(s[1]),n.value=3}else v.value=[...new Set(_.split(",").map(s=>Number(s)))],n.value=4}function P(){switch(n.value){case 1:j("update","second","*","second");break;case 2:j("update","second",O.value,"second");break;case 3:j("update","second",I.value,"second");break;case 4:v.value.length===0?v.value.push(C.value[0]):C.value=v.value,j("update","second",L.value,"second");break}}return(_,s)=>{const m=x("el-radio"),d=x("el-form-item"),o=x("el-input-number"),D=x("el-option"),N=x("el-select"),M=x("el-form");return b(),$(M,{size:"small"},{default:a(()=>[e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[0]||(s[0]=t=>k(n)?n.value=t:null),label:1},{default:a(()=>[c(" \u79D2\uFF0C\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /] ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[3]||(s[3]=t=>k(n)?n.value=t:null),label:2},{default:a(()=>[c(" \u5468\u671F\u4ECE "),e(o,{modelValue:l(r),"onUpdate:modelValue":s[1]||(s[1]=t=>k(r)?r.value=t:null),min:0,max:58},null,8,["modelValue"]),c(" - "),e(o,{modelValue:l(p),"onUpdate:modelValue":s[2]||(s[2]=t=>k(p)?p.value=t:null),min:l(r)+1,max:59},null,8,["modelValue","min"]),c(" \u79D2 ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[6]||(s[6]=t=>k(n)?n.value=t:null),label:3},{default:a(()=>[c(" \u4ECE "),e(o,{modelValue:l(u),"onUpdate:modelValue":s[4]||(s[4]=t=>k(u)?u.value=t:null),min:0,max:58},null,8,["modelValue"]),c(" \u79D2\u5F00\u59CB\uFF0C\u6BCF "),e(o,{modelValue:l(g),"onUpdate:modelValue":s[5]||(s[5]=t=>k(g)?g.value=t:null),min:1,max:59-l(u)},null,8,["modelValue","max"]),c(" \u79D2\u6267\u884C\u4E00\u6B21 ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[8]||(s[8]=t=>k(n)?n.value=t:null),label:4},{default:a(()=>[c(" \u6307\u5B9A "),e(N,{clearable:"",modelValue:l(v),"onUpdate:modelValue":s[7]||(s[7]=t=>k(v)?v.value=t:null),placeholder:"\u53EF\u591A\u9009",multiple:"","multiple-limit":10},{default:a(()=>[(b(),A(K,null,Q(60,t=>e(D,{key:t,label:t-1,value:t-1},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},Qe=ge(Ke,[["__scopeId","data-v-1b392933"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/second.vue"]]);const Xe={__name:"min",props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},emits:["update"],setup(J,{emit:j}){const f=J,n=y(1),r=y(0),p=y(1),u=y(0),g=y(1),v=y([]),C=y([0]),O=z(()=>(r.value=f.check(r.value,0,58),p.value=f.check(p.value,r.value+1,59),r.value+"-"+p.value)),I=z(()=>(u.value=f.check(u.value,0,58),g.value=f.check(g.value,1,59-u.value),u.value+"/"+g.value)),L=z(()=>v.value.join(","));ee(()=>f.cron.min,_=>E(_)),ee([n,O,I,L],()=>P());function E(_){if(_==="*")n.value=1;else if(_.indexOf("-")>-1){const s=_.split("-");r.value=Number(s[0]),p.value=Number(s[1]),n.value=2}else if(_.indexOf("/")>-1){const s=_.split("/");u.value=Number(s[0]),g.value=Number(s[1]),n.value=3}else v.value=[...new Set(_.split(",").map(s=>Number(s)))],n.value=4}function P(){switch(n.value){case 1:j("update","min","*","min");break;case 2:j("update","min",O.value,"min");break;case 3:j("update","min",I.value,"min");break;case 4:v.value.length===0?v.value.push(C.value[0]):C.value=v.value,j("update","min",L.value,"min");break}}return(_,s)=>{const m=x("el-radio"),d=x("el-form-item"),o=x("el-input-number"),D=x("el-option"),N=x("el-select"),M=x("el-form");return b(),$(M,{size:"small"},{default:a(()=>[e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[0]||(s[0]=t=>k(n)?n.value=t:null),label:1},{default:a(()=>[c(" \u5206\u949F\uFF0C\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /] ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[3]||(s[3]=t=>k(n)?n.value=t:null),label:2},{default:a(()=>[c(" \u5468\u671F\u4ECE "),e(o,{modelValue:l(r),"onUpdate:modelValue":s[1]||(s[1]=t=>k(r)?r.value=t:null),min:0,max:58},null,8,["modelValue"]),c(" - "),e(o,{modelValue:l(p),"onUpdate:modelValue":s[2]||(s[2]=t=>k(p)?p.value=t:null),min:l(r)+1,max:59},null,8,["modelValue","min"]),c(" \u5206\u949F ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[6]||(s[6]=t=>k(n)?n.value=t:null),label:3},{default:a(()=>[c(" \u4ECE "),e(o,{modelValue:l(u),"onUpdate:modelValue":s[4]||(s[4]=t=>k(u)?u.value=t:null),min:0,max:58},null,8,["modelValue"]),c(" \u5206\u949F\u5F00\u59CB\uFF0C \u6BCF "),e(o,{modelValue:l(g),"onUpdate:modelValue":s[5]||(s[5]=t=>k(g)?g.value=t:null),min:1,max:59-l(u)},null,8,["modelValue","max"]),c(" \u5206\u949F\u6267\u884C\u4E00\u6B21 ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[8]||(s[8]=t=>k(n)?n.value=t:null),label:4},{default:a(()=>[c(" \u6307\u5B9A "),e(N,{clearable:"",modelValue:l(v),"onUpdate:modelValue":s[7]||(s[7]=t=>k(v)?v.value=t:null),placeholder:"\u53EF\u591A\u9009",multiple:"","multiple-limit":10},{default:a(()=>[(b(),A(K,null,Q(60,t=>e(D,{key:t,label:t-1,value:t-1},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},Ze=ge(Xe,[["__scopeId","data-v-f0579573"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/min.vue"]]);const el={__name:"hour",props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},emits:["update"],setup(J,{emit:j}){const f=J,n=y(1),r=y(0),p=y(1),u=y(0),g=y(1),v=y([]),C=y([0]),O=z(()=>(r.value=f.check(r.value,0,22),p.value=f.check(p.value,r.value+1,23),r.value+"-"+p.value)),I=z(()=>(u.value=f.check(u.value,0,22),g.value=f.check(g.value,1,23-u.value),u.value+"/"+g.value)),L=z(()=>v.value.join(","));ee(()=>f.cron.hour,_=>E(_)),ee([n,O,I,L],()=>P());function E(_){if(_==="*")n.value=1;else if(_.indexOf("-")>-1){const s=_.split("-");r.value=Number(s[0]),p.value=Number(s[1]),n.value=2}else if(_.indexOf("/")>-1){const s=_.split("/");u.value=Number(s[0]),g.value=Number(s[1]),n.value=3}else v.value=[...new Set(_.split(",").map(s=>Number(s)))],n.value=4}function P(){switch(n.value){case 1:j("update","hour","*","hour");break;case 2:j("update","hour",O.value,"hour");break;case 3:j("update","hour",I.value,"hour");break;case 4:v.value.length===0?v.value.push(C.value[0]):C.value=v.value,j("update","hour",L.value,"hour");break}}return(_,s)=>{const m=x("el-radio"),d=x("el-form-item"),o=x("el-input-number"),D=x("el-option"),N=x("el-select"),M=x("el-form");return b(),$(M,{size:"small"},{default:a(()=>[e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[0]||(s[0]=t=>k(n)?n.value=t:null),label:1},{default:a(()=>[c(" \u5C0F\u65F6\uFF0C\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /] ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[3]||(s[3]=t=>k(n)?n.value=t:null),label:2},{default:a(()=>[c(" \u5468\u671F\u4ECE "),e(o,{modelValue:l(r),"onUpdate:modelValue":s[1]||(s[1]=t=>k(r)?r.value=t:null),min:0,max:22},null,8,["modelValue"]),c(" - "),e(o,{modelValue:l(p),"onUpdate:modelValue":s[2]||(s[2]=t=>k(p)?p.value=t:null),min:l(r)+1,max:23},null,8,["modelValue","min"]),c(" \u65F6 ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[6]||(s[6]=t=>k(n)?n.value=t:null),label:3},{default:a(()=>[c(" \u4ECE "),e(o,{modelValue:l(u),"onUpdate:modelValue":s[4]||(s[4]=t=>k(u)?u.value=t:null),min:0,max:22},null,8,["modelValue"]),c(" \u65F6\u5F00\u59CB\uFF0C\u6BCF "),e(o,{modelValue:l(g),"onUpdate:modelValue":s[5]||(s[5]=t=>k(g)?g.value=t:null),min:1,max:23-l(u)},null,8,["modelValue","max"]),c(" \u5C0F\u65F6\u6267\u884C\u4E00\u6B21 ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[8]||(s[8]=t=>k(n)?n.value=t:null),label:4},{default:a(()=>[c(" \u6307\u5B9A "),e(N,{clearable:"",modelValue:l(v),"onUpdate:modelValue":s[7]||(s[7]=t=>k(v)?v.value=t:null),placeholder:"\u53EF\u591A\u9009",multiple:"","multiple-limit":10},{default:a(()=>[(b(),A(K,null,Q(24,t=>e(D,{key:t,label:t-1,value:t-1},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},ll=ge(el,[["__scopeId","data-v-2ca70edd"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/hour.vue"]]);const al={__name:"day",props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},emits:["update"],setup(J,{emit:j}){const f=J,n=y(1),r=y(1),p=y(2),u=y(1),g=y(1),v=y(1),C=y([]),O=y([1]),I=z(()=>(r.value=f.check(r.value,1,30),p.value=f.check(p.value,r.value+1,31),r.value+"-"+p.value)),L=z(()=>(u.value=f.check(u.value,1,30),g.value=f.check(g.value,1,31-u.value),u.value+"/"+g.value)),E=z(()=>(v.value=f.check(v.value,1,31),v.value+"W")),P=z(()=>C.value.join(","));ee(()=>f.cron.day,m=>_(m)),ee([n,I,L,E,P],()=>s());function _(m){if(m==="*")n.value=1;else if(m==="?")n.value=2;else if(m.indexOf("-")>-1){const d=m.split("-");r.value=Number(d[0]),p.value=Number(d[1]),n.value=3}else if(m.indexOf("/")>-1){const d=m.split("/");u.value=Number(d[0]),g.value=Number(d[1]),n.value=4}else if(m.indexOf("W")>-1){const d=m.split("W");v.value=Number(d[0]),n.value=5}else m==="L"?n.value=6:(C.value=[...new Set(m.split(",").map(d=>Number(d)))],n.value=7)}function s(){switch(n.value===2&&f.cron.week==="?"&&j("update","week","*","day"),n.value!==2&&f.cron.week!=="?"&&j("update","week","?","day"),n.value){case 1:j("update","day","*","day");break;case 2:j("update","day","?","day");break;case 3:j("update","day",I.value,"day");break;case 4:j("update","day",L.value,"day");break;case 5:j("update","day",E.value,"day");break;case 6:j("update","day","L","day");break;case 7:C.value.length===0?C.value.push(O.value[0]):O.value=C.value,j("update","day",P.value,"day");break}}return(m,d)=>{const o=x("el-radio"),D=x("el-form-item"),N=x("el-input-number"),M=x("el-option"),t=x("el-select"),h=x("el-form");return b(),$(h,{size:"small"},{default:a(()=>[e(D,null,{default:a(()=>[e(o,{modelValue:l(n),"onUpdate:modelValue":d[0]||(d[0]=i=>k(n)?n.value=i:null),label:1},{default:a(()=>[c(" \u65E5\uFF0C\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * ? / L W] ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{modelValue:l(n),"onUpdate:modelValue":d[1]||(d[1]=i=>k(n)?n.value=i:null),label:2},{default:a(()=>[c(" \u4E0D\u6307\u5B9A ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{modelValue:l(n),"onUpdate:modelValue":d[4]||(d[4]=i=>k(n)?n.value=i:null),label:3},{default:a(()=>[c(" \u5468\u671F\u4ECE "),e(N,{modelValue:l(r),"onUpdate:modelValue":d[2]||(d[2]=i=>k(r)?r.value=i:null),min:1,max:30},null,8,["modelValue"]),c(" - "),e(N,{modelValue:l(p),"onUpdate:modelValue":d[3]||(d[3]=i=>k(p)?p.value=i:null),min:l(r)+1,max:31},null,8,["modelValue","min"]),c(" \u65E5 ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{modelValue:l(n),"onUpdate:modelValue":d[7]||(d[7]=i=>k(n)?n.value=i:null),label:4},{default:a(()=>[c(" \u4ECE "),e(N,{modelValue:l(u),"onUpdate:modelValue":d[5]||(d[5]=i=>k(u)?u.value=i:null),min:1,max:30},null,8,["modelValue"]),c(" \u53F7\u5F00\u59CB\uFF0C\u6BCF "),e(N,{modelValue:l(g),"onUpdate:modelValue":d[6]||(d[6]=i=>k(g)?g.value=i:null),min:1,max:31-l(u)},null,8,["modelValue","max"]),c(" \u65E5\u6267\u884C\u4E00\u6B21 ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{modelValue:l(n),"onUpdate:modelValue":d[9]||(d[9]=i=>k(n)?n.value=i:null),label:5},{default:a(()=>[c(" \u6BCF\u6708 "),e(N,{modelValue:l(v),"onUpdate:modelValue":d[8]||(d[8]=i=>k(v)?v.value=i:null),min:1,max:31},null,8,["modelValue"]),c(" \u53F7\u6700\u8FD1\u7684\u90A3\u4E2A\u5DE5\u4F5C\u65E5 ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{modelValue:l(n),"onUpdate:modelValue":d[10]||(d[10]=i=>k(n)?n.value=i:null),label:6},{default:a(()=>[c(" \u672C\u6708\u6700\u540E\u4E00\u5929 ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{modelValue:l(n),"onUpdate:modelValue":d[12]||(d[12]=i=>k(n)?n.value=i:null),label:7},{default:a(()=>[c(" \u6307\u5B9A "),e(t,{clearable:"",modelValue:l(C),"onUpdate:modelValue":d[11]||(d[11]=i=>k(C)?C.value=i:null),placeholder:"\u53EF\u591A\u9009",multiple:"","multiple-limit":10},{default:a(()=>[(b(),A(K,null,Q(31,i=>e(M,{key:i,label:i,value:i},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},nl=ge(al,[["__scopeId","data-v-82896587"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/day.vue"]]);const tl={__name:"month",props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},emits:["update"],setup(J,{emit:j}){const f=J,n=y(1),r=y(1),p=y(2),u=y(1),g=y(1),v=y([]),C=y([1]),O=y([{key:1,value:"\u4E00\u6708"},{key:2,value:"\u4E8C\u6708"},{key:3,value:"\u4E09\u6708"},{key:4,value:"\u56DB\u6708"},{key:5,value:"\u4E94\u6708"},{key:6,value:"\u516D\u6708"},{key:7,value:"\u4E03\u6708"},{key:8,value:"\u516B\u6708"},{key:9,value:"\u4E5D\u6708"},{key:10,value:"\u5341\u6708"},{key:11,value:"\u5341\u4E00\u6708"},{key:12,value:"\u5341\u4E8C\u6708"}]),I=z(()=>(r.value=f.check(r.value,1,11),p.value=f.check(p.value,r.value+1,12),r.value+"-"+p.value)),L=z(()=>(u.value=f.check(u.value,1,11),g.value=f.check(g.value,1,12-u.value),u.value+"/"+g.value)),E=z(()=>v.value.join(","));ee(()=>f.cron.month,s=>P(s)),ee([n,I,L,E],()=>_());function P(s){if(s==="*")n.value=1;else if(s.indexOf("-")>-1){const m=s.split("-");r.value=Number(m[0]),p.value=Number(m[1]),n.value=2}else if(s.indexOf("/")>-1){const m=s.split("/");u.value=Number(m[0]),g.value=Number(m[1]),n.value=3}else v.value=[...new Set(s.split(",").map(m=>Number(m)))],n.value=4}function _(){switch(n.value){case 1:j("update","month","*","month");break;case 2:j("update","month",I.value,"month");break;case 3:j("update","month",L.value,"month");break;case 4:v.value.length===0?v.value.push(C.value[0]):C.value=v.value,j("update","month",E.value,"month");break}}return(s,m)=>{const d=x("el-radio"),o=x("el-form-item"),D=x("el-input-number"),N=x("el-option"),M=x("el-select"),t=x("el-form");return b(),$(t,{size:"small"},{default:a(()=>[e(o,null,{default:a(()=>[e(d,{modelValue:l(n),"onUpdate:modelValue":m[0]||(m[0]=h=>k(n)?n.value=h:null),label:1},{default:a(()=>[c(" \u6708\uFF0C\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /] ")]),_:1},8,["modelValue"])]),_:1}),e(o,null,{default:a(()=>[e(d,{modelValue:l(n),"onUpdate:modelValue":m[3]||(m[3]=h=>k(n)?n.value=h:null),label:2},{default:a(()=>[c(" \u5468\u671F\u4ECE "),e(D,{modelValue:l(r),"onUpdate:modelValue":m[1]||(m[1]=h=>k(r)?r.value=h:null),min:1,max:11},null,8,["modelValue"]),c(" - "),e(D,{modelValue:l(p),"onUpdate:modelValue":m[2]||(m[2]=h=>k(p)?p.value=h:null),min:l(r)+1,max:12},null,8,["modelValue","min"]),c(" \u6708 ")]),_:1},8,["modelValue"])]),_:1}),e(o,null,{default:a(()=>[e(d,{modelValue:l(n),"onUpdate:modelValue":m[6]||(m[6]=h=>k(n)?n.value=h:null),label:3},{default:a(()=>[c(" \u4ECE "),e(D,{modelValue:l(u),"onUpdate:modelValue":m[4]||(m[4]=h=>k(u)?u.value=h:null),min:1,max:11},null,8,["modelValue"]),c(" \u6708\u5F00\u59CB\uFF0C\u6BCF "),e(D,{modelValue:l(g),"onUpdate:modelValue":m[5]||(m[5]=h=>k(g)?g.value=h:null),min:1,max:12-l(u)},null,8,["modelValue","max"]),c(" \u6708\u6708\u6267\u884C\u4E00\u6B21 ")]),_:1},8,["modelValue"])]),_:1}),e(o,null,{default:a(()=>[e(d,{modelValue:l(n),"onUpdate:modelValue":m[8]||(m[8]=h=>k(n)?n.value=h:null),label:4},{default:a(()=>[c(" \u6307\u5B9A "),e(M,{clearable:"",modelValue:l(v),"onUpdate:modelValue":m[7]||(m[7]=h=>k(v)?v.value=h:null),placeholder:"\u53EF\u591A\u9009",multiple:"","multiple-limit":8},{default:a(()=>[(b(!0),A(K,null,Q(l(O),h=>(b(),$(N,{key:h.key,label:h.value,value:h.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},ol=ge(tl,[["__scopeId","data-v-704d664c"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/month.vue"]]);const ul={__name:"week",props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},emits:["update"],setup(J,{emit:j}){const f=J,n=y(2),r=y(2),p=y(3),u=y(1),g=y(2),v=y(2),C=y([]),O=y([2]),I=y([{key:1,value:"\u661F\u671F\u65E5"},{key:2,value:"\u661F\u671F\u4E00"},{key:3,value:"\u661F\u671F\u4E8C"},{key:4,value:"\u661F\u671F\u4E09"},{key:5,value:"\u661F\u671F\u56DB"},{key:6,value:"\u661F\u671F\u4E94"},{key:7,value:"\u661F\u671F\u516D"}]),L=z(()=>(r.value=f.check(r.value,1,6),p.value=f.check(p.value,r.value+1,7),r.value+"-"+p.value)),E=z(()=>(u.value=f.check(u.value,1,4),g.value=f.check(g.value,1,7),g.value+"#"+u.value)),P=z(()=>(v.value=f.check(v.value,1,7),v.value+"L")),_=z(()=>C.value.join(","));ee(()=>f.cron.week,d=>s(d)),ee([n,L,E,P,_],()=>m());function s(d){if(d==="*")n.value=1;else if(d==="?")n.value=2;else if(d.indexOf("-")>-1){const o=d.split("-");r.value=Number(o[0]),p.value=Number(o[1]),n.value=3}else if(d.indexOf("#")>-1){const o=d.split("#");u.value=Number(o[1]),g.value=Number(o[0]),n.value=4}else if(d.indexOf("L")>-1){const o=d.split("L");v.value=Number(o[0]),n.value=5}else C.value=[...new Set(d.split(",").map(o=>Number(o)))],n.value=6}function m(){switch(n.value===2&&f.cron.day==="?"&&j("update","day","*","week"),n.value!==2&&f.cron.day!=="?"&&j("update","day","?","week"),n.value){case 1:j("update","week","*","week");break;case 2:j("update","week","?","week");break;case 3:j("update","week",L.value,"week");break;case 4:j("update","week",E.value,"week");break;case 5:j("update","week",P.value,"week");break;case 6:C.value.length===0?C.value.push(O.value[0]):O.value=C.value,j("update","week",_.value,"week");break}}return(d,o)=>{const D=x("el-radio"),N=x("el-form-item"),M=x("el-option"),t=x("el-select"),h=x("el-input-number"),i=x("el-form");return b(),$(i,{size:"small"},{default:a(()=>[e(N,null,{default:a(()=>[e(D,{modelValue:l(n),"onUpdate:modelValue":o[0]||(o[0]=V=>k(n)?n.value=V:null),label:1},{default:a(()=>[c(" \u5468\uFF0C\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * ? / L #] ")]),_:1},8,["modelValue"])]),_:1}),e(N,null,{default:a(()=>[e(D,{modelValue:l(n),"onUpdate:modelValue":o[1]||(o[1]=V=>k(n)?n.value=V:null),label:2},{default:a(()=>[c(" \u4E0D\u6307\u5B9A ")]),_:1},8,["modelValue"])]),_:1}),e(N,null,{default:a(()=>[e(D,{modelValue:l(n),"onUpdate:modelValue":o[4]||(o[4]=V=>k(n)?n.value=V:null),label:3},{default:a(()=>[c(" \u5468\u671F\u4ECE "),e(t,{clearable:"",modelValue:l(r),"onUpdate:modelValue":o[2]||(o[2]=V=>k(r)?r.value=V:null)},{default:a(()=>[(b(!0),A(K,null,Q(l(I),(V,B)=>(b(),$(M,{key:B,label:V.value,value:V.key,disabled:V.key===7},{default:a(()=>[c(F(V.value),1)]),_:2},1032,["label","value","disabled"]))),128))]),_:1},8,["modelValue"]),c(" - "),e(t,{clearable:"",modelValue:l(p),"onUpdate:modelValue":o[3]||(o[3]=V=>k(p)?p.value=V:null)},{default:a(()=>[(b(!0),A(K,null,Q(l(I),(V,B)=>(b(),$(M,{key:B,label:V.value,value:V.key,disabled:V.key<=l(r)},{default:a(()=>[c(F(V.value),1)]),_:2},1032,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e(N,null,{default:a(()=>[e(D,{modelValue:l(n),"onUpdate:modelValue":o[7]||(o[7]=V=>k(n)?n.value=V:null),label:4},{default:a(()=>[c(" \u7B2C "),e(h,{modelValue:l(u),"onUpdate:modelValue":o[5]||(o[5]=V=>k(u)?u.value=V:null),min:1,max:4},null,8,["modelValue"]),c(" \u5468\u7684 "),e(t,{clearable:"",modelValue:l(g),"onUpdate:modelValue":o[6]||(o[6]=V=>k(g)?g.value=V:null)},{default:a(()=>[(b(!0),A(K,null,Q(l(I),V=>(b(),$(M,{key:V.key,label:V.value,value:V.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e(N,null,{default:a(()=>[e(D,{modelValue:l(n),"onUpdate:modelValue":o[9]||(o[9]=V=>k(n)?n.value=V:null),label:5},{default:a(()=>[c(" \u672C\u6708\u6700\u540E\u4E00\u4E2A "),e(t,{clearable:"",modelValue:l(v),"onUpdate:modelValue":o[8]||(o[8]=V=>k(v)?v.value=V:null)},{default:a(()=>[(b(!0),A(K,null,Q(l(I),V=>(b(),$(M,{key:V.key,label:V.value,value:V.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e(N,null,{default:a(()=>[e(D,{modelValue:l(n),"onUpdate:modelValue":o[11]||(o[11]=V=>k(n)?n.value=V:null),label:6},{default:a(()=>[c(" \u6307\u5B9A "),e(t,{class:"multiselect",clearable:"",modelValue:l(C),"onUpdate:modelValue":o[10]||(o[10]=V=>k(C)?C.value=V:null),placeholder:"\u53EF\u591A\u9009",multiple:"","multiple-limit":6},{default:a(()=>[(b(!0),A(K,null,Q(l(I),V=>(b(),$(M,{key:V.key,label:V.value,value:V.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},dl=ge(ul,[["__scopeId","data-v-6c2b5e06"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/week.vue"]]);const sl={__name:"year",props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},emits:["update"],setup(J,{emit:j}){const f=J,n=y(0),r=y(0),p=y(1),u=y(0),g=y(0),v=y(0),C=y(1),O=y([]),I=y([]),L=z(()=>(u.value=f.check(u.value,n.value,r.value-1),g.value=f.check(g.value,u.value+1,r.value),u.value+"-"+g.value)),E=z(()=>(v.value=f.check(v.value,n.value,r.value-1),C.value=f.check(C.value,1,10),v.value+"/"+C.value)),P=z(()=>O.value.join(","));ee(()=>f.cron.year,m=>_(m)),ee([p,L,E,P],()=>s());function _(m){if(m==="")p.value=1;else if(m==="*")p.value=2;else if(m.indexOf("-")>-1){const d=m.split("-");u.value=Number(d[0]),g.value=Number(d[1]),p.value=3}else if(m.indexOf("/")>-1){const d=m.split("#");v.value=Number(d[1]),C.value=Number(d[0]),p.value=4}else O.value=[...new Set(m.split(",").map(d=>Number(d)))],p.value=5}function s(){switch(p.value){case 1:j("update","year","","year");break;case 2:j("update","year","*","year");break;case 3:j("update","year",L.value,"year");break;case 4:j("update","year",E.value,"year");break;case 5:O.value.length===0?O.value.push(I.value[0]):I.value=O.value,j("update","year",P.value,"year");break}}return Se(()=>{n.value=Number(new Date().getFullYear()),r.value=n.value+10,u.value=n.value,g.value=u.value+1,v.value=n.value,I.value=[n.value]}),(m,d)=>{const o=x("el-radio"),D=x("el-form-item"),N=x("el-input-number"),M=x("el-option"),t=x("el-select"),h=x("el-form");return b(),$(h,{size:"small"},{default:a(()=>[e(D,null,{default:a(()=>[e(o,{label:1,modelValue:l(p),"onUpdate:modelValue":d[0]||(d[0]=i=>k(p)?p.value=i:null)},{default:a(()=>[c(" \u4E0D\u586B\uFF0C\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /] ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{label:2,modelValue:l(p),"onUpdate:modelValue":d[1]||(d[1]=i=>k(p)?p.value=i:null)},{default:a(()=>[c(" \u6BCF\u5E74 ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{label:3,modelValue:l(p),"onUpdate:modelValue":d[4]||(d[4]=i=>k(p)?p.value=i:null)},{default:a(()=>[c(" \u5468\u671F\u4ECE "),e(N,{modelValue:l(u),"onUpdate:modelValue":d[2]||(d[2]=i=>k(u)?u.value=i:null),min:l(n),max:l(r)-1},null,8,["modelValue","min","max"]),c(" - "),e(N,{modelValue:l(g),"onUpdate:modelValue":d[3]||(d[3]=i=>k(g)?g.value=i:null),min:l(u)+1,max:l(r)},null,8,["modelValue","min","max"])]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{label:4,modelValue:l(p),"onUpdate:modelValue":d[7]||(d[7]=i=>k(p)?p.value=i:null)},{default:a(()=>[c(" \u4ECE "),e(N,{modelValue:l(v),"onUpdate:modelValue":d[5]||(d[5]=i=>k(v)?v.value=i:null),min:l(n),max:l(r)-1},null,8,["modelValue","min","max"]),c(" \u5E74\u5F00\u59CB\uFF0C\u6BCF "),e(N,{modelValue:l(C),"onUpdate:modelValue":d[6]||(d[6]=i=>k(C)?C.value=i:null),min:1,max:10},null,8,["modelValue"]),c(" \u5E74\u6267\u884C\u4E00\u6B21 ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{label:5,modelValue:l(p),"onUpdate:modelValue":d[9]||(d[9]=i=>k(p)?p.value=i:null)},{default:a(()=>[c(" \u6307\u5B9A "),e(t,{clearable:"",modelValue:l(O),"onUpdate:modelValue":d[8]||(d[8]=i=>k(O)?O.value=i:null),placeholder:"\u53EF\u591A\u9009",multiple:"","multiple-limit":8},{default:a(()=>[(b(),A(K,null,Q(9,i=>e(M,{key:i,value:i-1+l(n),label:i-1+l(n)},null,8,["value","label"])),64))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},rl=ge(sl,[["__scopeId","data-v-850a9505"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/year.vue"]]),il={class:"popup-result"},cl=R("p",{class:"title"},"\u6700\u8FD15\u6B21\u8FD0\u884C\u65F6\u95F4",-1),ml={class:"popup-result-scroll"},pl={key:1},fl={__name:"result",props:{ex:{type:String,default:""}},setup(J){const j=J,f=y(""),n=y(""),r=y([]),p=y([]),u=y(!1);ee(()=>j.ex,()=>g());function g(){u.value=!1;let t=j.ex.split(" "),h=0,i=[],V=new Date,B=V.getFullYear(),le=V.getMonth()+1,oe=V.getDate(),ae=V.getHours(),de=V.getMinutes(),we=V.getSeconds();_(t[0]),P(t[1]),E(t[2]),L(t[3]),O(t[4]),I(t[5]),C(t[6],B);let ie=r.value[0],se=r.value[1],ne=r.value[2],ue=r.value[3],X=r.value[4],Ce=r.value[5],T=v(ie,we),U=v(se,de),ve=v(ne,ae),q=v(ue,oe),xe=v(X,le),Ne=v(Ce,B);const H=function(){T=0,we=ie[T]},he=function(){U=0,de=se[U],H()},W=function(){ve=0,ae=ne[ve],he()},_e=function(){q=0,oe=ue[q],W()},ce=function(){xe=0,le=X[xe],_e()};B!==Ce[Ne]&&ce(),le!==X[xe]&&_e(),oe!==ue[q]&&W(),ae!==ne[ve]&&he(),de!==se[U]&&H();e:for(let me=Ne;me X[X.length-1]){ce();continue}l:for(let be=xe;be ue[ue.length-1]){if(_e(),be===X.length-1){ce();continue e}continue}a:for(let ke=q;ke ne[ne.length-1]){if(W(),ke===ue.length-1){if(_e(),be===X.length-1){ce();continue e}continue l}continue}if(M(te+"-"+Y+"-"+Z+" 00:00:00")!==!0&&f.value!=="workDay"&&f.value!=="lastWeek"&&f.value!=="lastDay"){_e();continue l}if(f.value==="lastDay"){if(M(te+"-"+Y+"-"+Z+" 00:00:00")!==!0)for(;S>0&&M(te+"-"+Y+"-"+Z+" 00:00:00")!==!0;)S--,Z=S<10?"0"+S:S}else if(f.value==="workDay"){if(M(te+"-"+Y+"-"+Z+" 00:00:00")!==!0)for(;S>0&&M(te+"-"+Y+"-"+Z+" 00:00:00")!==!0;)S--,Z=S<10?"0"+S:S;let G=N(new Date(te+"-"+Y+"-"+Z+" 00:00:00"),"week");G===1?(S++,Z=S<10?"0"+S:S,M(te+"-"+Y+"-"+Z+" 00:00:00")!==!0&&(S-=3)):G===7&&(n.value!==1?S--:S+=2)}else if(f.value==="weekDay"){let G=N(new Date(te+"-"+Y+"-"+S+" 00:00:00"),"week");if(n.value.indexOf(G)<0){if(ke===ue.length-1){if(_e(),be===X.length-1){ce();continue e}continue l}continue}}else if(f.value==="assWeek"){let G=N(new Date(te+"-"+Y+"-"+S+" 00:00:00"),"week");n.value[1]>=G?S=(n.value[0]-1)*7+n.value[1]-G+1:S=n.value[0]*7+n.value[1]-G+1}else if(f.value==="lastWeek"){if(M(te+"-"+Y+"-"+Z+" 00:00:00")!==!0)for(;S>0&&M(te+"-"+Y+"-"+Z+" 00:00:00")!==!0;)S--,Z=S<10?"0"+S:S;let G=N(new Date(te+"-"+Y+"-"+Z+" 00:00:00"),"week");n.value G&&(S-=7-(n.value-G))}S=S<10?"0"+S:S;n:for(let G=ve;G se[se.length-1]){if(he(),G===ne.length-1){if(W(),ke===ue.length-1){if(_e(),be===X.length-1){ce();continue e}continue l}continue a}continue}t:for(let ye=U;ye ie[ie.length-1]){if(H(),ye===se.length-1){if(he(),G===ne.length-1){if(W(),ke===ue.length-1){if(_e(),be===X.length-1){ce();continue e}continue l}continue a}continue n}continue}for(let Ve=T;Ve<=ie.length-1;Ve++){let pe=ie[Ve]<10?"0"+ie[Ve]:ie[Ve];if(Y!=="00"&&S!=="00"&&(i.push(te+"-"+Y+"-"+S+" "+Ue+":"+De+":"+pe),h++),h===5)break e;if(Ve===ie.length-1){if(H(),ye===se.length-1){if(he(),G===ne.length-1){if(W(),ke===ue.length-1){if(_e(),be===X.length-1){ce();continue e}continue l}continue a}continue n}continue t}}}}}}}i.length===0?p.value=["\u6CA1\u6709\u8FBE\u5230\u6761\u4EF6\u7684\u7ED3\u679C\uFF01"]:(p.value=i,i.length!==5&&p.value.push("\u6700\u8FD1100\u5E74\u5185\u53EA\u6709\u4E0A\u9762"+i.length+"\u6761\u7ED3\u679C\uFF01")),u.value=!0}function v(t,h){if(h<=t[0]||h>t[t.length-1])return 0;for(let i=0;i t[i]&&h<=t[i+1])return i+1}function C(t,h){r.value[5]=s(h,h+100),t!==void 0&&(t.indexOf("-")>=0?r.value[5]=o(t,h+100,!1):t.indexOf("/")>=0?r.value[5]=d(t,h+100):t!=="*"&&(r.value[5]=m(t)))}function O(t){r.value[4]=s(1,12),t.indexOf("-")>=0?r.value[4]=o(t,12,!1):t.indexOf("/")>=0?r.value[4]=d(t,12):t!=="*"&&(r.value[4]=m(t))}function I(t){if(f.value===""&&n.value==="")if(t.indexOf("-")>=0)f.value="weekDay",n.value=o(t,7,!1);else if(t.indexOf("#")>=0){f.value="assWeek";let h=t.match(/[0-9]{1}/g);n.value=[Number(h[1]),Number(h[0])],r.value[3]=[1],n.value[1]===7&&(n.value[1]=0)}else t.indexOf("L")>=0?(f.value="lastWeek",n.value=Number(t.match(/[0-9]{1,2}/g)[0]),r.value[3]=[31],n.value===7&&(n.value=0)):t!=="*"&&t!=="?"&&(f.value="weekDay",n.value=m(t))}function L(t){r.value[3]=s(1,31),f.value="",n.value="",t.indexOf("-")>=0?(r.value[3]=o(t,31,!1),n.value="null"):t.indexOf("/")>=0?(r.value[3]=d(t,31),n.value="null"):t.indexOf("W")>=0?(f.value="workDay",n.value=Number(t.match(/[0-9]{1,2}/g)[0]),r.value[3]=[n.value]):t.indexOf("L")>=0?(f.value="lastDay",n.value="null",r.value[3]=[31]):t!=="*"&&t!=="?"?(r.value[3]=m(t),n.value="null"):t==="*"&&(n.value="null")}function E(t){r.value[2]=s(0,23),t.indexOf("-")>=0?r.value[2]=o(t,24,!0):t.indexOf("/")>=0?r.value[2]=d(t,23):t!=="*"&&(r.value[2]=m(t))}function P(t){r.value[1]=s(0,59),t.indexOf("-")>=0?r.value[1]=o(t,60,!0):t.indexOf("/")>=0?r.value[1]=d(t,59):t!=="*"&&(r.value[1]=m(t))}function _(t){r.value[0]=s(0,59),t.indexOf("-")>=0?r.value[0]=o(t,60,!0):t.indexOf("/")>=0?r.value[0]=d(t,59):t!=="*"&&(r.value[0]=m(t))}function s(t,h){let i=[];for(let V=t;V<=h;V++)i.push(V);return i}function m(t){let h=[],i=t.split(",");for(let V=0;V oe&&(oe+=h);for(let ae=le;ae<=oe;ae++){let de=0;i===!1&&ae%h===0&&(de=h),V.push(Math.round(ae%h+de))}return V.sort(D),V}function D(t,h){return h-t>0?-1:1}function N(t,h){let i=typeof t=="number"?new Date(t):t,V=i.getFullYear(),B=i.getMonth()+1,le=i.getDate(),oe=i.getHours(),ae=i.getMinutes(),de=i.getSeconds(),we=i.getDay();if(h===void 0)return V+"-"+(B<10?"0"+B:B)+"-"+(le<10?"0"+le:le)+" "+(oe<10?"0"+oe:oe)+":"+(ae<10?"0"+ae:ae)+":"+(de<10?"0"+de:de);if(h==="week")return we+1}function M(t){let h=new Date(t),i=N(h);return t===i}return Se(()=>{g()}),(t,h)=>(b(),A("div",il,[cl,R("ul",ml,[l(u)?(b(!0),A(K,{key:0},Q(l(p),i=>(b(),A("li",{key:i},F(i),1))),128)):(b(),A("li",pl,"\u8BA1\u7B97\u7ED3\u679C\u4E2D..."))])]))}},vl=ge(fl,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/result.vue"]]);const Ie=J=>(Re("data-v-3617ce85"),J=J(),Le(),J),_l={class:"popup-main"},bl={class:"popup-result"},yl=Ie(()=>R("p",{class:"title"},"\u65F6\u95F4\u8868\u8FBE\u5F0F",-1)),kl=Ie(()=>R("th",null,"Cron \u8868\u8FBE\u5F0F",-1)),Vl={key:0},gl={key:0},hl={key:0},xl={key:0},wl={key:0},Ul={key:0},jl={key:0},Cl={class:"result"},Nl={key:0},Dl={class:"pop_btn"},Sl={__name:"index",props:{hideComponent:{type:Array,default:()=>[]},expression:{type:String,default:""}},emits:["hide","fill"],setup(J,{emit:j}){const f=J,n=y(["\u79D2","\u5206\u949F","\u5C0F\u65F6","\u65E5","\u6708","\u5468","\u5E74"]);y(0);const r=y([]),p=y(""),u=y({second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}),g=z(()=>{const _=u.value;return _.second+" "+_.min+" "+_.hour+" "+_.day+" "+_.month+" "+_.week+(_.year===""?"":" "+_.year)});ee(p,()=>C());function v(_){return!(r.value&&r.value.includes(_))}function C(){if(p.value){const _=p.value.split(/\s+/);if(_.length>=6){let s={second:_[0],min:_[1],hour:_[2],day:_[3],month:_[4],week:_[5],year:_[6]?_[6]:""};u.value={...s}}}else P()}function O(_,s,m){u.value[_]=s}function I(_,s,m){return _=Math.floor(_),_ m&&(_=m),_}function L(){j("hide")}function E(){j("fill",g.value),L()}function P(){u.value={second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}}return Se(()=>{p.value=f.expression,r.value=f.hideComponent}),(_,s)=>{const m=x("el-tab-pane"),d=x("el-tabs"),o=x("el-tooltip"),D=x("el-button");return b(),A("div",null,[e(d,{type:"border-card"},{default:a(()=>[v("second")?(b(),$(m,{key:0,label:"\u79D2"},{default:a(()=>[e(Qe,{onUpdate:O,check:I,cron:l(u),ref:"cronsecond"},null,8,["cron"])]),_:1})):fe("v-if",!0),v("min")?(b(),$(m,{key:1,label:"\u5206\u949F"},{default:a(()=>[e(Ze,{onUpdate:O,check:I,cron:l(u),ref:"cronmin"},null,8,["cron"])]),_:1})):fe("v-if",!0),v("hour")?(b(),$(m,{key:2,label:"\u5C0F\u65F6"},{default:a(()=>[e(ll,{onUpdate:O,check:I,cron:l(u),ref:"cronhour"},null,8,["cron"])]),_:1})):fe("v-if",!0),v("day")?(b(),$(m,{key:3,label:"\u65E5"},{default:a(()=>[e(nl,{onUpdate:O,check:I,cron:l(u),ref:"cronday"},null,8,["cron"])]),_:1})):fe("v-if",!0),v("month")?(b(),$(m,{key:4,label:"\u6708"},{default:a(()=>[e(ol,{onUpdate:O,check:I,cron:l(u),ref:"cronmonth"},null,8,["cron"])]),_:1})):fe("v-if",!0),v("week")?(b(),$(m,{key:5,label:"\u5468"},{default:a(()=>[e(dl,{onUpdate:O,check:I,cron:l(u),ref:"cronweek"},null,8,["cron"])]),_:1})):fe("v-if",!0),v("year")?(b(),$(m,{key:6,label:"\u5E74"},{default:a(()=>[e(rl,{onUpdate:O,check:I,cron:l(u),ref:"cronyear"},null,8,["cron"])]),_:1})):fe("v-if",!0)]),_:1}),R("div",_l,[R("div",bl,[yl,R("table",null,[R("thead",null,[(b(!0),A(K,null,Q(l(n),N=>(b(),A("th",{key:N},F(N),1))),128)),kl]),R("tbody",null,[R("td",null,[l(u).second.length<10?(b(),A("span",Vl,F(l(u).second),1)):(b(),$(o,{key:1,content:l(u).second,placement:"top"},{default:a(()=>[R("span",null,F(l(u).second),1)]),_:1},8,["content"]))]),R("td",null,[l(u).min.length<10?(b(),A("span",gl,F(l(u).min),1)):(b(),$(o,{key:1,content:l(u).min,placement:"top"},{default:a(()=>[R("span",null,F(l(u).min),1)]),_:1},8,["content"]))]),R("td",null,[l(u).hour.length<10?(b(),A("span",hl,F(l(u).hour),1)):(b(),$(o,{key:1,content:l(u).hour,placement:"top"},{default:a(()=>[R("span",null,F(l(u).hour),1)]),_:1},8,["content"]))]),R("td",null,[l(u).day.length<10?(b(),A("span",xl,F(l(u).day),1)):(b(),$(o,{key:1,content:l(u).day,placement:"top"},{default:a(()=>[R("span",null,F(l(u).day),1)]),_:1},8,["content"]))]),R("td",null,[l(u).month.length<10?(b(),A("span",wl,F(l(u).month),1)):(b(),$(o,{key:1,content:l(u).month,placement:"top"},{default:a(()=>[R("span",null,F(l(u).month),1)]),_:1},8,["content"]))]),R("td",null,[l(u).week.length<10?(b(),A("span",Ul,F(l(u).week),1)):(b(),$(o,{key:1,content:l(u).week,placement:"top"},{default:a(()=>[R("span",null,F(l(u).week),1)]),_:1},8,["content"]))]),R("td",null,[l(u).year.length<10?(b(),A("span",jl,F(l(u).year),1)):(b(),$(o,{key:1,content:l(u).year,placement:"top"},{default:a(()=>[R("span",null,F(l(u).year),1)]),_:1},8,["content"]))]),R("td",Cl,[l(g).length<90?(b(),A("span",Nl,F(l(g)),1)):(b(),$(o,{key:1,content:l(g),placement:"top"},{default:a(()=>[R("span",null,F(l(g)),1)]),_:1},8,["content"]))])])])]),e(vl,{ex:l(g)},null,8,["ex"]),R("div",Dl,[e(D,{type:"primary",onClick:E},{default:a(()=>[c("\u786E\u5B9A")]),_:1}),e(D,{type:"warning",onClick:P},{default:a(()=>[c("\u91CD\u7F6E")]),_:1}),e(D,{onClick:L},{default:a(()=>[c("\u53D6\u6D88")]),_:1})])])])}}},Al=ge(Sl,[["__scopeId","data-v-3617ce85"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/index.vue"]]),Ol={class:"app-container"},$l=R("div",null,[c(" Bean\u8C03\u7528\u793A\u4F8B\uFF1AryTask.ryParams('ry') "),R("br"),c("Class\u7C7B\u8C03\u7528\u793A\u4F8B\uFF1Acom.ruoyi.quartz.task.RyTask.ryParams('ry') "),R("br"),c("\u53C2\u6570\u8BF4\u660E\uFF1A\u652F\u6301\u5B57\u7B26\u4E32\uFF0C\u5E03\u5C14\u7C7B\u578B\uFF0C\u957F\u6574\u578B\uFF0C\u6D6E\u70B9\u578B\uFF0C\u6574\u578B ")],-1),Il=R("i",{class:"el-icon-time el-icon--right"},null,-1),Tl={class:"dialog-footer"},Rl={key:0},Ll={key:1},Ml={key:0},Fl={key:1},Pl={key:0},Wl={key:1},ql={key:2},El={key:3},Yl={class:"dialog-footer"},Gl=Me({name:"Job"}),zl=Object.assign(Gl,{setup(J){const j=Fe(),{proxy:f}=Ee(),{sys_job_group:n,sys_job_status:r}=f.useDict("sys_job_group","sys_job_status"),p=y([]),u=y(!1),g=y(!0),v=y(!0),C=y([]),O=y(!0),I=y(!0),L=y(0),E=y(""),P=y(!1),_=y(!1),s=y(""),m=Pe({form:{},queryParams:{pageNum:1,pageSize:10,jobName:void 0,jobGroup:void 0,status:void 0},rules:{jobName:[{required:!0,message:"\u4EFB\u52A1\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],invokeTarget:[{required:!0,message:"\u8C03\u7528\u76EE\u6807\u5B57\u7B26\u4E32\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],cronExpression:[{required:!0,message:"cron\u6267\u884C\u8868\u8FBE\u5F0F\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}]}}),{queryParams:d,form:o,rules:D}=We(m);function N(){g.value=!0,Ye(d.value).then(T=>{p.value=T.rows,L.value=T.total,g.value=!1})}function M(T,U){return f.selectDictLabel(n.value,T.jobGroup)}function t(){u.value=!1,h()}function h(){o.value={jobId:void 0,jobName:void 0,jobGroup:void 0,invokeTarget:void 0,cronExpression:void 0,misfirePolicy:1,concurrent:1,status:"0"},f.resetForm("jobRef")}function i(){d.value.pageNum=1,N()}function V(){f.resetForm("queryRef"),i()}function B(T){C.value=T.map(U=>U.jobId),O.value=T.length!=1,I.value=!T.length}function le(T){let U=T.status==="0"?"\u542F\u7528":"\u505C\u7528";f.$modal.confirm('\u786E\u8BA4\u8981"'+U+'""'+T.jobName+'"\u4EFB\u52A1\u5417?').then(function(){return Ge(T.jobId,T.status)}).then(()=>{f.$modal.msgSuccess(U+"\u6210\u529F")}).catch(function(){T.status=T.status==="0"?"1":"0"})}function oe(T){f.$modal.confirm('\u786E\u8BA4\u8981\u7ACB\u5373\u6267\u884C\u4E00\u6B21"'+T.jobName+'"\u4EFB\u52A1\u5417?').then(function(){return ze(T.jobId,T.jobGroup)}).then(()=>{f.$modal.msgSuccess("\u6267\u884C\u6210\u529F")}).catch(()=>{})}function ae(T){$e(T.jobId).then(U=>{o.value=U.data,P.value=!0})}function de(){s.value=o.value.cronExpression,_.value=!0}function we(T){o.value.cronExpression=T}function ie(T){const U=T.jobId||0;j.push("/monitor/job-log/index/"+U)}function se(){h(),u.value=!0,E.value="\u6DFB\u52A0\u4EFB\u52A1"}function ne(T){h();const U=T.jobId||C.value;$e(U).then(ve=>{o.value=ve.data,u.value=!0,E.value="\u4FEE\u6539\u4EFB\u52A1"})}function ue(){f.$refs.jobRef.validate(T=>{T&&(o.value.jobId!=null?Je(o.value).then(U=>{f.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),u.value=!1,N()}):He(o.value).then(U=>{f.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),u.value=!1,N()}))})}function X(T){const U=T.jobId||C.value;f.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u5B9A\u65F6\u4EFB\u52A1\u7F16\u53F7\u4E3A"'+U+'"\u7684\u6570\u636E\u9879?').then(function(){return Be(U)}).then(()=>{N(),f.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function Ce(){f.download("monitor/job/export",{...d.value},`job_${new Date().getTime()}.xlsx`)}return N(),(T,U)=>{const ve=x("el-input"),q=x("el-form-item"),xe=x("el-option"),Ne=x("el-select"),H=x("el-button"),he=x("el-form"),W=x("el-col"),_e=x("right-toolbar"),ce=x("el-row"),me=x("el-table-column"),te=x("dict-tag"),be=x("el-switch"),Y=x("el-tooltip"),ke=x("el-table"),S=x("pagination"),Z=x("question-filled"),G=x("el-icon"),Ue=x("el-radio-button"),ye=x("el-radio-group"),De=x("el-radio"),Ve=x("el-dialog"),pe=Ae("hasPermi"),Te=Ae("loading");return b(),A("div",Ol,[re(e(he,{model:l(d),ref:"queryRef",inline:!0},{default:a(()=>[e(q,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"jobName"},{default:a(()=>[e(ve,{modelValue:l(d).jobName,"onUpdate:modelValue":U[0]||(U[0]=w=>l(d).jobName=w),placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0",clearable:"",style:{width:"200px"},onKeyup:qe(i,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(q,{label:"\u4EFB\u52A1\u7EC4\u540D",prop:"jobGroup"},{default:a(()=>[e(Ne,{modelValue:l(d).jobGroup,"onUpdate:modelValue":U[1]||(U[1]=w=>l(d).jobGroup=w),placeholder:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7EC4\u540D",clearable:"",style:{width:"200px"}},{default:a(()=>[(b(!0),A(K,null,Q(l(n),w=>(b(),$(xe,{key:w.value,label:w.label,value:w.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(q,{label:"\u4EFB\u52A1\u72B6\u6001",prop:"status"},{default:a(()=>[e(Ne,{modelValue:l(d).status,"onUpdate:modelValue":U[2]||(U[2]=w=>l(d).status=w),placeholder:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u72B6\u6001",clearable:"",style:{width:"200px"}},{default:a(()=>[(b(!0),A(K,null,Q(l(r),w=>(b(),$(xe,{key:w.value,label:w.label,value:w.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(q,null,{default:a(()=>[e(H,{type:"primary",icon:"Search",onClick:i},{default:a(()=>[c("\u641C\u7D22")]),_:1}),e(H,{icon:"Refresh",onClick:V},{default:a(()=>[c("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[Oe,l(v)]]),e(ce,{gutter:10,class:"mb8"},{default:a(()=>[e(W,{span:1.5},{default:a(()=>[re((b(),$(H,{type:"primary",plain:"",icon:"Plus",onClick:se},{default:a(()=>[c("\u65B0\u589E")]),_:1})),[[pe,["monitor:job:add"]]])]),_:1},8,["span"]),e(W,{span:1.5},{default:a(()=>[re((b(),$(H,{type:"success",plain:"",icon:"Edit",disabled:l(O),onClick:ne},{default:a(()=>[c("\u4FEE\u6539")]),_:1},8,["disabled"])),[[pe,["monitor:job:edit"]]])]),_:1},8,["span"]),e(W,{span:1.5},{default:a(()=>[re((b(),$(H,{type:"danger",plain:"",icon:"Delete",disabled:l(I),onClick:X},{default:a(()=>[c("\u5220\u9664")]),_:1},8,["disabled"])),[[pe,["monitor:job:remove"]]])]),_:1},8,["span"]),e(W,{span:1.5},{default:a(()=>[re((b(),$(H,{type:"warning",plain:"",icon:"Download",onClick:Ce},{default:a(()=>[c("\u5BFC\u51FA")]),_:1})),[[pe,["monitor:job:export"]]])]),_:1},8,["span"]),e(W,{span:1.5},{default:a(()=>[re((b(),$(H,{type:"info",plain:"",icon:"Operation",onClick:ie},{default:a(()=>[c("\u65E5\u5FD7")]),_:1})),[[pe,["monitor:job:query"]]])]),_:1},8,["span"]),e(_e,{showSearch:l(v),"onUpdate:showSearch":U[3]||(U[3]=w=>k(v)?v.value=w:null),onQueryTable:N},null,8,["showSearch"])]),_:1}),re((b(),$(ke,{data:l(p),onSelectionChange:B},{default:a(()=>[e(me,{type:"selection",width:"55",align:"center"}),e(me,{label:"\u4EFB\u52A1\u7F16\u53F7",width:"100",align:"center",prop:"jobId"}),e(me,{label:"\u4EFB\u52A1\u540D\u79F0",align:"center",prop:"jobName","show-overflow-tooltip":!0}),e(me,{label:"\u4EFB\u52A1\u7EC4\u540D",align:"center",prop:"jobGroup"},{default:a(w=>[e(te,{options:l(n),value:w.row.jobGroup},null,8,["options","value"])]),_:1}),e(me,{label:"\u8C03\u7528\u76EE\u6807\u5B57\u7B26\u4E32",align:"center",prop:"invokeTarget","show-overflow-tooltip":!0}),e(me,{label:"cron\u6267\u884C\u8868\u8FBE\u5F0F",align:"center",prop:"cronExpression","show-overflow-tooltip":!0}),e(me,{label:"\u72B6\u6001",align:"center"},{default:a(w=>[e(be,{modelValue:w.row.status,"onUpdate:modelValue":je=>w.row.status=je,"active-value":"0","inactive-value":"1",onChange:je=>le(w.row)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(me,{label:"\u64CD\u4F5C",align:"center",width:"200","class-name":"small-padding fixed-width"},{default:a(w=>[e(Y,{content:"\u4FEE\u6539",placement:"top"},{default:a(()=>[re(e(H,{link:"",type:"primary",icon:"Edit",onClick:je=>ne(w.row)},null,8,["onClick"]),[[pe,["monitor:job:edit"]]])]),_:2},1024),e(Y,{content:"\u5220\u9664",placement:"top"},{default:a(()=>[re(e(H,{link:"",type:"primary",icon:"Delete",onClick:je=>X(w.row)},null,8,["onClick"]),[[pe,["monitor:job:remove"]]])]),_:2},1024),e(Y,{content:"\u6267\u884C\u4E00\u6B21",placement:"top"},{default:a(()=>[re(e(H,{link:"",type:"primary",icon:"CaretRight",onClick:je=>oe(w.row)},null,8,["onClick"]),[[pe,["monitor:job:changeStatus"]]])]),_:2},1024),e(Y,{content:"\u4EFB\u52A1\u8BE6\u7EC6",placement:"top"},{default:a(()=>[re(e(H,{link:"",type:"primary",icon:"View",onClick:je=>ae(w.row)},null,8,["onClick"]),[[pe,["monitor:job:query"]]])]),_:2},1024),e(Y,{content:"\u8C03\u5EA6\u65E5\u5FD7",placement:"top"},{default:a(()=>[re(e(H,{link:"",type:"primary",icon:"Operation",onClick:je=>ie(w.row)},null,8,["onClick"]),[[pe,["monitor:job:query"]]])]),_:2},1024)]),_:1})]),_:1},8,["data"])),[[Te,l(g)]]),re(e(S,{total:l(L),page:l(d).pageNum,"onUpdate:page":U[4]||(U[4]=w=>l(d).pageNum=w),limit:l(d).pageSize,"onUpdate:limit":U[5]||(U[5]=w=>l(d).pageSize=w),onPagination:N},null,8,["total","page","limit"]),[[Oe,l(L)>0]]),fe(" \u6DFB\u52A0\u6216\u4FEE\u6539\u5B9A\u65F6\u4EFB\u52A1\u5BF9\u8BDD\u6846 "),e(Ve,{title:l(E),modelValue:l(u),"onUpdate:modelValue":U[13]||(U[13]=w=>k(u)?u.value=w:null),width:"800px","append-to-body":""},{footer:a(()=>[R("div",Tl,[e(H,{type:"primary",onClick:ue},{default:a(()=>[c("\u786E \u5B9A")]),_:1}),e(H,{onClick:t},{default:a(()=>[c("\u53D6 \u6D88")]),_:1})])]),default:a(()=>[e(he,{ref:"jobRef",model:l(o),rules:l(D),"label-width":"120px"},{default:a(()=>[e(ce,null,{default:a(()=>[e(W,{span:12},{default:a(()=>[e(q,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"jobName"},{default:a(()=>[e(ve,{modelValue:l(o).jobName,"onUpdate:modelValue":U[6]||(U[6]=w=>l(o).jobName=w),placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"\u4EFB\u52A1\u5206\u7EC4",prop:"jobGroup"},{default:a(()=>[e(Ne,{modelValue:l(o).jobGroup,"onUpdate:modelValue":U[7]||(U[7]=w=>l(o).jobGroup=w),placeholder:"\u8BF7\u9009\u62E9"},{default:a(()=>[(b(!0),A(K,null,Q(l(n),w=>(b(),$(xe,{key:w.value,label:w.label,value:w.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(W,{span:24},{default:a(()=>[e(q,{prop:"invokeTarget"},{label:a(()=>[R("span",null,[c(" \u8C03\u7528\u65B9\u6CD5 "),e(Y,{placement:"top"},{content:a(()=>[$l]),default:a(()=>[e(G,null,{default:a(()=>[e(Z)]),_:1})]),_:1})])]),default:a(()=>[e(ve,{modelValue:l(o).invokeTarget,"onUpdate:modelValue":U[8]||(U[8]=w=>l(o).invokeTarget=w),placeholder:"\u8BF7\u8F93\u5165\u8C03\u7528\u76EE\u6807\u5B57\u7B26\u4E32"},null,8,["modelValue"])]),_:1})]),_:1}),e(W,{span:24},{default:a(()=>[e(q,{label:"cron\u8868\u8FBE\u5F0F",prop:"cronExpression"},{default:a(()=>[e(ve,{modelValue:l(o).cronExpression,"onUpdate:modelValue":U[9]||(U[9]=w=>l(o).cronExpression=w),placeholder:"\u8BF7\u8F93\u5165cron\u6267\u884C\u8868\u8FBE\u5F0F"},{append:a(()=>[e(H,{type:"primary",onClick:de},{default:a(()=>[c(" \u751F\u6210\u8868\u8FBE\u5F0F "),Il]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(W,{span:24},{default:a(()=>[e(q,{label:"\u6267\u884C\u7B56\u7565",prop:"misfirePolicy"},{default:a(()=>[e(ye,{modelValue:l(o).misfirePolicy,"onUpdate:modelValue":U[10]||(U[10]=w=>l(o).misfirePolicy=w)},{default:a(()=>[e(Ue,{label:"1"},{default:a(()=>[c("\u7ACB\u5373\u6267\u884C")]),_:1}),e(Ue,{label:"2"},{default:a(()=>[c("\u6267\u884C\u4E00\u6B21")]),_:1}),e(Ue,{label:"3"},{default:a(()=>[c("\u653E\u5F03\u6267\u884C")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"\u662F\u5426\u5E76\u53D1",prop:"concurrent"},{default:a(()=>[e(ye,{modelValue:l(o).concurrent,"onUpdate:modelValue":U[11]||(U[11]=w=>l(o).concurrent=w)},{default:a(()=>[e(Ue,{label:"0"},{default:a(()=>[c("\u5141\u8BB8")]),_:1}),e(Ue,{label:"1"},{default:a(()=>[c("\u7981\u6B62")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"\u72B6\u6001"},{default:a(()=>[e(ye,{modelValue:l(o).status,"onUpdate:modelValue":U[12]||(U[12]=w=>l(o).status=w)},{default:a(()=>[(b(!0),A(K,null,Q(l(r),w=>(b(),$(De,{key:w.value,label:w.value},{default:a(()=>[c(F(w.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"]),e(Ve,{title:"Cron\u8868\u8FBE\u5F0F\u751F\u6210\u5668",modelValue:l(_),"onUpdate:modelValue":U[15]||(U[15]=w=>k(_)?_.value=w:null),"append-to-body":"","destroy-on-close":""},{default:a(()=>[e(l(Al),{ref:"crontabRef",onHide:U[14]||(U[14]=w=>_.value=!1),onFill:we,expression:l(s)},null,8,["expression"])]),_:1},8,["modelValue"]),fe(" \u4EFB\u52A1\u65E5\u5FD7\u8BE6\u7EC6 "),e(Ve,{title:"\u4EFB\u52A1\u8BE6\u7EC6",modelValue:l(P),"onUpdate:modelValue":U[17]||(U[17]=w=>k(P)?P.value=w:null),width:"700px","append-to-body":""},{footer:a(()=>[R("div",Yl,[e(H,{onClick:U[16]||(U[16]=w=>P.value=!1)},{default:a(()=>[c("\u5173 \u95ED")]),_:1})])]),default:a(()=>[e(he,{model:l(o),"label-width":"120px"},{default:a(()=>[e(ce,null,{default:a(()=>[e(W,{span:12},{default:a(()=>[e(q,{label:"\u4EFB\u52A1\u7F16\u53F7\uFF1A"},{default:a(()=>[c(F(l(o).jobId),1)]),_:1}),e(q,{label:"\u4EFB\u52A1\u540D\u79F0\uFF1A"},{default:a(()=>[c(F(l(o).jobName),1)]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"\u4EFB\u52A1\u5206\u7EC4\uFF1A"},{default:a(()=>[c(F(M(l(o))),1)]),_:1}),e(q,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:a(()=>[c(F(l(o).createTime),1)]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"cron\u8868\u8FBE\u5F0F\uFF1A"},{default:a(()=>[c(F(l(o).cronExpression),1)]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"\u4E0B\u6B21\u6267\u884C\u65F6\u95F4\uFF1A"},{default:a(()=>[c(F(T.parseTime(l(o).nextValidTime)),1)]),_:1})]),_:1}),e(W,{span:24},{default:a(()=>[e(q,{label:"\u8C03\u7528\u76EE\u6807\u65B9\u6CD5\uFF1A"},{default:a(()=>[c(F(l(o).invokeTarget),1)]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"\u4EFB\u52A1\u72B6\u6001\uFF1A"},{default:a(()=>[l(o).status==0?(b(),A("div",Rl,"\u6B63\u5E38")):l(o).status==1?(b(),A("div",Ll,"\u5931\u8D25")):fe("v-if",!0)]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"\u662F\u5426\u5E76\u53D1\uFF1A"},{default:a(()=>[l(o).concurrent==0?(b(),A("div",Ml,"\u5141\u8BB8")):l(o).concurrent==1?(b(),A("div",Fl,"\u7981\u6B62")):fe("v-if",!0)]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"\u6267\u884C\u7B56\u7565\uFF1A"},{default:a(()=>[l(o).misfirePolicy==0?(b(),A("div",Pl,"\u9ED8\u8BA4\u7B56\u7565")):l(o).misfirePolicy==1?(b(),A("div",Wl,"\u7ACB\u5373\u6267\u884C")):l(o).misfirePolicy==2?(b(),A("div",ql,"\u6267\u884C\u4E00\u6B21")):l(o).misfirePolicy==3?(b(),A("div",El,"\u653E\u5F03\u6267\u884C")):fe("v-if",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),Bl=ge(zl,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/monitor/job/index.vue"]]);export{Bl as default}; +import{_ as ge,r as y,v as z,B as ee,d as x,o as b,k as $,w as a,e,f as l,P as k,m as c,c as A,I as K,J as Q,x as F,C as Se,l as R,g as fe,p as Re,q as Le,O as Me,a as Fe,A as Pe,U as We,T as Ae,G as re,H as Oe,j as qe,s as Ee}from"./index.b3a66a9e.js";import{l as Ge,c as Ye,r as ze,g as $e,u as Je,a as He,d as Be}from"./job.dfeefd37.js";const Ke={__name:"second",props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},emits:["update"],setup(J,{emit:j}){const f=J,n=y(1),r=y(0),p=y(1),u=y(0),g=y(1),v=y([]),C=y([0]),O=z(()=>(r.value=f.check(r.value,0,58),p.value=f.check(p.value,r.value+1,59),r.value+"-"+p.value)),I=z(()=>(u.value=f.check(u.value,0,58),g.value=f.check(g.value,1,59-u.value),u.value+"/"+g.value)),L=z(()=>v.value.join(","));ee(()=>f.cron.second,_=>E(_)),ee([n,O,I,L],()=>P());function E(_){if(_==="*")n.value=1;else if(_.indexOf("-")>-1){const s=_.split("-");r.value=Number(s[0]),p.value=Number(s[1]),n.value=2}else if(_.indexOf("/")>-1){const s=_.split("/");u.value=Number(s[0]),g.value=Number(s[1]),n.value=3}else v.value=[...new Set(_.split(",").map(s=>Number(s)))],n.value=4}function P(){switch(n.value){case 1:j("update","second","*","second");break;case 2:j("update","second",O.value,"second");break;case 3:j("update","second",I.value,"second");break;case 4:v.value.length===0?v.value.push(C.value[0]):C.value=v.value,j("update","second",L.value,"second");break}}return(_,s)=>{const m=x("el-radio"),d=x("el-form-item"),o=x("el-input-number"),D=x("el-option"),N=x("el-select"),M=x("el-form");return b(),$(M,{size:"small"},{default:a(()=>[e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[0]||(s[0]=t=>k(n)?n.value=t:null),label:1},{default:a(()=>[c(" \u79D2\uFF0C\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /] ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[3]||(s[3]=t=>k(n)?n.value=t:null),label:2},{default:a(()=>[c(" \u5468\u671F\u4ECE "),e(o,{modelValue:l(r),"onUpdate:modelValue":s[1]||(s[1]=t=>k(r)?r.value=t:null),min:0,max:58},null,8,["modelValue"]),c(" - "),e(o,{modelValue:l(p),"onUpdate:modelValue":s[2]||(s[2]=t=>k(p)?p.value=t:null),min:l(r)+1,max:59},null,8,["modelValue","min"]),c(" \u79D2 ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[6]||(s[6]=t=>k(n)?n.value=t:null),label:3},{default:a(()=>[c(" \u4ECE "),e(o,{modelValue:l(u),"onUpdate:modelValue":s[4]||(s[4]=t=>k(u)?u.value=t:null),min:0,max:58},null,8,["modelValue"]),c(" \u79D2\u5F00\u59CB\uFF0C\u6BCF "),e(o,{modelValue:l(g),"onUpdate:modelValue":s[5]||(s[5]=t=>k(g)?g.value=t:null),min:1,max:59-l(u)},null,8,["modelValue","max"]),c(" \u79D2\u6267\u884C\u4E00\u6B21 ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[8]||(s[8]=t=>k(n)?n.value=t:null),label:4},{default:a(()=>[c(" \u6307\u5B9A "),e(N,{clearable:"",modelValue:l(v),"onUpdate:modelValue":s[7]||(s[7]=t=>k(v)?v.value=t:null),placeholder:"\u53EF\u591A\u9009",multiple:"","multiple-limit":10},{default:a(()=>[(b(),A(K,null,Q(60,t=>e(D,{key:t,label:t-1,value:t-1},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},Qe=ge(Ke,[["__scopeId","data-v-1b392933"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/second.vue"]]);const Xe={__name:"min",props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},emits:["update"],setup(J,{emit:j}){const f=J,n=y(1),r=y(0),p=y(1),u=y(0),g=y(1),v=y([]),C=y([0]),O=z(()=>(r.value=f.check(r.value,0,58),p.value=f.check(p.value,r.value+1,59),r.value+"-"+p.value)),I=z(()=>(u.value=f.check(u.value,0,58),g.value=f.check(g.value,1,59-u.value),u.value+"/"+g.value)),L=z(()=>v.value.join(","));ee(()=>f.cron.min,_=>E(_)),ee([n,O,I,L],()=>P());function E(_){if(_==="*")n.value=1;else if(_.indexOf("-")>-1){const s=_.split("-");r.value=Number(s[0]),p.value=Number(s[1]),n.value=2}else if(_.indexOf("/")>-1){const s=_.split("/");u.value=Number(s[0]),g.value=Number(s[1]),n.value=3}else v.value=[...new Set(_.split(",").map(s=>Number(s)))],n.value=4}function P(){switch(n.value){case 1:j("update","min","*","min");break;case 2:j("update","min",O.value,"min");break;case 3:j("update","min",I.value,"min");break;case 4:v.value.length===0?v.value.push(C.value[0]):C.value=v.value,j("update","min",L.value,"min");break}}return(_,s)=>{const m=x("el-radio"),d=x("el-form-item"),o=x("el-input-number"),D=x("el-option"),N=x("el-select"),M=x("el-form");return b(),$(M,{size:"small"},{default:a(()=>[e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[0]||(s[0]=t=>k(n)?n.value=t:null),label:1},{default:a(()=>[c(" \u5206\u949F\uFF0C\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /] ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[3]||(s[3]=t=>k(n)?n.value=t:null),label:2},{default:a(()=>[c(" \u5468\u671F\u4ECE "),e(o,{modelValue:l(r),"onUpdate:modelValue":s[1]||(s[1]=t=>k(r)?r.value=t:null),min:0,max:58},null,8,["modelValue"]),c(" - "),e(o,{modelValue:l(p),"onUpdate:modelValue":s[2]||(s[2]=t=>k(p)?p.value=t:null),min:l(r)+1,max:59},null,8,["modelValue","min"]),c(" \u5206\u949F ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[6]||(s[6]=t=>k(n)?n.value=t:null),label:3},{default:a(()=>[c(" \u4ECE "),e(o,{modelValue:l(u),"onUpdate:modelValue":s[4]||(s[4]=t=>k(u)?u.value=t:null),min:0,max:58},null,8,["modelValue"]),c(" \u5206\u949F\u5F00\u59CB\uFF0C \u6BCF "),e(o,{modelValue:l(g),"onUpdate:modelValue":s[5]||(s[5]=t=>k(g)?g.value=t:null),min:1,max:59-l(u)},null,8,["modelValue","max"]),c(" \u5206\u949F\u6267\u884C\u4E00\u6B21 ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[8]||(s[8]=t=>k(n)?n.value=t:null),label:4},{default:a(()=>[c(" \u6307\u5B9A "),e(N,{clearable:"",modelValue:l(v),"onUpdate:modelValue":s[7]||(s[7]=t=>k(v)?v.value=t:null),placeholder:"\u53EF\u591A\u9009",multiple:"","multiple-limit":10},{default:a(()=>[(b(),A(K,null,Q(60,t=>e(D,{key:t,label:t-1,value:t-1},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},Ze=ge(Xe,[["__scopeId","data-v-f0579573"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/min.vue"]]);const el={__name:"hour",props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},emits:["update"],setup(J,{emit:j}){const f=J,n=y(1),r=y(0),p=y(1),u=y(0),g=y(1),v=y([]),C=y([0]),O=z(()=>(r.value=f.check(r.value,0,22),p.value=f.check(p.value,r.value+1,23),r.value+"-"+p.value)),I=z(()=>(u.value=f.check(u.value,0,22),g.value=f.check(g.value,1,23-u.value),u.value+"/"+g.value)),L=z(()=>v.value.join(","));ee(()=>f.cron.hour,_=>E(_)),ee([n,O,I,L],()=>P());function E(_){if(_==="*")n.value=1;else if(_.indexOf("-")>-1){const s=_.split("-");r.value=Number(s[0]),p.value=Number(s[1]),n.value=2}else if(_.indexOf("/")>-1){const s=_.split("/");u.value=Number(s[0]),g.value=Number(s[1]),n.value=3}else v.value=[...new Set(_.split(",").map(s=>Number(s)))],n.value=4}function P(){switch(n.value){case 1:j("update","hour","*","hour");break;case 2:j("update","hour",O.value,"hour");break;case 3:j("update","hour",I.value,"hour");break;case 4:v.value.length===0?v.value.push(C.value[0]):C.value=v.value,j("update","hour",L.value,"hour");break}}return(_,s)=>{const m=x("el-radio"),d=x("el-form-item"),o=x("el-input-number"),D=x("el-option"),N=x("el-select"),M=x("el-form");return b(),$(M,{size:"small"},{default:a(()=>[e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[0]||(s[0]=t=>k(n)?n.value=t:null),label:1},{default:a(()=>[c(" \u5C0F\u65F6\uFF0C\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /] ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[3]||(s[3]=t=>k(n)?n.value=t:null),label:2},{default:a(()=>[c(" \u5468\u671F\u4ECE "),e(o,{modelValue:l(r),"onUpdate:modelValue":s[1]||(s[1]=t=>k(r)?r.value=t:null),min:0,max:22},null,8,["modelValue"]),c(" - "),e(o,{modelValue:l(p),"onUpdate:modelValue":s[2]||(s[2]=t=>k(p)?p.value=t:null),min:l(r)+1,max:23},null,8,["modelValue","min"]),c(" \u65F6 ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[6]||(s[6]=t=>k(n)?n.value=t:null),label:3},{default:a(()=>[c(" \u4ECE "),e(o,{modelValue:l(u),"onUpdate:modelValue":s[4]||(s[4]=t=>k(u)?u.value=t:null),min:0,max:22},null,8,["modelValue"]),c(" \u65F6\u5F00\u59CB\uFF0C\u6BCF "),e(o,{modelValue:l(g),"onUpdate:modelValue":s[5]||(s[5]=t=>k(g)?g.value=t:null),min:1,max:23-l(u)},null,8,["modelValue","max"]),c(" \u5C0F\u65F6\u6267\u884C\u4E00\u6B21 ")]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:a(()=>[e(m,{modelValue:l(n),"onUpdate:modelValue":s[8]||(s[8]=t=>k(n)?n.value=t:null),label:4},{default:a(()=>[c(" \u6307\u5B9A "),e(N,{clearable:"",modelValue:l(v),"onUpdate:modelValue":s[7]||(s[7]=t=>k(v)?v.value=t:null),placeholder:"\u53EF\u591A\u9009",multiple:"","multiple-limit":10},{default:a(()=>[(b(),A(K,null,Q(24,t=>e(D,{key:t,label:t-1,value:t-1},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},ll=ge(el,[["__scopeId","data-v-2ca70edd"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/hour.vue"]]);const al={__name:"day",props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},emits:["update"],setup(J,{emit:j}){const f=J,n=y(1),r=y(1),p=y(2),u=y(1),g=y(1),v=y(1),C=y([]),O=y([1]),I=z(()=>(r.value=f.check(r.value,1,30),p.value=f.check(p.value,r.value+1,31),r.value+"-"+p.value)),L=z(()=>(u.value=f.check(u.value,1,30),g.value=f.check(g.value,1,31-u.value),u.value+"/"+g.value)),E=z(()=>(v.value=f.check(v.value,1,31),v.value+"W")),P=z(()=>C.value.join(","));ee(()=>f.cron.day,m=>_(m)),ee([n,I,L,E,P],()=>s());function _(m){if(m==="*")n.value=1;else if(m==="?")n.value=2;else if(m.indexOf("-")>-1){const d=m.split("-");r.value=Number(d[0]),p.value=Number(d[1]),n.value=3}else if(m.indexOf("/")>-1){const d=m.split("/");u.value=Number(d[0]),g.value=Number(d[1]),n.value=4}else if(m.indexOf("W")>-1){const d=m.split("W");v.value=Number(d[0]),n.value=5}else m==="L"?n.value=6:(C.value=[...new Set(m.split(",").map(d=>Number(d)))],n.value=7)}function s(){switch(n.value===2&&f.cron.week==="?"&&j("update","week","*","day"),n.value!==2&&f.cron.week!=="?"&&j("update","week","?","day"),n.value){case 1:j("update","day","*","day");break;case 2:j("update","day","?","day");break;case 3:j("update","day",I.value,"day");break;case 4:j("update","day",L.value,"day");break;case 5:j("update","day",E.value,"day");break;case 6:j("update","day","L","day");break;case 7:C.value.length===0?C.value.push(O.value[0]):O.value=C.value,j("update","day",P.value,"day");break}}return(m,d)=>{const o=x("el-radio"),D=x("el-form-item"),N=x("el-input-number"),M=x("el-option"),t=x("el-select"),h=x("el-form");return b(),$(h,{size:"small"},{default:a(()=>[e(D,null,{default:a(()=>[e(o,{modelValue:l(n),"onUpdate:modelValue":d[0]||(d[0]=i=>k(n)?n.value=i:null),label:1},{default:a(()=>[c(" \u65E5\uFF0C\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * ? / L W] ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{modelValue:l(n),"onUpdate:modelValue":d[1]||(d[1]=i=>k(n)?n.value=i:null),label:2},{default:a(()=>[c(" \u4E0D\u6307\u5B9A ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{modelValue:l(n),"onUpdate:modelValue":d[4]||(d[4]=i=>k(n)?n.value=i:null),label:3},{default:a(()=>[c(" \u5468\u671F\u4ECE "),e(N,{modelValue:l(r),"onUpdate:modelValue":d[2]||(d[2]=i=>k(r)?r.value=i:null),min:1,max:30},null,8,["modelValue"]),c(" - "),e(N,{modelValue:l(p),"onUpdate:modelValue":d[3]||(d[3]=i=>k(p)?p.value=i:null),min:l(r)+1,max:31},null,8,["modelValue","min"]),c(" \u65E5 ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{modelValue:l(n),"onUpdate:modelValue":d[7]||(d[7]=i=>k(n)?n.value=i:null),label:4},{default:a(()=>[c(" \u4ECE "),e(N,{modelValue:l(u),"onUpdate:modelValue":d[5]||(d[5]=i=>k(u)?u.value=i:null),min:1,max:30},null,8,["modelValue"]),c(" \u53F7\u5F00\u59CB\uFF0C\u6BCF "),e(N,{modelValue:l(g),"onUpdate:modelValue":d[6]||(d[6]=i=>k(g)?g.value=i:null),min:1,max:31-l(u)},null,8,["modelValue","max"]),c(" \u65E5\u6267\u884C\u4E00\u6B21 ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{modelValue:l(n),"onUpdate:modelValue":d[9]||(d[9]=i=>k(n)?n.value=i:null),label:5},{default:a(()=>[c(" \u6BCF\u6708 "),e(N,{modelValue:l(v),"onUpdate:modelValue":d[8]||(d[8]=i=>k(v)?v.value=i:null),min:1,max:31},null,8,["modelValue"]),c(" \u53F7\u6700\u8FD1\u7684\u90A3\u4E2A\u5DE5\u4F5C\u65E5 ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{modelValue:l(n),"onUpdate:modelValue":d[10]||(d[10]=i=>k(n)?n.value=i:null),label:6},{default:a(()=>[c(" \u672C\u6708\u6700\u540E\u4E00\u5929 ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{modelValue:l(n),"onUpdate:modelValue":d[12]||(d[12]=i=>k(n)?n.value=i:null),label:7},{default:a(()=>[c(" \u6307\u5B9A "),e(t,{clearable:"",modelValue:l(C),"onUpdate:modelValue":d[11]||(d[11]=i=>k(C)?C.value=i:null),placeholder:"\u53EF\u591A\u9009",multiple:"","multiple-limit":10},{default:a(()=>[(b(),A(K,null,Q(31,i=>e(M,{key:i,label:i,value:i},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},nl=ge(al,[["__scopeId","data-v-82896587"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/day.vue"]]);const tl={__name:"month",props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},emits:["update"],setup(J,{emit:j}){const f=J,n=y(1),r=y(1),p=y(2),u=y(1),g=y(1),v=y([]),C=y([1]),O=y([{key:1,value:"\u4E00\u6708"},{key:2,value:"\u4E8C\u6708"},{key:3,value:"\u4E09\u6708"},{key:4,value:"\u56DB\u6708"},{key:5,value:"\u4E94\u6708"},{key:6,value:"\u516D\u6708"},{key:7,value:"\u4E03\u6708"},{key:8,value:"\u516B\u6708"},{key:9,value:"\u4E5D\u6708"},{key:10,value:"\u5341\u6708"},{key:11,value:"\u5341\u4E00\u6708"},{key:12,value:"\u5341\u4E8C\u6708"}]),I=z(()=>(r.value=f.check(r.value,1,11),p.value=f.check(p.value,r.value+1,12),r.value+"-"+p.value)),L=z(()=>(u.value=f.check(u.value,1,11),g.value=f.check(g.value,1,12-u.value),u.value+"/"+g.value)),E=z(()=>v.value.join(","));ee(()=>f.cron.month,s=>P(s)),ee([n,I,L,E],()=>_());function P(s){if(s==="*")n.value=1;else if(s.indexOf("-")>-1){const m=s.split("-");r.value=Number(m[0]),p.value=Number(m[1]),n.value=2}else if(s.indexOf("/")>-1){const m=s.split("/");u.value=Number(m[0]),g.value=Number(m[1]),n.value=3}else v.value=[...new Set(s.split(",").map(m=>Number(m)))],n.value=4}function _(){switch(n.value){case 1:j("update","month","*","month");break;case 2:j("update","month",I.value,"month");break;case 3:j("update","month",L.value,"month");break;case 4:v.value.length===0?v.value.push(C.value[0]):C.value=v.value,j("update","month",E.value,"month");break}}return(s,m)=>{const d=x("el-radio"),o=x("el-form-item"),D=x("el-input-number"),N=x("el-option"),M=x("el-select"),t=x("el-form");return b(),$(t,{size:"small"},{default:a(()=>[e(o,null,{default:a(()=>[e(d,{modelValue:l(n),"onUpdate:modelValue":m[0]||(m[0]=h=>k(n)?n.value=h:null),label:1},{default:a(()=>[c(" \u6708\uFF0C\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /] ")]),_:1},8,["modelValue"])]),_:1}),e(o,null,{default:a(()=>[e(d,{modelValue:l(n),"onUpdate:modelValue":m[3]||(m[3]=h=>k(n)?n.value=h:null),label:2},{default:a(()=>[c(" \u5468\u671F\u4ECE "),e(D,{modelValue:l(r),"onUpdate:modelValue":m[1]||(m[1]=h=>k(r)?r.value=h:null),min:1,max:11},null,8,["modelValue"]),c(" - "),e(D,{modelValue:l(p),"onUpdate:modelValue":m[2]||(m[2]=h=>k(p)?p.value=h:null),min:l(r)+1,max:12},null,8,["modelValue","min"]),c(" \u6708 ")]),_:1},8,["modelValue"])]),_:1}),e(o,null,{default:a(()=>[e(d,{modelValue:l(n),"onUpdate:modelValue":m[6]||(m[6]=h=>k(n)?n.value=h:null),label:3},{default:a(()=>[c(" \u4ECE "),e(D,{modelValue:l(u),"onUpdate:modelValue":m[4]||(m[4]=h=>k(u)?u.value=h:null),min:1,max:11},null,8,["modelValue"]),c(" \u6708\u5F00\u59CB\uFF0C\u6BCF "),e(D,{modelValue:l(g),"onUpdate:modelValue":m[5]||(m[5]=h=>k(g)?g.value=h:null),min:1,max:12-l(u)},null,8,["modelValue","max"]),c(" \u6708\u6708\u6267\u884C\u4E00\u6B21 ")]),_:1},8,["modelValue"])]),_:1}),e(o,null,{default:a(()=>[e(d,{modelValue:l(n),"onUpdate:modelValue":m[8]||(m[8]=h=>k(n)?n.value=h:null),label:4},{default:a(()=>[c(" \u6307\u5B9A "),e(M,{clearable:"",modelValue:l(v),"onUpdate:modelValue":m[7]||(m[7]=h=>k(v)?v.value=h:null),placeholder:"\u53EF\u591A\u9009",multiple:"","multiple-limit":8},{default:a(()=>[(b(!0),A(K,null,Q(l(O),h=>(b(),$(N,{key:h.key,label:h.value,value:h.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},ol=ge(tl,[["__scopeId","data-v-704d664c"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/month.vue"]]);const ul={__name:"week",props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},emits:["update"],setup(J,{emit:j}){const f=J,n=y(2),r=y(2),p=y(3),u=y(1),g=y(2),v=y(2),C=y([]),O=y([2]),I=y([{key:1,value:"\u661F\u671F\u65E5"},{key:2,value:"\u661F\u671F\u4E00"},{key:3,value:"\u661F\u671F\u4E8C"},{key:4,value:"\u661F\u671F\u4E09"},{key:5,value:"\u661F\u671F\u56DB"},{key:6,value:"\u661F\u671F\u4E94"},{key:7,value:"\u661F\u671F\u516D"}]),L=z(()=>(r.value=f.check(r.value,1,6),p.value=f.check(p.value,r.value+1,7),r.value+"-"+p.value)),E=z(()=>(u.value=f.check(u.value,1,4),g.value=f.check(g.value,1,7),g.value+"#"+u.value)),P=z(()=>(v.value=f.check(v.value,1,7),v.value+"L")),_=z(()=>C.value.join(","));ee(()=>f.cron.week,d=>s(d)),ee([n,L,E,P,_],()=>m());function s(d){if(d==="*")n.value=1;else if(d==="?")n.value=2;else if(d.indexOf("-")>-1){const o=d.split("-");r.value=Number(o[0]),p.value=Number(o[1]),n.value=3}else if(d.indexOf("#")>-1){const o=d.split("#");u.value=Number(o[1]),g.value=Number(o[0]),n.value=4}else if(d.indexOf("L")>-1){const o=d.split("L");v.value=Number(o[0]),n.value=5}else C.value=[...new Set(d.split(",").map(o=>Number(o)))],n.value=6}function m(){switch(n.value===2&&f.cron.day==="?"&&j("update","day","*","week"),n.value!==2&&f.cron.day!=="?"&&j("update","day","?","week"),n.value){case 1:j("update","week","*","week");break;case 2:j("update","week","?","week");break;case 3:j("update","week",L.value,"week");break;case 4:j("update","week",E.value,"week");break;case 5:j("update","week",P.value,"week");break;case 6:C.value.length===0?C.value.push(O.value[0]):O.value=C.value,j("update","week",_.value,"week");break}}return(d,o)=>{const D=x("el-radio"),N=x("el-form-item"),M=x("el-option"),t=x("el-select"),h=x("el-input-number"),i=x("el-form");return b(),$(i,{size:"small"},{default:a(()=>[e(N,null,{default:a(()=>[e(D,{modelValue:l(n),"onUpdate:modelValue":o[0]||(o[0]=V=>k(n)?n.value=V:null),label:1},{default:a(()=>[c(" \u5468\uFF0C\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * ? / L #] ")]),_:1},8,["modelValue"])]),_:1}),e(N,null,{default:a(()=>[e(D,{modelValue:l(n),"onUpdate:modelValue":o[1]||(o[1]=V=>k(n)?n.value=V:null),label:2},{default:a(()=>[c(" \u4E0D\u6307\u5B9A ")]),_:1},8,["modelValue"])]),_:1}),e(N,null,{default:a(()=>[e(D,{modelValue:l(n),"onUpdate:modelValue":o[4]||(o[4]=V=>k(n)?n.value=V:null),label:3},{default:a(()=>[c(" \u5468\u671F\u4ECE "),e(t,{clearable:"",modelValue:l(r),"onUpdate:modelValue":o[2]||(o[2]=V=>k(r)?r.value=V:null)},{default:a(()=>[(b(!0),A(K,null,Q(l(I),(V,B)=>(b(),$(M,{key:B,label:V.value,value:V.key,disabled:V.key===7},{default:a(()=>[c(F(V.value),1)]),_:2},1032,["label","value","disabled"]))),128))]),_:1},8,["modelValue"]),c(" - "),e(t,{clearable:"",modelValue:l(p),"onUpdate:modelValue":o[3]||(o[3]=V=>k(p)?p.value=V:null)},{default:a(()=>[(b(!0),A(K,null,Q(l(I),(V,B)=>(b(),$(M,{key:B,label:V.value,value:V.key,disabled:V.key<=l(r)},{default:a(()=>[c(F(V.value),1)]),_:2},1032,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e(N,null,{default:a(()=>[e(D,{modelValue:l(n),"onUpdate:modelValue":o[7]||(o[7]=V=>k(n)?n.value=V:null),label:4},{default:a(()=>[c(" \u7B2C "),e(h,{modelValue:l(u),"onUpdate:modelValue":o[5]||(o[5]=V=>k(u)?u.value=V:null),min:1,max:4},null,8,["modelValue"]),c(" \u5468\u7684 "),e(t,{clearable:"",modelValue:l(g),"onUpdate:modelValue":o[6]||(o[6]=V=>k(g)?g.value=V:null)},{default:a(()=>[(b(!0),A(K,null,Q(l(I),V=>(b(),$(M,{key:V.key,label:V.value,value:V.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e(N,null,{default:a(()=>[e(D,{modelValue:l(n),"onUpdate:modelValue":o[9]||(o[9]=V=>k(n)?n.value=V:null),label:5},{default:a(()=>[c(" \u672C\u6708\u6700\u540E\u4E00\u4E2A "),e(t,{clearable:"",modelValue:l(v),"onUpdate:modelValue":o[8]||(o[8]=V=>k(v)?v.value=V:null)},{default:a(()=>[(b(!0),A(K,null,Q(l(I),V=>(b(),$(M,{key:V.key,label:V.value,value:V.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e(N,null,{default:a(()=>[e(D,{modelValue:l(n),"onUpdate:modelValue":o[11]||(o[11]=V=>k(n)?n.value=V:null),label:6},{default:a(()=>[c(" \u6307\u5B9A "),e(t,{class:"multiselect",clearable:"",modelValue:l(C),"onUpdate:modelValue":o[10]||(o[10]=V=>k(C)?C.value=V:null),placeholder:"\u53EF\u591A\u9009",multiple:"","multiple-limit":6},{default:a(()=>[(b(!0),A(K,null,Q(l(I),V=>(b(),$(M,{key:V.key,label:V.value,value:V.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},dl=ge(ul,[["__scopeId","data-v-6c2b5e06"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/week.vue"]]);const sl={__name:"year",props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},emits:["update"],setup(J,{emit:j}){const f=J,n=y(0),r=y(0),p=y(1),u=y(0),g=y(0),v=y(0),C=y(1),O=y([]),I=y([]),L=z(()=>(u.value=f.check(u.value,n.value,r.value-1),g.value=f.check(g.value,u.value+1,r.value),u.value+"-"+g.value)),E=z(()=>(v.value=f.check(v.value,n.value,r.value-1),C.value=f.check(C.value,1,10),v.value+"/"+C.value)),P=z(()=>O.value.join(","));ee(()=>f.cron.year,m=>_(m)),ee([p,L,E,P],()=>s());function _(m){if(m==="")p.value=1;else if(m==="*")p.value=2;else if(m.indexOf("-")>-1){const d=m.split("-");u.value=Number(d[0]),g.value=Number(d[1]),p.value=3}else if(m.indexOf("/")>-1){const d=m.split("#");v.value=Number(d[1]),C.value=Number(d[0]),p.value=4}else O.value=[...new Set(m.split(",").map(d=>Number(d)))],p.value=5}function s(){switch(p.value){case 1:j("update","year","","year");break;case 2:j("update","year","*","year");break;case 3:j("update","year",L.value,"year");break;case 4:j("update","year",E.value,"year");break;case 5:O.value.length===0?O.value.push(I.value[0]):I.value=O.value,j("update","year",P.value,"year");break}}return Se(()=>{n.value=Number(new Date().getFullYear()),r.value=n.value+10,u.value=n.value,g.value=u.value+1,v.value=n.value,I.value=[n.value]}),(m,d)=>{const o=x("el-radio"),D=x("el-form-item"),N=x("el-input-number"),M=x("el-option"),t=x("el-select"),h=x("el-form");return b(),$(h,{size:"small"},{default:a(()=>[e(D,null,{default:a(()=>[e(o,{label:1,modelValue:l(p),"onUpdate:modelValue":d[0]||(d[0]=i=>k(p)?p.value=i:null)},{default:a(()=>[c(" \u4E0D\u586B\uFF0C\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /] ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{label:2,modelValue:l(p),"onUpdate:modelValue":d[1]||(d[1]=i=>k(p)?p.value=i:null)},{default:a(()=>[c(" \u6BCF\u5E74 ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{label:3,modelValue:l(p),"onUpdate:modelValue":d[4]||(d[4]=i=>k(p)?p.value=i:null)},{default:a(()=>[c(" \u5468\u671F\u4ECE "),e(N,{modelValue:l(u),"onUpdate:modelValue":d[2]||(d[2]=i=>k(u)?u.value=i:null),min:l(n),max:l(r)-1},null,8,["modelValue","min","max"]),c(" - "),e(N,{modelValue:l(g),"onUpdate:modelValue":d[3]||(d[3]=i=>k(g)?g.value=i:null),min:l(u)+1,max:l(r)},null,8,["modelValue","min","max"])]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{label:4,modelValue:l(p),"onUpdate:modelValue":d[7]||(d[7]=i=>k(p)?p.value=i:null)},{default:a(()=>[c(" \u4ECE "),e(N,{modelValue:l(v),"onUpdate:modelValue":d[5]||(d[5]=i=>k(v)?v.value=i:null),min:l(n),max:l(r)-1},null,8,["modelValue","min","max"]),c(" \u5E74\u5F00\u59CB\uFF0C\u6BCF "),e(N,{modelValue:l(C),"onUpdate:modelValue":d[6]||(d[6]=i=>k(C)?C.value=i:null),min:1,max:10},null,8,["modelValue"]),c(" \u5E74\u6267\u884C\u4E00\u6B21 ")]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(o,{label:5,modelValue:l(p),"onUpdate:modelValue":d[9]||(d[9]=i=>k(p)?p.value=i:null)},{default:a(()=>[c(" \u6307\u5B9A "),e(t,{clearable:"",modelValue:l(O),"onUpdate:modelValue":d[8]||(d[8]=i=>k(O)?O.value=i:null),placeholder:"\u53EF\u591A\u9009",multiple:"","multiple-limit":8},{default:a(()=>[(b(),A(K,null,Q(9,i=>e(M,{key:i,value:i-1+l(n),label:i-1+l(n)},null,8,["value","label"])),64))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},rl=ge(sl,[["__scopeId","data-v-850a9505"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/year.vue"]]),il={class:"popup-result"},cl=R("p",{class:"title"},"\u6700\u8FD15\u6B21\u8FD0\u884C\u65F6\u95F4",-1),ml={class:"popup-result-scroll"},pl={key:1},fl={__name:"result",props:{ex:{type:String,default:""}},setup(J){const j=J,f=y(""),n=y(""),r=y([]),p=y([]),u=y(!1);ee(()=>j.ex,()=>g());function g(){u.value=!1;let t=j.ex.split(" "),h=0,i=[],V=new Date,B=V.getFullYear(),le=V.getMonth()+1,oe=V.getDate(),ae=V.getHours(),de=V.getMinutes(),we=V.getSeconds();_(t[0]),P(t[1]),E(t[2]),L(t[3]),O(t[4]),I(t[5]),C(t[6],B);let ie=r.value[0],se=r.value[1],ne=r.value[2],ue=r.value[3],X=r.value[4],Ce=r.value[5],T=v(ie,we),U=v(se,de),ve=v(ne,ae),q=v(ue,oe),xe=v(X,le),Ne=v(Ce,B);const H=function(){T=0,we=ie[T]},he=function(){U=0,de=se[U],H()},W=function(){ve=0,ae=ne[ve],he()},_e=function(){q=0,oe=ue[q],W()},ce=function(){xe=0,le=X[xe],_e()};B!==Ce[Ne]&&ce(),le!==X[xe]&&_e(),oe!==ue[q]&&W(),ae!==ne[ve]&&he(),de!==se[U]&&H();e:for(let me=Ne;meX[X.length-1]){ce();continue}l:for(let be=xe;be ue[ue.length-1]){if(_e(),be===X.length-1){ce();continue e}continue}a:for(let ke=q;ke ne[ne.length-1]){if(W(),ke===ue.length-1){if(_e(),be===X.length-1){ce();continue e}continue l}continue}if(M(te+"-"+G+"-"+Z+" 00:00:00")!==!0&&f.value!=="workDay"&&f.value!=="lastWeek"&&f.value!=="lastDay"){_e();continue l}if(f.value==="lastDay"){if(M(te+"-"+G+"-"+Z+" 00:00:00")!==!0)for(;S>0&&M(te+"-"+G+"-"+Z+" 00:00:00")!==!0;)S--,Z=S<10?"0"+S:S}else if(f.value==="workDay"){if(M(te+"-"+G+"-"+Z+" 00:00:00")!==!0)for(;S>0&&M(te+"-"+G+"-"+Z+" 00:00:00")!==!0;)S--,Z=S<10?"0"+S:S;let Y=N(new Date(te+"-"+G+"-"+Z+" 00:00:00"),"week");Y===1?(S++,Z=S<10?"0"+S:S,M(te+"-"+G+"-"+Z+" 00:00:00")!==!0&&(S-=3)):Y===7&&(n.value!==1?S--:S+=2)}else if(f.value==="weekDay"){let Y=N(new Date(te+"-"+G+"-"+S+" 00:00:00"),"week");if(n.value.indexOf(Y)<0){if(ke===ue.length-1){if(_e(),be===X.length-1){ce();continue e}continue l}continue}}else if(f.value==="assWeek"){let Y=N(new Date(te+"-"+G+"-"+S+" 00:00:00"),"week");n.value[1]>=Y?S=(n.value[0]-1)*7+n.value[1]-Y+1:S=n.value[0]*7+n.value[1]-Y+1}else if(f.value==="lastWeek"){if(M(te+"-"+G+"-"+Z+" 00:00:00")!==!0)for(;S>0&&M(te+"-"+G+"-"+Z+" 00:00:00")!==!0;)S--,Z=S<10?"0"+S:S;let Y=N(new Date(te+"-"+G+"-"+Z+" 00:00:00"),"week");n.value Y&&(S-=7-(n.value-Y))}S=S<10?"0"+S:S;n:for(let Y=ve;Y se[se.length-1]){if(he(),Y===ne.length-1){if(W(),ke===ue.length-1){if(_e(),be===X.length-1){ce();continue e}continue l}continue a}continue}t:for(let ye=U;ye ie[ie.length-1]){if(H(),ye===se.length-1){if(he(),Y===ne.length-1){if(W(),ke===ue.length-1){if(_e(),be===X.length-1){ce();continue e}continue l}continue a}continue n}continue}for(let Ve=T;Ve<=ie.length-1;Ve++){let pe=ie[Ve]<10?"0"+ie[Ve]:ie[Ve];if(G!=="00"&&S!=="00"&&(i.push(te+"-"+G+"-"+S+" "+Ue+":"+De+":"+pe),h++),h===5)break e;if(Ve===ie.length-1){if(H(),ye===se.length-1){if(he(),Y===ne.length-1){if(W(),ke===ue.length-1){if(_e(),be===X.length-1){ce();continue e}continue l}continue a}continue n}continue t}}}}}}}i.length===0?p.value=["\u6CA1\u6709\u8FBE\u5230\u6761\u4EF6\u7684\u7ED3\u679C\uFF01"]:(p.value=i,i.length!==5&&p.value.push("\u6700\u8FD1100\u5E74\u5185\u53EA\u6709\u4E0A\u9762"+i.length+"\u6761\u7ED3\u679C\uFF01")),u.value=!0}function v(t,h){if(h<=t[0]||h>t[t.length-1])return 0;for(let i=0;i t[i]&&h<=t[i+1])return i+1}function C(t,h){r.value[5]=s(h,h+100),t!==void 0&&(t.indexOf("-")>=0?r.value[5]=o(t,h+100,!1):t.indexOf("/")>=0?r.value[5]=d(t,h+100):t!=="*"&&(r.value[5]=m(t)))}function O(t){r.value[4]=s(1,12),t.indexOf("-")>=0?r.value[4]=o(t,12,!1):t.indexOf("/")>=0?r.value[4]=d(t,12):t!=="*"&&(r.value[4]=m(t))}function I(t){if(f.value===""&&n.value==="")if(t.indexOf("-")>=0)f.value="weekDay",n.value=o(t,7,!1);else if(t.indexOf("#")>=0){f.value="assWeek";let h=t.match(/[0-9]{1}/g);n.value=[Number(h[1]),Number(h[0])],r.value[3]=[1],n.value[1]===7&&(n.value[1]=0)}else t.indexOf("L")>=0?(f.value="lastWeek",n.value=Number(t.match(/[0-9]{1,2}/g)[0]),r.value[3]=[31],n.value===7&&(n.value=0)):t!=="*"&&t!=="?"&&(f.value="weekDay",n.value=m(t))}function L(t){r.value[3]=s(1,31),f.value="",n.value="",t.indexOf("-")>=0?(r.value[3]=o(t,31,!1),n.value="null"):t.indexOf("/")>=0?(r.value[3]=d(t,31),n.value="null"):t.indexOf("W")>=0?(f.value="workDay",n.value=Number(t.match(/[0-9]{1,2}/g)[0]),r.value[3]=[n.value]):t.indexOf("L")>=0?(f.value="lastDay",n.value="null",r.value[3]=[31]):t!=="*"&&t!=="?"?(r.value[3]=m(t),n.value="null"):t==="*"&&(n.value="null")}function E(t){r.value[2]=s(0,23),t.indexOf("-")>=0?r.value[2]=o(t,24,!0):t.indexOf("/")>=0?r.value[2]=d(t,23):t!=="*"&&(r.value[2]=m(t))}function P(t){r.value[1]=s(0,59),t.indexOf("-")>=0?r.value[1]=o(t,60,!0):t.indexOf("/")>=0?r.value[1]=d(t,59):t!=="*"&&(r.value[1]=m(t))}function _(t){r.value[0]=s(0,59),t.indexOf("-")>=0?r.value[0]=o(t,60,!0):t.indexOf("/")>=0?r.value[0]=d(t,59):t!=="*"&&(r.value[0]=m(t))}function s(t,h){let i=[];for(let V=t;V<=h;V++)i.push(V);return i}function m(t){let h=[],i=t.split(",");for(let V=0;V oe&&(oe+=h);for(let ae=le;ae<=oe;ae++){let de=0;i===!1&&ae%h===0&&(de=h),V.push(Math.round(ae%h+de))}return V.sort(D),V}function D(t,h){return h-t>0?-1:1}function N(t,h){let i=typeof t=="number"?new Date(t):t,V=i.getFullYear(),B=i.getMonth()+1,le=i.getDate(),oe=i.getHours(),ae=i.getMinutes(),de=i.getSeconds(),we=i.getDay();if(h===void 0)return V+"-"+(B<10?"0"+B:B)+"-"+(le<10?"0"+le:le)+" "+(oe<10?"0"+oe:oe)+":"+(ae<10?"0"+ae:ae)+":"+(de<10?"0"+de:de);if(h==="week")return we+1}function M(t){let h=new Date(t),i=N(h);return t===i}return Se(()=>{g()}),(t,h)=>(b(),A("div",il,[cl,R("ul",ml,[l(u)?(b(!0),A(K,{key:0},Q(l(p),i=>(b(),A("li",{key:i},F(i),1))),128)):(b(),A("li",pl,"\u8BA1\u7B97\u7ED3\u679C\u4E2D..."))])]))}},vl=ge(fl,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/result.vue"]]);const Ie=J=>(Re("data-v-3617ce85"),J=J(),Le(),J),_l={class:"popup-main"},bl={class:"popup-result"},yl=Ie(()=>R("p",{class:"title"},"\u65F6\u95F4\u8868\u8FBE\u5F0F",-1)),kl=Ie(()=>R("th",null,"Cron \u8868\u8FBE\u5F0F",-1)),Vl={key:0},gl={key:0},hl={key:0},xl={key:0},wl={key:0},Ul={key:0},jl={key:0},Cl={class:"result"},Nl={key:0},Dl={class:"pop_btn"},Sl={__name:"index",props:{hideComponent:{type:Array,default:()=>[]},expression:{type:String,default:""}},emits:["hide","fill"],setup(J,{emit:j}){const f=J,n=y(["\u79D2","\u5206\u949F","\u5C0F\u65F6","\u65E5","\u6708","\u5468","\u5E74"]);y(0);const r=y([]),p=y(""),u=y({second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}),g=z(()=>{const _=u.value;return _.second+" "+_.min+" "+_.hour+" "+_.day+" "+_.month+" "+_.week+(_.year===""?"":" "+_.year)});ee(p,()=>C());function v(_){return!(r.value&&r.value.includes(_))}function C(){if(p.value){const _=p.value.split(/\s+/);if(_.length>=6){let s={second:_[0],min:_[1],hour:_[2],day:_[3],month:_[4],week:_[5],year:_[6]?_[6]:""};u.value={...s}}}else P()}function O(_,s,m){u.value[_]=s}function I(_,s,m){return _=Math.floor(_),_ m&&(_=m),_}function L(){j("hide")}function E(){j("fill",g.value),L()}function P(){u.value={second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}}return Se(()=>{p.value=f.expression,r.value=f.hideComponent}),(_,s)=>{const m=x("el-tab-pane"),d=x("el-tabs"),o=x("el-tooltip"),D=x("el-button");return b(),A("div",null,[e(d,{type:"border-card"},{default:a(()=>[v("second")?(b(),$(m,{key:0,label:"\u79D2"},{default:a(()=>[e(Qe,{onUpdate:O,check:I,cron:l(u),ref:"cronsecond"},null,8,["cron"])]),_:1})):fe("v-if",!0),v("min")?(b(),$(m,{key:1,label:"\u5206\u949F"},{default:a(()=>[e(Ze,{onUpdate:O,check:I,cron:l(u),ref:"cronmin"},null,8,["cron"])]),_:1})):fe("v-if",!0),v("hour")?(b(),$(m,{key:2,label:"\u5C0F\u65F6"},{default:a(()=>[e(ll,{onUpdate:O,check:I,cron:l(u),ref:"cronhour"},null,8,["cron"])]),_:1})):fe("v-if",!0),v("day")?(b(),$(m,{key:3,label:"\u65E5"},{default:a(()=>[e(nl,{onUpdate:O,check:I,cron:l(u),ref:"cronday"},null,8,["cron"])]),_:1})):fe("v-if",!0),v("month")?(b(),$(m,{key:4,label:"\u6708"},{default:a(()=>[e(ol,{onUpdate:O,check:I,cron:l(u),ref:"cronmonth"},null,8,["cron"])]),_:1})):fe("v-if",!0),v("week")?(b(),$(m,{key:5,label:"\u5468"},{default:a(()=>[e(dl,{onUpdate:O,check:I,cron:l(u),ref:"cronweek"},null,8,["cron"])]),_:1})):fe("v-if",!0),v("year")?(b(),$(m,{key:6,label:"\u5E74"},{default:a(()=>[e(rl,{onUpdate:O,check:I,cron:l(u),ref:"cronyear"},null,8,["cron"])]),_:1})):fe("v-if",!0)]),_:1}),R("div",_l,[R("div",bl,[yl,R("table",null,[R("thead",null,[(b(!0),A(K,null,Q(l(n),N=>(b(),A("th",{key:N},F(N),1))),128)),kl]),R("tbody",null,[R("td",null,[l(u).second.length<10?(b(),A("span",Vl,F(l(u).second),1)):(b(),$(o,{key:1,content:l(u).second,placement:"top"},{default:a(()=>[R("span",null,F(l(u).second),1)]),_:1},8,["content"]))]),R("td",null,[l(u).min.length<10?(b(),A("span",gl,F(l(u).min),1)):(b(),$(o,{key:1,content:l(u).min,placement:"top"},{default:a(()=>[R("span",null,F(l(u).min),1)]),_:1},8,["content"]))]),R("td",null,[l(u).hour.length<10?(b(),A("span",hl,F(l(u).hour),1)):(b(),$(o,{key:1,content:l(u).hour,placement:"top"},{default:a(()=>[R("span",null,F(l(u).hour),1)]),_:1},8,["content"]))]),R("td",null,[l(u).day.length<10?(b(),A("span",xl,F(l(u).day),1)):(b(),$(o,{key:1,content:l(u).day,placement:"top"},{default:a(()=>[R("span",null,F(l(u).day),1)]),_:1},8,["content"]))]),R("td",null,[l(u).month.length<10?(b(),A("span",wl,F(l(u).month),1)):(b(),$(o,{key:1,content:l(u).month,placement:"top"},{default:a(()=>[R("span",null,F(l(u).month),1)]),_:1},8,["content"]))]),R("td",null,[l(u).week.length<10?(b(),A("span",Ul,F(l(u).week),1)):(b(),$(o,{key:1,content:l(u).week,placement:"top"},{default:a(()=>[R("span",null,F(l(u).week),1)]),_:1},8,["content"]))]),R("td",null,[l(u).year.length<10?(b(),A("span",jl,F(l(u).year),1)):(b(),$(o,{key:1,content:l(u).year,placement:"top"},{default:a(()=>[R("span",null,F(l(u).year),1)]),_:1},8,["content"]))]),R("td",Cl,[l(g).length<90?(b(),A("span",Nl,F(l(g)),1)):(b(),$(o,{key:1,content:l(g),placement:"top"},{default:a(()=>[R("span",null,F(l(g)),1)]),_:1},8,["content"]))])])])]),e(vl,{ex:l(g)},null,8,["ex"]),R("div",Dl,[e(D,{type:"primary",onClick:E},{default:a(()=>[c("\u786E\u5B9A")]),_:1}),e(D,{type:"warning",onClick:P},{default:a(()=>[c("\u91CD\u7F6E")]),_:1}),e(D,{onClick:L},{default:a(()=>[c("\u53D6\u6D88")]),_:1})])])])}}},Al=ge(Sl,[["__scopeId","data-v-3617ce85"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Crontab/index.vue"]]),Ol={class:"app-container"},$l=R("div",null,[c(" Bean\u8C03\u7528\u793A\u4F8B\uFF1AryTask.ryParams('ry') "),R("br"),c("Class\u7C7B\u8C03\u7528\u793A\u4F8B\uFF1Acom.ruoyi.quartz.task.RyTask.ryParams('ry') "),R("br"),c("\u53C2\u6570\u8BF4\u660E\uFF1A\u652F\u6301\u5B57\u7B26\u4E32\uFF0C\u5E03\u5C14\u7C7B\u578B\uFF0C\u957F\u6574\u578B\uFF0C\u6D6E\u70B9\u578B\uFF0C\u6574\u578B ")],-1),Il=R("i",{class:"el-icon-time el-icon--right"},null,-1),Tl={class:"dialog-footer"},Rl={key:0},Ll={key:1},Ml={key:0},Fl={key:1},Pl={key:0},Wl={key:1},ql={key:2},El={key:3},Gl={class:"dialog-footer"},Yl=Me({name:"Job"}),zl=Object.assign(Yl,{setup(J){const j=Fe(),{proxy:f}=Ee(),{sys_job_group:n,sys_job_status:r}=f.useDict("sys_job_group","sys_job_status"),p=y([]),u=y(!1),g=y(!0),v=y(!0),C=y([]),O=y(!0),I=y(!0),L=y(0),E=y(""),P=y(!1),_=y(!1),s=y(""),m=Pe({form:{},queryParams:{pageNum:1,pageSize:10,jobName:void 0,jobGroup:void 0,status:void 0},rules:{jobName:[{required:!0,message:"\u4EFB\u52A1\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],invokeTarget:[{required:!0,message:"\u8C03\u7528\u76EE\u6807\u5B57\u7B26\u4E32\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],cronExpression:[{required:!0,message:"cron\u6267\u884C\u8868\u8FBE\u5F0F\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}]}}),{queryParams:d,form:o,rules:D}=We(m);function N(){g.value=!0,Ge(d.value).then(T=>{p.value=T.rows,L.value=T.total,g.value=!1})}function M(T,U){return f.selectDictLabel(n.value,T.jobGroup)}function t(){u.value=!1,h()}function h(){o.value={jobId:void 0,jobName:void 0,jobGroup:void 0,invokeTarget:void 0,cronExpression:void 0,misfirePolicy:1,concurrent:1,status:"0"},f.resetForm("jobRef")}function i(){d.value.pageNum=1,N()}function V(){f.resetForm("queryRef"),i()}function B(T){C.value=T.map(U=>U.jobId),O.value=T.length!=1,I.value=!T.length}function le(T){let U=T.status==="0"?"\u542F\u7528":"\u505C\u7528";f.$modal.confirm('\u786E\u8BA4\u8981"'+U+'""'+T.jobName+'"\u4EFB\u52A1\u5417?').then(function(){return Ye(T.jobId,T.status)}).then(()=>{f.$modal.msgSuccess(U+"\u6210\u529F")}).catch(function(){T.status=T.status==="0"?"1":"0"})}function oe(T){f.$modal.confirm('\u786E\u8BA4\u8981\u7ACB\u5373\u6267\u884C\u4E00\u6B21"'+T.jobName+'"\u4EFB\u52A1\u5417?').then(function(){return ze(T.jobId,T.jobGroup)}).then(()=>{f.$modal.msgSuccess("\u6267\u884C\u6210\u529F")}).catch(()=>{})}function ae(T){$e(T.jobId).then(U=>{o.value=U.data,P.value=!0})}function de(){s.value=o.value.cronExpression,_.value=!0}function we(T){o.value.cronExpression=T}function ie(T){const U=T.jobId||0;j.push("/monitor/job-log/index/"+U)}function se(){h(),u.value=!0,E.value="\u6DFB\u52A0\u4EFB\u52A1"}function ne(T){h();const U=T.jobId||C.value;$e(U).then(ve=>{o.value=ve.data,u.value=!0,E.value="\u4FEE\u6539\u4EFB\u52A1"})}function ue(){f.$refs.jobRef.validate(T=>{T&&(o.value.jobId!=null?Je(o.value).then(U=>{f.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),u.value=!1,N()}):He(o.value).then(U=>{f.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),u.value=!1,N()}))})}function X(T){const U=T.jobId||C.value;f.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u5B9A\u65F6\u4EFB\u52A1\u7F16\u53F7\u4E3A"'+U+'"\u7684\u6570\u636E\u9879?').then(function(){return Be(U)}).then(()=>{N(),f.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function Ce(){f.download("monitor/job/export",{...d.value},`job_${new Date().getTime()}.xlsx`)}return N(),(T,U)=>{const ve=x("el-input"),q=x("el-form-item"),xe=x("el-option"),Ne=x("el-select"),H=x("el-button"),he=x("el-form"),W=x("el-col"),_e=x("right-toolbar"),ce=x("el-row"),me=x("el-table-column"),te=x("dict-tag"),be=x("el-switch"),G=x("el-tooltip"),ke=x("el-table"),S=x("pagination"),Z=x("question-filled"),Y=x("el-icon"),Ue=x("el-radio-button"),ye=x("el-radio-group"),De=x("el-radio"),Ve=x("el-dialog"),pe=Ae("hasPermi"),Te=Ae("loading");return b(),A("div",Ol,[re(e(he,{model:l(d),ref:"queryRef",inline:!0},{default:a(()=>[e(q,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"jobName"},{default:a(()=>[e(ve,{modelValue:l(d).jobName,"onUpdate:modelValue":U[0]||(U[0]=w=>l(d).jobName=w),placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0",clearable:"",style:{width:"200px"},onKeyup:qe(i,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(q,{label:"\u4EFB\u52A1\u7EC4\u540D",prop:"jobGroup"},{default:a(()=>[e(Ne,{modelValue:l(d).jobGroup,"onUpdate:modelValue":U[1]||(U[1]=w=>l(d).jobGroup=w),placeholder:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7EC4\u540D",clearable:"",style:{width:"200px"}},{default:a(()=>[(b(!0),A(K,null,Q(l(n),w=>(b(),$(xe,{key:w.value,label:w.label,value:w.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(q,{label:"\u4EFB\u52A1\u72B6\u6001",prop:"status"},{default:a(()=>[e(Ne,{modelValue:l(d).status,"onUpdate:modelValue":U[2]||(U[2]=w=>l(d).status=w),placeholder:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u72B6\u6001",clearable:"",style:{width:"200px"}},{default:a(()=>[(b(!0),A(K,null,Q(l(r),w=>(b(),$(xe,{key:w.value,label:w.label,value:w.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(q,null,{default:a(()=>[e(H,{type:"primary",icon:"Search",onClick:i},{default:a(()=>[c("\u641C\u7D22")]),_:1}),e(H,{icon:"Refresh",onClick:V},{default:a(()=>[c("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[Oe,l(v)]]),e(ce,{gutter:10,class:"mb8"},{default:a(()=>[e(W,{span:1.5},{default:a(()=>[re((b(),$(H,{type:"primary",plain:"",icon:"Plus",onClick:se},{default:a(()=>[c("\u65B0\u589E")]),_:1})),[[pe,["monitor:job:add"]]])]),_:1},8,["span"]),e(W,{span:1.5},{default:a(()=>[re((b(),$(H,{type:"success",plain:"",icon:"Edit",disabled:l(O),onClick:ne},{default:a(()=>[c("\u4FEE\u6539")]),_:1},8,["disabled"])),[[pe,["monitor:job:edit"]]])]),_:1},8,["span"]),e(W,{span:1.5},{default:a(()=>[re((b(),$(H,{type:"danger",plain:"",icon:"Delete",disabled:l(I),onClick:X},{default:a(()=>[c("\u5220\u9664")]),_:1},8,["disabled"])),[[pe,["monitor:job:remove"]]])]),_:1},8,["span"]),e(W,{span:1.5},{default:a(()=>[re((b(),$(H,{type:"warning",plain:"",icon:"Download",onClick:Ce},{default:a(()=>[c("\u5BFC\u51FA")]),_:1})),[[pe,["monitor:job:export"]]])]),_:1},8,["span"]),e(W,{span:1.5},{default:a(()=>[re((b(),$(H,{type:"info",plain:"",icon:"Operation",onClick:ie},{default:a(()=>[c("\u65E5\u5FD7")]),_:1})),[[pe,["monitor:job:query"]]])]),_:1},8,["span"]),e(_e,{showSearch:l(v),"onUpdate:showSearch":U[3]||(U[3]=w=>k(v)?v.value=w:null),onQueryTable:N},null,8,["showSearch"])]),_:1}),re((b(),$(ke,{data:l(p),onSelectionChange:B},{default:a(()=>[e(me,{type:"selection",width:"55",align:"center"}),e(me,{label:"\u4EFB\u52A1\u7F16\u53F7",width:"100",align:"center",prop:"jobId"}),e(me,{label:"\u4EFB\u52A1\u540D\u79F0",align:"center",prop:"jobName","show-overflow-tooltip":!0}),e(me,{label:"\u4EFB\u52A1\u7EC4\u540D",align:"center",prop:"jobGroup"},{default:a(w=>[e(te,{options:l(n),value:w.row.jobGroup},null,8,["options","value"])]),_:1}),e(me,{label:"\u8C03\u7528\u76EE\u6807\u5B57\u7B26\u4E32",align:"center",prop:"invokeTarget","show-overflow-tooltip":!0}),e(me,{label:"cron\u6267\u884C\u8868\u8FBE\u5F0F",align:"center",prop:"cronExpression","show-overflow-tooltip":!0}),e(me,{label:"\u72B6\u6001",align:"center"},{default:a(w=>[e(be,{modelValue:w.row.status,"onUpdate:modelValue":je=>w.row.status=je,"active-value":"0","inactive-value":"1",onChange:je=>le(w.row)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(me,{label:"\u64CD\u4F5C",align:"center",width:"200","class-name":"small-padding fixed-width"},{default:a(w=>[e(G,{content:"\u4FEE\u6539",placement:"top"},{default:a(()=>[re(e(H,{link:"",type:"primary",icon:"Edit",onClick:je=>ne(w.row)},null,8,["onClick"]),[[pe,["monitor:job:edit"]]])]),_:2},1024),e(G,{content:"\u5220\u9664",placement:"top"},{default:a(()=>[re(e(H,{link:"",type:"primary",icon:"Delete",onClick:je=>X(w.row)},null,8,["onClick"]),[[pe,["monitor:job:remove"]]])]),_:2},1024),e(G,{content:"\u6267\u884C\u4E00\u6B21",placement:"top"},{default:a(()=>[re(e(H,{link:"",type:"primary",icon:"CaretRight",onClick:je=>oe(w.row)},null,8,["onClick"]),[[pe,["monitor:job:changeStatus"]]])]),_:2},1024),e(G,{content:"\u4EFB\u52A1\u8BE6\u7EC6",placement:"top"},{default:a(()=>[re(e(H,{link:"",type:"primary",icon:"View",onClick:je=>ae(w.row)},null,8,["onClick"]),[[pe,["monitor:job:query"]]])]),_:2},1024),e(G,{content:"\u8C03\u5EA6\u65E5\u5FD7",placement:"top"},{default:a(()=>[re(e(H,{link:"",type:"primary",icon:"Operation",onClick:je=>ie(w.row)},null,8,["onClick"]),[[pe,["monitor:job:query"]]])]),_:2},1024)]),_:1})]),_:1},8,["data"])),[[Te,l(g)]]),re(e(S,{total:l(L),page:l(d).pageNum,"onUpdate:page":U[4]||(U[4]=w=>l(d).pageNum=w),limit:l(d).pageSize,"onUpdate:limit":U[5]||(U[5]=w=>l(d).pageSize=w),onPagination:N},null,8,["total","page","limit"]),[[Oe,l(L)>0]]),fe(" \u6DFB\u52A0\u6216\u4FEE\u6539\u5B9A\u65F6\u4EFB\u52A1\u5BF9\u8BDD\u6846 "),e(Ve,{title:l(E),modelValue:l(u),"onUpdate:modelValue":U[13]||(U[13]=w=>k(u)?u.value=w:null),width:"800px","append-to-body":""},{footer:a(()=>[R("div",Tl,[e(H,{type:"primary",onClick:ue},{default:a(()=>[c("\u786E \u5B9A")]),_:1}),e(H,{onClick:t},{default:a(()=>[c("\u53D6 \u6D88")]),_:1})])]),default:a(()=>[e(he,{ref:"jobRef",model:l(o),rules:l(D),"label-width":"120px"},{default:a(()=>[e(ce,null,{default:a(()=>[e(W,{span:12},{default:a(()=>[e(q,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"jobName"},{default:a(()=>[e(ve,{modelValue:l(o).jobName,"onUpdate:modelValue":U[6]||(U[6]=w=>l(o).jobName=w),placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"\u4EFB\u52A1\u5206\u7EC4",prop:"jobGroup"},{default:a(()=>[e(Ne,{modelValue:l(o).jobGroup,"onUpdate:modelValue":U[7]||(U[7]=w=>l(o).jobGroup=w),placeholder:"\u8BF7\u9009\u62E9"},{default:a(()=>[(b(!0),A(K,null,Q(l(n),w=>(b(),$(xe,{key:w.value,label:w.label,value:w.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(W,{span:24},{default:a(()=>[e(q,{prop:"invokeTarget"},{label:a(()=>[R("span",null,[c(" \u8C03\u7528\u65B9\u6CD5 "),e(G,{placement:"top"},{content:a(()=>[$l]),default:a(()=>[e(Y,null,{default:a(()=>[e(Z)]),_:1})]),_:1})])]),default:a(()=>[e(ve,{modelValue:l(o).invokeTarget,"onUpdate:modelValue":U[8]||(U[8]=w=>l(o).invokeTarget=w),placeholder:"\u8BF7\u8F93\u5165\u8C03\u7528\u76EE\u6807\u5B57\u7B26\u4E32"},null,8,["modelValue"])]),_:1})]),_:1}),e(W,{span:24},{default:a(()=>[e(q,{label:"cron\u8868\u8FBE\u5F0F",prop:"cronExpression"},{default:a(()=>[e(ve,{modelValue:l(o).cronExpression,"onUpdate:modelValue":U[9]||(U[9]=w=>l(o).cronExpression=w),placeholder:"\u8BF7\u8F93\u5165cron\u6267\u884C\u8868\u8FBE\u5F0F"},{append:a(()=>[e(H,{type:"primary",onClick:de},{default:a(()=>[c(" \u751F\u6210\u8868\u8FBE\u5F0F "),Il]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(W,{span:24},{default:a(()=>[e(q,{label:"\u6267\u884C\u7B56\u7565",prop:"misfirePolicy"},{default:a(()=>[e(ye,{modelValue:l(o).misfirePolicy,"onUpdate:modelValue":U[10]||(U[10]=w=>l(o).misfirePolicy=w)},{default:a(()=>[e(Ue,{label:"1"},{default:a(()=>[c("\u7ACB\u5373\u6267\u884C")]),_:1}),e(Ue,{label:"2"},{default:a(()=>[c("\u6267\u884C\u4E00\u6B21")]),_:1}),e(Ue,{label:"3"},{default:a(()=>[c("\u653E\u5F03\u6267\u884C")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"\u662F\u5426\u5E76\u53D1",prop:"concurrent"},{default:a(()=>[e(ye,{modelValue:l(o).concurrent,"onUpdate:modelValue":U[11]||(U[11]=w=>l(o).concurrent=w)},{default:a(()=>[e(Ue,{label:"0"},{default:a(()=>[c("\u5141\u8BB8")]),_:1}),e(Ue,{label:"1"},{default:a(()=>[c("\u7981\u6B62")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"\u72B6\u6001"},{default:a(()=>[e(ye,{modelValue:l(o).status,"onUpdate:modelValue":U[12]||(U[12]=w=>l(o).status=w)},{default:a(()=>[(b(!0),A(K,null,Q(l(r),w=>(b(),$(De,{key:w.value,label:w.value},{default:a(()=>[c(F(w.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"]),e(Ve,{title:"Cron\u8868\u8FBE\u5F0F\u751F\u6210\u5668",modelValue:l(_),"onUpdate:modelValue":U[15]||(U[15]=w=>k(_)?_.value=w:null),"append-to-body":"","destroy-on-close":""},{default:a(()=>[e(l(Al),{ref:"crontabRef",onHide:U[14]||(U[14]=w=>_.value=!1),onFill:we,expression:l(s)},null,8,["expression"])]),_:1},8,["modelValue"]),fe(" \u4EFB\u52A1\u65E5\u5FD7\u8BE6\u7EC6 "),e(Ve,{title:"\u4EFB\u52A1\u8BE6\u7EC6",modelValue:l(P),"onUpdate:modelValue":U[17]||(U[17]=w=>k(P)?P.value=w:null),width:"700px","append-to-body":""},{footer:a(()=>[R("div",Gl,[e(H,{onClick:U[16]||(U[16]=w=>P.value=!1)},{default:a(()=>[c("\u5173 \u95ED")]),_:1})])]),default:a(()=>[e(he,{model:l(o),"label-width":"120px"},{default:a(()=>[e(ce,null,{default:a(()=>[e(W,{span:12},{default:a(()=>[e(q,{label:"\u4EFB\u52A1\u7F16\u53F7\uFF1A"},{default:a(()=>[c(F(l(o).jobId),1)]),_:1}),e(q,{label:"\u4EFB\u52A1\u540D\u79F0\uFF1A"},{default:a(()=>[c(F(l(o).jobName),1)]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"\u4EFB\u52A1\u5206\u7EC4\uFF1A"},{default:a(()=>[c(F(M(l(o))),1)]),_:1}),e(q,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:a(()=>[c(F(l(o).createTime),1)]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"cron\u8868\u8FBE\u5F0F\uFF1A"},{default:a(()=>[c(F(l(o).cronExpression),1)]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"\u4E0B\u6B21\u6267\u884C\u65F6\u95F4\uFF1A"},{default:a(()=>[c(F(T.parseTime(l(o).nextValidTime)),1)]),_:1})]),_:1}),e(W,{span:24},{default:a(()=>[e(q,{label:"\u8C03\u7528\u76EE\u6807\u65B9\u6CD5\uFF1A"},{default:a(()=>[c(F(l(o).invokeTarget),1)]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"\u4EFB\u52A1\u72B6\u6001\uFF1A"},{default:a(()=>[l(o).status==0?(b(),A("div",Rl,"\u6B63\u5E38")):l(o).status==1?(b(),A("div",Ll,"\u5931\u8D25")):fe("v-if",!0)]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"\u662F\u5426\u5E76\u53D1\uFF1A"},{default:a(()=>[l(o).concurrent==0?(b(),A("div",Ml,"\u5141\u8BB8")):l(o).concurrent==1?(b(),A("div",Fl,"\u7981\u6B62")):fe("v-if",!0)]),_:1})]),_:1}),e(W,{span:12},{default:a(()=>[e(q,{label:"\u6267\u884C\u7B56\u7565\uFF1A"},{default:a(()=>[l(o).misfirePolicy==0?(b(),A("div",Pl,"\u9ED8\u8BA4\u7B56\u7565")):l(o).misfirePolicy==1?(b(),A("div",Wl,"\u7ACB\u5373\u6267\u884C")):l(o).misfirePolicy==2?(b(),A("div",ql,"\u6267\u884C\u4E00\u6B21")):l(o).misfirePolicy==3?(b(),A("div",El,"\u653E\u5F03\u6267\u884C")):fe("v-if",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),Bl=ge(zl,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/monitor/job/index.vue"]]);export{Bl as default}; diff --git a/dist/assets/index.a9256ae6.js.gz b/dist/assets/index.a9256ae6.js.gz new file mode 100644 index 0000000..6774d86 Binary files /dev/null and b/dist/assets/index.a9256ae6.js.gz differ diff --git a/dist/assets/index.aa16305d.js b/dist/assets/index.aa16305d.js deleted file mode 100644 index 7c2861a..0000000 --- a/dist/assets/index.aa16305d.js +++ /dev/null @@ -1,12 +0,0 @@ -import{_ as Xe,r as g,B as R,C as Ze,D as Fe,F as Y,d as h,o as L,c as z,l,m as w,e as b,w as k,g as N,J as fe,K as me,f as V,k as ge,x as I,y as We,p as Re,q as Ne}from"./index.5f349928.js";import K from"./downloads.e955445d.js";import{h as ye,g as Ve,i as Oe,a as Ge,_ as Qe,b as qe,c as Ue,d as je,e as Je,f as $e}from"./linesGL.badda9a7.js";import{i as H,L as be}from"./index.c9f5bd8b.js";import{T as Ye}from"./TimeLine.ca858622.js";import{u as ve}from"./useEcharts.f096c4b4.js";const C=E=>(Re("data-v-7527f9ca"),E=E(),Ne(),E),He={class:"center"},Ke=C(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),eo={class:"leftWra"},oo={class:"leftTop"},ao={class:"title"},to=C(()=>l("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30",-1)),ro=C(()=>l("img",{src:K,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),lo=C(()=>l("div",{class:"production"},[l("div",{class:"leftProduction"},[l("p",null,[l("span",null,"900"),w(" \u5428 "),l("br"),w(" \u6700\u5C0F\u503C ")])]),l("div",{class:"rightProduction"},[l("p",null,[l("span",null,"960"),w(" \u5428 "),l("br"),w(" \u6700\u5C0F\u503C ")])])],-1)),so={class:"rightWra"},io={class:"rightTop"},no={class:"title"},co=C(()=>l("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u9AD8\u6807\u51C6\u519C\u7530",-1)),uo=C(()=>l("img",{src:K,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),po={class:"rightbottom"},fo={class:"title"},mo=C(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),go=C(()=>l("img",{src:K,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),yo={class:"bottom_center"},bo=We('',1),vo={id:"popup"},ho={id:"pop"},_o={key:0},xo=C(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),wo={class:"mt-4"},Co={__name:"index",setup(E){let n=g(null);const ee=g(null),oe=g(null);g(null);const ae=g(null),S=g("370211");g(null);let _=R({arr:[],brr:[],crr:[]});R({arr:[]});const te=g({name:"",value:""});g([]);const re=g([]),P=g(!1);let O=g(!0),G=g(!0);g("{x:765,y:191}");let le=R({arr:[{name:"\u5C0F\u9EA6",value:101,itemStyle:{opacity:.5,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:156,itemStyle:{opacity:.5,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:156,itemStyle:{opacity:.5,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:156,itemStyle:{opacity:.5,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u84DD\u8393",value:56,itemStyle:{opacity:.5,color:"rgba(72, 102, 211, 0.9)"},label:{show:!0}},{name:"\u8336\u53F6",value:56,itemStyle:{opacity:.5,color:"rgba(26, 255, 140, 1)"},label:{show:!0}}]});Ze(()=>_.arr,e=>{console.log("val:",e)});var Q={title:[]};let q={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]};Fe(()=>{ie(),Me(),ne(),Le(),_e(),ue(),Ae(),Z(),we()});const he={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 _e(){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({...he})}),n.cesiumWidget.creditContainer.style.display="none",J("shuzisannong:huangdaoqu_town","tl"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Ce(),Pe()}function U(e,o,t){e.forEach(a=>{let s=[];a[0].forEach(r=>{s.push(r[0]),s.push(r[1])}),n.entities.add({name:o,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(s),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:t?Cesium.Color.fromCssColorString(t):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function xe(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 we(){Y({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),re.value=e.data.features}).catch(e=>{})}let y=g({label:[]}),B="";function Ce(){var e=new Cesium.ScreenSpaceEventHandler(n.canvas);e.setInputAction(function(o){var t=n.camera.getPickRay(o.position),a=n.scene.globe.pick(t,n.scene);if(a){let s=Cesium.Cartographic.fromCartesian(a);if(s){let r=new Cesium.Cartesian2,d=n.camera.positionCartographic.height,c=xe(d);const p=n.imageryLayers._layers,m=p.findIndex(u=>u._imageryProvider._layers&&u._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(m>-1){const u=p[m];let f=u._imageryProvider;if(f&&f.ready&&f._layers&&u.show===!0){r=f.tilingScheme.positionToTileXY(s,c,r);let i=f.pickFeatures(r.x,r.y,c,s.longitude,s.latitude);i&&i.then(T=>{if(T.length>0){let x=T[0];if(x.properties&&x.properties.XZDM)if(B!==x.properties.XZDM){B=x.properties.XZDM,S.value=B,ce();let A=x.data;n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(A.bbox[0],A.bbox[1],A.bbox[2],A.bbox[3]),duration:2}),M("townLine"),U(A.geometry&&A.geometry.coordinates,"townLine","yellow"),v(["village_CQL"]),se(`XZDM=${x.properties.XZDM}`,"village_CQL");let W=n.entities._entities._array;for(var D=W.length-1;D>=0;D--)if(W[D]._name&&W[D]._name==="point"+x.properties.XZDM){let Be=W[D]._info;y.value=Be,console.log(y.value,"------------------"),$(o.position),n.scene.postRender.addEventListener(pe)}M("villageLine"),X=""}else Se(p,r,c,s);else v(["village_CQL"]),F()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let X="";function Se(e,o,t,a){const s=e.findIndex(r=>r._imageryProvider._layers&&r._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(s>-1){const r=e[s];let d=r._imageryProvider;if(d&&d.ready&&d._layers&&r.show===!0){o=d.tilingScheme.positionToTileXY(a,t,o);let c=d.pickFeatures(o.x,o.y,t,a.longitude,a.latitude);c&&c.then(p=>{if(p.length>0){let m=p[0];if(m.properties&&m.properties.XZQDM&&X!==m.properties.XZQDM){X=m.properties.XZQDM;let u=m.data;if(M("villageLine"),U(u.geometry&&u.geometry.coordinates,"villageLine","yellow"),m.properties.XZQDM==="370211104217"){const f=Cesium.Rectangle.fromDegrees(u.bbox[0],u.bbox[1],u.bbox[2],u.bbox[3]),i=Cesium.Rectangle.center(f);let T=Cesium.Math.toDegrees(i.longitude),D=Cesium.Math.toDegrees(i.latitude),x={lon:T,lat:D,...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}]};y.value=x}}}})}}}function se(e,o){let t=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:e}});t.customName=o,n.imageryLayers.addImageryProvider(t)}function v(e,o){if(n){const t=n.imageryLayers._layers;for(let a=t.length-1;a>=0;a--)e.forEach(s=>{t[a]._imageryProvider&&t[a]._imageryProvider.customName&&(o?t[a]._imageryProvider.customName.indexOf(s)>-1&&n.imageryLayers.remove(t[a]):t[a]._imageryProvider.customName===s&&n.imageryLayers.remove(t[a]))})}}function M(e){if(n){let t=n.entities._entities._array;for(var o=t.length-1;o>=0;o--)t[o]._name&&t[o]._name===e&&n.entities.remove(t[o])}}function ke(){if(O.value=!O.value,O.value){let e=document.querySelector(".leftWra");e.style.transform="translate(0,0)"}else{let e=document.querySelector(".leftWra");e.style.transform="translate(-107%,0)"}}function De(){if(G.value=!G.value,G.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 ie=()=>{ye({time:"2023-04-25",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(e=>{console.log(e)})},ne=()=>{Ve().then(e=>{_.arr=e.features,_.arr.unshift({bbox:[119.5091,35.5671,120.3285,36.1455],properties:{XZDM:"370211",XZMC:"\u5168\u90E8"}});let o=[...e.features],t=[];o.splice(0,1),o.forEach(a=>{t.push(a.properties.XZMC)}),Q.title=[...Object.values(t)],Z()})},Le=()=>{Oe().then(e=>{_.brr=e.features})},Me=()=>{Ge().then(e=>{_.crr=e.features,Q.title.forEach((o,t)=>{let a=e.features.map(s=>{if(o===s.properties.town)return s.properties});Object.keys(q).forEach(s=>{const r=a.findIndex(d=>d&&d.crop===s);r>-1?q[s].push(a[r].Shape_Area):q[s].push(null)})}),Z()})},ce=()=>{ie(),le.arr=[{name:"\u5C0F\u9EA6",value:20,itemStyle:{opacity:.5,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:10,itemStyle:{opacity:.5,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:13,itemStyle:{opacity:.5,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:18,itemStyle:{opacity:.5,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u8336\u53F6",value:16,itemStyle:{opacity:.5,color:"rgba(26, 255, 140, 1)"},label:{show:!0}}],S.value=="370211"&&(v(["village_CQL"]),v(["aaa"]),ne(),le=R({arr:[{name:"\u5C0F\u9EA6",value:101,itemStyle:{opacity:.5,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:156,itemStyle:{opacity:.5,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:156,itemStyle:{opacity:.5,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:156,itemStyle:{opacity:.5,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u84DD\u8393",value:56,itemStyle:{opacity:.5,color:"rgba(72, 102, 211, 0.9)"},label:{show:!0}},{name:"\u8336\u53F6",value:56,itemStyle:{opacity:.5,color:"rgba(26, 255, 140, 1)"},label:{show:!0}}]}),F());let e=[..._.arr];console.log("arr:",e),e.forEach(a=>{a.properties.XZDM==S.value&&n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),duration:2});let s=[..._.brr],r=[];s.forEach(d=>{d.properties.XZDM==S.value&&r.push(d.properties.XZQMC)}),Q.title=[...Object.values(r)]}),Z(),ue();const t=[..._.arr].find(a=>a.properties.XZDM===S.value);t&&(M("townLine"),U(t.geometry.coordinates,"townLine","yellow")),v(["aaa"]),se(`XZDM=${S.value}`,"aaa"),ye({time:"2023-04-26",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(a=>{let s=[];a.data.map((r,d)=>{r.region==t.properties.XZMC&&s.push({crop:r.type,Shape_Area:r.area})}),y.value={label:s},console.log(),console.log(s),$({x:642,y:312})})},j=e=>{Te(e)},Te=e=>{let o=document.createElement("a");o.style.display="none",o.href=e,document.body.appendChild(o),o.click(),document.body.removeChild(o)};function ue(){const e=H(ee.value);for(var o=[2,8,5,8,10,12,11],t=[1,7,2,7,9,11,10],a={chart0:{xcategory:["2017\u5E74","2018\u5E74","2019\u5E74","2020\u5E74","2021\u5E74","2022\u5E74","2023\u5E74"],low:o,lowLine:[]}},s={chart0:{xcategory:["2017\u5E74","2018\u5E74","2019\u5E74","2020\u5E74","2021\u5E74","2022\u5E74","2023\u5E74"],low:t,lowLine:[]}},r=[{coords:[]}],d=[{coords:[]}],c=0;c";return m.forEach(function(f){u+='',parseFloat(f.data)>=50?u+=f.seriesName+': '+f.data+"\u5428
":parseFloat(f.data)<50&&(u+=f.seriesName+': '+f.data+"\u5428
")}),u}},legend:{data:["\u6700\u5927\u503C","\u6700\u5C0F\u503C"],itemWidth:20,itemHeight:12.5,icon:"rect",textStyle:{fontSize:12,color:"rgb(0,253,255,0.6)"},top:"5%",right:"5%"},grid:{bottom:50,left:70,right:50},xAxis:{axisLine:{show:!0,lineStyle:{color:"#15faff"}},axisTick:{show:!1},axisLabel:{show:!0},data:["2017\u5E74","2018\u5E74","2019\u5E74","2020\u5E74","2021\u5E74","2022\u5E74","2023\u5E74"]},yAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed",color:"#4b4d64"}},axisLabel:{formatter:"{value}",textStyle:{color:"#ffffff"}}},series:[{name:"\u6700\u5927\u503C",type:"line",symbol:"none",symbolSize:10,areaStyle:{normal:{color:new be(0,0,0,1,[{offset:0,color:"rgba(255, 204,1, .9)"},{offset:.8,color:"rgba(6, 8, 41,.1)"}],!1),shadowColor:"rgba(0, 0, 0, 0.1)",shadowBlur:10}},itemStyle:{normal:{color:"#ffcb00"}},data:o},{name:"\u6700\u5927\u503C",type:"lines",coordinateSystem:"cartesian2d",zlevel:1,polyline:!0,smooth:!0,symbol:"circle",effect:{show:!0,trailLength:.4,symbol:"circle",period:8,symbolSize:8},lineStyle:{normal:{color:"#ffcb00",width:0,opacity:0,curveness:0}},data:r},{name:"\u6700\u5C0F\u503C",type:"line",symbol:"none",symbolSize:10,areaStyle:{normal:{color:new be(0,0,0,1,[{offset:0,color:"rgba(21, 250, 255,.9)"},{offset:.8,color:"rgba(6, 8, 41,.1)"}],!1),shadowColor:"rgba(0, 0, 0, 0.1)",shadowBlur:10}},itemStyle:{normal:{color:"#15faff"}},data:t},{name:"\u6700\u5C0F\u503C",type:"lines",coordinateSystem:"cartesian2d",zlevel:1,smooth:!0,polyline:!0,symbol:"circle",effect:{show:!0,trailLength:.4,symbol:"circle",period:8,symbolSize:8},lineStyle:{normal:{color:"#15faff",width:0,opacity:0,curveness:0}},data:d}]};p&&e.setOption(p),window.addEventListener("resize",function(){e.resize()})}function Ae(){const e=H(oe.value);let t={tooltip:{trigger:"axis",axisPointer:{type:"shadow",textStyle:{color:"#fff"}}},calculable:!0,legend:{top:"7%",right:"5%",icon:"rect",textStyle:{color:"#fff"}},grid:{left:"15%",bottom:"16%",right:"2%"},xAxis:[{type:"category",axisLine:{lineStyle:{color:"rgba(255,255,255,.5)"}},splitLine:{show:!1},axisTick:{show:!1},splitArea:{show:!1},axisLabel:{interval:0,color:"rgba(255,255,255,0.7)",fontSize:14},data:["\u533A\u57DF\u4E00","\u533A\u57DF\u4E8C","\u533A\u57DF\u4E09","\u533A\u57DF\u56DB","\u533A\u57DF\u4E94","\u533A\u57DF\u516D"]}],yAxis:[{type:"value",name:"\u4EA7\u91CF(\u5428)",nameTextStyle:{color:"rgba(255,255,255,0.8)",fontSize:14,padding:[0,60,0,10]},splitLine:{show:!1},axisLine:{show:!1},axisTick:{show:!1},axisLabel:{interval:0,color:"rgba(255,255,255,0.5)",fontSize:14},splitArea:{show:!1}}],series:[{name:"\u6700\u5927\u503C",type:"bar",barWidth:14,barGap:"85%",label:{show:!1,position:"top",fontSize:14,color:"rgba(255, 255, 255, 1)"},itemStyle:{normal:{barBorderRadius:2,color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(242, 252, 252, 0.5)"},{offset:.5,color:"rgba(242, 252, 252, 0.3)"},{offset:1,color:"rgba(242, 252, 252, 0)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}},data:[709,1917,2455,2610,1719,1433]},{name:"\u6700\u5C0F\u503C",type:"bar",barWidth:14,barGap:"85%",label:{show:!1,position:"top",fontSize:14,color:"rgba(255, 255, 255, 1)"},itemStyle:{normal:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(143, 186, 243, 0.5)"},{offset:.5,color:"rgba(143, 186, 243, 0.3)"},{offset:1,color:"rgba(143, 186, 243, 0)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}},data:[300,500,700,400,600,1200]}]};e.on("click",function(a){console.log(a.name)}),e.on("click",a=>Ie(a)),t&&e.setOption(t,{notMerge:!0,grid:{bottom:20}}),ve(e,t)}function J(e,o){let t=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:e,parameters:{service:"WMS",format:"image/png",transparent:!0}});t.customName=o;let a=n.imageryLayers.addImageryProvider(t);o.indexOf("gbznt")>-1&&(n.imageryLayers.lowerToBottom(a),n.imageryLayers.raise(a))}function ze(){v(["gbznt"],!0),J("shuzisannong:huangdaoqu_town","tl"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),P.value=!1}function Ie(e){console.log("item:",e),v(["huangdaoqu_town"],!0),v(["tl"],!0);let o="shuzisannong:farmland",t=!1;const a=n.imageryLayers._layers;for(let r=a.length-1;r>=0;r--)a[r]&&a[r]._imageryProvider.customName&&a[r]._imageryProvider.customName===o+"gbznt"&&(t=!0);t||J(o,o+"gbznt"),re.value.forEach(r=>{console.log("it.properties.name:",r.properties.name),console.log("item.name:",e.name),r.properties.name===e.name&&(console.log("dingwei"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(r.bbox[0],r.bbox[1],r.bbox[2],r.bbox[3]),duration:2}))}),P.value=!0,y.value={label:[{crop:"\u5C0F\u9EA6",Shape_Area:"53000"},{crop:"\u5730\u74DC",Shape_Area:"50000"}]},console.log(y.label),$({x:642,y:312})}function Z(){const e=H(ae.value);ve(e,{tooltip:{trigger:"axis",axisPointer:{type:"shadow",textStyle:{color:"#fff"}}},calculable:!0,legend:{top:"7%",right:"5%",icon:"rect",textStyle:{color:"#fff"}},grid:{left:"15%",bottom:"16%",right:"2%"},xAxis:[{type:"category",axisLine:{lineStyle:{color:"rgba(255,255,255,.5)"}},splitLine:{show:!1},axisTick:{show:!1},splitArea:{show:!1},axisLabel:{interval:0,color:"rgba(255,255,255,0.7)",fontSize:14},data:["\u533A\u57DF\u4E00","\u533A\u57DF\u4E8C","\u533A\u57DF\u4E09","\u533A\u57DF\u56DB","\u533A\u57DF\u4E94","\u533A\u57DF\u516D"]}],yAxis:[{type:"value",name:"\u4EA7\u91CF(\u5428)",nameTextStyle:{color:"rgba(255,255,255,0.8)",fontSize:14,padding:[0,60,0,10]},splitLine:{show:!1},axisLine:{show:!1},axisTick:{show:!1},axisLabel:{interval:0,color:"rgba(255,255,255,0.5)",fontSize:14},splitArea:{show:!1}}],series:[{name:"\u6700\u5927\u503C",type:"bar",barWidth:14,barGap:"85%",label:{show:!1,position:"top",fontSize:14,color:"rgba(255, 255, 255, 1)"},itemStyle:{normal:{barBorderRadius:2,color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(4, 247, 227, 1)"},{offset:.8,color:"rgba(4, 247, 227, 0.5)"},{offset:1,color:"rgba(4, 247, 227, 0.0)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}},data:[709,1917,2455,2610,1719,1433]},{name:"\u6700\u5C0F\u503C",type:"bar",barWidth:14,barGap:"85%",label:{show:!1,position:"top",fontSize:14,color:"rgba(255, 255, 255, 1)"},itemStyle:{normal:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(33, 187, 251, 0.5)"},{offset:.5,color:"rgba(33, 187, 251, 0.3)"},{offset:1,color:"rgba(33, 187, 251, 0)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}},data:[300,500,700,400,600,1200]}]})}function Ee(){let e=de.value;console.log("fl:",e),Y({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(o=>{console.log("res1111:",o),o.data.features.forEach((a,s)=>{const r=Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),d=Cesium.Rectangle.center(r);let c=Cesium.Math.toDegrees(d.longitude),p=Cesium.Math.toDegrees(d.latitude);a.properties.XZDM==="370211011"?(c=120.0863,p=35.941):a.properties.XZDM==="370211003"&&(c=120.243682,p=35.97123201);const m=e[a.properties.XZMC];let u=[];m&&(u=m.map((f,i)=>f.properties)),n.entities.add({name:"point"+a.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(c,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:c,lat:p}})})}).catch(o=>{})}let de=g({});function Pe(){Y({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(e=>{let o=e.data.features,t={};o.forEach(a=>{let s=a.properties.town;t[s]?t[s].push(a):t[s]=[a]}),de.value=t,Ee()}).catch(e=>{})}function pe(){if(y.value&&y.value.lon&&y.value.lat){const o=Cesium.Cartesian3.fromDegrees(Number(y.value.lon),Number(y.value.lat),0);var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(n.scene,o);if(Cesium.defined(e)){const t=document.getElementById("pop");t.style.top=e.y-10+"px",t.style.left=e.x+10+"px"}}}function F(){B="",X="",v(["village_CQL"]),v(["aaa"]),M("villageLine"),M("townLine");const e=document.getElementById("pop");e.style.display="none",n.scene.postRender.removeEventListener(pe),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),v(["gbznt"],!0),P.value=!1}function $(e){console.log(e);const o=document.getElementById("pop");o.style.display="block",o.style.position="absolute",o.style.top=e.y-10+"px",o.style.left=e.x+10+"px",o.style.zIndex=99}return(e,o)=>{const t=h("ArrowRightBold"),a=h("el-icon"),s=h("el-option"),r=h("el-select"),d=h("ArrowLeftBold"),c=h("el-button"),p=h("el-checkbox"),m=h("el-checkbox-group"),u=h("el-collapse-item"),f=h("el-collapse");return L(),z("div",He,[Ke,l("div",eo,[l("div",oo,[l("div",ao,[to,l("p",{onClick:o[0]||(o[0]=i=>j("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[w(" \u4E0B\u8F7D \xA0 "),ro])]),lo,l("div",{ref_key:"areaDiv",ref:ee,class:"areaDiv"},null,512)]),l("div",{class:"leftFoldDiv",onClick:o[1]||(o[1]=i=>ke())},[b(a,null,{default:k(()=>[b(t)]),_:1})])]),l("div",so,[l("div",io,[l("div",no,[co,l("p",{onClick:o[2]||(o[2]=i=>j("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/81f3b011-7a5d-4a21-88aa-8ea51142e564_%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%87%BA.xlsx"))},[w(" \u4E0B\u8F7D \xA0 "),uo])]),l("div",{ref_key:"farmlandDiv",ref:oe,class:"farmlandDiv"},null,512),N(' ')]),l("div",po,[l("div",fo,[mo,l("p",{onClick:o[3]||(o[3]=i=>j("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/0c0ff4cf-151a-470e-856a-b0fce0fde997_%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%87%BA.xlsx"))},[w(" \u4E0B\u8F7D \xA0 "),go])]),b(r,{"popper-class":"select_city",onChange:o[4]||(o[4]=i=>ce(e.item)),modelValue:S.value,"onUpdate:modelValue":o[5]||(o[5]=i=>S.value=i),clearable:"",placeholder:"\u5168\u90E8"},{default:k(()=>[(L(!0),z(fe,null,me(V(_).arr,i=>(L(),ge(s,{key:i.properties.XZDM,label:i.properties.XZMC,value:i.properties.XZDM},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l("div",{ref_key:"ASdivisionDiv",ref:ae,class:"ASdivision"},null,512)]),l("div",{class:"rightFoldDiv",onClick:o[6]||(o[6]=i=>De())},[b(a,null,{default:k(()=>[b(d)]),_:1})])]),l("div",yo,[b(Ye)]),bo,l("div",vo,[l("div",null,I(te.value.name)+"\uFF1A",1),l("div",null,I(te.value.value)+"\u4EA9",1),l("div",{class:"cancel",onClick:F},"X")]),l("div",ho,[(L(!0),z(fe,null,me(V(y).label,(i,T)=>(L(),z("div",{key:T},[l("div",null,I(i.crop)+"\uFF1A",1),l("div",null,I((i.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),V(y).XZQMC?(L(),z("div",_o,[xo,l("div",null,I(V(y).XZQMC),1)])):N("v-if",!0),l("div",{class:"cancel",onClick:F},"X")]),P.value?(L(),ge(c,{key:0,class:"back_button",onClick:o[7]||(o[7]=i=>ze())},{default:k(()=>[w("\u8FD4\u56DE")]),_:1})):N("v-if",!0),b(f,{class:"legend",accordion:""},{default:k(()=>[b(u,{name:"1"},{title:k(()=>[w("\u56FE\u4F8B")]),default:k(()=>[l("div",wo,[b(m,{modelValue:e.checkList,"onUpdate:modelValue":o[13]||(o[13]=i=>e.checkList=i),onChange:e.change},{default:k(()=>[N(``),b(p,{style:{background:"rgba(255, 238, 204, 1)",border:"1px solid rgba(251, 171, 60, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":o[8]||(o[8]=i=>e.checked3=i),label:"0-200"},null,8,["modelValue"]),b(p,{style:{background:"rgba(255, 220, 153, 1)",border:"1px solid rgba(251, 219, 13, 1)",width:"100%"},modelValue:e.checked4,"onUpdate:modelValue":o[9]||(o[9]=i=>e.checked4=i),label:"200-400"},null,8,["modelValue"]),b(p,{style:{background:"rgba(255, 203, 102, 1)",border:"1px solid rgba(244, 218, 136, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":o[10]||(o[10]=i=>e.checked3=i),label:"400-600"},null,8,["modelValue"]),b(p,{style:{background:"rgba(255, 185, 51, 1)",border:"1px solid rgba(174, 83, 110, 1)",width:"100%"},modelValue:e.checked4,"onUpdate:modelValue":o[11]||(o[11]=i=>e.checked4=i),label:"600-800"},null,8,["modelValue"]),b(p,{style:{background:"rgba(255, 168, 0, 1)",border:"1px solid rgba(242, 177, 167, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":o[12]||(o[12]=i=>e.checked3=i),label:"800-1000"},null,8,["modelValue"])]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1})])}}},Ao=Xe(Co,[["__scopeId","data-v-7527f9ca"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/output/wheat/index.vue"]]);export{Ao as default}; diff --git a/dist/assets/index.aa16305d.js.gz b/dist/assets/index.aa16305d.js.gz deleted file mode 100644 index f73ad1e..0000000 Binary files a/dist/assets/index.aa16305d.js.gz and /dev/null differ diff --git a/dist/assets/index.ab52b78d.js b/dist/assets/index.ab52b78d.js deleted file mode 100644 index e37785d..0000000 --- a/dist/assets/index.ab52b78d.js +++ /dev/null @@ -1,13 +0,0 @@ -import{_ as De,r as m,B as K,C as Me,D as Le,F as Z,d as b,o as L,c as z,l,e as f,w as y,m as k,g as A,x as I,J as Ie,K as Pe,f as N,k as Te,y as re,p as Fe,q as Ee}from"./index.5f349928.js";import oe from"./downloads.e955445d.js";import{h as Oe,g as ze,i as Ae,a as Be,_ as Ve,b as We,c as Xe,d as Ze,e as Ne,f as Re}from"./linesGL.badda9a7.js";import{i as ee}from"./index.c9f5bd8b.js";import{u as te}from"./useEcharts.f096c4b4.js";const _=P=>(Fe("data-v-d061be2f"),P=P(),Ee(),P),Ge={class:"center"},Qe=_(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Ue={class:"rightWra"},qe={class:"rightTop"},Je=_(()=>l("div",{class:"title"},[l("span",null,"\u4F4D\u7F6E\u5B9A\u4F4D")],-1)),je=_(()=>l("div",{class:"depth"},[l("p",{class:"SelectedDiv"},"\u5730\u540D"),l("p",null,"\u884C\u653F\u533A"),l("p",null,"\u7ECF\u7EAC\u5EA6")],-1)),Ye={class:"seach_button"},$e={class:"rightbottom"},He=re(' \u4FE1\u606F\u7EDF\u8BA1',2),Ke={class:"chart_div"},et={class:"chart_div_title"},tt=_(()=>l("span",null,"\u57FA\u672C\u519C\u7530\u9762\u79EF\u53CA\u5360\u6BD4",-1)),rt=_(()=>l("img",{src:oe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ot={class:"chart_div"},at={class:"chart_div_title"},lt=_(()=>l("span",null,"\u4E24\u533A\u5212\u5B9A\u9762\u79EF\u53CA\u5360\u6BD4",-1)),st=_(()=>l("img",{src:oe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),nt=re('\u4FE1\u606F\u603B\u89C8\u533A\u5212\u9EC4\u5C9B\u533A\u57FA\u672C\u519C\u753012364\u4EA9',1),it={id:"popup"},dt={id:"pop"},ct={key:0},ut=_(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),pt={class:"mt-4"},mt={__name:"index",setup(P){let n=m(null);const ae=m("370211");m(null);let D=K({arr:[],brr:[],crr:[]});K({arr:[]});const R=m({name:"",value:""});m([]);const le=m([]),B=m(!1);m(!0);let V=m(!0);const G=m(""),Q=m("null"),U=m("null");Me(()=>D.arr,e=>{console.log("val:",e)});var q={title:[]};let W={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]};Le(()=>{fe(),he(),ge(),ve(),ne(),de(),ye(),_e()});const se={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 ne(){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({...se})}),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}),ce(),xe()}function J(e,t,r){e.forEach(o=>{let s=[];o[0].forEach(d=>{s.push(d[0]),s.push(d[1])}),n.entities.add({name:t,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(s),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:r?Cesium.Color.fromCssColorString(r):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function ie(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 de(){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 g=m({label:[]}),T="";function ce(){var e=new Cesium.ScreenSpaceEventHandler(n.canvas);e.setInputAction(function(t){var r=n.camera.getPickRay(t.position),o=n.scene.globe.pick(r,n.scene);if(o){let s=Cesium.Cartographic.fromCartesian(o);if(s){let d=new Cesium.Cartesian2,c=n.camera.positionCartographic.height,p=ie(c);const u=n.imageryLayers._layers,i=u.findIndex(a=>a._imageryProvider._layers&&a._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(i>-1){const a=u[i];let v=a._imageryProvider;if(v&&v.ready&&v._layers&&a.show===!0){d=v.tilingScheme.positionToTileXY(s,p,d);let x=v.pickFeatures(d.x,d.y,p,s.longitude,s.latitude);x&&x.then(E=>{if(E.length>0){let h=E[0];if(h.properties&&h.properties.XZDM)if(T!==h.properties.XZDM){T=h.properties.XZDM,ae.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"),w(["village_CQL"]),pe(`XZDM=${h.properties.XZDM}`,"village_CQL");let O=n.entities._entities._array;for(var C=O.length-1;C>=0;C--)if(O[C]._name&&O[C]._name==="point"+h.properties.XZDM){let ke=O[C]._info;g.value=ke,console.log(g.value,"------------------"),Se(t.position),n.scene.postRender.addEventListener(H)}M("villageLine"),F=""}else ue(u,d,p,s);else w(["village_CQL"]),X()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let F="";function ue(e,t,r,o){const s=e.findIndex(d=>d._imageryProvider._layers&&d._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(s>-1){const d=e[s];let c=d._imageryProvider;if(c&&c.ready&&c._layers&&d.show===!0){t=c.tilingScheme.positionToTileXY(o,r,t);let p=c.pickFeatures(t.x,t.y,r,o.longitude,o.latitude);p&&p.then(u=>{if(u.length>0){let i=u[0];if(i.properties&&i.properties.XZQDM&&F!==i.properties.XZQDM){F=i.properties.XZQDM;let a=i.data;if(M("villageLine"),J(a.geometry&&a.geometry.coordinates,"villageLine","yellow"),i.properties.XZQDM==="370211104217"){const v=Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),x=Cesium.Rectangle.center(v);let E=Cesium.Math.toDegrees(x.longitude),C=Cesium.Math.toDegrees(x.latitude),h={lon:E,lat:C,...a.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}]};g.value=h}}}})}}}function pe(e,t){let r=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/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 w(e,t){if(n){const r=n.imageryLayers._layers;for(let o=r.length-1;o>=0;o--)e.forEach(s=>{r[o]._imageryProvider&&r[o]._imageryProvider.customName&&(t?r[o]._imageryProvider.customName.indexOf(s)>-1&&n.imageryLayers.remove(r[o]):r[o]._imageryProvider.customName===s&&n.imageryLayers.remove(r[o]))})}}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 me(){if(V.value=!V.value,V.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 fe=()=>{Oe({time:"2023-04-25",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(e=>{console.log(e)})},ge=()=>{ze().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(o=>{r.push(o.properties.XZMC)}),q.title=[...Object.values(r)]})},ve=()=>{Ae().then(e=>{D.brr=e.features})},he=()=>{Be().then(e=>{D.crr=e.features,q.title.forEach((t,r)=>{let o=e.features.map(s=>{if(t===s.properties.town)return s.properties});Object.keys(W).forEach(s=>{const d=o.findIndex(c=>c&&c.crop===s);d>-1?W[s].push(o[d].Shape_Area):W[s].push(null)})})})},j=e=>{be(e)},be=e=>{let t=document.createElement("a");t.style.display="none",t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)};function ye(){const e=ee(Q.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)"}}],s=1*r.reduce((i,a)=>i+a.value,0)/100,d=[],c={name:"",value:s,itemStyle:{color:"transparent"}};let p=0;r.forEach(i=>{p+=i.value});for(let i=0;i{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 o=n.imageryLayers.addImageryProvider(r);t.indexOf("gbznt")>-1&&(n.imageryLayers.lowerToBottom(o),n.imageryLayers.raise(o))}function Ce(){w(["gbznt"],!0),Y("shuzisannong:huangdaoqu_town","tl"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),B.value=!1}function we(){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((o,s)=>{const d=Cesium.Rectangle.fromDegrees(o.bbox[0],o.bbox[1],o.bbox[2],o.bbox[3]),c=Cesium.Rectangle.center(d);let p=Cesium.Math.toDegrees(c.longitude),u=Cesium.Math.toDegrees(c.latitude);o.properties.XZDM==="370211011"?(p=120.0863,u=35.941):o.properties.XZDM==="370211003"&&(p=120.243682,u=35.97123201);const i=e[o.properties.XZMC];let a=[];i&&(a=i.map((v,x)=>v.properties)),n.entities.add({name:"point"+o.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(p,u),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:a,...o.properties,lon:p,lat:u}})})}).catch(t=>{})}let $=m({});function xe(){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(o=>{let s=o.properties.town;r[s]?r[s].push(o):r[s]=[o]}),$.value=r,we()}).catch(e=>{})}function H(){if(g.value&&g.value.lon&&g.value.lat){const t=Cesium.Cartesian3.fromDegrees(Number(g.value.lon),Number(g.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 X(){T="",F="",w(["village_CQL"]),w(["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}),w(["gbznt"],!0),B.value=!1}function Se(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"),o=b("el-button"),s=b("ArrowLeftBold"),d=b("el-icon"),c=b("el-checkbox"),p=b("el-checkbox-group"),u=b("el-collapse-item"),i=b("el-collapse");return L(),z("div",Ge,[Qe,l("div",Ue,[l("div",qe,[Je,je,f(r,{class:"seach_input",modelValue:G.value,"onUpdate:modelValue":t[0]||(t[0]=a=>G.value=a),placeholder:"\u8BF7\u8F93\u5165\u5730\u540D",clearable:""},null,8,["modelValue"]),l("div",Ye,[f(o,{class:"seach"},{default:y(()=>[k("\u67E5\u8BE2")]),_:1}),f(o,{class:"resetting"},{default:y(()=>[k("\u91CD\u7F6E")]),_:1})]),A(' ')]),l("div",$e,[He,l("div",Ke,[l("div",et,[tt,l("p",{onClick:t[1]||(t[1]=a=>j("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[k(" \u4E0B\u8F7D \xA0 "),rt])]),l("div",{ref_key:"Farmland_area",ref:Q,class:"Farmland_area"},null,512)]),l("div",ot,[l("div",at,[lt,l("p",{onClick:t[2]||(t[2]=a=>j("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[k(" \u4E0B\u8F7D \xA0 "),st])]),l("div",{ref_key:"Delineation",ref:U,class:"Delineation"},null,512)])]),l("div",{class:"rightFoldDiv",onClick:t[3]||(t[3]=a=>me())},[f(d,null,{default:y(()=>[f(s)]),_:1})])]),nt,l("div",it,[l("div",null,I(R.value.name)+"\uFF1A",1),l("div",null,I(R.value.value)+"\u4EA9",1),l("div",{class:"cancel",onClick:X},"X")]),l("div",dt,[(L(!0),z(Ie,null,Pe(N(g).label,(a,v)=>(L(),z("div",{key:v},[l("div",null,I(a.crop)+"\uFF1A",1),l("div",null,I((a.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),N(g).XZQMC?(L(),z("div",ct,[ut,l("div",null,I(N(g).XZQMC),1)])):A("v-if",!0),l("div",{class:"cancel",onClick:X},"X")]),B.value?(L(),Te(o,{key:0,class:"back_button",onClick:t[4]||(t[4]=a=>Ce())},{default:y(()=>[k("\u8FD4\u56DE")]),_:1})):A("v-if",!0),f(i,{class:"legend",accordion:""},{default:y(()=>[f(u,{name:"1"},{title:y(()=>[k("\u56FE\u4F8B")]),default:y(()=>[l("div",pt,[f(p,{modelValue:e.checkList,"onUpdate:modelValue":t[10]||(t[10]=a=>e.checkList=a),onChange:e.change},{default:y(()=>[A(` `),f(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]=a=>e.checked3=a),label:"0-200"},null,8,["modelValue"]),f(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]=a=>e.checked4=a),label:"200-400"},null,8,["modelValue"]),f(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]=a=>e.checked3=a),label:"400-600"},null,8,["modelValue"]),f(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]=a=>e.checked4=a),label:"600-800"},null,8,["modelValue"]),f(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]=a=>e.checked3=a),label:"800-1000"},null,8,["modelValue"])]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1})])}}},yt=De(mt,[["__scopeId","data-v-d061be2f"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/plough/resources/index.vue"]]);export{yt as default}; diff --git a/dist/assets/index.ab52b78d.js.gz b/dist/assets/index.ab52b78d.js.gz deleted file mode 100644 index 68fbbd7..0000000 Binary files a/dist/assets/index.ab52b78d.js.gz and /dev/null differ diff --git a/dist/assets/index.3d5e3a8c.js b/dist/assets/index.ae5ee429.js similarity index 80% rename from dist/assets/index.3d5e3a8c.js rename to dist/assets/index.ae5ee429.js index 3fc9fc6..00b5ac4 100644 --- a/dist/assets/index.3d5e3a8c.js +++ b/dist/assets/index.ae5ee429.js @@ -1 +1 @@ -import{_ as Qe,O as Je,a as Ge,r as s,B as We,U as Xe,d as r,T as ce,o as m,c as z,H as y,I as X,f as a,e as t,w as o,j as fe,J as Z,K as ee,k as _,P as S,m as i,g as w,l as F,x as ve,s as Ze,S as Y}from"./index.5f349928.js";import{l as el,e as ll,f as tl,g as ye,h as al,i as ol,j as nl,k as ul}from"./role.5601bf4e.js";import{r as dl,t as rl}from"./menu.773fa00b.js";const sl={class:"app-container"},il={class:"dialog-footer"},pl={class:"dialog-footer"},ml=Je({name:"Role"}),cl=Object.assign(ml,{setup(fl){const _e=Ge(),{proxy:v}=Ze(),{sys_normal_disable:le}=v.useDict("sys_normal_disable"),te=s([]),h=s(!1),j=s(!0),$=s(!0),H=s([]),ae=s(!0),oe=s(!0),Q=s(0),N=s(""),I=s([]),R=s([]),q=s(!1),A=s(!1),M=s(!0),E=s(!1),P=s([]),x=s(!1),g=s(null),k=s(null),he=s([{value:"1",label:"\u5168\u90E8\u6570\u636E\u6743\u9650"},{value:"2",label:"\u81EA\u5B9A\u6570\u636E\u6743\u9650"},{value:"3",label:"\u672C\u90E8\u95E8\u6570\u636E\u6743\u9650"},{value:"4",label:"\u672C\u90E8\u95E8\u53CA\u4EE5\u4E0B\u6570\u636E\u6743\u9650"},{value:"5",label:"\u4EC5\u672C\u4EBA\u6570\u636E\u6743\u9650"}]),ge=We({form:{},queryParams:{pageNum:1,pageSize:10,roleName:void 0,roleKey:void 0,status:void 0},rules:{roleName:[{required:!0,message:"\u89D2\u8272\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],roleKey:[{required:!0,message:"\u6743\u9650\u5B57\u7B26\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],roleSort:[{required:!0,message:"\u89D2\u8272\u987A\u5E8F\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}}),{queryParams:c,form:u,rules:ke}=Xe(ge);function b(){j.value=!0,el(v.addDateRange(c.value,I.value)).then(n=>{te.value=n.rows,Q.value=n.total,j.value=!1})}function B(){c.value.pageNum=1,b()}function be(){I.value=[],v.resetForm("queryRef"),B()}function ne(n){const e=n.roleId||H.value;v.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u89D2\u8272\u7F16\u53F7\u4E3A"'+e+'"\u7684\u6570\u636E\u9879?').then(function(){return ll(e)}).then(()=>{b(),v.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function Ve(){v.download("system/role/export",{...c.value},`role_${new Date().getTime()}.xlsx`)}function Ce(n){H.value=n.map(e=>e.roleId),ae.value=n.length!=1,oe.value=!n.length}function Se(n){let e=n.status==="0"?"\u542F\u7528":"\u505C\u7528";v.$modal.confirm('\u786E\u8BA4\u8981"'+e+'""'+n.roleName+'"\u89D2\u8272\u5417?').then(function(){return tl(n.roleId,n.status)}).then(()=>{v.$modal.msgSuccess(e+"\u6210\u529F")}).catch(function(){n.status=n.status==="0"?"1":"0"})}function we(n){_e.push("/system/role-auth/user/"+n.roleId)}function xe(){rl().then(n=>{R.value=n.data})}function Ke(){let n=k.value.getCheckedKeys(),e=k.value.getHalfCheckedKeys();return n.unshift.apply(n,e),n}function D(){g.value!=null&&g.value.setCheckedKeys([]),q.value=!1,A.value=!1,M.value=!0,E.value=!1,u.value={roleId:void 0,roleName:void 0,roleKey:void 0,roleSort:0,status:"0",menuIds:[],deptIds:[],menuCheckStrictly:!0,deptCheckStrictly:!0,remark:void 0},v.resetForm("roleRef")}function Ue(){D(),xe(),h.value=!0,N.value="\u6DFB\u52A0\u89D2\u8272"}function ue(n){D();const e=n.roleId||H.value,p=Ne(e);ye(e).then(d=>{u.value=d.data,u.value.roleSort=Number(u.value.roleSort),h.value=!0,Y(()=>{p.then(L=>{L.checkedKeys.forEach(G=>{Y(()=>{g.value.setChecked(G,!0,!1)})})})}),N.value="\u4FEE\u6539\u89D2\u8272"})}function Ne(n){return dl(n).then(e=>(R.value=e.menus,e))}function Ie(n){return ul(n).then(e=>(P.value=e.depts,e))}function de(n,e){if(e=="menu"){let p=R.value;for(let d=0;d {n&&(u.value.roleId!=null?(u.value.menuIds=ie(),al(u.value).then(e=>{v.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),h.value=!1,b()})):(u.value.menuIds=ie(),ol(u.value).then(e=>{v.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),h.value=!1,b()})))})}function De(){h.value=!1,D()}function Te(n){n!=="2"&&k.value.setCheckedKeys([])}function $e(n){D();const e=Ie(n.roleId);ye(n.roleId).then(p=>{u.value=p.data,x.value=!0,Y(()=>{e.then(d=>{Y(()=>{k.value&&k.value.setCheckedKeys(d.checkedKeys)})})}),N.value="\u5206\u914D\u6570\u636E\u6743\u9650"})}function qe(){u.value.roleId!=null&&(u.value.deptIds=Ke(),nl(u.value).then(n=>{v.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),x.value=!1,b()}))}function Ae(){x.value=!1,D()}return b(),(n,e)=>{const p=r("el-input"),d=r("el-form-item"),L=r("el-option"),J=r("el-select"),G=r("el-date-picker"),f=r("el-button"),W=r("el-form"),O=r("el-col"),Me=r("right-toolbar"),Ee=r("el-row"),V=r("el-table-column"),Pe=r("el-switch"),T=r("el-tooltip"),Be=r("el-table"),Le=r("pagination"),Oe=r("question-filled"),ze=r("el-icon"),Fe=r("el-input-number"),Ye=r("el-radio"),je=r("el-radio-group"),K=r("el-checkbox"),pe=r("el-tree"),me=r("el-dialog"),C=ce("hasPermi"),He=ce("loading");return m(),z("div",sl,[y(t(W,{model:a(c),ref:"queryRef",inline:!0,"label-width":"68px"},{default:o(()=>[t(d,{label:"\u89D2\u8272\u540D\u79F0",prop:"roleName"},{default:o(()=>[t(p,{modelValue:a(c).roleName,"onUpdate:modelValue":e[0]||(e[0]=l=>a(c).roleName=l),placeholder:"\u8BF7\u8F93\u5165\u89D2\u8272\u540D\u79F0",clearable:"",style:{width:"240px"},onKeyup:fe(B,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),t(d,{label:"\u6743\u9650\u5B57\u7B26",prop:"roleKey"},{default:o(()=>[t(p,{modelValue:a(c).roleKey,"onUpdate:modelValue":e[1]||(e[1]=l=>a(c).roleKey=l),placeholder:"\u8BF7\u8F93\u5165\u6743\u9650\u5B57\u7B26",clearable:"",style:{width:"240px"},onKeyup:fe(B,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),t(d,{label:"\u72B6\u6001",prop:"status"},{default:o(()=>[t(J,{modelValue:a(c).status,"onUpdate:modelValue":e[2]||(e[2]=l=>a(c).status=l),placeholder:"\u89D2\u8272\u72B6\u6001",clearable:"",style:{width:"240px"}},{default:o(()=>[(m(!0),z(Z,null,ee(a(le),l=>(m(),_(L,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(d,{label:"\u521B\u5EFA\u65F6\u95F4",style:{width:"308px"}},{default:o(()=>[t(G,{modelValue:a(I),"onUpdate:modelValue":e[3]||(e[3]=l=>S(I)?I.value=l:null),"value-format":"YYYY-MM-DD",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),t(d,null,{default:o(()=>[t(f,{type:"primary",icon:"Search",onClick:B},{default:o(()=>[i("\u641C\u7D22")]),_:1}),t(f,{icon:"Refresh",onClick:be},{default:o(()=>[i("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[X,a($)]]),t(Ee,{gutter:10,class:"mb8"},{default:o(()=>[t(O,{span:1.5},{default:o(()=>[y((m(),_(f,{type:"primary",plain:"",icon:"Plus",onClick:Ue},{default:o(()=>[i("\u65B0\u589E")]),_:1})),[[C,["system:role:add"]]])]),_:1},8,["span"]),t(O,{span:1.5},{default:o(()=>[y((m(),_(f,{type:"success",plain:"",icon:"Edit",disabled:a(ae),onClick:ue},{default:o(()=>[i("\u4FEE\u6539")]),_:1},8,["disabled"])),[[C,["system:role:edit"]]])]),_:1},8,["span"]),t(O,{span:1.5},{default:o(()=>[y((m(),_(f,{type:"danger",plain:"",icon:"Delete",disabled:a(oe),onClick:ne},{default:o(()=>[i("\u5220\u9664")]),_:1},8,["disabled"])),[[C,["system:role:remove"]]])]),_:1},8,["span"]),t(O,{span:1.5},{default:o(()=>[y((m(),_(f,{type:"warning",plain:"",icon:"Download",onClick:Ve},{default:o(()=>[i("\u5BFC\u51FA")]),_:1})),[[C,["system:role:export"]]])]),_:1},8,["span"]),t(Me,{showSearch:a($),"onUpdate:showSearch":e[4]||(e[4]=l=>S($)?$.value=l:null),onQueryTable:b},null,8,["showSearch"])]),_:1}),w(" \u8868\u683C\u6570\u636E "),y((m(),_(Be,{data:a(te),onSelectionChange:Ce},{default:o(()=>[t(V,{type:"selection",width:"55",align:"center"}),t(V,{label:"\u89D2\u8272\u7F16\u53F7",prop:"roleId",width:"120"}),t(V,{label:"\u89D2\u8272\u540D\u79F0",prop:"roleName","show-overflow-tooltip":!0,width:"150"}),t(V,{label:"\u6743\u9650\u5B57\u7B26",prop:"roleKey","show-overflow-tooltip":!0,width:"150"}),t(V,{label:"\u663E\u793A\u987A\u5E8F",prop:"roleSort",width:"100"}),t(V,{label:"\u72B6\u6001",align:"center",width:"100"},{default:o(l=>[t(Pe,{modelValue:l.row.status,"onUpdate:modelValue":U=>l.row.status=U,"active-value":"0","inactive-value":"1",onChange:U=>Se(l.row)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),t(V,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime"},{default:o(l=>[F("span",null,ve(n.parseTime(l.row.createTime)),1)]),_:1}),t(V,{label:"\u64CD\u4F5C",align:"center","class-name":"small-padding fixed-width"},{default:o(l=>[l.row.roleId!==1?(m(),_(T,{key:0,content:"\u4FEE\u6539",placement:"top"},{default:o(()=>[y(t(f,{link:"",type:"primary",icon:"Edit",onClick:U=>ue(l.row)},null,8,["onClick"]),[[C,["system:role:edit"]]])]),_:2},1024)):w("v-if",!0),l.row.roleId!==1?(m(),_(T,{key:1,content:"\u5220\u9664",placement:"top"},{default:o(()=>[y(t(f,{link:"",type:"primary",icon:"Delete",onClick:U=>ne(l.row)},null,8,["onClick"]),[[C,["system:role:remove"]]])]),_:2},1024)):w("v-if",!0),l.row.roleId!==1?(m(),_(T,{key:2,content:"\u6570\u636E\u6743\u9650",placement:"top"},{default:o(()=>[y(t(f,{link:"",type:"primary",icon:"CircleCheck",onClick:U=>$e(l.row)},null,8,["onClick"]),[[C,["system:role:edit"]]])]),_:2},1024)):w("v-if",!0),l.row.roleId!==1?(m(),_(T,{key:3,content:"\u5206\u914D\u7528\u6237",placement:"top"},{default:o(()=>[y(t(f,{link:"",type:"primary",icon:"User",onClick:U=>we(l.row)},null,8,["onClick"]),[[C,["system:role:edit"]]])]),_:2},1024)):w("v-if",!0)]),_:1})]),_:1},8,["data"])),[[He,a(j)]]),y(t(Le,{total:a(Q),page:a(c).pageNum,"onUpdate:page":e[5]||(e[5]=l=>a(c).pageNum=l),limit:a(c).pageSize,"onUpdate:limit":e[6]||(e[6]=l=>a(c).pageSize=l),onPagination:b},null,8,["total","page","limit"]),[[X,a(Q)>0]]),w(" \u6DFB\u52A0\u6216\u4FEE\u6539\u89D2\u8272\u914D\u7F6E\u5BF9\u8BDD\u6846 "),t(me,{title:a(N),modelValue:a(h),"onUpdate:modelValue":e[18]||(e[18]=l=>S(h)?h.value=l:null),width:"500px","append-to-body":""},{footer:o(()=>[F("div",il,[t(f,{type:"primary",onClick:Re},{default:o(()=>[i("\u786E \u5B9A")]),_:1}),t(f,{onClick:De},{default:o(()=>[i("\u53D6 \u6D88")]),_:1})])]),default:o(()=>[t(W,{ref:"roleRef",model:a(u),rules:a(ke),"label-width":"100px"},{default:o(()=>[t(d,{label:"\u89D2\u8272\u540D\u79F0",prop:"roleName"},{default:o(()=>[t(p,{modelValue:a(u).roleName,"onUpdate:modelValue":e[7]||(e[7]=l=>a(u).roleName=l),placeholder:"\u8BF7\u8F93\u5165\u89D2\u8272\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(d,{prop:"roleKey"},{label:o(()=>[F("span",null,[t(T,{content:"\u63A7\u5236\u5668\u4E2D\u5B9A\u4E49\u7684\u6743\u9650\u5B57\u7B26\uFF0C\u5982\uFF1A@PreAuthorize(`@ss.hasRole('admin')`)",placement:"top"},{default:o(()=>[t(ze,null,{default:o(()=>[t(Oe)]),_:1})]),_:1}),i(" \u6743\u9650\u5B57\u7B26 ")])]),default:o(()=>[t(p,{modelValue:a(u).roleKey,"onUpdate:modelValue":e[8]||(e[8]=l=>a(u).roleKey=l),placeholder:"\u8BF7\u8F93\u5165\u6743\u9650\u5B57\u7B26"},null,8,["modelValue"])]),_:1}),t(d,{label:"\u89D2\u8272\u987A\u5E8F",prop:"roleSort"},{default:o(()=>[t(Fe,{modelValue:a(u).roleSort,"onUpdate:modelValue":e[9]||(e[9]=l=>a(u).roleSort=l),"controls-position":"right",min:0},null,8,["modelValue"])]),_:1}),t(d,{label:"\u72B6\u6001"},{default:o(()=>[t(je,{modelValue:a(u).status,"onUpdate:modelValue":e[10]||(e[10]=l=>a(u).status=l)},{default:o(()=>[(m(!0),z(Z,null,ee(a(le),l=>(m(),_(Ye,{key:l.value,label:l.value},{default:o(()=>[i(ve(l.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(d,{label:"\u83DC\u5355\u6743\u9650"},{default:o(()=>[t(K,{modelValue:a(q),"onUpdate:modelValue":e[11]||(e[11]=l=>S(q)?q.value=l:null),onChange:e[12]||(e[12]=l=>de(l,"menu"))},{default:o(()=>[i("\u5C55\u5F00/\u6298\u53E0")]),_:1},8,["modelValue"]),t(K,{modelValue:a(A),"onUpdate:modelValue":e[13]||(e[13]=l=>S(A)?A.value=l:null),onChange:e[14]||(e[14]=l=>re(l,"menu"))},{default:o(()=>[i("\u5168\u9009/\u5168\u4E0D\u9009")]),_:1},8,["modelValue"]),t(K,{modelValue:a(u).menuCheckStrictly,"onUpdate:modelValue":e[15]||(e[15]=l=>a(u).menuCheckStrictly=l),onChange:e[16]||(e[16]=l=>se(l,"menu"))},{default:o(()=>[i("\u7236\u5B50\u8054\u52A8")]),_:1},8,["modelValue"]),t(pe,{class:"tree-border",data:a(R),"show-checkbox":"",ref_key:"menuRef",ref:g,"node-key":"id","check-strictly":!a(u).menuCheckStrictly,"empty-text":"\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u5019",props:{label:"label",children:"children"}},null,8,["data","check-strictly"])]),_:1}),t(d,{label:"\u5907\u6CE8"},{default:o(()=>[t(p,{modelValue:a(u).remark,"onUpdate:modelValue":e[17]||(e[17]=l=>a(u).remark=l),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"]),w(" \u5206\u914D\u89D2\u8272\u6570\u636E\u6743\u9650\u5BF9\u8BDD\u6846 "),t(me,{title:a(N),modelValue:a(x),"onUpdate:modelValue":e[28]||(e[28]=l=>S(x)?x.value=l:null),width:"500px","append-to-body":""},{footer:o(()=>[F("div",pl,[t(f,{type:"primary",onClick:qe},{default:o(()=>[i("\u786E \u5B9A")]),_:1}),t(f,{onClick:Ae},{default:o(()=>[i("\u53D6 \u6D88")]),_:1})])]),default:o(()=>[t(W,{model:a(u),"label-width":"80px"},{default:o(()=>[t(d,{label:"\u89D2\u8272\u540D\u79F0"},{default:o(()=>[t(p,{modelValue:a(u).roleName,"onUpdate:modelValue":e[19]||(e[19]=l=>a(u).roleName=l),disabled:!0},null,8,["modelValue"])]),_:1}),t(d,{label:"\u6743\u9650\u5B57\u7B26"},{default:o(()=>[t(p,{modelValue:a(u).roleKey,"onUpdate:modelValue":e[20]||(e[20]=l=>a(u).roleKey=l),disabled:!0},null,8,["modelValue"])]),_:1}),t(d,{label:"\u6743\u9650\u8303\u56F4"},{default:o(()=>[t(J,{modelValue:a(u).dataScope,"onUpdate:modelValue":e[21]||(e[21]=l=>a(u).dataScope=l),onChange:Te},{default:o(()=>[(m(!0),z(Z,null,ee(a(he),l=>(m(),_(L,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),y(t(d,{label:"\u6570\u636E\u6743\u9650"},{default:o(()=>[t(K,{modelValue:a(M),"onUpdate:modelValue":e[22]||(e[22]=l=>S(M)?M.value=l:null),onChange:e[23]||(e[23]=l=>de(l,"dept"))},{default:o(()=>[i("\u5C55\u5F00/\u6298\u53E0")]),_:1},8,["modelValue"]),t(K,{modelValue:a(E),"onUpdate:modelValue":e[24]||(e[24]=l=>S(E)?E.value=l:null),onChange:e[25]||(e[25]=l=>re(l,"dept"))},{default:o(()=>[i("\u5168\u9009/\u5168\u4E0D\u9009")]),_:1},8,["modelValue"]),t(K,{modelValue:a(u).deptCheckStrictly,"onUpdate:modelValue":e[26]||(e[26]=l=>a(u).deptCheckStrictly=l),onChange:e[27]||(e[27]=l=>se(l,"dept"))},{default:o(()=>[i("\u7236\u5B50\u8054\u52A8")]),_:1},8,["modelValue"]),t(pe,{class:"tree-border",data:a(P),"show-checkbox":"","default-expand-all":"",ref_key:"deptRef",ref:k,"node-key":"id","check-strictly":!a(u).deptCheckStrictly,"empty-text":"\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u5019",props:{label:"label",children:"children"}},null,8,["data","check-strictly"])]),_:1},512),[[X,a(u).dataScope==2]])]),_:1},8,["model"])]),_:1},8,["title","modelValue"])])}}}),hl=Qe(cl,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/system/role/index.vue"]]);export{hl as default}; +import{_ as Qe,O as Ge,a as Je,r as s,A as We,U as Xe,d as r,T as ce,o as m,c as B,G as y,H as X,f as a,e as t,w as o,j as fe,I as Z,J as ee,k as _,P as S,m as i,g as w,l as F,x as ve,s as Ze,S as Y}from"./index.b3a66a9e.js";import{l as el,e as ll,f as tl,g as ye,h as al,i as ol,j as nl,k as ul}from"./role.262b5655.js";import{r as dl,t as rl}from"./menu.34305f2c.js";const sl={class:"app-container"},il={class:"dialog-footer"},pl={class:"dialog-footer"},ml=Ge({name:"Role"}),cl=Object.assign(ml,{setup(fl){const _e=Je(),{proxy:v}=Ze(),{sys_normal_disable:le}=v.useDict("sys_normal_disable"),te=s([]),h=s(!1),j=s(!0),$=s(!0),H=s([]),ae=s(!0),oe=s(!0),Q=s(0),N=s(""),I=s([]),R=s([]),A=s(!1),q=s(!1),M=s(!0),E=s(!1),P=s([]),x=s(!1),g=s(null),k=s(null),he=s([{value:"1",label:"\u5168\u90E8\u6570\u636E\u6743\u9650"},{value:"2",label:"\u81EA\u5B9A\u6570\u636E\u6743\u9650"},{value:"3",label:"\u672C\u90E8\u95E8\u6570\u636E\u6743\u9650"},{value:"4",label:"\u672C\u90E8\u95E8\u53CA\u4EE5\u4E0B\u6570\u636E\u6743\u9650"},{value:"5",label:"\u4EC5\u672C\u4EBA\u6570\u636E\u6743\u9650"}]),ge=We({form:{},queryParams:{pageNum:1,pageSize:10,roleName:void 0,roleKey:void 0,status:void 0},rules:{roleName:[{required:!0,message:"\u89D2\u8272\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],roleKey:[{required:!0,message:"\u6743\u9650\u5B57\u7B26\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],roleSort:[{required:!0,message:"\u89D2\u8272\u987A\u5E8F\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}}),{queryParams:c,form:u,rules:ke}=Xe(ge);function b(){j.value=!0,el(v.addDateRange(c.value,I.value)).then(n=>{te.value=n.rows,Q.value=n.total,j.value=!1})}function L(){c.value.pageNum=1,b()}function be(){I.value=[],v.resetForm("queryRef"),L()}function ne(n){const e=n.roleId||H.value;v.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u89D2\u8272\u7F16\u53F7\u4E3A"'+e+'"\u7684\u6570\u636E\u9879?').then(function(){return ll(e)}).then(()=>{b(),v.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function Ve(){v.download("system/role/export",{...c.value},`role_${new Date().getTime()}.xlsx`)}function Ce(n){H.value=n.map(e=>e.roleId),ae.value=n.length!=1,oe.value=!n.length}function Se(n){let e=n.status==="0"?"\u542F\u7528":"\u505C\u7528";v.$modal.confirm('\u786E\u8BA4\u8981"'+e+'""'+n.roleName+'"\u89D2\u8272\u5417?').then(function(){return tl(n.roleId,n.status)}).then(()=>{v.$modal.msgSuccess(e+"\u6210\u529F")}).catch(function(){n.status=n.status==="0"?"1":"0"})}function we(n){_e.push("/system/role-auth/user/"+n.roleId)}function xe(){rl().then(n=>{R.value=n.data})}function Ke(){let n=k.value.getCheckedKeys(),e=k.value.getHalfCheckedKeys();return n.unshift.apply(n,e),n}function D(){g.value!=null&&g.value.setCheckedKeys([]),A.value=!1,q.value=!1,M.value=!0,E.value=!1,u.value={roleId:void 0,roleName:void 0,roleKey:void 0,roleSort:0,status:"0",menuIds:[],deptIds:[],menuCheckStrictly:!0,deptCheckStrictly:!0,remark:void 0},v.resetForm("roleRef")}function Ue(){D(),xe(),h.value=!0,N.value="\u6DFB\u52A0\u89D2\u8272"}function ue(n){D();const e=n.roleId||H.value,p=Ne(e);ye(e).then(d=>{u.value=d.data,u.value.roleSort=Number(u.value.roleSort),h.value=!0,Y(()=>{p.then(O=>{O.checkedKeys.forEach(J=>{Y(()=>{g.value.setChecked(J,!0,!1)})})})}),N.value="\u4FEE\u6539\u89D2\u8272"})}function Ne(n){return dl(n).then(e=>(R.value=e.menus,e))}function Ie(n){return ul(n).then(e=>(P.value=e.depts,e))}function de(n,e){if(e=="menu"){let p=R.value;for(let d=0;d {n&&(u.value.roleId!=null?(u.value.menuIds=ie(),al(u.value).then(e=>{v.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),h.value=!1,b()})):(u.value.menuIds=ie(),ol(u.value).then(e=>{v.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),h.value=!1,b()})))})}function De(){h.value=!1,D()}function Te(n){n!=="2"&&k.value.setCheckedKeys([])}function $e(n){D();const e=Ie(n.roleId);ye(n.roleId).then(p=>{u.value=p.data,x.value=!0,Y(()=>{e.then(d=>{Y(()=>{k.value&&k.value.setCheckedKeys(d.checkedKeys)})})}),N.value="\u5206\u914D\u6570\u636E\u6743\u9650"})}function Ae(){u.value.roleId!=null&&(u.value.deptIds=Ke(),nl(u.value).then(n=>{v.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),x.value=!1,b()}))}function qe(){x.value=!1,D()}return b(),(n,e)=>{const p=r("el-input"),d=r("el-form-item"),O=r("el-option"),G=r("el-select"),J=r("el-date-picker"),f=r("el-button"),W=r("el-form"),z=r("el-col"),Me=r("right-toolbar"),Ee=r("el-row"),V=r("el-table-column"),Pe=r("el-switch"),T=r("el-tooltip"),Le=r("el-table"),Oe=r("pagination"),ze=r("question-filled"),Be=r("el-icon"),Fe=r("el-input-number"),Ye=r("el-radio"),je=r("el-radio-group"),K=r("el-checkbox"),pe=r("el-tree"),me=r("el-dialog"),C=ce("hasPermi"),He=ce("loading");return m(),B("div",sl,[y(t(W,{model:a(c),ref:"queryRef",inline:!0,"label-width":"68px"},{default:o(()=>[t(d,{label:"\u89D2\u8272\u540D\u79F0",prop:"roleName"},{default:o(()=>[t(p,{modelValue:a(c).roleName,"onUpdate:modelValue":e[0]||(e[0]=l=>a(c).roleName=l),placeholder:"\u8BF7\u8F93\u5165\u89D2\u8272\u540D\u79F0",clearable:"",style:{width:"240px"},onKeyup:fe(L,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),t(d,{label:"\u6743\u9650\u5B57\u7B26",prop:"roleKey"},{default:o(()=>[t(p,{modelValue:a(c).roleKey,"onUpdate:modelValue":e[1]||(e[1]=l=>a(c).roleKey=l),placeholder:"\u8BF7\u8F93\u5165\u6743\u9650\u5B57\u7B26",clearable:"",style:{width:"240px"},onKeyup:fe(L,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),t(d,{label:"\u72B6\u6001",prop:"status"},{default:o(()=>[t(G,{modelValue:a(c).status,"onUpdate:modelValue":e[2]||(e[2]=l=>a(c).status=l),placeholder:"\u89D2\u8272\u72B6\u6001",clearable:"",style:{width:"240px"}},{default:o(()=>[(m(!0),B(Z,null,ee(a(le),l=>(m(),_(O,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(d,{label:"\u521B\u5EFA\u65F6\u95F4",style:{width:"308px"}},{default:o(()=>[t(J,{modelValue:a(I),"onUpdate:modelValue":e[3]||(e[3]=l=>S(I)?I.value=l:null),"value-format":"YYYY-MM-DD",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),t(d,null,{default:o(()=>[t(f,{type:"primary",icon:"Search",onClick:L},{default:o(()=>[i("\u641C\u7D22")]),_:1}),t(f,{icon:"Refresh",onClick:be},{default:o(()=>[i("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[X,a($)]]),t(Ee,{gutter:10,class:"mb8"},{default:o(()=>[t(z,{span:1.5},{default:o(()=>[y((m(),_(f,{type:"primary",plain:"",icon:"Plus",onClick:Ue},{default:o(()=>[i("\u65B0\u589E")]),_:1})),[[C,["system:role:add"]]])]),_:1},8,["span"]),t(z,{span:1.5},{default:o(()=>[y((m(),_(f,{type:"success",plain:"",icon:"Edit",disabled:a(ae),onClick:ue},{default:o(()=>[i("\u4FEE\u6539")]),_:1},8,["disabled"])),[[C,["system:role:edit"]]])]),_:1},8,["span"]),t(z,{span:1.5},{default:o(()=>[y((m(),_(f,{type:"danger",plain:"",icon:"Delete",disabled:a(oe),onClick:ne},{default:o(()=>[i("\u5220\u9664")]),_:1},8,["disabled"])),[[C,["system:role:remove"]]])]),_:1},8,["span"]),t(z,{span:1.5},{default:o(()=>[y((m(),_(f,{type:"warning",plain:"",icon:"Download",onClick:Ve},{default:o(()=>[i("\u5BFC\u51FA")]),_:1})),[[C,["system:role:export"]]])]),_:1},8,["span"]),t(Me,{showSearch:a($),"onUpdate:showSearch":e[4]||(e[4]=l=>S($)?$.value=l:null),onQueryTable:b},null,8,["showSearch"])]),_:1}),w(" \u8868\u683C\u6570\u636E "),y((m(),_(Le,{data:a(te),onSelectionChange:Ce},{default:o(()=>[t(V,{type:"selection",width:"55",align:"center"}),t(V,{label:"\u89D2\u8272\u7F16\u53F7",prop:"roleId",width:"120"}),t(V,{label:"\u89D2\u8272\u540D\u79F0",prop:"roleName","show-overflow-tooltip":!0,width:"150"}),t(V,{label:"\u6743\u9650\u5B57\u7B26",prop:"roleKey","show-overflow-tooltip":!0,width:"150"}),t(V,{label:"\u663E\u793A\u987A\u5E8F",prop:"roleSort",width:"100"}),t(V,{label:"\u72B6\u6001",align:"center",width:"100"},{default:o(l=>[t(Pe,{modelValue:l.row.status,"onUpdate:modelValue":U=>l.row.status=U,"active-value":"0","inactive-value":"1",onChange:U=>Se(l.row)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),t(V,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime"},{default:o(l=>[F("span",null,ve(n.parseTime(l.row.createTime)),1)]),_:1}),t(V,{label:"\u64CD\u4F5C",align:"center","class-name":"small-padding fixed-width"},{default:o(l=>[l.row.roleId!==1?(m(),_(T,{key:0,content:"\u4FEE\u6539",placement:"top"},{default:o(()=>[y(t(f,{link:"",type:"primary",icon:"Edit",onClick:U=>ue(l.row)},null,8,["onClick"]),[[C,["system:role:edit"]]])]),_:2},1024)):w("v-if",!0),l.row.roleId!==1?(m(),_(T,{key:1,content:"\u5220\u9664",placement:"top"},{default:o(()=>[y(t(f,{link:"",type:"primary",icon:"Delete",onClick:U=>ne(l.row)},null,8,["onClick"]),[[C,["system:role:remove"]]])]),_:2},1024)):w("v-if",!0),l.row.roleId!==1?(m(),_(T,{key:2,content:"\u6570\u636E\u6743\u9650",placement:"top"},{default:o(()=>[y(t(f,{link:"",type:"primary",icon:"CircleCheck",onClick:U=>$e(l.row)},null,8,["onClick"]),[[C,["system:role:edit"]]])]),_:2},1024)):w("v-if",!0),l.row.roleId!==1?(m(),_(T,{key:3,content:"\u5206\u914D\u7528\u6237",placement:"top"},{default:o(()=>[y(t(f,{link:"",type:"primary",icon:"User",onClick:U=>we(l.row)},null,8,["onClick"]),[[C,["system:role:edit"]]])]),_:2},1024)):w("v-if",!0)]),_:1})]),_:1},8,["data"])),[[He,a(j)]]),y(t(Oe,{total:a(Q),page:a(c).pageNum,"onUpdate:page":e[5]||(e[5]=l=>a(c).pageNum=l),limit:a(c).pageSize,"onUpdate:limit":e[6]||(e[6]=l=>a(c).pageSize=l),onPagination:b},null,8,["total","page","limit"]),[[X,a(Q)>0]]),w(" \u6DFB\u52A0\u6216\u4FEE\u6539\u89D2\u8272\u914D\u7F6E\u5BF9\u8BDD\u6846 "),t(me,{title:a(N),modelValue:a(h),"onUpdate:modelValue":e[18]||(e[18]=l=>S(h)?h.value=l:null),width:"500px","append-to-body":""},{footer:o(()=>[F("div",il,[t(f,{type:"primary",onClick:Re},{default:o(()=>[i("\u786E \u5B9A")]),_:1}),t(f,{onClick:De},{default:o(()=>[i("\u53D6 \u6D88")]),_:1})])]),default:o(()=>[t(W,{ref:"roleRef",model:a(u),rules:a(ke),"label-width":"100px"},{default:o(()=>[t(d,{label:"\u89D2\u8272\u540D\u79F0",prop:"roleName"},{default:o(()=>[t(p,{modelValue:a(u).roleName,"onUpdate:modelValue":e[7]||(e[7]=l=>a(u).roleName=l),placeholder:"\u8BF7\u8F93\u5165\u89D2\u8272\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(d,{prop:"roleKey"},{label:o(()=>[F("span",null,[t(T,{content:"\u63A7\u5236\u5668\u4E2D\u5B9A\u4E49\u7684\u6743\u9650\u5B57\u7B26\uFF0C\u5982\uFF1A@PreAuthorize(`@ss.hasRole('admin')`)",placement:"top"},{default:o(()=>[t(Be,null,{default:o(()=>[t(ze)]),_:1})]),_:1}),i(" \u6743\u9650\u5B57\u7B26 ")])]),default:o(()=>[t(p,{modelValue:a(u).roleKey,"onUpdate:modelValue":e[8]||(e[8]=l=>a(u).roleKey=l),placeholder:"\u8BF7\u8F93\u5165\u6743\u9650\u5B57\u7B26"},null,8,["modelValue"])]),_:1}),t(d,{label:"\u89D2\u8272\u987A\u5E8F",prop:"roleSort"},{default:o(()=>[t(Fe,{modelValue:a(u).roleSort,"onUpdate:modelValue":e[9]||(e[9]=l=>a(u).roleSort=l),"controls-position":"right",min:0},null,8,["modelValue"])]),_:1}),t(d,{label:"\u72B6\u6001"},{default:o(()=>[t(je,{modelValue:a(u).status,"onUpdate:modelValue":e[10]||(e[10]=l=>a(u).status=l)},{default:o(()=>[(m(!0),B(Z,null,ee(a(le),l=>(m(),_(Ye,{key:l.value,label:l.value},{default:o(()=>[i(ve(l.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(d,{label:"\u83DC\u5355\u6743\u9650"},{default:o(()=>[t(K,{modelValue:a(A),"onUpdate:modelValue":e[11]||(e[11]=l=>S(A)?A.value=l:null),onChange:e[12]||(e[12]=l=>de(l,"menu"))},{default:o(()=>[i("\u5C55\u5F00/\u6298\u53E0")]),_:1},8,["modelValue"]),t(K,{modelValue:a(q),"onUpdate:modelValue":e[13]||(e[13]=l=>S(q)?q.value=l:null),onChange:e[14]||(e[14]=l=>re(l,"menu"))},{default:o(()=>[i("\u5168\u9009/\u5168\u4E0D\u9009")]),_:1},8,["modelValue"]),t(K,{modelValue:a(u).menuCheckStrictly,"onUpdate:modelValue":e[15]||(e[15]=l=>a(u).menuCheckStrictly=l),onChange:e[16]||(e[16]=l=>se(l,"menu"))},{default:o(()=>[i("\u7236\u5B50\u8054\u52A8")]),_:1},8,["modelValue"]),t(pe,{class:"tree-border",data:a(R),"show-checkbox":"",ref_key:"menuRef",ref:g,"node-key":"id","check-strictly":!a(u).menuCheckStrictly,"empty-text":"\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u5019",props:{label:"label",children:"children"}},null,8,["data","check-strictly"])]),_:1}),t(d,{label:"\u5907\u6CE8"},{default:o(()=>[t(p,{modelValue:a(u).remark,"onUpdate:modelValue":e[17]||(e[17]=l=>a(u).remark=l),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"]),w(" \u5206\u914D\u89D2\u8272\u6570\u636E\u6743\u9650\u5BF9\u8BDD\u6846 "),t(me,{title:a(N),modelValue:a(x),"onUpdate:modelValue":e[28]||(e[28]=l=>S(x)?x.value=l:null),width:"500px","append-to-body":""},{footer:o(()=>[F("div",pl,[t(f,{type:"primary",onClick:Ae},{default:o(()=>[i("\u786E \u5B9A")]),_:1}),t(f,{onClick:qe},{default:o(()=>[i("\u53D6 \u6D88")]),_:1})])]),default:o(()=>[t(W,{model:a(u),"label-width":"80px"},{default:o(()=>[t(d,{label:"\u89D2\u8272\u540D\u79F0"},{default:o(()=>[t(p,{modelValue:a(u).roleName,"onUpdate:modelValue":e[19]||(e[19]=l=>a(u).roleName=l),disabled:!0},null,8,["modelValue"])]),_:1}),t(d,{label:"\u6743\u9650\u5B57\u7B26"},{default:o(()=>[t(p,{modelValue:a(u).roleKey,"onUpdate:modelValue":e[20]||(e[20]=l=>a(u).roleKey=l),disabled:!0},null,8,["modelValue"])]),_:1}),t(d,{label:"\u6743\u9650\u8303\u56F4"},{default:o(()=>[t(G,{modelValue:a(u).dataScope,"onUpdate:modelValue":e[21]||(e[21]=l=>a(u).dataScope=l),onChange:Te},{default:o(()=>[(m(!0),B(Z,null,ee(a(he),l=>(m(),_(O,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),y(t(d,{label:"\u6570\u636E\u6743\u9650"},{default:o(()=>[t(K,{modelValue:a(M),"onUpdate:modelValue":e[22]||(e[22]=l=>S(M)?M.value=l:null),onChange:e[23]||(e[23]=l=>de(l,"dept"))},{default:o(()=>[i("\u5C55\u5F00/\u6298\u53E0")]),_:1},8,["modelValue"]),t(K,{modelValue:a(E),"onUpdate:modelValue":e[24]||(e[24]=l=>S(E)?E.value=l:null),onChange:e[25]||(e[25]=l=>re(l,"dept"))},{default:o(()=>[i("\u5168\u9009/\u5168\u4E0D\u9009")]),_:1},8,["modelValue"]),t(K,{modelValue:a(u).deptCheckStrictly,"onUpdate:modelValue":e[26]||(e[26]=l=>a(u).deptCheckStrictly=l),onChange:e[27]||(e[27]=l=>se(l,"dept"))},{default:o(()=>[i("\u7236\u5B50\u8054\u52A8")]),_:1},8,["modelValue"]),t(pe,{class:"tree-border",data:a(P),"show-checkbox":"","default-expand-all":"",ref_key:"deptRef",ref:k,"node-key":"id","check-strictly":!a(u).deptCheckStrictly,"empty-text":"\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u5019",props:{label:"label",children:"children"}},null,8,["data","check-strictly"])]),_:1},512),[[X,a(u).dataScope==2]])]),_:1},8,["model"])]),_:1},8,["title","modelValue"])])}}}),hl=Qe(cl,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/system/role/index.vue"]]);export{hl as default}; diff --git a/dist/assets/index.ae5ee429.js.gz b/dist/assets/index.ae5ee429.js.gz new file mode 100644 index 0000000..a67a9bd Binary files /dev/null and b/dist/assets/index.ae5ee429.js.gz differ diff --git a/dist/assets/index.5f349928.js b/dist/assets/index.b3a66a9e.js similarity index 98% rename from dist/assets/index.5f349928.js rename to dist/assets/index.b3a66a9e.js index d1abbd4..406a578 100644 --- a/dist/assets/index.5f349928.js +++ b/dist/assets/index.b3a66a9e.js @@ -116,7 +116,7 @@ Use slot props instead: ${JSON.stringify(G,null,2)} when navigating to "${X.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return Vt({query:X.query,hash:X.hash,params:"path"in G?{}:X.params},G)}}function T(X,de){const J=u=_(X),G=c.value,se=X.state,fe=X.force,ze=X.replace===!0,Ae=z(J);if(Ae)return T(Vt(w(Ae),{state:typeof Ae=="object"?Vt({},se,Ae.state):se,force:fe,replace:ze}),de||J);const q=J;q.redirectedFrom=de;let le;return!fe&&J4(l,G,J)&&(le=vi(16,{to:q,from:G}),Z(G,G,!0,!1)),(le?Promise.resolve(le):O(q,G)).catch(he=>ir(he)?ir(he,2)?he:R(he):L(he,q,G)).then(he=>{if(he){if(ir(he,2))return J4(l,_(he.to),q)&&de&&(de._count=de._count?de._count+1:1)>10?(Mt(`Detected an infinite redirection in a navigation guard when going from "${G.fullPath}" to "${q.fullPath}". Aborting to avoid a Stack Overflow. This will break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):T(Vt({replace:ze},w(he.to),{state:typeof he.to=="object"?Vt({},se,he.to.state):se,force:fe}),de||q)}else he=D(q,G,!0,ze,se);return A(q,G,he),he})}function M(X,de){const J=b(X,de);return J?Promise.reject(J):Promise.resolve()}function O(X,de){let J;const[G,se,fe]=A$e(X,de);J=J0(G.reverse(),"beforeRouteLeave",X,de);for(const Ae of G)Ae.leaveGuards.forEach(q=>{J.push(Gr(q,X,de))});const ze=M.bind(null,X,de);return J.push(ze),wa(J).then(()=>{J=[];for(const Ae of n.list())J.push(Gr(Ae,X,de));return J.push(ze),wa(J)}).then(()=>{J=J0(se,"beforeRouteUpdate",X,de);for(const Ae of se)Ae.updateGuards.forEach(q=>{J.push(Gr(q,X,de))});return J.push(ze),wa(J)}).then(()=>{J=[];for(const Ae of X.matched)if(Ae.beforeEnter&&!de.matched.includes(Ae))if(el(Ae.beforeEnter))for(const q of Ae.beforeEnter)J.push(Gr(q,X,de));else J.push(Gr(Ae.beforeEnter,X,de));return J.push(ze),wa(J)}).then(()=>(X.matched.forEach(Ae=>Ae.enterCallbacks={}),J=J0(fe,"beforeRouteEnter",X,de),J.push(ze),wa(J))).then(()=>{J=[];for(const Ae of a.list())J.push(Gr(Ae,X,de));return J.push(ze),wa(J)}).catch(Ae=>ir(Ae,8)?Ae:Promise.reject(Ae))}function A(X,de,J){for(const G of i.list())G(X,de,J)}function D(X,de,J,G,se){const fe=b(X,de);if(fe)return fe;const ze=de===Br,Ae=hr?history.state:{};J&&(G||ze?r.replace(X.fullPath,Vt({scroll:ze&&Ae&&Ae.scroll},se)):r.push(X.fullPath,se)),c.value=X,Z(X,de,J,ze),R()}let I;function P(){I||(I=r.listen((X,de,J)=>{if(!pe.listening)return;const G=_(X),se=z(G);if(se){T(Vt(se,{replace:!0}),G).catch(os);return}u=G;const fe=c.value;hr&&CCe(ev(fe.fullPath,J.delta),jd()),O(G,fe).catch(ze=>ir(ze,12)?ze:ir(ze,2)?(T(ze.to,G).then(Ae=>{ir(Ae,20)&&!J.delta&&J.type===Rs.pop&&r.go(-1,!1)}).catch(os),Promise.reject()):(J.delta&&r.go(-J.delta,!1),L(ze,G,fe))).then(ze=>{ze=ze||D(G,fe,!1),ze&&(J.delta&&!ir(ze,8)?r.go(-J.delta,!1):J.type===Rs.pop&&ir(ze,20)&&r.go(-1,!1)),A(G,fe,ze)}).catch(os)}))}let B=Li(),K=Li(),N;function L(X,de,J){R(X);const G=K.list();return G.length?G.forEach(se=>se(X,de,J)):(Mt("uncaught error during route navigation:"),console.error(X)),Promise.reject(X)}function H(){return N&&c.value!==Br?Promise.resolve():new Promise((X,de)=>{B.add([X,de])})}function R(X){return N||(N=!X,P(),B.list().forEach(([de,J])=>X?J(X):de()),B.reset()),X}function Z(X,de,J,G){const{scrollBehavior:se}=e;if(!hr||!se)return Promise.resolve();const fe=!J&&$Ce(ev(X.fullPath,0))||(G||!J)&&history.state&&history.state.scroll||null;return Ne().then(()=>se(X,de,fe)).then(ze=>ze&&kCe(ze)).catch(ze=>L(ze,X,de))}const re=X=>r.go(X);let Y;const oe=new Set,pe={currentRoute:c,listening:!0,addRoute:h,removeRoute:v,hasRoute:g,getRoutes:m,resolve:_,options:e,push:k,replace:x,go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:n.add,beforeResolve:a.add,afterEach:i.add,onError:K.add,isReady:H,install(X){const de=this;X.component("RouterLink",v$e),X.component("RouterView",_$e),X.config.globalProperties.$router=de,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>s(c)}),hr&&!Y&&c.value===Br&&(Y=!0,k(r.location).catch(se=>{Mt("Unexpected error when starting the router:",se)}));const J={};for(const se in Br)J[se]=S(()=>c.value[se]);X.provide(Kd,de),X.provide(Yf,Ct(J)),X.provide(O1,c);const G=X.unmount;oe.add(X),X.unmount=function(){oe.delete(X),oe.size<1&&(u=Br,I&&I(),I=null,c.value=Br,Y=!1,N=!1),G()},hr&&x$e(X,de,t)}};return pe}function wa(e){return e.reduce((t,o)=>t.then(()=>o()),Promise.resolve())}function A$e(e,t){const o=[],l=[],r=[],n=Math.max(t.matched.length,e.matched.length);for(let a=0;a fn(u,i))?l.push(i):o.push(i));const c=e.matched[a];c&&(t.matched.find(u=>fn(u,c))||r.push(c))}return[o,l,r]}function U7(){return Be(Kd)}function sc(){return Be(Yf)}const O$e="#bfcbd9",V$e="rgba(0, 0, 0, 0.7)",L$e="#64c3a4",I$e="rgb(40, 43, 50)",P$e="#ffffff",R$e="#1f2d3d",H$e="#001528",N$e="200px",B$e="#ffffff",D$e="#001529",F$e="#409EFF",j$e="#67C23A",K$e="#F56C6C",q$e="#909399",W$e="#E6A23C",xa={menuColor:O$e,menuLightColor:V$e,menuColorActive:L$e,menuBackground:I$e,menuLightBackground:P$e,subMenuBackground:R$e,subMenuHover:H$e,sideBarWidth:N$e,logoTitleColor:B$e,logoLightTitleColor:D$e,primaryColor:F$e,successColor:j$e,dangerColor:K$e,infoColor:q$e,warningColor:W$e},hv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAI8AAACPCAYAAADDY4iTAAAACXBIWXMAAAsSAAALEgHS3X78AAANwklEQVR4nO1dS24iSRqObs3Km/GcoJilJaShT1D0AdB4Nt42dQA07hO0fYKmxAEKb70ZWxyg4QRjJCQvG04wxcbbGiX6wvUT5CMef0RGJPFJyGVMQWby5f9+/PDt2zeRkWGDH/NVy7BFJk+GEUab2eVoMxuITJ4ME4w2s1shxFYIcV38t7/kq5dRh0LSCCHGQoiCOB/oSzN5Mkox2sx6hDR/LXtNJk/GEUab2TVI88+mK5PJk1EQZgg7ZlwlZcqQyXOGgEoa4nFtQhhgKTJ5ug8YvAPyGKqGry0yeRIHIUeBnvIYWEgVHRTuusjpiUgA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fn/GwROuj8ZLRMngxrZLWVYY1Mngw7CCH+D6PP9mdukOVXAAAAAElFTkSuQmCC";const Yt=(e,t)=>{const o=e.__vccOpts||e;for(const[l,r]of t)o[l]=r;return o},U$e=["src"],Y$e={__name:"Logo",props:{collapse:{type:Boolean,required:!0}},setup(e){V("\u79CD\u690D\u4E1A\u751F\u4EA7\u76D1\u7BA1");const t=wl(),o=S(()=>t.sideTheme);return(l,r)=>{const n=Ve("router-link");return y(),$("div",{class:E(["sidebar-logo-container",{collapse:e.collapse}]),style:He({backgroundColor:(s(o)==="theme-dark","")})},[F(Ut,{name:"sidebarLogoFade"},{default:U(()=>[e.collapse?(y(),ne(n,{key:"collapse",class:"sidebar-logo-link",to:"/"},{default:U(()=>[te(' '),te(` {{ title }}
`)]),_:1})):(y(),ne(n,{key:"expand",class:"sidebar-logo-link",to:"/"},{default:U(()=>[Je(" \u2003 "),s(hv)?(y(),$("img",{key:0,src:s(hv),class:"sidebar-logo"},null,8,U$e)):te("v-if",!0),Je(" \xA0 "),C("h1",{class:"sidebar-title",style:He({color:(s(o)==="theme-dark","#64c3a4")})},"\u79CD\u690D\u4E1A\u751F\u4EA7\u76D1\u7BA1\u6570\u5B57\u5316\u7CFB\u7EDF",4)]),_:1}))]),_:1})],6)}}},G$e=Yt(Y$e,[["__scopeId","data-v-0046ad71"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/components/Sidebar/Logo.vue"]]);function L1(e){return e.indexOf("http://")!==-1||e.indexOf("https://")!==-1}function Ns(e){return/^(https?:|mailto:|tel:)/.test(e)}const Z$e={__name:"Link",props:{to:{type:[String,Object],required:!0}},setup(e){const t=e,o=S(()=>Ns(t.to)),l=S(()=>o.value?"a":"router-link");function r(){return o.value?{href:t.to,target:"_blank",rel:"noopener"}:{to:t.to}}return(n,a)=>(y(),ne(pt(s(l)),sl(Us(r())),{default:U(()=>[ge(n.$slots,"default")]),_:3},16))}},X$e=Yt(Z$e,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/components/Sidebar/Link.vue"]]),J$e={key:0},Q$e=["title"],eSe=["title"],tSe={__name:"SidebarItem",props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(e){const t=e,o=V({});function l(a=[],i){a||(a=[]);const c=a.filter(u=>u.hidden?!1:(o.value=u,!0));return c.length===1?!0:c.length===0?(o.value={...i,path:"",noShowingChildren:!0},!0):!1}function r(a,i){if(Ns(a))return a;if(Ns(t.basePath))return t.basePath;if(i){let c=JSON.parse(i);return{path:z1(t.basePath+"/"+a),query:c}}return z1(t.basePath+"/"+a)}function n(a){return a.length>5?a:""}return(a,i)=>{const c=Ve("svg-icon"),u=Ve("el-menu-item"),d=Ve("sidebar-item",!0),p=Ve("el-sub-menu");return e.item.hidden?te("v-if",!0):(y(),$("div",J$e,[l(e.item.children,e.item)&&(!s(o).children||s(o).noShowingChildren)&&!e.item.alwaysShow?(y(),$(Pe,{key:0},[s(o).meta?(y(),ne(s(X$e),{key:0,to:r(s(o).path,s(o).query)},{default:U(()=>[F(u,{index:r(s(o).path),class:E({"submenu-title-noDropdown":!e.isNest})},{title:U(()=>[C("span",{class:"menu-title",title:n(s(o).meta.title)},Ce(s(o).meta.title),9,Q$e)]),default:U(()=>[F(c,{"icon-class":s(o).meta.icon||e.item.meta&&e.item.meta.icon},null,8,["icon-class"])]),_:1},8,["index","class"])]),_:1},8,["to"])):te("v-if",!0)],64)):(y(),ne(p,{key:1,ref:"subMenu",index:r(e.item.path),"popper-append-to-body":""},Cr({default:U(()=>[(y(!0),$(Pe,null,ut(e.item.children,f=>(y(),ne(d,{key:f.path,"is-nest":!0,item:f,"base-path":r(f.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:2},[e.item.meta?{name:"title",fn:U(()=>[F(c,{"icon-class":e.item.meta&&e.item.meta.icon},null,8,["icon-class"]),C("span",{class:"menu-title",title:n(e.item.meta.title)},Ce(e.item.meta.title),9,eSe)]),key:"0"}:void 0]),1032,["index"]))]))}}},oSe=Yt(tSe,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/components/Sidebar/SidebarItem.vue"]]),lSe={__name:"index",setup(e){const t=sc();nl();const o=wl(),l=Ci(),r=S(()=>l.sidebarRouters),n=S(()=>o.sidebarLogo),a=S(()=>o.sideTheme),i=S(()=>o.theme),c=S(()=>{const{meta:u,path:d}=t;return u.activeMenu?u.activeMenu:d});return(u,d)=>{const p=Ve("el-menu"),f=Ve("el-scrollbar");return y(),$("div",{class:E(["leftment",{"has-logo":s(n)}]),style:He({backgroundColor:s(a)==="theme-dark"?s(xa).menuBackground:s(xa).menuLightBackground})},[te(''),F(f,{class:E(s(a)),"wrap-class":"scrollbar-wrapper"},{default:U(()=>[F(p,{"default-active":s(c),collapse:u.isCollapse,"background-color":s(a)==="theme-dark"?s(xa).menuBackground:s(xa).menuLightBackground,"text-color":s(a)==="theme-dark"?s(xa).menuColor:s(xa).menuLightColor,"unique-opened":!0,"active-text-color":s(i),"collapse-transition":!1,mode:"vertical"},{default:U(()=>[(y(!0),$(Pe,null,ut(s(r),(h,v)=>(y(),ne(s(oSe),{key:h.path+v,item:h,"base-path":h.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color"])]),_:1},8,["class"])],6)}}},rSe=Yt(lSe,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/components/Sidebar/index.vue"]]),nSe=["id","src"],aSe={__name:"index",props:{src:{type:String,default:"/"},iframeId:{type:String}},setup(e){const t=V(document.documentElement.clientHeight-94.5+"px");return(o,l)=>(y(),$("div",{style:He("height:"+s(t))},[C("iframe",{id:e.iframeId,style:{width:"100%",height:"100%"},src:e.src,frameborder:"no"},null,8,nSe)],4))}},Y7=Yt(aSe,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/components/InnerLink/index.vue"]]),so=xi("tags-view",{state:()=>({visitedViews:[],cachedViews:[],iframeViews:[]}),actions:{addView(e){this.addVisitedView(e),this.addCachedView(e)},addIframeView(e){this.iframeViews.some(t=>t.path===e.path)||this.iframeViews.push(Object.assign({},e,{title:e.meta.title||"no-name"}))},addVisitedView(e){this.visitedViews.some(t=>t.path===e.path)||this.visitedViews.push(Object.assign({},e,{title:e.meta.title||"no-name"}))},addCachedView(e){this.cachedViews.includes(e.name)||e.meta.noCache||this.cachedViews.push(e.name)},delView(e){return new Promise(t=>{this.delVisitedView(e),this.delCachedView(e),t({visitedViews:[...this.visitedViews],cachedViews:[...this.cachedViews]})})},delVisitedView(e){return new Promise(t=>{for(const[o,l]of this.visitedViews.entries())if(l.path===e.path){this.visitedViews.splice(o,1);break}this.iframeViews=this.iframeViews.filter(o=>o.path!==e.path),t([...this.visitedViews])})},delIframeView(e){return new Promise(t=>{this.iframeViews=this.iframeViews.filter(o=>o.path!==e.path),t([...this.iframeViews])})},delCachedView(e){return new Promise(t=>{const o=this.cachedViews.indexOf(e.name);o>-1&&this.cachedViews.splice(o,1),t([...this.cachedViews])})},delOthersViews(e){return new Promise(t=>{this.delOthersVisitedViews(e),this.delOthersCachedViews(e),t({visitedViews:[...this.visitedViews],cachedViews:[...this.cachedViews]})})},delOthersVisitedViews(e){return new Promise(t=>{this.visitedViews=this.visitedViews.filter(o=>o.meta.affix||o.path===e.path),this.iframeViews=this.iframeViews.filter(o=>o.path===e.path),t([...this.visitedViews])})},delOthersCachedViews(e){return new Promise(t=>{const o=this.cachedViews.indexOf(e.name);o>-1?this.cachedViews=this.cachedViews.slice(o,o+1):this.cachedViews=[],t([...this.cachedViews])})},delAllViews(e){return new Promise(t=>{this.delAllVisitedViews(e),this.delAllCachedViews(e),t({visitedViews:[...this.visitedViews],cachedViews:[...this.cachedViews]})})},delAllVisitedViews(e){return new Promise(t=>{const o=this.visitedViews.filter(l=>l.meta.affix);this.visitedViews=o,this.iframeViews=[],t([...this.visitedViews])})},delAllCachedViews(e){return new Promise(t=>{this.cachedViews=[],t([...this.cachedViews])})},updateVisitedView(e){for(let t of this.visitedViews)if(t.path===e.path){t=Object.assign(t,e);break}},delRightTags(e){return new Promise(t=>{const o=this.visitedViews.findIndex(l=>l.path===e.path);o!==-1&&(this.visitedViews=this.visitedViews.filter((l,r)=>{if(r<=o||l.meta&&l.meta.affix)return!0;const n=this.cachedViews.indexOf(l.name);if(n>-1&&this.cachedViews.splice(n,1),l.meta.link){const a=this.iframeViews.findIndex(i=>i.path===l.path);this.iframeViews.splice(a,1)}return!1}),t([...this.visitedViews]))})},delLeftTags(e){return new Promise(t=>{const o=this.visitedViews.findIndex(l=>l.path===e.path);o!==-1&&(this.visitedViews=this.visitedViews.filter((l,r)=>{if(r>=o||l.meta&&l.meta.affix)return!0;const n=this.cachedViews.indexOf(l.name);if(n>-1&&this.cachedViews.splice(n,1),l.meta.link){const a=this.iframeViews.findIndex(i=>i.path===l.path);this.iframeViews.splice(a,1)}return!1}),t([...this.visitedViews]))})}}}),iSe={__name:"index",setup(e){const t=sc(),o=so();return(l,r)=>(y(),ne(op,{name:"fade-transform",mode:"out-in"},{default:U(()=>[(y(!0),$(Pe,null,ut(s(o).iframeViews,(n,a)=>lt((y(),ne(s(Y7),{key:n.path,iframeId:"iframe"+a,src:n.meta.link},null,8,["iframeId","src"])),[[xt,s(t).path===n.path]])),128))]),_:1}))}},sSe=Yt(iSe,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/components/IframeToggle/index.vue"]]);const cSe={class:"app-main"},uSe={__name:"AppMain",setup(e){const t=so();return(o,l)=>{const r=Ve("router-view");return y(),$("section",cSe,[F(r,null,{default:U(({Component:n,route:a})=>[F(Ut,{name:"fade-transform",mode:"out-in"},{default:U(()=>[(y(),ne(ky,{include:s(t).cachedViews},[a.meta.link?te("v-if",!0):(y(),ne(pt(n),{key:a.path}))],1032,["include"]))]),_:2},1024)]),_:1}),F(s(sSe))])}}},dSe=Yt(uSe,[["__scopeId","data-v-e7e0a46a"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/components/AppMain.vue"]]);const pSe={__name:"index",setup(e){const t=V(null),o=V(null),l=["/index","/user/profile"],r=nl(),n=wl(),a=Ci(),i=sc(),c=U7(),u=S(()=>n.theme),d=S(()=>a.topbarRouters),p=S(()=>{let _=[];return d.value.map(w=>{w.hidden!==!0&&(w.path==="/"?_.push(w.children[0]):_.push(w))}),_}),f=S(()=>{let _=[];return d.value.map(w=>{for(let b in w.children)w.children[b].parentPath===void 0&&(w.path==="/"?w.children[b].path="/"+w.children[b].path:L1(w.children[b].path)||(w.children[b].path=w.path+"/"+w.children[b].path),w.children[b].parentPath=w.path),_.push(w.children[b])}),rs.concat(_)}),h=S(()=>{const _=i.path;let w=_;if(_!==void 0&&_.lastIndexOf("/")>0&&l.indexOf(_)===-1){const b=_.substring(1,_.length);w="/"+b.substring(0,b.indexOf("/")),i.meta.link||r.toggleSideBarHide(!1)}else i.children||(w=_,r.toggleSideBarHide(!0));return g(w),w});function v(){const _=document.body.getBoundingClientRect().width/3;t.value=parseInt(_/85)}function m(_,w){o.value=_;const b=d.value.find(k=>k.path===_);L1(_)?window.open(_,"_blank"):!b||!b.children?(c.push({path:_}),r.toggleSideBarHide(!0)):(g(_),r.toggleSideBarHide(!1))}function g(_){let w=[];return f.value&&f.value.length>0&&f.value.map(b=>{(_==b.parentPath||_=="index"&&b.path=="")&&w.push(b)}),w.length>0?a.setSidebarRouters(w):r.toggleSideBarHide(!0),w}return Qe(()=>{window.addEventListener("resize",v)}),Rt(()=>{window.removeEventListener("resize",v)}),Qe(()=>{v()}),(_,w)=>{const b=Ve("svg-icon"),k=Ve("el-menu-item"),x=Ve("el-sub-menu"),z=Ve("el-menu");return y(),ne(z,{"default-active":s(h),mode:"horizontal",onSelect:m,ellipsis:!1},{default:U(()=>[(y(!0),$(Pe,null,ut(s(p),(T,M)=>(y(),$(Pe,null,[M [F(b,{"icon-class":T.meta.icon},null,8,["icon-class"]),Je(" "+Ce(T.meta.title),1)]),_:2},1032,["style","index"])):te("v-if",!0)],64))),256)),te(" \u9876\u90E8\u83DC\u5355\u8D85\u51FA\u6570\u91CF\u6298\u53E0 "),s(p).length>s(t)?(y(),ne(x,{key:0,style:He({"--theme":s(u)}),index:"more"},{title:U(()=>[Je("\u66F4\u591A\u83DC\u5355")]),default:U(()=>[(y(!0),$(Pe,null,ut(s(p),(T,M)=>(y(),$(Pe,null,[M>=s(t)?(y(),ne(k,{index:T.path,key:M},{default:U(()=>[F(b,{"icon-class":T.meta.icon},null,8,["icon-class"]),Je(" "+Ce(T.meta.title),1)]),_:2},1032,["index"])):te("v-if",!0)],64))),256))]),_:1},8,["style"])):te("v-if",!0)]),_:1},8,["default-active"])}}},fSe=Yt(pSe,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/TopNav/index.vue"]]);const hSe={__name:"index",setup(e){wl();const{isFullscreen:t,enter:o,exit:l,toggle:r}=ME();V(!0),Qe(()=>{document.querySelector(".navDiv"),document.querySelector(".app-main"),document.querySelector(".headers"),document.querySelector(".leftWra"),document.querySelector(".rightWra"),document.querySelector(".leftment"),document.querySelector(".main-container")});const n=()=>{document.querySelector(".navDiv").style.display="none",document.querySelector(".navbar").style.display="none",document.querySelector(".app-main").style.height="100%",document.querySelector(".headers").style.transform="translate(0, 0)",document.querySelector(".leftment").style.display="none",document.querySelector(".main-container").style.marginLeft="0",document.querySelector(".leftWra")&&(document.querySelector(".leftWra").style.top="80px"),document.querySelector(".rightWra").style.top="80px"};return(a,i)=>{const c=Ve("svg-icon");return y(),$("div",{onClick:n},[F(c,{"icon-class":s(t)?"exit-fullscreen":"fullscreen"},null,8,["icon-class"])])}}},vSe=Yt(hSe,[["__scopeId","data-v-58f47df7"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Screenfull/index.vue"]]);const G7=e=>(U1("data-v-bd143a29"),e=e(),Y1(),e),mSe={class:"navbar"},gSe={class:"right-menu"},bSe={class:"avatar-container"},_Se={class:"avatar-wrapper"},ySe=["src"],wSe=G7(()=>C("span",null,"\u5E03\u5C40\u8BBE\u7F6E",-1)),xSe=G7(()=>C("span",null,"\u9000\u51FA\u767B\u5F55",-1)),kSe={__name:"Navbar",emits:["setLayout"],setup(e,{emit:t}){const o=nl(),l=xr(),r=wl();function n(c){switch(c){case"setLayout":i();break;case"logout":a();break}}function a(){fr.confirm("\u786E\u5B9A\u6CE8\u9500\u5E76\u9000\u51FA\u7CFB\u7EDF\u5417\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{l.logOut().then(()=>{location.href="/index"})}).catch(()=>{})}function i(){t("setLayout")}return(c,u)=>{const d=Ve("el-button"),p=Ve("caret-bottom"),f=Ve("el-icon"),h=Ve("el-dropdown-item"),v=Ve("router-link"),m=Ve("el-dropdown-menu"),g=Ve("el-dropdown");return y(),$("div",mSe,[te(''),te(' '),F(G$e),s(r).topNav?(y(),ne(s(fSe),{key:0,id:"topmenu-container",class:"topmenu-container"})):te("v-if",!0),C("div",gSe,[s(o).device!=="mobile"?(y(),$(Pe,{key:0},[te(' '),F(d,{class:"mode"},{default:U(()=>[Je("\u5217\u8868\u6A21\u5F0F")]),_:1}),F(s(vSe),{id:"screenfull",class:"right-menu-item hover-effect"}),te(` \r `)],64)):te("v-if",!0),C("div",bSe,[F(g,{onCommand:n,class:"right-menu-item hover-effect",trigger:"click"},{dropdown:U(()=>[F(m,null,{default:U(()=>[F(v,{to:"/user/profile"},{default:U(()=>[F(h,null,{default:U(()=>[Je("\u4E2A\u4EBA\u4E2D\u5FC3")]),_:1})]),_:1}),F(h,{command:"setLayout"},{default:U(()=>[wSe]),_:1}),F(h,{divided:"",command:"logout"},{default:U(()=>[xSe]),_:1})]),_:1})]),default:U(()=>[C("div",_Se,[C("img",{src:s(l).avatar,class:"user-avatar"},null,8,ySe),F(f,null,{default:U(()=>[F(p)]),_:1})])]),_:1})])])])}}},CSe=Yt(kSe,[["__scopeId","data-v-bd143a29"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/components/Navbar.vue"]]),$Se="/assets/dark.78ba5f53.svg",SSe="/assets/light.a053ce48.svg";const xl=e=>(U1("data-v-5fbf36ff"),e=e(),Y1(),e),zSe=xl(()=>C("div",{class:"setting-drawer-title"},[C("h3",{class:"drawer-title"},"\u4E3B\u9898\u98CE\u683C\u8BBE\u7F6E")],-1)),ESe={class:"setting-drawer-block-checbox"},MSe=xl(()=>C("img",{src:$Se,alt:"dark"},null,-1)),TSe={key:0,class:"setting-drawer-block-checbox-selectIcon",style:{display:"block"}},ASe={"aria-label":"\u56FE\u6807: check",class:"anticon anticon-check"},OSe=["fill"],VSe=xl(()=>C("path",{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"},null,-1)),LSe=[VSe],ISe=xl(()=>C("img",{src:SSe,alt:"light"},null,-1)),PSe={key:0,class:"setting-drawer-block-checbox-selectIcon",style:{display:"block"}},RSe={"aria-label":"\u56FE\u6807: check",class:"anticon anticon-check"},HSe=["fill"],NSe=xl(()=>C("path",{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"},null,-1)),BSe=[NSe],DSe={class:"drawer-item"},FSe=xl(()=>C("span",null,"\u4E3B\u9898\u989C\u8272",-1)),jSe={class:"comp-style"},KSe=xl(()=>C("h3",{class:"drawer-title"},"\u7CFB\u7EDF\u5E03\u5C40\u914D\u7F6E",-1)),qSe={class:"drawer-item"},WSe=xl(()=>C("span",null,"\u5F00\u542F TopNav",-1)),USe={class:"comp-style"},YSe={class:"drawer-item"},GSe=xl(()=>C("span",null,"\u5F00\u542F Tags-Views",-1)),ZSe={class:"comp-style"},XSe={class:"drawer-item"},JSe=xl(()=>C("span",null,"\u56FA\u5B9A Header",-1)),QSe={class:"comp-style"},eze={class:"drawer-item"},tze=xl(()=>C("span",null,"\u663E\u793A Logo",-1)),oze={class:"comp-style"},lze={class:"drawer-item"},rze=xl(()=>C("span",null,"\u52A8\u6001\u6807\u9898",-1)),nze={class:"comp-style"},aze={__name:"index",setup(e,{expose:t}){const{proxy:o}=ot(),l=nl(),r=wl(),n=Ci(),a=V(!1),i=V(r.theme),c=V(r.sideTheme),u=S(()=>r),d=V(["#409EFF","#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585"]),p=S({get:()=>u.value.topNav,set:x=>{r.changeSetting({key:"topNav",value:x}),x||(l.toggleSideBarHide(!1),n.setSidebarRouters(n.defaultRoutes))}}),f=S({get:()=>u.value.tagsView,set:x=>{r.changeSetting({key:"tagsView",value:x})}}),h=S({get:()=>u.value.fixedHeader,set:x=>{r.changeSetting({key:"fixedHeader",value:x})}}),v=S({get:()=>u.value.sidebarLogo,set:x=>{r.changeSetting({key:"sidebarLogo",value:x})}}),m=S({get:()=>u.value.dynamicTitle,set:x=>{r.changeSetting({key:"dynamicTitle",value:x}),s7()}});function g(x){r.changeSetting({key:"theme",value:x}),i.value=x,c7(x)}function _(x){r.changeSetting({key:"sideTheme",value:x}),c.value=x}function w(){o.$modal.loading("\u6B63\u5728\u4FDD\u5B58\u5230\u672C\u5730\uFF0C\u8BF7\u7A0D\u5019...");let x={topNav:u.value.topNav,tagsView:u.value.tagsView,fixedHeader:u.value.fixedHeader,sidebarLogo:u.value.sidebarLogo,dynamicTitle:u.value.dynamicTitle,sideTheme:u.value.sideTheme,theme:u.value.theme};localStorage.setItem("layout-setting",JSON.stringify(x)),setTimeout(o.$modal.closeLoading(),1e3)}function b(){o.$modal.loading("\u6B63\u5728\u6E05\u9664\u8BBE\u7F6E\u7F13\u5B58\u5E76\u5237\u65B0\uFF0C\u8BF7\u7A0D\u5019..."),localStorage.removeItem("layout-setting"),setTimeout("window.location.reload()",1e3)}function k(){a.value=!0}return t({openSetting:k}),(x,z)=>{const T=Ve("el-color-picker"),M=Ve("el-divider"),O=Ve("el-switch"),A=Ve("el-button"),D=Ve("el-drawer");return y(),ne(D,{modelValue:s(a),"onUpdate:modelValue":z[8]||(z[8]=I=>gt(a)?a.value=I:null),withHeader:!1,direction:"rtl",size:"300px"},{default:U(()=>[zSe,C("div",ESe,[C("div",{class:"setting-drawer-block-checbox-item",onClick:z[0]||(z[0]=I=>_("theme-dark"))},[MSe,s(c)==="theme-dark"?(y(),$("div",TSe,[C("i",ASe,[(y(),$("svg",{viewBox:"64 64 896 896","data-icon":"check",width:"1em",height:"1em",fill:s(i),"aria-hidden":"true",focusable:"false",class:""},LSe,8,OSe))])])):te("v-if",!0)]),C("div",{class:"setting-drawer-block-checbox-item",onClick:z[1]||(z[1]=I=>_("theme-light"))},[ISe,s(c)==="theme-light"?(y(),$("div",PSe,[C("i",RSe,[(y(),$("svg",{viewBox:"64 64 896 896","data-icon":"check",width:"1em",height:"1em",fill:s(i),"aria-hidden":"true",focusable:"false",class:""},BSe,8,HSe))])])):te("v-if",!0)])]),C("div",DSe,[FSe,C("span",jSe,[F(T,{modelValue:s(i),"onUpdate:modelValue":z[2]||(z[2]=I=>gt(i)?i.value=I:null),predefine:s(d),onChange:g},null,8,["modelValue","predefine"])])]),F(M),KSe,C("div",qSe,[WSe,C("span",USe,[F(O,{modelValue:s(p),"onUpdate:modelValue":z[3]||(z[3]=I=>gt(p)?p.value=I:null),class:"drawer-switch"},null,8,["modelValue"])])]),C("div",YSe,[GSe,C("span",ZSe,[F(O,{modelValue:s(f),"onUpdate:modelValue":z[4]||(z[4]=I=>gt(f)?f.value=I:null),class:"drawer-switch"},null,8,["modelValue"])])]),C("div",XSe,[JSe,C("span",QSe,[F(O,{modelValue:s(h),"onUpdate:modelValue":z[5]||(z[5]=I=>gt(h)?h.value=I:null),class:"drawer-switch"},null,8,["modelValue"])])]),C("div",eze,[tze,C("span",oze,[F(O,{modelValue:s(v),"onUpdate:modelValue":z[6]||(z[6]=I=>gt(v)?v.value=I:null),class:"drawer-switch"},null,8,["modelValue"])])]),C("div",lze,[rze,C("span",nze,[F(O,{modelValue:s(m),"onUpdate:modelValue":z[7]||(z[7]=I=>gt(m)?m.value=I:null),class:"drawer-switch"},null,8,["modelValue"])])]),F(M),F(A,{type:"primary",plain:"",icon:"DocumentAdd",onClick:w},{default:U(()=>[Je("\u4FDD\u5B58\u914D\u7F6E")]),_:1}),F(A,{plain:"",icon:"Refresh",onClick:b},{default:U(()=>[Je("\u91CD\u7F6E\u914D\u7F6E")]),_:1})]),_:1},8,["modelValue"])}}},Z7=Yt(aze,[["__scopeId","data-v-5fbf36ff"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/components/Settings/index.vue"]]);const ize={__name:"ScrollPane",setup(e,{expose:t,emit:o}){const l=V(4),{proxy:r}=ot(),n=S(()=>r.$refs.scrollContainer.$refs.wrap$);Qe(()=>{n.value.addEventListener("scroll",i,!0)}),Rt(()=>{n.value.removeEventListener("scroll",i)});function a(p){const f=p.wheelDelta||-p.deltaY*40,h=n.value;h.scrollLeft=h.scrollLeft+f/4}const i=()=>{o("scroll")},c=so(),u=S(()=>c.visitedViews);function d(p){const h=r.$refs.scrollContainer.$el.offsetWidth,v=n.value;let m=null,g=null;if(u.value.length>0&&(m=u.value[0],g=u.value[u.value.length-1]),m===p)v.scrollLeft=0;else if(g===p)v.scrollLeft=v.scrollWidth-h;else{const _=document.getElementsByClassName("tags-view-item"),w=u.value.findIndex(T=>T===p);let b=null,k=null;for(const T in _)T!=="length"&&Object.hasOwnProperty.call(_,T)&&(_[T].dataset.path===u.value[w-1].path&&(b=_[T]),_[T].dataset.path===u.value[w+1].path&&(k=_[T]));const x=k.offsetLeft+k.offsetWidth+l.value,z=b.offsetLeft-l.value;x>v.scrollLeft+h?v.scrollLeft=x-h:z\r - {const h=Ve("el-scrollbar");return y(),ne(h,{ref:"scrollContainer",vertical:!1,class:"scroll-container",onWheel:Ze(a,["prevent"])},{default:U(()=>[ge(p.$slots,"default",{},void 0,!0)]),_:3},8,["onWheel"])}}},sze=Yt(ize,[["__scopeId","data-v-6e0e10fc"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/components/TagsView/ScrollPane.vue"]]);const cze={id:"tags-view-container",class:"tags-view-container"},uze=["onClick"],dze={__name:"index",setup(e){const t=V(!1),o=V(0),l=V(0),r=V({}),n=V([]),a=V(null),{proxy:i}=ot(),c=sc(),u=U7(),d=S(()=>so().visitedViews),p=S(()=>Ci().routes),f=S(()=>wl().theme);me(c,()=>{k(),x()}),me(t,N=>{N?document.body.addEventListener("click",B):document.body.removeEventListener("click",B)}),Qe(()=>{b(),k()});function h(N){return N.path===c.path}function v(N){return h(N)?{"background-color":f.value,"border-color":f.value}:{}}function m(N){return N.meta&&N.meta.affix}function g(){try{return r.value.fullPath===d.value[1].fullPath||r.value.fullPath==="/index"}catch{return!1}}function _(){try{return r.value.fullPath===d.value[d.value.length-1].fullPath}catch{return!1}}function w(N,L=""){let H=[];return N.forEach(R=>{if(R.meta&&R.meta.affix){const Z=z1(L+"/"+R.path);H.push({fullPath:Z,path:Z,name:R.name,meta:{...R.meta}})}if(R.children){const Z=w(R.children,R.path);Z.length>=1&&(H=[...H,...Z])}}),H}function b(){const N=w(p.value);n.value=N;for(const L of N)L.name&&so().addVisitedView(L)}function k(){const{name:N}=c;return N&&(so().addView(c),c.meta.link&&so().addIframeView(c)),!1}function x(){Ne(()=>{for(const N of d.value)N.path===c.path&&(a.value.moveToTarget(N),N.fullPath!==c.fullPath&&so().updateVisitedView(c))})}function z(N){i.$tab.refreshPage(N),c.meta.link&&so().delIframeView(c)}function T(N){i.$tab.closePage(N).then(({visitedViews:L})=>{h(N)&&I(L,N)})}function M(){i.$tab.closeRightPage(r.value).then(N=>{N.find(L=>L.fullPath===c.fullPath)||I(N)})}function O(){i.$tab.closeLeftPage(r.value).then(N=>{N.find(L=>L.fullPath===c.fullPath)||I(N)})}function A(){u.push(r.value).catch(()=>{}),i.$tab.closeOtherPage(r.value).then(()=>{x()})}function D(N){i.$tab.closeAllPage().then(({visitedViews:L})=>{n.value.some(H=>H.path===c.path)||I(L,N)})}function I(N,L){const H=N.slice(-1)[0];H?u.push(H.fullPath):L.name==="Dashboard"?u.replace({path:"/redirect"+L.fullPath}):u.push("/")}function P(N,L){const R=i.$el.getBoundingClientRect().left,re=i.$el.offsetWidth-105,Y=L.clientX-R+15;Y>re?l.value=re:l.value=Y,o.value=L.clientY,t.value=!0,r.value=N}function B(){t.value=!1}function K(){B()}return(N,L)=>{const H=Ve("close"),R=Ve("router-link"),Z=Ve("refresh-right"),re=Ve("circle-close"),Y=Ve("back"),oe=Ve("right");return y(),$("div",cze,[F(s(sze),{ref_key:"scrollPaneRef",ref:a,class:"tags-view-wrapper",onScroll:K},{default:U(()=>[(y(!0),$(Pe,null,ut(s(d),pe=>(y(),ne(R,{key:pe.path,"data-path":pe.path,class:E([h(pe)?"active":"","tags-view-item"]),to:{path:pe.path,query:pe.query,fullPath:pe.fullPath},style:He(v(pe)),onMouseup:Ze(X=>m(pe)?"":T(pe),["middle"]),onContextmenu:Ze(X=>P(pe,X),["prevent"])},{default:U(()=>[Je(Ce(pe.title)+" ",1),m(pe)?te("v-if",!0):(y(),$("span",{key:0,onClick:Ze(X=>T(pe),["prevent","stop"])},[F(H,{class:"el-icon-close",style:{width:"1em",height:"1em","vertical-align":"middle"}})],8,uze))]),_:2},1032,["data-path","class","to","style","onMouseup","onContextmenu"]))),128))]),_:1},512),lt(C("ul",{style:He({left:s(l)+"px",top:s(o)+"px"}),class:"contextmenu"},[C("li",{onClick:L[0]||(L[0]=pe=>z(s(r)))},[F(Z,{style:{width:"1em",height:"1em"}}),Je(" \u5237\u65B0\u9875\u9762 ")]),m(s(r))?te("v-if",!0):(y(),$("li",{key:0,onClick:L[1]||(L[1]=pe=>T(s(r)))},[F(H,{style:{width:"1em",height:"1em"}}),Je(" \u5173\u95ED\u5F53\u524D ")])),C("li",{onClick:A},[F(re,{style:{width:"1em",height:"1em"}}),Je(" \u5173\u95ED\u5176\u4ED6 ")]),g()?te("v-if",!0):(y(),$("li",{key:1,onClick:O},[F(Y,{style:{width:"1em",height:"1em"}}),Je(" \u5173\u95ED\u5DE6\u4FA7 ")])),_()?te("v-if",!0):(y(),$("li",{key:2,onClick:M},[F(oe,{style:{width:"1em",height:"1em"}}),Je(" \u5173\u95ED\u53F3\u4FA7 ")])),C("li",{onClick:L[2]||(L[2]=pe=>D(s(r)))},[F(re,{style:{width:"1em",height:"1em"}}),Je(" \u5168\u90E8\u5173\u95ED ")])],4),[[xt,s(t)]])])}}},pze=Yt(dze,[["__scopeId","data-v-ad7a7ef0"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/components/TagsView/index.vue"]]);const fze={__name:"index",setup(e){const t=wl(),o=S(()=>t.theme);S(()=>t.sideTheme);const l=S(()=>nl().sidebar),r=S(()=>nl().device),n=S(()=>t.tagsView),a=S(()=>t.fixedHeader),i=S(()=>({withoutAnimation:l.value.withoutAnimation,mobile:r.value==="mobile"})),{width:c,height:u}=A8(),d=992;Oo(()=>{r.value==="mobile"&&l.value.opened&&nl().closeSideBar({withoutAnimation:!1}),c.value-1 (y(),$("div",{class:E([s(i),"app-wrapper"]),style:He({"--current-color":s(o)})},[s(r)==="mobile"&&s(l).opened?(y(),$("div",{key:0,class:"drawer-bg",onClick:p})):te("v-if",!0),s(l).hide?te("v-if",!0):(y(),ne(rSe,{key:1,class:"sidebar-container"})),C("div",{class:E([{hasTagsView:s(n),sidebarHide:s(l).hide},"main-container"])},[C("div",{class:E(["navDiv",{"fixed-header":s(a)}])},[te(' '),s(n)?(y(),ne(s(pze),{key:0})):te("v-if",!0)],2),F(s(dSe)),F(s(Z7),{ref_key:"settingRef",ref:f},null,512)],2)],6))}},gr=Yt(fze,[["__scopeId","data-v-051739fd"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/index.vue"]]),rs=[{path:"/redirect",component:gr,hidden:!0,children:[{path:"/redirect/:path(.*)",component:()=>tt(()=>import("./index.f7b39151.js"),[])}]},{path:"/login",component:()=>tt(()=>import("./login.9fd421b0.js"),["assets/login.9fd421b0.js","assets/login.75dad9b4.css"]),hidden:!0},{path:"/register",component:()=>tt(()=>import("./register.b82bae23.js"),["assets/register.b82bae23.js","assets/register.5526ccc7.css"]),hidden:!0},{path:"/:pathMatch(.*)*",component:()=>tt(()=>import("./404.68c4eb6f.js"),["assets/404.68c4eb6f.js","assets/404.dc97b6f1.css"]),hidden:!0},{path:"/401",component:()=>tt(()=>import("./401.515940fa.js"),["assets/401.515940fa.js","assets/401.4142fde3.css"]),hidden:!0},{path:"",component:gr,redirect:"/crops/Classify",children:[{path:"/index",component:()=>tt(()=>import("./index.4bf8bb31.js"),["assets/index.4bf8bb31.js","assets/downloads.e955445d.js","assets/close1.45635d81.js","assets/linesGL.badda9a7.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/useEcharts.f096c4b4.js","assets/index.26438572.css"]),name:"Index",meta:{title:"\u75C5\u866B\u5BB3\u76D1\u6D4B\u9632\u63A7",icon:"a3",affix:!0}}]},{path:"/user",component:gr,hidden:!0,redirect:"noredirect",children:[{path:"profile",component:()=>tt(()=>import("./index.a62912e0.js"),["assets/index.a62912e0.js","assets/userAvatar.d03c8d49.js","assets/user.e8e83a76.js","assets/userAvatar.7f20522d.css","assets/userInfo.d48bcd65.js","assets/resetPwd.20a28781.js"]),name:"Profile",meta:{title:"\u4E2A\u4EBA\u4E2D\u5FC3",icon:"user"}}]}],hze=[{path:"/system/user-auth",component:gr,hidden:!0,permissions:["system:user:edit"],children:[{path:"role/:userId(\\d+)",component:()=>tt(()=>import("./authRole.b2585131.js"),["assets/authRole.b2585131.js","assets/user.e8e83a76.js"]),name:"AuthRole",meta:{title:"\u5206\u914D\u89D2\u8272",activeMenu:"/system/user"}}]},{path:"/system/role-auth",component:gr,hidden:!0,permissions:["system:role:edit"],children:[{path:"user/:roleId(\\d+)",component:()=>tt(()=>import("./authUser.b57db6d8.js"),["assets/authUser.b57db6d8.js","assets/selectUser.98ef0821.js","assets/role.5601bf4e.js"]),name:"AuthUser",meta:{title:"\u5206\u914D\u7528\u6237",activeMenu:"/system/role"}}]},{path:"/system/dict-data",component:gr,hidden:!0,permissions:["system:dict:list"],children:[{path:"index/:dictId(\\d+)",component:()=>tt(()=>import("./data.34e0c2c1.js"),["assets/data.34e0c2c1.js","assets/type.8d3770a6.js"]),name:"Data",meta:{title:"\u5B57\u5178\u6570\u636E",activeMenu:"/system/dict"}}]},{path:"/monitor/job-log",component:gr,hidden:!0,permissions:["monitor:job:list"],children:[{path:"index/:jobId(\\d+)",component:()=>tt(()=>import("./log.38a10a8a.js"),["assets/log.38a10a8a.js","assets/job.3b41d90e.js"]),name:"JobLog",meta:{title:"\u8C03\u5EA6\u65E5\u5FD7",activeMenu:"/monitor/job"}}]},{path:"/tool/gen-edit",component:gr,hidden:!0,permissions:["tool:gen:edit"],children:[{path:"index/:tableId(\\d+)",component:()=>tt(()=>import("./editTable.09451137.js"),["assets/editTable.09451137.js","assets/gen.31b1004e.js","assets/type.8d3770a6.js","assets/basicInfoForm.c928dfbe.js","assets/genInfoForm.43b6244b.js","assets/menu.773fa00b.js"]),name:"GenEdit",meta:{title:"\u4FEE\u6539\u751F\u6210\u914D\u7F6E",activeMenu:"/tool/gen"}}]}],Eo=T$e({history:MCe(),routes:rs,scrollBehavior(e,t,o){return o||{top:0}}}),vze=e=>Po({url:"/getRouters",method:"get",params:e}),mze={};function gze(e,t){const o=Ve("router-view");return y(),ne(o)}const bze=Yt(mze,[["render",gze],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/ParentView/index.vue"]]),vv=Object.assign({"../../views/crops/area/Area.vue":()=>tt(()=>import("./Area.869e5591.js"),["assets/Area.869e5591.js","assets/downloads.e955445d.js","assets/crops.d314ada0.js","assets/close1.45635d81.js","assets/linesGL.badda9a7.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.ca858622.js","assets/useEcharts.f096c4b4.js","assets/Area.df44562a.css"]),"../../views/crops/classify/Classify.vue":()=>tt(()=>import("./Classify.c75ce280.js"),["assets/Classify.c75ce280.js","assets/downloads.e955445d.js","assets/crops.d314ada0.js","assets/close1.45635d81.js","assets/linesGL.badda9a7.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.ca858622.js","assets/useEcharts.f096c4b4.js","assets/Classify.af520f20.css"]),"../../views/crops/output/maize/index.vue":()=>tt(()=>import("./index.702a7e8c.js"),[]),"../../views/crops/output/peanut/index.vue":()=>tt(()=>import("./index.7f51dd3e.js"),[]),"../../views/crops/output/soybean/index.vue":()=>tt(()=>import("./index.46cd207e.js"),[]),"../../views/crops/output/wheat/index.vue":()=>tt(()=>import("./index.aa16305d.js"),["assets/index.aa16305d.js","assets/downloads.e955445d.js","assets/linesGL.badda9a7.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.ca858622.js","assets/useEcharts.f096c4b4.js","assets/index.75092dc8.css"]),"../../views/crops/site/index.vue":()=>tt(()=>import("./index.01a8d719.js"),["assets/index.01a8d719.js","assets/downloads.e955445d.js","assets/crops.d314ada0.js","assets/linesGL.badda9a7.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.ca858622.js","assets/useEcharts.f096c4b4.js","assets/index.4a61a76d.css"]),"../../views/error/401.vue":()=>tt(()=>import("./401.515940fa.js"),["assets/401.515940fa.js","assets/401.4142fde3.css"]),"../../views/error/404.vue":()=>tt(()=>import("./404.68c4eb6f.js"),["assets/404.68c4eb6f.js","assets/404.dc97b6f1.css"]),"../../views/index.vue":()=>tt(()=>import("./index.4bf8bb31.js"),["assets/index.4bf8bb31.js","assets/downloads.e955445d.js","assets/close1.45635d81.js","assets/linesGL.badda9a7.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/useEcharts.f096c4b4.js","assets/index.26438572.css"]),"../../views/login.vue":()=>tt(()=>import("./login.9fd421b0.js"),["assets/login.9fd421b0.js","assets/login.75dad9b4.css"]),"../../views/meteorological/monitor/DryHotAir/index.vue":()=>tt(()=>import("./index.a46ff7b7.js"),[]),"../../views/meteorological/monitor/FloodWarning/index.vue":()=>tt(()=>import("./index.e35aefc8.js"),[]),"../../views/meteorological/monitor/drought/index.vue":()=>tt(()=>import("./index.c8f961ad.js"),[]),"../../views/meteorological/monitor/freeze/index.vue":()=>tt(()=>import("./index.88b72161.js"),[]),"../../views/meteorological/monitor/information/index.vue":()=>tt(()=>import("./index.3959e19c.js"),[]),"../../views/meteorological/remoteSense/FloodExtraction/index.vue":()=>tt(()=>import("./index.3e2e69c6.js"),[]),"../../views/meteorological/remoteSense/drought/index.vue":()=>tt(()=>import("./index.9003591e.js"),["assets/index.9003591e.js","assets/downloads.e955445d.js","assets/close1.45635d81.js","assets/linesGL.badda9a7.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.ca858622.js","assets/useEcharts.f096c4b4.js","assets/index.11d98dcf.css"]),"../../views/meteorological/remoteSense/estimate/index.vue":()=>tt(()=>import("./index.333b4a09.js"),[]),"../../views/meteorological/remoteSense/freeze/index.vue":()=>tt(()=>import("./index.78a421aa.js"),["assets/index.78a421aa.js","assets/downloads.e955445d.js","assets/close1.45635d81.js","assets/linesGL.badda9a7.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.ca858622.js","assets/useEcharts.f096c4b4.js","assets/index.4845e04d.css"]),"../../views/monitor/cache/index.vue":()=>tt(()=>import("./index.d674d3bd.js"),["assets/index.d674d3bd.js","assets/cache.dc56d82c.js","assets/index.c9f5bd8b.js"]),"../../views/monitor/cache/list.vue":()=>tt(()=>import("./list.dfaa0611.js"),["assets/list.dfaa0611.js","assets/cache.dc56d82c.js"]),"../../views/monitor/druid/index.vue":()=>tt(()=>import("./index.00e7b1c4.js"),["assets/index.00e7b1c4.js","assets/index.994d4ae3.js"]),"../../views/monitor/job/index.vue":()=>tt(()=>import("./index.c0b6164e.js"),["assets/index.c0b6164e.js","assets/job.3b41d90e.js","assets/index.b861a7e5.css"]),"../../views/monitor/job/log.vue":()=>tt(()=>import("./log.38a10a8a.js"),["assets/log.38a10a8a.js","assets/job.3b41d90e.js"]),"../../views/monitor/logininfor/index.vue":()=>tt(()=>import("./index.70496c40.js"),[]),"../../views/monitor/online/index.vue":()=>tt(()=>import("./index.e49ca2e6.js"),[]),"../../views/monitor/operlog/index.vue":()=>tt(()=>import("./index.c0b79060.js"),[]),"../../views/monitor/server/index.vue":()=>tt(()=>import("./index.059775a6.js"),[]),"../../views/plough/Degrain/index.vue":()=>tt(()=>import("./index.54313f41.js"),["assets/index.54313f41.js","assets/downloads.e955445d.js","assets/close1.45635d81.js","assets/linesGL.badda9a7.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.ca858622.js","assets/useEcharts.f096c4b4.js","assets/index.56cf13c5.css"]),"../../views/plough/VideoSurveillance/index.vue":()=>tt(()=>import("./index.6b88cbd5.js"),["assets/index.6b88cbd5.js","assets/close1.45635d81.js","assets/linesGL.badda9a7.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/index.c92cfc57.css"]),"../../views/plough/abandonedLand/index.vue":()=>tt(()=>import("./index.18862206.js"),["assets/index.18862206.js","assets/downloads.e955445d.js","assets/close1.45635d81.js","assets/linesGL.badda9a7.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.ca858622.js","assets/useEcharts.f096c4b4.js","assets/index.6d427697.css"]),"../../views/plough/resources/index.vue":()=>tt(()=>import("./index.ab52b78d.js"),["assets/index.ab52b78d.js","assets/downloads.e955445d.js","assets/linesGL.badda9a7.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/useEcharts.f096c4b4.js","assets/index.dfb038b4.css"]),"../../views/redirect/index.vue":()=>tt(()=>import("./index.f7b39151.js"),[]),"../../views/register.vue":()=>tt(()=>import("./register.b82bae23.js"),["assets/register.b82bae23.js","assets/register.5526ccc7.css"]),"../../views/system/config/index.vue":()=>tt(()=>import("./index.92abb6b4.js"),[]),"../../views/system/dept/index.vue":()=>tt(()=>import("./index.1bb7fc75.js"),[]),"../../views/system/dict/data.vue":()=>tt(()=>import("./data.34e0c2c1.js"),["assets/data.34e0c2c1.js","assets/type.8d3770a6.js"]),"../../views/system/dict/index.vue":()=>tt(()=>import("./index.ea2fef2d.js"),["assets/index.ea2fef2d.js","assets/type.8d3770a6.js"]),"../../views/system/insect/index.vue":()=>tt(()=>import("./index.f20b2e1f.js"),[]),"../../views/system/menu/index.vue":()=>tt(()=>import("./index.e2b08c5e.js"),["assets/index.e2b08c5e.js","assets/menu.773fa00b.js","assets/index.a77b0363.css"]),"../../views/system/notice/index.vue":()=>tt(()=>import("./index.04f4f625.js"),[]),"../../views/system/post/index.vue":()=>tt(()=>import("./index.e02548c9.js"),[]),"../../views/system/role/authUser.vue":()=>tt(()=>import("./authUser.b57db6d8.js"),["assets/authUser.b57db6d8.js","assets/selectUser.98ef0821.js","assets/role.5601bf4e.js"]),"../../views/system/role/index.vue":()=>tt(()=>import("./index.3d5e3a8c.js"),["assets/index.3d5e3a8c.js","assets/role.5601bf4e.js","assets/menu.773fa00b.js"]),"../../views/system/role/selectUser.vue":()=>tt(()=>import("./selectUser.98ef0821.js"),["assets/selectUser.98ef0821.js","assets/role.5601bf4e.js"]),"../../views/system/user/authRole.vue":()=>tt(()=>import("./authRole.b2585131.js"),["assets/authRole.b2585131.js","assets/user.e8e83a76.js"]),"../../views/system/user/index.vue":()=>tt(()=>import("./index.0f4308c8.js"),["assets/index.0f4308c8.js","assets/user.e8e83a76.js"]),"../../views/system/user/profile/index.vue":()=>tt(()=>import("./index.a62912e0.js"),["assets/index.a62912e0.js","assets/userAvatar.d03c8d49.js","assets/user.e8e83a76.js","assets/userAvatar.7f20522d.css","assets/userInfo.d48bcd65.js","assets/resetPwd.20a28781.js"]),"../../views/system/user/profile/resetPwd.vue":()=>tt(()=>import("./resetPwd.20a28781.js"),["assets/resetPwd.20a28781.js","assets/user.e8e83a76.js"]),"../../views/system/user/profile/userAvatar.vue":()=>tt(()=>import("./userAvatar.d03c8d49.js"),["assets/userAvatar.d03c8d49.js","assets/user.e8e83a76.js","assets/userAvatar.7f20522d.css"]),"../../views/system/user/profile/userInfo.vue":()=>tt(()=>import("./userInfo.d48bcd65.js"),["assets/userInfo.d48bcd65.js","assets/user.e8e83a76.js"]),"../../views/tool/build/index.vue":()=>tt(()=>import("./index.4c416408.js"),[]),"../../views/tool/gen/basicInfoForm.vue":()=>tt(()=>import("./basicInfoForm.c928dfbe.js"),[]),"../../views/tool/gen/editTable.vue":()=>tt(()=>import("./editTable.09451137.js"),["assets/editTable.09451137.js","assets/gen.31b1004e.js","assets/type.8d3770a6.js","assets/basicInfoForm.c928dfbe.js","assets/genInfoForm.43b6244b.js","assets/menu.773fa00b.js"]),"../../views/tool/gen/genInfoForm.vue":()=>tt(()=>import("./genInfoForm.43b6244b.js"),["assets/genInfoForm.43b6244b.js","assets/menu.773fa00b.js"]),"../../views/tool/gen/importTable.vue":()=>tt(()=>import("./importTable.463dbaba.js"),["assets/importTable.463dbaba.js","assets/gen.31b1004e.js"]),"../../views/tool/gen/index.vue":()=>tt(()=>import("./index.3f12053f.js"),["assets/index.3f12053f.js","assets/gen.31b1004e.js","assets/importTable.463dbaba.js"]),"../../views/tool/swagger/index.vue":()=>tt(()=>import("./index.5a03ac13.js"),["assets/index.5a03ac13.js","assets/index.994d4ae3.js"])}),Ci=xi("permission",{state:()=>({routes:[],addRoutes:[],defaultRoutes:[],topbarRouters:[],sidebarRouters:[]}),actions:{setRoutes(e){this.addRoutes=e,this.routes=rs.concat(e)},setDefaultRoutes(e){this.defaultRoutes=rs.concat(e)},setTopbarRoutes(e){this.topbarRouters=e},setSidebarRouters(e){this.sidebarRouters=e},generateRoutes(e){return new Promise(t=>{vze().then(o=>{const l=JSON.parse(JSON.stringify(o.data)),r=JSON.parse(JSON.stringify(o.data)),n=JSON.parse(JSON.stringify(o.data)),a=yu(l),i=yu(r,!1,!0),c=yu(n);_ze(hze).forEach(d=>{Eo.addRoute(d)}),this.setRoutes(i),this.setSidebarRouters(rs.concat(a)),this.setDefaultRoutes(a),this.setTopbarRoutes(c),t(i)})})}}});function yu(e,t=!1,o=!1){return e.filter(l=>(o&&l.children&&(l.children=X7(l.children)),l.component&&(l.component==="Layout"?l.component=gr:l.component==="ParentView"?l.component=bze:l.component==="InnerLink"?l.component=Y7:l.component=yze(l.component)),l.children!=null&&l.children&&l.children.length?l.children=yu(l.children,l,o):(delete l.children,delete l.redirect),!0))}function X7(e,t=!1){var o=[];return e.forEach((l,r)=>{if(l.children&&l.children.length&&l.component==="ParentView"&&!t){l.children.forEach(n=>{if(n.path=l.path+"/"+n.path,n.children&&n.children.length){o=o.concat(X7(n.children,n));return}o.push(n)});return}t&&(l.path=t.path+"/"+l.path),o=o.concat(l)}),o}function _ze(e){const t=[];return e.forEach(o=>{o.permissions?E1.hasPermiOr(o.permissions)&&t.push(o):o.roles&&E1.hasRoleOr(o.roles)&&t.push(o)}),t}const yze=e=>{let t;for(const o in vv)o.split("views/")[1].split(".vue")[0]===e&&(t=()=>vv[o]());return t};const wze=e=>(U1("data-v-8102ab5b"),e=e(),Y1(),e),xze={ref:"head",class:"headers"},kze=wze(()=>C("img",{src:Fxe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Cze={__name:"index",setup(e){wl(),nl(),Ci(),V(!1),Qe(()=>{});const t=()=>{document.querySelector(".navDiv").style.display="",document.querySelector(".navbar").style.display="",document.querySelector(".app-main").style.height="calc(100% - 50px)",document.querySelector(".headers").style.transform="translate(0, -100%)",document.querySelector(".leftWra")&&(document.querySelector(".leftWra").style.top="10px"),document.querySelector(".rightWra").style.top="10px",document.querySelector(".leftment").style.display="block",document.querySelector(".main-container").style.marginLeft=document.querySelector(".leftment").style.width};return(o,l)=>(y(),$("div",xze,[Je(" \u79CD\u690D\u4E1A\u751F\u4EA7\u76D1\u7BA1\u6570\u5B57\u5316\u7CFB\u7EDF "),C("span",{onClick:t,class:"exit"},[kze,Je(" \u9000\u51FA\u5168\u5C4F ")])],512))}},$ze=Yt(Cze,[["__scopeId","data-v-8102ab5b"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/heades/index.vue"]]);const Sze={class:"center"},zze={__name:"App",setup(e){const t=sc();console.log(t.path),Qe(()=>{Ne(()=>{c7(wl().theme)})});const o=V(null);function l(){o.value.openSetting()}return(r,n)=>{const a=Ve("router-view");return y(),ne(s(Dxe),{width:"100%",height:"100%"},{default:U(()=>[C("div",Sze,[F(s($ze)),s(t).path!=="/login"?(y(),ne(s(CSe),{key:0,onSetLayout:l})):te("v-if",!0),F(a),F(s(Z7),{ref_key:"settingRef",ref:o},null,512)])]),_:1})}}},Eze=Yt(zze,[["__scopeId","data-v-7a7a37b1"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/App.vue"]]),Mze={mounted(e,t,o){const{value:l}=t,r="admin",n=xr().roles;if(l&&l instanceof Array&&l.length>0){const a=l;n.some(c=>r===c||a.includes(c))||e.parentNode&&e.parentNode.removeChild(e)}else throw new Error("\u8BF7\u8BBE\u7F6E\u89D2\u8272\u6743\u9650\u6807\u7B7E\u503C")}},Tze={mounted(e,t,o){const{value:l}=t,r="*:*:*",n=xr().permissions;if(l&&l instanceof Array&&l.length>0){const a=l;n.some(c=>r===c||a.includes(c))||e.parentNode&&e.parentNode.removeChild(e)}else throw new Error("\u8BF7\u8BBE\u7F6E\u64CD\u4F5C\u6743\u9650\u6807\u7B7E\u503C")}},Aze={beforeMount(e,{value:t,arg:o}){if(o==="callback")e.$copyCallback=t;else{e.$copyValue=t;const l=()=>{Oze(e.$copyValue),e.$copyCallback&&e.$copyCallback(e.$copyValue)};e.addEventListener("click",l),e.$destroyCopy=()=>e.removeEventListener("click",l)}}};function Oze(e,{target:t=document.body}={}){const o=document.createElement("textarea"),l=document.activeElement;o.value=e,o.setAttribute("readonly",""),o.style.contain="strict",o.style.position="absolute",o.style.left="-9999px",o.style.fontSize="12pt";const r=document.getSelection(),n=r.rangeCount>0&&r.getRangeAt(0);t.append(o),o.select(),o.selectionStart=0,o.selectionEnd=e.length;let a=!1;try{a=document.execCommand("copy")}catch{}return o.remove(),n&&(r.removeAllRanges(),r.addRange(n)),l&&l.focus(),a}function Vze(e){e.directive("hasRole",Mze),e.directive("hasPermi",Tze),e.directive("copyText",Aze)}const Lze={refreshPage(e){const{path:t,query:o,matched:l}=Eo.currentRoute.value;return e===void 0&&l.forEach(r=>{r.components&&r.components.default&&r.components.default.name&&(["Layout","ParentView"].includes(r.components.default.name)||(e={name:r.components.default.name,path:t,query:o}))}),so().delCachedView(e).then(()=>{const{path:r,query:n}=e;Eo.replace({path:"/redirect"+r,query:n})})},closeOpenPage(e){if(so().delView(Eo.currentRoute.value),e!==void 0)return Eo.push(e)},closePage(e){return e===void 0?so().delView(Eo.currentRoute.value).then(({lastPath:t})=>Eo.push(t||"/index")):so().delView(e)},closeAllPage(){return so().delAllViews()},closeLeftPage(e){return so().delLeftTags(e||Eo.currentRoute.value)},closeRightPage(e){return so().delRightTags(e||Eo.currentRoute.value)},closeOtherPage(e){return so().delOthersViews(e||Eo.currentRoute.value)},openPage(e){return Eo.push(e)},updatePage(e){return so().updateVisitedView(e)}};let mv;const Ize={msg(e){ul.info(e)},msgError(e){ul.error(e)},msgSuccess(e){ul.success(e)},msgWarning(e){ul.warning(e)},alert(e){fr.alert(e,"\u7CFB\u7EDF\u63D0\u793A")},alertError(e){fr.alert(e,"\u7CFB\u7EDF\u63D0\u793A",{type:"error"})},alertSuccess(e){fr.alert(e,"\u7CFB\u7EDF\u63D0\u793A",{type:"success"})},alertWarning(e){fr.alert(e,"\u7CFB\u7EDF\u63D0\u793A",{type:"warning"})},notify(e){Va.info(e)},notifyError(e){Va.error(e)},notifySuccess(e){Va.success(e)},notifyWarning(e){Va.warning(e)},confirm(e){return fr.confirm(e,"\u7CFB\u7EDF\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"})},prompt(e){return fr.prompt(e,"\u7CFB\u7EDF\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"})},loading(e){mv=Vf.service({lock:!0,text:e,background:"rgba(0, 0, 0, 0.7)"})},closeLoading(){mv.close()}},Q0="/stage-api",Pze={name(e,t=!0){var o=Q0+"/common/download?fileName="+encodeURIComponent(e)+"&delete="+t;ts({method:"get",url:o,responseType:"blob",headers:{Authorization:"Bearer "+wr()}}).then(async l=>{if(await bu(l.data)){const n=new Blob([l.data]);this.saveAs(n,decodeURIComponent(l.headers["download-filename"]))}else this.printErrMsg(l.data)})},resource(e){var t=Q0+"/common/download/resource?resource="+encodeURIComponent(e);ts({method:"get",url:t,responseType:"blob",headers:{Authorization:"Bearer "+wr()}}).then(async o=>{if(await bu(o.data)){const r=new Blob([o.data]);this.saveAs(r,decodeURIComponent(o.headers["download-filename"]))}else this.printErrMsg(o.data)})},zip(o,t){var o=Q0+o;ts({method:"get",url:o,responseType:"blob",headers:{Authorization:"Bearer "+wr()}}).then(async l=>{if(await bu(l.data)){const n=new Blob([l.data],{type:"application/zip"});this.saveAs(n,t)}else this.printErrMsg(l.data)})},saveAs(e,t,o){Wf.exports.saveAs(e,t,o)},async printErrMsg(e){const t=await e.text(),o=JSON.parse(t),l=hi[o.code]||o.msg||hi.default;ul.error(l)}};function Rze(e){e.config.globalProperties.$tab=Lze,e.config.globalProperties.$auth=E1,e.config.globalProperties.$cache=_u,e.config.globalProperties.$modal=Ize,e.config.globalProperties.$download=Pze}(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`body { + `)],64)):te("v-if",!0),C("div",bSe,[F(g,{onCommand:n,class:"right-menu-item hover-effect",trigger:"click"},{dropdown:U(()=>[F(m,null,{default:U(()=>[F(v,{to:"/user/profile"},{default:U(()=>[F(h,null,{default:U(()=>[Je("\u4E2A\u4EBA\u4E2D\u5FC3")]),_:1})]),_:1}),F(h,{command:"setLayout"},{default:U(()=>[wSe]),_:1}),F(h,{divided:"",command:"logout"},{default:U(()=>[xSe]),_:1})]),_:1})]),default:U(()=>[C("div",_Se,[C("img",{src:s(l).avatar,class:"user-avatar"},null,8,ySe),F(f,null,{default:U(()=>[F(p)]),_:1})])]),_:1})])])])}}},CSe=Yt(kSe,[["__scopeId","data-v-bd143a29"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/components/Navbar.vue"]]),$Se="/assets/dark.78ba5f53.svg",SSe="/assets/light.a053ce48.svg";const xl=e=>(U1("data-v-5fbf36ff"),e=e(),Y1(),e),zSe=xl(()=>C("div",{class:"setting-drawer-title"},[C("h3",{class:"drawer-title"},"\u4E3B\u9898\u98CE\u683C\u8BBE\u7F6E")],-1)),ESe={class:"setting-drawer-block-checbox"},MSe=xl(()=>C("img",{src:$Se,alt:"dark"},null,-1)),TSe={key:0,class:"setting-drawer-block-checbox-selectIcon",style:{display:"block"}},ASe={"aria-label":"\u56FE\u6807: check",class:"anticon anticon-check"},OSe=["fill"],VSe=xl(()=>C("path",{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"},null,-1)),LSe=[VSe],ISe=xl(()=>C("img",{src:SSe,alt:"light"},null,-1)),PSe={key:0,class:"setting-drawer-block-checbox-selectIcon",style:{display:"block"}},RSe={"aria-label":"\u56FE\u6807: check",class:"anticon anticon-check"},HSe=["fill"],NSe=xl(()=>C("path",{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"},null,-1)),BSe=[NSe],DSe={class:"drawer-item"},FSe=xl(()=>C("span",null,"\u4E3B\u9898\u989C\u8272",-1)),jSe={class:"comp-style"},KSe=xl(()=>C("h3",{class:"drawer-title"},"\u7CFB\u7EDF\u5E03\u5C40\u914D\u7F6E",-1)),qSe={class:"drawer-item"},WSe=xl(()=>C("span",null,"\u5F00\u542F TopNav",-1)),USe={class:"comp-style"},YSe={class:"drawer-item"},GSe=xl(()=>C("span",null,"\u5F00\u542F Tags-Views",-1)),ZSe={class:"comp-style"},XSe={class:"drawer-item"},JSe=xl(()=>C("span",null,"\u56FA\u5B9A Header",-1)),QSe={class:"comp-style"},eze={class:"drawer-item"},tze=xl(()=>C("span",null,"\u663E\u793A Logo",-1)),oze={class:"comp-style"},lze={class:"drawer-item"},rze=xl(()=>C("span",null,"\u52A8\u6001\u6807\u9898",-1)),nze={class:"comp-style"},aze={__name:"index",setup(e,{expose:t}){const{proxy:o}=ot(),l=nl(),r=wl(),n=Ci(),a=V(!1),i=V(r.theme),c=V(r.sideTheme),u=S(()=>r),d=V(["#409EFF","#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585"]),p=S({get:()=>u.value.topNav,set:x=>{r.changeSetting({key:"topNav",value:x}),x||(l.toggleSideBarHide(!1),n.setSidebarRouters(n.defaultRoutes))}}),f=S({get:()=>u.value.tagsView,set:x=>{r.changeSetting({key:"tagsView",value:x})}}),h=S({get:()=>u.value.fixedHeader,set:x=>{r.changeSetting({key:"fixedHeader",value:x})}}),v=S({get:()=>u.value.sidebarLogo,set:x=>{r.changeSetting({key:"sidebarLogo",value:x})}}),m=S({get:()=>u.value.dynamicTitle,set:x=>{r.changeSetting({key:"dynamicTitle",value:x}),s7()}});function g(x){r.changeSetting({key:"theme",value:x}),i.value=x,c7(x)}function _(x){r.changeSetting({key:"sideTheme",value:x}),c.value=x}function w(){o.$modal.loading("\u6B63\u5728\u4FDD\u5B58\u5230\u672C\u5730\uFF0C\u8BF7\u7A0D\u5019...");let x={topNav:u.value.topNav,tagsView:u.value.tagsView,fixedHeader:u.value.fixedHeader,sidebarLogo:u.value.sidebarLogo,dynamicTitle:u.value.dynamicTitle,sideTheme:u.value.sideTheme,theme:u.value.theme};localStorage.setItem("layout-setting",JSON.stringify(x)),setTimeout(o.$modal.closeLoading(),1e3)}function b(){o.$modal.loading("\u6B63\u5728\u6E05\u9664\u8BBE\u7F6E\u7F13\u5B58\u5E76\u5237\u65B0\uFF0C\u8BF7\u7A0D\u5019..."),localStorage.removeItem("layout-setting"),setTimeout("window.location.reload()",1e3)}function k(){a.value=!0}return t({openSetting:k}),(x,z)=>{const T=Ve("el-color-picker"),M=Ve("el-divider"),O=Ve("el-switch"),A=Ve("el-button"),D=Ve("el-drawer");return y(),ne(D,{modelValue:s(a),"onUpdate:modelValue":z[8]||(z[8]=I=>gt(a)?a.value=I:null),withHeader:!1,direction:"rtl",size:"300px"},{default:U(()=>[zSe,C("div",ESe,[C("div",{class:"setting-drawer-block-checbox-item",onClick:z[0]||(z[0]=I=>_("theme-dark"))},[MSe,s(c)==="theme-dark"?(y(),$("div",TSe,[C("i",ASe,[(y(),$("svg",{viewBox:"64 64 896 896","data-icon":"check",width:"1em",height:"1em",fill:s(i),"aria-hidden":"true",focusable:"false",class:""},LSe,8,OSe))])])):te("v-if",!0)]),C("div",{class:"setting-drawer-block-checbox-item",onClick:z[1]||(z[1]=I=>_("theme-light"))},[ISe,s(c)==="theme-light"?(y(),$("div",PSe,[C("i",RSe,[(y(),$("svg",{viewBox:"64 64 896 896","data-icon":"check",width:"1em",height:"1em",fill:s(i),"aria-hidden":"true",focusable:"false",class:""},BSe,8,HSe))])])):te("v-if",!0)])]),C("div",DSe,[FSe,C("span",jSe,[F(T,{modelValue:s(i),"onUpdate:modelValue":z[2]||(z[2]=I=>gt(i)?i.value=I:null),predefine:s(d),onChange:g},null,8,["modelValue","predefine"])])]),F(M),KSe,C("div",qSe,[WSe,C("span",USe,[F(O,{modelValue:s(p),"onUpdate:modelValue":z[3]||(z[3]=I=>gt(p)?p.value=I:null),class:"drawer-switch"},null,8,["modelValue"])])]),C("div",YSe,[GSe,C("span",ZSe,[F(O,{modelValue:s(f),"onUpdate:modelValue":z[4]||(z[4]=I=>gt(f)?f.value=I:null),class:"drawer-switch"},null,8,["modelValue"])])]),C("div",XSe,[JSe,C("span",QSe,[F(O,{modelValue:s(h),"onUpdate:modelValue":z[5]||(z[5]=I=>gt(h)?h.value=I:null),class:"drawer-switch"},null,8,["modelValue"])])]),C("div",eze,[tze,C("span",oze,[F(O,{modelValue:s(v),"onUpdate:modelValue":z[6]||(z[6]=I=>gt(v)?v.value=I:null),class:"drawer-switch"},null,8,["modelValue"])])]),C("div",lze,[rze,C("span",nze,[F(O,{modelValue:s(m),"onUpdate:modelValue":z[7]||(z[7]=I=>gt(m)?m.value=I:null),class:"drawer-switch"},null,8,["modelValue"])])]),F(M),F(A,{type:"primary",plain:"",icon:"DocumentAdd",onClick:w},{default:U(()=>[Je("\u4FDD\u5B58\u914D\u7F6E")]),_:1}),F(A,{plain:"",icon:"Refresh",onClick:b},{default:U(()=>[Je("\u91CD\u7F6E\u914D\u7F6E")]),_:1})]),_:1},8,["modelValue"])}}},Z7=Yt(aze,[["__scopeId","data-v-5fbf36ff"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/components/Settings/index.vue"]]);const ize={__name:"ScrollPane",setup(e,{expose:t,emit:o}){const l=V(4),{proxy:r}=ot(),n=S(()=>r.$refs.scrollContainer.$refs.wrap$);Qe(()=>{n.value.addEventListener("scroll",i,!0)}),Rt(()=>{n.value.removeEventListener("scroll",i)});function a(p){const f=p.wheelDelta||-p.deltaY*40,h=n.value;h.scrollLeft=h.scrollLeft+f/4}const i=()=>{o("scroll")},c=so(),u=S(()=>c.visitedViews);function d(p){const h=r.$refs.scrollContainer.$el.offsetWidth,v=n.value;let m=null,g=null;if(u.value.length>0&&(m=u.value[0],g=u.value[u.value.length-1]),m===p)v.scrollLeft=0;else if(g===p)v.scrollLeft=v.scrollWidth-h;else{const _=document.getElementsByClassName("tags-view-item"),w=u.value.findIndex(T=>T===p);let b=null,k=null;for(const T in _)T!=="length"&&Object.hasOwnProperty.call(_,T)&&(_[T].dataset.path===u.value[w-1].path&&(b=_[T]),_[T].dataset.path===u.value[w+1].path&&(k=_[T]));const x=k.offsetLeft+k.offsetWidth+l.value,z=b.offsetLeft-l.value;x>v.scrollLeft+h?v.scrollLeft=x-h:z {const h=Ve("el-scrollbar");return y(),ne(h,{ref:"scrollContainer",vertical:!1,class:"scroll-container",onWheel:Ze(a,["prevent"])},{default:U(()=>[ge(p.$slots,"default",{},void 0,!0)]),_:3},8,["onWheel"])}}},sze=Yt(ize,[["__scopeId","data-v-6e0e10fc"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/components/TagsView/ScrollPane.vue"]]);const cze={id:"tags-view-container",class:"tags-view-container"},uze=["onClick"],dze={__name:"index",setup(e){const t=V(!1),o=V(0),l=V(0),r=V({}),n=V([]),a=V(null),{proxy:i}=ot(),c=sc(),u=U7(),d=S(()=>so().visitedViews),p=S(()=>Ci().routes),f=S(()=>wl().theme);me(c,()=>{k(),x()}),me(t,N=>{N?document.body.addEventListener("click",B):document.body.removeEventListener("click",B)}),Qe(()=>{b(),k()});function h(N){return N.path===c.path}function v(N){return h(N)?{"background-color":f.value,"border-color":f.value}:{}}function m(N){return N.meta&&N.meta.affix}function g(){try{return r.value.fullPath===d.value[1].fullPath||r.value.fullPath==="/index"}catch{return!1}}function _(){try{return r.value.fullPath===d.value[d.value.length-1].fullPath}catch{return!1}}function w(N,L=""){let H=[];return N.forEach(R=>{if(R.meta&&R.meta.affix){const Z=z1(L+"/"+R.path);H.push({fullPath:Z,path:Z,name:R.name,meta:{...R.meta}})}if(R.children){const Z=w(R.children,R.path);Z.length>=1&&(H=[...H,...Z])}}),H}function b(){const N=w(p.value);n.value=N;for(const L of N)L.name&&so().addVisitedView(L)}function k(){const{name:N}=c;return N&&(so().addView(c),c.meta.link&&so().addIframeView(c)),!1}function x(){Ne(()=>{for(const N of d.value)N.path===c.path&&(a.value.moveToTarget(N),N.fullPath!==c.fullPath&&so().updateVisitedView(c))})}function z(N){i.$tab.refreshPage(N),c.meta.link&&so().delIframeView(c)}function T(N){i.$tab.closePage(N).then(({visitedViews:L})=>{h(N)&&I(L,N)})}function M(){i.$tab.closeRightPage(r.value).then(N=>{N.find(L=>L.fullPath===c.fullPath)||I(N)})}function O(){i.$tab.closeLeftPage(r.value).then(N=>{N.find(L=>L.fullPath===c.fullPath)||I(N)})}function A(){u.push(r.value).catch(()=>{}),i.$tab.closeOtherPage(r.value).then(()=>{x()})}function D(N){i.$tab.closeAllPage().then(({visitedViews:L})=>{n.value.some(H=>H.path===c.path)||I(L,N)})}function I(N,L){const H=N.slice(-1)[0];H?u.push(H.fullPath):L.name==="Dashboard"?u.replace({path:"/redirect"+L.fullPath}):u.push("/")}function P(N,L){const R=i.$el.getBoundingClientRect().left,re=i.$el.offsetWidth-105,Y=L.clientX-R+15;Y>re?l.value=re:l.value=Y,o.value=L.clientY,t.value=!0,r.value=N}function B(){t.value=!1}function K(){B()}return(N,L)=>{const H=Ve("close"),R=Ve("router-link"),Z=Ve("refresh-right"),re=Ve("circle-close"),Y=Ve("back"),oe=Ve("right");return y(),$("div",cze,[F(s(sze),{ref_key:"scrollPaneRef",ref:a,class:"tags-view-wrapper",onScroll:K},{default:U(()=>[(y(!0),$(Pe,null,ut(s(d),pe=>(y(),ne(R,{key:pe.path,"data-path":pe.path,class:E([h(pe)?"active":"","tags-view-item"]),to:{path:pe.path,query:pe.query,fullPath:pe.fullPath},style:He(v(pe)),onMouseup:Ze(X=>m(pe)?"":T(pe),["middle"]),onContextmenu:Ze(X=>P(pe,X),["prevent"])},{default:U(()=>[Je(Ce(pe.title)+" ",1),m(pe)?te("v-if",!0):(y(),$("span",{key:0,onClick:Ze(X=>T(pe),["prevent","stop"])},[F(H,{class:"el-icon-close",style:{width:"1em",height:"1em","vertical-align":"middle"}})],8,uze))]),_:2},1032,["data-path","class","to","style","onMouseup","onContextmenu"]))),128))]),_:1},512),lt(C("ul",{style:He({left:s(l)+"px",top:s(o)+"px"}),class:"contextmenu"},[C("li",{onClick:L[0]||(L[0]=pe=>z(s(r)))},[F(Z,{style:{width:"1em",height:"1em"}}),Je(" \u5237\u65B0\u9875\u9762 ")]),m(s(r))?te("v-if",!0):(y(),$("li",{key:0,onClick:L[1]||(L[1]=pe=>T(s(r)))},[F(H,{style:{width:"1em",height:"1em"}}),Je(" \u5173\u95ED\u5F53\u524D ")])),C("li",{onClick:A},[F(re,{style:{width:"1em",height:"1em"}}),Je(" \u5173\u95ED\u5176\u4ED6 ")]),g()?te("v-if",!0):(y(),$("li",{key:1,onClick:O},[F(Y,{style:{width:"1em",height:"1em"}}),Je(" \u5173\u95ED\u5DE6\u4FA7 ")])),_()?te("v-if",!0):(y(),$("li",{key:2,onClick:M},[F(oe,{style:{width:"1em",height:"1em"}}),Je(" \u5173\u95ED\u53F3\u4FA7 ")])),C("li",{onClick:L[2]||(L[2]=pe=>D(s(r)))},[F(re,{style:{width:"1em",height:"1em"}}),Je(" \u5168\u90E8\u5173\u95ED ")])],4),[[xt,s(t)]])])}}},pze=Yt(dze,[["__scopeId","data-v-ad7a7ef0"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/components/TagsView/index.vue"]]);const fze={__name:"index",setup(e){const t=wl(),o=S(()=>t.theme);S(()=>t.sideTheme);const l=S(()=>nl().sidebar),r=S(()=>nl().device),n=S(()=>t.tagsView),a=S(()=>t.fixedHeader),i=S(()=>({withoutAnimation:l.value.withoutAnimation,mobile:r.value==="mobile"})),{width:c,height:u}=A8(),d=992;Oo(()=>{r.value==="mobile"&&l.value.opened&&nl().closeSideBar({withoutAnimation:!1}),c.value-1 (y(),$("div",{class:E([s(i),"app-wrapper"]),style:He({"--current-color":s(o)})},[s(r)==="mobile"&&s(l).opened?(y(),$("div",{key:0,class:"drawer-bg",onClick:p})):te("v-if",!0),s(l).hide?te("v-if",!0):(y(),ne(rSe,{key:1,class:"sidebar-container"})),C("div",{class:E([{hasTagsView:s(n),sidebarHide:s(l).hide},"main-container"])},[C("div",{class:E(["navDiv",{"fixed-header":s(a)}])},[te(' '),s(n)?(y(),ne(s(pze),{key:0})):te("v-if",!0)],2),F(s(dSe)),F(s(Z7),{ref_key:"settingRef",ref:f},null,512)],2)],6))}},gr=Yt(fze,[["__scopeId","data-v-051739fd"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/layout/index.vue"]]),rs=[{path:"/redirect",component:gr,hidden:!0,children:[{path:"/redirect/:path(.*)",component:()=>tt(()=>import("./index.d658f999.js"),[])}]},{path:"/login",component:()=>tt(()=>import("./login.716ef3b7.js"),["assets/login.716ef3b7.js","assets/login.75dad9b4.css"]),hidden:!0},{path:"/register",component:()=>tt(()=>import("./register.3b72a043.js"),["assets/register.3b72a043.js","assets/register.5526ccc7.css"]),hidden:!0},{path:"/:pathMatch(.*)*",component:()=>tt(()=>import("./404.c3fa3cdd.js"),["assets/404.c3fa3cdd.js","assets/404.dc97b6f1.css"]),hidden:!0},{path:"/401",component:()=>tt(()=>import("./401.bca7d926.js"),["assets/401.bca7d926.js","assets/401.4142fde3.css"]),hidden:!0},{path:"",component:gr,redirect:"/crops/Classify",children:[{path:"/index",component:()=>tt(()=>import("./index.53450fb2.js"),["assets/index.53450fb2.js","assets/downloads.e955445d.js","assets/close1.45635d81.js","assets/linesGL.90f708a5.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/download.a6a18203.js","assets/useEcharts.83442be8.js","assets/classify.ee69cc46.js","assets/index.26438572.css"]),name:"Index",meta:{title:"\u75C5\u866B\u5BB3\u76D1\u6D4B\u9632\u63A7",icon:"a3",affix:!0}}]},{path:"/user",component:gr,hidden:!0,redirect:"noredirect",children:[{path:"profile",component:()=>tt(()=>import("./index.1d4f8f6d.js"),["assets/index.1d4f8f6d.js","assets/userAvatar.649cf20b.js","assets/user.99546dc6.js","assets/userAvatar.7f20522d.css","assets/userInfo.527683c1.js","assets/resetPwd.aba2cdb8.js"]),name:"Profile",meta:{title:"\u4E2A\u4EBA\u4E2D\u5FC3",icon:"user"}}]}],hze=[{path:"/system/user-auth",component:gr,hidden:!0,permissions:["system:user:edit"],children:[{path:"role/:userId(\\d+)",component:()=>tt(()=>import("./authRole.cf8ca290.js"),["assets/authRole.cf8ca290.js","assets/user.99546dc6.js"]),name:"AuthRole",meta:{title:"\u5206\u914D\u89D2\u8272",activeMenu:"/system/user"}}]},{path:"/system/role-auth",component:gr,hidden:!0,permissions:["system:role:edit"],children:[{path:"user/:roleId(\\d+)",component:()=>tt(()=>import("./authUser.841e0a49.js"),["assets/authUser.841e0a49.js","assets/selectUser.ff681697.js","assets/role.262b5655.js"]),name:"AuthUser",meta:{title:"\u5206\u914D\u7528\u6237",activeMenu:"/system/role"}}]},{path:"/system/dict-data",component:gr,hidden:!0,permissions:["system:dict:list"],children:[{path:"index/:dictId(\\d+)",component:()=>tt(()=>import("./data.2b13df1c.js"),["assets/data.2b13df1c.js","assets/type.c70a9fe5.js"]),name:"Data",meta:{title:"\u5B57\u5178\u6570\u636E",activeMenu:"/system/dict"}}]},{path:"/monitor/job-log",component:gr,hidden:!0,permissions:["monitor:job:list"],children:[{path:"index/:jobId(\\d+)",component:()=>tt(()=>import("./log.b3225822.js"),["assets/log.b3225822.js","assets/job.dfeefd37.js"]),name:"JobLog",meta:{title:"\u8C03\u5EA6\u65E5\u5FD7",activeMenu:"/monitor/job"}}]},{path:"/tool/gen-edit",component:gr,hidden:!0,permissions:["tool:gen:edit"],children:[{path:"index/:tableId(\\d+)",component:()=>tt(()=>import("./editTable.0f56bb7f.js"),["assets/editTable.0f56bb7f.js","assets/gen.7890332f.js","assets/type.c70a9fe5.js","assets/basicInfoForm.d83e1258.js","assets/genInfoForm.0633fad0.js","assets/menu.34305f2c.js"]),name:"GenEdit",meta:{title:"\u4FEE\u6539\u751F\u6210\u914D\u7F6E",activeMenu:"/tool/gen"}}]}],Eo=T$e({history:MCe(),routes:rs,scrollBehavior(e,t,o){return o||{top:0}}}),vze=e=>Po({url:"/getRouters",method:"get",params:e}),mze={};function gze(e,t){const o=Ve("router-view");return y(),ne(o)}const bze=Yt(mze,[["render",gze],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/ParentView/index.vue"]]),vv=Object.assign({"../../views/crops/area/Area.vue":()=>tt(()=>import("./Area.d75a5b2e.js"),["assets/Area.d75a5b2e.js","assets/downloads.e955445d.js","assets/crops.d314ada0.js","assets/close1.45635d81.js","assets/linesGL.90f708a5.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.6cac5abc.js","assets/useEcharts.83442be8.js","assets/classify.ee69cc46.js","assets/Area.df44562a.css"]),"../../views/crops/classify/Classify.vue":()=>tt(()=>import("./Classify.3c862e98.js"),["assets/Classify.3c862e98.js","assets/downloads.e955445d.js","assets/crops.d314ada0.js","assets/close1.45635d81.js","assets/linesGL.90f708a5.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/download.a6a18203.js","assets/TimeLine.6cac5abc.js","assets/useEcharts.83442be8.js","assets/classify.ee69cc46.js","assets/Classify.7204b3d5.css"]),"../../views/crops/output/maize/index.vue":()=>tt(()=>import("./index.86d1843a.js"),[]),"../../views/crops/output/peanut/index.vue":()=>tt(()=>import("./index.d669c9cd.js"),[]),"../../views/crops/output/soybean/index.vue":()=>tt(()=>import("./index.8a99b8e0.js"),[]),"../../views/crops/output/wheat/index.vue":()=>tt(()=>import("./index.a7fc6791.js"),["assets/index.a7fc6791.js","assets/downloads.e955445d.js","assets/linesGL.90f708a5.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.6cac5abc.js","assets/useEcharts.83442be8.js","assets/classify.ee69cc46.js","assets/index.75092dc8.css"]),"../../views/crops/site/index.vue":()=>tt(()=>import("./index.93241c06.js"),["assets/index.93241c06.js","assets/downloads.e955445d.js","assets/linesGL.90f708a5.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.6cac5abc.js","assets/useEcharts.83442be8.js","assets/index.561b7889.css"]),"../../views/error/401.vue":()=>tt(()=>import("./401.bca7d926.js"),["assets/401.bca7d926.js","assets/401.4142fde3.css"]),"../../views/error/404.vue":()=>tt(()=>import("./404.c3fa3cdd.js"),["assets/404.c3fa3cdd.js","assets/404.dc97b6f1.css"]),"../../views/index.vue":()=>tt(()=>import("./index.53450fb2.js"),["assets/index.53450fb2.js","assets/downloads.e955445d.js","assets/close1.45635d81.js","assets/linesGL.90f708a5.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/download.a6a18203.js","assets/useEcharts.83442be8.js","assets/classify.ee69cc46.js","assets/index.26438572.css"]),"../../views/login.vue":()=>tt(()=>import("./login.716ef3b7.js"),["assets/login.716ef3b7.js","assets/login.75dad9b4.css"]),"../../views/meteorological/monitor/DryHotAir/index.vue":()=>tt(()=>import("./index.283b83ba.js"),[]),"../../views/meteorological/monitor/FloodWarning/index.vue":()=>tt(()=>import("./index.626bda5d.js"),[]),"../../views/meteorological/monitor/drought/index.vue":()=>tt(()=>import("./index.24c7addd.js"),[]),"../../views/meteorological/monitor/freeze/index.vue":()=>tt(()=>import("./index.54142cc1.js"),[]),"../../views/meteorological/monitor/information/index.vue":()=>tt(()=>import("./index.b4026c69.js"),[]),"../../views/meteorological/remoteSense/FloodExtraction/index.vue":()=>tt(()=>import("./index.1eb49ffb.js"),["assets/index.1eb49ffb.js","assets/downloads.e955445d.js","assets/close1.45635d81.js","assets/linesGL.90f708a5.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.6cac5abc.js","assets/useEcharts.83442be8.js","assets/classify.ee69cc46.js","assets/download.a6a18203.js","assets/index.f043335c.css"]),"../../views/meteorological/remoteSense/drought/index.vue":()=>tt(()=>import("./index.d70e9a7d.js"),["assets/index.d70e9a7d.js","assets/downloads.e955445d.js","assets/close1.45635d81.js","assets/linesGL.90f708a5.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.6cac5abc.js","assets/useEcharts.83442be8.js","assets/download.a6a18203.js","assets/index.11d98dcf.css"]),"../../views/meteorological/remoteSense/estimate/index.vue":()=>tt(()=>import("./index.35b00c3c.js"),["assets/index.35b00c3c.js","assets/close1.45635d81.js","assets/downloads.e955445d.js","assets/linesGL.90f708a5.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.6cac5abc.js","assets/useEcharts.83442be8.js","assets/classify.ee69cc46.js","assets/index.15a9d565.css"]),"../../views/meteorological/remoteSense/freeze/index.vue":()=>tt(()=>import("./index.cc9b0421.js"),["assets/index.cc9b0421.js","assets/downloads.e955445d.js","assets/close1.45635d81.js","assets/linesGL.90f708a5.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.6cac5abc.js","assets/useEcharts.83442be8.js","assets/download.a6a18203.js","assets/index.4845e04d.css"]),"../../views/monitor/cache/index.vue":()=>tt(()=>import("./index.77cc1432.js"),["assets/index.77cc1432.js","assets/cache.425f4b27.js","assets/index.c9f5bd8b.js"]),"../../views/monitor/cache/list.vue":()=>tt(()=>import("./list.26b1782a.js"),["assets/list.26b1782a.js","assets/cache.425f4b27.js"]),"../../views/monitor/druid/index.vue":()=>tt(()=>import("./index.8227796d.js"),["assets/index.8227796d.js","assets/index.25818e4c.js"]),"../../views/monitor/job/index.vue":()=>tt(()=>import("./index.a9256ae6.js"),["assets/index.a9256ae6.js","assets/job.dfeefd37.js","assets/index.b861a7e5.css"]),"../../views/monitor/job/log.vue":()=>tt(()=>import("./log.b3225822.js"),["assets/log.b3225822.js","assets/job.dfeefd37.js"]),"../../views/monitor/logininfor/index.vue":()=>tt(()=>import("./index.6184a5c2.js"),[]),"../../views/monitor/online/index.vue":()=>tt(()=>import("./index.2abff6cb.js"),[]),"../../views/monitor/operlog/index.vue":()=>tt(()=>import("./index.e19d5ab3.js"),[]),"../../views/monitor/server/index.vue":()=>tt(()=>import("./index.0d0df534.js"),[]),"../../views/plough/Degrain/index.vue":()=>tt(()=>import("./index.1cbe9918.js"),["assets/index.1cbe9918.js","assets/downloads.e955445d.js","assets/close1.45635d81.js","assets/linesGL.90f708a5.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.6cac5abc.js","assets/useEcharts.83442be8.js","assets/classify.ee69cc46.js","assets/index.56cf13c5.css"]),"../../views/plough/VideoSurveillance/index.vue":()=>tt(()=>import("./index.71ee7c84.js"),["assets/index.71ee7c84.js","assets/close1.45635d81.js","assets/linesGL.90f708a5.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/classify.ee69cc46.js","assets/index.c92cfc57.css"]),"../../views/plough/abandonedLand/index.vue":()=>tt(()=>import("./index.9cf392c6.js"),["assets/index.9cf392c6.js","assets/downloads.e955445d.js","assets/close1.45635d81.js","assets/linesGL.90f708a5.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/TimeLine.6cac5abc.js","assets/useEcharts.83442be8.js","assets/classify.ee69cc46.js","assets/index.6d427697.css"]),"../../views/plough/resources/index.vue":()=>tt(()=>import("./index.72794fc3.js"),["assets/index.72794fc3.js","assets/downloads.e955445d.js","assets/linesGL.90f708a5.js","assets/index.c9f5bd8b.js","assets/linesGL.064c3c8e.css","assets/useEcharts.83442be8.js","assets/classify.ee69cc46.js","assets/index.dfb038b4.css"]),"../../views/redirect/index.vue":()=>tt(()=>import("./index.d658f999.js"),[]),"../../views/register.vue":()=>tt(()=>import("./register.3b72a043.js"),["assets/register.3b72a043.js","assets/register.5526ccc7.css"]),"../../views/system/config/index.vue":()=>tt(()=>import("./index.cf9f6a26.js"),[]),"../../views/system/dept/index.vue":()=>tt(()=>import("./index.33e65ae7.js"),[]),"../../views/system/dict/data.vue":()=>tt(()=>import("./data.2b13df1c.js"),["assets/data.2b13df1c.js","assets/type.c70a9fe5.js"]),"../../views/system/dict/index.vue":()=>tt(()=>import("./index.9194d0dc.js"),["assets/index.9194d0dc.js","assets/type.c70a9fe5.js"]),"../../views/system/insect/index.vue":()=>tt(()=>import("./index.2c35f3e7.js"),[]),"../../views/system/menu/index.vue":()=>tt(()=>import("./index.bcc9a532.js"),["assets/index.bcc9a532.js","assets/menu.34305f2c.js","assets/index.a77b0363.css"]),"../../views/system/notice/index.vue":()=>tt(()=>import("./index.6ae92e88.js"),[]),"../../views/system/post/index.vue":()=>tt(()=>import("./index.3c98de2c.js"),[]),"../../views/system/role/authUser.vue":()=>tt(()=>import("./authUser.841e0a49.js"),["assets/authUser.841e0a49.js","assets/selectUser.ff681697.js","assets/role.262b5655.js"]),"../../views/system/role/index.vue":()=>tt(()=>import("./index.ae5ee429.js"),["assets/index.ae5ee429.js","assets/role.262b5655.js","assets/menu.34305f2c.js"]),"../../views/system/role/selectUser.vue":()=>tt(()=>import("./selectUser.ff681697.js"),["assets/selectUser.ff681697.js","assets/role.262b5655.js"]),"../../views/system/user/authRole.vue":()=>tt(()=>import("./authRole.cf8ca290.js"),["assets/authRole.cf8ca290.js","assets/user.99546dc6.js"]),"../../views/system/user/index.vue":()=>tt(()=>import("./index.0bf30d09.js"),["assets/index.0bf30d09.js","assets/user.99546dc6.js"]),"../../views/system/user/profile/index.vue":()=>tt(()=>import("./index.1d4f8f6d.js"),["assets/index.1d4f8f6d.js","assets/userAvatar.649cf20b.js","assets/user.99546dc6.js","assets/userAvatar.7f20522d.css","assets/userInfo.527683c1.js","assets/resetPwd.aba2cdb8.js"]),"../../views/system/user/profile/resetPwd.vue":()=>tt(()=>import("./resetPwd.aba2cdb8.js"),["assets/resetPwd.aba2cdb8.js","assets/user.99546dc6.js"]),"../../views/system/user/profile/userAvatar.vue":()=>tt(()=>import("./userAvatar.649cf20b.js"),["assets/userAvatar.649cf20b.js","assets/user.99546dc6.js","assets/userAvatar.7f20522d.css"]),"../../views/system/user/profile/userInfo.vue":()=>tt(()=>import("./userInfo.527683c1.js"),["assets/userInfo.527683c1.js","assets/user.99546dc6.js"]),"../../views/tool/build/index.vue":()=>tt(()=>import("./index.04adbb43.js"),[]),"../../views/tool/gen/basicInfoForm.vue":()=>tt(()=>import("./basicInfoForm.d83e1258.js"),[]),"../../views/tool/gen/editTable.vue":()=>tt(()=>import("./editTable.0f56bb7f.js"),["assets/editTable.0f56bb7f.js","assets/gen.7890332f.js","assets/type.c70a9fe5.js","assets/basicInfoForm.d83e1258.js","assets/genInfoForm.0633fad0.js","assets/menu.34305f2c.js"]),"../../views/tool/gen/genInfoForm.vue":()=>tt(()=>import("./genInfoForm.0633fad0.js"),["assets/genInfoForm.0633fad0.js","assets/menu.34305f2c.js"]),"../../views/tool/gen/importTable.vue":()=>tt(()=>import("./importTable.a58983e9.js"),["assets/importTable.a58983e9.js","assets/gen.7890332f.js"]),"../../views/tool/gen/index.vue":()=>tt(()=>import("./index.dceb87c3.js"),["assets/index.dceb87c3.js","assets/gen.7890332f.js","assets/importTable.a58983e9.js"]),"../../views/tool/swagger/index.vue":()=>tt(()=>import("./index.9550a4ba.js"),["assets/index.9550a4ba.js","assets/index.25818e4c.js"])}),Ci=xi("permission",{state:()=>({routes:[],addRoutes:[],defaultRoutes:[],topbarRouters:[],sidebarRouters:[]}),actions:{setRoutes(e){this.addRoutes=e,this.routes=rs.concat(e)},setDefaultRoutes(e){this.defaultRoutes=rs.concat(e)},setTopbarRoutes(e){this.topbarRouters=e},setSidebarRouters(e){this.sidebarRouters=e},generateRoutes(e){return new Promise(t=>{vze().then(o=>{const l=JSON.parse(JSON.stringify(o.data)),r=JSON.parse(JSON.stringify(o.data)),n=JSON.parse(JSON.stringify(o.data)),a=yu(l),i=yu(r,!1,!0),c=yu(n);_ze(hze).forEach(d=>{Eo.addRoute(d)}),this.setRoutes(i),this.setSidebarRouters(rs.concat(a)),this.setDefaultRoutes(a),this.setTopbarRoutes(c),t(i)})})}}});function yu(e,t=!1,o=!1){return e.filter(l=>(o&&l.children&&(l.children=X7(l.children)),l.component&&(l.component==="Layout"?l.component=gr:l.component==="ParentView"?l.component=bze:l.component==="InnerLink"?l.component=Y7:l.component=yze(l.component)),l.children!=null&&l.children&&l.children.length?l.children=yu(l.children,l,o):(delete l.children,delete l.redirect),!0))}function X7(e,t=!1){var o=[];return e.forEach((l,r)=>{if(l.children&&l.children.length&&l.component==="ParentView"&&!t){l.children.forEach(n=>{if(n.path=l.path+"/"+n.path,n.children&&n.children.length){o=o.concat(X7(n.children,n));return}o.push(n)});return}t&&(l.path=t.path+"/"+l.path),o=o.concat(l)}),o}function _ze(e){const t=[];return e.forEach(o=>{o.permissions?E1.hasPermiOr(o.permissions)&&t.push(o):o.roles&&E1.hasRoleOr(o.roles)&&t.push(o)}),t}const yze=e=>{let t;for(const o in vv)o.split("views/")[1].split(".vue")[0]===e&&(t=()=>vv[o]());return t};const wze=e=>(U1("data-v-8102ab5b"),e=e(),Y1(),e),xze={ref:"head",class:"headers"},kze=wze(()=>C("img",{src:Fxe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Cze={__name:"index",setup(e){wl(),nl(),Ci(),V(!1),Qe(()=>{});const t=()=>{document.querySelector(".navDiv").style.display="",document.querySelector(".navbar").style.display="",document.querySelector(".app-main").style.height="calc(100% - 50px)",document.querySelector(".headers").style.transform="translate(0, -100%)",document.querySelector(".leftWra")&&(document.querySelector(".leftWra").style.top="10px"),document.querySelector(".rightWra").style.top="10px",document.querySelector(".leftment").style.display="block",document.querySelector(".main-container").style.marginLeft=document.querySelector(".leftment").style.width};return(o,l)=>(y(),$("div",xze,[Je(" \u79CD\u690D\u4E1A\u751F\u4EA7\u76D1\u7BA1\u6570\u5B57\u5316\u7CFB\u7EDF "),C("span",{onClick:t,class:"exit"},[kze,Je(" \u9000\u51FA\u5168\u5C4F ")])],512))}},$ze=Yt(Cze,[["__scopeId","data-v-8102ab5b"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/heades/index.vue"]]);const Sze={class:"center"},zze={__name:"App",setup(e){const t=sc();console.log(t.path),Qe(()=>{Ne(()=>{c7(wl().theme)})});const o=V(null);function l(){o.value.openSetting()}return(r,n)=>{const a=Ve("router-view");return y(),ne(s(Dxe),{width:"100%",height:"100%"},{default:U(()=>[C("div",Sze,[F(s($ze)),s(t).path!=="/login"?(y(),ne(s(CSe),{key:0,onSetLayout:l})):te("v-if",!0),F(a),F(s(Z7),{ref_key:"settingRef",ref:o},null,512)])]),_:1})}}},Eze=Yt(zze,[["__scopeId","data-v-7a7a37b1"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/App.vue"]]),Mze={mounted(e,t,o){const{value:l}=t,r="admin",n=xr().roles;if(l&&l instanceof Array&&l.length>0){const a=l;n.some(c=>r===c||a.includes(c))||e.parentNode&&e.parentNode.removeChild(e)}else throw new Error("\u8BF7\u8BBE\u7F6E\u89D2\u8272\u6743\u9650\u6807\u7B7E\u503C")}},Tze={mounted(e,t,o){const{value:l}=t,r="*:*:*",n=xr().permissions;if(l&&l instanceof Array&&l.length>0){const a=l;n.some(c=>r===c||a.includes(c))||e.parentNode&&e.parentNode.removeChild(e)}else throw new Error("\u8BF7\u8BBE\u7F6E\u64CD\u4F5C\u6743\u9650\u6807\u7B7E\u503C")}},Aze={beforeMount(e,{value:t,arg:o}){if(o==="callback")e.$copyCallback=t;else{e.$copyValue=t;const l=()=>{Oze(e.$copyValue),e.$copyCallback&&e.$copyCallback(e.$copyValue)};e.addEventListener("click",l),e.$destroyCopy=()=>e.removeEventListener("click",l)}}};function Oze(e,{target:t=document.body}={}){const o=document.createElement("textarea"),l=document.activeElement;o.value=e,o.setAttribute("readonly",""),o.style.contain="strict",o.style.position="absolute",o.style.left="-9999px",o.style.fontSize="12pt";const r=document.getSelection(),n=r.rangeCount>0&&r.getRangeAt(0);t.append(o),o.select(),o.selectionStart=0,o.selectionEnd=e.length;let a=!1;try{a=document.execCommand("copy")}catch{}return o.remove(),n&&(r.removeAllRanges(),r.addRange(n)),l&&l.focus(),a}function Vze(e){e.directive("hasRole",Mze),e.directive("hasPermi",Tze),e.directive("copyText",Aze)}const Lze={refreshPage(e){const{path:t,query:o,matched:l}=Eo.currentRoute.value;return e===void 0&&l.forEach(r=>{r.components&&r.components.default&&r.components.default.name&&(["Layout","ParentView"].includes(r.components.default.name)||(e={name:r.components.default.name,path:t,query:o}))}),so().delCachedView(e).then(()=>{const{path:r,query:n}=e;Eo.replace({path:"/redirect"+r,query:n})})},closeOpenPage(e){if(so().delView(Eo.currentRoute.value),e!==void 0)return Eo.push(e)},closePage(e){return e===void 0?so().delView(Eo.currentRoute.value).then(({lastPath:t})=>Eo.push(t||"/index")):so().delView(e)},closeAllPage(){return so().delAllViews()},closeLeftPage(e){return so().delLeftTags(e||Eo.currentRoute.value)},closeRightPage(e){return so().delRightTags(e||Eo.currentRoute.value)},closeOtherPage(e){return so().delOthersViews(e||Eo.currentRoute.value)},openPage(e){return Eo.push(e)},updatePage(e){return so().updateVisitedView(e)}};let mv;const Ize={msg(e){ul.info(e)},msgError(e){ul.error(e)},msgSuccess(e){ul.success(e)},msgWarning(e){ul.warning(e)},alert(e){fr.alert(e,"\u7CFB\u7EDF\u63D0\u793A")},alertError(e){fr.alert(e,"\u7CFB\u7EDF\u63D0\u793A",{type:"error"})},alertSuccess(e){fr.alert(e,"\u7CFB\u7EDF\u63D0\u793A",{type:"success"})},alertWarning(e){fr.alert(e,"\u7CFB\u7EDF\u63D0\u793A",{type:"warning"})},notify(e){Va.info(e)},notifyError(e){Va.error(e)},notifySuccess(e){Va.success(e)},notifyWarning(e){Va.warning(e)},confirm(e){return fr.confirm(e,"\u7CFB\u7EDF\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"})},prompt(e){return fr.prompt(e,"\u7CFB\u7EDF\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"})},loading(e){mv=Vf.service({lock:!0,text:e,background:"rgba(0, 0, 0, 0.7)"})},closeLoading(){mv.close()}},Q0="/stage-api",Pze={name(e,t=!0){var o=Q0+"/common/download?fileName="+encodeURIComponent(e)+"&delete="+t;ts({method:"get",url:o,responseType:"blob",headers:{Authorization:"Bearer "+wr()}}).then(async l=>{if(await bu(l.data)){const n=new Blob([l.data]);this.saveAs(n,decodeURIComponent(l.headers["download-filename"]))}else this.printErrMsg(l.data)})},resource(e){var t=Q0+"/common/download/resource?resource="+encodeURIComponent(e);ts({method:"get",url:t,responseType:"blob",headers:{Authorization:"Bearer "+wr()}}).then(async o=>{if(await bu(o.data)){const r=new Blob([o.data]);this.saveAs(r,decodeURIComponent(o.headers["download-filename"]))}else this.printErrMsg(o.data)})},zip(o,t){var o=Q0+o;ts({method:"get",url:o,responseType:"blob",headers:{Authorization:"Bearer "+wr()}}).then(async l=>{if(await bu(l.data)){const n=new Blob([l.data],{type:"application/zip"});this.saveAs(n,t)}else this.printErrMsg(l.data)})},saveAs(e,t,o){Wf.exports.saveAs(e,t,o)},async printErrMsg(e){const t=await e.text(),o=JSON.parse(t),l=hi[o.code]||o.msg||hi.default;ul.error(l)}};function Rze(e){e.config.globalProperties.$tab=Lze,e.config.globalProperties.$auth=E1,e.config.globalProperties.$cache=_u,e.config.globalProperties.$modal=Ize,e.config.globalProperties.$download=Pze}(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`body { overflow: hidden; } @@ -149,4 +149,4 @@ ${JSON.stringify(G,null,2)} ._fit-screen_119nw_5 ._fit-screen-entity_119nw_31 { overflow: hidden; }`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();var Ao=(e=>(e.FIT="fit",e.SCROLL_Y="scrollY",e.SCROLL_X="scrollX",e.FULL="full",e))(Ao||{});function Hze(e,t,o){let l,r,n,a=0;o||(o={});const i=function(){a=(o==null?void 0:o.leading)===!1?0:new Date().getTime(),l=null,e.apply(r,n),l||(r=n=null)};return function(...u){const d=new Date().getTime();!a&&(o==null?void 0:o.leading)===!1&&(a=d);const p=t-(d-a);r=this,n=u,p<=0||p>t?(l&&(clearTimeout(l),l=null),a=d,e.apply(r,n),l||(r=n=null)):!l&&(o==null?void 0:o.trailing)&&(l=setTimeout(i,p))}}const gv=e=>qd({...e,mode:Ao.FIT}),Nze=e=>qd({...e,mode:Ao.SCROLL_Y}),Bze=e=>qd({...e,mode:Ao.SCROLL_X}),Dze=e=>qd({...e,mode:Ao.FULL});function qd(e){const{width:t=1920,height:o=1080,el:l,mode:r,beforeCalculate:n,afterCalculate:a}=e;let i={widthRatio:1,heightRatio:1};const c=parseFloat((t/o).toFixed(5)),u=()=>{if(!(n&&n(i)===!1)&&l){switch(r){case Ao.FIT:i=parseFloat((window.innerWidth/window.innerHeight).toFixed(5))>c?_v(t,o,c):bv(t,o,c);break;case Ao.SCROLL_X:i=_v(t,o,c);break;case Ao.SCROLL_Y:i=bv(t,o,c);break;case Ao.FULL:i=Fze(t,o);break}l.style.transform=`scale(${i.widthRatio}, ${i.heightRatio})`,a&&a(i)}},d=Hze(()=>{u()},200,{trailing:!0});return{calcRate:u,resize:()=>{window.addEventListener("resize",d)},unResize:()=>{window.removeEventListener("resize",d)}}}function bv(e,t,o){const l=parseFloat((window.innerWidth/o/t).toFixed(5));return{widthRatio:parseFloat((window.innerWidth/e).toFixed(5)),heightRatio:l}}function _v(e,t,o){const l=parseFloat((window.innerHeight*o/e).toFixed(5)),r=parseFloat((window.innerHeight/t).toFixed(5));return{widthRatio:l,heightRatio:r}}function Fze(e,t){const o=parseFloat((window.innerWidth/e).toFixed(5)),l=parseFloat((window.innerHeight/t).toFixed(5));return{widthRatio:o,heightRatio:l}}const jze=(e,t)=>{const o=V(),l=V(),{width:r,height:n,mode:a}=Zt(e),i=()=>{let p;const f={width:r.value,height:n.value,el:l.value,beforeCalculate(h){const v=o.value;v.style.width=`${r.value*h.widthRatio}px`,v.style.height=`${n.value*h.heightRatio}px`},afterCalculate(h){t("scaleChange",h)}};switch(a.value){case Ao.FIT:p=gv,delete f.beforeCalculate;break;case Ao.SCROLL_X:p=Bze;break;case Ao.SCROLL_Y:p=Nze;break;case Ao.FULL:p=Dze,delete f.beforeCalculate;break;default:p=gv,delete f.beforeCalculate}return p(f)};let c,u,d;return me([r,n,a],()=>{d==null||d(),{calcRate:c,resize:u,unResize:d}=i(),c(),u()}),Qe(()=>{({calcRate:c,resize:u,unResize:d}=i()),c(),u()}),lr(()=>{d()}),{entityRef:o,previewRef:l}},Kze=e=>typeof e=="function"?e():e,qze="_fit_119nw_5",Wze="_full_119nw_10",Uze="_scrollY_119nw_19",Yze="_scrollX_119nw_25";var Pc={"fit-screen":"_fit-screen_119nw_5",fit:qze,full:Wze,"fit-screen-scale":"_fit-screen-scale_119nw_16",scrollY:Uze,scrollX:Yze,"fit-screen-entity":"_fit-screen-entity_119nw_31"},Bs=ee({name:"FitScreen",props:{width:{type:Number,default:1920},height:{type:Number,default:1080},mode:{type:String,default:"fit"},scaleClass:{type:[String,Object,Array],default:()=>[]},scaleStyle:{type:[String,Object,Array],default:()=>[]}},emits:{scaleChange(e){const t=o=>typeof o=="number";return t(e.widthRatio)&&t(e.heightRatio)}},setup(e,{emit:t}){const{width:o,height:l,mode:r,scaleStyle:n}=Zt(e),a=S(()=>r.value===Ao.SCROLL_Y||r.value===Ao.SCROLL_X),{previewRef:i,entityRef:c}=jze(e,t),u=S(()=>[{position:"relative",width:o.value?`${o.value}px`:"100%",height:l.value?`${l.value}px`:"100%"},...Array.isArray(n.value)?n.value:[n.value]]);return{showEntity:a,previewRef:i,entityRef:c,previewRefStyle:u}},render(){const e=je("div",{ref:"previewRef",class:["fit-screen-scale",Pc["fit-screen-scale"]]},[je("div",{class:this.scaleClass,style:this.previewRefStyle},Kze(this.$slots.default))]),t=je("div",{ref:"entityRef",class:["fit-screen-entity",Pc["fit-screen-entity"]]},[e]),o=this.showEntity?t:e;return je("div",{class:["fit-screen",Pc["fit-screen"],Pc[this.mode]]},[o])}});const Gze=e=>e.component(Bs.name,Bs);Bs.install=Gze;typeof window<"u"&&window.Vue&&window.Vue.use(Bs);if(typeof window<"u"){let e=function(){var t=document.body,o=document.getElementById("__svg__icons__dom__");o||(o=document.createElementNS("http://www.w3.org/2000/svg","svg"),o.style.position="absolute",o.style.width="0",o.style.height="0",o.id="__svg__icons__dom__",o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),o.innerHTML=' ',t.insertBefore(o,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const Zze=ee({props:{iconClass:{type:String,required:!0},className:{type:String,default:""},color:{type:String,default:""}},setup(e){return{iconName:S(()=>`#icon-${e.iconClass}`),svgClass:S(()=>e.className?`svg-icon ${e.className}`:"svg-icon")}}}),Xze=["xlink:href","fill"];function Jze(e,t,o,l,r,n){return y(),$("svg",{class:E(e.svgClass),"aria-hidden":"true"},[C("use",{"xlink:href":e.iconName,fill:e.color},null,8,Xze)],2)}const Qze=Yt(Zze,[["render",Jze],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/SvgIcon/index.vue"]]),eEe={install:e=>{for(const t in C6){const o=C6[t];e.component(o.name,o)}}};var J7={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress - * @license MIT */(function(e,t){(function(o,l){e.exports=l()})(To,function(){var o={};o.version="0.2.0";var l=o.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:' '};o.configure=function(v){var m,g;for(m in v)g=v[m],g!==void 0&&v.hasOwnProperty(m)&&(l[m]=g);return this},o.status=null,o.set=function(v){var m=o.isStarted();v=r(v,l.minimum,1),o.status=v===1?null:v;var g=o.render(!m),_=g.querySelector(l.barSelector),w=l.speed,b=l.easing;return g.offsetWidth,i(function(k){l.positionUsing===""&&(l.positionUsing=o.getPositioningCSS()),c(_,a(v,w,b)),v===1?(c(g,{transition:"none",opacity:1}),g.offsetWidth,setTimeout(function(){c(g,{transition:"all "+w+"ms linear",opacity:0}),setTimeout(function(){o.remove(),k()},w)},w)):setTimeout(k,w)}),this},o.isStarted=function(){return typeof o.status=="number"},o.start=function(){o.status||o.set(0);var v=function(){setTimeout(function(){!o.status||(o.trickle(),v())},l.trickleSpeed)};return l.trickle&&v(),this},o.done=function(v){return!v&&!o.status?this:o.inc(.3+.5*Math.random()).set(1)},o.inc=function(v){var m=o.status;return m?(typeof v!="number"&&(v=(1-m)*r(Math.random()*m,.1,.95)),m=r(m+v,0,.994),o.set(m)):o.start()},o.trickle=function(){return o.inc(Math.random()*l.trickleRate)},function(){var v=0,m=0;o.promise=function(g){return!g||g.state()==="resolved"?this:(m===0&&o.start(),v++,m++,g.always(function(){m--,m===0?(v=0,o.done()):o.set((v-m)/v)}),this)}}(),o.render=function(v){if(o.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var m=document.createElement("div");m.id="nprogress",m.innerHTML=l.template;var g=m.querySelector(l.barSelector),_=v?"-100":n(o.status||0),w=document.querySelector(l.parent),b;return c(g,{transition:"all 0 linear",transform:"translate3d("+_+"%,0,0)"}),l.showSpinner||(b=m.querySelector(l.spinnerSelector),b&&h(b)),w!=document.body&&d(w,"nprogress-custom-parent"),w.appendChild(m),m},o.remove=function(){p(document.documentElement,"nprogress-busy"),p(document.querySelector(l.parent),"nprogress-custom-parent");var v=document.getElementById("nprogress");v&&h(v)},o.isRendered=function(){return!!document.getElementById("nprogress")},o.getPositioningCSS=function(){var v=document.body.style,m="WebkitTransform"in v?"Webkit":"MozTransform"in v?"Moz":"msTransform"in v?"ms":"OTransform"in v?"O":"";return m+"Perspective"in v?"translate3d":m+"Transform"in v?"translate":"margin"};function r(v,m,g){return vg?g:v}function n(v){return(-1+v)*100}function a(v,m,g){var _;return l.positionUsing==="translate3d"?_={transform:"translate3d("+n(v)+"%,0,0)"}:l.positionUsing==="translate"?_={transform:"translate("+n(v)+"%,0)"}:_={"margin-left":n(v)+"%"},_.transition="all "+m+"ms "+g,_}var i=function(){var v=[];function m(){var g=v.shift();g&&g(m)}return function(g){v.push(g),v.length==1&&m()}}(),c=function(){var v=["Webkit","O","Moz","ms"],m={};function g(k){return k.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(x,z){return z.toUpperCase()})}function _(k){var x=document.body.style;if(k in x)return k;for(var z=v.length,T=k.charAt(0).toUpperCase()+k.slice(1),M;z--;)if(M=v[z]+T,M in x)return M;return k}function w(k){return k=g(k),m[k]||(m[k]=_(k))}function b(k,x,z){x=w(x),k.style[x]=z}return function(k,x){var z=arguments,T,M;if(z.length==2)for(T in x)M=x[T],M!==void 0&&x.hasOwnProperty(T)&&b(k,T,M);else b(k,z[1],z[2])}}();function u(v,m){var g=typeof v=="string"?v:f(v);return g.indexOf(" "+m+" ")>=0}function d(v,m){var g=f(v),_=g+m;u(g,m)||(v.className=_.substring(1))}function p(v,m){var g=f(v),_;!u(v,m)||(_=g.replace(" "+m+" "," "),v.className=_.substring(1,_.length-1))}function f(v){return(" "+(v.className||"")+" ").replace(/\s+/gi," ")}function h(v){v&&v.parentNode&&v.parentNode.removeChild(v)}return o})})(J7);const ns=J7.exports;ns.configure({showSpinner:!1});const tEe=["/login","/auth-redirect","/bind","/register"];Eo.beforeEach((e,t,o)=>{ns.start(),wr()?(e.meta.title&&wl().setTitle(e.meta.title),e.path==="/login"?(o({path:"/"}),ns.done()):xr().roles.length===0?(Ia.show=!0,xr().getInfo().then(()=>{Ia.show=!1,Ci().generateRoutes().then(l=>{l.forEach(r=>{L1(r.path)||Eo.addRoute(r)}),o({...e,replace:!0})})}).catch(l=>{xr().logOut().then(()=>{ul.error(l),o({path:"/"})})})):o()):tEe.indexOf(e.path)!==-1?o():(o(`/login?redirect=${e.fullPath}`),ns.done())});Eo.afterEach(()=>{ns.done()});const yv=xi("dict",{state:()=>({dict:new Array}),actions:{getDict(e){if(e==null&&e=="")return null;try{for(let t=0;t (e.forEach((o,l)=>{t.value[o]=[];const r=yv().getDict(o);r?t.value[o]=r:oEe(o).then(n=>{t.value[o]=n.data.map(a=>({label:a.dictLabel,value:a.dictValue,elTagType:a.listClass,elTagClass:a.cssClass})),yv().setDict(o,t.value[o])})}),Zt(t.value)))()}Math.easeInOutQuad=function(e,t,o,l){return e/=l/2,e<1?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t)};var rEe=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function nEe(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function aEe(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function wv(e,t,o){const l=aEe(),r=e-l,n=20;let a=0;t=typeof t>"u"?500:t;var i=function(){a+=n;var c=Math.easeInOutQuad(a,l,r,t);nEe(c),a o.total&&(l.value=1),t("pagination",{page:l.value,limit:i}),o.autoScroll&&wv(0,800)}function a(i){t("pagination",{page:i,limit:r.value}),o.autoScroll&&wv(0,800)}return(i,c)=>{const u=Ve("el-pagination");return y(),$("div",{class:E([{hidden:e.hidden},"pagination-container"])},[F(u,{background:e.background,"current-page":s(l),"onUpdate:current-page":c[0]||(c[0]=d=>gt(l)?l.value=d:null),"page-size":s(r),"onUpdate:page-size":c[1]||(c[1]=d=>gt(r)?r.value=d:null),layout:e.layout,"page-sizes":e.pageSizes,"pager-count":e.pagerCount,total:e.total,onSizeChange:n,onCurrentChange:a},null,8,["background","current-page","page-size","layout","page-sizes","pager-count","total"])],2)}}},sEe=Yt(iEe,[["__scopeId","data-v-8c60cd3a"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Pagination/index.vue"]]);const cEe={__name:"index",props:{showSearch:{type:Boolean,default:!0},columns:{type:Array},search:{type:Boolean,default:!0},gutter:{type:Number,default:10}},emits:["update:showSearch","queryTable"],setup(e,{emit:t}){const o=e,l=V([]),r=V("\u663E\u793A/\u9690\u85CF"),n=V(!1),a=S(()=>{const p={};return o.gutter&&(p.marginRight=`${o.gutter/2}px`),p});function i(){t("update:showSearch",!o.showSearch)}function c(){t("queryTable")}function u(p){for(let f in o.columns){const h=o.columns[f].key;o.columns[f].visible=!p.includes(h)}}function d(){n.value=!0}for(let p in o.columns)o.columns[p].visible===!1&&l.value.push(parseInt(p));return(p,f)=>{const h=Ve("el-button"),v=Ve("el-tooltip"),m=Ve("el-row"),g=Ve("el-transfer"),_=Ve("el-dialog");return y(),$("div",{class:"top-right-btn",style:He(s(a))},[F(m,null,{default:U(()=>[e.search?(y(),ne(v,{key:0,class:"item",effect:"dark",content:e.showSearch?"\u9690\u85CF\u641C\u7D22":"\u663E\u793A\u641C\u7D22",placement:"top"},{default:U(()=>[F(h,{circle:"",icon:"Search",onClick:f[0]||(f[0]=w=>i())})]),_:1},8,["content"])):te("v-if",!0),F(v,{class:"item",effect:"dark",content:"\u5237\u65B0",placement:"top"},{default:U(()=>[F(h,{circle:"",icon:"Refresh",onClick:f[1]||(f[1]=w=>c())})]),_:1}),e.columns?(y(),ne(v,{key:1,class:"item",effect:"dark",content:"\u663E\u9690\u5217",placement:"top"},{default:U(()=>[F(h,{circle:"",icon:"Menu",onClick:f[2]||(f[2]=w=>d())})]),_:1})):te("v-if",!0)]),_:1}),F(_,{title:s(r),modelValue:s(n),"onUpdate:modelValue":f[4]||(f[4]=w=>gt(n)?n.value=w:null),"append-to-body":""},{default:U(()=>[F(g,{titles:["\u663E\u793A","\u9690\u85CF"],modelValue:s(l),"onUpdate:modelValue":f[3]||(f[3]=w=>gt(l)?l.value=w:null),data:e.columns,onChange:u},null,8,["modelValue","data"])]),_:1},8,["title","modelValue"])],4)}}},uEe=Yt(cEe,[["__scopeId","data-v-f9a120d8"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/RightToolbar/index.vue"]]);const dEe={class:"upload-file"},pEe={key:0,class:"el-upload__tip"},fEe={style:{color:"#f56c6c"}},hEe={style:{color:"#f56c6c"}},vEe={class:"el-icon-document"},mEe={class:"ele-upload-list__item-content-action"},gEe={__name:"index",props:{modelValue:[String,Object,Array],limit:{type:Number,default:5},fileSize:{type:Number,default:5},fileType:{type:Array,default:()=>["doc","xls","ppt","txt","pdf"]},isShowTip:{type:Boolean,default:!0}},setup(e,{emit:t}){const o=e,{proxy:l}=ot(),r=V(0),n=V([]),a="/stage-api",i=V("/stage-api/common/upload"),c=V({Authorization:"Bearer "+wr()}),u=V([]),d=S(()=>o.isShowTip&&(o.fileType||o.fileSize));me(()=>o.modelValue,b=>{if(b){let k=1;const x=Array.isArray(b)?b:o.modelValue.split(",");u.value=x.map(z=>(typeof z=="string"&&(z={name:z,url:z}),z.uid=z.uid||new Date().getTime()+k++,z))}else return u.value=[],[]},{deep:!0,immediate:!0});function p(b){if(o.fileType.length){const k=b.name.split("."),x=k[k.length-1];if(!(o.fileType.indexOf(x)>=0))return l.$modal.msgError(`\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E, \u8BF7\u4E0A\u4F20${o.fileType.join("/")}\u683C\u5F0F\u6587\u4EF6!`),!1}return o.fileSize&&!(b.size/1024/1024 0&&n.value.length===r.value&&(u.value=u.value.filter(b=>b.url!==void 0).concat(n.value),n.value=[],r.value=0,t("update:modelValue",w(u.value)),l.$modal.closeLoading())}function _(b){return b.lastIndexOf("/")>-1?b.slice(b.lastIndexOf("/")+1):""}function w(b,k){let x="";k=k||",";for(let z in b)b[z].url&&(x+=b[z].url+k);return x!=""?x.substr(0,x.length-1):""}return(b,k)=>{const x=Ve("el-button"),z=Ve("el-upload"),T=Ve("el-link");return y(),$("div",dEe,[F(z,{multiple:"",action:s(i),"before-upload":p,"file-list":s(u),limit:e.limit,"on-error":h,"on-exceed":f,"on-success":v,"show-file-list":!1,headers:s(c),class:"upload-file-uploader",ref:"fileUpload"},{default:U(()=>[te(" \u4E0A\u4F20\u6309\u94AE "),F(x,{type:"primary"},{default:U(()=>[Je("\u9009\u53D6\u6587\u4EF6")]),_:1})]),_:1},8,["action","file-list","limit","headers"]),te(" \u4E0A\u4F20\u63D0\u793A "),s(d)?(y(),$("div",pEe,[Je(" \u8BF7\u4E0A\u4F20 "),e.fileSize?(y(),$(Pe,{key:0},[Je(" \u5927\u5C0F\u4E0D\u8D85\u8FC7 "),C("b",fEe,Ce(e.fileSize)+"MB",1)],64)):te("v-if",!0),e.fileType?(y(),$(Pe,{key:1},[Je(" \u683C\u5F0F\u4E3A "),C("b",hEe,Ce(e.fileType.join("/")),1)],64)):te("v-if",!0),Je(" \u7684\u6587\u4EF6 ")])):te("v-if",!0),te(" \u6587\u4EF6\u5217\u8868 "),F(op,{class:"upload-file-list el-upload-list el-upload-list--text",name:"el-fade-in-linear",tag:"ul"},{default:U(()=>[(y(!0),$(Pe,null,ut(s(u),(M,O)=>(y(),$("li",{key:M.uid,class:"el-upload-list__item ele-upload-list__item-content"},[F(T,{href:`${s(a)}${M.url}`,underline:!1,target:"_blank"},{default:U(()=>[C("span",vEe,Ce(_(M.name)),1)]),_:2},1032,["href"]),C("div",mEe,[F(T,{underline:!1,onClick:A=>m(O),type:"danger"},{default:U(()=>[Je("\u5220\u9664")]),_:2},1032,["onClick"])])]))),128))]),_:1})])}}},bEe=Yt(gEe,[["__scopeId","data-v-6c762cc3"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/FileUpload/index.vue"]]);const _Ee={class:"component-upload-image"},yEe={key:0,class:"el-upload__tip"},wEe={style:{color:"#f56c6c"}},xEe={style:{color:"#f56c6c"}},kEe=["src"],CEe={__name:"index",props:{modelValue:[String,Object,Array],limit:{type:Number,default:5},fileSize:{type:Number,default:5},fileType:{type:Array,default:()=>["png","jpg","jpeg"]},isShowTip:{type:Boolean,default:!0}},setup(e,{emit:t}){const o=e,{proxy:l}=ot(),r=V(0),n=V([]),a=V(""),i=V(!1),c="/stage-api",u=V("/stage-api/common/upload"),d=V({Authorization:"Bearer "+wr()}),p=V([]),f=S(()=>o.isShowTip&&(o.fileType||o.fileSize));me(()=>o.modelValue,x=>{if(x){const z=Array.isArray(x)?x:o.modelValue.split(",");p.value=z.map(T=>(typeof T=="string"&&(T.indexOf(c)===-1?T={name:c+T,url:c+T}:T={name:T,url:T}),T))}else return p.value=[],[]},{deep:!0,immediate:!0});function h(x){let z=!1;if(o.fileType.length){let T="";x.name.lastIndexOf(".")>-1&&(T=x.name.slice(x.name.lastIndexOf(".")+1)),z=o.fileType.some(M=>!!(x.type.indexOf(M)>-1||T&&T.indexOf(M)>-1))}else z=x.type.indexOf("image")>-1;if(!z)return l.$modal.msgError(`\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E, \u8BF7\u4E0A\u4F20${o.fileType.join("/")}\u56FE\u7247\u683C\u5F0F\u6587\u4EF6!`),!1;if(o.fileSize&&!(x.size/1024/1024 T.name).indexOf(x.name);if(z>-1&&n.value.length===r.value)return p.value.splice(z,1),t("update:modelValue",k(p.value)),!1}function _(){r.value>0&&n.value.length===r.value&&(p.value=p.value.filter(x=>x.url!==void 0).concat(n.value),n.value=[],r.value=0,t("update:modelValue",k(p.value)),l.$modal.closeLoading())}function w(){l.$modal.msgError("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),l.$modal.closeLoading()}function b(x){a.value=x.url,i.value=!0}function k(x,z){let T="";z=z||",";for(let M in x)x[M].url!==void 0&&x[M].url.indexOf("blob:")!==0&&(T+=x[M].url.replace(c,"")+z);return T!=""?T.substr(0,T.length-1):""}return(x,z)=>{const T=Ve("plus"),M=Ve("el-icon"),O=Ve("el-upload"),A=Ve("el-dialog");return y(),$("div",_Ee,[F(O,{multiple:"",action:s(u),"list-type":"picture-card","on-success":m,"before-upload":h,limit:e.limit,"on-error":w,"on-exceed":v,ref:"imageUpload","before-remove":g,"show-file-list":!0,headers:s(d),"file-list":s(p),"on-preview":b,class:E({hide:s(p).length>=e.limit})},{default:U(()=>[F(M,{class:"avatar-uploader-icon"},{default:U(()=>[F(T)]),_:1})]),_:1},8,["action","limit","headers","file-list","class"]),te(" \u4E0A\u4F20\u63D0\u793A "),s(f)?(y(),$("div",yEe,[Je(" \u8BF7\u4E0A\u4F20 "),e.fileSize?(y(),$(Pe,{key:0},[Je(" \u5927\u5C0F\u4E0D\u8D85\u8FC7 "),C("b",wEe,Ce(e.fileSize)+"MB",1)],64)):te("v-if",!0),e.fileType?(y(),$(Pe,{key:1},[Je(" \u683C\u5F0F\u4E3A "),C("b",xEe,Ce(e.fileType.join("/")),1)],64)):te("v-if",!0),Je(" \u7684\u6587\u4EF6 ")])):te("v-if",!0),F(A,{modelValue:s(i),"onUpdate:modelValue":z[0]||(z[0]=D=>gt(i)?i.value=D:null),title:"\u9884\u89C8",width:"800px","append-to-body":""},{default:U(()=>[C("img",{src:s(a),style:{display:"block","max-width":"100%",margin:"0 auto"}},null,8,kEe)]),_:1},8,["modelValue"])])}}},$Ee=Yt(CEe,[["__scopeId","data-v-a849f13c"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/ImageUpload/index.vue"]]);const SEe={class:"image-slot"},zEe={__name:"index",props:{src:{type:String,default:""},width:{type:[Number,String],default:""},height:{type:[Number,String],default:""}},setup(e){const t=e,o=S(()=>{if(!t.src)return;let a=t.src.split(",")[0];return Ns(a)?a:"/stage-api"+a}),l=S(()=>{if(!t.src)return;let a=t.src.split(","),i=[];return a.forEach(c=>Ns(c)?i.push(c):i.push("/stage-api"+c)),i}),r=S(()=>typeof t.width=="string"?t.width:`${t.width}px`),n=S(()=>typeof t.height=="string"?t.height:`${t.height}px`);return(a,i)=>{const c=Ve("picture-filled"),u=Ve("el-icon"),d=Ve("el-image");return y(),ne(d,{src:`${s(o)}`,fit:"cover",style:He(`width:${s(r)};height:${s(n)};`),"preview-src-list":s(l),"append-to-body":"true"},{error:U(()=>[C("div",SEe,[F(u,null,{default:U(()=>[F(c)]),_:1})])]),_:1},8,["src","style","preview-src-list"])}}},EEe=Yt(zEe,[["__scopeId","data-v-bce5d939"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/ImagePreview/index.vue"]]);const MEe={class:"el-tree-select"},TEe={__name:"index",props:{objMap:{type:Object,default:()=>({value:"id",label:"label",children:"children"})},accordion:{type:Boolean,default:()=>!1},value:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""}},emits:["update:value"],setup(e,{emit:t}){const o=e,{proxy:l}=ot(),r=S({get:()=>o.value,set:h=>{t("update:value",h)}}),n=V(""),a=V([]);function i(){Ne(()=>{const h=r.value;if(h!==null&&typeof h<"u"){const v=l.$refs.selectTree.getNode(h);v&&(n.value=v.data[o.objMap.label],l.$refs.selectTree.setCurrentKey(h),a.value=[h])}else p()})}function c(h){n.value=h[o.objMap.label],r.value=h[o.objMap.value],a.value=[],l.$refs.treeSelect.blur(),u("")}function u(h){l.$refs.selectTree.filter(h)}function d(h,v){return h?v[o.objMap.label].indexOf(h)!==-1:!0}function p(){n.value="",r.value="",a.value=[],f()}function f(){document.querySelectorAll("#tree-option .el-tree-node").forEach(v=>v.classList.remove("is-current"))}return Qe(()=>{i()}),me(r,()=>{i()}),(h,v)=>{const m=Ve("el-tree"),g=Ve("el-option"),_=Ve("el-select");return y(),$("div",MEe,[F(_,{style:{width:"100%"},modelValue:s(r),"onUpdate:modelValue":v[0]||(v[0]=w=>gt(r)?r.value=w:null),ref:"treeSelect",filterable:!0,clearable:!0,onClear:p,"filter-method":u,placeholder:e.placeholder},{default:U(()=>[F(g,{value:s(r),label:s(n)},{default:U(()=>[F(m,{id:"tree-option",ref:"selectTree",accordion:e.accordion,data:e.options,props:e.objMap,"node-key":e.objMap.value,"expand-on-click-node":!1,"default-expanded-keys":s(a),"filter-node-method":d,onNodeClick:c},null,8,["accordion","data","props","node-key","default-expanded-keys"])]),_:1},8,["value","label"])]),_:1},8,["modelValue","placeholder"])])}}},AEe=Yt(TEe,[["__scopeId","data-v-b90c6573"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/TreeSelect/index.vue"]]);const OEe=["index"],VEe={__name:"index",props:{options:{type:Array,default:null},value:[Number,String,Array]},setup(e){const t=e,o=S(()=>t.value!==null&&typeof t.value<"u"?Array.isArray(t.value)?t.value:[String(t.value)]:[]);return(l,r)=>{const n=Ve("el-tag");return y(),$("div",null,[(y(!0),$(Pe,null,ut(e.options,(a,i)=>(y(),$(Pe,null,[s(o).includes(a.value)?(y(),$(Pe,{key:0},[a.elTagType=="default"||a.elTagType==""?(y(),$("span",{key:a.value,index:i,class:E(a.elTagClass)},Ce(a.label),11,OEe)):(y(),ne(n,{"disable-transitions":!0,key:a.value+"",index:i,type:a.elTagType==="primary"?"":a.elTagType,class:E(a.elTagClass)},{default:U(()=>[Je(Ce(a.label),1)]),_:2},1032,["index","type","class"]))],64)):te("v-if",!0)],64))),256))])}}},LEe=Yt(VEe,[["__scopeId","data-v-00e5bcbc"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/DictTag/index.vue"]]),Xt=Um(Eze);Xt.config.globalProperties.useDict=lEe;Xt.config.globalProperties.download=iCe;Xt.config.globalProperties.parseTime=Qke;Xt.config.globalProperties.resetForm=eCe;Xt.config.globalProperties.handleTree=rCe;Xt.config.globalProperties.addDateRange=tCe;Xt.config.globalProperties.selectDictLabel=oCe;Xt.config.globalProperties.selectDictLabels=lCe;Xt.component("DictTag",LEe);Xt.component("Pagination",sEe);Xt.component("TreeSelect",AEe);Xt.component("FileUpload",bEe);Xt.component("ImageUpload",$Ee);Xt.component("ImagePreview",EEe);Xt.component("RightToolbar",uEe);Xt.use(Eo);Xt.use(Txe);Xt.use(Rze);Xt.use(eEe);Xt.component("svg-icon",Qze);Xt.use(Bs);Vze(Xt);Xt.use(exe,{locale:txe,size:El.get("size")||"default"});Xt.mount("#app");export{FEe as $,iCe as A,Ct as B,me as C,Qe as D,fr as E,ts as F,E as G,lt as H,xt as I,Pe as J,ut as K,Cy as L,fm as M,Rt as N,ee as O,gt as P,He as Q,IEe as R,Ne as S,Za as T,Zt as U,HEe as V,NEe as W,DEe as X,yv as Y,BEe as Z,Yt as _,U7 as a,tt as a0,Qze as a1,pn as a2,wr as a3,Eo as a4,xr as b,$ as c,Ve as d,F as e,s as f,te as g,REe as h,El as i,wt as j,ne as k,C as l,Je as m,Ze as n,y as o,U1 as p,Y1 as q,V as r,ot as s,PEe as t,sc as u,S as v,U as w,Ce as x,uw as y,Po as z}; + * @license MIT */(function(e,t){(function(o,l){e.exports=l()})(To,function(){var o={};o.version="0.2.0";var l=o.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:' '};o.configure=function(v){var m,g;for(m in v)g=v[m],g!==void 0&&v.hasOwnProperty(m)&&(l[m]=g);return this},o.status=null,o.set=function(v){var m=o.isStarted();v=r(v,l.minimum,1),o.status=v===1?null:v;var g=o.render(!m),_=g.querySelector(l.barSelector),w=l.speed,b=l.easing;return g.offsetWidth,i(function(k){l.positionUsing===""&&(l.positionUsing=o.getPositioningCSS()),c(_,a(v,w,b)),v===1?(c(g,{transition:"none",opacity:1}),g.offsetWidth,setTimeout(function(){c(g,{transition:"all "+w+"ms linear",opacity:0}),setTimeout(function(){o.remove(),k()},w)},w)):setTimeout(k,w)}),this},o.isStarted=function(){return typeof o.status=="number"},o.start=function(){o.status||o.set(0);var v=function(){setTimeout(function(){!o.status||(o.trickle(),v())},l.trickleSpeed)};return l.trickle&&v(),this},o.done=function(v){return!v&&!o.status?this:o.inc(.3+.5*Math.random()).set(1)},o.inc=function(v){var m=o.status;return m?(typeof v!="number"&&(v=(1-m)*r(Math.random()*m,.1,.95)),m=r(m+v,0,.994),o.set(m)):o.start()},o.trickle=function(){return o.inc(Math.random()*l.trickleRate)},function(){var v=0,m=0;o.promise=function(g){return!g||g.state()==="resolved"?this:(m===0&&o.start(),v++,m++,g.always(function(){m--,m===0?(v=0,o.done()):o.set((v-m)/v)}),this)}}(),o.render=function(v){if(o.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var m=document.createElement("div");m.id="nprogress",m.innerHTML=l.template;var g=m.querySelector(l.barSelector),_=v?"-100":n(o.status||0),w=document.querySelector(l.parent),b;return c(g,{transition:"all 0 linear",transform:"translate3d("+_+"%,0,0)"}),l.showSpinner||(b=m.querySelector(l.spinnerSelector),b&&h(b)),w!=document.body&&d(w,"nprogress-custom-parent"),w.appendChild(m),m},o.remove=function(){p(document.documentElement,"nprogress-busy"),p(document.querySelector(l.parent),"nprogress-custom-parent");var v=document.getElementById("nprogress");v&&h(v)},o.isRendered=function(){return!!document.getElementById("nprogress")},o.getPositioningCSS=function(){var v=document.body.style,m="WebkitTransform"in v?"Webkit":"MozTransform"in v?"Moz":"msTransform"in v?"ms":"OTransform"in v?"O":"";return m+"Perspective"in v?"translate3d":m+"Transform"in v?"translate":"margin"};function r(v,m,g){return vg?g:v}function n(v){return(-1+v)*100}function a(v,m,g){var _;return l.positionUsing==="translate3d"?_={transform:"translate3d("+n(v)+"%,0,0)"}:l.positionUsing==="translate"?_={transform:"translate("+n(v)+"%,0)"}:_={"margin-left":n(v)+"%"},_.transition="all "+m+"ms "+g,_}var i=function(){var v=[];function m(){var g=v.shift();g&&g(m)}return function(g){v.push(g),v.length==1&&m()}}(),c=function(){var v=["Webkit","O","Moz","ms"],m={};function g(k){return k.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(x,z){return z.toUpperCase()})}function _(k){var x=document.body.style;if(k in x)return k;for(var z=v.length,T=k.charAt(0).toUpperCase()+k.slice(1),M;z--;)if(M=v[z]+T,M in x)return M;return k}function w(k){return k=g(k),m[k]||(m[k]=_(k))}function b(k,x,z){x=w(x),k.style[x]=z}return function(k,x){var z=arguments,T,M;if(z.length==2)for(T in x)M=x[T],M!==void 0&&x.hasOwnProperty(T)&&b(k,T,M);else b(k,z[1],z[2])}}();function u(v,m){var g=typeof v=="string"?v:f(v);return g.indexOf(" "+m+" ")>=0}function d(v,m){var g=f(v),_=g+m;u(g,m)||(v.className=_.substring(1))}function p(v,m){var g=f(v),_;!u(v,m)||(_=g.replace(" "+m+" "," "),v.className=_.substring(1,_.length-1))}function f(v){return(" "+(v.className||"")+" ").replace(/\s+/gi," ")}function h(v){v&&v.parentNode&&v.parentNode.removeChild(v)}return o})})(J7);const ns=J7.exports;ns.configure({showSpinner:!1});const tEe=["/login","/auth-redirect","/bind","/register"];Eo.beforeEach((e,t,o)=>{ns.start(),wr()?(e.meta.title&&wl().setTitle(e.meta.title),e.path==="/login"?(o({path:"/"}),ns.done()):xr().roles.length===0?(Ia.show=!0,xr().getInfo().then(()=>{Ia.show=!1,Ci().generateRoutes().then(l=>{l.forEach(r=>{L1(r.path)||Eo.addRoute(r)}),o({...e,replace:!0})})}).catch(l=>{xr().logOut().then(()=>{ul.error(l),o({path:"/"})})})):o()):tEe.indexOf(e.path)!==-1?o():(o(`/login?redirect=${e.fullPath}`),ns.done())});Eo.afterEach(()=>{ns.done()});const yv=xi("dict",{state:()=>({dict:new Array}),actions:{getDict(e){if(e==null&&e=="")return null;try{for(let t=0;t (e.forEach((o,l)=>{t.value[o]=[];const r=yv().getDict(o);r?t.value[o]=r:oEe(o).then(n=>{t.value[o]=n.data.map(a=>({label:a.dictLabel,value:a.dictValue,elTagType:a.listClass,elTagClass:a.cssClass})),yv().setDict(o,t.value[o])})}),Zt(t.value)))()}Math.easeInOutQuad=function(e,t,o,l){return e/=l/2,e<1?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t)};var rEe=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function nEe(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function aEe(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function wv(e,t,o){const l=aEe(),r=e-l,n=20;let a=0;t=typeof t>"u"?500:t;var i=function(){a+=n;var c=Math.easeInOutQuad(a,l,r,t);nEe(c),a o.total&&(l.value=1),t("pagination",{page:l.value,limit:i}),o.autoScroll&&wv(0,800)}function a(i){t("pagination",{page:i,limit:r.value}),o.autoScroll&&wv(0,800)}return(i,c)=>{const u=Ve("el-pagination");return y(),$("div",{class:E([{hidden:e.hidden},"pagination-container"])},[F(u,{background:e.background,"current-page":s(l),"onUpdate:current-page":c[0]||(c[0]=d=>gt(l)?l.value=d:null),"page-size":s(r),"onUpdate:page-size":c[1]||(c[1]=d=>gt(r)?r.value=d:null),layout:e.layout,"page-sizes":e.pageSizes,"pager-count":e.pagerCount,total:e.total,onSizeChange:n,onCurrentChange:a},null,8,["background","current-page","page-size","layout","page-sizes","pager-count","total"])],2)}}},sEe=Yt(iEe,[["__scopeId","data-v-8c60cd3a"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/Pagination/index.vue"]]);const cEe={__name:"index",props:{showSearch:{type:Boolean,default:!0},columns:{type:Array},search:{type:Boolean,default:!0},gutter:{type:Number,default:10}},emits:["update:showSearch","queryTable"],setup(e,{emit:t}){const o=e,l=V([]),r=V("\u663E\u793A/\u9690\u85CF"),n=V(!1),a=S(()=>{const p={};return o.gutter&&(p.marginRight=`${o.gutter/2}px`),p});function i(){t("update:showSearch",!o.showSearch)}function c(){t("queryTable")}function u(p){for(let f in o.columns){const h=o.columns[f].key;o.columns[f].visible=!p.includes(h)}}function d(){n.value=!0}for(let p in o.columns)o.columns[p].visible===!1&&l.value.push(parseInt(p));return(p,f)=>{const h=Ve("el-button"),v=Ve("el-tooltip"),m=Ve("el-row"),g=Ve("el-transfer"),_=Ve("el-dialog");return y(),$("div",{class:"top-right-btn",style:He(s(a))},[F(m,null,{default:U(()=>[e.search?(y(),ne(v,{key:0,class:"item",effect:"dark",content:e.showSearch?"\u9690\u85CF\u641C\u7D22":"\u663E\u793A\u641C\u7D22",placement:"top"},{default:U(()=>[F(h,{circle:"",icon:"Search",onClick:f[0]||(f[0]=w=>i())})]),_:1},8,["content"])):te("v-if",!0),F(v,{class:"item",effect:"dark",content:"\u5237\u65B0",placement:"top"},{default:U(()=>[F(h,{circle:"",icon:"Refresh",onClick:f[1]||(f[1]=w=>c())})]),_:1}),e.columns?(y(),ne(v,{key:1,class:"item",effect:"dark",content:"\u663E\u9690\u5217",placement:"top"},{default:U(()=>[F(h,{circle:"",icon:"Menu",onClick:f[2]||(f[2]=w=>d())})]),_:1})):te("v-if",!0)]),_:1}),F(_,{title:s(r),modelValue:s(n),"onUpdate:modelValue":f[4]||(f[4]=w=>gt(n)?n.value=w:null),"append-to-body":""},{default:U(()=>[F(g,{titles:["\u663E\u793A","\u9690\u85CF"],modelValue:s(l),"onUpdate:modelValue":f[3]||(f[3]=w=>gt(l)?l.value=w:null),data:e.columns,onChange:u},null,8,["modelValue","data"])]),_:1},8,["title","modelValue"])],4)}}},uEe=Yt(cEe,[["__scopeId","data-v-f9a120d8"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/RightToolbar/index.vue"]]);const dEe={class:"upload-file"},pEe={key:0,class:"el-upload__tip"},fEe={style:{color:"#f56c6c"}},hEe={style:{color:"#f56c6c"}},vEe={class:"el-icon-document"},mEe={class:"ele-upload-list__item-content-action"},gEe={__name:"index",props:{modelValue:[String,Object,Array],limit:{type:Number,default:5},fileSize:{type:Number,default:5},fileType:{type:Array,default:()=>["doc","xls","ppt","txt","pdf"]},isShowTip:{type:Boolean,default:!0}},setup(e,{emit:t}){const o=e,{proxy:l}=ot(),r=V(0),n=V([]),a="/stage-api",i=V("/stage-api/common/upload"),c=V({Authorization:"Bearer "+wr()}),u=V([]),d=S(()=>o.isShowTip&&(o.fileType||o.fileSize));me(()=>o.modelValue,b=>{if(b){let k=1;const x=Array.isArray(b)?b:o.modelValue.split(",");u.value=x.map(z=>(typeof z=="string"&&(z={name:z,url:z}),z.uid=z.uid||new Date().getTime()+k++,z))}else return u.value=[],[]},{deep:!0,immediate:!0});function p(b){if(o.fileType.length){const k=b.name.split("."),x=k[k.length-1];if(!(o.fileType.indexOf(x)>=0))return l.$modal.msgError(`\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E, \u8BF7\u4E0A\u4F20${o.fileType.join("/")}\u683C\u5F0F\u6587\u4EF6!`),!1}return o.fileSize&&!(b.size/1024/1024 0&&n.value.length===r.value&&(u.value=u.value.filter(b=>b.url!==void 0).concat(n.value),n.value=[],r.value=0,t("update:modelValue",w(u.value)),l.$modal.closeLoading())}function _(b){return b.lastIndexOf("/")>-1?b.slice(b.lastIndexOf("/")+1):""}function w(b,k){let x="";k=k||",";for(let z in b)b[z].url&&(x+=b[z].url+k);return x!=""?x.substr(0,x.length-1):""}return(b,k)=>{const x=Ve("el-button"),z=Ve("el-upload"),T=Ve("el-link");return y(),$("div",dEe,[F(z,{multiple:"",action:s(i),"before-upload":p,"file-list":s(u),limit:e.limit,"on-error":h,"on-exceed":f,"on-success":v,"show-file-list":!1,headers:s(c),class:"upload-file-uploader",ref:"fileUpload"},{default:U(()=>[te(" \u4E0A\u4F20\u6309\u94AE "),F(x,{type:"primary"},{default:U(()=>[Je("\u9009\u53D6\u6587\u4EF6")]),_:1})]),_:1},8,["action","file-list","limit","headers"]),te(" \u4E0A\u4F20\u63D0\u793A "),s(d)?(y(),$("div",pEe,[Je(" \u8BF7\u4E0A\u4F20 "),e.fileSize?(y(),$(Pe,{key:0},[Je(" \u5927\u5C0F\u4E0D\u8D85\u8FC7 "),C("b",fEe,Ce(e.fileSize)+"MB",1)],64)):te("v-if",!0),e.fileType?(y(),$(Pe,{key:1},[Je(" \u683C\u5F0F\u4E3A "),C("b",hEe,Ce(e.fileType.join("/")),1)],64)):te("v-if",!0),Je(" \u7684\u6587\u4EF6 ")])):te("v-if",!0),te(" \u6587\u4EF6\u5217\u8868 "),F(op,{class:"upload-file-list el-upload-list el-upload-list--text",name:"el-fade-in-linear",tag:"ul"},{default:U(()=>[(y(!0),$(Pe,null,ut(s(u),(M,O)=>(y(),$("li",{key:M.uid,class:"el-upload-list__item ele-upload-list__item-content"},[F(T,{href:`${s(a)}${M.url}`,underline:!1,target:"_blank"},{default:U(()=>[C("span",vEe,Ce(_(M.name)),1)]),_:2},1032,["href"]),C("div",mEe,[F(T,{underline:!1,onClick:A=>m(O),type:"danger"},{default:U(()=>[Je("\u5220\u9664")]),_:2},1032,["onClick"])])]))),128))]),_:1})])}}},bEe=Yt(gEe,[["__scopeId","data-v-6c762cc3"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/FileUpload/index.vue"]]);const _Ee={class:"component-upload-image"},yEe={key:0,class:"el-upload__tip"},wEe={style:{color:"#f56c6c"}},xEe={style:{color:"#f56c6c"}},kEe=["src"],CEe={__name:"index",props:{modelValue:[String,Object,Array],limit:{type:Number,default:5},fileSize:{type:Number,default:5},fileType:{type:Array,default:()=>["png","jpg","jpeg"]},isShowTip:{type:Boolean,default:!0}},setup(e,{emit:t}){const o=e,{proxy:l}=ot(),r=V(0),n=V([]),a=V(""),i=V(!1),c="/stage-api",u=V("/stage-api/common/upload"),d=V({Authorization:"Bearer "+wr()}),p=V([]),f=S(()=>o.isShowTip&&(o.fileType||o.fileSize));me(()=>o.modelValue,x=>{if(x){const z=Array.isArray(x)?x:o.modelValue.split(",");p.value=z.map(T=>(typeof T=="string"&&(T.indexOf(c)===-1?T={name:c+T,url:c+T}:T={name:T,url:T}),T))}else return p.value=[],[]},{deep:!0,immediate:!0});function h(x){let z=!1;if(o.fileType.length){let T="";x.name.lastIndexOf(".")>-1&&(T=x.name.slice(x.name.lastIndexOf(".")+1)),z=o.fileType.some(M=>!!(x.type.indexOf(M)>-1||T&&T.indexOf(M)>-1))}else z=x.type.indexOf("image")>-1;if(!z)return l.$modal.msgError(`\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E, \u8BF7\u4E0A\u4F20${o.fileType.join("/")}\u56FE\u7247\u683C\u5F0F\u6587\u4EF6!`),!1;if(o.fileSize&&!(x.size/1024/1024 T.name).indexOf(x.name);if(z>-1&&n.value.length===r.value)return p.value.splice(z,1),t("update:modelValue",k(p.value)),!1}function _(){r.value>0&&n.value.length===r.value&&(p.value=p.value.filter(x=>x.url!==void 0).concat(n.value),n.value=[],r.value=0,t("update:modelValue",k(p.value)),l.$modal.closeLoading())}function w(){l.$modal.msgError("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),l.$modal.closeLoading()}function b(x){a.value=x.url,i.value=!0}function k(x,z){let T="";z=z||",";for(let M in x)x[M].url!==void 0&&x[M].url.indexOf("blob:")!==0&&(T+=x[M].url.replace(c,"")+z);return T!=""?T.substr(0,T.length-1):""}return(x,z)=>{const T=Ve("plus"),M=Ve("el-icon"),O=Ve("el-upload"),A=Ve("el-dialog");return y(),$("div",_Ee,[F(O,{multiple:"",action:s(u),"list-type":"picture-card","on-success":m,"before-upload":h,limit:e.limit,"on-error":w,"on-exceed":v,ref:"imageUpload","before-remove":g,"show-file-list":!0,headers:s(d),"file-list":s(p),"on-preview":b,class:E({hide:s(p).length>=e.limit})},{default:U(()=>[F(M,{class:"avatar-uploader-icon"},{default:U(()=>[F(T)]),_:1})]),_:1},8,["action","limit","headers","file-list","class"]),te(" \u4E0A\u4F20\u63D0\u793A "),s(f)?(y(),$("div",yEe,[Je(" \u8BF7\u4E0A\u4F20 "),e.fileSize?(y(),$(Pe,{key:0},[Je(" \u5927\u5C0F\u4E0D\u8D85\u8FC7 "),C("b",wEe,Ce(e.fileSize)+"MB",1)],64)):te("v-if",!0),e.fileType?(y(),$(Pe,{key:1},[Je(" \u683C\u5F0F\u4E3A "),C("b",xEe,Ce(e.fileType.join("/")),1)],64)):te("v-if",!0),Je(" \u7684\u6587\u4EF6 ")])):te("v-if",!0),F(A,{modelValue:s(i),"onUpdate:modelValue":z[0]||(z[0]=D=>gt(i)?i.value=D:null),title:"\u9884\u89C8",width:"800px","append-to-body":""},{default:U(()=>[C("img",{src:s(a),style:{display:"block","max-width":"100%",margin:"0 auto"}},null,8,kEe)]),_:1},8,["modelValue"])])}}},$Ee=Yt(CEe,[["__scopeId","data-v-a849f13c"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/ImageUpload/index.vue"]]);const SEe={class:"image-slot"},zEe={__name:"index",props:{src:{type:String,default:""},width:{type:[Number,String],default:""},height:{type:[Number,String],default:""}},setup(e){const t=e,o=S(()=>{if(!t.src)return;let a=t.src.split(",")[0];return Ns(a)?a:"/stage-api"+a}),l=S(()=>{if(!t.src)return;let a=t.src.split(","),i=[];return a.forEach(c=>Ns(c)?i.push(c):i.push("/stage-api"+c)),i}),r=S(()=>typeof t.width=="string"?t.width:`${t.width}px`),n=S(()=>typeof t.height=="string"?t.height:`${t.height}px`);return(a,i)=>{const c=Ve("picture-filled"),u=Ve("el-icon"),d=Ve("el-image");return y(),ne(d,{src:`${s(o)}`,fit:"cover",style:He(`width:${s(r)};height:${s(n)};`),"preview-src-list":s(l),"append-to-body":"true"},{error:U(()=>[C("div",SEe,[F(u,null,{default:U(()=>[F(c)]),_:1})])]),_:1},8,["src","style","preview-src-list"])}}},EEe=Yt(zEe,[["__scopeId","data-v-bce5d939"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/ImagePreview/index.vue"]]);const MEe={class:"el-tree-select"},TEe={__name:"index",props:{objMap:{type:Object,default:()=>({value:"id",label:"label",children:"children"})},accordion:{type:Boolean,default:()=>!1},value:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""}},emits:["update:value"],setup(e,{emit:t}){const o=e,{proxy:l}=ot(),r=S({get:()=>o.value,set:h=>{t("update:value",h)}}),n=V(""),a=V([]);function i(){Ne(()=>{const h=r.value;if(h!==null&&typeof h<"u"){const v=l.$refs.selectTree.getNode(h);v&&(n.value=v.data[o.objMap.label],l.$refs.selectTree.setCurrentKey(h),a.value=[h])}else p()})}function c(h){n.value=h[o.objMap.label],r.value=h[o.objMap.value],a.value=[],l.$refs.treeSelect.blur(),u("")}function u(h){l.$refs.selectTree.filter(h)}function d(h,v){return h?v[o.objMap.label].indexOf(h)!==-1:!0}function p(){n.value="",r.value="",a.value=[],f()}function f(){document.querySelectorAll("#tree-option .el-tree-node").forEach(v=>v.classList.remove("is-current"))}return Qe(()=>{i()}),me(r,()=>{i()}),(h,v)=>{const m=Ve("el-tree"),g=Ve("el-option"),_=Ve("el-select");return y(),$("div",MEe,[F(_,{style:{width:"100%"},modelValue:s(r),"onUpdate:modelValue":v[0]||(v[0]=w=>gt(r)?r.value=w:null),ref:"treeSelect",filterable:!0,clearable:!0,onClear:p,"filter-method":u,placeholder:e.placeholder},{default:U(()=>[F(g,{value:s(r),label:s(n)},{default:U(()=>[F(m,{id:"tree-option",ref:"selectTree",accordion:e.accordion,data:e.options,props:e.objMap,"node-key":e.objMap.value,"expand-on-click-node":!1,"default-expanded-keys":s(a),"filter-node-method":d,onNodeClick:c},null,8,["accordion","data","props","node-key","default-expanded-keys"])]),_:1},8,["value","label"])]),_:1},8,["modelValue","placeholder"])])}}},AEe=Yt(TEe,[["__scopeId","data-v-b90c6573"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/TreeSelect/index.vue"]]);const OEe=["index"],VEe={__name:"index",props:{options:{type:Array,default:null},value:[Number,String,Array]},setup(e){const t=e,o=S(()=>t.value!==null&&typeof t.value<"u"?Array.isArray(t.value)?t.value:[String(t.value)]:[]);return(l,r)=>{const n=Ve("el-tag");return y(),$("div",null,[(y(!0),$(Pe,null,ut(e.options,(a,i)=>(y(),$(Pe,null,[s(o).includes(a.value)?(y(),$(Pe,{key:0},[a.elTagType=="default"||a.elTagType==""?(y(),$("span",{key:a.value,index:i,class:E(a.elTagClass)},Ce(a.label),11,OEe)):(y(),ne(n,{"disable-transitions":!0,key:a.value+"",index:i,type:a.elTagType==="primary"?"":a.elTagType,class:E(a.elTagClass)},{default:U(()=>[Je(Ce(a.label),1)]),_:2},1032,["index","type","class"]))],64)):te("v-if",!0)],64))),256))])}}},LEe=Yt(VEe,[["__scopeId","data-v-00e5bcbc"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/DictTag/index.vue"]]),Xt=Um(Eze);Xt.config.globalProperties.useDict=lEe;Xt.config.globalProperties.download=iCe;Xt.config.globalProperties.parseTime=Qke;Xt.config.globalProperties.resetForm=eCe;Xt.config.globalProperties.handleTree=rCe;Xt.config.globalProperties.addDateRange=tCe;Xt.config.globalProperties.selectDictLabel=oCe;Xt.config.globalProperties.selectDictLabels=lCe;Xt.component("DictTag",LEe);Xt.component("Pagination",sEe);Xt.component("TreeSelect",AEe);Xt.component("FileUpload",bEe);Xt.component("ImageUpload",$Ee);Xt.component("ImagePreview",EEe);Xt.component("RightToolbar",uEe);Xt.use(Eo);Xt.use(Txe);Xt.use(Rze);Xt.use(eEe);Xt.component("svg-icon",Qze);Xt.use(Bs);Vze(Xt);Xt.use(exe,{locale:txe,size:El.get("size")||"default"});Xt.mount("#app");export{FEe as $,Ct as A,me as B,Qe as C,ts as D,fr as E,E as F,lt as G,xt as H,Pe as I,ut as J,iCe as K,Cy as L,fm as M,Rt as N,ee as O,gt as P,He as Q,IEe as R,Ne as S,Za as T,Zt as U,HEe as V,NEe as W,DEe as X,yv as Y,BEe as Z,Yt as _,U7 as a,tt as a0,Qze as a1,pn as a2,wr as a3,Eo as a4,xr as b,$ as c,Ve as d,F as e,s as f,te as g,REe as h,El as i,wt as j,ne as k,C as l,Je as m,Ze as n,y as o,U1 as p,Y1 as q,V as r,ot as s,PEe as t,sc as u,S as v,U as w,Ce as x,uw as y,Po as z}; diff --git a/dist/assets/index.5f349928.js.gz b/dist/assets/index.b3a66a9e.js.gz similarity index 82% rename from dist/assets/index.5f349928.js.gz rename to dist/assets/index.b3a66a9e.js.gz index da7a1b2..899030b 100644 Binary files a/dist/assets/index.5f349928.js.gz and b/dist/assets/index.b3a66a9e.js.gz differ diff --git a/dist/assets/index.3959e19c.js b/dist/assets/index.b4026c69.js similarity index 80% rename from dist/assets/index.3959e19c.js rename to dist/assets/index.b4026c69.js index e9e58a6..70f63d8 100644 --- a/dist/assets/index.3959e19c.js +++ b/dist/assets/index.b4026c69.js @@ -1 +1 @@ -import{_ as e,o,c as r}from"./index.5f349928.js";const t={};function n(c,s,i,a,l,_){return o(),r("div",null,"\u6C14\u8C61\u4FE1\u606F")}const p=e(t,[["render",n],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/monitor/information/index.vue"]]);export{p as default}; +import{_ as e,o,c as r}from"./index.b3a66a9e.js";const t={};function n(c,s,i,a,l,_){return o(),r("div",null,"\u6C14\u8C61\u4FE1\u606F")}const p=e(t,[["render",n],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/monitor/information/index.vue"]]);export{p as default}; diff --git a/dist/assets/index.e2b08c5e.js b/dist/assets/index.bcc9a532.js similarity index 92% rename from dist/assets/index.e2b08c5e.js rename to dist/assets/index.bcc9a532.js index df1d2fa..85a47da 100644 --- a/dist/assets/index.e2b08c5e.js +++ b/dist/assets/index.bcc9a532.js @@ -1 +1 @@ -import{a0 as e,_ as ne,r as E,d as r,o as n,c as w,e as t,w as s,f as o,P as K,l as c,J as z,K as Q,x as H,p as be,q as ye,O as he,B as ke,U as we,T as _e,H as k,I as xe,j as Ce,k as v,m as a,a1 as le,g as V,a2 as Ne,s as Se,S as Ue}from"./index.5f349928.js";import{l as ie,g as qe,u as Fe,a as $e,d as Me}from"./menu.773fa00b.js";let M=[];const Be=Object.assign({"../../assets/icons/svg/404.svg":()=>e(()=>import("./404.b46c7eb9.js"),[]),"../../assets/icons/svg/a.svg":()=>e(()=>import("./a.c175d9ba.js"),[]),"../../assets/icons/svg/a1.svg":()=>e(()=>import("./a1.4a1b0b36.js"),[]),"../../assets/icons/svg/a10.svg":()=>e(()=>import("./a10.47c7954a.js"),[]),"../../assets/icons/svg/a11.svg":()=>e(()=>import("./a11.8c5a885c.js"),[]),"../../assets/icons/svg/a12.svg":()=>e(()=>import("./a12.25f6e714.js"),[]),"../../assets/icons/svg/a13.svg":()=>e(()=>import("./a13.6ddf1677.js"),[]),"../../assets/icons/svg/a14.svg":()=>e(()=>import("./a14.c8681b2b.js"),[]),"../../assets/icons/svg/a15.svg":()=>e(()=>import("./a15.59cf3fc0.js"),[]),"../../assets/icons/svg/a16.svg":()=>e(()=>import("./a16.90544047.js"),[]),"../../assets/icons/svg/a17.svg":()=>e(()=>import("./a17.86f34042.js"),[]),"../../assets/icons/svg/a18.svg":()=>e(()=>import("./a18.9c397f68.js"),[]),"../../assets/icons/svg/a19.svg":()=>e(()=>import("./a19.afac1fbf.js"),[]),"../../assets/icons/svg/a2.svg":()=>e(()=>import("./a2.65b204c0.js"),[]),"../../assets/icons/svg/a20.svg":()=>e(()=>import("./a20.26390af9.js"),[]),"../../assets/icons/svg/a21.svg":()=>e(()=>import("./a21.96da2201.js"),[]),"../../assets/icons/svg/a22.svg":()=>e(()=>import("./a22.33157f59.js"),[]),"../../assets/icons/svg/a23.svg":()=>e(()=>import("./a23.426f8b9c.js"),[]),"../../assets/icons/svg/a24.svg":()=>e(()=>import("./a24.9fa17628.js"),[]),"../../assets/icons/svg/a25.svg":()=>e(()=>import("./a25.867d4107.js"),[]),"../../assets/icons/svg/a26.svg":()=>e(()=>import("./a26.bcf40cf1.js"),[]),"../../assets/icons/svg/a27.svg":()=>e(()=>import("./a27.6d39a605.js"),[]),"../../assets/icons/svg/a28.svg":()=>e(()=>import("./a28.ed00bb73.js"),[]),"../../assets/icons/svg/a29.svg":()=>e(()=>import("./a29.d2c5abe9.js"),[]),"../../assets/icons/svg/a3.svg":()=>e(()=>import("./a3.83649b15.js"),[]),"../../assets/icons/svg/a4.svg":()=>e(()=>import("./a4.96b3e081.js"),[]),"../../assets/icons/svg/a5.svg":()=>e(()=>import("./a5.9214e7c3.js"),[]),"../../assets/icons/svg/a6.svg":()=>e(()=>import("./a6.c2d434d2.js"),[]),"../../assets/icons/svg/a7.svg":()=>e(()=>import("./a7.fd67fc9d.js"),[]),"../../assets/icons/svg/a8.svg":()=>e(()=>import("./a8.c9d20d6b.js"),[]),"../../assets/icons/svg/a9.svg":()=>e(()=>import("./a9.33c7777e.js"),[]),"../../assets/icons/svg/b1.svg":()=>e(()=>import("./b1.246a97d7.js"),[]),"../../assets/icons/svg/b10.svg":()=>e(()=>import("./b10.eeed115e.js"),[]),"../../assets/icons/svg/b11.svg":()=>e(()=>import("./b11.a63022a0.js"),[]),"../../assets/icons/svg/b12.svg":()=>e(()=>import("./b12.15398793.js"),[]),"../../assets/icons/svg/b13.svg":()=>e(()=>import("./b13.69b42b02.js"),[]),"../../assets/icons/svg/b2.svg":()=>e(()=>import("./b2.674648ca.js"),[]),"../../assets/icons/svg/b3.svg":()=>e(()=>import("./b3.dc0eba19.js"),[]),"../../assets/icons/svg/b4.svg":()=>e(()=>import("./b4.c88ae0fc.js"),[]),"../../assets/icons/svg/b5.svg":()=>e(()=>import("./b5.4b4a17f1.js"),[]),"../../assets/icons/svg/b6.svg":()=>e(()=>import("./b6.b89cb281.js"),[]),"../../assets/icons/svg/b7.svg":()=>e(()=>import("./b7.9e306e33.js"),[]),"../../assets/icons/svg/b8.svg":()=>e(()=>import("./b8.21b3ff08.js"),[]),"../../assets/icons/svg/b9.svg":()=>e(()=>import("./b9.1d4d49b1.js"),[]),"../../assets/icons/svg/bingtu.svg":()=>e(()=>import("./bingtu.7079dd47.js"),[]),"../../assets/icons/svg/bug.svg":()=>e(()=>import("./bug.c2b901ab.js"),[]),"../../assets/icons/svg/build.svg":()=>e(()=>import("./build.cee08664.js"),[]),"../../assets/icons/svg/button.svg":()=>e(()=>import("./button.d4ec432f.js"),[]),"../../assets/icons/svg/cascader.svg":()=>e(()=>import("./cascader.1134cded.js"),[]),"../../assets/icons/svg/chart.svg":()=>e(()=>import("./chart.47c5fc09.js"),[]),"../../assets/icons/svg/checkbox.svg":()=>e(()=>import("./checkbox.e0011079.js"),[]),"../../assets/icons/svg/clipboard.svg":()=>e(()=>import("./clipboard.4cb84a95.js"),[]),"../../assets/icons/svg/code.svg":()=>e(()=>import("./code.e3552bf9.js"),[]),"../../assets/icons/svg/color.svg":()=>e(()=>import("./color.36c00dbd.js"),[]),"../../assets/icons/svg/component.svg":()=>e(()=>import("./component.39aabf93.js"),[]),"../../assets/icons/svg/dashboard.svg":()=>e(()=>import("./dashboard.1cdb26b4.js"),[]),"../../assets/icons/svg/date-range.svg":()=>e(()=>import("./date-range.61256616.js"),[]),"../../assets/icons/svg/date.svg":()=>e(()=>import("./date.1a1b54fa.js"),[]),"../../assets/icons/svg/dict.svg":()=>e(()=>import("./dict.f9e4196e.js"),[]),"../../assets/icons/svg/documentation.svg":()=>e(()=>import("./documentation.a5f1c591.js"),[]),"../../assets/icons/svg/download.svg":()=>e(()=>import("./download.b06fbc7a.js"),[]),"../../assets/icons/svg/downloads.svg":()=>e(()=>import("./downloads.e955445d.js"),[]),"../../assets/icons/svg/drag.svg":()=>e(()=>import("./drag.855f09b1.js"),[]),"../../assets/icons/svg/druid.svg":()=>e(()=>import("./druid.59e3bde2.js"),[]),"../../assets/icons/svg/edit.svg":()=>e(()=>import("./edit.6138f7bd.js"),[]),"../../assets/icons/svg/education.svg":()=>e(()=>import("./education.9cdfc09c.js"),[]),"../../assets/icons/svg/email.svg":()=>e(()=>import("./email.6177a1b7.js"),[]),"../../assets/icons/svg/example.svg":()=>e(()=>import("./example.28eb468e.js"),[]),"../../assets/icons/svg/excel.svg":()=>e(()=>import("./excel.9680a7a3.js"),[]),"../../assets/icons/svg/exit-fullscreen.svg":()=>e(()=>import("./exit-fullscreen.7693107c.js"),[]),"../../assets/icons/svg/eye-open.svg":()=>e(()=>import("./eye-open.2742c814.js"),[]),"../../assets/icons/svg/eye.svg":()=>e(()=>import("./eye.7efea8d7.js"),[]),"../../assets/icons/svg/fenglei.svg":()=>e(()=>import("./fenglei.0b49f170.js"),[]),"../../assets/icons/svg/form.svg":()=>e(()=>import("./form.fe6029ff.js"),[]),"../../assets/icons/svg/fullscreen.svg":()=>e(()=>import("./fullscreen.181ef4f1.js"),[]),"../../assets/icons/svg/github.svg":()=>e(()=>import("./github.f0d66958.js"),[]),"../../assets/icons/svg/guide.svg":()=>e(()=>import("./guide.40474b41.js"),[]),"../../assets/icons/svg/icon.svg":()=>e(()=>import("./icon.2d1c0100.js"),[]),"../../assets/icons/svg/input.svg":()=>e(()=>import("./input.a7187a4f.js"),[]),"../../assets/icons/svg/international.svg":()=>e(()=>import("./international.7ee45404.js"),[]),"../../assets/icons/svg/job.svg":()=>e(()=>import("./job.ef157af3.js"),[]),"../../assets/icons/svg/language.svg":()=>e(()=>import("./language.443cf574.js"),[]),"../../assets/icons/svg/link.svg":()=>e(()=>import("./link.64f798fb.js"),[]),"../../assets/icons/svg/list.svg":()=>e(()=>import("./list.88f483cb.js"),[]),"../../assets/icons/svg/lock.svg":()=>e(()=>import("./lock.b3970863.js"),[]),"../../assets/icons/svg/log.svg":()=>e(()=>import("./log.6a61dc82.js"),[]),"../../assets/icons/svg/logininfor.svg":()=>e(()=>import("./logininfor.1258c2cb.js"),[]),"../../assets/icons/svg/message.svg":()=>e(()=>import("./message.082e45f4.js"),[]),"../../assets/icons/svg/money.svg":()=>e(()=>import("./money.1bcf65d6.js"),[]),"../../assets/icons/svg/monitor.svg":()=>e(()=>import("./monitor.16d358a5.js"),[]),"../../assets/icons/svg/nested.svg":()=>e(()=>import("./nested.0325dcc4.js"),[]),"../../assets/icons/svg/number.svg":()=>e(()=>import("./number.63af79ba.js"),[]),"../../assets/icons/svg/online.svg":()=>e(()=>import("./online.0bccf30b.js"),[]),"../../assets/icons/svg/password.svg":()=>e(()=>import("./password.4f940edf.js"),[]),"../../assets/icons/svg/pdf.svg":()=>e(()=>import("./pdf.53cff26e.js"),[]),"../../assets/icons/svg/people.svg":()=>e(()=>import("./people.87963c2b.js"),[]),"../../assets/icons/svg/peoples.svg":()=>e(()=>import("./peoples.0e6279eb.js"),[]),"../../assets/icons/svg/phone.svg":()=>e(()=>import("./phone.5ce31124.js"),[]),"../../assets/icons/svg/post.svg":()=>e(()=>import("./post.8daa8f25.js"),[]),"../../assets/icons/svg/qq.svg":()=>e(()=>import("./qq.74ce5ed3.js"),[]),"../../assets/icons/svg/question.svg":()=>e(()=>import("./question.0c8624b9.js"),[]),"../../assets/icons/svg/radio.svg":()=>e(()=>import("./radio.d6beef62.js"),[]),"../../assets/icons/svg/rate.svg":()=>e(()=>import("./rate.4a8dcd58.js"),[]),"../../assets/icons/svg/redis-list.svg":()=>e(()=>import("./redis-list.8924bf0a.js"),[]),"../../assets/icons/svg/redis.svg":()=>e(()=>import("./redis.615d741a.js"),[]),"../../assets/icons/svg/row.svg":()=>e(()=>import("./row.1bd8ad7e.js"),[]),"../../assets/icons/svg/search.svg":()=>e(()=>import("./search.33b822fc.js"),[]),"../../assets/icons/svg/select.svg":()=>e(()=>import("./select.558564a5.js"),[]),"../../assets/icons/svg/server.svg":()=>e(()=>import("./server.f0461856.js"),[]),"../../assets/icons/svg/shopping.svg":()=>e(()=>import("./shopping.b0e0ebd3.js"),[]),"../../assets/icons/svg/size.svg":()=>e(()=>import("./size.a85972fe.js"),[]),"../../assets/icons/svg/skill.svg":()=>e(()=>import("./skill.bb02a4ac.js"),[]),"../../assets/icons/svg/slider.svg":()=>e(()=>import("./slider.ab079a74.js"),[]),"../../assets/icons/svg/star.svg":()=>e(()=>import("./star.5374eaaa.js"),[]),"../../assets/icons/svg/swagger.svg":()=>e(()=>import("./swagger.0f6005b0.js"),[]),"../../assets/icons/svg/switch.svg":()=>e(()=>import("./switch.39427d32.js"),[]),"../../assets/icons/svg/system.svg":()=>e(()=>import("./system.dd8f4370.js"),[]),"../../assets/icons/svg/tab.svg":()=>e(()=>import("./tab.837765b4.js"),[]),"../../assets/icons/svg/table.svg":()=>e(()=>import("./table.53c6772c.js"),[]),"../../assets/icons/svg/textarea.svg":()=>e(()=>import("./textarea.7dc42e90.js"),[]),"../../assets/icons/svg/theme.svg":()=>e(()=>import("./theme.988b699a.js"),[]),"../../assets/icons/svg/time-range.svg":()=>e(()=>import("./time-range.134e4394.js"),[]),"../../assets/icons/svg/time.svg":()=>e(()=>import("./time.145701c2.js"),[]),"../../assets/icons/svg/tool.svg":()=>e(()=>import("./tool.c30a4b30.js"),[]),"../../assets/icons/svg/tree-table.svg":()=>e(()=>import("./tree-table.a57dac2f.js"),[]),"../../assets/icons/svg/tree.svg":()=>e(()=>import("./tree.3a250732.js"),[]),"../../assets/icons/svg/upload.svg":()=>e(()=>import("./upload.02a15e1b.js"),[]),"../../assets/icons/svg/user.svg":()=>e(()=>import("./user.0c7aa22a.js"),[]),"../../assets/icons/svg/validCode.svg":()=>e(()=>import("./validCode.c5c7d4df.js"),[]),"../../assets/icons/svg/wechat.svg":()=>e(()=>import("./wechat.ec3af840.js"),[]),"../../assets/icons/svg/zip.svg":()=>e(()=>import("./zip.fc1b638f.js"),[]),"../../assets/icons/svg/\u997C\u56FE(1).svg":()=>e(()=>import("./\u997C\u56FE(1).d17f9b6f.js"),[])});for(const y in Be){const m=y.split("assets/icons/svg/")[1].split(".svg")[0];M.push(m)}const je=y=>(be("data-v-93339799"),y=y(),ye(),y),Ke={class:"icon-body"},ze=je(()=>c("i",{class:"el-icon-search el-input__icon"},null,-1)),Qe={class:"icon-list"},He=["onClick"],Je={__name:"index",emits:["selected"],setup(y,{expose:m,emit:J}){const I=E(""),h=E(M);function f(){h.value=M,I.value&&(h.value=M.filter(A=>A.indexOf(I.value)!==-1))}function U(A){J("selected",A),document.body.click()}function x(){I.value="",h.value=M}return m({reset:x}),(A,C)=>{const q=r("el-input"),F=r("svg-icon");return n(),w("div",Ke,[t(q,{modelValue:o(I),"onUpdate:modelValue":C[0]||(C[0]=g=>K(I)?I.value=g:null),style:{position:"relative"},clearable:"",placeholder:"\u8BF7\u8F93\u5165\u56FE\u6807\u540D\u79F0",onClear:f,onInput:f},{suffix:s(()=>[ze]),_:1},8,["modelValue"]),c("div",Qe,[(n(!0),w(z,null,Q(o(h),(g,B)=>(n(),w("div",{key:B,onClick:X=>U(g)},[t(F,{"icon-class":g,style:{height:"30px",width:"16px"}},null,8,["icon-class"]),c("span",null,H(g),1)],8,He))),128))])])}}},Ge=ne(Je,[["__scopeId","data-v-93339799"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/IconSelect/index.vue"]]),We={class:"app-container"},Xe={class:"dialog-footer"},Ye=he({name:"Menu"}),Ze=Object.assign(Ye,{setup(y){const{proxy:m}=Se(),{sys_show_hide:J,sys_normal_disable:I}=m.useDict("sys_show_hide","sys_normal_disable"),h=E([]),f=E(!1),U=E(!0),x=E(!0),A=E(""),C=E([]),q=E(!1),F=E(!0),g=E(!1),B=E(null),X=ke({form:{},queryParams:{menuName:void 0,visible:void 0},rules:{menuName:[{required:!0,message:"\u83DC\u5355\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],orderNum:[{required:!0,message:"\u83DC\u5355\u987A\u5E8F\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],path:[{required:!0,message:"\u8DEF\u7531\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}}),{queryParams:N,form:l,rules:ae}=we(X);function S(){U.value=!0,ie(N.value).then(u=>{h.value=m.handleTree(u.data,"menuId"),U.value=!1})}function Y(){C.value=[],ie().then(u=>{const i={menuId:0,menuName:"\u4E3B\u7C7B\u76EE",children:[]};i.children=m.handleTree(u.data,"menuId"),C.value.push(i)})}function re(){f.value=!1,G()}function G(){l.value={menuId:void 0,parentId:0,menuName:void 0,icon:void 0,menuType:"M",orderNum:void 0,isFrame:"1",isCache:"0",visible:"0",status:"0"},m.resetForm("menuRef")}function Z(){B.value.reset(),g.value=!0}function ue(u){l.value.icon=u,g.value=!1}function ve(u){var i=u.relatedTarget||u.srcElement||u.target||u.currentTarget,T=i.className;T!=="el-input__inner"&&(g.value=!1)}function W(){S()}function de(){m.resetForm("queryRef"),W()}function ee(u){G(),Y(),u!=null&&u.menuId?l.value.parentId=u.menuId:l.value.parentId=0,f.value=!0,A.value="\u6DFB\u52A0\u83DC\u5355"}function pe(){F.value=!1,q.value=!q.value,Ue(()=>{F.value=!0})}async function me(u){G(),await Y(),qe(u.menuId).then(i=>{l.value=i.data,f.value=!0,A.value="\u4FEE\u6539\u83DC\u5355"})}function ce(){m.$refs.menuRef.validate(u=>{u&&(l.value.menuId!=null?Fe(l.value).then(i=>{m.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),f.value=!1,S()}):$e(l.value).then(i=>{m.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),f.value=!1,S()}))})}function ge(u){m.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u540D\u79F0\u4E3A"'+u.menuName+'"\u7684\u6570\u636E\u9879?').then(function(){return Me(u.menuId)}).then(()=>{S(),m.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}return S(),(u,i)=>{const T=r("el-input"),d=r("el-form-item"),Ee=r("el-option"),fe=r("el-select"),P=r("el-button"),se=r("el-form"),p=r("el-col"),Ve=r("right-toolbar"),te=r("el-row"),O=r("el-table-column"),Ie=r("dict-tag"),Te=r("el-table"),Pe=r("el-tree-select"),R=r("el-radio"),$=r("el-radio-group"),Re=r("search"),D=r("el-icon"),De=r("el-popover"),Ae=r("el-input-number"),L=r("question-filled"),b=r("el-tooltip"),Oe=r("el-dialog"),j=_e("hasPermi"),Le=_e("loading");return n(),w("div",We,[k(t(se,{model:o(N),ref:"queryRef",inline:!0},{default:s(()=>[t(d,{label:"\u83DC\u5355\u540D\u79F0",prop:"menuName"},{default:s(()=>[t(T,{modelValue:o(N).menuName,"onUpdate:modelValue":i[0]||(i[0]=_=>o(N).menuName=_),placeholder:"\u8BF7\u8F93\u5165\u83DC\u5355\u540D\u79F0",clearable:"",style:{width:"200px"},onKeyup:Ce(W,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),t(d,{label:"\u72B6\u6001",prop:"status"},{default:s(()=>[t(fe,{modelValue:o(N).status,"onUpdate:modelValue":i[1]||(i[1]=_=>o(N).status=_),placeholder:"\u83DC\u5355\u72B6\u6001",clearable:"",style:{width:"200px"}},{default:s(()=>[(n(!0),w(z,null,Q(o(I),_=>(n(),v(Ee,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(d,null,{default:s(()=>[t(P,{type:"primary",icon:"Search",onClick:W},{default:s(()=>[a("\u641C\u7D22")]),_:1}),t(P,{icon:"Refresh",onClick:de},{default:s(()=>[a("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[xe,o(x)]]),t(te,{gutter:10,class:"mb8"},{default:s(()=>[t(p,{span:1.5},{default:s(()=>[k((n(),v(P,{type:"primary",plain:"",icon:"Plus",onClick:ee},{default:s(()=>[a("\u65B0\u589E")]),_:1})),[[j,["system:menu:add"]]])]),_:1},8,["span"]),t(p,{span:1.5},{default:s(()=>[t(P,{type:"info",plain:"",icon:"Sort",onClick:pe},{default:s(()=>[a("\u5C55\u5F00/\u6298\u53E0")]),_:1})]),_:1},8,["span"]),t(Ve,{showSearch:o(x),"onUpdate:showSearch":i[2]||(i[2]=_=>K(x)?x.value=_:null),onQueryTable:S},null,8,["showSearch"])]),_:1}),o(F)?k((n(),v(Te,{key:0,data:o(h),"row-key":"menuId","default-expand-all":o(q),"tree-props":{children:"children",hasChildren:"hasChildren"}},{default:s(()=>[t(O,{prop:"menuName",label:"\u83DC\u5355\u540D\u79F0","show-overflow-tooltip":!0,width:"160"}),t(O,{prop:"icon",label:"\u56FE\u6807",align:"center",width:"100"},{default:s(_=>[t(o(le),{"icon-class":_.row.icon},null,8,["icon-class"])]),_:1}),t(O,{prop:"orderNum",label:"\u6392\u5E8F",width:"60"}),t(O,{prop:"perms",label:"\u6743\u9650\u6807\u8BC6","show-overflow-tooltip":!0}),t(O,{prop:"component",label:"\u7EC4\u4EF6\u8DEF\u5F84","show-overflow-tooltip":!0}),t(O,{prop:"status",label:"\u72B6\u6001",width:"80"},{default:s(_=>[t(Ie,{options:o(I),value:_.row.status},null,8,["options","value"])]),_:1}),t(O,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime"},{default:s(_=>[c("span",null,H(u.parseTime(_.row.createTime)),1)]),_:1}),t(O,{label:"\u64CD\u4F5C",align:"center",width:"210","class-name":"small-padding fixed-width"},{default:s(_=>[k((n(),v(P,{link:"",type:"primary",icon:"Edit",onClick:oe=>me(_.row)},{default:s(()=>[a("\u4FEE\u6539")]),_:2},1032,["onClick"])),[[j,["system:menu:edit"]]]),k((n(),v(P,{link:"",type:"primary",icon:"Plus",onClick:oe=>ee(_.row)},{default:s(()=>[a("\u65B0\u589E")]),_:2},1032,["onClick"])),[[j,["system:menu:add"]]]),k((n(),v(P,{link:"",type:"primary",icon:"Delete",onClick:oe=>ge(_.row)},{default:s(()=>[a("\u5220\u9664")]),_:2},1032,["onClick"])),[[j,["system:menu:remove"]]])]),_:1})]),_:1},8,["data","default-expand-all"])),[[Le,o(U)]]):V("v-if",!0),V(" \u6DFB\u52A0\u6216\u4FEE\u6539\u83DC\u5355\u5BF9\u8BDD\u6846 "),t(Oe,{title:o(A),modelValue:o(f),"onUpdate:modelValue":i[17]||(i[17]=_=>K(f)?f.value=_:null),width:"680px","append-to-body":""},{footer:s(()=>[c("div",Xe,[t(P,{type:"primary",onClick:ce},{default:s(()=>[a("\u786E \u5B9A")]),_:1}),t(P,{onClick:re},{default:s(()=>[a("\u53D6 \u6D88")]),_:1})])]),default:s(()=>[t(se,{ref:"menuRef",model:o(l),rules:o(ae),"label-width":"100px"},{default:s(()=>[t(te,null,{default:s(()=>[t(p,{span:24},{default:s(()=>[t(d,{label:"\u4E0A\u7EA7\u83DC\u5355"},{default:s(()=>[t(Pe,{modelValue:o(l).parentId,"onUpdate:modelValue":i[3]||(i[3]=_=>o(l).parentId=_),data:o(C),props:{value:"menuId",label:"menuName",children:"children"},"value-key":"menuId",placeholder:"\u9009\u62E9\u4E0A\u7EA7\u83DC\u5355","check-strictly":""},null,8,["modelValue","data"])]),_:1})]),_:1}),t(p,{span:24},{default:s(()=>[t(d,{label:"\u83DC\u5355\u7C7B\u578B",prop:"menuType"},{default:s(()=>[t($,{modelValue:o(l).menuType,"onUpdate:modelValue":i[4]||(i[4]=_=>o(l).menuType=_)},{default:s(()=>[t(R,{label:"M"},{default:s(()=>[a("\u76EE\u5F55")]),_:1}),t(R,{label:"C"},{default:s(()=>[a("\u83DC\u5355")]),_:1}),t(R,{label:"F"},{default:s(()=>[a("\u6309\u94AE")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),o(l).menuType!="F"?(n(),v(p,{key:0,span:24},{default:s(()=>[t(d,{label:"\u83DC\u5355\u56FE\u6807",prop:"icon"},{default:s(()=>[t(De,{placement:"bottom-start",width:540,visible:o(g),"onUpdate:visible":i[6]||(i[6]=_=>K(g)?g.value=_:null),trigger:"click",onShow:Z},{reference:s(()=>[k((n(),v(T,{modelValue:o(l).icon,"onUpdate:modelValue":i[5]||(i[5]=_=>o(l).icon=_),placeholder:"\u70B9\u51FB\u9009\u62E9\u56FE\u6807",onBlur:Z,readonly:""},{prefix:s(()=>[o(l).icon?(n(),v(o(le),{key:0,"icon-class":o(l).icon,class:"el-input__icon",style:{height:"32px",width:"16px"}},null,8,["icon-class"])):(n(),v(D,{key:1,style:{height:"32px",width:"16px"}},{default:s(()=>[t(Re)]),_:1}))]),_:1},8,["modelValue"])),[[o(Ne),ve]])]),default:s(()=>[t(o(Ge),{ref_key:"iconSelectRef",ref:B,onSelected:ue},null,512)]),_:1},8,["visible"])]),_:1})]),_:1})):V("v-if",!0),t(p,{span:12},{default:s(()=>[t(d,{label:"\u83DC\u5355\u540D\u79F0",prop:"menuName"},{default:s(()=>[t(T,{modelValue:o(l).menuName,"onUpdate:modelValue":i[7]||(i[7]=_=>o(l).menuName=_),placeholder:"\u8BF7\u8F93\u5165\u83DC\u5355\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),t(p,{span:12},{default:s(()=>[t(d,{label:"\u663E\u793A\u6392\u5E8F",prop:"orderNum"},{default:s(()=>[t(Ae,{modelValue:o(l).orderNum,"onUpdate:modelValue":i[8]||(i[8]=_=>o(l).orderNum=_),"controls-position":"right",min:0},null,8,["modelValue"])]),_:1})]),_:1}),o(l).menuType!="F"?(n(),v(p,{key:1,span:12},{default:s(()=>[t(d,null,{label:s(()=>[c("span",null,[t(b,{content:"\u9009\u62E9\u662F\u5916\u94FE\u5219\u8DEF\u7531\u5730\u5740\u9700\u8981\u4EE5`http(s)://`\u5F00\u5934",placement:"top"},{default:s(()=>[t(D,null,{default:s(()=>[t(L)]),_:1})]),_:1}),a("\u662F\u5426\u5916\u94FE ")])]),default:s(()=>[t($,{modelValue:o(l).isFrame,"onUpdate:modelValue":i[9]||(i[9]=_=>o(l).isFrame=_)},{default:s(()=>[t(R,{label:"0"},{default:s(()=>[a("\u662F")]),_:1}),t(R,{label:"1"},{default:s(()=>[a("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})):V("v-if",!0),o(l).menuType!="F"?(n(),v(p,{key:2,span:12},{default:s(()=>[t(d,{prop:"path"},{label:s(()=>[c("span",null,[t(b,{content:"\u8BBF\u95EE\u7684\u8DEF\u7531\u5730\u5740\uFF0C\u5982\uFF1A`user`\uFF0C\u5982\u5916\u7F51\u5730\u5740\u9700\u5185\u94FE\u8BBF\u95EE\u5219\u4EE5`http(s)://`\u5F00\u5934",placement:"top"},{default:s(()=>[t(D,null,{default:s(()=>[t(L)]),_:1})]),_:1}),a(" \u8DEF\u7531\u5730\u5740 ")])]),default:s(()=>[t(T,{modelValue:o(l).path,"onUpdate:modelValue":i[10]||(i[10]=_=>o(l).path=_),placeholder:"\u8BF7\u8F93\u5165\u8DEF\u7531\u5730\u5740"},null,8,["modelValue"])]),_:1})]),_:1})):V("v-if",!0),o(l).menuType=="C"?(n(),v(p,{key:3,span:12},{default:s(()=>[t(d,{prop:"component"},{label:s(()=>[c("span",null,[t(b,{content:"\u8BBF\u95EE\u7684\u7EC4\u4EF6\u8DEF\u5F84\uFF0C\u5982\uFF1A`system/user/index`\uFF0C\u9ED8\u8BA4\u5728`views`\u76EE\u5F55\u4E0B",placement:"top"},{default:s(()=>[t(D,null,{default:s(()=>[t(L)]),_:1})]),_:1}),a(" \u7EC4\u4EF6\u8DEF\u5F84 ")])]),default:s(()=>[t(T,{modelValue:o(l).component,"onUpdate:modelValue":i[11]||(i[11]=_=>o(l).component=_),placeholder:"\u8BF7\u8F93\u5165\u7EC4\u4EF6\u8DEF\u5F84"},null,8,["modelValue"])]),_:1})]),_:1})):V("v-if",!0),o(l).menuType!="M"?(n(),v(p,{key:4,span:12},{default:s(()=>[t(d,null,{label:s(()=>[c("span",null,[t(b,{content:"\u63A7\u5236\u5668\u4E2D\u5B9A\u4E49\u7684\u6743\u9650\u5B57\u7B26\uFF0C\u5982\uFF1A@PreAuthorize(`@ss.hasPermi('system:user:list')`)",placement:"top"},{default:s(()=>[t(D,null,{default:s(()=>[t(L)]),_:1})]),_:1}),a(" \u6743\u9650\u5B57\u7B26 ")])]),default:s(()=>[t(T,{modelValue:o(l).perms,"onUpdate:modelValue":i[12]||(i[12]=_=>o(l).perms=_),placeholder:"\u8BF7\u8F93\u5165\u6743\u9650\u6807\u8BC6",maxlength:"100"},null,8,["modelValue"])]),_:1})]),_:1})):V("v-if",!0),o(l).menuType=="C"?(n(),v(p,{key:5,span:12},{default:s(()=>[t(d,null,{label:s(()=>[c("span",null,[t(b,{content:'\u8BBF\u95EE\u8DEF\u7531\u7684\u9ED8\u8BA4\u4F20\u9012\u53C2\u6570\uFF0C\u5982\uFF1A`{"id": 1, "name": "ry"}`',placement:"top"},{default:s(()=>[t(D,null,{default:s(()=>[t(L)]),_:1})]),_:1}),a(" \u8DEF\u7531\u53C2\u6570 ")])]),default:s(()=>[t(T,{modelValue:o(l).query,"onUpdate:modelValue":i[13]||(i[13]=_=>o(l).query=_),placeholder:"\u8BF7\u8F93\u5165\u8DEF\u7531\u53C2\u6570",maxlength:"255"},null,8,["modelValue"])]),_:1})]),_:1})):V("v-if",!0),o(l).menuType=="C"?(n(),v(p,{key:6,span:12},{default:s(()=>[t(d,null,{label:s(()=>[c("span",null,[t(b,{content:"\u9009\u62E9\u662F\u5219\u4F1A\u88AB`keep-alive`\u7F13\u5B58\uFF0C\u9700\u8981\u5339\u914D\u7EC4\u4EF6\u7684`name`\u548C\u5730\u5740\u4FDD\u6301\u4E00\u81F4",placement:"top"},{default:s(()=>[t(D,null,{default:s(()=>[t(L)]),_:1})]),_:1}),a(" \u662F\u5426\u7F13\u5B58 ")])]),default:s(()=>[t($,{modelValue:o(l).isCache,"onUpdate:modelValue":i[14]||(i[14]=_=>o(l).isCache=_)},{default:s(()=>[t(R,{label:"0"},{default:s(()=>[a("\u7F13\u5B58")]),_:1}),t(R,{label:"1"},{default:s(()=>[a("\u4E0D\u7F13\u5B58")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})):V("v-if",!0),o(l).menuType!="F"?(n(),v(p,{key:7,span:12},{default:s(()=>[t(d,null,{label:s(()=>[c("span",null,[t(b,{content:"\u9009\u62E9\u9690\u85CF\u5219\u8DEF\u7531\u5C06\u4E0D\u4F1A\u51FA\u73B0\u5728\u4FA7\u8FB9\u680F\uFF0C\u4F46\u4ECD\u7136\u53EF\u4EE5\u8BBF\u95EE",placement:"top"},{default:s(()=>[t(D,null,{default:s(()=>[t(L)]),_:1})]),_:1}),a(" \u663E\u793A\u72B6\u6001 ")])]),default:s(()=>[t($,{modelValue:o(l).visible,"onUpdate:modelValue":i[15]||(i[15]=_=>o(l).visible=_)},{default:s(()=>[(n(!0),w(z,null,Q(o(J),_=>(n(),v(R,{key:_.value,label:_.value},{default:s(()=>[a(H(_.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})):V("v-if",!0),o(l).menuType!="F"?(n(),v(p,{key:8,span:12},{default:s(()=>[t(d,null,{label:s(()=>[c("span",null,[t(b,{content:"\u9009\u62E9\u505C\u7528\u5219\u8DEF\u7531\u5C06\u4E0D\u4F1A\u51FA\u73B0\u5728\u4FA7\u8FB9\u680F\uFF0C\u4E5F\u4E0D\u80FD\u88AB\u8BBF\u95EE",placement:"top"},{default:s(()=>[t(D,null,{default:s(()=>[t(L)]),_:1})]),_:1}),a(" \u83DC\u5355\u72B6\u6001 ")])]),default:s(()=>[t($,{modelValue:o(l).status,"onUpdate:modelValue":i[16]||(i[16]=_=>o(l).status=_)},{default:s(()=>[(n(!0),w(z,null,Q(o(I),_=>(n(),v(R,{key:_.value,label:_.value},{default:s(()=>[a(H(_.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})):V("v-if",!0)]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}}),ts=ne(Ze,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/system/menu/index.vue"]]);export{ts as default}; +import{a0 as e,_ as ne,r as E,d as r,o as n,c as w,e as t,w as s,f as o,P as z,l as c,I as K,J as Q,x as G,p as be,q as ye,O as he,A as ke,U as we,T as _e,G as k,H as xe,j as Ce,k as v,m as a,a1 as le,g as V,a2 as Ne,s as Se,S as Ue}from"./index.b3a66a9e.js";import{l as ie,g as qe,u as Fe,a as $e,d as Me}from"./menu.34305f2c.js";let M=[];const Be=Object.assign({"../../assets/icons/svg/404.svg":()=>e(()=>import("./404.b46c7eb9.js"),[]),"../../assets/icons/svg/a.svg":()=>e(()=>import("./a.c175d9ba.js"),[]),"../../assets/icons/svg/a1.svg":()=>e(()=>import("./a1.4a1b0b36.js"),[]),"../../assets/icons/svg/a10.svg":()=>e(()=>import("./a10.47c7954a.js"),[]),"../../assets/icons/svg/a11.svg":()=>e(()=>import("./a11.8c5a885c.js"),[]),"../../assets/icons/svg/a12.svg":()=>e(()=>import("./a12.25f6e714.js"),[]),"../../assets/icons/svg/a13.svg":()=>e(()=>import("./a13.6ddf1677.js"),[]),"../../assets/icons/svg/a14.svg":()=>e(()=>import("./a14.c8681b2b.js"),[]),"../../assets/icons/svg/a15.svg":()=>e(()=>import("./a15.59cf3fc0.js"),[]),"../../assets/icons/svg/a16.svg":()=>e(()=>import("./a16.90544047.js"),[]),"../../assets/icons/svg/a17.svg":()=>e(()=>import("./a17.86f34042.js"),[]),"../../assets/icons/svg/a18.svg":()=>e(()=>import("./a18.9c397f68.js"),[]),"../../assets/icons/svg/a19.svg":()=>e(()=>import("./a19.afac1fbf.js"),[]),"../../assets/icons/svg/a2.svg":()=>e(()=>import("./a2.65b204c0.js"),[]),"../../assets/icons/svg/a20.svg":()=>e(()=>import("./a20.26390af9.js"),[]),"../../assets/icons/svg/a21.svg":()=>e(()=>import("./a21.96da2201.js"),[]),"../../assets/icons/svg/a22.svg":()=>e(()=>import("./a22.33157f59.js"),[]),"../../assets/icons/svg/a23.svg":()=>e(()=>import("./a23.426f8b9c.js"),[]),"../../assets/icons/svg/a24.svg":()=>e(()=>import("./a24.9fa17628.js"),[]),"../../assets/icons/svg/a25.svg":()=>e(()=>import("./a25.867d4107.js"),[]),"../../assets/icons/svg/a26.svg":()=>e(()=>import("./a26.bcf40cf1.js"),[]),"../../assets/icons/svg/a27.svg":()=>e(()=>import("./a27.6d39a605.js"),[]),"../../assets/icons/svg/a28.svg":()=>e(()=>import("./a28.ed00bb73.js"),[]),"../../assets/icons/svg/a29.svg":()=>e(()=>import("./a29.d2c5abe9.js"),[]),"../../assets/icons/svg/a3.svg":()=>e(()=>import("./a3.83649b15.js"),[]),"../../assets/icons/svg/a4.svg":()=>e(()=>import("./a4.96b3e081.js"),[]),"../../assets/icons/svg/a5.svg":()=>e(()=>import("./a5.9214e7c3.js"),[]),"../../assets/icons/svg/a6.svg":()=>e(()=>import("./a6.c2d434d2.js"),[]),"../../assets/icons/svg/a7.svg":()=>e(()=>import("./a7.fd67fc9d.js"),[]),"../../assets/icons/svg/a8.svg":()=>e(()=>import("./a8.c9d20d6b.js"),[]),"../../assets/icons/svg/a9.svg":()=>e(()=>import("./a9.33c7777e.js"),[]),"../../assets/icons/svg/b1.svg":()=>e(()=>import("./b1.246a97d7.js"),[]),"../../assets/icons/svg/b10.svg":()=>e(()=>import("./b10.eeed115e.js"),[]),"../../assets/icons/svg/b11.svg":()=>e(()=>import("./b11.a63022a0.js"),[]),"../../assets/icons/svg/b12.svg":()=>e(()=>import("./b12.15398793.js"),[]),"../../assets/icons/svg/b13.svg":()=>e(()=>import("./b13.69b42b02.js"),[]),"../../assets/icons/svg/b2.svg":()=>e(()=>import("./b2.674648ca.js"),[]),"../../assets/icons/svg/b3.svg":()=>e(()=>import("./b3.dc0eba19.js"),[]),"../../assets/icons/svg/b4.svg":()=>e(()=>import("./b4.c88ae0fc.js"),[]),"../../assets/icons/svg/b5.svg":()=>e(()=>import("./b5.4b4a17f1.js"),[]),"../../assets/icons/svg/b6.svg":()=>e(()=>import("./b6.b89cb281.js"),[]),"../../assets/icons/svg/b7.svg":()=>e(()=>import("./b7.9e306e33.js"),[]),"../../assets/icons/svg/b8.svg":()=>e(()=>import("./b8.21b3ff08.js"),[]),"../../assets/icons/svg/b9.svg":()=>e(()=>import("./b9.1d4d49b1.js"),[]),"../../assets/icons/svg/bingtu.svg":()=>e(()=>import("./bingtu.7079dd47.js"),[]),"../../assets/icons/svg/bug.svg":()=>e(()=>import("./bug.c2b901ab.js"),[]),"../../assets/icons/svg/build.svg":()=>e(()=>import("./build.cee08664.js"),[]),"../../assets/icons/svg/button.svg":()=>e(()=>import("./button.d4ec432f.js"),[]),"../../assets/icons/svg/cascader.svg":()=>e(()=>import("./cascader.1134cded.js"),[]),"../../assets/icons/svg/chart.svg":()=>e(()=>import("./chart.47c5fc09.js"),[]),"../../assets/icons/svg/checkbox.svg":()=>e(()=>import("./checkbox.e0011079.js"),[]),"../../assets/icons/svg/clipboard.svg":()=>e(()=>import("./clipboard.4cb84a95.js"),[]),"../../assets/icons/svg/code.svg":()=>e(()=>import("./code.e3552bf9.js"),[]),"../../assets/icons/svg/color.svg":()=>e(()=>import("./color.36c00dbd.js"),[]),"../../assets/icons/svg/component.svg":()=>e(()=>import("./component.39aabf93.js"),[]),"../../assets/icons/svg/dashboard.svg":()=>e(()=>import("./dashboard.1cdb26b4.js"),[]),"../../assets/icons/svg/date-range.svg":()=>e(()=>import("./date-range.61256616.js"),[]),"../../assets/icons/svg/date.svg":()=>e(()=>import("./date.1a1b54fa.js"),[]),"../../assets/icons/svg/dict.svg":()=>e(()=>import("./dict.f9e4196e.js"),[]),"../../assets/icons/svg/documentation.svg":()=>e(()=>import("./documentation.a5f1c591.js"),[]),"../../assets/icons/svg/download.svg":()=>e(()=>import("./download.b06fbc7a.js"),[]),"../../assets/icons/svg/downloads.svg":()=>e(()=>import("./downloads.e955445d.js"),[]),"../../assets/icons/svg/drag.svg":()=>e(()=>import("./drag.855f09b1.js"),[]),"../../assets/icons/svg/druid.svg":()=>e(()=>import("./druid.59e3bde2.js"),[]),"../../assets/icons/svg/edit.svg":()=>e(()=>import("./edit.6138f7bd.js"),[]),"../../assets/icons/svg/education.svg":()=>e(()=>import("./education.9cdfc09c.js"),[]),"../../assets/icons/svg/email.svg":()=>e(()=>import("./email.6177a1b7.js"),[]),"../../assets/icons/svg/example.svg":()=>e(()=>import("./example.28eb468e.js"),[]),"../../assets/icons/svg/excel.svg":()=>e(()=>import("./excel.9680a7a3.js"),[]),"../../assets/icons/svg/exit-fullscreen.svg":()=>e(()=>import("./exit-fullscreen.7693107c.js"),[]),"../../assets/icons/svg/eye-open.svg":()=>e(()=>import("./eye-open.2742c814.js"),[]),"../../assets/icons/svg/eye.svg":()=>e(()=>import("./eye.7efea8d7.js"),[]),"../../assets/icons/svg/fenglei.svg":()=>e(()=>import("./fenglei.0b49f170.js"),[]),"../../assets/icons/svg/form.svg":()=>e(()=>import("./form.fe6029ff.js"),[]),"../../assets/icons/svg/fullscreen.svg":()=>e(()=>import("./fullscreen.181ef4f1.js"),[]),"../../assets/icons/svg/github.svg":()=>e(()=>import("./github.f0d66958.js"),[]),"../../assets/icons/svg/guide.svg":()=>e(()=>import("./guide.40474b41.js"),[]),"../../assets/icons/svg/icon.svg":()=>e(()=>import("./icon.2d1c0100.js"),[]),"../../assets/icons/svg/input.svg":()=>e(()=>import("./input.a7187a4f.js"),[]),"../../assets/icons/svg/international.svg":()=>e(()=>import("./international.7ee45404.js"),[]),"../../assets/icons/svg/job.svg":()=>e(()=>import("./job.ef157af3.js"),[]),"../../assets/icons/svg/language.svg":()=>e(()=>import("./language.443cf574.js"),[]),"../../assets/icons/svg/link.svg":()=>e(()=>import("./link.64f798fb.js"),[]),"../../assets/icons/svg/list.svg":()=>e(()=>import("./list.88f483cb.js"),[]),"../../assets/icons/svg/lock.svg":()=>e(()=>import("./lock.b3970863.js"),[]),"../../assets/icons/svg/log.svg":()=>e(()=>import("./log.6a61dc82.js"),[]),"../../assets/icons/svg/logininfor.svg":()=>e(()=>import("./logininfor.1258c2cb.js"),[]),"../../assets/icons/svg/message.svg":()=>e(()=>import("./message.082e45f4.js"),[]),"../../assets/icons/svg/money.svg":()=>e(()=>import("./money.1bcf65d6.js"),[]),"../../assets/icons/svg/monitor.svg":()=>e(()=>import("./monitor.16d358a5.js"),[]),"../../assets/icons/svg/nested.svg":()=>e(()=>import("./nested.0325dcc4.js"),[]),"../../assets/icons/svg/number.svg":()=>e(()=>import("./number.63af79ba.js"),[]),"../../assets/icons/svg/online.svg":()=>e(()=>import("./online.0bccf30b.js"),[]),"../../assets/icons/svg/password.svg":()=>e(()=>import("./password.4f940edf.js"),[]),"../../assets/icons/svg/pdf.svg":()=>e(()=>import("./pdf.53cff26e.js"),[]),"../../assets/icons/svg/people.svg":()=>e(()=>import("./people.87963c2b.js"),[]),"../../assets/icons/svg/peoples.svg":()=>e(()=>import("./peoples.0e6279eb.js"),[]),"../../assets/icons/svg/phone.svg":()=>e(()=>import("./phone.5ce31124.js"),[]),"../../assets/icons/svg/post.svg":()=>e(()=>import("./post.8daa8f25.js"),[]),"../../assets/icons/svg/qq.svg":()=>e(()=>import("./qq.74ce5ed3.js"),[]),"../../assets/icons/svg/question.svg":()=>e(()=>import("./question.0c8624b9.js"),[]),"../../assets/icons/svg/radio.svg":()=>e(()=>import("./radio.d6beef62.js"),[]),"../../assets/icons/svg/rate.svg":()=>e(()=>import("./rate.4a8dcd58.js"),[]),"../../assets/icons/svg/redis-list.svg":()=>e(()=>import("./redis-list.8924bf0a.js"),[]),"../../assets/icons/svg/redis.svg":()=>e(()=>import("./redis.615d741a.js"),[]),"../../assets/icons/svg/row.svg":()=>e(()=>import("./row.1bd8ad7e.js"),[]),"../../assets/icons/svg/search.svg":()=>e(()=>import("./search.33b822fc.js"),[]),"../../assets/icons/svg/select.svg":()=>e(()=>import("./select.558564a5.js"),[]),"../../assets/icons/svg/server.svg":()=>e(()=>import("./server.f0461856.js"),[]),"../../assets/icons/svg/shopping.svg":()=>e(()=>import("./shopping.b0e0ebd3.js"),[]),"../../assets/icons/svg/size.svg":()=>e(()=>import("./size.a85972fe.js"),[]),"../../assets/icons/svg/skill.svg":()=>e(()=>import("./skill.bb02a4ac.js"),[]),"../../assets/icons/svg/slider.svg":()=>e(()=>import("./slider.ab079a74.js"),[]),"../../assets/icons/svg/star.svg":()=>e(()=>import("./star.5374eaaa.js"),[]),"../../assets/icons/svg/swagger.svg":()=>e(()=>import("./swagger.0f6005b0.js"),[]),"../../assets/icons/svg/switch.svg":()=>e(()=>import("./switch.39427d32.js"),[]),"../../assets/icons/svg/system.svg":()=>e(()=>import("./system.dd8f4370.js"),[]),"../../assets/icons/svg/tab.svg":()=>e(()=>import("./tab.837765b4.js"),[]),"../../assets/icons/svg/table.svg":()=>e(()=>import("./table.53c6772c.js"),[]),"../../assets/icons/svg/textarea.svg":()=>e(()=>import("./textarea.7dc42e90.js"),[]),"../../assets/icons/svg/theme.svg":()=>e(()=>import("./theme.988b699a.js"),[]),"../../assets/icons/svg/time-range.svg":()=>e(()=>import("./time-range.134e4394.js"),[]),"../../assets/icons/svg/time.svg":()=>e(()=>import("./time.145701c2.js"),[]),"../../assets/icons/svg/tool.svg":()=>e(()=>import("./tool.c30a4b30.js"),[]),"../../assets/icons/svg/tree-table.svg":()=>e(()=>import("./tree-table.a57dac2f.js"),[]),"../../assets/icons/svg/tree.svg":()=>e(()=>import("./tree.3a250732.js"),[]),"../../assets/icons/svg/upload.svg":()=>e(()=>import("./upload.02a15e1b.js"),[]),"../../assets/icons/svg/user.svg":()=>e(()=>import("./user.0c7aa22a.js"),[]),"../../assets/icons/svg/validCode.svg":()=>e(()=>import("./validCode.c5c7d4df.js"),[]),"../../assets/icons/svg/wechat.svg":()=>e(()=>import("./wechat.ec3af840.js"),[]),"../../assets/icons/svg/zip.svg":()=>e(()=>import("./zip.fc1b638f.js"),[]),"../../assets/icons/svg/\u997C\u56FE(1).svg":()=>e(()=>import("./\u997C\u56FE(1).d17f9b6f.js"),[])});for(const y in Be){const m=y.split("assets/icons/svg/")[1].split(".svg")[0];M.push(m)}const je=y=>(be("data-v-93339799"),y=y(),ye(),y),ze={class:"icon-body"},Ke=je(()=>c("i",{class:"el-icon-search el-input__icon"},null,-1)),Qe={class:"icon-list"},Ge=["onClick"],He={__name:"index",emits:["selected"],setup(y,{expose:m,emit:H}){const I=E(""),h=E(M);function f(){h.value=M,I.value&&(h.value=M.filter(A=>A.indexOf(I.value)!==-1))}function U(A){H("selected",A),document.body.click()}function x(){I.value="",h.value=M}return m({reset:x}),(A,C)=>{const q=r("el-input"),F=r("svg-icon");return n(),w("div",ze,[t(q,{modelValue:o(I),"onUpdate:modelValue":C[0]||(C[0]=g=>z(I)?I.value=g:null),style:{position:"relative"},clearable:"",placeholder:"\u8BF7\u8F93\u5165\u56FE\u6807\u540D\u79F0",onClear:f,onInput:f},{suffix:s(()=>[Ke]),_:1},8,["modelValue"]),c("div",Qe,[(n(!0),w(K,null,Q(o(h),(g,B)=>(n(),w("div",{key:B,onClick:X=>U(g)},[t(F,{"icon-class":g,style:{height:"30px",width:"16px"}},null,8,["icon-class"]),c("span",null,G(g),1)],8,Ge))),128))])])}}},Je=ne(He,[["__scopeId","data-v-93339799"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/IconSelect/index.vue"]]),We={class:"app-container"},Xe={class:"dialog-footer"},Ye=he({name:"Menu"}),Ze=Object.assign(Ye,{setup(y){const{proxy:m}=Se(),{sys_show_hide:H,sys_normal_disable:I}=m.useDict("sys_show_hide","sys_normal_disable"),h=E([]),f=E(!1),U=E(!0),x=E(!0),A=E(""),C=E([]),q=E(!1),F=E(!0),g=E(!1),B=E(null),X=ke({form:{},queryParams:{menuName:void 0,visible:void 0},rules:{menuName:[{required:!0,message:"\u83DC\u5355\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],orderNum:[{required:!0,message:"\u83DC\u5355\u987A\u5E8F\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],path:[{required:!0,message:"\u8DEF\u7531\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}}),{queryParams:N,form:l,rules:ae}=we(X);function S(){U.value=!0,ie(N.value).then(u=>{h.value=m.handleTree(u.data,"menuId"),U.value=!1})}function Y(){C.value=[],ie().then(u=>{const i={menuId:0,menuName:"\u4E3B\u7C7B\u76EE",children:[]};i.children=m.handleTree(u.data,"menuId"),C.value.push(i)})}function re(){f.value=!1,J()}function J(){l.value={menuId:void 0,parentId:0,menuName:void 0,icon:void 0,menuType:"M",orderNum:void 0,isFrame:"1",isCache:"0",visible:"0",status:"0"},m.resetForm("menuRef")}function Z(){B.value.reset(),g.value=!0}function ue(u){l.value.icon=u,g.value=!1}function ve(u){var i=u.relatedTarget||u.srcElement||u.target||u.currentTarget,T=i.className;T!=="el-input__inner"&&(g.value=!1)}function W(){S()}function de(){m.resetForm("queryRef"),W()}function ee(u){J(),Y(),u!=null&&u.menuId?l.value.parentId=u.menuId:l.value.parentId=0,f.value=!0,A.value="\u6DFB\u52A0\u83DC\u5355"}function pe(){F.value=!1,q.value=!q.value,Ue(()=>{F.value=!0})}async function me(u){J(),await Y(),qe(u.menuId).then(i=>{l.value=i.data,f.value=!0,A.value="\u4FEE\u6539\u83DC\u5355"})}function ce(){m.$refs.menuRef.validate(u=>{u&&(l.value.menuId!=null?Fe(l.value).then(i=>{m.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),f.value=!1,S()}):$e(l.value).then(i=>{m.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),f.value=!1,S()}))})}function ge(u){m.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u540D\u79F0\u4E3A"'+u.menuName+'"\u7684\u6570\u636E\u9879?').then(function(){return Me(u.menuId)}).then(()=>{S(),m.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}return S(),(u,i)=>{const T=r("el-input"),d=r("el-form-item"),Ee=r("el-option"),fe=r("el-select"),P=r("el-button"),se=r("el-form"),p=r("el-col"),Ve=r("right-toolbar"),te=r("el-row"),O=r("el-table-column"),Ie=r("dict-tag"),Te=r("el-table"),Pe=r("el-tree-select"),R=r("el-radio"),$=r("el-radio-group"),Re=r("search"),D=r("el-icon"),De=r("el-popover"),Ae=r("el-input-number"),L=r("question-filled"),b=r("el-tooltip"),Oe=r("el-dialog"),j=_e("hasPermi"),Le=_e("loading");return n(),w("div",We,[k(t(se,{model:o(N),ref:"queryRef",inline:!0},{default:s(()=>[t(d,{label:"\u83DC\u5355\u540D\u79F0",prop:"menuName"},{default:s(()=>[t(T,{modelValue:o(N).menuName,"onUpdate:modelValue":i[0]||(i[0]=_=>o(N).menuName=_),placeholder:"\u8BF7\u8F93\u5165\u83DC\u5355\u540D\u79F0",clearable:"",style:{width:"200px"},onKeyup:Ce(W,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),t(d,{label:"\u72B6\u6001",prop:"status"},{default:s(()=>[t(fe,{modelValue:o(N).status,"onUpdate:modelValue":i[1]||(i[1]=_=>o(N).status=_),placeholder:"\u83DC\u5355\u72B6\u6001",clearable:"",style:{width:"200px"}},{default:s(()=>[(n(!0),w(K,null,Q(o(I),_=>(n(),v(Ee,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(d,null,{default:s(()=>[t(P,{type:"primary",icon:"Search",onClick:W},{default:s(()=>[a("\u641C\u7D22")]),_:1}),t(P,{icon:"Refresh",onClick:de},{default:s(()=>[a("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[xe,o(x)]]),t(te,{gutter:10,class:"mb8"},{default:s(()=>[t(p,{span:1.5},{default:s(()=>[k((n(),v(P,{type:"primary",plain:"",icon:"Plus",onClick:ee},{default:s(()=>[a("\u65B0\u589E")]),_:1})),[[j,["system:menu:add"]]])]),_:1},8,["span"]),t(p,{span:1.5},{default:s(()=>[t(P,{type:"info",plain:"",icon:"Sort",onClick:pe},{default:s(()=>[a("\u5C55\u5F00/\u6298\u53E0")]),_:1})]),_:1},8,["span"]),t(Ve,{showSearch:o(x),"onUpdate:showSearch":i[2]||(i[2]=_=>z(x)?x.value=_:null),onQueryTable:S},null,8,["showSearch"])]),_:1}),o(F)?k((n(),v(Te,{key:0,data:o(h),"row-key":"menuId","default-expand-all":o(q),"tree-props":{children:"children",hasChildren:"hasChildren"}},{default:s(()=>[t(O,{prop:"menuName",label:"\u83DC\u5355\u540D\u79F0","show-overflow-tooltip":!0,width:"160"}),t(O,{prop:"icon",label:"\u56FE\u6807",align:"center",width:"100"},{default:s(_=>[t(o(le),{"icon-class":_.row.icon},null,8,["icon-class"])]),_:1}),t(O,{prop:"orderNum",label:"\u6392\u5E8F",width:"60"}),t(O,{prop:"perms",label:"\u6743\u9650\u6807\u8BC6","show-overflow-tooltip":!0}),t(O,{prop:"component",label:"\u7EC4\u4EF6\u8DEF\u5F84","show-overflow-tooltip":!0}),t(O,{prop:"status",label:"\u72B6\u6001",width:"80"},{default:s(_=>[t(Ie,{options:o(I),value:_.row.status},null,8,["options","value"])]),_:1}),t(O,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime"},{default:s(_=>[c("span",null,G(u.parseTime(_.row.createTime)),1)]),_:1}),t(O,{label:"\u64CD\u4F5C",align:"center",width:"210","class-name":"small-padding fixed-width"},{default:s(_=>[k((n(),v(P,{link:"",type:"primary",icon:"Edit",onClick:oe=>me(_.row)},{default:s(()=>[a("\u4FEE\u6539")]),_:2},1032,["onClick"])),[[j,["system:menu:edit"]]]),k((n(),v(P,{link:"",type:"primary",icon:"Plus",onClick:oe=>ee(_.row)},{default:s(()=>[a("\u65B0\u589E")]),_:2},1032,["onClick"])),[[j,["system:menu:add"]]]),k((n(),v(P,{link:"",type:"primary",icon:"Delete",onClick:oe=>ge(_.row)},{default:s(()=>[a("\u5220\u9664")]),_:2},1032,["onClick"])),[[j,["system:menu:remove"]]])]),_:1})]),_:1},8,["data","default-expand-all"])),[[Le,o(U)]]):V("v-if",!0),V(" \u6DFB\u52A0\u6216\u4FEE\u6539\u83DC\u5355\u5BF9\u8BDD\u6846 "),t(Oe,{title:o(A),modelValue:o(f),"onUpdate:modelValue":i[17]||(i[17]=_=>z(f)?f.value=_:null),width:"680px","append-to-body":""},{footer:s(()=>[c("div",Xe,[t(P,{type:"primary",onClick:ce},{default:s(()=>[a("\u786E \u5B9A")]),_:1}),t(P,{onClick:re},{default:s(()=>[a("\u53D6 \u6D88")]),_:1})])]),default:s(()=>[t(se,{ref:"menuRef",model:o(l),rules:o(ae),"label-width":"100px"},{default:s(()=>[t(te,null,{default:s(()=>[t(p,{span:24},{default:s(()=>[t(d,{label:"\u4E0A\u7EA7\u83DC\u5355"},{default:s(()=>[t(Pe,{modelValue:o(l).parentId,"onUpdate:modelValue":i[3]||(i[3]=_=>o(l).parentId=_),data:o(C),props:{value:"menuId",label:"menuName",children:"children"},"value-key":"menuId",placeholder:"\u9009\u62E9\u4E0A\u7EA7\u83DC\u5355","check-strictly":""},null,8,["modelValue","data"])]),_:1})]),_:1}),t(p,{span:24},{default:s(()=>[t(d,{label:"\u83DC\u5355\u7C7B\u578B",prop:"menuType"},{default:s(()=>[t($,{modelValue:o(l).menuType,"onUpdate:modelValue":i[4]||(i[4]=_=>o(l).menuType=_)},{default:s(()=>[t(R,{label:"M"},{default:s(()=>[a("\u76EE\u5F55")]),_:1}),t(R,{label:"C"},{default:s(()=>[a("\u83DC\u5355")]),_:1}),t(R,{label:"F"},{default:s(()=>[a("\u6309\u94AE")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),o(l).menuType!="F"?(n(),v(p,{key:0,span:24},{default:s(()=>[t(d,{label:"\u83DC\u5355\u56FE\u6807",prop:"icon"},{default:s(()=>[t(De,{placement:"bottom-start",width:540,visible:o(g),"onUpdate:visible":i[6]||(i[6]=_=>z(g)?g.value=_:null),trigger:"click",onShow:Z},{reference:s(()=>[k((n(),v(T,{modelValue:o(l).icon,"onUpdate:modelValue":i[5]||(i[5]=_=>o(l).icon=_),placeholder:"\u70B9\u51FB\u9009\u62E9\u56FE\u6807",onBlur:Z,readonly:""},{prefix:s(()=>[o(l).icon?(n(),v(o(le),{key:0,"icon-class":o(l).icon,class:"el-input__icon",style:{height:"32px",width:"16px"}},null,8,["icon-class"])):(n(),v(D,{key:1,style:{height:"32px",width:"16px"}},{default:s(()=>[t(Re)]),_:1}))]),_:1},8,["modelValue"])),[[o(Ne),ve]])]),default:s(()=>[t(o(Je),{ref_key:"iconSelectRef",ref:B,onSelected:ue},null,512)]),_:1},8,["visible"])]),_:1})]),_:1})):V("v-if",!0),t(p,{span:12},{default:s(()=>[t(d,{label:"\u83DC\u5355\u540D\u79F0",prop:"menuName"},{default:s(()=>[t(T,{modelValue:o(l).menuName,"onUpdate:modelValue":i[7]||(i[7]=_=>o(l).menuName=_),placeholder:"\u8BF7\u8F93\u5165\u83DC\u5355\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),t(p,{span:12},{default:s(()=>[t(d,{label:"\u663E\u793A\u6392\u5E8F",prop:"orderNum"},{default:s(()=>[t(Ae,{modelValue:o(l).orderNum,"onUpdate:modelValue":i[8]||(i[8]=_=>o(l).orderNum=_),"controls-position":"right",min:0},null,8,["modelValue"])]),_:1})]),_:1}),o(l).menuType!="F"?(n(),v(p,{key:1,span:12},{default:s(()=>[t(d,null,{label:s(()=>[c("span",null,[t(b,{content:"\u9009\u62E9\u662F\u5916\u94FE\u5219\u8DEF\u7531\u5730\u5740\u9700\u8981\u4EE5`http(s)://`\u5F00\u5934",placement:"top"},{default:s(()=>[t(D,null,{default:s(()=>[t(L)]),_:1})]),_:1}),a("\u662F\u5426\u5916\u94FE ")])]),default:s(()=>[t($,{modelValue:o(l).isFrame,"onUpdate:modelValue":i[9]||(i[9]=_=>o(l).isFrame=_)},{default:s(()=>[t(R,{label:"0"},{default:s(()=>[a("\u662F")]),_:1}),t(R,{label:"1"},{default:s(()=>[a("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})):V("v-if",!0),o(l).menuType!="F"?(n(),v(p,{key:2,span:12},{default:s(()=>[t(d,{prop:"path"},{label:s(()=>[c("span",null,[t(b,{content:"\u8BBF\u95EE\u7684\u8DEF\u7531\u5730\u5740\uFF0C\u5982\uFF1A`user`\uFF0C\u5982\u5916\u7F51\u5730\u5740\u9700\u5185\u94FE\u8BBF\u95EE\u5219\u4EE5`http(s)://`\u5F00\u5934",placement:"top"},{default:s(()=>[t(D,null,{default:s(()=>[t(L)]),_:1})]),_:1}),a(" \u8DEF\u7531\u5730\u5740 ")])]),default:s(()=>[t(T,{modelValue:o(l).path,"onUpdate:modelValue":i[10]||(i[10]=_=>o(l).path=_),placeholder:"\u8BF7\u8F93\u5165\u8DEF\u7531\u5730\u5740"},null,8,["modelValue"])]),_:1})]),_:1})):V("v-if",!0),o(l).menuType=="C"?(n(),v(p,{key:3,span:12},{default:s(()=>[t(d,{prop:"component"},{label:s(()=>[c("span",null,[t(b,{content:"\u8BBF\u95EE\u7684\u7EC4\u4EF6\u8DEF\u5F84\uFF0C\u5982\uFF1A`system/user/index`\uFF0C\u9ED8\u8BA4\u5728`views`\u76EE\u5F55\u4E0B",placement:"top"},{default:s(()=>[t(D,null,{default:s(()=>[t(L)]),_:1})]),_:1}),a(" \u7EC4\u4EF6\u8DEF\u5F84 ")])]),default:s(()=>[t(T,{modelValue:o(l).component,"onUpdate:modelValue":i[11]||(i[11]=_=>o(l).component=_),placeholder:"\u8BF7\u8F93\u5165\u7EC4\u4EF6\u8DEF\u5F84"},null,8,["modelValue"])]),_:1})]),_:1})):V("v-if",!0),o(l).menuType!="M"?(n(),v(p,{key:4,span:12},{default:s(()=>[t(d,null,{label:s(()=>[c("span",null,[t(b,{content:"\u63A7\u5236\u5668\u4E2D\u5B9A\u4E49\u7684\u6743\u9650\u5B57\u7B26\uFF0C\u5982\uFF1A@PreAuthorize(`@ss.hasPermi('system:user:list')`)",placement:"top"},{default:s(()=>[t(D,null,{default:s(()=>[t(L)]),_:1})]),_:1}),a(" \u6743\u9650\u5B57\u7B26 ")])]),default:s(()=>[t(T,{modelValue:o(l).perms,"onUpdate:modelValue":i[12]||(i[12]=_=>o(l).perms=_),placeholder:"\u8BF7\u8F93\u5165\u6743\u9650\u6807\u8BC6",maxlength:"100"},null,8,["modelValue"])]),_:1})]),_:1})):V("v-if",!0),o(l).menuType=="C"?(n(),v(p,{key:5,span:12},{default:s(()=>[t(d,null,{label:s(()=>[c("span",null,[t(b,{content:'\u8BBF\u95EE\u8DEF\u7531\u7684\u9ED8\u8BA4\u4F20\u9012\u53C2\u6570\uFF0C\u5982\uFF1A`{"id": 1, "name": "ry"}`',placement:"top"},{default:s(()=>[t(D,null,{default:s(()=>[t(L)]),_:1})]),_:1}),a(" \u8DEF\u7531\u53C2\u6570 ")])]),default:s(()=>[t(T,{modelValue:o(l).query,"onUpdate:modelValue":i[13]||(i[13]=_=>o(l).query=_),placeholder:"\u8BF7\u8F93\u5165\u8DEF\u7531\u53C2\u6570",maxlength:"255"},null,8,["modelValue"])]),_:1})]),_:1})):V("v-if",!0),o(l).menuType=="C"?(n(),v(p,{key:6,span:12},{default:s(()=>[t(d,null,{label:s(()=>[c("span",null,[t(b,{content:"\u9009\u62E9\u662F\u5219\u4F1A\u88AB`keep-alive`\u7F13\u5B58\uFF0C\u9700\u8981\u5339\u914D\u7EC4\u4EF6\u7684`name`\u548C\u5730\u5740\u4FDD\u6301\u4E00\u81F4",placement:"top"},{default:s(()=>[t(D,null,{default:s(()=>[t(L)]),_:1})]),_:1}),a(" \u662F\u5426\u7F13\u5B58 ")])]),default:s(()=>[t($,{modelValue:o(l).isCache,"onUpdate:modelValue":i[14]||(i[14]=_=>o(l).isCache=_)},{default:s(()=>[t(R,{label:"0"},{default:s(()=>[a("\u7F13\u5B58")]),_:1}),t(R,{label:"1"},{default:s(()=>[a("\u4E0D\u7F13\u5B58")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})):V("v-if",!0),o(l).menuType!="F"?(n(),v(p,{key:7,span:12},{default:s(()=>[t(d,null,{label:s(()=>[c("span",null,[t(b,{content:"\u9009\u62E9\u9690\u85CF\u5219\u8DEF\u7531\u5C06\u4E0D\u4F1A\u51FA\u73B0\u5728\u4FA7\u8FB9\u680F\uFF0C\u4F46\u4ECD\u7136\u53EF\u4EE5\u8BBF\u95EE",placement:"top"},{default:s(()=>[t(D,null,{default:s(()=>[t(L)]),_:1})]),_:1}),a(" \u663E\u793A\u72B6\u6001 ")])]),default:s(()=>[t($,{modelValue:o(l).visible,"onUpdate:modelValue":i[15]||(i[15]=_=>o(l).visible=_)},{default:s(()=>[(n(!0),w(K,null,Q(o(H),_=>(n(),v(R,{key:_.value,label:_.value},{default:s(()=>[a(G(_.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})):V("v-if",!0),o(l).menuType!="F"?(n(),v(p,{key:8,span:12},{default:s(()=>[t(d,null,{label:s(()=>[c("span",null,[t(b,{content:"\u9009\u62E9\u505C\u7528\u5219\u8DEF\u7531\u5C06\u4E0D\u4F1A\u51FA\u73B0\u5728\u4FA7\u8FB9\u680F\uFF0C\u4E5F\u4E0D\u80FD\u88AB\u8BBF\u95EE",placement:"top"},{default:s(()=>[t(D,null,{default:s(()=>[t(L)]),_:1})]),_:1}),a(" \u83DC\u5355\u72B6\u6001 ")])]),default:s(()=>[t($,{modelValue:o(l).status,"onUpdate:modelValue":i[16]||(i[16]=_=>o(l).status=_)},{default:s(()=>[(n(!0),w(K,null,Q(o(I),_=>(n(),v(R,{key:_.value,label:_.value},{default:s(()=>[a(G(_.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})):V("v-if",!0)]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}}),ts=ne(Ze,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/system/menu/index.vue"]]);export{ts as default}; diff --git a/dist/assets/index.bcc9a532.js.gz b/dist/assets/index.bcc9a532.js.gz new file mode 100644 index 0000000..2c870fe Binary files /dev/null and b/dist/assets/index.bcc9a532.js.gz differ diff --git a/dist/assets/index.c0b6164e.js.gz b/dist/assets/index.c0b6164e.js.gz deleted file mode 100644 index 97a97cb..0000000 Binary files a/dist/assets/index.c0b6164e.js.gz and /dev/null differ diff --git a/dist/assets/index.c0b79060.js.gz b/dist/assets/index.c0b79060.js.gz deleted file mode 100644 index 222fbec..0000000 Binary files a/dist/assets/index.c0b79060.js.gz and /dev/null differ diff --git a/dist/assets/index.cc9b0421.js b/dist/assets/index.cc9b0421.js new file mode 100644 index 0000000..0008dec --- /dev/null +++ b/dist/assets/index.cc9b0421.js @@ -0,0 +1 @@ +import{z as J,_ as at,r as f,A as de,B as ot,C as rt,D as ce,d as k,o as _,c as L,l,m as E,e as x,w as S,f as y,g as F,I as ue,J as fe,k as pe,Q as lt,x as G,y as st,p as it,q as nt}from"./index.b3a66a9e.js";import ae from"./downloads.e955445d.js";import{_ as oe}from"./close1.45635d81.js";import{_ as dt,a as ct,b as ut,c as ft,d as pt,e as mt}from"./linesGL.90f708a5.js";import{i as ee,L as te}from"./index.c9f5bd8b.js";import{T as gt}from"./TimeLine.6cac5abc.js";import{u as me}from"./useEcharts.83442be8.js";import{d as V}from"./download.a6a18203.js";function Me(h){return J({url:"equipment/statisticsOfTheArea",method:"get",params:h})}function ze(h){return J({url:"equipment/proportionOfTheArea",method:"get",params:h})}function We(h){return J({url:"equipment/eachFreezingGradeArea",method:"get",params:h})}function Ae(h){return J({url:"equipment/townshipArea",method:"get",params:h})}function Ie(h){return J({url:"equipment/administrativeArea",method:"get",params:h})}const T=h=>(it("data-v-4e1915e9"),h=h(),nt(),h),vt={class:"center"},ht=T(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),bt={class:"leftWra"},yt={class:"leftTop"},_t={class:"title"},xt=T(()=>l("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),wt=T(()=>l("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ct={class:"leftbottom"},St={class:"title"},Dt=T(()=>l("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),kt=T(()=>l("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Lt={class:"tableDiv"},Tt={key:0,src:oe,alt:""},Mt={key:0,class:"imgrotate",src:oe,alt:""},zt={class:"rightWra"},Wt={class:"rightTop"},At={class:"title"},It=T(()=>l("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Nt=T(()=>l("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Pt={class:"rightbottom"},Ft={class:"title"},Bt=T(()=>l("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Et=T(()=>l("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ot={key:0,src:oe,alt:""},Rt={key:0,class:"imgrotate",src:oe,alt:""},Zt={class:"bottom_center"},Xt=st(' ',1),qt={class:"mt-4"},Qt={id:"popup"},Gt={id:"pop"},Vt={key:0},Jt=T(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),$t={__name:"index",setup(h){let n=f(null);const ge=f(null),ve=f(null),he=f(null);f(null);const be=f(null),b=f("370211"),Ne=f(null);let w=de({arr:[],brr:[],crr:[]});const ye=f({name:"",value:""}),_e=f([]),B=f(!1);let I=f(!1),N=f(!1);const xe=f(["false"]);let O=de({lable:[],value:[]}),$=f([]),re=f(0),we=["\u9AD8\u6807\u51C6\u519C\u75301.0","\u9AD8\u6807\u51C6\u519C\u75302.0","\u9AD8\u6807\u51C6\u519C\u75303.0","\u9AD8\u6807\u51C6\u519C\u75304.0","\u9AD8\u6807\u51C6\u519C\u75305.0","\u9AD8\u6807\u51C6\u519C\u75306.0","\u9AD8\u6807\u51C6\u519C\u75307.0"],P={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},Pe={\u65E0\u51BB\u5BB3:{color:"rgba(9, 187, 222, 1)",disabled:!1},\u8F7B\u5EA6\u51BB\u5BB3:{color:"rgba(255, 235, 59, 1)",disabled:!1},\u4E2D\u5EA6\u51BB\u5BB3:{color:"rgba(234, 165, 93, 1)",disabled:!1},\u91CD\u5EA6\u51BB\u5BB3:{color:"rgba(215, 25, 28, 0.8)",disabled:!1}};ot(()=>w.arr,t=>{console.log("val:",t)});var R={title:[]};let C={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},le=f([]);rt(()=>{Se("370211"),De("370211"),Ge(),ke("370211"),Be(),Y(),H(),Le(),q(),Oe();let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)");let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"});const Fe={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 Be(){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({...Fe})}),n.cesiumWidget.creditContainer.style.display="none",se("shuzisannong:huangdaoqu_town","tl"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),Re(),et()}function Ce(t,e,a){t.forEach(o=>{let r=[];o[0].forEach(s=>{r.push(s[0]),r.push(s[1])}),n.entities.add({name:e,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(r),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:a?Cesium.Color.fromCssColorString(a):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function Ee(t){return t>48e6?0:t>24e6?1:t>12e6?2:t>6e6?3:t>3e6?4:t>15e5?5:t>75e4?6:t>375e3?7:t>187500?8:t>93750?9:t>46875?10:t>23437.5?11:t>11718.75?12:t>5859.38?13:t>2929.69?14:t>1464.84?15:t>732.42?16:t>366.21?17:18}function Oe(){ce({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afarmland&maxFeatures=50&outputFormat=application%2Fjson",method:"get"}).then(t=>{console.log("\u519C\u7530\uFF1A",t),_e.value=t.data.features}).catch(t=>{})}let g=f({label:[]}),Z="";function Re(){var t=new Cesium.ScreenSpaceEventHandler(n.canvas);t.setInputAction(function(e){var a=n.camera.getPickRay(e.position),o=n.scene.globe.pick(a,n.scene);if(o){let r=Cesium.Cartographic.fromCartesian(o);if(r){let s=new Cesium.Cartesian2,c=n.camera.positionCartographic.height,i=Ee(c);const v=n.imageryLayers._layers,p=v.findIndex(u=>u._imageryProvider._layers&&u._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(p>-1){const u=v[p];let m=u._imageryProvider;if(m&&m.ready&&m._layers&&u.show===!0){s=m.tilingScheme.positionToTileXY(r,i,s);let d=m.pickFeatures(s.x,s.y,i,r.longitude,r.latitude);d&&d.then(z=>{if(z.length>0){let D=z[0];if(D.properties&&D.properties.XZDM)if(console.log("XZDM:",Z),console.log("newData.properties.XZDM:",D.properties.XZDM),Z!==D.properties.XZDM){B.value=!0,Z=D.properties.XZDM,b.value=Z,j&&j();let A=D.data;n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(A.bbox[0],A.bbox[1],A.bbox[2],A.bbox[3]),duration:2}),X("townLine"),Ce(A.geometry&&A.geometry.coordinates,"townLine","yellow"),M(["village_CQL"]),Xe(`XZDM=${D.properties.XZDM}`,"village_CQL");let K=n.entities._entities._array;for(var W=K.length-1;W>=0;W--)if(K[W]._name&&K[W]._name==="point"+D.properties.XZDM){let tt=K[W]._info;g.value=tt,console.log(g.value,"------------------"),ne(e.position),n.scene.postRender.addEventListener(ie)}X("villageLine"),U=""}else Ze(v,s,i,r,e);else M(["village_CQL"]),Q()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let U="";function Ze(t,e,a,o,r){const s=t.findIndex(c=>c._imageryProvider._layers&&c._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(s>-1){const c=t[s];let i=c._imageryProvider;if(i&&i.ready&&i._layers&&c.show===!0){e=i.tilingScheme.positionToTileXY(o,a,e);let v=i.pickFeatures(e.x,e.y,a,o.longitude,o.latitude);v&&v.then(p=>{if(p.length>0){let u=p[0];if(console.log(u),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(u.data.bbox[0],u.data.bbox[1],u.data.bbox[2],u.data.bbox[3]),duration:2}),u.properties&&u.properties.XZQDM&&U!==u.properties.XZQDM){U=u.properties.XZQDM;let m=u.data;if(X("villageLine"),Ce(m.geometry&&m.geometry.coordinates,"villageLine","yellow"),u.properties.XZQDM==="370211104217"){const d=Cesium.Rectangle.fromDegrees(m.bbox[0],m.bbox[1],m.bbox[2],m.bbox[3]),z=Cesium.Rectangle.center(d);let W=Cesium.Math.toDegrees(z.longitude),D=Cesium.Math.toDegrees(z.latitude),A={lon:W,lat:D,...m.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}]};g.value=A,ne(r.position),n.scene.postRender.addEventListener(ie)}}}})}}}function Xe(t,e){let a=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:t}});a.customName=e,n.imageryLayers.addImageryProvider(a)}function M(t,e){if(n){const a=n.imageryLayers._layers;for(let o=a.length-1;o>=0;o--)t.forEach(r=>{a[o]._imageryProvider&&a[o]._imageryProvider.customName&&(e?a[o]._imageryProvider.customName.indexOf(r)>-1&&n.imageryLayers.remove(a[o]):a[o]._imageryProvider.customName===r&&n.imageryLayers.remove(a[o]))})}}function X(t){if(n){let a=n.entities._entities._array;for(var e=a.length-1;e>=0;e--)a[e]._name&&a[e]._name===t&&n.entities.remove(a[e])}}function qe(){if(I.value=!I.value,I.value){let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(0,0)")}else{let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)")}}function Qe(){if(N.value=!N.value,N.value){let t=document.querySelector(".rightWra");t.style.transform="translate(0,0)"}else{let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)"}}const Se=t=>{O=de({lable:[],value:[]}),Me({divisions:t}).then(e=>{e.data.forEach(a=>{O.lable.push(a.level),O.value.push((a.area/666.67).toFixed(2))}),Y()})},De=t=>{$=f([]),le=f([]),re=f(0),ze({divisions:t}).then(e=>{e.data.forEach(a=>{re.value+=Number(a.area),$.value.push({name:a.level,value:(a.area/666.67).toFixed(2)}),le.value.push({date:a.level,name:`${(a.area/666.67).toFixed(2)}\u4EA9`,address:`${(a.percentage*100).toFixed(2)}%`})}),console.log($.value),H()})},Ge=()=>{We().then(t=>{we.forEach((e,a)=>{let o=t.data.map(r=>{if(e===r.region)return r});Object.keys(P).forEach(r=>{let s=0;o.findIndex(i=>(console.log(i,r),i&&i.level===r&&(s=i.area),i&&i.level===r))>-1?P[r].push(s):P[r].push(0)})}),Le()})},ke=t=>{Ae({divisions:t}).then(e=>{w.brr=e.data,w.arr=e.data.sort((c,i)=>c.streetName.length-i.streetName.length),w.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let a=[],o=[];w.arr.forEach(c=>{a.indexOf(c.streetName)==-1&&(a.push(c.streetName),o.push({streetName:c.streetName,streetCode:c.streetCode}))}),w.arr=o,console.log(w.arr);let r=[...e.data],s=[];r.splice(0,1),r.forEach(c=>{s.indexOf(c.streetName)==-1&&s.push(c.streetName)}),R.title=[...Object.values(s)],R.title.forEach((c,i)=>{let v=e.data.map(p=>{if(c===p.streetName)return p});Object.keys(C).forEach(p=>{v.findIndex(m=>m&&m.type===p)>-1?C[p].push(1):C[p].push(null)})}),q()})},Ve=t=>{Ie({divisions:t}).then(e=>{w.brr=e.data;let a=[...e.data],o=[];a.splice(0,1),a.forEach(r=>{o.indexOf(r.streetName)==-1&&o.push(r.streetName)}),R.title=[...Object.values(o)],R.title.forEach((r,s)=>{let c=e.data.map(i=>{if(r===i.streetName)return i});Object.keys(C).forEach(i=>{c.findIndex(p=>p&&p.type===i)>-1?C[i].push(1):C[i].push(null)})}),q()})},j=()=>{if(Se(b.value),De(b.value),Ve(b.value),b.value=="370211"){M(["village_CQL"]),Z=null,M(["aaa"]),ke(),Q(),q(),Y(),H();return}q(),Y(),H(),[...w.arr]},Je=t=>{Me({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})},$e=t=>{ze({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})},Ue=t=>{We({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})},je=t=>{b.value==="370211"?Ae({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)}):Ie({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})};function Y(){const t=ee(ge.value);var e={textStyle:{fontSize:0},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!0,top:"5%",data:["\u9762\u79EF"],right:"5%",icon:"rect",textStyle:{fontSize:14,color:"rgba(255, 255, 255, 0.7)"}},xAxis:{nameTextStyle:{color:"#c0c3cd",padding:[0,0,-10,0],fontSize:14},axisLabel:{color:"rgba(255, 255, 255, 0.7)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14},axisTick:{lineStyle:{color:"#0B1535",width:1},show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#384267",width:1,type:"dashed"},show:!0},data:O.lable,type:"category"},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255,255,255,0.7)"},splitLine:{lineStyle:{type:"dashed"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{data:O.value,name:"\u9762\u79EF",type:"bar",barMaxWidth:"auto",barWidth:35,itemStyle:{color:{x:0,y:0,x2:0,y2:1,type:"linear",global:!1,colorStops:[{offset:0,color:"rgba(45, 204, 177, 1)"},{offset:1,color:"rgba(71, 179, 161, 0)"}]}},label:{normal:{show:!1,fontSize:14,color:"#ffffff",position:"top"}}}]};e&&t.setOption(e),window.addEventListener("resize",function(){t.resize()})}function H(){const t=ee(ve.value);var e=$.value;let a={color:["rgba(9, 187, 222, 0.8)","rgba(255, 235, 59, 0.8)","rgba(234, 165, 93, 0.8)","rgba(215, 25, 28, 0.8)","#585247","#7F6AAD","#009D85","rgba(250,250,250,0.3)"],title:{text:"\u603B\u9762\u79EF",subtext:`${(re.value/666.67).toFixed(2)}\u4EA9`,textStyle:{color:"#f2f2f2",fontSize:14},subtextStyle:{fontSize:14,color:["#ff9d19"]},x:"center",y:"center"},grid:{top:0},legend:{orient:"vertical",top:"middle",right:"2%",textStyle:{color:"#f2f2f2",fontSize:14},icon:"roundRect",data:e},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a}
{b} : {c}
\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",data:e},{radius:["50%","54%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1},emphasis:{show:!1}},labelLine:{normal:{show:!1},emphasis:{show:!1}},animation:!1,tooltip:{show:!1},data:[{value:1,itemStyle:{color:"rgba(250,250,250,0.3)"}}]},{name:"\u5916\u8FB9\u6846",type:"pie",clockWise:!1,hoverAnimation:!1,center:["50%","50%"],radius:["85%","85%"],label:{normal:{show:!1}},data:[{value:9,name:"",itemStyle:{normal:{borderWidth:2,borderColor:"#0b5263"}}}]}]};me(t,a)}function Le(){const t=ee(he.value);console.log(C);let e={title:{text:"",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},xAxis:{type:"category",data:we,axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)",width:1,type:"solid"},axisLabel:{color:"rgba(255, 255, 255, 0.7)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14}}},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255, 255, 255, 0.7)"},splitLine:{lineStyle:{type:"solid",color:"rgba(255, 255, 255, 0.3)"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{name:"\u65E0\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:P.\u65E0\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(9, 187, 222, 1)",color:new te(0,0,0,1,[{offset:0,color:"rgba(9, 187, 222, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}])}}},{name:"\u8F7B\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:P.\u8F7B\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 235, 59, 1)",color:new te(0,0,0,1,[{offset:0,color:"rgba(255, 235, 59, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 0.8)"}])}}},{name:"\u4E2D\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:P.\u4E2D\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(234, 165, 93, 1)",color:new te(0,0,0,1,[{offset:0,color:"rgba(234, 165, 93, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}])}}},{name:"\u91CD\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:P.\u91CD\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(215, 25, 28, 1)",color:new te(0,0,0,1,[{offset:0,color:"rgba(215, 25, 28, 0.8)"},{offset:1,color:"rgba(215, 25, 28, 0.8)"}])}}}]};t.on("click",function(a){console.log(a.name)}),t.on("click",a=>He(a)),e&&t.setOption(e,{notMerge:!0,grid:{bottom:20}}),me(t,e)}function se(t,e){let a=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:t,parameters:{service:"WMS",format:"image/png",transparent:!0}});a.customName=e;let o=n.imageryLayers.addImageryProvider(a);e.indexOf("gbznt")>-1&&(n.imageryLayers.lowerToBottom(o),n.imageryLayers.raise(o))}function Ye(){delete g.value.XZQMC,M(["gbznt"],!0),M(["aaa"]),b.value="370211",j(),B.value==="1"&&(console.log(B.value),se("shuzisannong:huangdaoqu_town","tl")),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),B.value=!1,Q()}function He(t){delete g.value,M(["huangdaoqu_town"],!0),M(["tl"],!0);let e="shuzisannong:farmland",a=!1;const o=n.imageryLayers._layers;for(let s=o.length-1;s>=0;s--)o[s]&&o[s]._imageryProvider.customName&&o[s]._imageryProvider.customName===e+"gbznt"&&(a=!0);a||(se(e,e+"gbznt"),g.value.label=[{crop:"\u5C0F\u9EA6",Shape_Area:"53000"},{crop:"\u5730\u74DC",Shape_Area:"50000"}]),_e.value.forEach(s=>{console.log("it.properties.name:",s.properties.name),console.log("item.name:",t.name),s.properties.name===t.name&&(console.log("dingwei"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(s.bbox[0],s.bbox[1],s.bbox[2],s.bbox[3]),duration:2}))}),B.value="1",ne({x:642,y:312})}function q(){const t=ee(be.value);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(a){let o=0;return w.brr.forEach(r=>{r.type==a.seriesName&&r.streetName==a.name&&(console.log(r.area),o=r.area)}),a.seriesName+''+(o/666.67).toFixed(2)+"\u4EA9"}},dataZoom:[{type:"slider",show:!1,zoomLock:!0,width:8,yAxisIndex:[0],bottom:30,top:20,right:10,startValue:0,endValue:4,handleIcon:"M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z",handleSize:"100%",handleStyle:{color:"#DBDBDB",height:"100%"},backgroundColor:"transparent",fillerColor:"#DBDBDB",textStyle:{color:"transparent"},dataBackground:{lineStyle:{color:"transparent"},areaStyle:{color:"transparent"}},borderColor:"transparent"},{type:"inside",id:"insideY",yAxisIndex:0,start:0,end:50,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"category",axisTick:{show:!1},axisLine:{show:!1,lineStyle:{color:"#cdd3ee"}},splitLine:{show:!1},axisLabel:{show:!0,fontSize:12,color:"rgba(255, 255, 255, 1)",formatter:"{value}"},data:R.title,inverse:!0}],series:[{type:"bar",name:"\u65E0\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u65E0\u51BB\u5BB3",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(4, 247, 227, 0.9)"},{offset:1,color:"rgba(4, 247, 227, 0.25)"}]}},data:C.\u65E0\u51BB\u5BB3},{type:"bar",name:"\u8F7B\u5EA6\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F7B\u5EA6\u51BB\u5BB3",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(143, 186, 243, 0.9)"},{offset:1,color:"rgba(143, 186, 243, 0.3)"}]}},data:C.\u8F7B\u5EA6\u51BB\u5BB3},{type:"bar",name:"\u4E2D\u5EA6\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u4E2D\u5EA6\u51BB\u5BB3",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(4, 247, 227, 0.9)"},{offset:1,color:"rgba(4, 247, 227, 0.25)"}]}},data:C.\u4E2D\u5EA6\u51BB\u5BB3},{type:"bar",name:"\u91CD\u5EA6\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u91CD\u5EA6\u51BB\u5BB3",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(33, 187, 251, 0.9)"},{offset:1,color:"rgba(33, 187, 251, 0.25)"}]}},data:C.\u91CD\u5EA6\u51BB\u5BB3}]};me(t,e)}function Ke(){let t=Te.value;console.log("fl:",t),ce({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(e=>{console.log("res1111:",e),e.data.features.forEach((o,r)=>{const s=Cesium.Rectangle.fromDegrees(o.bbox[0],o.bbox[1],o.bbox[2],o.bbox[3]),c=Cesium.Rectangle.center(s);let i=Cesium.Math.toDegrees(c.longitude),v=Cesium.Math.toDegrees(c.latitude);o.properties.XZDM==="370211011"?(i=120.0863,v=35.941):o.properties.XZDM==="370211003"&&(i=120.243682,v=35.97123201);const p=t[o.properties.XZMC];let u=[];p&&(u=p.map((m,d)=>m.properties)),n.entities.add({name:"point"+o.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(i,v),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,...o.properties,lon:i,lat:v}})})}).catch(e=>{})}let Te=f({});function et(){ce({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(t=>{let e=t.data.features,a={};e.forEach(o=>{let r=o.properties.town;a[r]?a[r].push(o):a[r]=[o]}),Te.value=a,Ke()}).catch(t=>{})}function ie(){if(g.value&&g.value.lon&&g.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(g.value.lon),Number(g.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(n.scene,e);if(Cesium.defined(t)){const a=document.getElementById("pop");a&&(a.style.top=t.y-10+"px",a.style.left=t.x+10+"px")}}}function Q(){delete g.value.XZQMC,U="",M(["village_CQL"]),X("villageLine"),X("townLine");const t=document.getElementById("pop");t&&(t.style.display="none"),n.scene.postRender.removeEventListener(ie)}function ne(t){if(g.value.label.length){const e=document.getElementById("pop");e&&(e.style.display="block",e.style.position="absolute",e.style.top=t.y-10+"px",e.style.left=t.x+10+"px",e.style.zIndex=99)}}return(t,e)=>{const a=k("el-table-column"),o=k("el-table"),r=k("el-tooltip"),s=k("el-option"),c=k("el-select"),i=k("el-checkbox"),v=k("el-checkbox-group"),p=k("el-collapse-item"),u=k("el-collapse"),m=k("el-button");return _(),L("div",vt,[ht,l("div",bt,[l("div",yt,[l("div",_t,[xt,l("p",{onClick:e[0]||(e[0]=d=>Je())},[E(" \u4E0B\u8F7D \xA0 "),wt])]),l("div",{ref_key:"areaDiv",ref:ge,class:"areaDiv"},null,512),l("div",{ref_key:"leftProgressBarDiv",ref:Ne,class:"ProgressBar"},null,512)]),l("div",Ct,[l("div",St,[Dt,l("p",{onClick:e[1]||(e[1]=d=>$e())},[E(" \u4E0B\u8F7D \xA0 "),kt])]),l("div",{ref_key:"typesofDiv",ref:ve,class:"typesofDiv"},null,512),l("div",Lt,[x(o,{data:y(le),style:{width:"100%"}},{default:S(()=>[x(a,{prop:"date",label:"\u7C7B\u578B"}),x(a,{prop:"name",label:"\u9762\u79EF"}),x(a,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),l("div",{class:"leftFoldDiv",onClick:e[2]||(e[2]=d=>qe())},[x(r,{class:"box-item","show-arrow":!1,disabled:y(I),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:S(()=>[y(I)?F("v-if",!0):(_(),L("img",Tt))]),_:1},8,["disabled"]),x(r,{disabled:!y(I),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:S(()=>[y(I)?(_(),L("img",Mt)):F("v-if",!0)]),_:1},8,["disabled"])])]),l("div",zt,[l("div",Wt,[l("div",At,[It,l("p",{onClick:e[3]||(e[3]=d=>Ue())},[E(" \u4E0B\u8F7D \xA0 "),Nt])]),l("div",{ref_key:"farmlandDiv",ref:he,class:"farmlandDiv"},null,512),F(' ')]),l("div",Pt,[l("div",Ft,[Bt,l("p",{onClick:e[4]||(e[4]=d=>je())},[E(" \u4E0B\u8F7D \xA0 "),Et])]),x(c,{"popper-class":"select_city",onChange:e[5]||(e[5]=d=>j(t.item)),modelValue:b.value,"onUpdate:modelValue":e[6]||(e[6]=d=>b.value=d),clearable:"",placeholder:"\u5168\u90E8"},{default:S(()=>[(_(!0),L(ue,null,fe(y(w).arr,d=>(_(),pe(s,{key:d.streetCode,label:d.streetName,value:d.streetCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l("div",{ref_key:"ASdivisionDiv",ref:be,class:"ASdivision"},null,512)]),l("div",{class:"rightFoldDiv",onClick:e[7]||(e[7]=d=>Qe())},[x(r,{disabled:!y(N),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:S(()=>[y(N)?(_(),L("img",Ot)):F("v-if",!0)]),_:1},8,["disabled"]),x(r,{disabled:y(N),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:S(()=>[y(N)?F("v-if",!0):(_(),L("img",Rt))]),_:1},8,["disabled"])])]),l("div",Zt,[x(gt)]),Xt,x(u,{class:"legend",accordion:""},{default:S(()=>[x(p,{name:"1"},{title:S(()=>[E("\u56FE\u4F8B")]),default:S(()=>[l("div",qt,[x(v,{modelValue:xe.value,"onUpdate:modelValue":e[8]||(e[8]=d=>xe.value=d),onChange:t.change},{default:S(()=>[(_(!0),L(ue,null,fe(y(Pe),(d,z,W)=>(_(),pe(i,{key:W,style:lt({backgroundColor:d.color,border:"1px solid value.color",width:"100%"}),"v-model":d.disabled,disabled:d.disabled,label:z},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),l("div",Qt,[l("div",null,G(ye.value.name)+"\uFF1A",1),l("div",null,G(ye.value.value)+"\u4EA9",1),l("div",{class:"cancel",onClick:Q},"X")]),l("div",Gt,[(_(!0),L(ue,null,fe(y(g).label,(d,z)=>(_(),L("div",{key:z},[l("div",null,G(d.crop)+"\uFF1A",1),l("div",null,G((d.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),y(g).XZQMC?(_(),L("div",Vt,[Jt,l("div",null,G(y(g).XZQMC),1)])):F("v-if",!0),l("div",{class:"cancel",onClick:Q},"X")]),B.value?(_(),pe(m,{key:0,class:"back_button",onClick:e[9]||(e[9]=d=>Ye())},{default:S(()=>[E("\u8FD4\u56DE")]),_:1})):F("v-if",!0)])}}},oa=at($t,[["__scopeId","data-v-4e1915e9"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/remoteSense/freeze/index.vue"]]);export{oa as default}; diff --git a/dist/assets/index.cc9b0421.js.gz b/dist/assets/index.cc9b0421.js.gz new file mode 100644 index 0000000..a1a1fb5 Binary files /dev/null and b/dist/assets/index.cc9b0421.js.gz differ diff --git a/dist/assets/index.cf9f6a26.js b/dist/assets/index.cf9f6a26.js new file mode 100644 index 0000000..844ea76 --- /dev/null +++ b/dist/assets/index.cf9f6a26.js @@ -0,0 +1 @@ +import{z as k,_ as ye,O as ve,r as g,A as he,U as be,d as a,T as A,o as s,c as $,G as _,H as L,f as n,e,w as o,j as Q,I as j,J as M,k as y,P as q,m as d,l as O,x as G,g as Ve,s as we}from"./index.b3a66a9e.js";function ke(p){return k({url:"/system/config/list",method:"get",params:p})}function Ce(p){return k({url:"/system/config/"+p,method:"get"})}function xe(p){return k({url:"/system/config",method:"post",data:p})}function Ne(p){return k({url:"/system/config",method:"put",data:p})}function Te(p){return k({url:"/system/config/"+p,method:"delete"})}function Se(){return k({url:"/system/config/refreshCache",method:"delete"})}const Ue={class:"app-container"},Ke={class:"dialog-footer"},De=ve({name:"Config"}),Re=Object.assign(De,{setup(p){const{proxy:c}=we(),{sys_yes_no:S}=c.useDict("sys_yes_no"),P=g([]),h=g(!1),U=g(!0),N=g(!0),K=g([]),Y=g(!0),z=g(!0),D=g(0),R=g(""),C=g([]),H=he({form:{},queryParams:{pageNum:1,pageSize:10,configName:void 0,configKey:void 0,configType:void 0},rules:{configName:[{required:!0,message:"\u53C2\u6570\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],configKey:[{required:!0,message:"\u53C2\u6570\u952E\u540D\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],configValue:[{required:!0,message:"\u53C2\u6570\u952E\u503C\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}}),{queryParams:u,form:i,rules:J}=be(H);function V(){U.value=!0,ke(c.addDateRange(u.value,C.value)).then(r=>{P.value=r.rows,D.value=r.total,U.value=!1})}function W(){h.value=!1,I()}function I(){i.value={configId:void 0,configName:void 0,configKey:void 0,configValue:void 0,configType:"Y",remark:void 0},c.resetForm("configRef")}function T(){u.value.pageNum=1,V()}function X(){C.value=[],c.resetForm("queryRef"),T()}function Z(r){K.value=r.map(t=>t.configId),Y.value=r.length!=1,z.value=!r.length}function ee(){I(),h.value=!0,R.value="\u6DFB\u52A0\u53C2\u6570"}function B(r){I();const t=r.configId||K.value;Ce(t).then(b=>{i.value=b.data,h.value=!0,R.value="\u4FEE\u6539\u53C2\u6570"})}function le(){c.$refs.configRef.validate(r=>{r&&(i.value.configId!=null?Ne(i.value).then(t=>{c.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),h.value=!1,V()}):xe(i.value).then(t=>{c.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),h.value=!1,V()}))})}function E(r){const t=r.configId||K.value;c.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u53C2\u6570\u7F16\u53F7\u4E3A"'+t+'"\u7684\u6570\u636E\u9879\uFF1F').then(function(){return Te(t)}).then(()=>{V(),c.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function oe(){c.download("system/config/export",{...u.value},`config_${new Date().getTime()}.xlsx`)}function ne(){Se().then(()=>{c.$modal.msgSuccess("\u5237\u65B0\u7F13\u5B58\u6210\u529F")})}return V(),(r,t)=>{const b=a("el-input"),m=a("el-form-item"),te=a("el-option"),ae=a("el-select"),ie=a("el-date-picker"),f=a("el-button"),F=a("el-form"),x=a("el-col"),ue=a("right-toolbar"),re=a("el-row"),v=a("el-table-column"),se=a("dict-tag"),de=a("el-table"),ce=a("pagination"),fe=a("el-radio"),pe=a("el-radio-group"),me=a("el-dialog"),w=A("hasPermi"),ge=A("loading");return s(),$("div",Ue,[_(e(F,{model:n(u),ref:"queryRef",inline:!0,"label-width":"68px"},{default:o(()=>[e(m,{label:"\u53C2\u6570\u540D\u79F0",prop:"configName"},{default:o(()=>[e(b,{modelValue:n(u).configName,"onUpdate:modelValue":t[0]||(t[0]=l=>n(u).configName=l),placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u540D\u79F0",clearable:"",style:{width:"240px"},onKeyup:Q(T,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(m,{label:"\u53C2\u6570\u952E\u540D",prop:"configKey"},{default:o(()=>[e(b,{modelValue:n(u).configKey,"onUpdate:modelValue":t[1]||(t[1]=l=>n(u).configKey=l),placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u952E\u540D",clearable:"",style:{width:"240px"},onKeyup:Q(T,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(m,{label:"\u7CFB\u7EDF\u5185\u7F6E",prop:"configType"},{default:o(()=>[e(ae,{modelValue:n(u).configType,"onUpdate:modelValue":t[2]||(t[2]=l=>n(u).configType=l),placeholder:"\u7CFB\u7EDF\u5185\u7F6E",clearable:""},{default:o(()=>[(s(!0),$(j,null,M(n(S),l=>(s(),y(te,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(m,{label:"\u521B\u5EFA\u65F6\u95F4",style:{width:"308px"}},{default:o(()=>[e(ie,{modelValue:n(C),"onUpdate:modelValue":t[3]||(t[3]=l=>q(C)?C.value=l:null),"value-format":"YYYY-MM-DD",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(m,null,{default:o(()=>[e(f,{type:"primary",icon:"Search",onClick:T},{default:o(()=>[d("\u641C\u7D22")]),_:1}),e(f,{icon:"Refresh",onClick:X},{default:o(()=>[d("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[L,n(N)]]),e(re,{gutter:10,class:"mb8"},{default:o(()=>[e(x,{span:1.5},{default:o(()=>[_((s(),y(f,{type:"primary",plain:"",icon:"Plus",onClick:ee},{default:o(()=>[d("\u65B0\u589E")]),_:1})),[[w,["system:config:add"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:o(()=>[_((s(),y(f,{type:"success",plain:"",icon:"Edit",disabled:n(Y),onClick:B},{default:o(()=>[d("\u4FEE\u6539")]),_:1},8,["disabled"])),[[w,["system:config:edit"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:o(()=>[_((s(),y(f,{type:"danger",plain:"",icon:"Delete",disabled:n(z),onClick:E},{default:o(()=>[d("\u5220\u9664")]),_:1},8,["disabled"])),[[w,["system:config:remove"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:o(()=>[_((s(),y(f,{type:"warning",plain:"",icon:"Download",onClick:oe},{default:o(()=>[d("\u5BFC\u51FA")]),_:1})),[[w,["system:config:export"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:o(()=>[_((s(),y(f,{type:"danger",plain:"",icon:"Refresh",onClick:ne},{default:o(()=>[d("\u5237\u65B0\u7F13\u5B58")]),_:1})),[[w,["system:config:remove"]]])]),_:1},8,["span"]),e(ue,{showSearch:n(N),"onUpdate:showSearch":t[4]||(t[4]=l=>q(N)?N.value=l:null),onQueryTable:V},null,8,["showSearch"])]),_:1}),_((s(),y(de,{data:n(P),onSelectionChange:Z},{default:o(()=>[e(v,{type:"selection",width:"55",align:"center"}),e(v,{label:"\u53C2\u6570\u4E3B\u952E",align:"center",prop:"configId"}),e(v,{label:"\u53C2\u6570\u540D\u79F0",align:"center",prop:"configName","show-overflow-tooltip":!0}),e(v,{label:"\u53C2\u6570\u952E\u540D",align:"center",prop:"configKey","show-overflow-tooltip":!0}),e(v,{label:"\u53C2\u6570\u952E\u503C",align:"center",prop:"configValue"}),e(v,{label:"\u7CFB\u7EDF\u5185\u7F6E",align:"center",prop:"configType"},{default:o(l=>[e(se,{options:n(S),value:l.row.configType},null,8,["options","value"])]),_:1}),e(v,{label:"\u5907\u6CE8",align:"center",prop:"remark","show-overflow-tooltip":!0}),e(v,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180"},{default:o(l=>[O("span",null,G(r.parseTime(l.row.createTime)),1)]),_:1}),e(v,{label:"\u64CD\u4F5C",align:"center",width:"150","class-name":"small-padding fixed-width"},{default:o(l=>[_((s(),y(f,{link:"",type:"primary",icon:"Edit",onClick:_e=>B(l.row)},{default:o(()=>[d("\u4FEE\u6539")]),_:2},1032,["onClick"])),[[w,["system:config:edit"]]]),_((s(),y(f,{link:"",type:"primary",icon:"Delete",onClick:_e=>E(l.row)},{default:o(()=>[d("\u5220\u9664")]),_:2},1032,["onClick"])),[[w,["system:config:remove"]]])]),_:1})]),_:1},8,["data"])),[[ge,n(U)]]),_(e(ce,{total:n(D),page:n(u).pageNum,"onUpdate:page":t[5]||(t[5]=l=>n(u).pageNum=l),limit:n(u).pageSize,"onUpdate:limit":t[6]||(t[6]=l=>n(u).pageSize=l),onPagination:V},null,8,["total","page","limit"]),[[L,n(D)>0]]),Ve(" \u6DFB\u52A0\u6216\u4FEE\u6539\u53C2\u6570\u914D\u7F6E\u5BF9\u8BDD\u6846 "),e(me,{title:n(R),modelValue:n(h),"onUpdate:modelValue":t[12]||(t[12]=l=>q(h)?h.value=l:null),width:"500px","append-to-body":""},{footer:o(()=>[O("div",Ke,[e(f,{type:"primary",onClick:le},{default:o(()=>[d("\u786E \u5B9A")]),_:1}),e(f,{onClick:W},{default:o(()=>[d("\u53D6 \u6D88")]),_:1})])]),default:o(()=>[e(F,{ref:"configRef",model:n(i),rules:n(J),"label-width":"80px"},{default:o(()=>[e(m,{label:"\u53C2\u6570\u540D\u79F0",prop:"configName"},{default:o(()=>[e(b,{modelValue:n(i).configName,"onUpdate:modelValue":t[7]||(t[7]=l=>n(i).configName=l),placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u53C2\u6570\u952E\u540D",prop:"configKey"},{default:o(()=>[e(b,{modelValue:n(i).configKey,"onUpdate:modelValue":t[8]||(t[8]=l=>n(i).configKey=l),placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u952E\u540D"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u53C2\u6570\u952E\u503C",prop:"configValue"},{default:o(()=>[e(b,{modelValue:n(i).configValue,"onUpdate:modelValue":t[9]||(t[9]=l=>n(i).configValue=l),placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u952E\u503C"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u7CFB\u7EDF\u5185\u7F6E",prop:"configType"},{default:o(()=>[e(pe,{modelValue:n(i).configType,"onUpdate:modelValue":t[10]||(t[10]=l=>n(i).configType=l)},{default:o(()=>[(s(!0),$(j,null,M(n(S),l=>(s(),y(fe,{key:l.value,label:l.value},{default:o(()=>[d(G(l.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(m,{label:"\u5907\u6CE8",prop:"remark"},{default:o(()=>[e(b,{modelValue:n(i).remark,"onUpdate:modelValue":t[11]||(t[11]=l=>n(i).remark=l),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}}),$e=ye(Re,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/system/config/index.vue"]]);export{$e as default}; diff --git a/dist/assets/index.cf9f6a26.js.gz b/dist/assets/index.cf9f6a26.js.gz new file mode 100644 index 0000000..2a3e695 Binary files /dev/null and b/dist/assets/index.cf9f6a26.js.gz differ diff --git a/dist/assets/index.f7b39151.js b/dist/assets/index.d658f999.js similarity index 81% rename from dist/assets/index.f7b39151.js rename to dist/assets/index.d658f999.js index 9510aff..887394e 100644 --- a/dist/assets/index.f7b39151.js +++ b/dist/assets/index.d658f999.js @@ -1 +1 @@ -import{_ as c,u as a,a as n,o as u,c as _}from"./index.5f349928.js";const p={__name:"index",setup(i){const e=a(),t=n(),{params:r,query:s}=e,{path:o}=r;return t.replace({path:"/"+o,query:s}),(l,d)=>(u(),_("div"))}},m=c(p,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/redirect/index.vue"]]);export{m as default}; +import{_ as c,u as a,a as n,o as u,c as _}from"./index.b3a66a9e.js";const p={__name:"index",setup(i){const e=a(),t=n(),{params:r,query:s}=e,{path:o}=r;return t.replace({path:"/"+o,query:s}),(l,d)=>(u(),_("div"))}},m=c(p,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/redirect/index.vue"]]);export{m as default}; diff --git a/dist/assets/index.7f51dd3e.js b/dist/assets/index.d669c9cd.js similarity index 78% rename from dist/assets/index.7f51dd3e.js rename to dist/assets/index.d669c9cd.js index c4c0a5e..b606dec 100644 --- a/dist/assets/index.7f51dd3e.js +++ b/dist/assets/index.d669c9cd.js @@ -1 +1 @@ -import{_ as e,o as t,c as o}from"./index.5f349928.js";const r={};function s(c,n,p,u,a,_){return t(),o("div",null,"\u82B1\u751F")}const l=e(r,[["render",s],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/output/peanut/index.vue"]]);export{l as default}; +import{_ as e,o as t,c as o}from"./index.b3a66a9e.js";const r={};function s(c,n,p,u,a,_){return t(),o("div",null,"\u82B1\u751F")}const l=e(r,[["render",s],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/output/peanut/index.vue"]]);export{l as default}; diff --git a/dist/assets/index.d674d3bd.js.gz b/dist/assets/index.d674d3bd.js.gz deleted file mode 100644 index 8926a89..0000000 Binary files a/dist/assets/index.d674d3bd.js.gz and /dev/null differ diff --git a/dist/assets/index.d70e9a7d.js b/dist/assets/index.d70e9a7d.js new file mode 100644 index 0000000..43cb7f7 --- /dev/null +++ b/dist/assets/index.d70e9a7d.js @@ -0,0 +1 @@ +import{z as J,_ as at,r as u,A as ot,B as rt,C as lt,D as ce,d as k,o as _,c as L,l,m as E,e as x,w as C,f as y,g as B,I as ue,J as fe,k as pe,Q as st,x as Q,y as it,p as nt,q as dt}from"./index.b3a66a9e.js";import ee from"./downloads.e955445d.js";import{_ as te}from"./close1.45635d81.js";import{_ as ct,a as ut,b as ft,c as pt,d as mt,e as gt}from"./linesGL.90f708a5.js";import{i as K,L as G}from"./index.c9f5bd8b.js";import{T as vt}from"./TimeLine.6cac5abc.js";import{u as me}from"./useEcharts.83442be8.js";import{d as V}from"./download.a6a18203.js";function Te(h){return J({url:"equipment/areaStatisticsDrought",method:"get",params:h})}function We(h){return J({url:"equipment/proportionOfArea",method:"get",params:h})}function ze(h){return J({url:"equipment/statisticsOfArea",method:"get",params:h})}function Ie(h){return J({url:"equipment/township",method:"get",params:h})}function Ne(h){return J({url:"equipment/administrative",method:"get",params:h})}const M=h=>(nt("data-v-e73613e6"),h=h(),dt(),h),ht={class:"center"},bt=M(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),yt={class:"leftWra"},_t={class:"leftTop"},xt={class:"title"},wt=M(()=>l("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),Ct=M(()=>l("img",{src:ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),St={class:"leftbottom"},Dt={class:"title"},kt=M(()=>l("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),Lt=M(()=>l("img",{src:ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Mt={class:"tableDiv"},Tt={key:0,src:te,alt:""},Wt={key:0,class:"imgrotate",src:te,alt:""},zt={class:"rightWra"},It={class:"rightTop"},Nt={class:"title"},Pt=M(()=>l("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),At=M(()=>l("img",{src:ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Bt={class:"rightbottom"},Ft={class:"title"},Et=M(()=>l("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Rt=M(()=>l("img",{src:ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ot={key:0,src:te,alt:""},Zt={key:0,class:"imgrotate",src:te,alt:""},Xt={class:"bottom_center"},qt=it('',1),Qt={class:"mt-4"},Gt={id:"popup"},Vt={id:"pop"},Jt={key:0},$t=M(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),Ut={__name:"index",setup(h){let i=u(null);const ge=u(null),ve=u(null),he=u(null);u(null);const be=u(null),b=u("370211"),Pe=u(null);let S=ot({arr:[],brr:[],crr:[]});const ye=u({name:"",value:""}),_e=u([]),F=u(!1);let P=u(!1),A=u(!1);const xe=u(["false"]);let ae=u([]),$=u([]),oe=u([]),re=u(0),we=["\u9AD8\u6807\u51C6\u519C\u75301.0","\u9AD8\u6807\u51C6\u519C\u75302.0","\u9AD8\u6807\u51C6\u519C\u75303.0","\u9AD8\u6807\u51C6\u519C\u75304.0","\u9AD8\u6807\u51C6\u519C\u75305.0","\u9AD8\u6807\u51C6\u519C\u75306.0","\u9AD8\u6807\u51C6\u519C\u75307.0"],I={\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[],\u9002\u5B9C:[],\u6E7F\u6DA6:[]},Ae={\u9002\u5B9C:{color:"rgba(9, 187, 222, 0.8)",disabled:!1},\u6E7F\u6DA6:{color:"rgba(255, 235, 59, 0.8)",disabled:!1},\u8F7B\u5EA6\u5E72\u65F1:{color:"rgba(234, 165, 93, 0.8)",disabled:!1},\u4E2D\u5EA6\u5E72\u65F1:{color:"rgba(205, 92, 92, 1)",disabled:!1},\u91CD\u5EA6\u5E72\u65F1:{color:"red",disabled:!1}};rt(()=>S.arr,t=>{console.log("val:",t)});var R={title:[]};let w={\u9002\u5B9C:[],\u6E7F\u6DA6:[],\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[]},le=u([]);lt(()=>{Se("370211"),De("370211"),Ge(),ke("370211"),Fe(),Y(),Le(),X(),Re();let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)");let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"});const Be={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 Fe(){i=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({...Be})}),i.cesiumWidget.creditContainer.style.display="none",ie("shuzisannong:huangdaoqu_town","tl"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),Oe(),et()}function Ce(t,e,a){t.forEach(o=>{let r=[];o[0].forEach(s=>{r.push(s[0]),r.push(s[1])}),i.entities.add({name:e,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(r),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:a?Cesium.Color.fromCssColorString(a):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function Ee(t){return t>48e6?0:t>24e6?1:t>12e6?2:t>6e6?3:t>3e6?4:t>15e5?5:t>75e4?6:t>375e3?7:t>187500?8:t>93750?9:t>46875?10:t>23437.5?11:t>11718.75?12:t>5859.38?13:t>2929.69?14:t>1464.84?15:t>732.42?16:t>366.21?17:18}function Re(){ce({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afarmland&maxFeatures=50&outputFormat=application%2Fjson",method:"get"}).then(t=>{console.log("\u519C\u7530\uFF1A",t),_e.value=t.data.features}).catch(t=>{})}let g=u({label:[]}),O="";function Oe(){var t=new Cesium.ScreenSpaceEventHandler(i.canvas);t.setInputAction(function(e){var a=i.camera.getPickRay(e.position),o=i.scene.globe.pick(a,i.scene);if(o){let r=Cesium.Cartographic.fromCartesian(o);if(r){let s=new Cesium.Cartesian2,d=i.camera.positionCartographic.height,n=Ee(d);const v=i.imageryLayers._layers,p=v.findIndex(f=>f._imageryProvider._layers&&f._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(p>-1){const f=v[p];let m=f._imageryProvider;if(m&&m.ready&&m._layers&&f.show===!0){s=m.tilingScheme.positionToTileXY(r,n,s);let c=m.pickFeatures(s.x,s.y,n,r.longitude,r.latitude);c&&c.then(W=>{if(W.length>0){let D=W[0];if(D.properties&&D.properties.XZDM)if(console.log("XZDM:",O),console.log("newData.properties.XZDM:",D.properties.XZDM),O!==D.properties.XZDM){F.value=!0,O=D.properties.XZDM,b.value=O,j&&j();let N=D.data;i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(N.bbox[0],N.bbox[1],N.bbox[2],N.bbox[3]),duration:2}),Z("townLine"),Ce(N.geometry&&N.geometry.coordinates,"townLine","yellow"),T(["village_CQL"]),Xe(`XZDM=${D.properties.XZDM}`,"village_CQL");let H=i.entities._entities._array;for(var z=H.length-1;z>=0;z--)if(H[z]._name&&H[z]._name==="point"+D.properties.XZDM){let tt=H[z]._info;g.value=tt,console.log(g.value,"------------------"),de(e.position),i.scene.postRender.addEventListener(ne)}Z("villageLine"),U=""}else Ze(v,s,n,r,e);else T(["village_CQL"]),q()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let U="";function Ze(t,e,a,o,r){const s=t.findIndex(d=>d._imageryProvider._layers&&d._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(s>-1){const d=t[s];let n=d._imageryProvider;if(n&&n.ready&&n._layers&&d.show===!0){e=n.tilingScheme.positionToTileXY(o,a,e);let v=n.pickFeatures(e.x,e.y,a,o.longitude,o.latitude);v&&v.then(p=>{if(p.length>0){let f=p[0];if(console.log(f),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(f.data.bbox[0],f.data.bbox[1],f.data.bbox[2],f.data.bbox[3]),duration:2}),f.properties&&f.properties.XZQDM&&U!==f.properties.XZQDM){U=f.properties.XZQDM;let m=f.data;if(Z("villageLine"),Ce(m.geometry&&m.geometry.coordinates,"villageLine","yellow"),f.properties.XZQDM==="370211104217"){const c=Cesium.Rectangle.fromDegrees(m.bbox[0],m.bbox[1],m.bbox[2],m.bbox[3]),W=Cesium.Rectangle.center(c);let z=Cesium.Math.toDegrees(W.longitude),D=Cesium.Math.toDegrees(W.latitude),N={lon:z,lat:D,...m.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}]};g.value=N,de(r.position),i.scene.postRender.addEventListener(ne)}}}})}}}function Xe(t,e){let a=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:t}});a.customName=e,i.imageryLayers.addImageryProvider(a)}function T(t,e){if(i){const a=i.imageryLayers._layers;for(let o=a.length-1;o>=0;o--)t.forEach(r=>{a[o]._imageryProvider&&a[o]._imageryProvider.customName&&(e?a[o]._imageryProvider.customName.indexOf(r)>-1&&i.imageryLayers.remove(a[o]):a[o]._imageryProvider.customName===r&&i.imageryLayers.remove(a[o]))})}}function Z(t){if(i){let a=i.entities._entities._array;for(var e=a.length-1;e>=0;e--)a[e]._name&&a[e]._name===t&&i.entities.remove(a[e])}}function qe(){if(P.value=!P.value,P.value){let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(0,0)")}else{let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)")}}function Qe(){if(A.value=!A.value,A.value){let t=document.querySelector(".rightWra");t.style.transform="translate(0,0)"}else{let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)"}}const Se=t=>{ae=u([]),$=u([]),Te({divisions:t}).then(e=>{e.data.forEach(a=>{ae.value.push(a.level),$.value.push((a.area/666.67).toFixed(2))}),se()})},De=t=>{oe=u([]),le=u([]),re=u(0),We({divisions:t}).then(e=>{e.data.forEach(a=>{re.value+=Number(a.area),oe.value.push({name:a.level,value:(a.area/666.67).toFixed(2)}),le.value.push({date:a.level,name:`${(a.area/666.67).toFixed(2)}\u4EA9`,address:`${(a.percentage*100).toFixed(2)}%`})}),Y()})},Ge=()=>{ze().then(t=>{console.log(t.data),we.forEach((e,a)=>{let o=t.data.map(r=>{if(e===r.region)return r});Object.keys(I).forEach(r=>{let s=0;o.findIndex(n=>(n&&n.level===r&&(s=n.area),n&&n.level===r))>-1?I[r].push(s):I[r].push(0)})}),Le()})},ke=t=>{Ie({divisions:t}).then(e=>{S.brr=e.data,S.arr=e.data.sort((d,n)=>d.streetName.length-n.streetName.length),S.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let a=[],o=[];S.arr.forEach(d=>{a.indexOf(d.streetName)==-1&&(a.push(d.streetName),o.push({streetName:d.streetName,streetCode:d.streetCode,area:d.area,type:d.type}))}),S.arr=o;let r=[...e.data],s=[];r.splice(0,1),r.forEach(d=>{s.indexOf(d.streetName)==-1&&s.push(d.streetName)}),R.title=[...Object.values(s)],R.title.forEach((d,n)=>{let v=e.data.map(p=>{if(d===p.streetName)return p});Object.keys(w).forEach(p=>{v.findIndex(m=>m&&m.type===p)>-1?w[p].push(1):w[p].push(null)})}),X()})},Ve=t=>{Ne({divisions:t}).then(e=>{S.brr=e.data;let a=[...e.data],o=[];a.forEach(r=>{o.indexOf(r.streetName)==-1&&o.push(r.streetName)}),R.title=[...Object.values(o)],R.title.forEach((r,s)=>{let d=e.data.map(n=>{if(r===n.streetName)return n});Object.keys(w).forEach(n=>{d.findIndex(p=>p&&p.type===n)>-1?w[n].push(1):w[n].push(null)})}),X()})},j=()=>{if(Se(b.value),De(b.value),b.value=="370211"){T(["village_CQL"]),O=null,T(["aaa"]),ke(),q(),X(),se(),Y();return}Ve(b.value),X(),se(),Y(),[...S.arr]},Je=t=>{Te({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})},$e=t=>{We({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})},Ue=t=>{ze({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})},je=t=>{b.value==="370211"?Ie({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)}):Ne({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})};function se(){console.log($.value);const t=K(ge.value);var e={textStyle:{fontSize:0},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!0,top:"5%",data:["\u9762\u79EF"],right:"5%",icon:"rect",textStyle:{fontSize:14,color:"rgba(255, 255, 255, 0.7)"}},xAxis:{nameTextStyle:{color:"#c0c3cd",padding:[0,0,-10,0],fontSize:14},axisLabel:{color:"rgba(255, 255, 255, 0.7)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14},axisTick:{lineStyle:{color:"#0B1535",width:1},show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#384267",width:1,type:"dashed"},show:!0},data:ae.value,type:"category"},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255,255,255,0.7)"},splitLine:{lineStyle:{type:"dashed"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{data:$.value,name:"\u9762\u79EF",type:"bar",barMaxWidth:"auto",barWidth:35,itemStyle:{color:{x:0,y:0,x2:0,y2:1,type:"linear",global:!1,colorStops:[{offset:0,color:"rgba(45, 204, 177, 1)"},{offset:1,color:"rgba(71, 179, 161, 0)"}]}},label:{normal:{show:!1,fontSize:14,color:"#ffffff",position:"top"}}}]};e&&t.setOption(e),window.addEventListener("resize",function(){t.resize()})}function Y(){const t=K(ve.value);var e=oe.value;let a={color:["rgba(9, 187, 222, 0.8)","rgba(255, 235, 59, 0.8)","rgba(234, 165, 93, 0.8)","rgba(205, 92, 92, 1)","red"],title:{text:"\u603B\u9762\u79EF",subtext:`${(re.value/666.67).toFixed(2)}\u4EA9`,textStyle:{color:"#f2f2f2",fontSize:14},subtextStyle:{fontSize:14,color:["#ff9d19"]},x:"center",y:"center"},grid:{top:0},legend:{orient:"vertical",top:"middle",right:"2%",textStyle:{color:"#f2f2f2",fontSize:14},icon:"roundRect",data:e},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a}
{b} : {c}\u4EA9
\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",data:e},{radius:["50%","54%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1},emphasis:{show:!1}},labelLine:{normal:{show:!1},emphasis:{show:!1}},animation:!1,tooltip:{show:!1},data:[{value:1,itemStyle:{color:"rgba(250,250,250,0.3)"}}]},{name:"\u5916\u8FB9\u6846",type:"pie",clockWise:!1,hoverAnimation:!1,center:["50%","50%"],radius:["85%","85%"],tooltip:{show:!1},label:{normal:{show:!1}},data:[{value:9,name:"",itemStyle:{normal:{borderWidth:2,borderColor:"#0b5263"}}}]}]};me(t,a)}function Le(){const t=K(he.value);let e={title:{text:"",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},xAxis:{type:"category",data:we,axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)",width:1,type:"solid"},axisLabel:{color:"rgba(255, 255, 255, 0.7)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14}}},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255, 255, 255, 0.7)"},splitLine:{lineStyle:{type:"solid",color:"rgba(255, 255, 255, 0.3)"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{name:"\u8F7B\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:I.\u8F7B\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(234, 165, 93, 1)",color:new G(0,0,0,1,[{offset:0,color:"rgba(234, 165, 93, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}])}}},{name:"\u4E2D\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:I.\u4E2D\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(205, 92, 92, 0.8)",color:new G(0,0,0,1,[{offset:0,color:"rgba(205, 92, 92, 1)"},{offset:1,color:"rgba(205, 92, 92, 1)"}])}}},{name:"\u91CD\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:I.\u91CD\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"red",color:new G(0,0,0,1,[{offset:0,color:"red"},{offset:1,color:"red"}])}}},{name:"\u9002\u5B9C",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:I.\u9002\u5B9C,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(9, 187, 222, 1)",color:new G(0,0,0,1,[{offset:0,color:"rgba(9, 187, 222, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}])}}},{name:"\u6E7F\u6DA6",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:I.\u6E7F\u6DA6,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 235, 59, 1)",color:new G(0,0,0,1,[{offset:0,color:"rgba(255, 235, 59, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 0.8)"}])}}}]};t.on("click",function(a){console.log(a.name)}),t.on("click",a=>He(a)),e&&t.setOption(e,{notMerge:!0,grid:{bottom:20}}),me(t,e)}function ie(t,e){let a=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:t,parameters:{service:"WMS",format:"image/png",transparent:!0}});a.customName=e;let o=i.imageryLayers.addImageryProvider(a);e.indexOf("gbznt")>-1&&(i.imageryLayers.lowerToBottom(o),i.imageryLayers.raise(o))}function Ye(){delete g.value.XZQMC,T(["gbznt"],!0),T(["aaa"]),b.value="370211",j(),F.value==="1"&&(console.log(F.value),ie("shuzisannong:huangdaoqu_town","tl")),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),F.value=!1,q()}function He(t){delete g.value,T(["huangdaoqu_town"],!0),T(["tl"],!0);let e="shuzisannong:farmland",a=!1;const o=i.imageryLayers._layers;for(let s=o.length-1;s>=0;s--)o[s]&&o[s]._imageryProvider.customName&&o[s]._imageryProvider.customName===e+"gbznt"&&(a=!0);a||(ie(e,e+"gbznt"),g.value.label=[{crop:"\u5C0F\u9EA6",Shape_Area:"53000"},{crop:"\u5730\u74DC",Shape_Area:"50000"}]),_e.value.forEach(s=>{s.properties.name===t.name&&(console.log("dingwei"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(s.bbox[0],s.bbox[1],s.bbox[2],s.bbox[3]),duration:2}))}),F.value="1",de({x:642,y:312})}function X(){const t=K(be.value);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(a){let o=0;return S.brr.forEach(r=>{r.type==a.seriesName&&r.streetName==a.name&&(console.log(r.area),o=r.area)}),a.seriesName+''+(o/666.67).toFixed(2)+"\u4EA9"}},dataZoom:[{type:"slider",show:!1,zoomLock:!0,width:8,yAxisIndex:[0],bottom:30,top:20,right:10,startValue:0,endValue:4,handleIcon:"M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z",handleSize:"100%",handleStyle:{color:"#DBDBDB",height:"100%"},backgroundColor:"transparent",fillerColor:"#DBDBDB",textStyle:{color:"transparent"},dataBackground:{lineStyle:{color:"transparent"},areaStyle:{color:"transparent"}},borderColor:"transparent"},{type:"inside",id:"insideY",yAxisIndex:0,start:0,end:50,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"category",axisTick:{show:!1},axisLine:{show:!1,lineStyle:{color:"#cdd3ee"}},splitLine:{show:!1},axisLabel:{show:!0,fontSize:12,color:"rgba(255, 255, 255, 1)",formatter:"{value}"},data:R.title,inverse:!0}],series:[{type:"bar",name:"\u6E7F\u6DA6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u6E7F\u6DA6",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(255, 235, 59, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 0.8)"}]}},data:w.\u6E7F\u6DA6},{type:"bar",name:"\u9002\u5B9C",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u9002\u5B9C",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(9, 187, 222, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}]}},data:w.\u9002\u5B9C},{type:"bar",name:"\u8F7B\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F7B\u5EA6\u5E72\u65F1",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(234, 165, 93, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}]}},data:w.\u8F7B\u5EA6\u5E72\u65F1},{type:"bar",name:"\u4E2D\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u4E2D\u5EA6\u5E72\u65F1",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(205, 92, 92, 1)"},{offset:1,color:"rgba(205, 92, 92, 1)"}]}},data:w.\u4E2D\u5EA6\u5E72\u65F1},{type:"bar",name:"\u91CD\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u91CD\u5EA6\u5E72\u65F1",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"red"},{offset:1,color:"red"}]}},data:w.\u91CD\u5EA6\u5E72\u65F1}]};me(t,e)}function Ke(){let t=Me.value;console.log("fl:",t),ce({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(e=>{console.log("res1111:",e),e.data.features.forEach((o,r)=>{const s=Cesium.Rectangle.fromDegrees(o.bbox[0],o.bbox[1],o.bbox[2],o.bbox[3]),d=Cesium.Rectangle.center(s);let n=Cesium.Math.toDegrees(d.longitude),v=Cesium.Math.toDegrees(d.latitude);o.properties.XZDM==="370211011"?(n=120.0863,v=35.941):o.properties.XZDM==="370211003"&&(n=120.243682,v=35.97123201);const p=t[o.properties.XZMC];let f=[];p&&(f=p.map((m,c)=>m.properties)),i.entities.add({name:"point"+o.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(n,v),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:f,...o.properties,lon:n,lat:v}})})}).catch(e=>{})}let Me=u({});function et(){ce({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(t=>{let e=t.data.features,a={};e.forEach(o=>{let r=o.properties.town;a[r]?a[r].push(o):a[r]=[o]}),Me.value=a,Ke()}).catch(t=>{})}function ne(){if(g.value&&g.value.lon&&g.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(g.value.lon),Number(g.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.scene,e);if(Cesium.defined(t)){const a=document.getElementById("pop");a&&(a.style.top=t.y-10+"px",a.style.left=t.x+10+"px")}}}function q(){delete g.value.XZQMC,U="",T(["village_CQL"]),Z("villageLine"),Z("townLine");const t=document.getElementById("pop");t&&(t.style.display="none"),i.scene.postRender.removeEventListener(ne)}function de(t){if(g.value.label.length){const e=document.getElementById("pop");e&&(e.style.display="block",e.style.position="absolute",e.style.top=t.y-10+"px",e.style.left=t.x+10+"px",e.style.zIndex=99)}}return(t,e)=>{const a=k("el-table-column"),o=k("el-table"),r=k("el-tooltip"),s=k("el-option"),d=k("el-select"),n=k("el-checkbox"),v=k("el-checkbox-group"),p=k("el-collapse-item"),f=k("el-collapse"),m=k("el-button");return _(),L("div",ht,[bt,l("div",yt,[l("div",_t,[l("div",xt,[wt,l("p",{onClick:e[0]||(e[0]=c=>Je())},[E(" \u4E0B\u8F7D \xA0 "),Ct])]),l("div",{ref_key:"areaDiv",ref:ge,class:"areaDiv"},null,512),l("div",{ref_key:"leftProgressBarDiv",ref:Pe,class:"ProgressBar"},null,512)]),l("div",St,[l("div",Dt,[kt,l("p",{onClick:e[1]||(e[1]=c=>$e())},[E(" \u4E0B\u8F7D \xA0 "),Lt])]),l("div",{ref_key:"typesofDiv",ref:ve,class:"typesofDiv"},null,512),l("div",Mt,[x(o,{data:y(le),style:{width:"100%"}},{default:C(()=>[x(a,{prop:"date",label:"\u7C7B\u578B"}),x(a,{prop:"name",label:"\u9762\u79EF"}),x(a,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),l("div",{class:"leftFoldDiv",onClick:e[2]||(e[2]=c=>qe())},[x(r,{class:"box-item","show-arrow":!1,disabled:y(P),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:C(()=>[y(P)?B("v-if",!0):(_(),L("img",Tt))]),_:1},8,["disabled"]),x(r,{disabled:!y(P),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:C(()=>[y(P)?(_(),L("img",Wt)):B("v-if",!0)]),_:1},8,["disabled"])])]),l("div",zt,[l("div",It,[l("div",Nt,[Pt,l("p",{onClick:e[3]||(e[3]=c=>Ue())},[E(" \u4E0B\u8F7D \xA0 "),At])]),l("div",{ref_key:"farmlandDiv",ref:he,class:"farmlandDiv"},null,512),B(' ')]),l("div",Bt,[l("div",Ft,[Et,l("p",{onClick:e[4]||(e[4]=c=>je())},[E(" \u4E0B\u8F7D \xA0 "),Rt])]),x(d,{"popper-class":"select_city",onChange:e[5]||(e[5]=c=>j(t.item)),modelValue:b.value,"onUpdate:modelValue":e[6]||(e[6]=c=>b.value=c),clearable:"",placeholder:"\u5168\u90E8"},{default:C(()=>[(_(!0),L(ue,null,fe(y(S).arr,c=>(_(),pe(s,{key:c.streetCode,label:c.streetName,value:c.streetCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l("div",{ref_key:"ASdivisionDiv",ref:be,class:"ASdivision"},null,512)]),l("div",{class:"rightFoldDiv",onClick:e[7]||(e[7]=c=>Qe())},[x(r,{disabled:!y(A),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:C(()=>[y(A)?(_(),L("img",Ot)):B("v-if",!0)]),_:1},8,["disabled"]),x(r,{disabled:y(A),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:C(()=>[y(A)?B("v-if",!0):(_(),L("img",Zt))]),_:1},8,["disabled"])])]),l("div",Xt,[x(vt)]),qt,x(f,{class:"legend",accordion:""},{default:C(()=>[x(p,{name:"1"},{title:C(()=>[E("\u56FE\u4F8B")]),default:C(()=>[l("div",Qt,[x(v,{modelValue:xe.value,"onUpdate:modelValue":e[8]||(e[8]=c=>xe.value=c),onChange:t.change},{default:C(()=>[(_(!0),L(ue,null,fe(y(Ae),(c,W,z)=>(_(),pe(n,{key:z,style:st({backgroundColor:c.color,border:"1px solid value.color",width:"100%"}),"v-model":c.disabled,disabled:c.disabled,label:W},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),l("div",Gt,[l("div",null,Q(ye.value.name)+"\uFF1A",1),l("div",null,Q(ye.value.value)+"\u4EA9",1),l("div",{class:"cancel",onClick:q},"X")]),l("div",Vt,[(_(!0),L(ue,null,fe(y(g).label,(c,W)=>(_(),L("div",{key:W},[l("div",null,Q(c.crop)+"\uFF1A",1),l("div",null,Q((c.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),y(g).XZQMC?(_(),L("div",Jt,[$t,l("div",null,Q(y(g).XZQMC),1)])):B("v-if",!0),l("div",{class:"cancel",onClick:q},"X")]),F.value?(_(),pe(m,{key:0,class:"back_button",onClick:e[9]||(e[9]=c=>Ye())},{default:C(()=>[E("\u8FD4\u56DE")]),_:1})):B("v-if",!0)])}}},ra=at(Ut,[["__scopeId","data-v-e73613e6"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/remoteSense/drought/index.vue"]]);export{ra as default}; diff --git a/dist/assets/index.d70e9a7d.js.gz b/dist/assets/index.d70e9a7d.js.gz new file mode 100644 index 0000000..002c761 Binary files /dev/null and b/dist/assets/index.d70e9a7d.js.gz differ diff --git a/dist/assets/index.3f12053f.js b/dist/assets/index.dceb87c3.js similarity index 82% rename from dist/assets/index.3f12053f.js rename to dist/assets/index.dceb87c3.js index f540fdf..864991d 100644 --- a/dist/assets/index.3f12053f.js +++ b/dist/assets/index.dceb87c3.js @@ -1 +1 @@ -import{_ as pe,O as ce,u as me,r as c,B as fe,U as _e,L as ge,d as i,T as $,o as _,c as j,H as s,I as F,f as n,e,w as l,j as L,P as Y,m as b,k as v,l as G,x as Q,g as be,J as ve,K as he,s as ye,a4 as we}from"./index.5f349928.js";import{a as Ce,b as Ne,s as ke,p as xe,d as Ve}from"./gen.31b1004e.js";import Se from"./importTable.463dbaba.js";const Te={class:"app-container"},De=ce({name:"Gen"}),$e=Object.assign(De,{setup(Ie){const I=me(),{proxy:u}=ye(),R=c([]),V=c(!0),N=c(!0),S=c([]),U=c(!0),q=c(!0),T=c(0),P=c([]),h=c([]),O=c(""),A=fe({queryParams:{pageNum:1,pageSize:10,tableName:void 0,tableComment:void 0},preview:{open:!1,title:"\u4EE3\u7801\u9884\u89C8",data:{},activeName:"domain.java"}}),{queryParams:r,preview:m}=_e(A);ge(()=>{const o=I.query.t;o!=null&&o!=O.value&&(O.value=o,r.value.pageNum=Number(I.query.pageNum),h.value=[],u.resetForm("queryForm"),y())});function y(){V.value=!0,Ce(u.addDateRange(r.value,h.value)).then(o=>{R.value=o.rows,T.value=o.total,V.value=!1})}function w(){r.value.pageNum=1,y()}function z(o){const t=o.tableName||P.value;if(t==""){u.$modal.msgError("\u8BF7\u9009\u62E9\u8981\u751F\u6210\u7684\u6570\u636E");return}o.genType==="1"?Ne(o.tableName).then(D=>{u.$modal.msgSuccess("\u6210\u529F\u751F\u6210\u5230\u81EA\u5B9A\u4E49\u8DEF\u5F84\uFF1A"+o.genPath)}):u.$download.zip("/tool/gen/batchGenCode?tables="+t,"ruoyi.zip")}function M(o){const t=o.tableName;u.$modal.confirm('\u786E\u8BA4\u8981\u5F3A\u5236\u540C\u6B65"'+t+'"\u8868\u7ED3\u6784\u5417\uFF1F').then(function(){return ke(t)}).then(()=>{u.$modal.msgSuccess("\u540C\u6B65\u6210\u529F")}).catch(()=>{})}function H(){u.$refs.importRef.show()}function J(){h.value=[],u.resetForm("queryRef"),w()}function W(o){xe(o.tableId).then(t=>{m.value.data=t.data,m.value.open=!0,m.value.activeName="domain.java"})}function X(){u.$modal.msgSuccess("\u590D\u5236\u6210\u529F")}function Z(o){S.value=o.map(t=>t.tableId),P.value=o.map(t=>t.tableName),U.value=o.length!=1,q.value=!o.length}function K(o){const t=o.tableId||S.value[0];we.push({path:"/tool/gen-edit/index/"+t,query:{pageNum:r.value.pageNum}})}function B(o){const t=o.tableId||S.value;u.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u8868\u7F16\u53F7\u4E3A"'+t+'"\u7684\u6570\u636E\u9879\uFF1F').then(function(){return Ve(t)}).then(()=>{y(),u.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}return y(),(o,t)=>{const D=i("el-input"),k=i("el-form-item"),ee=i("el-date-picker"),d=i("el-button"),te=i("el-form"),x=i("el-col"),le=i("right-toolbar"),ae=i("el-row"),g=i("el-table-column"),C=i("el-tooltip"),ne=i("el-table"),oe=i("pagination"),ie=i("el-link"),re=i("el-tab-pane"),se=i("el-tabs"),ue=i("el-dialog"),f=$("hasPermi"),de=$("loading"),E=$("copyText");return _(),j("div",Te,[s(e(te,{model:n(r),ref:"queryRef",inline:!0},{default:l(()=>[e(k,{label:"\u8868\u540D\u79F0",prop:"tableName"},{default:l(()=>[e(D,{modelValue:n(r).tableName,"onUpdate:modelValue":t[0]||(t[0]=a=>n(r).tableName=a),placeholder:"\u8BF7\u8F93\u5165\u8868\u540D\u79F0",clearable:"",style:{width:"200px"},onKeyup:L(w,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(k,{label:"\u8868\u63CF\u8FF0",prop:"tableComment"},{default:l(()=>[e(D,{modelValue:n(r).tableComment,"onUpdate:modelValue":t[1]||(t[1]=a=>n(r).tableComment=a),placeholder:"\u8BF7\u8F93\u5165\u8868\u63CF\u8FF0",clearable:"",style:{width:"200px"},onKeyup:L(w,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(k,{label:"\u521B\u5EFA\u65F6\u95F4",style:{width:"308px"}},{default:l(()=>[e(ee,{modelValue:n(h),"onUpdate:modelValue":t[2]||(t[2]=a=>Y(h)?h.value=a:null),"value-format":"YYYY-MM-DD",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(k,null,{default:l(()=>[e(d,{type:"primary",icon:"Search",onClick:w},{default:l(()=>[b("\u641C\u7D22")]),_:1}),e(d,{icon:"Refresh",onClick:J},{default:l(()=>[b("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[F,n(N)]]),e(ae,{gutter:10,class:"mb8"},{default:l(()=>[e(x,{span:1.5},{default:l(()=>[s((_(),v(d,{type:"primary",plain:"",icon:"Download",onClick:z},{default:l(()=>[b("\u751F\u6210")]),_:1})),[[f,["tool:gen:code"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:l(()=>[s((_(),v(d,{type:"info",plain:"",icon:"Upload",onClick:H},{default:l(()=>[b("\u5BFC\u5165")]),_:1})),[[f,["tool:gen:import"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:l(()=>[s((_(),v(d,{type:"success",plain:"",icon:"Edit",disabled:n(U),onClick:K},{default:l(()=>[b("\u4FEE\u6539")]),_:1},8,["disabled"])),[[f,["tool:gen:edit"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:l(()=>[s((_(),v(d,{type:"danger",plain:"",icon:"Delete",disabled:n(q),onClick:B},{default:l(()=>[b("\u5220\u9664")]),_:1},8,["disabled"])),[[f,["tool:gen:remove"]]])]),_:1},8,["span"]),e(le,{showSearch:n(N),"onUpdate:showSearch":t[3]||(t[3]=a=>Y(N)?N.value=a:null),onQueryTable:y},null,8,["showSearch"])]),_:1}),s((_(),v(ne,{data:n(R),onSelectionChange:Z},{default:l(()=>[e(g,{type:"selection",align:"center",width:"55"}),e(g,{label:"\u5E8F\u53F7",type:"index",width:"50",align:"center"},{default:l(a=>[G("span",null,Q((n(r).pageNum-1)*n(r).pageSize+a.$index+1),1)]),_:1}),e(g,{label:"\u8868\u540D\u79F0",align:"center",prop:"tableName","show-overflow-tooltip":!0}),e(g,{label:"\u8868\u63CF\u8FF0",align:"center",prop:"tableComment","show-overflow-tooltip":!0}),e(g,{label:"\u5B9E\u4F53",align:"center",prop:"className","show-overflow-tooltip":!0}),e(g,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"160"}),e(g,{label:"\u66F4\u65B0\u65F6\u95F4",align:"center",prop:"updateTime",width:"160"}),e(g,{label:"\u64CD\u4F5C",align:"center",width:"330","class-name":"small-padding fixed-width"},{default:l(a=>[e(C,{content:"\u9884\u89C8",placement:"top"},{default:l(()=>[s(e(d,{link:"",type:"primary",icon:"View",onClick:p=>W(a.row)},null,8,["onClick"]),[[f,["tool:gen:preview"]]])]),_:2},1024),e(C,{content:"\u7F16\u8F91",placement:"top"},{default:l(()=>[s(e(d,{link:"",type:"primary",icon:"Edit",onClick:p=>K(a.row)},null,8,["onClick"]),[[f,["tool:gen:edit"]]])]),_:2},1024),e(C,{content:"\u5220\u9664",placement:"top"},{default:l(()=>[s(e(d,{link:"",type:"primary",icon:"Delete",onClick:p=>B(a.row)},null,8,["onClick"]),[[f,["tool:gen:remove"]]])]),_:2},1024),e(C,{content:"\u540C\u6B65",placement:"top"},{default:l(()=>[s(e(d,{link:"",type:"primary",icon:"Refresh",onClick:p=>M(a.row)},null,8,["onClick"]),[[f,["tool:gen:edit"]]])]),_:2},1024),e(C,{content:"\u751F\u6210\u4EE3\u7801",placement:"top"},{default:l(()=>[s(e(d,{link:"",type:"primary",icon:"Download",onClick:p=>z(a.row)},null,8,["onClick"]),[[f,["tool:gen:code"]]])]),_:2},1024)]),_:1})]),_:1},8,["data"])),[[de,n(V)]]),s(e(oe,{total:n(T),page:n(r).pageNum,"onUpdate:page":t[4]||(t[4]=a=>n(r).pageNum=a),limit:n(r).pageSize,"onUpdate:limit":t[5]||(t[5]=a=>n(r).pageSize=a),onPagination:y},null,8,["total","page","limit"]),[[F,n(T)>0]]),be(" \u9884\u89C8\u754C\u9762 "),e(ue,{title:n(m).title,modelValue:n(m).open,"onUpdate:modelValue":t[7]||(t[7]=a=>n(m).open=a),width:"80%",top:"5vh","append-to-body":"",class:"scrollbar"},{default:l(()=>[e(se,{modelValue:n(m).activeName,"onUpdate:modelValue":t[6]||(t[6]=a=>n(m).activeName=a)},{default:l(()=>[(_(!0),j(ve,null,he(n(m).data,(a,p)=>(_(),v(re,{label:p.substring(p.lastIndexOf("/")+1,p.indexOf(".vm")),name:p.substring(p.lastIndexOf("/")+1,p.indexOf(".vm")),key:a},{default:l(()=>[s((_(),v(ie,{underline:!1,icon:"DocumentCopy",style:{float:"right"}},{default:l(()=>[b("\xA0\u590D\u5236")]),_:2},1024)),[[E,a],[E,X,"callback"]]),G("pre",null,Q(a),1)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["title","modelValue"]),e(n(Se),{ref:"importRef",onOk:w},null,512)])}}}),Pe=pe($e,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/tool/gen/index.vue"]]);export{Pe as default}; +import{_ as pe,O as ce,u as me,r as c,A as fe,U as _e,L as ge,d as i,T as $,o as _,c as B,G as s,H as F,f as n,e,w as l,j as G,P as L,m as b,k as v,l as Y,x as A,g as be,I as ve,J as he,s as ye,a4 as we}from"./index.b3a66a9e.js";import{a as Ce,b as Ne,s as ke,p as xe,d as Ve}from"./gen.7890332f.js";import Se from"./importTable.a58983e9.js";const Te={class:"app-container"},De=ce({name:"Gen"}),$e=Object.assign(De,{setup(Ie){const I=me(),{proxy:u}=ye(),R=c([]),V=c(!0),N=c(!0),S=c([]),U=c(!0),q=c(!0),T=c(0),P=c([]),h=c([]),O=c(""),Q=fe({queryParams:{pageNum:1,pageSize:10,tableName:void 0,tableComment:void 0},preview:{open:!1,title:"\u4EE3\u7801\u9884\u89C8",data:{},activeName:"domain.java"}}),{queryParams:r,preview:m}=_e(Q);ge(()=>{const o=I.query.t;o!=null&&o!=O.value&&(O.value=o,r.value.pageNum=Number(I.query.pageNum),h.value=[],u.resetForm("queryForm"),y())});function y(){V.value=!0,Ce(u.addDateRange(r.value,h.value)).then(o=>{R.value=o.rows,T.value=o.total,V.value=!1})}function w(){r.value.pageNum=1,y()}function z(o){const t=o.tableName||P.value;if(t==""){u.$modal.msgError("\u8BF7\u9009\u62E9\u8981\u751F\u6210\u7684\u6570\u636E");return}o.genType==="1"?Ne(o.tableName).then(D=>{u.$modal.msgSuccess("\u6210\u529F\u751F\u6210\u5230\u81EA\u5B9A\u4E49\u8DEF\u5F84\uFF1A"+o.genPath)}):u.$download.zip("/tool/gen/batchGenCode?tables="+t,"ruoyi.zip")}function M(o){const t=o.tableName;u.$modal.confirm('\u786E\u8BA4\u8981\u5F3A\u5236\u540C\u6B65"'+t+'"\u8868\u7ED3\u6784\u5417\uFF1F').then(function(){return ke(t)}).then(()=>{u.$modal.msgSuccess("\u540C\u6B65\u6210\u529F")}).catch(()=>{})}function H(){u.$refs.importRef.show()}function J(){h.value=[],u.resetForm("queryRef"),w()}function W(o){xe(o.tableId).then(t=>{m.value.data=t.data,m.value.open=!0,m.value.activeName="domain.java"})}function X(){u.$modal.msgSuccess("\u590D\u5236\u6210\u529F")}function Z(o){S.value=o.map(t=>t.tableId),P.value=o.map(t=>t.tableName),U.value=o.length!=1,q.value=!o.length}function E(o){const t=o.tableId||S.value[0];we.push({path:"/tool/gen-edit/index/"+t,query:{pageNum:r.value.pageNum}})}function K(o){const t=o.tableId||S.value;u.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u8868\u7F16\u53F7\u4E3A"'+t+'"\u7684\u6570\u636E\u9879\uFF1F').then(function(){return Ve(t)}).then(()=>{y(),u.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}return y(),(o,t)=>{const D=i("el-input"),k=i("el-form-item"),ee=i("el-date-picker"),d=i("el-button"),te=i("el-form"),x=i("el-col"),le=i("right-toolbar"),ae=i("el-row"),g=i("el-table-column"),C=i("el-tooltip"),ne=i("el-table"),oe=i("pagination"),ie=i("el-link"),re=i("el-tab-pane"),se=i("el-tabs"),ue=i("el-dialog"),f=$("hasPermi"),de=$("loading"),j=$("copyText");return _(),B("div",Te,[s(e(te,{model:n(r),ref:"queryRef",inline:!0},{default:l(()=>[e(k,{label:"\u8868\u540D\u79F0",prop:"tableName"},{default:l(()=>[e(D,{modelValue:n(r).tableName,"onUpdate:modelValue":t[0]||(t[0]=a=>n(r).tableName=a),placeholder:"\u8BF7\u8F93\u5165\u8868\u540D\u79F0",clearable:"",style:{width:"200px"},onKeyup:G(w,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(k,{label:"\u8868\u63CF\u8FF0",prop:"tableComment"},{default:l(()=>[e(D,{modelValue:n(r).tableComment,"onUpdate:modelValue":t[1]||(t[1]=a=>n(r).tableComment=a),placeholder:"\u8BF7\u8F93\u5165\u8868\u63CF\u8FF0",clearable:"",style:{width:"200px"},onKeyup:G(w,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(k,{label:"\u521B\u5EFA\u65F6\u95F4",style:{width:"308px"}},{default:l(()=>[e(ee,{modelValue:n(h),"onUpdate:modelValue":t[2]||(t[2]=a=>L(h)?h.value=a:null),"value-format":"YYYY-MM-DD",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(k,null,{default:l(()=>[e(d,{type:"primary",icon:"Search",onClick:w},{default:l(()=>[b("\u641C\u7D22")]),_:1}),e(d,{icon:"Refresh",onClick:J},{default:l(()=>[b("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[F,n(N)]]),e(ae,{gutter:10,class:"mb8"},{default:l(()=>[e(x,{span:1.5},{default:l(()=>[s((_(),v(d,{type:"primary",plain:"",icon:"Download",onClick:z},{default:l(()=>[b("\u751F\u6210")]),_:1})),[[f,["tool:gen:code"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:l(()=>[s((_(),v(d,{type:"info",plain:"",icon:"Upload",onClick:H},{default:l(()=>[b("\u5BFC\u5165")]),_:1})),[[f,["tool:gen:import"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:l(()=>[s((_(),v(d,{type:"success",plain:"",icon:"Edit",disabled:n(U),onClick:E},{default:l(()=>[b("\u4FEE\u6539")]),_:1},8,["disabled"])),[[f,["tool:gen:edit"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:l(()=>[s((_(),v(d,{type:"danger",plain:"",icon:"Delete",disabled:n(q),onClick:K},{default:l(()=>[b("\u5220\u9664")]),_:1},8,["disabled"])),[[f,["tool:gen:remove"]]])]),_:1},8,["span"]),e(le,{showSearch:n(N),"onUpdate:showSearch":t[3]||(t[3]=a=>L(N)?N.value=a:null),onQueryTable:y},null,8,["showSearch"])]),_:1}),s((_(),v(ne,{data:n(R),onSelectionChange:Z},{default:l(()=>[e(g,{type:"selection",align:"center",width:"55"}),e(g,{label:"\u5E8F\u53F7",type:"index",width:"50",align:"center"},{default:l(a=>[Y("span",null,A((n(r).pageNum-1)*n(r).pageSize+a.$index+1),1)]),_:1}),e(g,{label:"\u8868\u540D\u79F0",align:"center",prop:"tableName","show-overflow-tooltip":!0}),e(g,{label:"\u8868\u63CF\u8FF0",align:"center",prop:"tableComment","show-overflow-tooltip":!0}),e(g,{label:"\u5B9E\u4F53",align:"center",prop:"className","show-overflow-tooltip":!0}),e(g,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"160"}),e(g,{label:"\u66F4\u65B0\u65F6\u95F4",align:"center",prop:"updateTime",width:"160"}),e(g,{label:"\u64CD\u4F5C",align:"center",width:"330","class-name":"small-padding fixed-width"},{default:l(a=>[e(C,{content:"\u9884\u89C8",placement:"top"},{default:l(()=>[s(e(d,{link:"",type:"primary",icon:"View",onClick:p=>W(a.row)},null,8,["onClick"]),[[f,["tool:gen:preview"]]])]),_:2},1024),e(C,{content:"\u7F16\u8F91",placement:"top"},{default:l(()=>[s(e(d,{link:"",type:"primary",icon:"Edit",onClick:p=>E(a.row)},null,8,["onClick"]),[[f,["tool:gen:edit"]]])]),_:2},1024),e(C,{content:"\u5220\u9664",placement:"top"},{default:l(()=>[s(e(d,{link:"",type:"primary",icon:"Delete",onClick:p=>K(a.row)},null,8,["onClick"]),[[f,["tool:gen:remove"]]])]),_:2},1024),e(C,{content:"\u540C\u6B65",placement:"top"},{default:l(()=>[s(e(d,{link:"",type:"primary",icon:"Refresh",onClick:p=>M(a.row)},null,8,["onClick"]),[[f,["tool:gen:edit"]]])]),_:2},1024),e(C,{content:"\u751F\u6210\u4EE3\u7801",placement:"top"},{default:l(()=>[s(e(d,{link:"",type:"primary",icon:"Download",onClick:p=>z(a.row)},null,8,["onClick"]),[[f,["tool:gen:code"]]])]),_:2},1024)]),_:1})]),_:1},8,["data"])),[[de,n(V)]]),s(e(oe,{total:n(T),page:n(r).pageNum,"onUpdate:page":t[4]||(t[4]=a=>n(r).pageNum=a),limit:n(r).pageSize,"onUpdate:limit":t[5]||(t[5]=a=>n(r).pageSize=a),onPagination:y},null,8,["total","page","limit"]),[[F,n(T)>0]]),be(" \u9884\u89C8\u754C\u9762 "),e(ue,{title:n(m).title,modelValue:n(m).open,"onUpdate:modelValue":t[7]||(t[7]=a=>n(m).open=a),width:"80%",top:"5vh","append-to-body":"",class:"scrollbar"},{default:l(()=>[e(se,{modelValue:n(m).activeName,"onUpdate:modelValue":t[6]||(t[6]=a=>n(m).activeName=a)},{default:l(()=>[(_(!0),B(ve,null,he(n(m).data,(a,p)=>(_(),v(re,{label:p.substring(p.lastIndexOf("/")+1,p.indexOf(".vm")),name:p.substring(p.lastIndexOf("/")+1,p.indexOf(".vm")),key:a},{default:l(()=>[s((_(),v(ie,{underline:!1,icon:"DocumentCopy",style:{float:"right"}},{default:l(()=>[b("\xA0\u590D\u5236")]),_:2},1024)),[[j,a],[j,X,"callback"]]),Y("pre",null,A(a),1)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["title","modelValue"]),e(n(Se),{ref:"importRef",onOk:w},null,512)])}}}),Pe=pe($e,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/tool/gen/index.vue"]]);export{Pe as default}; diff --git a/dist/assets/index.dceb87c3.js.gz b/dist/assets/index.dceb87c3.js.gz new file mode 100644 index 0000000..10bef37 Binary files /dev/null and b/dist/assets/index.dceb87c3.js.gz differ diff --git a/dist/assets/index.e02548c9.js.gz b/dist/assets/index.e02548c9.js.gz deleted file mode 100644 index 5e41f15..0000000 Binary files a/dist/assets/index.e02548c9.js.gz and /dev/null differ diff --git a/dist/assets/index.c0b79060.js b/dist/assets/index.e19d5ab3.js similarity index 89% rename from dist/assets/index.c0b79060.js rename to dist/assets/index.e19d5ab3.js index bb48975..9518829 100644 --- a/dist/assets/index.c0b79060.js +++ b/dist/assets/index.e19d5ab3.js @@ -1 +1 @@ -import{z as P,_ as ce,O as me,r as f,B as fe,U as _e,d,T as Q,o as i,c as x,H as h,I as A,f as t,e,w as l,j as E,J as H,K as J,k as b,P as $,m as p,l as G,x as c,g as q,s as ge}from"./index.5f349928.js";function be(k){return P({url:"/monitor/operlog/list",method:"get",params:k})}function ve(k){return P({url:"/monitor/operlog/"+k,method:"delete"})}function ye(){return P({url:"/monitor/operlog/clean",method:"delete"})}const he={class:"app-container"},we={key:0},Ve={key:1},xe={class:"dialog-footer"},ke=me({name:"Operlog"}),Ce=Object.assign(ke,{setup(k){const{proxy:_}=ge(),{sys_oper_type:T,sys_common_status:B}=_.useDict("sys_oper_type","sys_common_status"),K=f([]),w=f(!1),N=f(!0),C=f(!0),L=f([]);f(!0);const M=f(!0),D=f(0);f("");const V=f([]),U=f({prop:"operTime",order:"descending"}),W=fe({form:{},queryParams:{pageNum:1,pageSize:10,title:void 0,operName:void 0,businessType:void 0,status:void 0}}),{queryParams:n,form:r}=_e(W);function v(){N.value=!0,be(_.addDateRange(n.value,V.value)).then(s=>{K.value=s.rows,D.value=s.total,N.value=!1})}function X(s,a){return _.selectDictLabel(T.value,s.businessType)}function R(){n.value.pageNum=1,v()}function Z(){V.value=[],_.resetForm("queryRef"),n.value.pageNum=1,_.$refs.operlogRef.sort(U.value.prop,U.value.order)}function ee(s){L.value=s.map(a=>a.operId),M.value=!s.length}function le(s,a,I){n.value.orderByColumn=s.prop,n.value.isAsc=s.order,v()}function te(s){w.value=!0,r.value=s}function oe(s){const a=s.operId||L.value;_.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u65E5\u5FD7\u7F16\u53F7\u4E3A"'+a+'"\u7684\u6570\u636E\u9879?').then(function(){return ve(a)}).then(()=>{v(),_.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function ae(){_.$modal.confirm("\u662F\u5426\u786E\u8BA4\u6E05\u7A7A\u6240\u6709\u64CD\u4F5C\u65E5\u5FD7\u6570\u636E\u9879?").then(function(){return ye()}).then(()=>{v(),_.$modal.msgSuccess("\u6E05\u7A7A\u6210\u529F")}).catch(()=>{})}function ne(){_.download("monitor/operlog/export",{...n.value},`config_${new Date().getTime()}.xlsx`)}return v(),(s,a)=>{const I=d("el-input"),u=d("el-form-item"),O=d("el-option"),z=d("el-select"),re=d("el-date-picker"),y=d("el-button"),Y=d("el-form"),m=d("el-col"),se=d("right-toolbar"),j=d("el-row"),g=d("el-table-column"),F=d("dict-tag"),ue=d("el-table"),pe=d("pagination"),de=d("el-dialog"),S=Q("hasPermi"),ie=Q("loading");return i(),x("div",he,[h(e(Y,{model:t(n),ref:"queryRef",inline:!0,"label-width":"68px"},{default:l(()=>[e(u,{label:"\u7CFB\u7EDF\u6A21\u5757",prop:"title"},{default:l(()=>[e(I,{modelValue:t(n).title,"onUpdate:modelValue":a[0]||(a[0]=o=>t(n).title=o),placeholder:"\u8BF7\u8F93\u5165\u7CFB\u7EDF\u6A21\u5757",clearable:"",style:{width:"240px"},onKeyup:E(R,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(u,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"operName"},{default:l(()=>[e(I,{modelValue:t(n).operName,"onUpdate:modelValue":a[1]||(a[1]=o=>t(n).operName=o),placeholder:"\u8BF7\u8F93\u5165\u64CD\u4F5C\u4EBA\u5458",clearable:"",style:{width:"240px"},onKeyup:E(R,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(u,{label:"\u7C7B\u578B",prop:"businessType"},{default:l(()=>[e(z,{modelValue:t(n).businessType,"onUpdate:modelValue":a[2]||(a[2]=o=>t(n).businessType=o),placeholder:"\u64CD\u4F5C\u7C7B\u578B",clearable:"",style:{width:"240px"}},{default:l(()=>[(i(!0),x(H,null,J(t(T),o=>(i(),b(O,{key:o.value,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(u,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(z,{modelValue:t(n).status,"onUpdate:modelValue":a[3]||(a[3]=o=>t(n).status=o),placeholder:"\u64CD\u4F5C\u72B6\u6001",clearable:"",style:{width:"240px"}},{default:l(()=>[(i(!0),x(H,null,J(t(B),o=>(i(),b(O,{key:o.value,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(u,{label:"\u64CD\u4F5C\u65F6\u95F4",style:{width:"308px"}},{default:l(()=>[e(re,{modelValue:t(V),"onUpdate:modelValue":a[4]||(a[4]=o=>$(V)?V.value=o:null),"value-format":"YYYY-MM-DD",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(u,null,{default:l(()=>[e(y,{type:"primary",icon:"Search",onClick:R},{default:l(()=>[p("\u641C\u7D22")]),_:1}),e(y,{icon:"Refresh",onClick:Z},{default:l(()=>[p("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[A,t(C)]]),e(j,{gutter:10,class:"mb8"},{default:l(()=>[e(m,{span:1.5},{default:l(()=>[h((i(),b(y,{type:"danger",plain:"",icon:"Delete",disabled:t(M),onClick:oe},{default:l(()=>[p("\u5220\u9664")]),_:1},8,["disabled"])),[[S,["monitor:operlog:remove"]]])]),_:1},8,["span"]),e(m,{span:1.5},{default:l(()=>[h((i(),b(y,{type:"danger",plain:"",icon:"Delete",onClick:ae},{default:l(()=>[p("\u6E05\u7A7A")]),_:1})),[[S,["monitor:operlog:remove"]]])]),_:1},8,["span"]),e(m,{span:1.5},{default:l(()=>[h((i(),b(y,{type:"warning",plain:"",icon:"Download",onClick:ne},{default:l(()=>[p("\u5BFC\u51FA")]),_:1})),[[S,["monitor:operlog:export"]]])]),_:1},8,["span"]),e(se,{showSearch:t(C),"onUpdate:showSearch":a[5]||(a[5]=o=>$(C)?C.value=o:null),onQueryTable:v},null,8,["showSearch"])]),_:1}),h((i(),b(ue,{ref:"operlogRef",data:t(K),onSelectionChange:ee,"default-sort":t(U),onSortChange:le},{default:l(()=>[e(g,{type:"selection",width:"55",align:"center"}),e(g,{label:"\u65E5\u5FD7\u7F16\u53F7",align:"center",prop:"operId"}),e(g,{label:"\u7CFB\u7EDF\u6A21\u5757",align:"center",prop:"title"}),e(g,{label:"\u64CD\u4F5C\u7C7B\u578B",align:"center",prop:"businessType"},{default:l(o=>[e(F,{options:t(T),value:o.row.businessType},null,8,["options","value"])]),_:1}),e(g,{label:"\u8BF7\u6C42\u65B9\u5F0F",align:"center",prop:"requestMethod"}),e(g,{label:"\u64CD\u4F5C\u4EBA\u5458",align:"center",prop:"operName","show-overflow-tooltip":!0,sortable:"custom","sort-orders":["descending","ascending"],width:"100"}),e(g,{label:"\u4E3B\u673A",align:"center",prop:"operIp",width:"130","show-overflow-tooltip":!0}),e(g,{label:"\u64CD\u4F5C\u72B6\u6001",align:"center",prop:"status"},{default:l(o=>[e(F,{options:t(B),value:o.row.status},null,8,["options","value"])]),_:1}),e(g,{label:"\u64CD\u4F5C\u65E5\u671F",align:"center",prop:"operTime",sortable:"custom","sort-orders":["descending","ascending"],width:"180"},{default:l(o=>[G("span",null,c(s.parseTime(o.row.operTime)),1)]),_:1}),e(g,{label:"\u64CD\u4F5C",align:"center","class-name":"small-padding fixed-width"},{default:l(o=>[h((i(),b(y,{link:"",type:"primary",icon:"View",onClick:Se=>te(o.row,o.index)},{default:l(()=>[p("\u8BE6\u7EC6")]),_:2},1032,["onClick"])),[[S,["monitor:operlog:query"]]])]),_:1})]),_:1},8,["data","default-sort"])),[[ie,t(N)]]),h(e(pe,{total:t(D),page:t(n).pageNum,"onUpdate:page":a[6]||(a[6]=o=>t(n).pageNum=o),limit:t(n).pageSize,"onUpdate:limit":a[7]||(a[7]=o=>t(n).pageSize=o),onPagination:v},null,8,["total","page","limit"]),[[A,t(D)>0]]),q(" \u64CD\u4F5C\u65E5\u5FD7\u8BE6\u7EC6 "),e(de,{title:"\u64CD\u4F5C\u65E5\u5FD7\u8BE6\u7EC6",modelValue:t(w),"onUpdate:modelValue":a[9]||(a[9]=o=>$(w)?w.value=o:null),width:"700px","append-to-body":""},{footer:l(()=>[G("div",xe,[e(y,{onClick:a[8]||(a[8]=o=>w.value=!1)},{default:l(()=>[p("\u5173 \u95ED")]),_:1})])]),default:l(()=>[e(Y,{model:t(r),"label-width":"100px"},{default:l(()=>[e(j,null,{default:l(()=>[e(m,{span:12},{default:l(()=>[e(u,{label:"\u64CD\u4F5C\u6A21\u5757\uFF1A"},{default:l(()=>[p(c(t(r).title)+" / "+c(X(t(r))),1)]),_:1}),e(u,{label:"\u767B\u5F55\u4FE1\u606F\uFF1A"},{default:l(()=>[p(c(t(r).operName)+" / "+c(t(r).operIp)+" / "+c(t(r).operLocation),1)]),_:1})]),_:1}),e(m,{span:12},{default:l(()=>[e(u,{label:"\u8BF7\u6C42\u5730\u5740\uFF1A"},{default:l(()=>[p(c(t(r).operUrl),1)]),_:1}),e(u,{label:"\u8BF7\u6C42\u65B9\u5F0F\uFF1A"},{default:l(()=>[p(c(t(r).requestMethod),1)]),_:1})]),_:1}),e(m,{span:24},{default:l(()=>[e(u,{label:"\u64CD\u4F5C\u65B9\u6CD5\uFF1A"},{default:l(()=>[p(c(t(r).method),1)]),_:1})]),_:1}),e(m,{span:24},{default:l(()=>[e(u,{label:"\u8BF7\u6C42\u53C2\u6570\uFF1A"},{default:l(()=>[p(c(t(r).operParam),1)]),_:1})]),_:1}),e(m,{span:24},{default:l(()=>[e(u,{label:"\u8FD4\u56DE\u53C2\u6570\uFF1A"},{default:l(()=>[p(c(t(r).jsonResult),1)]),_:1})]),_:1}),e(m,{span:12},{default:l(()=>[e(u,{label:"\u64CD\u4F5C\u72B6\u6001\uFF1A"},{default:l(()=>[t(r).status===0?(i(),x("div",we,"\u6B63\u5E38")):t(r).status===1?(i(),x("div",Ve,"\u5931\u8D25")):q("v-if",!0)]),_:1})]),_:1}),e(m,{span:12},{default:l(()=>[e(u,{label:"\u64CD\u4F5C\u65F6\u95F4\uFF1A"},{default:l(()=>[p(c(s.parseTime(t(r).operTime)),1)]),_:1})]),_:1}),e(m,{span:24},{default:l(()=>[t(r).status===1?(i(),b(u,{key:0,label:"\u5F02\u5E38\u4FE1\u606F\uFF1A"},{default:l(()=>[p(c(t(r).errorMsg),1)]),_:1})):q("v-if",!0)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),Ne=ce(Ce,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/monitor/operlog/index.vue"]]);export{Ne as default}; +import{z as P,_ as ce,O as me,r as f,A as fe,U as _e,d,T as F,o as i,c as x,G as h,H as Q,f as t,e,w as l,j as E,I as G,J as H,k as b,P as $,m as p,l as J,x as c,g as q,s as ge}from"./index.b3a66a9e.js";function be(k){return P({url:"/monitor/operlog/list",method:"get",params:k})}function ve(k){return P({url:"/monitor/operlog/"+k,method:"delete"})}function ye(){return P({url:"/monitor/operlog/clean",method:"delete"})}const he={class:"app-container"},we={key:0},Ve={key:1},xe={class:"dialog-footer"},ke=me({name:"Operlog"}),Ce=Object.assign(ke,{setup(k){const{proxy:_}=ge(),{sys_oper_type:T,sys_common_status:B}=_.useDict("sys_oper_type","sys_common_status"),K=f([]),w=f(!1),N=f(!0),C=f(!0),L=f([]);f(!0);const M=f(!0),D=f(0);f("");const V=f([]),U=f({prop:"operTime",order:"descending"}),W=fe({form:{},queryParams:{pageNum:1,pageSize:10,title:void 0,operName:void 0,businessType:void 0,status:void 0}}),{queryParams:n,form:r}=_e(W);function v(){N.value=!0,be(_.addDateRange(n.value,V.value)).then(s=>{K.value=s.rows,D.value=s.total,N.value=!1})}function X(s,a){return _.selectDictLabel(T.value,s.businessType)}function R(){n.value.pageNum=1,v()}function Z(){V.value=[],_.resetForm("queryRef"),n.value.pageNum=1,_.$refs.operlogRef.sort(U.value.prop,U.value.order)}function ee(s){L.value=s.map(a=>a.operId),M.value=!s.length}function le(s,a,I){n.value.orderByColumn=s.prop,n.value.isAsc=s.order,v()}function te(s){w.value=!0,r.value=s}function oe(s){const a=s.operId||L.value;_.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u65E5\u5FD7\u7F16\u53F7\u4E3A"'+a+'"\u7684\u6570\u636E\u9879?').then(function(){return ve(a)}).then(()=>{v(),_.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function ae(){_.$modal.confirm("\u662F\u5426\u786E\u8BA4\u6E05\u7A7A\u6240\u6709\u64CD\u4F5C\u65E5\u5FD7\u6570\u636E\u9879?").then(function(){return ye()}).then(()=>{v(),_.$modal.msgSuccess("\u6E05\u7A7A\u6210\u529F")}).catch(()=>{})}function ne(){_.download("monitor/operlog/export",{...n.value},`config_${new Date().getTime()}.xlsx`)}return v(),(s,a)=>{const I=d("el-input"),u=d("el-form-item"),O=d("el-option"),z=d("el-select"),re=d("el-date-picker"),y=d("el-button"),Y=d("el-form"),m=d("el-col"),se=d("right-toolbar"),j=d("el-row"),g=d("el-table-column"),A=d("dict-tag"),ue=d("el-table"),pe=d("pagination"),de=d("el-dialog"),S=F("hasPermi"),ie=F("loading");return i(),x("div",he,[h(e(Y,{model:t(n),ref:"queryRef",inline:!0,"label-width":"68px"},{default:l(()=>[e(u,{label:"\u7CFB\u7EDF\u6A21\u5757",prop:"title"},{default:l(()=>[e(I,{modelValue:t(n).title,"onUpdate:modelValue":a[0]||(a[0]=o=>t(n).title=o),placeholder:"\u8BF7\u8F93\u5165\u7CFB\u7EDF\u6A21\u5757",clearable:"",style:{width:"240px"},onKeyup:E(R,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(u,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"operName"},{default:l(()=>[e(I,{modelValue:t(n).operName,"onUpdate:modelValue":a[1]||(a[1]=o=>t(n).operName=o),placeholder:"\u8BF7\u8F93\u5165\u64CD\u4F5C\u4EBA\u5458",clearable:"",style:{width:"240px"},onKeyup:E(R,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(u,{label:"\u7C7B\u578B",prop:"businessType"},{default:l(()=>[e(z,{modelValue:t(n).businessType,"onUpdate:modelValue":a[2]||(a[2]=o=>t(n).businessType=o),placeholder:"\u64CD\u4F5C\u7C7B\u578B",clearable:"",style:{width:"240px"}},{default:l(()=>[(i(!0),x(G,null,H(t(T),o=>(i(),b(O,{key:o.value,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(u,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(z,{modelValue:t(n).status,"onUpdate:modelValue":a[3]||(a[3]=o=>t(n).status=o),placeholder:"\u64CD\u4F5C\u72B6\u6001",clearable:"",style:{width:"240px"}},{default:l(()=>[(i(!0),x(G,null,H(t(B),o=>(i(),b(O,{key:o.value,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(u,{label:"\u64CD\u4F5C\u65F6\u95F4",style:{width:"308px"}},{default:l(()=>[e(re,{modelValue:t(V),"onUpdate:modelValue":a[4]||(a[4]=o=>$(V)?V.value=o:null),"value-format":"YYYY-MM-DD",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(u,null,{default:l(()=>[e(y,{type:"primary",icon:"Search",onClick:R},{default:l(()=>[p("\u641C\u7D22")]),_:1}),e(y,{icon:"Refresh",onClick:Z},{default:l(()=>[p("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[Q,t(C)]]),e(j,{gutter:10,class:"mb8"},{default:l(()=>[e(m,{span:1.5},{default:l(()=>[h((i(),b(y,{type:"danger",plain:"",icon:"Delete",disabled:t(M),onClick:oe},{default:l(()=>[p("\u5220\u9664")]),_:1},8,["disabled"])),[[S,["monitor:operlog:remove"]]])]),_:1},8,["span"]),e(m,{span:1.5},{default:l(()=>[h((i(),b(y,{type:"danger",plain:"",icon:"Delete",onClick:ae},{default:l(()=>[p("\u6E05\u7A7A")]),_:1})),[[S,["monitor:operlog:remove"]]])]),_:1},8,["span"]),e(m,{span:1.5},{default:l(()=>[h((i(),b(y,{type:"warning",plain:"",icon:"Download",onClick:ne},{default:l(()=>[p("\u5BFC\u51FA")]),_:1})),[[S,["monitor:operlog:export"]]])]),_:1},8,["span"]),e(se,{showSearch:t(C),"onUpdate:showSearch":a[5]||(a[5]=o=>$(C)?C.value=o:null),onQueryTable:v},null,8,["showSearch"])]),_:1}),h((i(),b(ue,{ref:"operlogRef",data:t(K),onSelectionChange:ee,"default-sort":t(U),onSortChange:le},{default:l(()=>[e(g,{type:"selection",width:"55",align:"center"}),e(g,{label:"\u65E5\u5FD7\u7F16\u53F7",align:"center",prop:"operId"}),e(g,{label:"\u7CFB\u7EDF\u6A21\u5757",align:"center",prop:"title"}),e(g,{label:"\u64CD\u4F5C\u7C7B\u578B",align:"center",prop:"businessType"},{default:l(o=>[e(A,{options:t(T),value:o.row.businessType},null,8,["options","value"])]),_:1}),e(g,{label:"\u8BF7\u6C42\u65B9\u5F0F",align:"center",prop:"requestMethod"}),e(g,{label:"\u64CD\u4F5C\u4EBA\u5458",align:"center",prop:"operName","show-overflow-tooltip":!0,sortable:"custom","sort-orders":["descending","ascending"],width:"100"}),e(g,{label:"\u4E3B\u673A",align:"center",prop:"operIp",width:"130","show-overflow-tooltip":!0}),e(g,{label:"\u64CD\u4F5C\u72B6\u6001",align:"center",prop:"status"},{default:l(o=>[e(A,{options:t(B),value:o.row.status},null,8,["options","value"])]),_:1}),e(g,{label:"\u64CD\u4F5C\u65E5\u671F",align:"center",prop:"operTime",sortable:"custom","sort-orders":["descending","ascending"],width:"180"},{default:l(o=>[J("span",null,c(s.parseTime(o.row.operTime)),1)]),_:1}),e(g,{label:"\u64CD\u4F5C",align:"center","class-name":"small-padding fixed-width"},{default:l(o=>[h((i(),b(y,{link:"",type:"primary",icon:"View",onClick:Se=>te(o.row,o.index)},{default:l(()=>[p("\u8BE6\u7EC6")]),_:2},1032,["onClick"])),[[S,["monitor:operlog:query"]]])]),_:1})]),_:1},8,["data","default-sort"])),[[ie,t(N)]]),h(e(pe,{total:t(D),page:t(n).pageNum,"onUpdate:page":a[6]||(a[6]=o=>t(n).pageNum=o),limit:t(n).pageSize,"onUpdate:limit":a[7]||(a[7]=o=>t(n).pageSize=o),onPagination:v},null,8,["total","page","limit"]),[[Q,t(D)>0]]),q(" \u64CD\u4F5C\u65E5\u5FD7\u8BE6\u7EC6 "),e(de,{title:"\u64CD\u4F5C\u65E5\u5FD7\u8BE6\u7EC6",modelValue:t(w),"onUpdate:modelValue":a[9]||(a[9]=o=>$(w)?w.value=o:null),width:"700px","append-to-body":""},{footer:l(()=>[J("div",xe,[e(y,{onClick:a[8]||(a[8]=o=>w.value=!1)},{default:l(()=>[p("\u5173 \u95ED")]),_:1})])]),default:l(()=>[e(Y,{model:t(r),"label-width":"100px"},{default:l(()=>[e(j,null,{default:l(()=>[e(m,{span:12},{default:l(()=>[e(u,{label:"\u64CD\u4F5C\u6A21\u5757\uFF1A"},{default:l(()=>[p(c(t(r).title)+" / "+c(X(t(r))),1)]),_:1}),e(u,{label:"\u767B\u5F55\u4FE1\u606F\uFF1A"},{default:l(()=>[p(c(t(r).operName)+" / "+c(t(r).operIp)+" / "+c(t(r).operLocation),1)]),_:1})]),_:1}),e(m,{span:12},{default:l(()=>[e(u,{label:"\u8BF7\u6C42\u5730\u5740\uFF1A"},{default:l(()=>[p(c(t(r).operUrl),1)]),_:1}),e(u,{label:"\u8BF7\u6C42\u65B9\u5F0F\uFF1A"},{default:l(()=>[p(c(t(r).requestMethod),1)]),_:1})]),_:1}),e(m,{span:24},{default:l(()=>[e(u,{label:"\u64CD\u4F5C\u65B9\u6CD5\uFF1A"},{default:l(()=>[p(c(t(r).method),1)]),_:1})]),_:1}),e(m,{span:24},{default:l(()=>[e(u,{label:"\u8BF7\u6C42\u53C2\u6570\uFF1A"},{default:l(()=>[p(c(t(r).operParam),1)]),_:1})]),_:1}),e(m,{span:24},{default:l(()=>[e(u,{label:"\u8FD4\u56DE\u53C2\u6570\uFF1A"},{default:l(()=>[p(c(t(r).jsonResult),1)]),_:1})]),_:1}),e(m,{span:12},{default:l(()=>[e(u,{label:"\u64CD\u4F5C\u72B6\u6001\uFF1A"},{default:l(()=>[t(r).status===0?(i(),x("div",we,"\u6B63\u5E38")):t(r).status===1?(i(),x("div",Ve,"\u5931\u8D25")):q("v-if",!0)]),_:1})]),_:1}),e(m,{span:12},{default:l(()=>[e(u,{label:"\u64CD\u4F5C\u65F6\u95F4\uFF1A"},{default:l(()=>[p(c(s.parseTime(t(r).operTime)),1)]),_:1})]),_:1}),e(m,{span:24},{default:l(()=>[t(r).status===1?(i(),b(u,{key:0,label:"\u5F02\u5E38\u4FE1\u606F\uFF1A"},{default:l(()=>[p(c(t(r).errorMsg),1)]),_:1})):q("v-if",!0)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),Ne=ce(Ce,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/monitor/operlog/index.vue"]]);export{Ne as default}; diff --git a/dist/assets/index.e19d5ab3.js.gz b/dist/assets/index.e19d5ab3.js.gz new file mode 100644 index 0000000..7371481 Binary files /dev/null and b/dist/assets/index.e19d5ab3.js.gz differ diff --git a/dist/assets/index.e2b08c5e.js.gz b/dist/assets/index.e2b08c5e.js.gz deleted file mode 100644 index 8b930e8..0000000 Binary files a/dist/assets/index.e2b08c5e.js.gz and /dev/null differ diff --git a/dist/assets/index.e49ca2e6.js.gz b/dist/assets/index.e49ca2e6.js.gz deleted file mode 100644 index 4de8afe..0000000 Binary files a/dist/assets/index.e49ca2e6.js.gz and /dev/null differ diff --git a/dist/assets/index.ea2fef2d.js b/dist/assets/index.ea2fef2d.js deleted file mode 100644 index 8cc702c..0000000 --- a/dist/assets/index.ea2fef2d.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as ye,O as ge,r as m,B as ve,U as be,d as n,T as L,o as u,c as I,H as f,I as Q,f as a,e,w as l,j,J as A,K as M,k as _,P as $,m as r,l as P,x as q,g as he,s as we,Y as ke}from"./index.5f349928.js";import{l as Ve,g as xe,u as Ce,a as Te,d as Ne,r as Se}from"./type.8d3770a6.js";const De={class:"app-container"},Ue={class:"dialog-footer"},Re=ge({name:"Dict"}),Ie=Object.assign(Re,{setup($e){const{proxy:p}=we(),{sys_normal_disable:T}=p.useDict("sys_normal_disable"),K=m([]),g=m(!1),N=m(!0),x=m(!0),S=m([]),B=m(!0),Y=m(!0),D=m(0),U=m(""),k=m([]),O=ve({form:{},queryParams:{pageNum:1,pageSize:10,dictName:void 0,dictType:void 0,status:void 0},rules:{dictName:[{required:!0,message:"\u5B57\u5178\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],dictType:[{required:!0,message:"\u5B57\u5178\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}}),{queryParams:d,form:s,rules:H}=be(O);function b(){N.value=!0,Ve(p.addDateRange(d.value,k.value)).then(i=>{K.value=i.rows,D.value=i.total,N.value=!1})}function J(){g.value=!1,R()}function R(){s.value={dictId:void 0,dictName:void 0,dictType:void 0,status:"0",remark:void 0},p.resetForm("dictRef")}function C(){d.value.pageNum=1,b()}function G(){k.value=[],p.resetForm("queryRef"),C()}function W(){R(),g.value=!0,U.value="\u6DFB\u52A0\u5B57\u5178\u7C7B\u578B"}function X(i){S.value=i.map(o=>o.dictId),B.value=i.length!=1,Y.value=!i.length}function E(i){R();const o=i.dictId||S.value;xe(o).then(h=>{s.value=h.data,g.value=!0,U.value="\u4FEE\u6539\u5B57\u5178\u7C7B\u578B"})}function Z(){p.$refs.dictRef.validate(i=>{i&&(s.value.dictId!=null?Ce(s.value).then(o=>{p.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),g.value=!1,b()}):Te(s.value).then(o=>{p.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),g.value=!1,b()}))})}function F(i){const o=i.dictId||S.value;p.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u5B57\u5178\u7F16\u53F7\u4E3A"'+o+'"\u7684\u6570\u636E\u9879\uFF1F').then(function(){return Ne(o)}).then(()=>{b(),p.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function ee(){p.download("system/dict/type/export",{...d.value},`dict_${new Date().getTime()}.xlsx`)}function te(){Se().then(()=>{p.$modal.msgSuccess("\u5237\u65B0\u6210\u529F"),ke().cleanDict()})}return b(),(i,o)=>{const h=n("el-input"),y=n("el-form-item"),le=n("el-option"),ae=n("el-select"),oe=n("el-date-picker"),c=n("el-button"),z=n("el-form"),V=n("el-col"),ne=n("right-toolbar"),de=n("el-row"),v=n("el-table-column"),se=n("router-link"),ie=n("dict-tag"),ue=n("el-table"),re=n("pagination"),pe=n("el-radio"),ce=n("el-radio-group"),me=n("el-dialog"),w=L("hasPermi"),fe=L("loading");return u(),I("div",De,[f(e(z,{model:a(d),ref:"queryRef",inline:!0,"label-width":"68px"},{default:l(()=>[e(y,{label:"\u5B57\u5178\u540D\u79F0",prop:"dictName"},{default:l(()=>[e(h,{modelValue:a(d).dictName,"onUpdate:modelValue":o[0]||(o[0]=t=>a(d).dictName=t),placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u540D\u79F0",clearable:"",style:{width:"240px"},onKeyup:j(C,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(y,{label:"\u5B57\u5178\u7C7B\u578B",prop:"dictType"},{default:l(()=>[e(h,{modelValue:a(d).dictType,"onUpdate:modelValue":o[1]||(o[1]=t=>a(d).dictType=t),placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u7C7B\u578B",clearable:"",style:{width:"240px"},onKeyup:j(C,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(y,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(ae,{modelValue:a(d).status,"onUpdate:modelValue":o[2]||(o[2]=t=>a(d).status=t),placeholder:"\u5B57\u5178\u72B6\u6001",clearable:"",style:{width:"240px"}},{default:l(()=>[(u(!0),I(A,null,M(a(T),t=>(u(),_(le,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(y,{label:"\u521B\u5EFA\u65F6\u95F4",style:{width:"308px"}},{default:l(()=>[e(oe,{modelValue:a(k),"onUpdate:modelValue":o[3]||(o[3]=t=>$(k)?k.value=t:null),"value-format":"YYYY-MM-DD",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(y,null,{default:l(()=>[e(c,{type:"primary",icon:"Search",onClick:C},{default:l(()=>[r("\u641C\u7D22")]),_:1}),e(c,{icon:"Refresh",onClick:G},{default:l(()=>[r("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[Q,a(x)]]),e(de,{gutter:10,class:"mb8"},{default:l(()=>[e(V,{span:1.5},{default:l(()=>[f((u(),_(c,{type:"primary",plain:"",icon:"Plus",onClick:W},{default:l(()=>[r("\u65B0\u589E")]),_:1})),[[w,["system:dict:add"]]])]),_:1},8,["span"]),e(V,{span:1.5},{default:l(()=>[f((u(),_(c,{type:"success",plain:"",icon:"Edit",disabled:a(B),onClick:E},{default:l(()=>[r("\u4FEE\u6539")]),_:1},8,["disabled"])),[[w,["system:dict:edit"]]])]),_:1},8,["span"]),e(V,{span:1.5},{default:l(()=>[f((u(),_(c,{type:"danger",plain:"",icon:"Delete",disabled:a(Y),onClick:F},{default:l(()=>[r("\u5220\u9664")]),_:1},8,["disabled"])),[[w,["system:dict:remove"]]])]),_:1},8,["span"]),e(V,{span:1.5},{default:l(()=>[f((u(),_(c,{type:"warning",plain:"",icon:"Download",onClick:ee},{default:l(()=>[r("\u5BFC\u51FA")]),_:1})),[[w,["system:dict:export"]]])]),_:1},8,["span"]),e(V,{span:1.5},{default:l(()=>[f((u(),_(c,{type:"danger",plain:"",icon:"Refresh",onClick:te},{default:l(()=>[r("\u5237\u65B0\u7F13\u5B58")]),_:1})),[[w,["system:dict:remove"]]])]),_:1},8,["span"]),e(ne,{showSearch:a(x),"onUpdate:showSearch":o[4]||(o[4]=t=>$(x)?x.value=t:null),onQueryTable:b},null,8,["showSearch"])]),_:1}),f((u(),_(ue,{data:a(K),onSelectionChange:X},{default:l(()=>[e(v,{type:"selection",width:"55",align:"center"}),e(v,{label:"\u5B57\u5178\u7F16\u53F7",align:"center",prop:"dictId"}),e(v,{label:"\u5B57\u5178\u540D\u79F0",align:"center",prop:"dictName","show-overflow-tooltip":!0}),e(v,{label:"\u5B57\u5178\u7C7B\u578B",align:"center","show-overflow-tooltip":!0},{default:l(t=>[e(se,{to:"/system/dict-data/index/"+t.row.dictId,class:"link-type"},{default:l(()=>[P("span",null,q(t.row.dictType),1)]),_:2},1032,["to"])]),_:1}),e(v,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:l(t=>[e(ie,{options:a(T),value:t.row.status},null,8,["options","value"])]),_:1}),e(v,{label:"\u5907\u6CE8",align:"center",prop:"remark","show-overflow-tooltip":!0}),e(v,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180"},{default:l(t=>[P("span",null,q(i.parseTime(t.row.createTime)),1)]),_:1}),e(v,{label:"\u64CD\u4F5C",align:"center",width:"160","class-name":"small-padding fixed-width"},{default:l(t=>[f((u(),_(c,{link:"",type:"primary",icon:"Edit",onClick:_e=>E(t.row)},{default:l(()=>[r("\u4FEE\u6539")]),_:2},1032,["onClick"])),[[w,["system:dict:edit"]]]),f((u(),_(c,{link:"",type:"primary",icon:"Delete",onClick:_e=>F(t.row)},{default:l(()=>[r("\u5220\u9664")]),_:2},1032,["onClick"])),[[w,["system:dict:remove"]]])]),_:1})]),_:1},8,["data"])),[[fe,a(N)]]),f(e(re,{total:a(D),page:a(d).pageNum,"onUpdate:page":o[5]||(o[5]=t=>a(d).pageNum=t),limit:a(d).pageSize,"onUpdate:limit":o[6]||(o[6]=t=>a(d).pageSize=t),onPagination:b},null,8,["total","page","limit"]),[[Q,a(D)>0]]),he(" \u6DFB\u52A0\u6216\u4FEE\u6539\u53C2\u6570\u914D\u7F6E\u5BF9\u8BDD\u6846 "),e(me,{title:a(U),modelValue:a(g),"onUpdate:modelValue":o[11]||(o[11]=t=>$(g)?g.value=t:null),width:"500px","append-to-body":""},{footer:l(()=>[P("div",Ue,[e(c,{type:"primary",onClick:Z},{default:l(()=>[r("\u786E \u5B9A")]),_:1}),e(c,{onClick:J},{default:l(()=>[r("\u53D6 \u6D88")]),_:1})])]),default:l(()=>[e(z,{ref:"dictRef",model:a(s),rules:a(H),"label-width":"80px"},{default:l(()=>[e(y,{label:"\u5B57\u5178\u540D\u79F0",prop:"dictName"},{default:l(()=>[e(h,{modelValue:a(s).dictName,"onUpdate:modelValue":o[7]||(o[7]=t=>a(s).dictName=t),placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(y,{label:"\u5B57\u5178\u7C7B\u578B",prop:"dictType"},{default:l(()=>[e(h,{modelValue:a(s).dictType,"onUpdate:modelValue":o[8]||(o[8]=t=>a(s).dictType=t),placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(y,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(ce,{modelValue:a(s).status,"onUpdate:modelValue":o[9]||(o[9]=t=>a(s).status=t)},{default:l(()=>[(u(!0),I(A,null,M(a(T),t=>(u(),_(pe,{key:t.value,label:t.value},{default:l(()=>[r(q(t.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(y,{label:"\u5907\u6CE8",prop:"remark"},{default:l(()=>[e(h,{modelValue:a(s).remark,"onUpdate:modelValue":o[10]||(o[10]=t=>a(s).remark=t),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}}),Ke=ye(Ie,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/system/dict/index.vue"]]);export{Ke as default}; diff --git a/dist/assets/index.ea2fef2d.js.gz b/dist/assets/index.ea2fef2d.js.gz deleted file mode 100644 index f4bba47..0000000 Binary files a/dist/assets/index.ea2fef2d.js.gz and /dev/null differ diff --git a/dist/assets/index.f043335c.css b/dist/assets/index.f043335c.css new file mode 100644 index 0000000..ee9943f --- /dev/null +++ b/dist/assets/index.f043335c.css @@ -0,0 +1 @@ +.center[data-v-21910d1f]{width:100%;height:100%}.center .imgrotate[data-v-21910d1f]{transform:rotate(180deg)}.center .title[data-v-21910d1f]{width:100%;height:45px;background:url(/assets/title.d59867f0.png);background-repeat:no-repeat;background-size:110% 100%;color:#fff;font-size:18px;font-weight:700;line-height:45px;padding-left:46px;display:flex;cursor:pointer;align-items:center;justify-content:space-between}.center .title span[data-v-21910d1f]{width:80%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;background:linear-gradient(180deg,rgb(255,255,255) 33.33%,rgb(41,255,219) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.center .title p[data-v-21910d1f]{width:79px;height:25px;border-radius:20px;font-size:14px;background:linear-gradient(180deg,rgb(16,111,111) 0%,rgb(47,214,214) 100%);border:1.5px solid rgb(23,194,180);display:flex;justify-content:center;align-items:center}.leftWra[data-v-21910d1f]{position:absolute;top:10px;left:20px;height:calc(100vh - 100px);width:23%;background:rgba(2,31,26,.85);box-shadow:inset 0 0 15px 6px #29ffff80;transition:transform 1s}.leftWra .leftFoldDiv[data-v-21910d1f]{width:30px;height:30px;position:absolute;right:-14%;top:50%;transform:translate(-50%,-50%);font-size:30px;color:#ccc}.leftWra .leftTop[data-v-21910d1f]{width:100%;display:flex;flex-direction:column}.leftWra .leftTop .areaDiv[data-v-21910d1f]{width:100%;height:327px;opacity:1;display:flex;padding:1px;justify-content:center}.leftWra .leftTop .ProgressBar[data-v-21910d1f]{width:100%;height:9px;opacity:1}.leftWra .leftbottom[data-v-21910d1f]{width:100%;height:455px;opacity:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding-top:13px}.leftWra .leftbottom .typesofDiv[data-v-21910d1f]{width:100%;height:200px;opacity:1;display:flex;padding:1px;justify-content:center}.leftWra .leftbottom .tableDiv[data-v-21910d1f]{display:flex;justify-content:center;width:85%;flex-direction:column;padding:5px 10px;color:#fff;height:40%}.leftWra .leftbottom .tableDiv[data-v-21910d1f] .el-table tr{background-color:transparent}.leftWra .leftbottom .tableDiv[data-v-21910d1f] .el-table{--el-table-border-color: none;color:#fff}.leftWra .leftbottom .tableDiv[data-v-21910d1f] .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:revert}.leftWra .leftbottom .tableDiv .Crops[data-v-21910d1f]{display:flex;width:100%;margin-bottom:10px;font-size:14px;font-weight:400;height:31px;flex-direction:row;align-items:center;justify-content:space-around;opacity:1;background:linear-gradient(90deg,rgba(21,173,148,.1) 0%,rgba(21,173,148,0) 100%)}.leftWra .leftbottom .tableDiv .Crops div[data-v-21910d1f]{display:flex;align-items:center}.leftWra .leftbottom .tableDiv .el-checkbox-group[data-v-21910d1f]{display:flex;flex-direction:column}.leftWra .leftbottom .tableDiv[data-v-21910d1f] .ones{width:100%;height:171;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;--el-table-tr-bg-color: null;--el-table-border-color: null;font-size:14px;font-weight:400;letter-spacing:0px;line-height:0px;color:#fff}.rightWra[data-v-21910d1f]{position:absolute;top:10px;right:20px;width:23%;height:calc(100vh - 100px);opacity:1;display:flex;flex-direction:column;align-items:center;background:rgba(2,31,26,.85);box-shadow:inset 0 0 15px 6px #29ffff80;transition:transform 1s}.rightWra .rightFoldDiv[data-v-21910d1f]{width:30px;height:30px;position:absolute;left:-8%;top:50%;transform:translateY(-50%);font-size:30px;color:#ccc}.rightWra .rightTop[data-v-21910d1f]{width:100%;height:40%;opacity:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.rightWra .rightTop .farmlandDiv[data-v-21910d1f]{display:flex;justify-content:center;width:95%;flex-direction:column;padding:5px 10px;color:#fff;height:95%}.rightWra .rightTop .farmlandDiv[data-v-21910d1f] .el-table--fit{height:100%}.rightWra .rightTop .farmlandDiv[data-v-21910d1f] .el-table tr{background-color:transparent}.rightWra .rightTop .farmlandDiv[data-v-21910d1f] .el-table{--el-table-border-color: none;color:#fff}.rightWra .rightTop .farmlandDiv[data-v-21910d1f] .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:revert}.rightWra .rightTop .farmlandDiv .Crops[data-v-21910d1f]{display:flex;width:100%;margin-bottom:10px;font-size:14px;font-weight:400;height:31px;flex-direction:row;align-items:center;justify-content:space-around;opacity:1;background:linear-gradient(90deg,rgba(21,173,148,.1) 0%,rgba(21,173,148,0) 100%)}.rightWra .rightTop .farmlandDiv .Crops div[data-v-21910d1f]{display:flex;align-items:center}.rightWra .rightTop .farmlandDiv .el-checkbox-group[data-v-21910d1f]{display:flex;flex-direction:column}.rightWra .rightTop .farmlandDiv[data-v-21910d1f] .ones{width:100%;height:171;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;--el-table-tr-bg-color: null;--el-table-border-color: null;font-size:14px;font-weight:400;letter-spacing:0px;line-height:0px;color:#fff}.rightWra .rightTop .ProgressBar[data-v-21910d1f]{width:100%;height:9px;opacity:1}.rightWra .rightbottom[data-v-21910d1f]{width:100%;height:490px;opacity:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.rightWra .rightbottom .el-select[data-v-21910d1f]{width:80%;font-size:14px;color:#333;background:rgb(22,94,102);border:1px solid rgb(4,153,153)!important;margin-top:20px}.rightWra .rightbottom .el-select[data-v-21910d1f] .el-input__wrapper{background-color:transparent}.rightWra .rightbottom .el-select[data-v-21910d1f] .el-input__inner{color:#ffffffb3}.rightWra .rightbottom .ASdivision[data-v-21910d1f]{display:flex;justify-content:center;width:95%;flex-direction:column;padding:5px 10px;color:#fff;height:79%}.rightWra .rightbottom .ASdivision[data-v-21910d1f] .el-table--fit{height:100%;margin-top:10px}.rightWra .rightbottom .ASdivision[data-v-21910d1f] .el-table tr{background-color:transparent}.rightWra .rightbottom .ASdivision[data-v-21910d1f] .el-table{--el-table-border-color: none;color:#fff}.rightWra .rightbottom .ASdivision[data-v-21910d1f] .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:revert}.rightWra .rightbottom .ASdivision .Crops[data-v-21910d1f]{display:flex;width:100%;margin-bottom:10px;font-size:14px;font-weight:400;height:31px;flex-direction:row;align-items:center;justify-content:space-around;opacity:1;background:linear-gradient(90deg,rgba(21,173,148,.1) 0%,rgba(21,173,148,0) 100%)}.rightWra .rightbottom .ASdivision .Crops div[data-v-21910d1f]{display:flex;align-items:center}.rightWra .rightbottom .ASdivision .el-checkbox-group[data-v-21910d1f]{display:flex;flex-direction:column}.rightWra .rightbottom .ASdivision[data-v-21910d1f] .ones{width:100%;height:171;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;--el-table-tr-bg-color: null;--el-table-border-color: null;font-size:14px;font-weight:400;letter-spacing:0px;line-height:0px;color:#fff}.legend[data-v-21910d1f]{position:absolute;right:25%;bottom:7%;width:129px;border:1px solid rgb(4,153,153);--el-collapse-border-color: none;--el-collapse-content-bg-color: none}.legend[data-v-21910d1f] .el-collapse-item__header{background:rgba(2,31,26,.6);color:#fff;text-align:center;padding:0 30px;font-size:14px}.legend --el-collapse-content-bg-color[data-v-21910d1f]{background:rgba(2,31,26,.6)}.legend[data-v-21910d1f] .el-collapse-item__content{background:rgba(2,31,26,.6);padding:0 10px 10px}.legend p[data-v-21910d1f]{margin:10px;font-size:14px;font-weight:400;letter-spacing:0px;line-height:0px;color:#fff;text-align:center}.legend .mt-4 .el-checkbox[data-v-21910d1f]{height:30px;width:100%;margin-bottom:2px;padding-left:10px;font-size:14px;font-weight:400;letter-spacing:0px;line-height:0px;color:#fff;text-align:left}.legend[data-v-21910d1f] .el-checkbox__label{color:#000}.bottom_center[data-v-21910d1f]{position:absolute;left:-2%;right:0;margin:auto;width:calc(100% - 800px - 20vw);min-width:380px;bottom:5%;height:75px;opacity:1;border-radius:5px;background:rgba(2,31,26,.6);border:1px solid rgb(4,153,153)}.tool[data-v-21910d1f]{position:absolute;right:30%;top:8%;width:30px;height:280px;opacity:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;display:none}#popup[data-v-21910d1f]{border-radius:5px;background:rgba(2,31,26,.6);display:none;padding:30px 8px 20px}#popup>div[data-v-21910d1f]:nth-child(1){font-weight:400;letter-spacing:0px;color:#fff;line-height:24px}#popup>div[data-v-21910d1f]:nth-child(2){color:#fff;width:129px;height:24px;opacity:1;border-radius:2px;background:rgba(217,231,255,.2);display:flex;justify-content:center;align-items:center;padding:2px 10px}#popup .cancel[data-v-21910d1f]{position:absolute;right:10px;top:5px;color:#fff;cursor:pointer}#pop[data-v-21910d1f]{border-radius:5px;background:rgb(2,31,26);display:none;padding:30px 8px 20px}#pop .cancel[data-v-21910d1f]{position:absolute;right:10px;top:5px;color:#fff;cursor:pointer}#pop>div[data-v-21910d1f]{display:flex;margin-bottom:10px}#pop>div>div[data-v-21910d1f]:nth-child(1){font-weight:400;letter-spacing:0px;color:#fff;line-height:24px;margin-right:10px}#pop>div>div[data-v-21910d1f]:nth-child(2){color:#fff;width:129px;height:24px;opacity:1;border-radius:2px;background:rgba(217,231,255,.2);display:flex;justify-content:center;align-items:center;padding:2px 10px}.back_button[data-v-21910d1f]{position:absolute;right:30%;top:20px}.select_city{background:rgba(2,31,26,.85);box-shadow:inset 0 0 15px 6px #29ffff80}.select_city .el-select-dropdown__item.hover{background:rgba(2,31,26,.95);box-shadow:inset 0 0 15px 6px #29ffffb3}.select_city .el-select-dropdown__item{color:#fff}.el-select__popper,.el-popper{border:none!important;background:transparent!important}.el-popper__arrow:before{background:rgba(41,255,255,.7)!important} diff --git a/dist/assets/index.f043335c.css.gz b/dist/assets/index.f043335c.css.gz new file mode 100644 index 0000000..880db40 Binary files /dev/null and b/dist/assets/index.f043335c.css.gz differ diff --git a/dist/assets/job.3b41d90e.js b/dist/assets/job.dfeefd37.js similarity index 89% rename from dist/assets/job.3b41d90e.js rename to dist/assets/job.dfeefd37.js index 61dc510..8fff11e 100644 --- a/dist/assets/job.3b41d90e.js +++ b/dist/assets/job.dfeefd37.js @@ -1 +1 @@ -import{z as o}from"./index.5f349928.js";function u(t){return o({url:"/monitor/job/list",method:"get",params:t})}function e(t){return o({url:"/monitor/job/"+t,method:"get"})}function d(t){return o({url:"/monitor/job",method:"post",data:t})}function i(t){return o({url:"/monitor/job",method:"put",data:t})}function m(t){return o({url:"/monitor/job/"+t,method:"delete"})}function s(t,r){return o({url:"/monitor/job/changeStatus",method:"put",data:{jobId:t,status:r}})}function b(t,r){return o({url:"/monitor/job/run",method:"put",data:{jobId:t,jobGroup:r}})}export{d as a,s as c,m as d,e as g,u as l,b as r,i as u}; +import{z as o}from"./index.b3a66a9e.js";function u(t){return o({url:"/monitor/job/list",method:"get",params:t})}function e(t){return o({url:"/monitor/job/"+t,method:"get"})}function d(t){return o({url:"/monitor/job",method:"post",data:t})}function i(t){return o({url:"/monitor/job",method:"put",data:t})}function m(t){return o({url:"/monitor/job/"+t,method:"delete"})}function s(t,r){return o({url:"/monitor/job/changeStatus",method:"put",data:{jobId:t,status:r}})}function b(t,r){return o({url:"/monitor/job/run",method:"put",data:{jobId:t,jobGroup:r}})}export{d as a,s as c,m as d,e as g,u as l,b as r,i as u}; diff --git a/dist/assets/linesGL.badda9a7.js b/dist/assets/linesGL.90f708a5.js similarity index 83% rename from dist/assets/linesGL.badda9a7.js rename to dist/assets/linesGL.90f708a5.js index dbb72be..ef3ac22 100644 --- a/dist/assets/linesGL.badda9a7.js +++ b/dist/assets/linesGL.90f708a5.js @@ -1,29 +1,29 @@ -import{z as mr}from"./index.5f349928.js";import{c as Pl,a as Rl,e as Nl,g as Il,m as Ol,A as Bl,M as Nr,b as Fl,n as Ul,u as Ye,d as Gl,f as zl,h as Hl,j as Mt,k as Va,l as Vl,o as kl,p as ss,R as ls,q as Wl,r as ta,s as Dt,t as Xl,v as Zl,w as jl,x as ql,Z as Yl,C as Vr,y as fe,z as Kt,B as Kl,D as hs,E as Ji,F as en,G as Ai,H as us,I as fs,J as cs,K as vn,N as pn,O as Ql,P as $l,Q as Jl,S as ra,T as Ei,U as Pt,V as _a,W as eh,X as th,Y as ka,_ as rh,$ as ih,a0 as nh,a1 as Mr,a2 as Wa,a3 as ah,a4 as oh,a5 as sh,a6 as ds,a7 as St,a8 as At,a9 as lh,aa as hh,ab as Di,ac as uh,ad as fh,ae as vs,af as ch,ag as dh,ah as Xa,ai as Za,aj as ja}from"./index.c9f5bd8b.js";const pp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARzQ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9hd6Of6M+AAAAAElFTkSuQmCC";function vh(e){return Pl(null,e)}var ya={isDimensionStacked:Rl,enableDataStack:Nl,getStackedDimension:Il};function xa(e,t){var r=t;t instanceof Nr||(r=new Nr(t));var i=Fl(r);return i.setExtent(e[0],e[1]),Ul(i,r),i}function ph(e){Ol(e,Bl)}function Tp(e){return mr({url:"/crops/area",method:"get",params:e})}function wp(){return mr({url:"http://121.36.229.60:9080/geoserver/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson",method:"get"})}function Sp(e){return mr({url:"crops/cropTypeStatistics",method:"get",params:e})}function Ap(){return mr({url:"http://121.36.229.60:9080/geoserver/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_village&maxFeatures=1180&outputFormat=application%2Fjson",method:"get"})}function Ep(){return mr({url:"http://121.36.229.60:9080/geoserver/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=1180&outputFormat=application%2Fjson",method:"get"})}function bp(e){return mr({url:"crops/cropper",method:"get",params:e})}function Cp(e){return mr({url:"crops/highStandard",method:"get",params:e})}Ye([Gl,zl]);Ye(Hl);function qa(e,t,r){typeof t=="object"&&(r=t,t=null);var i=this,n;if(!(e instanceof Function)){n=[];for(var a in e)e.hasOwnProperty(a)&&n.push(a)}var o=function(l){if(i.apply(this,arguments),e instanceof Function?Ya(this,e.call(this,l)):mh(this,e,n),this.constructor===o)for(var h=o.__initializers__,u=0;u=400?e.onerror&&e.onerror():e.onload&&e.onload(t.response)},e.onerror&&(t.onerror=e.onerror),t.send(null)}const Eh={get:Ah};var Cn,at={};at.supportWebGL=function(){if(Cn==null)try{var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)throw new Error}catch{Cn=!1}return Cn};at.Int8Array=typeof Int8Array>"u"?Array:Int8Array;at.Uint8Array=typeof Uint8Array>"u"?Array:Uint8Array;at.Uint16Array=typeof Uint16Array>"u"?Array:Uint16Array;at.Uint32Array=typeof Uint32Array>"u"?Array:Uint32Array;at.Int16Array=typeof Int16Array>"u"?Array:Int16Array;at.Float32Array=typeof Float32Array>"u"?Array:Float32Array;at.Float64Array=typeof Float64Array>"u"?Array:Float64Array;var sr={};typeof window<"u"?sr=window:typeof global<"u"&&(sr=global);at.requestAnimationFrame=sr.requestAnimationFrame||sr.msRequestAnimationFrame||sr.mozRequestAnimationFrame||sr.webkitRequestAnimationFrame||function(e){setTimeout(e,16)};at.createCanvas=function(){return document.createElement("canvas")};at.createImage=function(){return new sr.Image};at.request={get:Eh.get};at.addEventListener=function(e,t,r,i){e.addEventListener(t,r,i)};at.removeEventListener=function(e,t,r){e.removeEventListener(t,r)};const Pe=at;var We=function(){this.head=null,this.tail=null,this._length=0};We.prototype.insert=function(e){var t=new We.Entry(e);return this.insertEntry(t),t};We.prototype.insertAt=function(e,t){if(!(e<0)){for(var r=this.head,i=0;r&&i!=e;)r=r.next,i++;if(r){var n=new We.Entry(t),a=r.prev;a?(a.next=n,n.prev=a):this.head=n,n.next=r,r.prev=n}else this.insert(t)}};We.prototype.insertBeforeEntry=function(e,t){var r=new We.Entry(e),i=t.prev;i?(i.next=r,r.prev=i):this.head=r,r.next=t,t.prev=r,this._length++};We.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._length++};We.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._length--};We.prototype.removeAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;if(t)return this.remove(t),t.value}};We.prototype.getHead=function(){if(this.head)return this.head.value};We.prototype.getTail=function(){if(this.tail)return this.tail.value};We.prototype.getAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;return t.value}};We.prototype.indexOf=function(e){for(var t=this.head,r=0;t;){if(t.value===e)return r;t=t.next,r++}};We.prototype.length=function(){return this._length};We.prototype.isEmpty=function(){return this._length===0};We.prototype.forEach=function(e,t){for(var r=this.head,i=0,n=typeof t<"u";r;)n?e.call(t,r.value,i):e(r.value,i),r=r.next,i++};We.prototype.clear=function(){this.tail=this.head=null,this._length=0};We.Entry=function(e){this.value=e,this.next=null,this.prev=null};const bh=We;var kr=function(e){this._list=new bh,this._map={},this._maxSize=e||10};kr.prototype.setMaxSize=function(e){this._maxSize=e};kr.prototype.put=function(e,t){if(!this._map.hasOwnProperty(e)){var r=this._list.length();if(r>=this._maxSize&&r>0){var i=this._list.head;this._list.remove(i),delete this._map[i.key]}var n=this._list.insert(t);n.key=e,this._map[e]=n}};kr.prototype.get=function(e){var t=this._map[e];if(this._map.hasOwnProperty(e))return t!==this._list.tail&&(this._list.remove(t),this._list.insertEntry(t)),t.value};kr.prototype.remove=function(e){var t=this._map[e];typeof t<"u"&&(delete this._map[e],this._list.remove(t))};kr.prototype.clear=function(){this._list.clear(),this._map={}};const ps=kr;var we={},$a={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Tt(e){return e=Math.round(e),e<0?0:e>255?255:e}function Ch(e){return e=Math.round(e),e<0?0:e>360?360:e}function di(e){return e<0?0:e>1?1:e}function Ln(e){return e.length&&e.charAt(e.length-1)==="%"?Tt(parseFloat(e)/100*255):Tt(parseInt(e,10))}function Ir(e){return e.length&&e.charAt(e.length-1)==="%"?di(parseFloat(e)/100):di(parseFloat(e))}function Mn(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Zt(e,t,r){return e+(t-e)*r}function xt(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function ia(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var ms=new ps(20),Pi=null;function xr(e,t){Pi&&ia(Pi,t),Pi=ms.put(e,Pi||t.slice())}we.parse=function(e,t){if(!!e){t=t||[];var r=ms.get(e);if(r)return ia(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in $a)return ia(t,$a[i]),xr(e,t),t;if(i.charAt(0)==="#"){if(i.length===4){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=4095)){xt(t,0,0,0,1);return}return xt(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,1),xr(e,t),t}else if(i.length===7){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=16777215)){xt(t,0,0,0,1);return}return xt(t,(n&16711680)>>16,(n&65280)>>8,n&255,1),xr(e,t),t}return}var a=i.indexOf("("),o=i.indexOf(")");if(a!==-1&&o+1===i.length){var s=i.substr(0,a),l=i.substr(a+1,o-(a+1)).split(","),h=1;switch(s){case"rgba":if(l.length!==4){xt(t,0,0,0,1);return}h=Ir(l.pop());case"rgb":if(l.length!==3){xt(t,0,0,0,1);return}return xt(t,Ln(l[0]),Ln(l[1]),Ln(l[2]),h),xr(e,t),t;case"hsla":if(l.length!==4){xt(t,0,0,0,1);return}return l[3]=Ir(l[3]),na(l,t),xr(e,t),t;case"hsl":if(l.length!==3){xt(t,0,0,0,1);return}return na(l,t),xr(e,t),t;default:return}}xt(t,0,0,0,1)}};we.parseToFloat=function(e,t){if(t=we.parse(e,t),!!t)return t[0]/=255,t[1]/=255,t[2]/=255,t};function na(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=Ir(e[1]),n=Ir(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],xt(t,Tt(Mn(o,a,r+1/3)*255),Tt(Mn(o,a,r)*255),Tt(Mn(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Lh(e){if(!!e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,l,h;if(o===0)l=0,h=0;else{s<.5?h=o/(a+n):h=o/(2-a-n);var u=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-i)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+u-d:i===a&&(l=2/3+f-u),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,h,s];return e[3]!=null&&c.push(e[3]),c}}we.lift=function(e,t){var r=we.parse(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0;return we.stringify(r,r.length===4?"rgba":"rgb")}};we.toHex=function(e){var t=we.parse(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)};we.fastLerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],l=i-n;return r[0]=Tt(Zt(o[0],s[0],l)),r[1]=Tt(Zt(o[1],s[1],l)),r[2]=Tt(Zt(o[2],s[2],l)),r[3]=di(Zt(o[3],s[3],l)),r}};we.fastMapToColor=we.fastLerp;we.lerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=we.parse(t[n]),s=we.parse(t[a]),l=i-n,h=we.stringify([Tt(Zt(o[0],s[0],l)),Tt(Zt(o[1],s[1],l)),Tt(Zt(o[2],s[2],l)),di(Zt(o[3],s[3],l))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}};we.mapToColor=we.lerp;we.modifyHSL=function(e,t,r,i){if(e=we.parse(e),e)return e=Lh(e),t!=null&&(e[0]=Ch(t)),r!=null&&(e[1]=Ir(r)),i!=null&&(e[2]=Ir(i)),we.stringify(na(e),"rgba")};we.modifyAlpha=function(e,t){if(e=we.parse(e),e&&t!=null)return e[3]=di(t),we.stringify(e,"rgba")};we.stringify=function(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}};const Mh=we;var Dh=Mh.parseToFloat,Dn={};function Ja(e){var t=Object.keys(e);t.sort();for(var r=[],i=0;i =400?e.onerror&&e.onerror():e.onload&&e.onload(t.response)},e.onerror&&(t.onerror=e.onerror),t.send(null)}const Ah={get:Sh};var bn,at={};at.supportWebGL=function(){if(bn==null)try{var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)throw new Error}catch{bn=!1}return bn};at.Int8Array=typeof Int8Array>"u"?Array:Int8Array;at.Uint8Array=typeof Uint8Array>"u"?Array:Uint8Array;at.Uint16Array=typeof Uint16Array>"u"?Array:Uint16Array;at.Uint32Array=typeof Uint32Array>"u"?Array:Uint32Array;at.Int16Array=typeof Int16Array>"u"?Array:Int16Array;at.Float32Array=typeof Float32Array>"u"?Array:Float32Array;at.Float64Array=typeof Float64Array>"u"?Array:Float64Array;var sr={};typeof window<"u"?sr=window:typeof global<"u"&&(sr=global);at.requestAnimationFrame=sr.requestAnimationFrame||sr.msRequestAnimationFrame||sr.mozRequestAnimationFrame||sr.webkitRequestAnimationFrame||function(e){setTimeout(e,16)};at.createCanvas=function(){return document.createElement("canvas")};at.createImage=function(){return new sr.Image};at.request={get:Ah.get};at.addEventListener=function(e,t,r,i){e.addEventListener(t,r,i)};at.removeEventListener=function(e,t,r){e.removeEventListener(t,r)};const Pe=at;var We=function(){this.head=null,this.tail=null,this._length=0};We.prototype.insert=function(e){var t=new We.Entry(e);return this.insertEntry(t),t};We.prototype.insertAt=function(e,t){if(!(e<0)){for(var r=this.head,i=0;r&&i!=e;)r=r.next,i++;if(r){var n=new We.Entry(t),a=r.prev;a?(a.next=n,n.prev=a):this.head=n,n.next=r,r.prev=n}else this.insert(t)}};We.prototype.insertBeforeEntry=function(e,t){var r=new We.Entry(e),i=t.prev;i?(i.next=r,r.prev=i):this.head=r,r.next=t,t.prev=r,this._length++};We.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._length++};We.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._length--};We.prototype.removeAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;if(t)return this.remove(t),t.value}};We.prototype.getHead=function(){if(this.head)return this.head.value};We.prototype.getTail=function(){if(this.tail)return this.tail.value};We.prototype.getAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;return t.value}};We.prototype.indexOf=function(e){for(var t=this.head,r=0;t;){if(t.value===e)return r;t=t.next,r++}};We.prototype.length=function(){return this._length};We.prototype.isEmpty=function(){return this._length===0};We.prototype.forEach=function(e,t){for(var r=this.head,i=0,n=typeof t<"u";r;)n?e.call(t,r.value,i):e(r.value,i),r=r.next,i++};We.prototype.clear=function(){this.tail=this.head=null,this._length=0};We.Entry=function(e){this.value=e,this.next=null,this.prev=null};const Eh=We;var Vr=function(e){this._list=new Eh,this._map={},this._maxSize=e||10};Vr.prototype.setMaxSize=function(e){this._maxSize=e};Vr.prototype.put=function(e,t){if(!this._map.hasOwnProperty(e)){var r=this._list.length();if(r>=this._maxSize&&r>0){var i=this._list.head;this._list.remove(i),delete this._map[i.key]}var n=this._list.insert(t);n.key=e,this._map[e]=n}};Vr.prototype.get=function(e){var t=this._map[e];if(this._map.hasOwnProperty(e))return t!==this._list.tail&&(this._list.remove(t),this._list.insertEntry(t)),t.value};Vr.prototype.remove=function(e){var t=this._map[e];typeof t<"u"&&(delete this._map[e],this._list.remove(t))};Vr.prototype.clear=function(){this._list.clear(),this._map={}};const vs=Vr;var we={},Qa={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Tt(e){return e=Math.round(e),e<0?0:e>255?255:e}function bh(e){return e=Math.round(e),e<0?0:e>360?360:e}function ci(e){return e<0?0:e>1?1:e}function Cn(e){return e.length&&e.charAt(e.length-1)==="%"?Tt(parseFloat(e)/100*255):Tt(parseInt(e,10))}function Nr(e){return e.length&&e.charAt(e.length-1)==="%"?ci(parseFloat(e)/100):ci(parseFloat(e))}function Ln(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Zt(e,t,r){return e+(t-e)*r}function xt(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function ra(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var ps=new vs(20),Di=null;function yr(e,t){Di&&ra(Di,t),Di=ps.put(e,Di||t.slice())}we.parse=function(e,t){if(!!e){t=t||[];var r=ps.get(e);if(r)return ra(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in Qa)return ra(t,Qa[i]),yr(e,t),t;if(i.charAt(0)==="#"){if(i.length===4){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=4095)){xt(t,0,0,0,1);return}return xt(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,1),yr(e,t),t}else if(i.length===7){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=16777215)){xt(t,0,0,0,1);return}return xt(t,(n&16711680)>>16,(n&65280)>>8,n&255,1),yr(e,t),t}return}var a=i.indexOf("("),o=i.indexOf(")");if(a!==-1&&o+1===i.length){var s=i.substr(0,a),l=i.substr(a+1,o-(a+1)).split(","),h=1;switch(s){case"rgba":if(l.length!==4){xt(t,0,0,0,1);return}h=Nr(l.pop());case"rgb":if(l.length!==3){xt(t,0,0,0,1);return}return xt(t,Cn(l[0]),Cn(l[1]),Cn(l[2]),h),yr(e,t),t;case"hsla":if(l.length!==4){xt(t,0,0,0,1);return}return l[3]=Nr(l[3]),ia(l,t),yr(e,t),t;case"hsl":if(l.length!==3){xt(t,0,0,0,1);return}return ia(l,t),yr(e,t),t;default:return}}xt(t,0,0,0,1)}};we.parseToFloat=function(e,t){if(t=we.parse(e,t),!!t)return t[0]/=255,t[1]/=255,t[2]/=255,t};function ia(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=Nr(e[1]),n=Nr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],xt(t,Tt(Ln(o,a,r+1/3)*255),Tt(Ln(o,a,r)*255),Tt(Ln(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Ch(e){if(!!e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,l,h;if(o===0)l=0,h=0;else{s<.5?h=o/(a+n):h=o/(2-a-n);var u=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-i)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+u-d:i===a&&(l=2/3+f-u),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,h,s];return e[3]!=null&&c.push(e[3]),c}}we.lift=function(e,t){var r=we.parse(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0;return we.stringify(r,r.length===4?"rgba":"rgb")}};we.toHex=function(e){var t=we.parse(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)};we.fastLerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],l=i-n;return r[0]=Tt(Zt(o[0],s[0],l)),r[1]=Tt(Zt(o[1],s[1],l)),r[2]=Tt(Zt(o[2],s[2],l)),r[3]=ci(Zt(o[3],s[3],l)),r}};we.fastMapToColor=we.fastLerp;we.lerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=we.parse(t[n]),s=we.parse(t[a]),l=i-n,h=we.stringify([Tt(Zt(o[0],s[0],l)),Tt(Zt(o[1],s[1],l)),Tt(Zt(o[2],s[2],l)),ci(Zt(o[3],s[3],l))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}};we.mapToColor=we.lerp;we.modifyHSL=function(e,t,r,i){if(e=we.parse(e),e)return e=Ch(e),t!=null&&(e[0]=bh(t)),r!=null&&(e[1]=Nr(r)),i!=null&&(e[2]=Nr(i)),we.stringify(ia(e),"rgba")};we.modifyAlpha=function(e,t){if(e=we.parse(e),e&&t!=null)return e[3]=ci(t),we.stringify(e,"rgba")};we.stringify=function(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}};const Lh=we;var Mh=Lh.parseToFloat,Mn={};function $a(e){var t=Object.keys(e);t.sort();for(var r=[],i=0;i =0},getEnabledUniforms:function(){return this._enabledUniforms},getTextureUniforms:function(){return this._textureUniforms},set:function(e,t){if(typeof e=="object")for(var r in e){var i=e[r];this.setUniform(r,i)}else this.setUniform(e,t)},get:function(e){var t=this.uniforms[e];if(t)return t.value},attachShader:function(e,t){var r=this.uniforms;this.uniforms=e.createUniforms(),this.shader=e;var i=this.uniforms;this._enabledUniforms=Object.keys(i),this._enabledUniforms.sort(),this._textureUniforms=this._enabledUniforms.filter(function(h){var u=this.uniforms[h].type;return u==="t"||u==="tv"},this);var n=this.vertexDefines,a=this.fragmentDefines;if(this.vertexDefines=je.clone(e.vertexDefines),this.fragmentDefines=je.clone(e.fragmentDefines),t){for(var o in r)i[o]&&(i[o].value=r[o].value);je.defaults(this.vertexDefines,n),je.defaults(this.fragmentDefines,a)}var s={};for(var l in e.textures)s[l]={shaderType:e.textures[l].shaderType,type:e.textures[l].type,enabled:t&&this._textureStatus[l]?this._textureStatus[l].enabled:!1};this._textureStatus=s,this._programKey=""},clone:function(){var e=new this.constructor({name:this.name,shader:this.shader});for(var t in this.uniforms)e.uniforms[t].value=this.uniforms[t].value;return e.depthTest=this.depthTest,e.depthMask=this.depthMask,e.transparent=this.transparent,e.blend=this.blend,e.vertexDefines=je.clone(this.vertexDefines),e.fragmentDefines=je.clone(this.fragmentDefines),e.enableTexture(this.getEnabledTextures()),e.precision=this.precision,e},define:function(e,t,r){var i=this.vertexDefines,n=this.fragmentDefines;e!=="vertex"&&e!=="fragment"&&e!=="both"&&arguments.length<3&&(r=t,t=e,e="both"),r=r!=null?r:null,(e==="vertex"||e==="both")&&i[t]!==r&&(i[t]=r,this._programKey=""),(e==="fragment"||e==="both")&&n[t]!==r&&(n[t]=r,e!=="both"&&(this._programKey=""))},undefine:function(e,t){e!=="vertex"&&e!=="fragment"&&e!=="both"&&arguments.length<2&&(t=e,e="both"),(e==="vertex"||e==="both")&&this.isDefined("vertex",t)&&(delete this.vertexDefines[t],this._programKey=""),(e==="fragment"||e==="both")&&this.isDefined("fragment",t)&&(delete this.fragmentDefines[t],e!=="both"&&(this._programKey=""))},isDefined:function(e,t){switch(e){case"vertex":return this.vertexDefines[t]!==void 0;case"fragment":return this.fragmentDefines[t]!==void 0}},getDefine:function(e,t){switch(e){case"vertex":return this.vertexDefines[t];case"fragment":return this.fragmentDefines[t]}},enableTexture:function(e){if(Array.isArray(e)){for(var t=0;t 0&&(n=1/Math.sqrt(n),e[0]=t[0]*n,e[1]=t[1]*n),e};Q.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]};Q.cross=function(e,t,r){var i=t[0]*r[1]-t[1]*r[0];return e[0]=e[1]=0,e[2]=i,e};Q.lerp=function(e,t,r,i){var n=t[0],a=t[1];return e[0]=n+i*(r[0]-n),e[1]=a+i*(r[1]-a),e};Q.random=function(e,t){t=t||1;var r=GLMAT_RANDOM()*2*Math.PI;return e[0]=Math.cos(r)*t,e[1]=Math.sin(r)*t,e};Q.transformMat2=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n,e[1]=r[1]*i+r[3]*n,e};Q.transformMat2d=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e};Q.transformMat3=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[3]*n+r[6],e[1]=r[1]*i+r[4]*n+r[7],e};Q.transformMat4=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[4]*n+r[12],e[1]=r[1]*i+r[5]*n+r[13],e};Q.forEach=function(){var e=Q.create();return function(t,r,i,n,a,o){var s,l;for(r||(r=2),i||(i=0),n?l=Math.min(n*r+i,t.length):l=t.length,s=i;s =0},getEnabledUniforms:function(){return this._enabledUniforms},getTextureUniforms:function(){return this._textureUniforms},set:function(e,t){if(typeof e=="object")for(var r in e){var i=e[r];this.setUniform(r,i)}else this.setUniform(e,t)},get:function(e){var t=this.uniforms[e];if(t)return t.value},attachShader:function(e,t){var r=this.uniforms;this.uniforms=e.createUniforms(),this.shader=e;var i=this.uniforms;this._enabledUniforms=Object.keys(i),this._enabledUniforms.sort(),this._textureUniforms=this._enabledUniforms.filter(function(h){var u=this.uniforms[h].type;return u==="t"||u==="tv"},this);var n=this.vertexDefines,a=this.fragmentDefines;if(this.vertexDefines=je.clone(e.vertexDefines),this.fragmentDefines=je.clone(e.fragmentDefines),t){for(var o in r)i[o]&&(i[o].value=r[o].value);je.defaults(this.vertexDefines,n),je.defaults(this.fragmentDefines,a)}var s={};for(var l in e.textures)s[l]={shaderType:e.textures[l].shaderType,type:e.textures[l].type,enabled:t&&this._textureStatus[l]?this._textureStatus[l].enabled:!1};this._textureStatus=s,this._programKey=""},clone:function(){var e=new this.constructor({name:this.name,shader:this.shader});for(var t in this.uniforms)e.uniforms[t].value=this.uniforms[t].value;return e.depthTest=this.depthTest,e.depthMask=this.depthMask,e.transparent=this.transparent,e.blend=this.blend,e.vertexDefines=je.clone(this.vertexDefines),e.fragmentDefines=je.clone(this.fragmentDefines),e.enableTexture(this.getEnabledTextures()),e.precision=this.precision,e},define:function(e,t,r){var i=this.vertexDefines,n=this.fragmentDefines;e!=="vertex"&&e!=="fragment"&&e!=="both"&&arguments.length<3&&(r=t,t=e,e="both"),r=r!=null?r:null,(e==="vertex"||e==="both")&&i[t]!==r&&(i[t]=r,this._programKey=""),(e==="fragment"||e==="both")&&n[t]!==r&&(n[t]=r,e!=="both"&&(this._programKey=""))},undefine:function(e,t){e!=="vertex"&&e!=="fragment"&&e!=="both"&&arguments.length<2&&(t=e,e="both"),(e==="vertex"||e==="both")&&this.isDefined("vertex",t)&&(delete this.vertexDefines[t],this._programKey=""),(e==="fragment"||e==="both")&&this.isDefined("fragment",t)&&(delete this.fragmentDefines[t],e!=="both"&&(this._programKey=""))},isDefined:function(e,t){switch(e){case"vertex":return this.vertexDefines[t]!==void 0;case"fragment":return this.fragmentDefines[t]!==void 0}},getDefine:function(e,t){switch(e){case"vertex":return this.vertexDefines[t];case"fragment":return this.fragmentDefines[t]}},enableTexture:function(e){if(Array.isArray(e)){for(var t=0;t 0&&(n=1/Math.sqrt(n),e[0]=t[0]*n,e[1]=t[1]*n),e};Q.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]};Q.cross=function(e,t,r){var i=t[0]*r[1]-t[1]*r[0];return e[0]=e[1]=0,e[2]=i,e};Q.lerp=function(e,t,r,i){var n=t[0],a=t[1];return e[0]=n+i*(r[0]-n),e[1]=a+i*(r[1]-a),e};Q.random=function(e,t){t=t||1;var r=GLMAT_RANDOM()*2*Math.PI;return e[0]=Math.cos(r)*t,e[1]=Math.sin(r)*t,e};Q.transformMat2=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n,e[1]=r[1]*i+r[3]*n,e};Q.transformMat2d=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e};Q.transformMat3=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[3]*n+r[6],e[1]=r[1]*i+r[4]*n+r[7],e};Q.transformMat4=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[4]*n+r[12],e[1]=r[1]*i+r[5]*n+r[13],e};Q.forEach=function(){var e=Q.create();return function(t,r,i,n,a,o){var s,l;for(r||(r=2),i||(i=0),n?l=Math.min(n*r+i,t.length):l=t.length,s=i;s 0&&i.push("#define "+n.toUpperCase()+"_COUNT "+a)}if(r)for(var o=0;o 0&&i.push("#define "+n.toUpperCase()+"_COUNT "+a)}if(r)for(var o=0;o l.getMaxJointNumber()&&(d.USE_SKIN_MATRICES_TEXTURE=null),f+=` -`+Rn(d)+` +`}function ms(e){this._renderer=e,this._cache={}}ms.prototype.getProgram=function(e,t,r){var i=this._cache,n=e.isSkinnedMesh&&e.isSkinnedMesh(),a=e.isInstancedMesh&&e.isInstancedMesh(),o="s"+t.shader.shaderID+"m"+t.getProgramKey();r&&(o+="se"+r.getProgramKey(e.lightGroup)),n&&(o+=",sk"+e.joints.length),a&&(o+=",is");var _=i[o];if(_)return _;var s=r?r.getLightsNumbers(e.lightGroup):{},l=this._renderer,h=l.gl,u=t.getEnabledTextures(),f="";if(n){var d={SKINNING:null,JOINT_COUNT:e.joints.length};e.joints.length>l.getMaxJointNumber()&&(d.USE_SKIN_MATRICES_TEXTURE=null),f+=` +`+Pn(d)+` `}a&&(f+=` #define INSTANCING -`);var c=f+Rn(t.vertexDefines,s,u),v=f+Rn(t.fragmentDefines,s,u),p=c+` +`);var c=f+Pn(t.vertexDefines,s,u),v=f+Pn(t.fragmentDefines,s,u),p=c+` `+t.shader.vertex,m=["OES_standard_derivatives","EXT_shader_texture_lod"].filter(function(S){return l.getGLExtension(S)!=null});m.indexOf("EXT_shader_texture_lod")>=0&&(v+=` #define SUPPORT_TEXTURE_LOD`),m.indexOf("OES_standard_derivatives")>=0&&(v+=` -#define SUPPORT_STANDARD_DERIVATIVES`);var g=Fh(m)+` -`+Uh(t.precision)+` +#define SUPPORT_STANDARD_DERIVATIVES`);var g=Bh(m)+` +`+Fh(t.precision)+` `+v+` -`+t.shader.fragment,x=oo(p,t.vertexDefines,s),y=oo(g,t.fragmentDefines,s),_=new Oh;_.uniformSemantics=t.shader.uniformSemantics,_.attributes=t.shader.attributes;var w=_.buildProgram(h,t.shader,x,y);return _.__error=w,i[o]=_,_};var so=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\s\S]*?);/g,Gh=/attribute\s+(float|int|vec2|vec3|vec4)\s+([\s\S]*?);/g,lo=/#define\s+(\w+)?(\s+[\d-.]+)?\s*;?\s*\n/g,zh={bool:"1i",int:"1i",sampler2D:"t",samplerCube:"t",float:"1f",vec2:"2f",vec3:"3f",vec4:"4f",ivec2:"2i",ivec3:"3i",ivec4:"4i",mat2:"m2",mat3:"m3",mat4:"m4"};function Rt(e){for(var t=[],r=0;r =0){if(d!==s&&d!==u){Tr();break}d=l,v=[];continue}else if(d===s){e==="bool"?c[p].value=g==="true":c[p].value=parseFloat(g),v=null;continue}else if(d===u){var x=g;aa.indexOf(x)>=0||_s.indexOf(x)>=0||ys.indexOf(x)>=0?c[p].semantic=x:x==="ignore"||x==="unconfigurable"?c[p].ignore=!0:e==="bool"?c[p].value=x==="true":c[p].value=parseFloat(x);continue}m(g),d=o}}return c}function N(e,t){typeof e=="object"&&(t=e.fragment,e=e.vertex),e=uo(e),t=uo(t),this._shaderID=Vh(e,t),this._vertexCode=N.parseImport(e),this._fragmentCode=N.parseImport(t),this.attributeSemantics={},this.matrixSemantics={},this.uniformSemantics={},this.matrixSemanticKeys=[],this.uniformTemplates={},this.attributes={},this.textures={},this.vertexDefines={},this.fragmentDefines={},this._parseAttributes(),this._parseUniforms(),this._parseDefines()}N.prototype={constructor:N,createUniforms:function(){var e={};for(var t in this.uniformTemplates){var r=this.uniformTemplates[t];e[t]={type:r.type,value:r.value()}}return e},_parseImport:function(){this._vertexCode=N.parseImport(this.vertex),this._fragmentCode=N.parseImport(this.fragment)},_addSemanticUniform:function(e,t,r){if(aa.indexOf(r)>=0)this.attributeSemantics[r]={symbol:e,type:t};else if(ys.indexOf(r)>=0){var i=!1,n=r;r.match(/TRANSPOSE$/)&&(i=!0,n=r.slice(0,-9)),this.matrixSemantics[r]={symbol:e,type:t,isTranspose:i,semanticNoTranspose:n}}else _s.indexOf(r)>=0&&(this.uniformSemantics[r]={symbol:e,type:t})},_addMaterialUniform:function(e,t,r,i,n,a){a[e]={type:r,value:n?ho.array:i||ho[t],semantic:null}},_parseUniforms:function(){var e={},t=this,r="vertex";this._uniformList=[],this._vertexCode=this._vertexCode.replace(so,n),r="fragment",this._fragmentCode=this._fragmentCode.replace(so,n),t.matrixSemanticKeys=Object.keys(this.matrixSemantics);function i(a){return a!=null?function(){return a}:null}function n(a,o,s){var l=fo(o,s),h=[];for(var u in l){var f=l[u],d=f.semantic,c=u,v=zh[o],p=i(l[u].value);l[u].isArray&&(c+="["+l[u].arraySize+"]",v+="v"),h.push(c),t._uniformList.push(u),f.ignore||((o==="sampler2D"||o==="samplerCube")&&(t.textures[u]={shaderType:r,type:o}),d?t._addSemanticUniform(u,v,d):t._addMaterialUniform(u,o,v,p,l[u].isArray,e))}return h.length>0?"uniform "+o+" "+h.join(",")+`; -`:""}this.uniformTemplates=e},_parseAttributes:function(){var e={},t=this;this._vertexCode=this._vertexCode.replace(Gh,r);function r(i,n,a){var o=fo(n,a),s=Hh[n]||1,l=[];for(var h in o){var u=o[h].semantic;if(e[h]={type:"float",size:s,semantic:u||null},u){if(aa.indexOf(u)<0)throw new Error('Unkown semantic "'+u+'"');t.attributeSemantics[u]={symbol:h,type:n}}l.push(h)}return"attribute "+n+" "+l.join(",")+`; -`}this.attributes=e},_parseDefines:function(){var e=this,t="vertex";this._vertexCode=this._vertexCode.replace(lo,r),t="fragment",this._fragmentCode=this._fragmentCode.replace(lo,r);function r(i,n,a){var o=t==="vertex"?e.vertexDefines:e.fragmentDefines;return o[n]||(a==="false"?o[n]=!1:a==="true"?o[n]=!0:o[n]=a?isNaN(parseFloat(a))?a.trim():parseFloat(a):null),""}},clone:function(){var e=xs[this._shaderID],t=new N(e.vertex,e.fragment);return t}};Object.defineProperty&&(Object.defineProperty(N.prototype,"shaderID",{get:function(){return this._shaderID}}),Object.defineProperty(N.prototype,"vertex",{get:function(){return this._vertexCode}}),Object.defineProperty(N.prototype,"fragment",{get:function(){return this._fragmentCode}}),Object.defineProperty(N.prototype,"uniforms",{get:function(){return this._uniformList}}));var kh=/(@import)\s*([0-9a-zA-Z_\-\.]*)/g;N.parseImport=function(e){return e=e.replace(kh,function(n,r,i){var n=N.source(i);return n?N.parseImport(n):(console.error('Shader chunk "'+i+'" not existed in library'),"")}),e};var Wh=/(@export)\s*([0-9a-zA-Z_\-\.]*)\s*\n([\s\S]*?)@end/g;N.import=function(e){e.replace(Wh,function(t,r,i,a){var a=a.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+\x24)/g,"");if(a){for(var o=i.split("."),s=N.codes,l=0,h;l =0){if(d!==s&&d!==u){xr();break}d=l,v=[];continue}else if(d===s){e==="bool"?c[p].value=g==="true":c[p].value=parseFloat(g),v=null;continue}else if(d===u){var x=g;na.indexOf(x)>=0||gs.indexOf(x)>=0||_s.indexOf(x)>=0?c[p].semantic=x:x==="ignore"||x==="unconfigurable"?c[p].ignore=!0:e==="bool"?c[p].value=x==="true":c[p].value=parseFloat(x);continue}m(g),d=o}}return c}function N(e,t){typeof e=="object"&&(t=e.fragment,e=e.vertex),e=ho(e),t=ho(t),this._shaderID=Hh(e,t),this._vertexCode=N.parseImport(e),this._fragmentCode=N.parseImport(t),this.attributeSemantics={},this.matrixSemantics={},this.uniformSemantics={},this.matrixSemanticKeys=[],this.uniformTemplates={},this.attributes={},this.textures={},this.vertexDefines={},this.fragmentDefines={},this._parseAttributes(),this._parseUniforms(),this._parseDefines()}N.prototype={constructor:N,createUniforms:function(){var e={};for(var t in this.uniformTemplates){var r=this.uniformTemplates[t];e[t]={type:r.type,value:r.value()}}return e},_parseImport:function(){this._vertexCode=N.parseImport(this.vertex),this._fragmentCode=N.parseImport(this.fragment)},_addSemanticUniform:function(e,t,r){if(na.indexOf(r)>=0)this.attributeSemantics[r]={symbol:e,type:t};else if(_s.indexOf(r)>=0){var i=!1,n=r;r.match(/TRANSPOSE$/)&&(i=!0,n=r.slice(0,-9)),this.matrixSemantics[r]={symbol:e,type:t,isTranspose:i,semanticNoTranspose:n}}else gs.indexOf(r)>=0&&(this.uniformSemantics[r]={symbol:e,type:t})},_addMaterialUniform:function(e,t,r,i,n,a){a[e]={type:r,value:n?lo.array:i||lo[t],semantic:null}},_parseUniforms:function(){var e={},t=this,r="vertex";this._uniformList=[],this._vertexCode=this._vertexCode.replace(oo,n),r="fragment",this._fragmentCode=this._fragmentCode.replace(oo,n),t.matrixSemanticKeys=Object.keys(this.matrixSemantics);function i(a){return a!=null?function(){return a}:null}function n(a,o,s){var l=uo(o,s),h=[];for(var u in l){var f=l[u],d=f.semantic,c=u,v=Gh[o],p=i(l[u].value);l[u].isArray&&(c+="["+l[u].arraySize+"]",v+="v"),h.push(c),t._uniformList.push(u),f.ignore||((o==="sampler2D"||o==="samplerCube")&&(t.textures[u]={shaderType:r,type:o}),d?t._addSemanticUniform(u,v,d):t._addMaterialUniform(u,o,v,p,l[u].isArray,e))}return h.length>0?"uniform "+o+" "+h.join(",")+`; +`:""}this.uniformTemplates=e},_parseAttributes:function(){var e={},t=this;this._vertexCode=this._vertexCode.replace(Uh,r);function r(i,n,a){var o=uo(n,a),s=zh[n]||1,l=[];for(var h in o){var u=o[h].semantic;if(e[h]={type:"float",size:s,semantic:u||null},u){if(na.indexOf(u)<0)throw new Error('Unkown semantic "'+u+'"');t.attributeSemantics[u]={symbol:h,type:n}}l.push(h)}return"attribute "+n+" "+l.join(",")+`; +`}this.attributes=e},_parseDefines:function(){var e=this,t="vertex";this._vertexCode=this._vertexCode.replace(so,r),t="fragment",this._fragmentCode=this._fragmentCode.replace(so,r);function r(i,n,a){var o=t==="vertex"?e.vertexDefines:e.fragmentDefines;return o[n]||(a==="false"?o[n]=!1:a==="true"?o[n]=!0:o[n]=a?isNaN(parseFloat(a))?a.trim():parseFloat(a):null),""}},clone:function(){var e=ys[this._shaderID],t=new N(e.vertex,e.fragment);return t}};Object.defineProperty&&(Object.defineProperty(N.prototype,"shaderID",{get:function(){return this._shaderID}}),Object.defineProperty(N.prototype,"vertex",{get:function(){return this._vertexCode}}),Object.defineProperty(N.prototype,"fragment",{get:function(){return this._fragmentCode}}),Object.defineProperty(N.prototype,"uniforms",{get:function(){return this._uniformList}}));var Vh=/(@import)\s*([0-9a-zA-Z_\-\.]*)/g;N.parseImport=function(e){return e=e.replace(Vh,function(n,r,i){var n=N.source(i);return n?N.parseImport(n):(console.error('Shader chunk "'+i+'" not existed in library'),"")}),e};var kh=/(@export)\s*([0-9a-zA-Z_\-\.]*)\s*\n([\s\S]*?)@end/g;N.import=function(e){e.replace(kh,function(t,r,i,a){var a=a.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+\x24)/g,"");if(a){for(var o=i.split("."),s=N.codes,l=0,h;l 0&&(a=1/Math.sqrt(a),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a),e};j.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]};j.cross=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[0],s=r[1],l=r[2];return e[0]=n*l-a*s,e[1]=a*o-i*l,e[2]=i*s-n*o,e};j.lerp=function(e,t,r,i){var n=t[0],a=t[1],o=t[2];return e[0]=n+i*(r[0]-n),e[1]=a+i*(r[1]-a),e[2]=o+i*(r[2]-o),e};j.random=function(e,t){t=t||1;var r=Dr()*2*Math.PI,i=Dr()*2-1,n=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(r)*n,e[1]=Math.sin(r)*n,e[2]=i*t,e};j.transformMat4=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[3]*i+r[7]*n+r[11]*a+r[15];return o=o||1,e[0]=(r[0]*i+r[4]*n+r[8]*a+r[12])/o,e[1]=(r[1]*i+r[5]*n+r[9]*a+r[13])/o,e[2]=(r[2]*i+r[6]*n+r[10]*a+r[14])/o,e};j.transformMat3=function(e,t,r){var i=t[0],n=t[1],a=t[2];return e[0]=i*r[0]+n*r[3]+a*r[6],e[1]=i*r[1]+n*r[4]+a*r[7],e[2]=i*r[2]+n*r[5]+a*r[8],e};j.transformQuat=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[0],s=r[1],l=r[2],h=r[3],u=h*i+s*a-l*n,f=h*n+l*i-o*a,d=h*a+o*n-s*i,c=-o*i-s*n-l*a;return e[0]=u*h+c*-o+f*-l-d*-s,e[1]=f*h+c*-s+d*-o-u*-l,e[2]=d*h+c*-l+u*-s-f*-o,e};j.rotateX=function(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[0],a[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),a[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e};j.rotateY=function(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),a[1]=n[1],a[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e};j.rotateZ=function(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),a[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),a[2]=n[2],e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e};j.forEach=function(){var e=j.create();return function(t,r,i,n,a,o){var s,l;for(r||(r=3),i||(i=0),n?l=Math.min(n*r+i,t.length):l=t.length,s=i;s 1?0:Math.acos(n)};const E=j;N.import(Ts);var Te=B.create,co={};function vo(e){return e.material}function Xh(e,t,r){return t.uniforms[r].value}function Zh(e,t,r,i){return r!==i}function jh(e){return!0}function po(){}var mo={float:M.FLOAT,byte:M.BYTE,ubyte:M.UNSIGNED_BYTE,short:M.SHORT,ushort:M.UNSIGNED_SHORT};function qh(e,t,r){this.availableAttributes=e,this.availableAttributeSymbols=t,this.indicesBuffer=r,this.vao=null}function Yh(e){var t,r;this.bind=function(i){t||(t=Pe.createCanvas(),t.width=t.height=1,t.getContext("2d"));var n=i.gl,a=!r;a&&(r=n.createTexture()),n.bindTexture(n.TEXTURE_2D,r),a&&n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t)},this.unbind=function(i){i.gl.bindTexture(i.gl.TEXTURE_2D,null)},this.isRenderable=function(){return!0}}var qt=nt.extend(function(){return{canvas:null,_width:100,_height:100,devicePixelRatio:typeof window<"u"&&window.devicePixelRatio||1,clearColor:[0,0,0,0],clearBit:17664,alpha:!0,depth:!0,stencil:!1,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!1,throwError:!0,gl:null,viewport:{},maxJointNumber:20,__currentFrameBuffer:null,_viewportStack:[],_clearStack:[],_sceneRendering:null}},function(){this.canvas||(this.canvas=Pe.createCanvas());var e=this.canvas;try{var t={alpha:this.alpha,depth:this.depth,stencil:this.stencil,antialias:this.antialias,premultipliedAlpha:this.premultipliedAlpha,preserveDrawingBuffer:this.preserveDrawingBuffer};if(this.gl=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),!this.gl)throw new Error;this._glinfo=new Sh(this.gl),this.gl.targetRenderer&&console.error("Already created a renderer"),this.gl.targetRenderer=this,this.resize()}catch(r){throw"Error creating WebGL Context "+r}this._programMgr=new gs(this),this._placeholderTexture=new Yh},{resize:function(e,t){var r=this.canvas,i=this.devicePixelRatio;e!=null?(r.style&&(r.style.width=e+"px",r.style.height=t+"px"),r.width=e*i,r.height=t*i,this._width=e,this._height=t):(this._width=r.width/i,this._height=r.height/i),this.setViewport(0,0,this._width,this._height)},getWidth:function(){return this._width},getHeight:function(){return this._height},getViewportAspect:function(){var e=this.viewport;return e.width/e.height},setDevicePixelRatio:function(e){this.devicePixelRatio=e,this.resize(this._width,this._height)},getDevicePixelRatio:function(){return this.devicePixelRatio},getGLExtension:function(e){return this._glinfo.getExtension(e)},getGLParameter:function(e){return this._glinfo.getParameter(e)},setViewport:function(e,t,r,i,n){if(typeof e=="object"){var a=e;e=a.x,t=a.y,r=a.width,i=a.height,n=a.devicePixelRatio}n=n||this.devicePixelRatio,this.gl.viewport(e*n,t*n,r*n,i*n),this.viewport={x:e,y:t,width:r,height:i,devicePixelRatio:n}},saveViewport:function(){this._viewportStack.push(this.viewport)},restoreViewport:function(){this._viewportStack.length>0&&this.setViewport(this._viewportStack.pop())},saveClear:function(){this._clearStack.push({clearBit:this.clearBit,clearColor:this.clearColor})},restoreClear:function(){if(this._clearStack.length>0){var e=this._clearStack.pop();this.clearColor=e.clearColor,this.clearBit=e.clearBit}},bindSceneRendering:function(e){this._sceneRendering=e},render:function(e,t,r,i){var n=this.gl,a=this.clearColor;if(this.clearBit){n.colorMask(!0,!0,!0,!0),n.depthMask(!0);var o=this.viewport,s=!1,l=o.devicePixelRatio;(o.width!==this._width||o.height!==this._height||l&&l!==this.devicePixelRatio||o.x||o.y)&&(s=!0,n.enable(n.SCISSOR_TEST),n.scissor(o.x*l,o.y*l,o.width*l,o.height*l)),n.clearColor(a[0],a[1],a[2],a[3]),n.clear(this.clearBit),s&&n.disable(n.SCISSOR_TEST)}if(r||e.update(!1),e.updateLights(),t=t||e.getMainCamera(),!t){console.error("Can't find camera in the scene.");return}t.update();var h=e.updateRenderList(t,!0);this._sceneRendering=e;var u=h.opaque,f=h.transparent,d=e.material;e.trigger("beforerender",this,e,t,h),i?(this.renderPreZ(u,e,t),n.depthFunc(n.LEQUAL)):n.depthFunc(n.LESS);for(var c=Te(),v=E.create(),p=0;p 0){var s=e[n-1],l=s.joints?s.joints.length:0,h=a.joints?a.joints.length:0;if(h===l&&a.material===s.material&&a.lightGroup===s.lightGroup){a.__program=s.__program;continue}}var u=this._programMgr.getProgram(a,o,t);this.validateProgram(u),a.__program=u}},renderPass:function(e,t,r){this.trigger("beforerenderpass",this,e,t,r),r=r||{},r.getMaterial=r.getMaterial||vo,r.getUniform=r.getUniform||Xh,r.isMaterialChanged=r.isMaterialChanged||Zh,r.beforeRender=r.beforeRender||po,r.afterRender=r.afterRender||po;var i=r.ifRender||jh;this.updatePrograms(e,this._sceneRendering,r),r.sortCompare&&e.sort(r.sortCompare);var n=this.viewport,a=n.devicePixelRatio,o=[n.x*a,n.y*a,n.width*a,n.height*a],s=this.devicePixelRatio,l=this.__currentFrameBuffer?[this.__currentFrameBuffer.getTextureWidth(),this.__currentFrameBuffer.getTextureHeight()]:[this._width*s,this._height*s],h=[o[2],o[3]],u=Date.now();t?(B.copy(xe.VIEW,t.viewMatrix.array),B.copy(xe.PROJECTION,t.projectionMatrix.array),B.copy(xe.VIEWINVERSE,t.worldTransform.array)):(B.identity(xe.VIEW),B.identity(xe.PROJECTION),B.identity(xe.VIEWINVERSE)),B.multiply(xe.VIEWPROJECTION,xe.PROJECTION,xe.VIEW),B.invert(xe.PROJECTIONINVERSE,xe.PROJECTION),B.invert(xe.VIEWPROJECTIONINVERSE,xe.VIEWPROJECTION);for(var f=this.gl,d=this._sceneRendering,c,v,p,m,g,x,y,_,w,S,b,A,C=null,P=0;P this.getMaxJointNumber()){var a=n.getSubSkinMatricesTexture(e.__uid__,e.joints);t.useTextureSlot(this,a,r),t.setUniform(i,"1i","skinMatricesTexture",r),t.setUniform(i,"1f","skinMatricesTextureSize",a.width)}else{var o=n.getSubSkinMatrices(e.__uid__,e.joints);t.setUniformOfSemantic(i,"SKIN_MATRIX",o)}},_renderObject:function(e,t,r){var i=this.gl,n=e.geometry,a=e.mode;a==null&&(a=4);var o=null,s=e.isInstancedMesh&&e.isInstancedMesh();if(s&&(o=this.getGLExtension("ANGLE_instanced_arrays"),!o)){console.warn("Device not support ANGLE_instanced_arrays extension");return}var l;if(s&&(l=this._bindInstancedAttributes(e,r,o)),t.indicesBuffer){var h=this.getGLExtension("OES_element_index_uint"),u=h&&n.indices instanceof Uint32Array,f=u?i.UNSIGNED_INT:i.UNSIGNED_SHORT;s?o.drawElementsInstancedANGLE(a,t.indicesBuffer.count,f,0,e.getInstanceCount()):i.drawElements(a,t.indicesBuffer.count,f,0)}else s?o.drawArraysInstancedANGLE(a,0,n.vertexCount,e.getInstanceCount()):i.drawArrays(a,0,n.vertexCount);if(s)for(var d=0;d r?r:e}var ve=Math.atan2,mt=Math.asin,wr=Math.abs;Z.eulerFromQuat=function(e,t,d){e._dirty=!0,t=t.array;var i=e.array,n=t[0],a=t[1],o=t[2],s=t[3],l=n*n,h=a*a,u=o*o,f=s*s,d=(d||"XYZ").toUpperCase();switch(d){case"XYZ":i[0]=ve(2*(n*s-a*o),f-l-h+u),i[1]=mt(pt(2*(n*o+a*s),-1,1)),i[2]=ve(2*(o*s-n*a),f+l-h-u);break;case"YXZ":i[0]=mt(pt(2*(n*s-a*o),-1,1)),i[1]=ve(2*(n*o+a*s),f-l-h+u),i[2]=ve(2*(n*a+o*s),f-l+h-u);break;case"ZXY":i[0]=mt(pt(2*(n*s+a*o),-1,1)),i[1]=ve(2*(a*s-o*n),f-l-h+u),i[2]=ve(2*(o*s-n*a),f-l+h-u);break;case"ZYX":i[0]=ve(2*(n*s+o*a),f-l-h+u),i[1]=mt(pt(2*(a*s-n*o),-1,1)),i[2]=ve(2*(n*a+o*s),f+l-h-u);break;case"YZX":i[0]=ve(2*(n*s-o*a),f-l+h-u),i[1]=ve(2*(a*s-n*o),f+l-h-u),i[2]=mt(pt(2*(n*a+o*s),-1,1));break;case"XZY":i[0]=ve(2*(n*s+a*o),f-l+h-u),i[1]=ve(2*(n*o+a*s),f+l-h-u),i[2]=mt(pt(2*(o*s-n*a),-1,1));break;default:console.warn("Unkown order: "+d)}return e};Z.eulerFromMat3=function(e,t,v){var i=t.array,n=i[0],a=i[3],o=i[6],s=i[1],l=i[4],h=i[7],u=i[2],f=i[5],d=i[8],c=e.array,v=(v||"XYZ").toUpperCase();switch(v){case"XYZ":c[1]=mt(pt(o,-1,1)),wr(o)<.99999?(c[0]=ve(-h,d),c[2]=ve(-a,n)):(c[0]=ve(f,l),c[2]=0);break;case"YXZ":c[0]=mt(-pt(h,-1,1)),wr(h)<.99999?(c[1]=ve(o,d),c[2]=ve(s,l)):(c[1]=ve(-u,n),c[2]=0);break;case"ZXY":c[0]=mt(pt(f,-1,1)),wr(f)<.99999?(c[1]=ve(-u,d),c[2]=ve(-a,l)):(c[1]=0,c[2]=ve(s,n));break;case"ZYX":c[1]=mt(-pt(u,-1,1)),wr(u)<.99999?(c[0]=ve(f,d),c[2]=ve(s,n)):(c[0]=0,c[2]=ve(-a,l));break;case"YZX":c[2]=mt(pt(s,-1,1)),wr(s)<.99999?(c[0]=ve(-h,l),c[1]=ve(-u,n)):(c[0]=0,c[1]=ve(o,d));break;case"XZY":c[2]=mt(-pt(a,-1,1)),wr(a)<.99999?(c[0]=ve(f,l),c[1]=ve(o,n)):(c[0]=ve(-h,d),c[1]=0);break;default:console.warn("Unkown order: "+v)}return e._dirty=!0,e};Object.defineProperties(Z,{POSITIVE_X:{get:function(){return new Z(1,0,0)}},NEGATIVE_X:{get:function(){return new Z(-1,0,0)}},POSITIVE_Y:{get:function(){return new Z(0,1,0)}},NEGATIVE_Y:{get:function(){return new Z(0,-1,0)}},POSITIVE_Z:{get:function(){return new Z(0,0,1)}},NEGATIVE_Z:{get:function(){return new Z(0,0,-1)}},UP:{get:function(){return new Z(0,1,0)}},ZERO:{get:function(){return new Z}}});const U=Z;var On=1e-5,ji=function(e,t){this.origin=e||new U,this.direction=t||new U};ji.prototype={constructor:ji,intersectPlane:function(e,t){var r=e.normal.array,i=e.distance,n=this.origin.array,a=this.direction.array,o=E.dot(r,a);if(o===0)return null;t||(t=new U);var s=(E.dot(r,n)-i)/o;return E.scaleAndAdd(t.array,n,a,-s),t._dirty=!0,t},mirrorAgainstPlane:function(e){var t=E.dot(e.normal.array,this.direction.array);E.scaleAndAdd(this.direction.array,this.direction.array,e.normal.array,-t*2),this.direction._dirty=!0},distanceToPoint:function(){var e=E.create();return function(t){E.sub(e,t,this.origin.array);var r=E.dot(e,this.direction.array);if(r<0)return E.distance(this.origin.array,t);var i=E.lenSquared(e);return Math.sqrt(i-r*r)}}(),intersectSphere:function(){var e=E.create();return function(t,r,i){var n=this.origin.array,a=this.direction.array;t=t.array,E.sub(e,t,n);var o=E.dot(e,a),s=E.squaredLength(e),l=s-o*o,h=r*r;if(!(l>h)){var u=Math.sqrt(h-l),f=o-u,d=o+u;return i||(i=new U),f<0?d<0?null:(E.scaleAndAdd(i.array,n,a,d),i):(E.scaleAndAdd(i.array,n,a,f),i)}}}(),intersectBoundingBox:function(e,t){var r=this.direction.array,i=this.origin.array,n=e.min.array,a=e.max.array,o=1/r[0],s=1/r[1],l=1/r[2],h,u,f,d,c,v;if(o>=0?(h=(n[0]-i[0])*o,u=(a[0]-i[0])*o):(u=(n[0]-i[0])*o,h=(a[0]-i[0])*o),s>=0?(f=(n[1]-i[1])*s,d=(a[1]-i[1])*s):(d=(n[1]-i[1])*s,f=(a[1]-i[1])*s),h>d||f>u||((f>h||h!==h)&&(h=f),(d=0?(c=(n[2]-i[2])*l,v=(a[2]-i[2])*l):(v=(n[2]-i[2])*l,c=(a[2]-i[2])*l),h>v||c>u)||((c>h||h!==h)&&(h=c),(v=0?h:u;return t||(t=new U),E.scaleAndAdd(t.array,i,r,p),t},intersectTriangle:function(){var e=E.create(),t=E.create(),r=E.create(),i=E.create();return function(n,a,o,s,l,h){var u=this.direction.array,f=this.origin.array;n=n.array,a=a.array,o=o.array,E.sub(e,a,n),E.sub(t,o,n),E.cross(i,t,u);var d=E.dot(e,i);if(s){if(d>-On)return null}else if(d>-On&&d 1)return null;E.cross(i,e,r);var v=E.dot(u,i)/d;if(v<0||v>1||c+v>1)return null;E.cross(i,e,t);var p=-E.dot(r,i)/d;return p<0?null:(l||(l=new U),h&&U.set(h,1-c-v,c,v),E.scaleAndAdd(l.array,f,u,p),l)}}(),applyTransform:function(e){U.add(this.direction,this.direction,this.origin),U.transformMat4(this.origin,this.origin,e),U.transformMat4(this.direction,this.direction,e),U.sub(this.direction,this.direction,this.origin),U.normalize(this.direction,this.direction)},copy:function(e){U.copy(this.origin,e.origin),U.copy(this.direction,e.direction)},clone:function(){var e=new ji;return e.copy(this),e}};const tn=ji;var J={};J.create=function(){var e=new Ke(4);return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e};J.clone=function(e){var t=new Ke(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t};J.fromValues=function(e,t,r,i){var n=new Ke(4);return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n};J.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e};J.set=function(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e};J.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e};J.subtract=function(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e};J.sub=J.subtract;J.multiply=function(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e};J.mul=J.multiply;J.divide=function(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e};J.div=J.divide;J.min=function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e};J.max=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e};J.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e};J.scaleAndAdd=function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e};J.distance=function(e,t){var r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],a=t[3]-e[3];return Math.sqrt(r*r+i*i+n*n+a*a)};J.dist=J.distance;J.squaredDistance=function(e,t){var r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],a=t[3]-e[3];return r*r+i*i+n*n+a*a};J.sqrDist=J.squaredDistance;J.length=function(e){var t=e[0],r=e[1],i=e[2],n=e[3];return Math.sqrt(t*t+r*r+i*i+n*n)};J.len=J.length;J.squaredLength=function(e){var t=e[0],r=e[1],i=e[2],n=e[3];return t*t+r*r+i*i+n*n};J.sqrLen=J.squaredLength;J.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e};J.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e};J.normalize=function(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r*r+i*i+n*n+a*a;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e[3]=t[3]*o),e};J.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]};J.lerp=function(e,t,r,i){var n=t[0],a=t[1],o=t[2],s=t[3];return e[0]=n+i*(r[0]-n),e[1]=a+i*(r[1]-a),e[2]=o+i*(r[2]-o),e[3]=s+i*(r[3]-s),e};J.random=function(e,t){return t=t||1,e[0]=Dr(),e[1]=Dr(),e[2]=Dr(),e[3]=Dr(),J.normalize(e,e),J.scale(e,e,t),e};J.transformMat4=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3];return e[0]=r[0]*i+r[4]*n+r[8]*a+r[12]*o,e[1]=r[1]*i+r[5]*n+r[9]*a+r[13]*o,e[2]=r[2]*i+r[6]*n+r[10]*a+r[14]*o,e[3]=r[3]*i+r[7]*n+r[11]*a+r[15]*o,e};J.transformQuat=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[0],s=r[1],l=r[2],h=r[3],u=h*i+s*a-l*n,f=h*n+l*i-o*a,d=h*a+o*n-s*i,c=-o*i-s*n-l*a;return e[0]=u*h+c*-o+f*-l-d*-s,e[1]=f*h+c*-s+d*-o-u*-l,e[2]=d*h+c*-l+u*-s-f*-o,e};J.forEach=function(){var e=J.create();return function(t,r,i,n,a,o){var s,l;for(r||(r=4),i||(i=0),n?l=Math.min(n*r+i,t.length):l=t.length,s=i;s .999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(E.cross(e,n,a),i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=1+o,se.normalize(i,i))}}();se.setAxes=function(){var e=ie.create();return function(t,r,i,n){return e[0]=i[0],e[3]=i[1],e[6]=i[2],e[1]=n[0],e[4]=n[1],e[7]=n[2],e[2]=-r[0],e[5]=-r[1],e[8]=-r[2],se.normalize(t,se.fromMat3(t,e))}}();se.clone=G.clone;se.fromValues=G.fromValues;se.copy=G.copy;se.set=G.set;se.identity=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e};se.setAxisAngle=function(e,t,r){r=r*.5;var i=Math.sin(r);return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=Math.cos(r),e};se.add=G.add;se.multiply=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=r[0],l=r[1],h=r[2],u=r[3];return e[0]=i*u+o*s+n*h-a*l,e[1]=n*u+o*l+a*s-i*h,e[2]=a*u+o*h+i*l-n*s,e[3]=o*u-i*s-n*l-a*h,e};se.mul=se.multiply;se.scale=G.scale;se.rotateX=function(e,t,r){r*=.5;var i=t[0],n=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l+o*s,e[1]=n*l+a*s,e[2]=a*l-n*s,e[3]=o*l-i*s,e};se.rotateY=function(e,t,r){r*=.5;var i=t[0],n=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l-a*s,e[1]=n*l+o*s,e[2]=a*l+i*s,e[3]=o*l-n*s,e};se.rotateZ=function(e,t,r){r*=.5;var i=t[0],n=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l+n*s,e[1]=n*l-i*s,e[2]=a*l+o*s,e[3]=o*l-a*s,e};se.calculateW=function(e,t){var r=t[0],i=t[1],n=t[2];return e[0]=r,e[1]=i,e[2]=n,e[3]=Math.sqrt(Math.abs(1-r*r-i*i-n*n)),e};se.dot=G.dot;se.lerp=G.lerp;se.slerp=function(e,t,r,i){var n=t[0],a=t[1],o=t[2],s=t[3],l=r[0],h=r[1],u=r[2],f=r[3],d,c,v,p,m;return c=n*l+a*h+o*u+s*f,c<0&&(c=-c,l=-l,h=-h,u=-u,f=-f),1-c>1e-6?(d=Math.acos(c),v=Math.sin(d),p=Math.sin((1-i)*d)/v,m=Math.sin(i*d)/v):(p=1-i,m=i),e[0]=p*n+m*l,e[1]=p*a+m*h,e[2]=p*o+m*u,e[3]=p*s+m*f,e};se.invert=function(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r*r+i*i+n*n+a*a,s=o?1/o:0;return e[0]=-r*s,e[1]=-i*s,e[2]=-n*s,e[3]=a*s,e};se.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e};se.length=G.length;se.len=se.length;se.squaredLength=G.squaredLength;se.sqrLen=se.squaredLength;se.normalize=G.normalize;se.fromMat3=function(e,t){var r=t[0]+t[4]+t[8],i;if(r>0)i=Math.sqrt(r+1),e[3]=.5*i,i=.5/i,e[0]=(t[5]-t[7])*i,e[1]=(t[6]-t[2])*i,e[2]=(t[1]-t[3])*i;else{var n=0;t[4]>t[0]&&(n=1),t[8]>t[n*3+n]&&(n=2);var a=(n+1)%3,o=(n+2)%3;i=Math.sqrt(t[n*3+n]-t[a*3+a]-t[o*3+o]+1),e[n]=.5*i,i=.5/i,e[3]=(t[a*3+o]-t[o*3+a])*i,e[a]=(t[a*3+n]+t[n*3+a])*i,e[o]=(t[o*3+n]+t[n*3+o])*i}return e};const Y=se;var ye=function(){this._axisX=new U,this._axisY=new U,this._axisZ=new U,this.array=B.create(),this._dirty=!0};ye.prototype={constructor:ye,setArray:function(e){for(var t=0;t 0){var t=this.min,r=this.max,i=t.array,n=r.array;Oi(i,e[0]),Oi(n,e[0]);for(var a=1;a n[0]&&(n[0]=o[0]),o[1]>n[1]&&(n[1]=o[1]),o[2]>n[2]&&(n[2]=o[2])}t._dirty=!0,r._dirty=!0}},union:function(e){var t=this.min,r=this.max;return E.min(t.array,t.array,e.min.array),E.max(r.array,r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},intersection:function(e){var t=this.min,r=this.max;return E.max(t.array,t.array,e.min.array),E.min(r.array,r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},intersectBoundingBox:function(e){var t=this.min.array,r=this.max.array,i=e.min.array,n=e.max.array;return!(t[0]>n[0]||t[1]>n[1]||t[2]>n[2]||r[0]=n[0]&&r[1]>=n[1]&&r[2]>=n[2]},containPoint:function(e){var t=this.min.array,r=this.max.array,i=e.array;return t[0]<=i[0]&&t[1]<=i[1]&&t[2]<=i[2]&&r[0]>=i[0]&&r[1]>=i[1]&&r[2]>=i[2]},isFinite:function(){var e=this.min.array,t=this.max.array;return isFinite(e[0])&&isFinite(e[1])&&isFinite(e[2])&&isFinite(t[0])&&isFinite(t[1])&&isFinite(t[2])},applyTransform:function(e){this.transformFrom(this,e)},transformFrom:function(){var e=E.create(),t=E.create(),r=E.create(),i=E.create(),n=E.create(),a=E.create();return function(o,s){var l=o.min.array,h=o.max.array,u=s.array;return e[0]=u[0]*l[0],e[1]=u[1]*l[0],e[2]=u[2]*l[0],t[0]=u[0]*h[0],t[1]=u[1]*h[0],t[2]=u[2]*h[0],r[0]=u[4]*l[1],r[1]=u[5]*l[1],r[2]=u[6]*l[1],i[0]=u[4]*h[1],i[1]=u[5]*h[1],i[2]=u[6]*h[1],n[0]=u[8]*l[2],n[1]=u[9]*l[2],n[2]=u[10]*l[2],a[0]=u[8]*h[2],a[1]=u[9]*h[2],a[2]=u[10]*h[2],l=this.min.array,h=this.max.array,l[0]=Math.min(e[0],t[0])+Math.min(r[0],i[0])+Math.min(n[0],a[0])+u[12],l[1]=Math.min(e[1],t[1])+Math.min(r[1],i[1])+Math.min(n[1],a[1])+u[13],l[2]=Math.min(e[2],t[2])+Math.min(r[2],i[2])+Math.min(n[2],a[2])+u[14],h[0]=Math.max(e[0],t[0])+Math.max(r[0],i[0])+Math.max(n[0],a[0])+u[12],h[1]=Math.max(e[1],t[1])+Math.max(r[1],i[1])+Math.max(n[1],a[1])+u[13],h[2]=Math.max(e[2],t[2])+Math.max(r[2],i[2])+Math.max(n[2],a[2])+u[14],this.min._dirty=!0,this.max._dirty=!0,this}}(),applyProjection:function(e){var t=this.min.array,r=this.max.array,i=e.array,n=t[0],a=t[1],o=t[2],s=r[0],l=r[1],h=t[2],u=r[0],f=r[1],d=r[2];if(i[15]===1)t[0]=i[0]*n+i[12],t[1]=i[5]*a+i[13],r[2]=i[10]*o+i[14],r[0]=i[0]*u+i[12],r[1]=i[5]*f+i[13],t[2]=i[10]*d+i[14];else{var c=-1/o;t[0]=i[0]*n*c,t[1]=i[5]*a*c,r[2]=(i[10]*o+i[14])*c,c=-1/h,r[0]=i[0]*s*c,r[1]=i[5]*l*c,c=-1/d,t[2]=(i[10]*d+i[14])*c}return this.min._dirty=!0,this.max._dirty=!0,this},updateVertices:function(){var e=this.vertices;if(!e){e=[];for(var t=0;t<8;t++)e[t]=E.fromValues(0,0,0);this.vertices=e}var r=this.min.array,i=this.max.array;return Ht(e[0],r[0],r[1],r[2]),Ht(e[1],r[0],i[1],r[2]),Ht(e[2],i[0],r[1],r[2]),Ht(e[3],i[0],i[1],r[2]),Ht(e[4],r[0],r[1],i[2]),Ht(e[5],r[0],i[1],i[2]),Ht(e[6],i[0],r[1],i[2]),Ht(e[7],i[0],i[1],i[2]),this},copy:function(e){var t=this.min,r=this.max;return Oi(t.array,e.min.array),Oi(r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},clone:function(){var e=new qi;return e.copy(this),e}};const tt=qi;var Kh=0,Qh=nt.extend({name:"",position:null,rotation:null,scale:null,worldTransform:null,localTransform:null,autoUpdateLocalTransform:!0,_parent:null,_scene:null,_needsUpdateWorldTransform:!0,_inIterating:!1,__depth:0},function(){this.name||(this.name=(this.type||"NODE")+"_"+Kh++),this.position||(this.position=new U),this.rotation||(this.rotation=new ws),this.scale||(this.scale=new U(1,1,1)),this.worldTransform=new k,this.localTransform=new k,this._children=[]},{target:null,invisible:!1,isSkinnedMesh:function(){return!1},isRenderable:function(){return!1},setName:function(e){var t=this._scene;if(t){var r=t._nodeRepository;delete r[this.name],r[e]=this}this.name=e},add:function(e){var t=e._parent;if(t!==this){t&&t.remove(e),e._parent=this,this._children.push(e);var r=this._scene;r&&r!==e.scene&&e.traverse(this._addSelfToScene,this),e._needsUpdateWorldTransform=!0}},remove:function(e){var t=this._children,r=t.indexOf(e);r<0||(t.splice(r,1),e._parent=null,this._scene&&e.traverse(this._removeSelfFromScene,this))},removeAll:function(){for(var e=this._children,t=0;t 0},beforeRender:function(e){},afterRender:function(e,t){},getBoundingBox:function(e,t){return t=Lt.prototype.getBoundingBox.call(this,e,t),this.geometry&&this.geometry.boundingBox&&t.union(this.geometry.boundingBox),t},clone:function(){var e=["castShadow","receiveShadow","mode","culling","cullFace","frontFace","frustumCulling","renderOrder","lineWidth","ignorePicking","ignorePreZ","ignoreGBuffer"];return function(){var t=Lt.prototype.clone.call(this);t.geometry=this.geometry,t.material=this.material;for(var r=0;r =0&&w[y]>1e-4&&(E.transformMat4(A,_,g[S[y]]),E.scaleAndAdd(b,b,A,w[y]));C.set(x,b)}}for(var x=0;x >t;return e+1},dispose:function(e){var t=this._cache;t.use(e.__uid__);var r=t.get("webgl_texture");r&&e.gl.deleteTexture(r),t.deleteContext(e.__uid__)},isRenderable:function(){},isPowerOfTwo:function(){}});Object.defineProperty(ne.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e}});Object.defineProperty(ne.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e}});ne.BYTE=M.BYTE;ne.UNSIGNED_BYTE=M.UNSIGNED_BYTE;ne.SHORT=M.SHORT;ne.UNSIGNED_SHORT=M.UNSIGNED_SHORT;ne.INT=M.INT;ne.UNSIGNED_INT=M.UNSIGNED_INT;ne.FLOAT=M.FLOAT;ne.HALF_FLOAT=36193;ne.UNSIGNED_INT_24_8_WEBGL=34042;ne.DEPTH_COMPONENT=M.DEPTH_COMPONENT;ne.DEPTH_STENCIL=M.DEPTH_STENCIL;ne.ALPHA=M.ALPHA;ne.RGB=M.RGB;ne.RGBA=M.RGBA;ne.LUMINANCE=M.LUMINANCE;ne.LUMINANCE_ALPHA=M.LUMINANCE_ALPHA;ne.SRGB=35904;ne.SRGB_ALPHA=35906;ne.COMPRESSED_RGB_S3TC_DXT1_EXT=33776;ne.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777;ne.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778;ne.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779;ne.NEAREST=M.NEAREST;ne.LINEAR=M.LINEAR;ne.NEAREST_MIPMAP_NEAREST=M.NEAREST_MIPMAP_NEAREST;ne.LINEAR_MIPMAP_NEAREST=M.LINEAR_MIPMAP_NEAREST;ne.NEAREST_MIPMAP_LINEAR=M.NEAREST_MIPMAP_LINEAR;ne.LINEAR_MIPMAP_LINEAR=M.LINEAR_MIPMAP_LINEAR;ne.REPEAT=M.REPEAT;ne.CLAMP_TO_EDGE=M.CLAMP_TO_EDGE;ne.MIRRORED_REPEAT=M.MIRRORED_REPEAT;const W=ne;var ct=oa.extend({skeleton:null,joints:null},function(){this.joints||(this.joints=[])},{offsetMatrix:null,isInstancedMesh:function(){return!1},isSkinnedMesh:function(){return!!(this.skeleton&&this.joints&&this.joints.length>0)},clone:function(){var e=oa.prototype.clone.call(this);return e.skeleton=this.skeleton,this.joints&&(e.joints=this.joints.slice()),e}});ct.POINTS=M.POINTS;ct.LINES=M.LINES;ct.LINE_LOOP=M.LINE_LOOP;ct.LINE_STRIP=M.LINE_STRIP;ct.TRIANGLES=M.TRIANGLES;ct.TRIANGLE_STRIP=M.TRIANGLE_STRIP;ct.TRIANGLE_FAN=M.TRIANGLE_FAN;ct.BACK=M.BACK;ct.FRONT=M.FRONT;ct.FRONT_AND_BACK=M.FRONT_AND_BACK;ct.CW=M.CW;ct.CCW=M.CCW;const lr=ct;var gn={};gn.isPowerOfTwo=function(e){return(e&e-1)===0};gn.nextPowerOfTwo=function(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e++,e};gn.nearestPowerOfTwo=function(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))};const Ss=gn;var go=Ss.isPowerOfTwo;function _o(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))}function Jh(e,t){var r=_o(e.width),i=_o(e.height);t=t||document.createElement("canvas"),t.width=r,t.height=i;var n=t.getContext("2d");return n.drawImage(e.image,0,0,r,i),t}var Aa=W.extend(function(){return{image:null,pixels:null,mipmaps:[],convertToPOT:!1}},{textureType:"texture2D",update:function(e){var t=e.gl;t.bindTexture(t.TEXTURE_2D,this._cache.get("webgl_texture")),this.updateCommon(e);var r=this.format,i=this.type,n=!!(this.convertToPOT&&!this.mipmaps.length&&this.image&&(this.wrapS===W.REPEAT||this.wrapT===W.REPEAT)&&this.NPOT);t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,n?this.wrapS:this.getAvailableWrapS()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,n?this.wrapT:this.getAvailableWrapT()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,n?this.magFilter:this.getAvailableMagFilter()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,n?this.minFilter:this.getAvailableMinFilter());var a=e.getGLExtension("EXT_texture_filter_anisotropic");if(a&&this.anisotropic>1&&t.texParameterf(t.TEXTURE_2D,a.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),i===36193){var o=e.getGLExtension("OES_texture_half_float");o||(i=M.FLOAT)}if(this.mipmaps.length)for(var s=this.width,l=this.height,h=0;h =W.COMPRESSED_RGB_S3TC_DXT1_EXT?e.compressedTexImage2D(e.TEXTURE_2D,r,a,i,n,0,t.pixels):e.texImage2D(e.TEXTURE_2D,r,a,i,n,0,a,o,t.pixels)},generateMipmap:function(e){var t=e.gl;this.useMipmap&&!this.NPOT&&(t.bindTexture(t.TEXTURE_2D,this._cache.get("webgl_texture")),t.generateMipmap(t.TEXTURE_2D))},isPowerOfTwo:function(){return go(this.width)&&go(this.height)},isRenderable:function(){return this.image?this.image.width>0&&this.image.height>0:!!(this.width&&this.height)},bind:function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,this.getWebGLTexture(e))},unbind:function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,null)},load:function(e,t){var r=Pe.createImage();t&&(r.crossOrigin=t);var i=this;return r.onload=function(){i.dirty(),i.trigger("success",i)},r.onerror=function(){i.trigger("error",i)},r.src=e,this.image=r,this}});Object.defineProperty(Aa.prototype,"width",{get:function(){return this.image?this.image.width:this._width},set:function(e){this.image?console.warn("Texture from image can't set width"):(this._width!==e&&this.dirty(),this._width=e)}});Object.defineProperty(Aa.prototype,"height",{get:function(){return this.image?this.image.height:this._height},set:function(e){this.image?console.warn("Texture from image can't set height"):(this._height!==e&&this.dirty(),this._height=e)}});const $=Aa;function As(e){return{byte:Pe.Int8Array,ubyte:Pe.Uint8Array,short:Pe.Int16Array,ushort:Pe.Uint16Array}[e]||Pe.Float32Array}function Fn(e){return"attr_"+e}function Or(e,t,r,i){switch(this.name=e,this.type=t,this.size=r,this.semantic=i||"",this.value=null,r){case 1:this.get=function(n){return this.value[n]},this.set=function(n,a){this.value[n]=a},this.copy=function(n,a){this.value[n]=this.value[n]};break;case 2:this.get=function(n,a){var o=this.value;return a[0]=o[n*2],a[1]=o[n*2+1],a},this.set=function(n,a){var o=this.value;o[n*2]=a[0],o[n*2+1]=a[1]},this.copy=function(n,a){var o=this.value;a*=2,n*=2,o[n]=o[a],o[n+1]=o[a+1]};break;case 3:this.get=function(n,a){var o=n*3,s=this.value;return a[0]=s[o],a[1]=s[o+1],a[2]=s[o+2],a},this.set=function(n,a){var o=n*3,s=this.value;s[o]=a[0],s[o+1]=a[1],s[o+2]=a[2]},this.copy=function(n,a){var o=this.value;a*=3,n*=3,o[n]=o[a],o[n+1]=o[a+1],o[n+2]=o[a+2]};break;case 4:this.get=function(n,a){var o=this.value,s=n*4;return a[0]=o[s],a[1]=o[s+1],a[2]=o[s+2],a[3]=o[s+3],a},this.set=function(n,a){var o=this.value,s=n*4;o[s]=a[0],o[s+1]=a[1],o[s+2]=a[2],o[s+3]=a[3]},this.copy=function(n,a){var o=this.value;a*=4,n*=4,o[n]=o[a],o[n+1]=o[a+1],o[n+2]=o[a+2],o[n+3]=o[a+3]}}}Or.prototype.init=function(e){if(!this.value||this.value.length!==e*this.size){var t=As(this.type);this.value=new t(e*this.size)}};Or.prototype.fromArray=function(e){var t=As(this.type),r;if(e[0]&&e[0].length){var i=0,n=this.size;r=new t(e.length*n);for(var a=0;a =0){t||(t=[]);var r=this.indices;return t[0]=r[e*3],t[1]=r[e*3+1],t[2]=r[e*3+2],t}},setTriangleIndices:function(e,t){var r=this.indices;r[e*3]=t[0],r[e*3+1]=t[1],r[e*3+2]=t[2]},isUseIndices:function(){return!!this.indices},initIndicesFromArray:function(e){var t,r=this.vertexCount>65535?Pe.Uint32Array:Pe.Uint16Array;if(e[0]&&e[0].length){var i=0,n=3;t=new r(e.length*n);for(var a=0;a =0?(t.splice(r,1),delete this.attributes[e],!0):!1},getAttribute:function(e){return this.attributes[e]},getEnabledAttributes:function(){var e=this._enabledAttributes,t=this._attributeList;if(e)return e;for(var r=[],i=this.vertexCount,n=0;n a[0]&&(a[0]=s),l>a[1]&&(a[1]=l),h>a[2]&&(a[2]=h)}r._dirty=!0,i._dirty=!0}},generateVertexNormals:function(){if(!!this.vertexCount){var e=this.indices,t=this.attributes,r=t.position.value,i=t.normal.value;if(!i||i.length!==r.length)i=t.normal.value=new Pe.Float32Array(r.length);else for(var n=0;n 65535&&(this.indices=new Pe.Uint32Array(this.indices));for(var e=this.attributes,t=this.indices,r=this.getEnabledAttributes(),i={},n=0;n 0&&(a=1/Math.sqrt(a),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a),e};j.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]};j.cross=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[0],s=r[1],l=r[2];return e[0]=n*l-a*s,e[1]=a*o-i*l,e[2]=i*s-n*o,e};j.lerp=function(e,t,r,i){var n=t[0],a=t[1],o=t[2];return e[0]=n+i*(r[0]-n),e[1]=a+i*(r[1]-a),e[2]=o+i*(r[2]-o),e};j.random=function(e,t){t=t||1;var r=Mr()*2*Math.PI,i=Mr()*2-1,n=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(r)*n,e[1]=Math.sin(r)*n,e[2]=i*t,e};j.transformMat4=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[3]*i+r[7]*n+r[11]*a+r[15];return o=o||1,e[0]=(r[0]*i+r[4]*n+r[8]*a+r[12])/o,e[1]=(r[1]*i+r[5]*n+r[9]*a+r[13])/o,e[2]=(r[2]*i+r[6]*n+r[10]*a+r[14])/o,e};j.transformMat3=function(e,t,r){var i=t[0],n=t[1],a=t[2];return e[0]=i*r[0]+n*r[3]+a*r[6],e[1]=i*r[1]+n*r[4]+a*r[7],e[2]=i*r[2]+n*r[5]+a*r[8],e};j.transformQuat=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[0],s=r[1],l=r[2],h=r[3],u=h*i+s*a-l*n,f=h*n+l*i-o*a,d=h*a+o*n-s*i,c=-o*i-s*n-l*a;return e[0]=u*h+c*-o+f*-l-d*-s,e[1]=f*h+c*-s+d*-o-u*-l,e[2]=d*h+c*-l+u*-s-f*-o,e};j.rotateX=function(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[0],a[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),a[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e};j.rotateY=function(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),a[1]=n[1],a[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e};j.rotateZ=function(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),a[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),a[2]=n[2],e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e};j.forEach=function(){var e=j.create();return function(t,r,i,n,a,o){var s,l;for(r||(r=3),i||(i=0),n?l=Math.min(n*r+i,t.length):l=t.length,s=i;s 1?0:Math.acos(n)};const E=j;N.import(xs);var Te=B.create,fo={};function co(e){return e.material}function Wh(e,t,r){return t.uniforms[r].value}function Xh(e,t,r,i){return r!==i}function Zh(e){return!0}function vo(){}var po={float:M.FLOAT,byte:M.BYTE,ubyte:M.UNSIGNED_BYTE,short:M.SHORT,ushort:M.UNSIGNED_SHORT};function jh(e,t,r){this.availableAttributes=e,this.availableAttributeSymbols=t,this.indicesBuffer=r,this.vao=null}function qh(e){var t,r;this.bind=function(i){t||(t=Pe.createCanvas(),t.width=t.height=1,t.getContext("2d"));var n=i.gl,a=!r;a&&(r=n.createTexture()),n.bindTexture(n.TEXTURE_2D,r),a&&n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t)},this.unbind=function(i){i.gl.bindTexture(i.gl.TEXTURE_2D,null)},this.isRenderable=function(){return!0}}var qt=nt.extend(function(){return{canvas:null,_width:100,_height:100,devicePixelRatio:typeof window<"u"&&window.devicePixelRatio||1,clearColor:[0,0,0,0],clearBit:17664,alpha:!0,depth:!0,stencil:!1,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!1,throwError:!0,gl:null,viewport:{},maxJointNumber:20,__currentFrameBuffer:null,_viewportStack:[],_clearStack:[],_sceneRendering:null}},function(){this.canvas||(this.canvas=Pe.createCanvas());var e=this.canvas;try{var t={alpha:this.alpha,depth:this.depth,stencil:this.stencil,antialias:this.antialias,premultipliedAlpha:this.premultipliedAlpha,preserveDrawingBuffer:this.preserveDrawingBuffer};if(this.gl=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),!this.gl)throw new Error;this._glinfo=new wh(this.gl),this.gl.targetRenderer&&console.error("Already created a renderer"),this.gl.targetRenderer=this,this.resize()}catch(r){throw"Error creating WebGL Context "+r}this._programMgr=new ms(this),this._placeholderTexture=new qh},{resize:function(e,t){var r=this.canvas,i=this.devicePixelRatio;e!=null?(r.style&&(r.style.width=e+"px",r.style.height=t+"px"),r.width=e*i,r.height=t*i,this._width=e,this._height=t):(this._width=r.width/i,this._height=r.height/i),this.setViewport(0,0,this._width,this._height)},getWidth:function(){return this._width},getHeight:function(){return this._height},getViewportAspect:function(){var e=this.viewport;return e.width/e.height},setDevicePixelRatio:function(e){this.devicePixelRatio=e,this.resize(this._width,this._height)},getDevicePixelRatio:function(){return this.devicePixelRatio},getGLExtension:function(e){return this._glinfo.getExtension(e)},getGLParameter:function(e){return this._glinfo.getParameter(e)},setViewport:function(e,t,r,i,n){if(typeof e=="object"){var a=e;e=a.x,t=a.y,r=a.width,i=a.height,n=a.devicePixelRatio}n=n||this.devicePixelRatio,this.gl.viewport(e*n,t*n,r*n,i*n),this.viewport={x:e,y:t,width:r,height:i,devicePixelRatio:n}},saveViewport:function(){this._viewportStack.push(this.viewport)},restoreViewport:function(){this._viewportStack.length>0&&this.setViewport(this._viewportStack.pop())},saveClear:function(){this._clearStack.push({clearBit:this.clearBit,clearColor:this.clearColor})},restoreClear:function(){if(this._clearStack.length>0){var e=this._clearStack.pop();this.clearColor=e.clearColor,this.clearBit=e.clearBit}},bindSceneRendering:function(e){this._sceneRendering=e},render:function(e,t,r,i){var n=this.gl,a=this.clearColor;if(this.clearBit){n.colorMask(!0,!0,!0,!0),n.depthMask(!0);var o=this.viewport,s=!1,l=o.devicePixelRatio;(o.width!==this._width||o.height!==this._height||l&&l!==this.devicePixelRatio||o.x||o.y)&&(s=!0,n.enable(n.SCISSOR_TEST),n.scissor(o.x*l,o.y*l,o.width*l,o.height*l)),n.clearColor(a[0],a[1],a[2],a[3]),n.clear(this.clearBit),s&&n.disable(n.SCISSOR_TEST)}if(r||e.update(!1),e.updateLights(),t=t||e.getMainCamera(),!t){console.error("Can't find camera in the scene.");return}t.update();var h=e.updateRenderList(t,!0);this._sceneRendering=e;var u=h.opaque,f=h.transparent,d=e.material;e.trigger("beforerender",this,e,t,h),i?(this.renderPreZ(u,e,t),n.depthFunc(n.LEQUAL)):n.depthFunc(n.LESS);for(var c=Te(),v=E.create(),p=0;p 0){var s=e[n-1],l=s.joints?s.joints.length:0,h=a.joints?a.joints.length:0;if(h===l&&a.material===s.material&&a.lightGroup===s.lightGroup){a.__program=s.__program;continue}}var u=this._programMgr.getProgram(a,o,t);this.validateProgram(u),a.__program=u}},renderPass:function(e,t,r){this.trigger("beforerenderpass",this,e,t,r),r=r||{},r.getMaterial=r.getMaterial||co,r.getUniform=r.getUniform||Wh,r.isMaterialChanged=r.isMaterialChanged||Xh,r.beforeRender=r.beforeRender||vo,r.afterRender=r.afterRender||vo;var i=r.ifRender||Zh;this.updatePrograms(e,this._sceneRendering,r),r.sortCompare&&e.sort(r.sortCompare);var n=this.viewport,a=n.devicePixelRatio,o=[n.x*a,n.y*a,n.width*a,n.height*a],s=this.devicePixelRatio,l=this.__currentFrameBuffer?[this.__currentFrameBuffer.getTextureWidth(),this.__currentFrameBuffer.getTextureHeight()]:[this._width*s,this._height*s],h=[o[2],o[3]],u=Date.now();t?(B.copy(xe.VIEW,t.viewMatrix.array),B.copy(xe.PROJECTION,t.projectionMatrix.array),B.copy(xe.VIEWINVERSE,t.worldTransform.array)):(B.identity(xe.VIEW),B.identity(xe.PROJECTION),B.identity(xe.VIEWINVERSE)),B.multiply(xe.VIEWPROJECTION,xe.PROJECTION,xe.VIEW),B.invert(xe.PROJECTIONINVERSE,xe.PROJECTION),B.invert(xe.VIEWPROJECTIONINVERSE,xe.VIEWPROJECTION);for(var f=this.gl,d=this._sceneRendering,c,v,p,m,g,x,y,_,w,S,b,A,C=null,P=0;P this.getMaxJointNumber()){var a=n.getSubSkinMatricesTexture(e.__uid__,e.joints);t.useTextureSlot(this,a,r),t.setUniform(i,"1i","skinMatricesTexture",r),t.setUniform(i,"1f","skinMatricesTextureSize",a.width)}else{var o=n.getSubSkinMatrices(e.__uid__,e.joints);t.setUniformOfSemantic(i,"SKIN_MATRIX",o)}},_renderObject:function(e,t,r){var i=this.gl,n=e.geometry,a=e.mode;a==null&&(a=4);var o=null,s=e.isInstancedMesh&&e.isInstancedMesh();if(s&&(o=this.getGLExtension("ANGLE_instanced_arrays"),!o)){console.warn("Device not support ANGLE_instanced_arrays extension");return}var l;if(s&&(l=this._bindInstancedAttributes(e,r,o)),t.indicesBuffer){var h=this.getGLExtension("OES_element_index_uint"),u=h&&n.indices instanceof Uint32Array,f=u?i.UNSIGNED_INT:i.UNSIGNED_SHORT;s?o.drawElementsInstancedANGLE(a,t.indicesBuffer.count,f,0,e.getInstanceCount()):i.drawElements(a,t.indicesBuffer.count,f,0)}else s?o.drawArraysInstancedANGLE(a,0,n.vertexCount,e.getInstanceCount()):i.drawArrays(a,0,n.vertexCount);if(s)for(var d=0;d r?r:e}var ve=Math.atan2,mt=Math.asin,Tr=Math.abs;Z.eulerFromQuat=function(e,t,d){e._dirty=!0,t=t.array;var i=e.array,n=t[0],a=t[1],o=t[2],s=t[3],l=n*n,h=a*a,u=o*o,f=s*s,d=(d||"XYZ").toUpperCase();switch(d){case"XYZ":i[0]=ve(2*(n*s-a*o),f-l-h+u),i[1]=mt(pt(2*(n*o+a*s),-1,1)),i[2]=ve(2*(o*s-n*a),f+l-h-u);break;case"YXZ":i[0]=mt(pt(2*(n*s-a*o),-1,1)),i[1]=ve(2*(n*o+a*s),f-l-h+u),i[2]=ve(2*(n*a+o*s),f-l+h-u);break;case"ZXY":i[0]=mt(pt(2*(n*s+a*o),-1,1)),i[1]=ve(2*(a*s-o*n),f-l-h+u),i[2]=ve(2*(o*s-n*a),f-l+h-u);break;case"ZYX":i[0]=ve(2*(n*s+o*a),f-l-h+u),i[1]=mt(pt(2*(a*s-n*o),-1,1)),i[2]=ve(2*(n*a+o*s),f+l-h-u);break;case"YZX":i[0]=ve(2*(n*s-o*a),f-l+h-u),i[1]=ve(2*(a*s-n*o),f+l-h-u),i[2]=mt(pt(2*(n*a+o*s),-1,1));break;case"XZY":i[0]=ve(2*(n*s+a*o),f-l+h-u),i[1]=ve(2*(n*o+a*s),f+l-h-u),i[2]=mt(pt(2*(o*s-n*a),-1,1));break;default:console.warn("Unkown order: "+d)}return e};Z.eulerFromMat3=function(e,t,v){var i=t.array,n=i[0],a=i[3],o=i[6],s=i[1],l=i[4],h=i[7],u=i[2],f=i[5],d=i[8],c=e.array,v=(v||"XYZ").toUpperCase();switch(v){case"XYZ":c[1]=mt(pt(o,-1,1)),Tr(o)<.99999?(c[0]=ve(-h,d),c[2]=ve(-a,n)):(c[0]=ve(f,l),c[2]=0);break;case"YXZ":c[0]=mt(-pt(h,-1,1)),Tr(h)<.99999?(c[1]=ve(o,d),c[2]=ve(s,l)):(c[1]=ve(-u,n),c[2]=0);break;case"ZXY":c[0]=mt(pt(f,-1,1)),Tr(f)<.99999?(c[1]=ve(-u,d),c[2]=ve(-a,l)):(c[1]=0,c[2]=ve(s,n));break;case"ZYX":c[1]=mt(-pt(u,-1,1)),Tr(u)<.99999?(c[0]=ve(f,d),c[2]=ve(s,n)):(c[0]=0,c[2]=ve(-a,l));break;case"YZX":c[2]=mt(pt(s,-1,1)),Tr(s)<.99999?(c[0]=ve(-h,l),c[1]=ve(-u,n)):(c[0]=0,c[1]=ve(o,d));break;case"XZY":c[2]=mt(-pt(a,-1,1)),Tr(a)<.99999?(c[0]=ve(f,l),c[1]=ve(o,n)):(c[0]=ve(-h,d),c[1]=0);break;default:console.warn("Unkown order: "+v)}return e._dirty=!0,e};Object.defineProperties(Z,{POSITIVE_X:{get:function(){return new Z(1,0,0)}},NEGATIVE_X:{get:function(){return new Z(-1,0,0)}},POSITIVE_Y:{get:function(){return new Z(0,1,0)}},NEGATIVE_Y:{get:function(){return new Z(0,-1,0)}},POSITIVE_Z:{get:function(){return new Z(0,0,1)}},NEGATIVE_Z:{get:function(){return new Z(0,0,-1)}},UP:{get:function(){return new Z(0,1,0)}},ZERO:{get:function(){return new Z}}});const U=Z;var In=1e-5,Zi=function(e,t){this.origin=e||new U,this.direction=t||new U};Zi.prototype={constructor:Zi,intersectPlane:function(e,t){var r=e.normal.array,i=e.distance,n=this.origin.array,a=this.direction.array,o=E.dot(r,a);if(o===0)return null;t||(t=new U);var s=(E.dot(r,n)-i)/o;return E.scaleAndAdd(t.array,n,a,-s),t._dirty=!0,t},mirrorAgainstPlane:function(e){var t=E.dot(e.normal.array,this.direction.array);E.scaleAndAdd(this.direction.array,this.direction.array,e.normal.array,-t*2),this.direction._dirty=!0},distanceToPoint:function(){var e=E.create();return function(t){E.sub(e,t,this.origin.array);var r=E.dot(e,this.direction.array);if(r<0)return E.distance(this.origin.array,t);var i=E.lenSquared(e);return Math.sqrt(i-r*r)}}(),intersectSphere:function(){var e=E.create();return function(t,r,i){var n=this.origin.array,a=this.direction.array;t=t.array,E.sub(e,t,n);var o=E.dot(e,a),s=E.squaredLength(e),l=s-o*o,h=r*r;if(!(l>h)){var u=Math.sqrt(h-l),f=o-u,d=o+u;return i||(i=new U),f<0?d<0?null:(E.scaleAndAdd(i.array,n,a,d),i):(E.scaleAndAdd(i.array,n,a,f),i)}}}(),intersectBoundingBox:function(e,t){var r=this.direction.array,i=this.origin.array,n=e.min.array,a=e.max.array,o=1/r[0],s=1/r[1],l=1/r[2],h,u,f,d,c,v;if(o>=0?(h=(n[0]-i[0])*o,u=(a[0]-i[0])*o):(u=(n[0]-i[0])*o,h=(a[0]-i[0])*o),s>=0?(f=(n[1]-i[1])*s,d=(a[1]-i[1])*s):(d=(n[1]-i[1])*s,f=(a[1]-i[1])*s),h>d||f>u||((f>h||h!==h)&&(h=f),(d=0?(c=(n[2]-i[2])*l,v=(a[2]-i[2])*l):(v=(n[2]-i[2])*l,c=(a[2]-i[2])*l),h>v||c>u)||((c>h||h!==h)&&(h=c),(v=0?h:u;return t||(t=new U),E.scaleAndAdd(t.array,i,r,p),t},intersectTriangle:function(){var e=E.create(),t=E.create(),r=E.create(),i=E.create();return function(n,a,o,s,l,h){var u=this.direction.array,f=this.origin.array;n=n.array,a=a.array,o=o.array,E.sub(e,a,n),E.sub(t,o,n),E.cross(i,t,u);var d=E.dot(e,i);if(s){if(d>-In)return null}else if(d>-In&&d 1)return null;E.cross(i,e,r);var v=E.dot(u,i)/d;if(v<0||v>1||c+v>1)return null;E.cross(i,e,t);var p=-E.dot(r,i)/d;return p<0?null:(l||(l=new U),h&&U.set(h,1-c-v,c,v),E.scaleAndAdd(l.array,f,u,p),l)}}(),applyTransform:function(e){U.add(this.direction,this.direction,this.origin),U.transformMat4(this.origin,this.origin,e),U.transformMat4(this.direction,this.direction,e),U.sub(this.direction,this.direction,this.origin),U.normalize(this.direction,this.direction)},copy:function(e){U.copy(this.origin,e.origin),U.copy(this.direction,e.direction)},clone:function(){var e=new Zi;return e.copy(this),e}};const en=Zi;var J={};J.create=function(){var e=new Ke(4);return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e};J.clone=function(e){var t=new Ke(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t};J.fromValues=function(e,t,r,i){var n=new Ke(4);return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n};J.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e};J.set=function(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e};J.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e};J.subtract=function(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e};J.sub=J.subtract;J.multiply=function(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e};J.mul=J.multiply;J.divide=function(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e};J.div=J.divide;J.min=function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e};J.max=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e};J.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e};J.scaleAndAdd=function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e};J.distance=function(e,t){var r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],a=t[3]-e[3];return Math.sqrt(r*r+i*i+n*n+a*a)};J.dist=J.distance;J.squaredDistance=function(e,t){var r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],a=t[3]-e[3];return r*r+i*i+n*n+a*a};J.sqrDist=J.squaredDistance;J.length=function(e){var t=e[0],r=e[1],i=e[2],n=e[3];return Math.sqrt(t*t+r*r+i*i+n*n)};J.len=J.length;J.squaredLength=function(e){var t=e[0],r=e[1],i=e[2],n=e[3];return t*t+r*r+i*i+n*n};J.sqrLen=J.squaredLength;J.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e};J.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e};J.normalize=function(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r*r+i*i+n*n+a*a;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e[3]=t[3]*o),e};J.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]};J.lerp=function(e,t,r,i){var n=t[0],a=t[1],o=t[2],s=t[3];return e[0]=n+i*(r[0]-n),e[1]=a+i*(r[1]-a),e[2]=o+i*(r[2]-o),e[3]=s+i*(r[3]-s),e};J.random=function(e,t){return t=t||1,e[0]=Mr(),e[1]=Mr(),e[2]=Mr(),e[3]=Mr(),J.normalize(e,e),J.scale(e,e,t),e};J.transformMat4=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3];return e[0]=r[0]*i+r[4]*n+r[8]*a+r[12]*o,e[1]=r[1]*i+r[5]*n+r[9]*a+r[13]*o,e[2]=r[2]*i+r[6]*n+r[10]*a+r[14]*o,e[3]=r[3]*i+r[7]*n+r[11]*a+r[15]*o,e};J.transformQuat=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[0],s=r[1],l=r[2],h=r[3],u=h*i+s*a-l*n,f=h*n+l*i-o*a,d=h*a+o*n-s*i,c=-o*i-s*n-l*a;return e[0]=u*h+c*-o+f*-l-d*-s,e[1]=f*h+c*-s+d*-o-u*-l,e[2]=d*h+c*-l+u*-s-f*-o,e};J.forEach=function(){var e=J.create();return function(t,r,i,n,a,o){var s,l;for(r||(r=4),i||(i=0),n?l=Math.min(n*r+i,t.length):l=t.length,s=i;s .999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(E.cross(e,n,a),i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=1+o,se.normalize(i,i))}}();se.setAxes=function(){var e=ie.create();return function(t,r,i,n){return e[0]=i[0],e[3]=i[1],e[6]=i[2],e[1]=n[0],e[4]=n[1],e[7]=n[2],e[2]=-r[0],e[5]=-r[1],e[8]=-r[2],se.normalize(t,se.fromMat3(t,e))}}();se.clone=G.clone;se.fromValues=G.fromValues;se.copy=G.copy;se.set=G.set;se.identity=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e};se.setAxisAngle=function(e,t,r){r=r*.5;var i=Math.sin(r);return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=Math.cos(r),e};se.add=G.add;se.multiply=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=r[0],l=r[1],h=r[2],u=r[3];return e[0]=i*u+o*s+n*h-a*l,e[1]=n*u+o*l+a*s-i*h,e[2]=a*u+o*h+i*l-n*s,e[3]=o*u-i*s-n*l-a*h,e};se.mul=se.multiply;se.scale=G.scale;se.rotateX=function(e,t,r){r*=.5;var i=t[0],n=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l+o*s,e[1]=n*l+a*s,e[2]=a*l-n*s,e[3]=o*l-i*s,e};se.rotateY=function(e,t,r){r*=.5;var i=t[0],n=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l-a*s,e[1]=n*l+o*s,e[2]=a*l+i*s,e[3]=o*l-n*s,e};se.rotateZ=function(e,t,r){r*=.5;var i=t[0],n=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l+n*s,e[1]=n*l-i*s,e[2]=a*l+o*s,e[3]=o*l-a*s,e};se.calculateW=function(e,t){var r=t[0],i=t[1],n=t[2];return e[0]=r,e[1]=i,e[2]=n,e[3]=Math.sqrt(Math.abs(1-r*r-i*i-n*n)),e};se.dot=G.dot;se.lerp=G.lerp;se.slerp=function(e,t,r,i){var n=t[0],a=t[1],o=t[2],s=t[3],l=r[0],h=r[1],u=r[2],f=r[3],d,c,v,p,m;return c=n*l+a*h+o*u+s*f,c<0&&(c=-c,l=-l,h=-h,u=-u,f=-f),1-c>1e-6?(d=Math.acos(c),v=Math.sin(d),p=Math.sin((1-i)*d)/v,m=Math.sin(i*d)/v):(p=1-i,m=i),e[0]=p*n+m*l,e[1]=p*a+m*h,e[2]=p*o+m*u,e[3]=p*s+m*f,e};se.invert=function(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r*r+i*i+n*n+a*a,s=o?1/o:0;return e[0]=-r*s,e[1]=-i*s,e[2]=-n*s,e[3]=a*s,e};se.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e};se.length=G.length;se.len=se.length;se.squaredLength=G.squaredLength;se.sqrLen=se.squaredLength;se.normalize=G.normalize;se.fromMat3=function(e,t){var r=t[0]+t[4]+t[8],i;if(r>0)i=Math.sqrt(r+1),e[3]=.5*i,i=.5/i,e[0]=(t[5]-t[7])*i,e[1]=(t[6]-t[2])*i,e[2]=(t[1]-t[3])*i;else{var n=0;t[4]>t[0]&&(n=1),t[8]>t[n*3+n]&&(n=2);var a=(n+1)%3,o=(n+2)%3;i=Math.sqrt(t[n*3+n]-t[a*3+a]-t[o*3+o]+1),e[n]=.5*i,i=.5/i,e[3]=(t[a*3+o]-t[o*3+a])*i,e[a]=(t[a*3+n]+t[n*3+a])*i,e[o]=(t[o*3+n]+t[n*3+o])*i}return e};const Y=se;var ye=function(){this._axisX=new U,this._axisY=new U,this._axisZ=new U,this.array=B.create(),this._dirty=!0};ye.prototype={constructor:ye,setArray:function(e){for(var t=0;t 0){var t=this.min,r=this.max,i=t.array,n=r.array;Ii(i,e[0]),Ii(n,e[0]);for(var a=1;a n[0]&&(n[0]=o[0]),o[1]>n[1]&&(n[1]=o[1]),o[2]>n[2]&&(n[2]=o[2])}t._dirty=!0,r._dirty=!0}},union:function(e){var t=this.min,r=this.max;return E.min(t.array,t.array,e.min.array),E.max(r.array,r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},intersection:function(e){var t=this.min,r=this.max;return E.max(t.array,t.array,e.min.array),E.min(r.array,r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},intersectBoundingBox:function(e){var t=this.min.array,r=this.max.array,i=e.min.array,n=e.max.array;return!(t[0]>n[0]||t[1]>n[1]||t[2]>n[2]||r[0]=n[0]&&r[1]>=n[1]&&r[2]>=n[2]},containPoint:function(e){var t=this.min.array,r=this.max.array,i=e.array;return t[0]<=i[0]&&t[1]<=i[1]&&t[2]<=i[2]&&r[0]>=i[0]&&r[1]>=i[1]&&r[2]>=i[2]},isFinite:function(){var e=this.min.array,t=this.max.array;return isFinite(e[0])&&isFinite(e[1])&&isFinite(e[2])&&isFinite(t[0])&&isFinite(t[1])&&isFinite(t[2])},applyTransform:function(e){this.transformFrom(this,e)},transformFrom:function(){var e=E.create(),t=E.create(),r=E.create(),i=E.create(),n=E.create(),a=E.create();return function(o,s){var l=o.min.array,h=o.max.array,u=s.array;return e[0]=u[0]*l[0],e[1]=u[1]*l[0],e[2]=u[2]*l[0],t[0]=u[0]*h[0],t[1]=u[1]*h[0],t[2]=u[2]*h[0],r[0]=u[4]*l[1],r[1]=u[5]*l[1],r[2]=u[6]*l[1],i[0]=u[4]*h[1],i[1]=u[5]*h[1],i[2]=u[6]*h[1],n[0]=u[8]*l[2],n[1]=u[9]*l[2],n[2]=u[10]*l[2],a[0]=u[8]*h[2],a[1]=u[9]*h[2],a[2]=u[10]*h[2],l=this.min.array,h=this.max.array,l[0]=Math.min(e[0],t[0])+Math.min(r[0],i[0])+Math.min(n[0],a[0])+u[12],l[1]=Math.min(e[1],t[1])+Math.min(r[1],i[1])+Math.min(n[1],a[1])+u[13],l[2]=Math.min(e[2],t[2])+Math.min(r[2],i[2])+Math.min(n[2],a[2])+u[14],h[0]=Math.max(e[0],t[0])+Math.max(r[0],i[0])+Math.max(n[0],a[0])+u[12],h[1]=Math.max(e[1],t[1])+Math.max(r[1],i[1])+Math.max(n[1],a[1])+u[13],h[2]=Math.max(e[2],t[2])+Math.max(r[2],i[2])+Math.max(n[2],a[2])+u[14],this.min._dirty=!0,this.max._dirty=!0,this}}(),applyProjection:function(e){var t=this.min.array,r=this.max.array,i=e.array,n=t[0],a=t[1],o=t[2],s=r[0],l=r[1],h=t[2],u=r[0],f=r[1],d=r[2];if(i[15]===1)t[0]=i[0]*n+i[12],t[1]=i[5]*a+i[13],r[2]=i[10]*o+i[14],r[0]=i[0]*u+i[12],r[1]=i[5]*f+i[13],t[2]=i[10]*d+i[14];else{var c=-1/o;t[0]=i[0]*n*c,t[1]=i[5]*a*c,r[2]=(i[10]*o+i[14])*c,c=-1/h,r[0]=i[0]*s*c,r[1]=i[5]*l*c,c=-1/d,t[2]=(i[10]*d+i[14])*c}return this.min._dirty=!0,this.max._dirty=!0,this},updateVertices:function(){var e=this.vertices;if(!e){e=[];for(var t=0;t<8;t++)e[t]=E.fromValues(0,0,0);this.vertices=e}var r=this.min.array,i=this.max.array;return Ht(e[0],r[0],r[1],r[2]),Ht(e[1],r[0],i[1],r[2]),Ht(e[2],i[0],r[1],r[2]),Ht(e[3],i[0],i[1],r[2]),Ht(e[4],r[0],r[1],i[2]),Ht(e[5],r[0],i[1],i[2]),Ht(e[6],i[0],r[1],i[2]),Ht(e[7],i[0],i[1],i[2]),this},copy:function(e){var t=this.min,r=this.max;return Ii(t.array,e.min.array),Ii(r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},clone:function(){var e=new ji;return e.copy(this),e}};const tt=ji;var Yh=0,Kh=nt.extend({name:"",position:null,rotation:null,scale:null,worldTransform:null,localTransform:null,autoUpdateLocalTransform:!0,_parent:null,_scene:null,_needsUpdateWorldTransform:!0,_inIterating:!1,__depth:0},function(){this.name||(this.name=(this.type||"NODE")+"_"+Yh++),this.position||(this.position=new U),this.rotation||(this.rotation=new Ts),this.scale||(this.scale=new U(1,1,1)),this.worldTransform=new k,this.localTransform=new k,this._children=[]},{target:null,invisible:!1,isSkinnedMesh:function(){return!1},isRenderable:function(){return!1},setName:function(e){var t=this._scene;if(t){var r=t._nodeRepository;delete r[this.name],r[e]=this}this.name=e},add:function(e){var t=e._parent;if(t!==this){t&&t.remove(e),e._parent=this,this._children.push(e);var r=this._scene;r&&r!==e.scene&&e.traverse(this._addSelfToScene,this),e._needsUpdateWorldTransform=!0}},remove:function(e){var t=this._children,r=t.indexOf(e);r<0||(t.splice(r,1),e._parent=null,this._scene&&e.traverse(this._removeSelfFromScene,this))},removeAll:function(){for(var e=this._children,t=0;t 0},beforeRender:function(e){},afterRender:function(e,t){},getBoundingBox:function(e,t){return t=Lt.prototype.getBoundingBox.call(this,e,t),this.geometry&&this.geometry.boundingBox&&t.union(this.geometry.boundingBox),t},clone:function(){var e=["castShadow","receiveShadow","mode","culling","cullFace","frontFace","frustumCulling","renderOrder","lineWidth","ignorePicking","ignorePreZ","ignoreGBuffer"];return function(){var t=Lt.prototype.clone.call(this);t.geometry=this.geometry,t.material=this.material;for(var r=0;r =0&&w[y]>1e-4&&(E.transformMat4(A,_,g[S[y]]),E.scaleAndAdd(b,b,A,w[y]));C.set(x,b)}}for(var x=0;x >t;return e+1},dispose:function(e){var t=this._cache;t.use(e.__uid__);var r=t.get("webgl_texture");r&&e.gl.deleteTexture(r),t.deleteContext(e.__uid__)},isRenderable:function(){},isPowerOfTwo:function(){}});Object.defineProperty(ne.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e}});Object.defineProperty(ne.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e}});ne.BYTE=M.BYTE;ne.UNSIGNED_BYTE=M.UNSIGNED_BYTE;ne.SHORT=M.SHORT;ne.UNSIGNED_SHORT=M.UNSIGNED_SHORT;ne.INT=M.INT;ne.UNSIGNED_INT=M.UNSIGNED_INT;ne.FLOAT=M.FLOAT;ne.HALF_FLOAT=36193;ne.UNSIGNED_INT_24_8_WEBGL=34042;ne.DEPTH_COMPONENT=M.DEPTH_COMPONENT;ne.DEPTH_STENCIL=M.DEPTH_STENCIL;ne.ALPHA=M.ALPHA;ne.RGB=M.RGB;ne.RGBA=M.RGBA;ne.LUMINANCE=M.LUMINANCE;ne.LUMINANCE_ALPHA=M.LUMINANCE_ALPHA;ne.SRGB=35904;ne.SRGB_ALPHA=35906;ne.COMPRESSED_RGB_S3TC_DXT1_EXT=33776;ne.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777;ne.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778;ne.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779;ne.NEAREST=M.NEAREST;ne.LINEAR=M.LINEAR;ne.NEAREST_MIPMAP_NEAREST=M.NEAREST_MIPMAP_NEAREST;ne.LINEAR_MIPMAP_NEAREST=M.LINEAR_MIPMAP_NEAREST;ne.NEAREST_MIPMAP_LINEAR=M.NEAREST_MIPMAP_LINEAR;ne.LINEAR_MIPMAP_LINEAR=M.LINEAR_MIPMAP_LINEAR;ne.REPEAT=M.REPEAT;ne.CLAMP_TO_EDGE=M.CLAMP_TO_EDGE;ne.MIRRORED_REPEAT=M.MIRRORED_REPEAT;const W=ne;var ct=aa.extend({skeleton:null,joints:null},function(){this.joints||(this.joints=[])},{offsetMatrix:null,isInstancedMesh:function(){return!1},isSkinnedMesh:function(){return!!(this.skeleton&&this.joints&&this.joints.length>0)},clone:function(){var e=aa.prototype.clone.call(this);return e.skeleton=this.skeleton,this.joints&&(e.joints=this.joints.slice()),e}});ct.POINTS=M.POINTS;ct.LINES=M.LINES;ct.LINE_LOOP=M.LINE_LOOP;ct.LINE_STRIP=M.LINE_STRIP;ct.TRIANGLES=M.TRIANGLES;ct.TRIANGLE_STRIP=M.TRIANGLE_STRIP;ct.TRIANGLE_FAN=M.TRIANGLE_FAN;ct.BACK=M.BACK;ct.FRONT=M.FRONT;ct.FRONT_AND_BACK=M.FRONT_AND_BACK;ct.CW=M.CW;ct.CCW=M.CCW;const lr=ct;var mn={};mn.isPowerOfTwo=function(e){return(e&e-1)===0};mn.nextPowerOfTwo=function(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e++,e};mn.nearestPowerOfTwo=function(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))};const ws=mn;var mo=ws.isPowerOfTwo;function go(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))}function $h(e,t){var r=go(e.width),i=go(e.height);t=t||document.createElement("canvas"),t.width=r,t.height=i;var n=t.getContext("2d");return n.drawImage(e.image,0,0,r,i),t}var Sa=W.extend(function(){return{image:null,pixels:null,mipmaps:[],convertToPOT:!1}},{textureType:"texture2D",update:function(e){var t=e.gl;t.bindTexture(t.TEXTURE_2D,this._cache.get("webgl_texture")),this.updateCommon(e);var r=this.format,i=this.type,n=!!(this.convertToPOT&&!this.mipmaps.length&&this.image&&(this.wrapS===W.REPEAT||this.wrapT===W.REPEAT)&&this.NPOT);t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,n?this.wrapS:this.getAvailableWrapS()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,n?this.wrapT:this.getAvailableWrapT()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,n?this.magFilter:this.getAvailableMagFilter()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,n?this.minFilter:this.getAvailableMinFilter());var a=e.getGLExtension("EXT_texture_filter_anisotropic");if(a&&this.anisotropic>1&&t.texParameterf(t.TEXTURE_2D,a.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),i===36193){var o=e.getGLExtension("OES_texture_half_float");o||(i=M.FLOAT)}if(this.mipmaps.length)for(var s=this.width,l=this.height,h=0;h =W.COMPRESSED_RGB_S3TC_DXT1_EXT?e.compressedTexImage2D(e.TEXTURE_2D,r,a,i,n,0,t.pixels):e.texImage2D(e.TEXTURE_2D,r,a,i,n,0,a,o,t.pixels)},generateMipmap:function(e){var t=e.gl;this.useMipmap&&!this.NPOT&&(t.bindTexture(t.TEXTURE_2D,this._cache.get("webgl_texture")),t.generateMipmap(t.TEXTURE_2D))},isPowerOfTwo:function(){return mo(this.width)&&mo(this.height)},isRenderable:function(){return this.image?this.image.width>0&&this.image.height>0:!!(this.width&&this.height)},bind:function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,this.getWebGLTexture(e))},unbind:function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,null)},load:function(e,t){var r=Pe.createImage();t&&(r.crossOrigin=t);var i=this;return r.onload=function(){i.dirty(),i.trigger("success",i)},r.onerror=function(){i.trigger("error",i)},r.src=e,this.image=r,this}});Object.defineProperty(Sa.prototype,"width",{get:function(){return this.image?this.image.width:this._width},set:function(e){this.image?console.warn("Texture from image can't set width"):(this._width!==e&&this.dirty(),this._width=e)}});Object.defineProperty(Sa.prototype,"height",{get:function(){return this.image?this.image.height:this._height},set:function(e){this.image?console.warn("Texture from image can't set height"):(this._height!==e&&this.dirty(),this._height=e)}});const $=Sa;function Ss(e){return{byte:Pe.Int8Array,ubyte:Pe.Uint8Array,short:Pe.Int16Array,ushort:Pe.Uint16Array}[e]||Pe.Float32Array}function Bn(e){return"attr_"+e}function Ir(e,t,r,i){switch(this.name=e,this.type=t,this.size=r,this.semantic=i||"",this.value=null,r){case 1:this.get=function(n){return this.value[n]},this.set=function(n,a){this.value[n]=a},this.copy=function(n,a){this.value[n]=this.value[n]};break;case 2:this.get=function(n,a){var o=this.value;return a[0]=o[n*2],a[1]=o[n*2+1],a},this.set=function(n,a){var o=this.value;o[n*2]=a[0],o[n*2+1]=a[1]},this.copy=function(n,a){var o=this.value;a*=2,n*=2,o[n]=o[a],o[n+1]=o[a+1]};break;case 3:this.get=function(n,a){var o=n*3,s=this.value;return a[0]=s[o],a[1]=s[o+1],a[2]=s[o+2],a},this.set=function(n,a){var o=n*3,s=this.value;s[o]=a[0],s[o+1]=a[1],s[o+2]=a[2]},this.copy=function(n,a){var o=this.value;a*=3,n*=3,o[n]=o[a],o[n+1]=o[a+1],o[n+2]=o[a+2]};break;case 4:this.get=function(n,a){var o=this.value,s=n*4;return a[0]=o[s],a[1]=o[s+1],a[2]=o[s+2],a[3]=o[s+3],a},this.set=function(n,a){var o=this.value,s=n*4;o[s]=a[0],o[s+1]=a[1],o[s+2]=a[2],o[s+3]=a[3]},this.copy=function(n,a){var o=this.value;a*=4,n*=4,o[n]=o[a],o[n+1]=o[a+1],o[n+2]=o[a+2],o[n+3]=o[a+3]}}}Ir.prototype.init=function(e){if(!this.value||this.value.length!==e*this.size){var t=Ss(this.type);this.value=new t(e*this.size)}};Ir.prototype.fromArray=function(e){var t=Ss(this.type),r;if(e[0]&&e[0].length){var i=0,n=this.size;r=new t(e.length*n);for(var a=0;a =0){t||(t=[]);var r=this.indices;return t[0]=r[e*3],t[1]=r[e*3+1],t[2]=r[e*3+2],t}},setTriangleIndices:function(e,t){var r=this.indices;r[e*3]=t[0],r[e*3+1]=t[1],r[e*3+2]=t[2]},isUseIndices:function(){return!!this.indices},initIndicesFromArray:function(e){var t,r=this.vertexCount>65535?Pe.Uint32Array:Pe.Uint16Array;if(e[0]&&e[0].length){var i=0,n=3;t=new r(e.length*n);for(var a=0;a =0?(t.splice(r,1),delete this.attributes[e],!0):!1},getAttribute:function(e){return this.attributes[e]},getEnabledAttributes:function(){var e=this._enabledAttributes,t=this._attributeList;if(e)return e;for(var r=[],i=this.vertexCount,n=0;n a[0]&&(a[0]=s),l>a[1]&&(a[1]=l),h>a[2]&&(a[2]=h)}r._dirty=!0,i._dirty=!0}},generateVertexNormals:function(){if(!!this.vertexCount){var e=this.indices,t=this.attributes,r=t.position.value,i=t.normal.value;if(!i||i.length!==r.length)i=t.normal.value=new Pe.Float32Array(r.length);else for(var n=0;n 65535&&(this.indices=new Pe.Uint32Array(this.indices));for(var e=this.attributes,t=this.indices,r=this.getEnabledAttributes(),i={},n=0;n this.distance,n=1;n<8;n++)if(E.dot(t[n].array,r)>this.distance!=i)return!0},intersectLine:function(){var e=E.create();return function(t,r,i){var n=this.distanceToPoint(t),a=this.distanceToPoint(r);if(n>0&&a>0||n<0&&a<0)return null;var o=this.normal.array,s=this.distance,l=t.array;E.sub(e,r.array,t.array),E.normalize(e,e);var h=E.dot(o,e);if(h===0)return null;i||(i=new U);var u=(E.dot(o,l)-s)/h;return E.scaleAndAdd(i.array,l,e,-u),i._dirty=!0,i}}(),applyTransform:function(){var e=B.create(),t=G.create(),r=G.create();return r[3]=1,function(i){i=i.array,E.scale(r,this.normal.array,this.distance),G.transformMat4(r,r,i),this.distance=E.dot(r,this.normal.array),B.invert(e,i),B.transpose(e,e),t[3]=0,E.copy(t,this.normal.array),G.transformMat4(t,t,e),E.copy(this.normal.array,t)}}(),copy:function(e){E.copy(this.normal.array,e.normal.array),this.normal._dirty=!0,this.distance=e.distance},clone:function(){var e=new Yi;return e.copy(this),e}};const Cs=Yi;var Le=E.set,yo=E.copy,xo=E.transformMat4,Un=Math.min,Gn=Math.max,Ls=function(){this.planes=[];for(var e=0;e<6;e++)this.planes.push(new Cs);this.boundingBox=new tt,this.vertices=[];for(var e=0;e<8;e++)this.vertices[e]=E.fromValues(0,0,0)};Ls.prototype={setFromProjection:function(e){var t=this.planes,r=e.array,i=r[0],n=r[1],a=r[2],o=r[3],s=r[4],l=r[5],h=r[6],u=r[7],f=r[8],d=r[9],c=r[10],v=r[11],p=r[12],m=r[13],g=r[14],x=r[15];Le(t[0].normal.array,o-i,u-s,v-f),t[0].distance=-(x-p),t[0].normalize(),Le(t[1].normal.array,o+i,u+s,v+f),t[1].distance=-(x+p),t[1].normalize(),Le(t[2].normal.array,o+n,u+l,v+d),t[2].distance=-(x+m),t[2].normalize(),Le(t[3].normal.array,o-n,u-l,v-d),t[3].distance=-(x-m),t[3].normalize(),Le(t[4].normal.array,o-a,u-h,v-c),t[4].distance=-(x-g),t[4].normalize(),Le(t[5].normal.array,o+a,u+h,v+c),t[5].distance=-(x+g),t[5].normalize();var y=this.boundingBox,_=this.vertices;if(x===0){var w=l/i,S=-g/(c-1),b=-g/(c+1),A=-b/l,C=-S/l;y.min.set(-A*w,-A,b),y.max.set(A*w,A,S),Le(_[0],-A*w,-A,b),Le(_[1],-A*w,A,b),Le(_[2],A*w,-A,b),Le(_[3],A*w,A,b),Le(_[4],-C*w,-C,S),Le(_[5],-C*w,C,S),Le(_[6],C*w,-C,S),Le(_[7],C*w,C,S)}else{var P=(-1-p)/i,L=(1-p)/i,R=(1-m)/l,I=(-1-m)/l,D=(-1-g)/c,O=(1-g)/c;y.min.set(Math.min(P,L),Math.min(I,R),Math.min(O,D)),y.max.set(Math.max(L,P),Math.max(R,I),Math.max(D,O));var z=y.min.array,V=y.max.array;Le(_[0],z[0],z[1],z[2]),Le(_[1],z[0],V[1],z[2]),Le(_[2],V[0],z[1],z[2]),Le(_[3],V[0],V[1],z[2]),Le(_[4],z[0],z[1],V[2]),Le(_[5],z[0],V[1],V[2]),Le(_[6],V[0],z[1],V[2]),Le(_[7],V[0],V[1],V[2])}},getTransformedBoundingBox:function(){var e=E.create();return function(t,r){var i=this.vertices,n=r.array,a=t.min,o=t.max,s=a.array,l=o.array,h=i[0];xo(e,h,n),yo(s,e),yo(l,e);for(var u=1;u<8;u++)h=i[u],xo(e,h,n),s[0]=Un(e[0],s[0]),s[1]=Un(e[1],s[1]),s[2]=Un(e[2],s[2]),l[0]=Gn(e[0],l[0]),l[1]=Gn(e[1],l[1]),l[2]=Gn(e[2],l[2]);return a._dirty=!0,o._dirty=!0,t}}()};const Ea=Ls;var iu=Lt.extend(function(){return{projectionMatrix:new k,invProjectionMatrix:new k,viewMatrix:new k,frustum:new Ea}},function(){this.update(!0)},{update:function(e){Lt.prototype.update.call(this,e),k.invert(this.viewMatrix,this.worldTransform),this.updateProjectionMatrix(),k.invert(this.invProjectionMatrix,this.projectionMatrix),this.frustum.setFromProjection(this.projectionMatrix)},setViewMatrix:function(e){k.copy(this.viewMatrix,e),k.invert(this.worldTransform,e),this.decomposeWorldTransform()},decomposeProjectionMatrix:function(){},setProjectionMatrix:function(e){k.copy(this.projectionMatrix,e),k.invert(this.invProjectionMatrix,e),this.decomposeProjectionMatrix()},updateProjectionMatrix:function(){},castRay:function(){var e=G.create();return function(t,r){var i=r!==void 0?r:new tn,n=t.array[0],a=t.array[1];return G.set(e,n,a,-1,1),G.transformMat4(e,e,this.invProjectionMatrix.array),G.transformMat4(e,e,this.worldTransform.array),E.scale(i.origin.array,e,1/e[3]),G.set(e,n,a,1,1),G.transformMat4(e,e,this.invProjectionMatrix.array),G.transformMat4(e,e,this.worldTransform.array),E.scale(e,e,1/e[3]),E.sub(i.direction.array,e,i.origin.array),E.normalize(i.direction.array,i.direction.array),i.direction._dirty=!0,i.origin._dirty=!0,i}}()});const Br=iu;var nu=B.create(),To=B.create(),zn={};function au(e){var t=[],r=Object.keys(e);r.sort();for(var i=0;i 0&&console.warn("Found multiple camera in one scene. Use the fist one."),this._cameraList.push(e)):e instanceof wt&&this.lights.push(e),e.name&&(this._nodeRepository[e.name]=e)},removeFromScene:function(e){var t;e instanceof Br?(t=this._cameraList.indexOf(e),t>=0&&this._cameraList.splice(t,1)):e instanceof wt&&(t=this.lights.indexOf(e),t>=0&&this.lights.splice(t,1)),e.name&&delete this._nodeRepository[e.name]},getNode:function(e){return this._nodeRepository[e]},setMainCamera:function(e){var t=this._cameraList.indexOf(e);t>=0&&this._cameraList.splice(t,1),this._cameraList.unshift(e)},getMainCamera:function(){return this._cameraList[0]},getLights:function(){return this.lights},updateLights:function(){var e=this.lights;this._previousLightNumber=this._lightNumber;for(var t={},r=0;r 0&&this._doUpdateRenderList(o,t,r,i,n)}},isFrustumCulled:function(){var e=new tt,t=new k;return function(r,i,n){var a=r.boundingBox;if(a||(r.skeleton&&r.skeleton.boundingBox?a=r.skeleton.boundingBox:a=r.geometry.boundingBox),!a)return!1;if(t.array=n,e.transformFrom(a,t),r.castShadow&&this.viewBoundingBoxLastFrame.union(e),r.frustumCulling){if(!e.intersectBoundingBox(i.frustum.boundingBox))return!0;t.array=i.projectionMatrix.array,e.max.array[2]>0&&e.min.array[2]<0&&(e.max.array[2]=-1e-20),e.applyProjection(t);var o=e.min.array,s=e.max.array;if(s[0]<-1||o[0]>1||s[1]<-1||o[1]>1||s[2]<-1||o[2]>1)return!0}return!1}}(),_updateLightUniforms:function(){var e=this.lights;e.sort(su);var t=this._lightUniforms;for(var r in t)for(var i in t[r])t[r][i].value.length=0;for(var n=0;n 1&&t.texParameterf(t.TEXTURE_CUBE_MAP,n.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),i===36193){var a=e.getGLExtension("OES_texture_half_float");a||(i=M.FLOAT)}if(this.mipmaps.length)for(var o=this.width,s=this.height,l=0;l 0&&e.height>0}const vi=ba;var hu=Br.extend({fov:50,aspect:1,near:.1,far:2e3},{updateProjectionMatrix:function(){var e=this.fov/180*Math.PI;this.projectionMatrix.perspective(e,this.aspect,this.near,this.far)},decomposeProjectionMatrix:function(){var e=this.projectionMatrix.array,t=Math.atan(1/e[5])*2;this.fov=t/Math.PI*180,this.aspect=e[5]/e[0],this.near=e[14]/(e[10]-1),this.far=e[14]/(e[10]+1)},clone:function(){var e=Br.prototype.clone.call(this);return e.fov=this.fov,e.aspect=this.aspect,e.near=this.near,e.far=this.far,e}});const He=hu;var Fi="framebuffer",It="renderbuffer",wo=It+"_width",So=It+"_height",Hn=It+"_attached",Vn="depthtexture_attached",tr=M.FRAMEBUFFER,ti=M.RENDERBUFFER,si=M.DEPTH_ATTACHMENT,Ms=M.COLOR_ATTACHMENT0,bi=nt.extend({depthBuffer:!0,viewport:null,_width:0,_height:0,_textures:null,_boundRenderer:null},function(){this._cache=new Sa,this._textures={}},{getTextureWidth:function(){return this._width},getTextureHeight:function(){return this._height},bind:function(e){if(e.__currentFrameBuffer){if(e.__currentFrameBuffer===this)return;console.warn("Renderer already bound with another framebuffer. Unbind it first")}e.__currentFrameBuffer=this;var t=e.gl;t.bindFramebuffer(tr,this._getFrameBufferGL(e)),this._boundRenderer=e;var r=this._cache;r.put("viewport",e.viewport);var i=!1,n,a;for(var o in this._textures){i=!0;var s=this._textures[o];s&&(n=s.texture.width,a=s.texture.height,this._doAttach(e,s.texture,o,s.target))}this._width=n,this._height=a,!i&&this.depthBuffer&&console.error("Must attach texture before bind, or renderbuffer may have incorrect width and height."),this.viewport?e.setViewport(this.viewport):e.setViewport(0,0,n,a,1);var l=r.get("attached_textures");if(l){for(var o in l)if(!this._textures[o]){var h=l[o];this._doDetach(t,o,h)}}if(!r.get(Vn)&&this.depthBuffer){r.miss(It)&&r.put(It,t.createRenderbuffer());var u=r.get(It);(n!==r.get(wo)||a!==r.get(So))&&(t.bindRenderbuffer(ti,u),t.renderbufferStorage(ti,t.DEPTH_COMPONENT16,n,a),r.put(wo,n),r.put(So,a),t.bindRenderbuffer(ti,null)),r.get(Hn)||(t.framebufferRenderbuffer(tr,si,ti,u),r.put(Hn,!0))}},unbind:function(e){e.__currentFrameBuffer=null;var t=e.gl;t.bindFramebuffer(tr,null),this._boundRenderer=null,this._cache.use(e.__uid__);var r=this._cache.get("viewport");r&&e.setViewport(r),this.updateMipmap(e)},updateMipmap:function(e){var t=e.gl;for(var r in this._textures){var i=this._textures[r];if(i){var n=i.texture;if(!n.NPOT&&n.useMipmap&&n.minFilter===W.LINEAR_MIPMAP_LINEAR){var a=n.textureType==="textureCube"?M.TEXTURE_CUBE_MAP:M.TEXTURE_2D;t.bindTexture(a,n.getWebGLTexture(e)),t.generateMipmap(a),t.bindTexture(a,null)}}}},checkStatus:function(e){return e.checkFramebufferStatus(tr)},_getFrameBufferGL:function(e){var t=this._cache;return t.use(e.__uid__),t.miss(Fi)&&t.put(Fi,e.gl.createFramebuffer()),t.get(Fi)},attach:function(e,t,r){if(!e.width)throw new Error("The texture attached to color buffer is not a valid.");t=t||Ms,r=r||M.TEXTURE_2D;var i=this._boundRenderer,n=i&&i.gl,a;if(n){var o=this._cache;o.use(i.__uid__),a=o.get("attached_textures")}var s=this._textures[t];if(!(s&&s.target===r&&s.texture===e&&a&&a[t]!=null)){var l=!0;i&&(l=this._doAttach(i,e,t,r),this.viewport||i.setViewport(0,0,e.width,e.height,1)),l&&(this._textures[t]=this._textures[t]||{},this._textures[t].texture=e,this._textures[t].target=r)}},_doAttach:function(e,t,r,i){var n=e.gl,a=t.getWebGLTexture(e),o=this._cache.get("attached_textures");if(o&&o[r]){var s=o[r];if(s.texture===t&&s.target===i)return}r=+r;var l=!0;if(r===si||r===M.DEPTH_STENCIL_ATTACHMENT){var h=e.getGLExtension("WEBGL_depth_texture");if(h||(console.error("Depth texture is not supported by the browser"),l=!1),t.format!==M.DEPTH_COMPONENT&&t.format!==M.DEPTH_STENCIL&&(console.error("The texture attached to depth buffer is not a valid."),l=!1),l){var u=this._cache.get(It);u&&(n.framebufferRenderbuffer(tr,si,ti,null),n.deleteRenderbuffer(u),this._cache.put(It,!1)),this._cache.put(Hn,!1),this._cache.put(Vn,!0)}}return n.framebufferTexture2D(tr,r,i,a,0),o||(o={},this._cache.put("attached_textures",o)),o[r]=o[r]||{},o[r].texture=t,o[r].target=i,l},_doDetach:function(e,t,r){e.framebufferTexture2D(tr,t,r,null,0);var i=this._cache.get("attached_textures");i&&i[t]&&(i[t]=null),(t===si||t===M.DEPTH_STENCIL_ATTACHMENT)&&this._cache.put(Vn,!1)},detach:function(e,t){if(this._textures[e]=null,this._boundRenderer){var r=this._cache;r.use(this._boundRenderer.__uid__),this._doDetach(this._boundRenderer.gl,e,t)}},dispose:function(e){var t=e.gl,r=this._cache;r.use(e.__uid__);var i=r.get(It);i&&t.deleteRenderbuffer(i);var n=r.get(Fi);n&&t.deleteFramebuffer(n),r.deleteContext(e.__uid__),this._textures={}}});bi.DEPTH_ATTACHMENT=si;bi.COLOR_ATTACHMENT0=Ms;bi.STENCIL_ATTACHMENT=M.STENCIL_ATTACHMENT;bi.DEPTH_STENCIL_ATTACHMENT=M.DEPTH_STENCIL_ATTACHMENT;const qe=bi;var uu=["px","nx","py","ny","pz","nz"],fu=nt.extend(function(){var e={position:new U,far:1e3,near:.1,texture:null,shadowMapPass:null},t=e._cameras={px:new He({fov:90}),nx:new He({fov:90}),py:new He({fov:90}),ny:new He({fov:90}),pz:new He({fov:90}),nz:new He({fov:90})};return t.px.lookAt(U.POSITIVE_X,U.NEGATIVE_Y),t.nx.lookAt(U.NEGATIVE_X,U.NEGATIVE_Y),t.py.lookAt(U.POSITIVE_Y,U.POSITIVE_Z),t.ny.lookAt(U.NEGATIVE_Y,U.NEGATIVE_Z),t.pz.lookAt(U.POSITIVE_Z,U.NEGATIVE_Y),t.nz.lookAt(U.NEGATIVE_Z,U.NEGATIVE_Y),e._frameBuffer=new qe,e},{getCamera:function(e){return this._cameras[e]},render:function(e,t,r){var i=e.gl;r||t.update();for(var n=this.texture.width,a=2*Math.atan(n/(n-.5))/Math.PI*180,o=0;o<6;o++){var s=uu[o],l=this._cameras[s];if(U.copy(l.position,this.position),l.far=this.far,l.near=this.near,l.fov=a,this.shadowMapPass){l.update();var h=t.getBoundingBox();h.applyTransform(l.viewMatrix),t.viewBoundingBoxLastFrame.copy(h),this.shadowMapPass.render(e,t,l,!0)}this._frameBuffer.attach(this.texture,i.COLOR_ATTACHMENT0,i.TEXTURE_CUBE_MAP_POSITIVE_X+o),this._frameBuffer.bind(e),e.render(t,l,!0),this._frameBuffer.unbind(e)}},dispose:function(e){this._frameBuffer.dispose(e)}});const Ca=fu;var cu=oe.extend({dynamic:!1,widthSegments:1,heightSegments:1},function(){this.build()},{build:function(){for(var e=this.heightSegments,t=this.widthSegments,r=this.attributes,i=[],n=[],a=[],o=[],s=0;s<=e;s++)for(var l=s/e,h=0;h<=t;h++){var u=h/t;if(i.push([2*u-1,2*l-1,0]),n&&n.push([u,l]),a&&a.push([0,0,1]),h this.distance,n=1;n<8;n++)if(E.dot(t[n].array,r)>this.distance!=i)return!0},intersectLine:function(){var e=E.create();return function(t,r,i){var n=this.distanceToPoint(t),a=this.distanceToPoint(r);if(n>0&&a>0||n<0&&a<0)return null;var o=this.normal.array,s=this.distance,l=t.array;E.sub(e,r.array,t.array),E.normalize(e,e);var h=E.dot(o,e);if(h===0)return null;i||(i=new U);var u=(E.dot(o,l)-s)/h;return E.scaleAndAdd(i.array,l,e,-u),i._dirty=!0,i}}(),applyTransform:function(){var e=B.create(),t=G.create(),r=G.create();return r[3]=1,function(i){i=i.array,E.scale(r,this.normal.array,this.distance),G.transformMat4(r,r,i),this.distance=E.dot(r,this.normal.array),B.invert(e,i),B.transpose(e,e),t[3]=0,E.copy(t,this.normal.array),G.transformMat4(t,t,e),E.copy(this.normal.array,t)}}(),copy:function(e){E.copy(this.normal.array,e.normal.array),this.normal._dirty=!0,this.distance=e.distance},clone:function(){var e=new qi;return e.copy(this),e}};const bs=qi;var Le=E.set,_o=E.copy,yo=E.transformMat4,Fn=Math.min,Un=Math.max,Cs=function(){this.planes=[];for(var e=0;e<6;e++)this.planes.push(new bs);this.boundingBox=new tt,this.vertices=[];for(var e=0;e<8;e++)this.vertices[e]=E.fromValues(0,0,0)};Cs.prototype={setFromProjection:function(e){var t=this.planes,r=e.array,i=r[0],n=r[1],a=r[2],o=r[3],s=r[4],l=r[5],h=r[6],u=r[7],f=r[8],d=r[9],c=r[10],v=r[11],p=r[12],m=r[13],g=r[14],x=r[15];Le(t[0].normal.array,o-i,u-s,v-f),t[0].distance=-(x-p),t[0].normalize(),Le(t[1].normal.array,o+i,u+s,v+f),t[1].distance=-(x+p),t[1].normalize(),Le(t[2].normal.array,o+n,u+l,v+d),t[2].distance=-(x+m),t[2].normalize(),Le(t[3].normal.array,o-n,u-l,v-d),t[3].distance=-(x-m),t[3].normalize(),Le(t[4].normal.array,o-a,u-h,v-c),t[4].distance=-(x-g),t[4].normalize(),Le(t[5].normal.array,o+a,u+h,v+c),t[5].distance=-(x+g),t[5].normalize();var y=this.boundingBox,_=this.vertices;if(x===0){var w=l/i,S=-g/(c-1),b=-g/(c+1),A=-b/l,C=-S/l;y.min.set(-A*w,-A,b),y.max.set(A*w,A,S),Le(_[0],-A*w,-A,b),Le(_[1],-A*w,A,b),Le(_[2],A*w,-A,b),Le(_[3],A*w,A,b),Le(_[4],-C*w,-C,S),Le(_[5],-C*w,C,S),Le(_[6],C*w,-C,S),Le(_[7],C*w,C,S)}else{var P=(-1-p)/i,L=(1-p)/i,R=(1-m)/l,I=(-1-m)/l,D=(-1-g)/c,O=(1-g)/c;y.min.set(Math.min(P,L),Math.min(I,R),Math.min(O,D)),y.max.set(Math.max(L,P),Math.max(R,I),Math.max(D,O));var z=y.min.array,V=y.max.array;Le(_[0],z[0],z[1],z[2]),Le(_[1],z[0],V[1],z[2]),Le(_[2],V[0],z[1],z[2]),Le(_[3],V[0],V[1],z[2]),Le(_[4],z[0],z[1],V[2]),Le(_[5],z[0],V[1],V[2]),Le(_[6],V[0],z[1],V[2]),Le(_[7],V[0],V[1],V[2])}},getTransformedBoundingBox:function(){var e=E.create();return function(t,r){var i=this.vertices,n=r.array,a=t.min,o=t.max,s=a.array,l=o.array,h=i[0];yo(e,h,n),_o(s,e),_o(l,e);for(var u=1;u<8;u++)h=i[u],yo(e,h,n),s[0]=Fn(e[0],s[0]),s[1]=Fn(e[1],s[1]),s[2]=Fn(e[2],s[2]),l[0]=Un(e[0],l[0]),l[1]=Un(e[1],l[1]),l[2]=Un(e[2],l[2]);return a._dirty=!0,o._dirty=!0,t}}()};const Aa=Cs;var ru=Lt.extend(function(){return{projectionMatrix:new k,invProjectionMatrix:new k,viewMatrix:new k,frustum:new Aa}},function(){this.update(!0)},{update:function(e){Lt.prototype.update.call(this,e),k.invert(this.viewMatrix,this.worldTransform),this.updateProjectionMatrix(),k.invert(this.invProjectionMatrix,this.projectionMatrix),this.frustum.setFromProjection(this.projectionMatrix)},setViewMatrix:function(e){k.copy(this.viewMatrix,e),k.invert(this.worldTransform,e),this.decomposeWorldTransform()},decomposeProjectionMatrix:function(){},setProjectionMatrix:function(e){k.copy(this.projectionMatrix,e),k.invert(this.invProjectionMatrix,e),this.decomposeProjectionMatrix()},updateProjectionMatrix:function(){},castRay:function(){var e=G.create();return function(t,r){var i=r!==void 0?r:new en,n=t.array[0],a=t.array[1];return G.set(e,n,a,-1,1),G.transformMat4(e,e,this.invProjectionMatrix.array),G.transformMat4(e,e,this.worldTransform.array),E.scale(i.origin.array,e,1/e[3]),G.set(e,n,a,1,1),G.transformMat4(e,e,this.invProjectionMatrix.array),G.transformMat4(e,e,this.worldTransform.array),E.scale(e,e,1/e[3]),E.sub(i.direction.array,e,i.origin.array),E.normalize(i.direction.array,i.direction.array),i.direction._dirty=!0,i.origin._dirty=!0,i}}()});const Or=ru;var iu=B.create(),xo=B.create(),Gn={};function nu(e){var t=[],r=Object.keys(e);r.sort();for(var i=0;i 0&&console.warn("Found multiple camera in one scene. Use the fist one."),this._cameraList.push(e)):e instanceof wt&&this.lights.push(e),e.name&&(this._nodeRepository[e.name]=e)},removeFromScene:function(e){var t;e instanceof Or?(t=this._cameraList.indexOf(e),t>=0&&this._cameraList.splice(t,1)):e instanceof wt&&(t=this.lights.indexOf(e),t>=0&&this.lights.splice(t,1)),e.name&&delete this._nodeRepository[e.name]},getNode:function(e){return this._nodeRepository[e]},setMainCamera:function(e){var t=this._cameraList.indexOf(e);t>=0&&this._cameraList.splice(t,1),this._cameraList.unshift(e)},getMainCamera:function(){return this._cameraList[0]},getLights:function(){return this.lights},updateLights:function(){var e=this.lights;this._previousLightNumber=this._lightNumber;for(var t={},r=0;r 0&&this._doUpdateRenderList(o,t,r,i,n)}},isFrustumCulled:function(){var e=new tt,t=new k;return function(r,i,n){var a=r.boundingBox;if(a||(r.skeleton&&r.skeleton.boundingBox?a=r.skeleton.boundingBox:a=r.geometry.boundingBox),!a)return!1;if(t.array=n,e.transformFrom(a,t),r.castShadow&&this.viewBoundingBoxLastFrame.union(e),r.frustumCulling){if(!e.intersectBoundingBox(i.frustum.boundingBox))return!0;t.array=i.projectionMatrix.array,e.max.array[2]>0&&e.min.array[2]<0&&(e.max.array[2]=-1e-20),e.applyProjection(t);var o=e.min.array,s=e.max.array;if(s[0]<-1||o[0]>1||s[1]<-1||o[1]>1||s[2]<-1||o[2]>1)return!0}return!1}}(),_updateLightUniforms:function(){var e=this.lights;e.sort(ou);var t=this._lightUniforms;for(var r in t)for(var i in t[r])t[r][i].value.length=0;for(var n=0;n 1&&t.texParameterf(t.TEXTURE_CUBE_MAP,n.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),i===36193){var a=e.getGLExtension("OES_texture_half_float");a||(i=M.FLOAT)}if(this.mipmaps.length)for(var o=this.width,s=this.height,l=0;l 0&&e.height>0}const di=Ea;var lu=Or.extend({fov:50,aspect:1,near:.1,far:2e3},{updateProjectionMatrix:function(){var e=this.fov/180*Math.PI;this.projectionMatrix.perspective(e,this.aspect,this.near,this.far)},decomposeProjectionMatrix:function(){var e=this.projectionMatrix.array,t=Math.atan(1/e[5])*2;this.fov=t/Math.PI*180,this.aspect=e[5]/e[0],this.near=e[14]/(e[10]-1),this.far=e[14]/(e[10]+1)},clone:function(){var e=Or.prototype.clone.call(this);return e.fov=this.fov,e.aspect=this.aspect,e.near=this.near,e.far=this.far,e}});const He=lu;var Bi="framebuffer",It="renderbuffer",To=It+"_width",wo=It+"_height",zn=It+"_attached",Hn="depthtexture_attached",tr=M.FRAMEBUFFER,ei=M.RENDERBUFFER,oi=M.DEPTH_ATTACHMENT,Ls=M.COLOR_ATTACHMENT0,Ei=nt.extend({depthBuffer:!0,viewport:null,_width:0,_height:0,_textures:null,_boundRenderer:null},function(){this._cache=new wa,this._textures={}},{getTextureWidth:function(){return this._width},getTextureHeight:function(){return this._height},bind:function(e){if(e.__currentFrameBuffer){if(e.__currentFrameBuffer===this)return;console.warn("Renderer already bound with another framebuffer. Unbind it first")}e.__currentFrameBuffer=this;var t=e.gl;t.bindFramebuffer(tr,this._getFrameBufferGL(e)),this._boundRenderer=e;var r=this._cache;r.put("viewport",e.viewport);var i=!1,n,a;for(var o in this._textures){i=!0;var s=this._textures[o];s&&(n=s.texture.width,a=s.texture.height,this._doAttach(e,s.texture,o,s.target))}this._width=n,this._height=a,!i&&this.depthBuffer&&console.error("Must attach texture before bind, or renderbuffer may have incorrect width and height."),this.viewport?e.setViewport(this.viewport):e.setViewport(0,0,n,a,1);var l=r.get("attached_textures");if(l){for(var o in l)if(!this._textures[o]){var h=l[o];this._doDetach(t,o,h)}}if(!r.get(Hn)&&this.depthBuffer){r.miss(It)&&r.put(It,t.createRenderbuffer());var u=r.get(It);(n!==r.get(To)||a!==r.get(wo))&&(t.bindRenderbuffer(ei,u),t.renderbufferStorage(ei,t.DEPTH_COMPONENT16,n,a),r.put(To,n),r.put(wo,a),t.bindRenderbuffer(ei,null)),r.get(zn)||(t.framebufferRenderbuffer(tr,oi,ei,u),r.put(zn,!0))}},unbind:function(e){e.__currentFrameBuffer=null;var t=e.gl;t.bindFramebuffer(tr,null),this._boundRenderer=null,this._cache.use(e.__uid__);var r=this._cache.get("viewport");r&&e.setViewport(r),this.updateMipmap(e)},updateMipmap:function(e){var t=e.gl;for(var r in this._textures){var i=this._textures[r];if(i){var n=i.texture;if(!n.NPOT&&n.useMipmap&&n.minFilter===W.LINEAR_MIPMAP_LINEAR){var a=n.textureType==="textureCube"?M.TEXTURE_CUBE_MAP:M.TEXTURE_2D;t.bindTexture(a,n.getWebGLTexture(e)),t.generateMipmap(a),t.bindTexture(a,null)}}}},checkStatus:function(e){return e.checkFramebufferStatus(tr)},_getFrameBufferGL:function(e){var t=this._cache;return t.use(e.__uid__),t.miss(Bi)&&t.put(Bi,e.gl.createFramebuffer()),t.get(Bi)},attach:function(e,t,r){if(!e.width)throw new Error("The texture attached to color buffer is not a valid.");t=t||Ls,r=r||M.TEXTURE_2D;var i=this._boundRenderer,n=i&&i.gl,a;if(n){var o=this._cache;o.use(i.__uid__),a=o.get("attached_textures")}var s=this._textures[t];if(!(s&&s.target===r&&s.texture===e&&a&&a[t]!=null)){var l=!0;i&&(l=this._doAttach(i,e,t,r),this.viewport||i.setViewport(0,0,e.width,e.height,1)),l&&(this._textures[t]=this._textures[t]||{},this._textures[t].texture=e,this._textures[t].target=r)}},_doAttach:function(e,t,r,i){var n=e.gl,a=t.getWebGLTexture(e),o=this._cache.get("attached_textures");if(o&&o[r]){var s=o[r];if(s.texture===t&&s.target===i)return}r=+r;var l=!0;if(r===oi||r===M.DEPTH_STENCIL_ATTACHMENT){var h=e.getGLExtension("WEBGL_depth_texture");if(h||(console.error("Depth texture is not supported by the browser"),l=!1),t.format!==M.DEPTH_COMPONENT&&t.format!==M.DEPTH_STENCIL&&(console.error("The texture attached to depth buffer is not a valid."),l=!1),l){var u=this._cache.get(It);u&&(n.framebufferRenderbuffer(tr,oi,ei,null),n.deleteRenderbuffer(u),this._cache.put(It,!1)),this._cache.put(zn,!1),this._cache.put(Hn,!0)}}return n.framebufferTexture2D(tr,r,i,a,0),o||(o={},this._cache.put("attached_textures",o)),o[r]=o[r]||{},o[r].texture=t,o[r].target=i,l},_doDetach:function(e,t,r){e.framebufferTexture2D(tr,t,r,null,0);var i=this._cache.get("attached_textures");i&&i[t]&&(i[t]=null),(t===oi||t===M.DEPTH_STENCIL_ATTACHMENT)&&this._cache.put(Hn,!1)},detach:function(e,t){if(this._textures[e]=null,this._boundRenderer){var r=this._cache;r.use(this._boundRenderer.__uid__),this._doDetach(this._boundRenderer.gl,e,t)}},dispose:function(e){var t=e.gl,r=this._cache;r.use(e.__uid__);var i=r.get(It);i&&t.deleteRenderbuffer(i);var n=r.get(Bi);n&&t.deleteFramebuffer(n),r.deleteContext(e.__uid__),this._textures={}}});Ei.DEPTH_ATTACHMENT=oi;Ei.COLOR_ATTACHMENT0=Ls;Ei.STENCIL_ATTACHMENT=M.STENCIL_ATTACHMENT;Ei.DEPTH_STENCIL_ATTACHMENT=M.DEPTH_STENCIL_ATTACHMENT;const qe=Ei;var hu=["px","nx","py","ny","pz","nz"],uu=nt.extend(function(){var e={position:new U,far:1e3,near:.1,texture:null,shadowMapPass:null},t=e._cameras={px:new He({fov:90}),nx:new He({fov:90}),py:new He({fov:90}),ny:new He({fov:90}),pz:new He({fov:90}),nz:new He({fov:90})};return t.px.lookAt(U.POSITIVE_X,U.NEGATIVE_Y),t.nx.lookAt(U.NEGATIVE_X,U.NEGATIVE_Y),t.py.lookAt(U.POSITIVE_Y,U.POSITIVE_Z),t.ny.lookAt(U.NEGATIVE_Y,U.NEGATIVE_Z),t.pz.lookAt(U.POSITIVE_Z,U.NEGATIVE_Y),t.nz.lookAt(U.NEGATIVE_Z,U.NEGATIVE_Y),e._frameBuffer=new qe,e},{getCamera:function(e){return this._cameras[e]},render:function(e,t,r){var i=e.gl;r||t.update();for(var n=this.texture.width,a=2*Math.atan(n/(n-.5))/Math.PI*180,o=0;o<6;o++){var s=hu[o],l=this._cameras[s];if(U.copy(l.position,this.position),l.far=this.far,l.near=this.near,l.fov=a,this.shadowMapPass){l.update();var h=t.getBoundingBox();h.applyTransform(l.viewMatrix),t.viewBoundingBoxLastFrame.copy(h),this.shadowMapPass.render(e,t,l,!0)}this._frameBuffer.attach(this.texture,i.COLOR_ATTACHMENT0,i.TEXTURE_CUBE_MAP_POSITIVE_X+o),this._frameBuffer.bind(e),e.render(t,l,!0),this._frameBuffer.unbind(e)}},dispose:function(e){this._frameBuffer.dispose(e)}});const ba=uu;var fu=oe.extend({dynamic:!1,widthSegments:1,heightSegments:1},function(){this.build()},{build:function(){for(var e=this.heightSegments,t=this.widthSegments,r=this.attributes,i=[],n=[],a=[],o=[],s=0;s<=e;s++)for(var l=s/e,h=0;h<=t;h++){var u=h/t;if(i.push([2*u-1,2*l-1,0]),n&&n.push([u,l]),a&&a.push([0,0,1]),h 0?this.material.define("fragment","LOD"):this.material.undefine("fragment","LOD"),e.renderPass([this],r)}});const pi=pu;var mu=542327876,gu=131072,_u=512,yu=4;function La(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}var xu=31,Tu=La("DXT1"),wu=La("DXT3"),Su=La("DXT5"),Au=0,Eu=1,bu=2,Cu=3,Lu=4,Mu=7,Du=20,Pu=21,Ru=28,Nu={parse:function(e,t){var r=new Int32Array(e,0,xu);if(r[Au]!==mu||!r(Du)&yu)return null;var i=r(Pu),n=r[Lu],a=r[Cu],o=r[Ru]&_u,s=r[bu]&gu,l,h;switch(i){case Tu:l=8,h=W.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case wu:l=16,h=W.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case Su:l=16,h=W.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}var u=r[Eu]+4,f=o?6:1,d=1;s&&(d=Math.max(1,r[Mu]));for(var c=[],v=0;v 0){var n=Math.pow(2,e[3]-128-8+i);t[r+0]=e[0]*n,t[r+1]=e[1]*n,t[r+2]=e[2]*n}else t[r+0]=0,t[r+1]=0,t[r+2]=0;return t[r+3]=1,t}function Uu(e,t,r){for(var i="",n=t;n 0;)if(e[a][0]=t[r++],e[a][1]=t[r++],e[a][2]=t[r++],e[a][3]=t[r++],e[a][0]===1&&e[a][1]===1&&e[a][2]===1){for(var s=e[a][3]< >>0;s>0;s--)Gu(e[a-1],e[a]),a++,o--;n+=8}else a++,o--,n=0;return r}function zu(e,t,r,i){if(i Bu)return Ao(e,t,r,i);var n=t[r++];if(n!=2)return Ao(e,t,r-1,i);if(e[0][1]=t[r++],e[0][2]=t[r++],n=t[r++],(e[0][2]<<8>>>0|n)>>>0!==i)return null;for(var n=0;n<4;n++)for(var a=0;a128){o=(o&127)>>>0;for(var s=t[r++];o--;)e[a++][n]=s}else for(;o--;)e[a++][n]=t[r++]}return r}var Hu={parseRGBE:function(e,t,r){r==null&&(r=0);var i=new Uint8Array(e),n=i.length;if(Uu(i,0,2)==="#?"){for(var a=2;a =n)){a+=2;for(var o="";a 20)return console.warn("Given image is not a height map"),e}var c,v,p,m;l%(i*4)===0?(c=o.data[l],p=o.data[l+4]):l%(i*4)===(i-1)*4?(c=o.data[l-4],p=o.data[l]):(c=o.data[l-4],p=o.data[l+4]),li*(n-1)*4?(v=o.data[l-i*4],m=o.data[l]):(v=o.data[l-i*4],m=o.data[l+i*4]),s.data[l]=c-p+127,s.data[l+1]=v-m+127,s.data[l+2]=255,s.data[l+3]=255}return a.putImageData(s,0,0),r},isHeightImage:function(e,t,r){if(!e||!e.width||!e.height)return!1;var i=document.createElement("canvas"),n=i.getContext("2d"),a=t||32;r=r||20,i.width=i.height=a,n.drawImage(e,0,0,a,a);for(var o=n.getImageData(0,0,a,a),s=0;s r)return!1}return!0},_fetchTexture:function(e,t,r){Pe.request.get({url:e,responseType:"arraybuffer",onload:t,onerror:r})},createChessboard:function(e,t,r,i){e=e||512,t=t||64,r=r||"black",i=i||"white";var n=Math.ceil(e/t),a=document.createElement("canvas");a.width=e,a.height=e;var o=a.getContext("2d");o.fillStyle=i,o.fillRect(0,0,e,e),o.fillStyle=r;for(var s=0;s =0||(sa.forEach(function(t){e.on(t,this[la(t)],this)},this),this._meshes.push(e))},detachFromMesh:function(e){var t=this._meshes.indexOf(e);t>=0&&this._meshes.splice(t,1),sa.forEach(function(r){e.off(r,this[la(r)])},this)},dispose:function(){this._meshes.forEach(function(e){this.detachFromMesh(e)},this)}};const ku=ha;var Wu=Br.extend({left:-1,right:1,near:-1,far:1,top:1,bottom:-1},{updateProjectionMatrix:function(){this.projectionMatrix.ortho(this.left,this.right,this.bottom,this.top,this.near,this.far)},decomposeProjectionMatrix:function(){var e=this.projectionMatrix.array;this.left=(-1-e[12])/e[0],this.right=(1-e[12])/e[0],this.top=(1-e[13])/e[5],this.bottom=(-1-e[13])/e[5],this.near=-(-1-e[14])/e[10],this.far=-(1-e[14])/e[10]},clone:function(){var e=Br.prototype.clone.call(this);return e.left=this.left,e.right=this.right,e.near=this.near,e.far=this.far,e.top=this.top,e.bottom=this.bottom,e}});const Fr=Wu,Xu=` +@end`;N.import(du);var vu=lr.extend(function(){var e=new N({vertex:N.source("clay.skybox.vertex"),fragment:N.source("clay.skybox.fragment")}),t=new gt({shader:e,depthMask:!1});return{scene:null,geometry:new Ms,material:t,environmentMap:null,culling:!1,_dummyCamera:new He}},function(){var e=this.scene;e&&this.attachScene(e),this.environmentMap&&this.setEnvironmentMap(this.environmentMap)},{attachScene:function(e){this.scene&&this.detachScene(),e.skybox=this,this.scene=e,e.on("beforerender",this._beforeRenderScene,this)},detachScene:function(){this.scene&&(this.scene.off("beforerender",this._beforeRenderScene),this.scene.skybox=null),this.scene=null},dispose:function(e){this.detachScene(),this.geometry.dispose(e)},setEnvironmentMap:function(e){e.textureType==="texture2D"?(this.material.define("EQUIRECTANGULAR"),e.minFilter=W.LINEAR):this.material.undefine("EQUIRECTANGULAR"),this.material.set("environmentMap",e)},getEnvironmentMap:function(){return this.material.get("environmentMap")},_beforeRenderScene:function(e,t,r){this.renderSkybox(e,r)},renderSkybox:function(e,t){var r=this._dummyCamera;r.aspect=e.getViewportAspect(),r.fov=t.fov||50,r.updateProjectionMatrix(),k.invert(r.invProjectionMatrix,r.projectionMatrix),r.worldTransform.copy(t.worldTransform),r.viewMatrix.copy(t.viewMatrix),this.position.copy(t.getWorldPosition()),this.update(),e.gl.disable(e.gl.BLEND),this.material.get("lod")>0?this.material.define("fragment","LOD"):this.material.undefine("fragment","LOD"),e.renderPass([this],r)}});const vi=vu;var pu=542327876,mu=131072,gu=512,_u=4;function Ca(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}var yu=31,xu=Ca("DXT1"),Tu=Ca("DXT3"),wu=Ca("DXT5"),Su=0,Au=1,Eu=2,bu=3,Cu=4,Lu=7,Mu=20,Du=21,Pu=28,Ru={parse:function(e,t){var r=new Int32Array(e,0,yu);if(r[Su]!==pu||!r(Mu)&_u)return null;var i=r(Du),n=r[Cu],a=r[bu],o=r[Pu]&gu,s=r[Eu]&mu,l,h;switch(i){case xu:l=8,h=W.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case Tu:l=16,h=W.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case wu:l=16,h=W.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}var u=r[Au]+4,f=o?6:1,d=1;s&&(d=Math.max(1,r[Lu]));for(var c=[],v=0;v 0){var n=Math.pow(2,e[3]-128-8+i);t[r+0]=e[0]*n,t[r+1]=e[1]*n,t[r+2]=e[2]*n}else t[r+0]=0,t[r+1]=0,t[r+2]=0;return t[r+3]=1,t}function Fu(e,t,r){for(var i="",n=t;n 0;)if(e[a][0]=t[r++],e[a][1]=t[r++],e[a][2]=t[r++],e[a][3]=t[r++],e[a][0]===1&&e[a][1]===1&&e[a][2]===1){for(var s=e[a][3]< >>0;s>0;s--)Uu(e[a-1],e[a]),a++,o--;n+=8}else a++,o--,n=0;return r}function Gu(e,t,r,i){if(i Ou)return So(e,t,r,i);var n=t[r++];if(n!=2)return So(e,t,r-1,i);if(e[0][1]=t[r++],e[0][2]=t[r++],n=t[r++],(e[0][2]<<8>>>0|n)>>>0!==i)return null;for(var n=0;n<4;n++)for(var a=0;a128){o=(o&127)>>>0;for(var s=t[r++];o--;)e[a++][n]=s}else for(;o--;)e[a++][n]=t[r++]}return r}var zu={parseRGBE:function(e,t,r){r==null&&(r=0);var i=new Uint8Array(e),n=i.length;if(Fu(i,0,2)==="#?"){for(var a=2;a =n)){a+=2;for(var o="";a 20)return console.warn("Given image is not a height map"),e}var c,v,p,m;l%(i*4)===0?(c=o.data[l],p=o.data[l+4]):l%(i*4)===(i-1)*4?(c=o.data[l-4],p=o.data[l]):(c=o.data[l-4],p=o.data[l+4]),li*(n-1)*4?(v=o.data[l-i*4],m=o.data[l]):(v=o.data[l-i*4],m=o.data[l+i*4]),s.data[l]=c-p+127,s.data[l+1]=v-m+127,s.data[l+2]=255,s.data[l+3]=255}return a.putImageData(s,0,0),r},isHeightImage:function(e,t,r){if(!e||!e.width||!e.height)return!1;var i=document.createElement("canvas"),n=i.getContext("2d"),a=t||32;r=r||20,i.width=i.height=a,n.drawImage(e,0,0,a,a);for(var o=n.getImageData(0,0,a,a),s=0;s r)return!1}return!0},_fetchTexture:function(e,t,r){Pe.request.get({url:e,responseType:"arraybuffer",onload:t,onerror:r})},createChessboard:function(e,t,r,i){e=e||512,t=t||64,r=r||"black",i=i||"white";var n=Math.ceil(e/t),a=document.createElement("canvas");a.width=e,a.height=e;var o=a.getContext("2d");o.fillStyle=i,o.fillRect(0,0,e,e),o.fillStyle=r;for(var s=0;s =0||(oa.forEach(function(t){e.on(t,this[sa(t)],this)},this),this._meshes.push(e))},detachFromMesh:function(e){var t=this._meshes.indexOf(e);t>=0&&this._meshes.splice(t,1),oa.forEach(function(r){e.off(r,this[sa(r)])},this)},dispose:function(){this._meshes.forEach(function(e){this.detachFromMesh(e)},this)}};const Vu=la;var ku=Or.extend({left:-1,right:1,near:-1,far:1,top:1,bottom:-1},{updateProjectionMatrix:function(){this.projectionMatrix.ortho(this.left,this.right,this.bottom,this.top,this.near,this.far)},decomposeProjectionMatrix:function(){var e=this.projectionMatrix.array;this.left=(-1-e[12])/e[0],this.right=(1-e[12])/e[0],this.top=(1-e[13])/e[5],this.bottom=(-1-e[13])/e[5],this.near=-(-1-e[14])/e[10],this.far=-(1-e[14])/e[10]},clone:function(){var e=Or.prototype.clone.call(this);return e.left=this.left,e.right=this.right,e.near=this.near,e.far=this.far,e.top=this.top,e.bottom=this.bottom,e}});const Br=ku,Wu=` @export clay.compositor.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; attribute vec3 position : POSITION; @@ -139,7 +139,7 @@ void main() v_Texcoord = texcoord; gl_Position = worldViewProjection * vec4(position, 1.0); } -@end`;N.import(Xu);var Zu=new yn,Eo=new lr({geometry:Zu,frustumCulling:!1}),ju=new Fr,qu=nt.extend(function(){return{fragment:"",outputs:null,material:null,blendWithPrevious:!1,clearColor:!1,clearDepth:!0}},function(){var e=new N(N.source("clay.compositor.vertex"),this.fragment),t=new gt({shader:e});t.enableTexturesAll(),this.material=t},{setUniform:function(e,t){this.material.setUniform(e,t)},getUniform:function(e){var t=this.material.uniforms[e];if(t)return t.value},attachOutput:function(e,t){this.outputs||(this.outputs={}),t=t||M.COLOR_ATTACHMENT0,this.outputs[t]=e},detachOutput:function(e){for(var t in this.outputs)this.outputs[t]===e&&(this.outputs[t]=null)},bind:function(e,t){if(this.outputs)for(var r in this.outputs){var i=this.outputs[r];i&&t.attach(i,r)}t&&t.bind(e)},unbind:function(e,t){t.unbind(e)},render:function(e,t){var r=e.gl;if(t){this.bind(e,t);var i=e.getGLExtension("EXT_draw_buffers");if(i&&this.outputs){var n=[];for(var a in this.outputs)a=+a,a>=r.COLOR_ATTACHMENT0&&a<=r.COLOR_ATTACHMENT0+8&&n.push(a);i.drawBuffersEXT(n)}}this.trigger("beforerender",this,e);var o=this.clearDepth?r.DEPTH_BUFFER_BIT:0;if(r.depthMask(!0),this.clearColor){o=o|r.COLOR_BUFFER_BIT,r.colorMask(!0,!0,!0,!0);var s=this.clearColor;Array.isArray(s)&&r.clearColor(s[0],s[1],s[2],s[3])}r.clear(o),this.blendWithPrevious?(r.enable(r.BLEND),this.material.transparent=!0):(r.disable(r.BLEND),this.material.transparent=!1),this.renderQuad(e),this.trigger("afterrender",this,e),t&&this.unbind(e,t)},renderQuad:function(e){Eo.material=this.material,e.renderPass([Eo],ju)},dispose:function(e){}});const Re=qu,Yu=`#define SAMPLE_NUMBER 1024 +@end`;N.import(Wu);var Xu=new _n,Ao=new lr({geometry:Xu,frustumCulling:!1}),Zu=new Br,ju=nt.extend(function(){return{fragment:"",outputs:null,material:null,blendWithPrevious:!1,clearColor:!1,clearDepth:!0}},function(){var e=new N(N.source("clay.compositor.vertex"),this.fragment),t=new gt({shader:e});t.enableTexturesAll(),this.material=t},{setUniform:function(e,t){this.material.setUniform(e,t)},getUniform:function(e){var t=this.material.uniforms[e];if(t)return t.value},attachOutput:function(e,t){this.outputs||(this.outputs={}),t=t||M.COLOR_ATTACHMENT0,this.outputs[t]=e},detachOutput:function(e){for(var t in this.outputs)this.outputs[t]===e&&(this.outputs[t]=null)},bind:function(e,t){if(this.outputs)for(var r in this.outputs){var i=this.outputs[r];i&&t.attach(i,r)}t&&t.bind(e)},unbind:function(e,t){t.unbind(e)},render:function(e,t){var r=e.gl;if(t){this.bind(e,t);var i=e.getGLExtension("EXT_draw_buffers");if(i&&this.outputs){var n=[];for(var a in this.outputs)a=+a,a>=r.COLOR_ATTACHMENT0&&a<=r.COLOR_ATTACHMENT0+8&&n.push(a);i.drawBuffersEXT(n)}}this.trigger("beforerender",this,e);var o=this.clearDepth?r.DEPTH_BUFFER_BIT:0;if(r.depthMask(!0),this.clearColor){o=o|r.COLOR_BUFFER_BIT,r.colorMask(!0,!0,!0,!0);var s=this.clearColor;Array.isArray(s)&&r.clearColor(s[0],s[1],s[2],s[3])}r.clear(o),this.blendWithPrevious?(r.enable(r.BLEND),this.material.transparent=!0):(r.disable(r.BLEND),this.material.transparent=!1),this.renderQuad(e),this.trigger("afterrender",this,e),t&&this.unbind(e,t)},renderQuad:function(e){Ao.material=this.material,e.renderPass([Ao],Zu)},dispose:function(e){}});const Re=ju,qu=`#define SAMPLE_NUMBER 1024 #define PI 3.14159265358979 uniform sampler2D normalDistribution; uniform vec2 viewportSize : [512, 256]; @@ -184,7 +184,7 @@ void main() { } gl_FragColor = vec4(vec2(A, B) / fSampleNumber, 0.0, 1.0); } -`,Ku=`#define SHADER_NAME prefilter +`,Yu=`#define SHADER_NAME prefilter #define SAMPLE_NUMBER 1024 #define PI 3.14159265358979 uniform mat4 viewInverse : VIEWINVERSE; @@ -219,7 +219,7 @@ void main() { } gl_FragColor = encodeHDR(vec4(prefilteredColor / totalWeight, 1.0)); } -`;var cr={},kn=["px","nx","py","ny","pz","nz"];cr.prefilterEnvironmentMap=function(e,t,r,i,n){(!n||!i)&&(i=cr.generateNormalDistribution(),n=cr.integrateBRDF(e,i)),r=r||{};var a=r.width||64,o=r.height||64,s=r.type||t.type,l=new vi({width:a,height:o,type:s,flipY:!1,mipmaps:[]});l.isPowerOfTwo()||console.warn("Width and height must be power of two to enable mipmap.");var h=Math.min(a,o),u=Math.log(h)/Math.log(2)+1,f=new gt({shader:new N({vertex:N.source("clay.skybox.vertex"),fragment:Ku})});f.set("normalDistribution",i),r.encodeRGBM&&f.define("fragment","RGBM_ENCODE"),r.decodeRGBM&&f.define("fragment","RGBM_DECODE");var d=new Qt,c;if(t.textureType==="texture2D"){var v=new vi({width:a,height:o,type:s===W.FLOAT?W.HALF_FLOAT:s});fr.panoramaToCubeMap(e,t,v,{encodeRGBM:r.decodeRGBM}),t=v}c=new pi({scene:d,material:f}),c.material.set("environmentMap",t);var p=new Ca({texture:l});r.encodeRGBM&&(s=l.type=W.UNSIGNED_BYTE);for(var m=new $({width:a,height:o,type:s}),g=new qe({depthBuffer:!1}),x=Pe[s===W.UNSIGNED_BYTE?"Uint8Array":"Float32Array"],y=0;y>>16)>>>0;f=((f&1431655765)<<1|(f&2863311530)>>>1)>>>0,f=((f&858993459)<<2|(f&3435973836)>>>2)>>>0,f=((f&252645135)<<4|(f&4042322160)>>>4)>>>0,f=(((f&16711935)<<8|(f&4278255360)>>>8)>>>0)/4294967296;var d=Math.sqrt((1-f)/(1+(h*h-1)*f));o[u]=d}for(var u=0;u65535?Uint32Array:Uint16Array,s=this.indices=new o(t*e*6),l,h,u,f,d,c,v,y=this.radius,p=this.phiStart,m=this.phiLength,g=this.thetaStart,x=this.thetaLength,y=this.radius,_=[],w=[],S=0,b=1/y;for(v=0;v<=e;v++)for(c=0;c<=t;c++)f=c/t,d=v/e,l=-y*Math.cos(p+f*m)*Math.sin(g+d*x),h=y*Math.cos(g+d*x),u=y*Math.sin(p+f*m)*Math.sin(g+d*x),_[0]=l,_[1]=h,_[2]=u,w[0]=f,w[1]=d,r.set(S,_),i.set(S,w),_[0]*=b,_[1]*=b,_[2]*=b,n.set(S,_),S++;var A,C,P,L,R=t+1,I=0;for(v=0;v =0&&l.splice(f,1)}),l.push(h),this.__zr&&this.__zr.animation.addAnimator(h),h},stopAnimation:function(e){this._animators=this._animators||[];for(var t=this._animators,r=t.length,i=0;i >>16)>>>0;f=((f&1431655765)<<1|(f&2863311530)>>>1)>>>0,f=((f&858993459)<<2|(f&3435973836)>>>2)>>>0,f=((f&252645135)<<4|(f&4042322160)>>>4)>>>0,f=(((f&16711935)<<8|(f&4278255360)>>>8)>>>0)/4294967296;var d=Math.sqrt((1-f)/(1+(h*h-1)*f));o[u]=d}for(var u=0;u65535?Uint32Array:Uint16Array,s=this.indices=new o(t*e*6),l,h,u,f,d,c,v,y=this.radius,p=this.phiStart,m=this.phiLength,g=this.thetaStart,x=this.thetaLength,y=this.radius,_=[],w=[],S=0,b=1/y;for(v=0;v<=e;v++)for(c=0;c<=t;c++)f=c/t,d=v/e,l=-y*Math.cos(p+f*m)*Math.sin(g+d*x),h=y*Math.cos(g+d*x),u=y*Math.sin(p+f*m)*Math.sin(g+d*x),_[0]=l,_[1]=h,_[2]=u,w[0]=f,w[1]=d,r.set(S,_),i.set(S,w),_[0]*=b,_[1]*=b,_[2]*=b,n.set(S,_),S++;var A,C,P,L,R=t+1,I=0;for(v=0;v =0&&l.splice(f,1)}),l.push(h),this.__zr&&this.__zr.animation.addAnimator(h),h},stopAnimation:function(e){this._animators=this._animators||[];for(var t=this._animators,r=t.length,i=0;i 3?t[3]=e[3]:t[3]=1,t):(t=ss(e||"#000",t)||[0,0,0,0],t[0]/=255,t[1]/=255,t[2]/=255,t)};q.directionFromAlphaBeta=function(e,t){var r=e/180*Math.PI+Math.PI/2,i=-t/180*Math.PI+Math.PI/2,n=[],a=Math.sin(r);return n[0]=a*Math.cos(i),n[1]=-Math.cos(r),n[2]=a*Math.sin(i),n};q.getShadowResolution=function(e){var t=1024;switch(e){case"low":t=512;break;case"medium":break;case"high":t=2048;break;case"ultra":t=4096;break}return t};q.COMMON_SHADERS=["lambert","color","realistic","hatching","shadow"];q.createShader=function(e){e==="ecgl.shadow"&&(e="ecgl.displayShadow");var t=N.source(e+".vertex"),r=N.source(e+".fragment");t||console.error("Vertex shader of '%s' not exits",e),r||console.error("Fragment shader of '%s' not exits",e);var i=new N(t,r);return i.name=e,i};q.createMaterial=function(e,t){t instanceof Array||(t=[t]);var r=q.createShader(e),i=new gt({shader:r});return t.forEach(function(n){typeof n=="string"&&i.define(n)}),i};q.setMaterialFromModel=function(e,t,r,i){t.autoUpdateTextureStatus=!1;var n=r.getModel(e+"Material"),a=n.get("detailTexture"),o=K.firstNotNull(n.get("textureTiling"),1),s=K.firstNotNull(n.get("textureOffset"),0);typeof o=="number"&&(o=[o,o]),typeof s=="number"&&(s=[s,s]);var l=o[0]>1||o[1]>1?q.Texture.REPEAT:q.Texture.CLAMP_TO_EDGE,h={anisotropic:8,wrapS:l,wrapT:l};if(e==="realistic"){var u=n.get("roughness"),f=n.get("metalness");f!=null?isNaN(f)&&(t.setTextureImage("metalnessMap",f,i,h),f=K.firstNotNull(n.get("metalnessAdjust"),.5)):f=0,u!=null?isNaN(u)&&(t.setTextureImage("roughnessMap",u,i,h),u=K.firstNotNull(n.get("roughnessAdjust"),.5)):u=.5;var d=n.get("normalTexture");t.setTextureImage("detailMap",a,i,h),t.setTextureImage("normalMap",d,i,h),t.set({roughness:u,metalness:f,detailUvRepeat:o,detailUvOffset:s})}else if(e==="lambert")t.setTextureImage("detailMap",a,i,h),t.set({detailUvRepeat:o,detailUvOffset:s});else if(e==="color")t.setTextureImage("detailMap",a,i,h),t.set({detailUvRepeat:o,detailUvOffset:s});else if(e==="hatching"){var c=n.get("hatchingTextures")||[];c.length<6&&console.error("Invalid hatchingTextures.");for(var v=0;v<6;v++)t.setTextureImage("hatch"+(v+1),c[v],i,{anisotropic:8,wrapS:q.Texture.REPEAT,wrapT:q.Texture.REPEAT});t.set({detailUvRepeat:o,detailUvOffset:s})}};q.updateVertexAnimation=function(e,t,r,i){var n=i.get("animation"),a=i.get("animationDurationUpdate"),o=i.get("animationEasingUpdate"),s=r.shadowDepthMaterial;if(n&&t&&a>0&&t.geometry.vertexCount===r.geometry.vertexCount){r.material.define("vertex","VERTEX_ANIMATION"),r.ignorePreZ=!0,s&&s.define("vertex","VERTEX_ANIMATION");for(var l=0;l =0&&this._viewsToDispose.splice(t,1),this.views.push(e),e.layer=this;var r=this.zr;e.scene.traverse(function(i){i.__zr=r,i.addAnimatorsToZr&&i.addAnimatorsToZr(r)})}};function Is(e){var t=e.__zr;e.__zr=null,t&&e.removeAnimatorsFromZr&&e.removeAnimatorsFromZr(t)}me.prototype.removeView=function(e){if(e.layer===this){var t=this.views.indexOf(e);t>=0&&(this.views.splice(t,1),e.scene.traverse(Is,this),e.layer=null,this._viewsToDispose.push(e))}};me.prototype.removeViewsAll=function(){this.views.forEach(function(e){e.scene.traverse(Is,this),e.layer=null,this._viewsToDispose.push(e)},this),this.views.length=0};me.prototype.resize=function(e,t){var r=this.renderer;r.resize(e,t)};me.prototype.clear=function(){var e=this.renderer.gl,t=this._backgroundColor||[0,0,0,0];e.clearColor(t[0],t[1],t[2],t[3]),e.depthMask(!0),e.colorMask(!0,!0,!0,!0),e.clear(e.DEPTH_BUFFER_BIT|e.COLOR_BUFFER_BIT)};me.prototype.clearDepth=function(){var e=this.renderer.gl;e.clear(e.DEPTH_BUFFER_BIT)};me.prototype.clearColor=function(){var e=this.renderer.gl;e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT)};me.prototype.needsRefresh=function(){this.zr.refresh()};me.prototype.refresh=function(e){this._backgroundColor=e?T.parseColor(e):[0,0,0,0],this.renderer.clearColor=this._backgroundColor;for(var t=0;t 20)){e=e.event;var i=this.pickObject(e.offsetX,e.offsetY);i&&(this._dispatchEvent(e.type,e,i),this._dispatchDataEvent(e.type,e,i));var n=this._clickToSetFocusPoint(e);if(n){var a=n.view.setDOFFocusOnPoint(n.distance);a&&this.zr.refresh()}}}};me.prototype._clickToSetFocusPoint=function(e){for(var t=this.renderer,r=t.viewport,i=this.views.length-1;i>=0;i--){var n=this.views[i];if(n.hasDOF()&&n.containPoint(e.offsetX,e.offsetY)){this._picking.scene=n.scene,this._picking.camera=n.camera,t.viewport=n.viewport;var a=this._picking.pick(e.offsetX,e.offsetY,!0);if(a)return a.view=n,a}}t.viewport=r};me.prototype.onglobalout=function(e){var t=this._hovered;t&&this._dispatchEvent("mouseout",e,{target:t.target})};me.prototype.pickObject=function(e,t){for(var r=[],i=this.renderer,n=i.viewport,a=0;a =0&&(u.dataIndex=this._lastDataIndex,u.seriesIndex=this._lastSeriesIndex,this.zr.handler.dispatchToElement(h,"mouseout",t)),s=!0):o!=null&&o!==this._lastEventData&&(this._lastEventData!=null&&(u.eventData=this._lastEventData,this.zr.handler.dispatchToElement(h,"mouseout",t)),s=!0),this._lastEventData=o,this._lastDataIndex=n,this._lastSeriesIndex=a),u.eventData=o,u.dataIndex=n,u.seriesIndex=a,(o!=null||parseInt(n,10)>=0&&parseInt(a,10)>=0)&&(this.zr.handler.dispatchToElement(h,e,t),s&&this.zr.handler.dispatchToElement(h,"mouseover",t))};me.prototype._dispatchToView=function(e,t){for(var r=0;r =0&&(Ff(t),t.coordinateSystem==="mapbox"&&(t.coordinateSystem="mapbox3D",e.mapbox3D=e.mapbox))}),Hi(e.xAxis3D),Hi(e.yAxis3D),Hi(e.zAxis3D),Hi(e.grid3D),li(e.geo3D)}function Bs(e){this._layers={},this._zr=e}Bs.prototype.update=function(e,t){var r=this,i=t.getZr();if(!i.getWidth()||!i.getHeight()){console.warn("Dom has no width or height");return}function n(s){i.setSleepAfterStill(0);var l;s.coordinateSystem&&s.coordinateSystem.model,l=s.get("zlevel");var h=r._layers,u=h[l];if(!u){if(u=h[l]=new Os("gl-"+l,i),i.painter.isSingleCanvas()){u.virtual=!0;var f=new Yl({z:1e4,style:{image:u.renderer.canvas},silent:!0});u.__hostImage=f,i.add(f)}i.painter.insertLayer(l,u)}return u.__hostImage&&u.__hostImage.setStyle({width:u.renderer.getWidth(),height:u.renderer.getHeight()}),u}function a(s,l){s&&s.traverse(function(h){h.isRenderable&&h.isRenderable()&&(h.ignorePicking=h.$ignorePicking!=null?h.$ignorePicking:l)})}for(var o in this._layers)this._layers[o].removeViewsAll();e.eachComponent(function(s,l){if(s!=="series"){var h=t.getViewOfComponentModel(l),u=l.coordinateSystem;if(h.__ecgl__){var f;if(u){if(!u.viewGL){console.error("Can't find viewGL in coordinateSystem of component "+l.id);return}f=u.viewGL}else{if(!l.viewGL){console.error("Can't find viewGL of component "+l.id);return}f=u.viewGL}var f=u.viewGL,d=n(l);d.addView(f),h.afterRender&&h.afterRender(l,e,t,d),a(h.groupGL,l.get("silent"))}}}),e.eachSeries(function(s){var l=t.getViewOfSeriesModel(s),h=s.coordinateSystem;if(l.__ecgl__){if(h&&!h.viewGL&&!l.viewGL){console.error("Can't find viewGL of series "+l.id);return}var u=h&&h.viewGL||l.viewGL,f=n(s);f.addView(u),l.afterRender&&l.afterRender(s,e,t,f),a(l.groupGL,s.get("silent"))}})};Zl(function(e){var t=e.getZr(),r=t.painter.dispose;t.painter.dispose=function(){typeof this.eachOtherLayer=="function"&&this.eachOtherLayer(function(i){i instanceof Os&&i.dispose()}),r.call(this)},t.painter.getRenderedCanvas=function(i){if(i=i||{},this._singleCanvas)return this._layers[0].dom;var n=document.createElement("canvas"),a=i.pixelRatio||this.dpr;n.width=this.getWidth()*a,n.height=this.getHeight()*a;var o=n.getContext("2d");o.dpr=a,o.clearRect(0,0,n.width,n.height),i.backgroundColor&&(o.fillStyle=i.backgroundColor,o.fillRect(0,0,n.width,n.height));var s=this.storage.getDisplayList(!0),l={},h,u=this;function f(p,m){var g=u._zlevelList;p==null&&(p=-1/0);for(var x,y=0;y p&&_ 0&&this._notFirst?this.animateTo({alpha:h,beta:u,center:f,distance:a,orthographicSize:o,easing:l.animationEasingUpdate,duration:l.animationDurationUpdate}):(this.setDistance(a),this.setAlpha(h),this.setBeta(u),this.setCenter(f),this.setOrthographicSize(o)),this._notFirst=!0,this._validateProperties()},_validateProperties:function(){Vi[this.panMouseButton]==null&&console.error("Unkown panMouseButton %s. It should be left|middle|right",this.panMouseButton),Vi[this.rotateMouseButton]==null&&console.error("Unkown rotateMouseButton %s. It should be left|middle|right",this.rotateMouseButton),this.autoRotateDirection!=="cw"&&this.autoRotateDirection!=="ccw"&&console.error("Unkown autoRotateDirection %s. It should be cw|ccw",this.autoRotateDirection)},animateTo:function(e){var t=this.zr,r=this,i={},n={};return e.distance!=null&&(i.distance=this.getDistance(),n.distance=e.distance),e.orthographicSize!=null&&(i.orthographicSize=this.getOrthographicSize(),n.orthographicSize=e.orthographicSize),e.alpha!=null&&(i.alpha=this.getAlpha(),n.alpha=e.alpha),e.beta!=null&&(i.beta=this.getBeta(),n.beta=e.beta),e.center!=null&&(i.center=this.getCenter(),n.center=e.center),this._addAnimator(t.animation.animate(i).when(e.duration||1e3,n).during(function(){i.alpha!=null&&r.setAlpha(i.alpha),i.beta!=null&&r.setBeta(i.beta),i.distance!=null&&r.setDistance(i.distance),i.center!=null&&r.setCenter(i.center),i.orthographicSize!=null&&r.setOrthographicSize(i.orthographicSize),r._needsUpdate=!0})).start(e.easing||"linear")},stopAllAnimation:function(){for(var e=0;e 0},_update:function(e){if(this._rotating){var t=(this.autoRotateDirection==="cw"?1:-1)*this.autoRotateSpeed/180*Math.PI;this._phi-=t*e/1e3,this._needsUpdate=!0}else this._rotateVelocity.len()>0&&(this._needsUpdate=!0);(Math.abs(this._zoomSpeed)>.1||this._panVelocity.len()>0)&&(this._needsUpdate=!0),this._needsUpdate&&(e=Math.min(e,50),this._updateDistanceOrSize(e),this._updatePan(e),this._updateRotate(e),this._updateTransform(),this.getCamera().update(),this.zr&&this.zr.refresh(),this.trigger("update"),this._needsUpdate=!1)},_updateRotate:function(e){var t=this._rotateVelocity;this._phi=t.y*e/20+this._phi,this._theta=t.x*e/20+this._theta,this.setAlpha(this.getAlpha()),this.setBeta(this.getBeta()),this._vectorDamping(t,Math.pow(this.damping,e/16))},_updateDistanceOrSize:function(e){this._projection==="perspective"?this._setDistance(this._distance+this._zoomSpeed*e/20):this._setOrthoSize(this._orthoSize+this._zoomSpeed*e/20),this._zoomSpeed*=Math.pow(this.damping,e/16)},_setDistance:function(e){this._distance=Math.max(Math.min(e,this.maxDistance),this.minDistance)},_setOrthoSize:function(e){this._orthoSize=Math.max(Math.min(e,this.maxOrthographicSize),this.minOrthographicSize);var t=this.getCamera(),r=this._orthoSize,i=r/this.viewGL.viewport.height*this.viewGL.viewport.width;t.left=-i/2,t.right=i/2,t.top=r/2,t.bottom=-r/2},_updatePan:function(e){var t=this._panVelocity,r=this._distance,i=this.getCamera(),n=i.worldTransform.y,a=i.worldTransform.x;this._center.scaleAndAdd(a,-t.x*r/200).scaleAndAdd(n,-t.y*r/200),this._vectorDamping(t,0)},_updateTransform:function(){var e=this.getCamera(),t=new U,r=this._theta+Math.PI/2,i=this._phi+Math.PI/2,n=Math.sin(r);t.x=n*Math.cos(i),t.y=-Math.cos(r),t.z=n*Math.sin(i),e.position.copy(this._center).scaleAndAdd(t,this._distance),e.rotation.identity().rotateY(-this._phi).rotateX(-this._theta)},_startCountingStill:function(){clearTimeout(this._stillTimeout);var e=this.autoRotateAfterStill,t=this;!isNaN(e)&&e>0&&(this._stillTimeout=setTimeout(function(){t._rotating=!0},e*1e3))},_vectorDamping:function(e,t){var r=e.len();r=r*t,r<1e-4&&(r=0),e.normalize().scale(r)},_decomposeTransform:function(){if(!!this.getCamera()){this.getCamera().updateWorldTransform();var e=this.getCamera().worldTransform.z,t=Math.asin(e.y),r=Math.atan2(e.x,e.z);this._theta=t,this._phi=-r,this.setBeta(this.getBeta()),this.setAlpha(this.getAlpha()),this.getCamera().aspect?this._setDistance(this.getCamera().position.dist(this._center)):this._setOrthoSize(this.getCamera().top-this.getCamera().bottom)}},_mouseDownHandler:function(e){if(!e.target&&!this._isAnimating()){var t=e.offsetX,r=e.offsetY;this.viewGL&&!this.viewGL.containPoint(t,r)||(this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler),e.event.targetTouches?e.event.targetTouches.length===1&&(this._mode="rotate"):e.event.button===Vi[this.rotateMouseButton]?this._mode="rotate":e.event.button===Vi[this.panMouseButton]?this._mode="pan":this._mode="",this._rotateVelocity.set(0,0),this._rotating=!1,this.autoRotate&&this._startCountingStill(),this._mouseX=e.offsetX,this._mouseY=e.offsetY)}},_mouseMoveHandler:function(e){if(!(e.target&&e.target.__isGLToZRProxy)&&!this._isAnimating()){var t=Lo(this.panSensitivity),r=Lo(this.rotateSensitivity);this._mode==="rotate"?(this._rotateVelocity.y=(e.offsetX-this._mouseX)/this.zr.getHeight()*2*r[0],this._rotateVelocity.x=(e.offsetY-this._mouseY)/this.zr.getWidth()*2*r[1]):this._mode==="pan"&&(this._panVelocity.x=(e.offsetX-this._mouseX)/this.zr.getWidth()*t[0]*400,this._panVelocity.y=(-e.offsetY+this._mouseY)/this.zr.getHeight()*t[1]*400),this._mouseX=e.offsetX,this._mouseY=e.offsetY,e.event.preventDefault()}},_mouseWheelHandler:function(e){if(!this._isAnimating()){var t=e.event.wheelDelta||-e.event.detail;this._zoomHandler(e,t)}},_pinchHandler:function(e){this._isAnimating()||(this._zoomHandler(e,e.pinchScale>1?1:-1),this._mode="")},_zoomHandler:function(e,t){if(t!==0){var r=e.offsetX,i=e.offsetY;if(!(this.viewGL&&!this.viewGL.containPoint(r,i))){var n;this._projection==="perspective"?n=Math.max(Math.max(Math.min(this._distance-this.minDistance,this.maxDistance-this._distance))/20,.5):n=Math.max(Math.max(Math.min(this._orthoSize-this.minOrthographicSize,this.maxOrthographicSize-this._orthoSize))/20,.5),this._zoomSpeed=(t>0?-1:1)*n*this.zoomSensitivity,this._rotating=!1,this.autoRotate&&this._mode==="rotate"&&this._startCountingStill(),e.event.preventDefault()}}},_mouseUpHandler:function(){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_isRightMouseButtonUsed:function(){return this.rotateMouseButton==="right"||this.panMouseButton==="right"},_contextMenuHandler:function(e){this._isRightMouseButtonUsed()&&e.preventDefault()},_addAnimator:function(e){var t=this._animators;return t.push(e),e.done(function(){var r=t.indexOf(e);r>=0&&t.splice(r,1)}),e}});Object.defineProperty(Fs.prototype,"autoRotate",{get:function(e){return this._autoRotate},set:function(e){this._autoRotate=e,this._rotating=e}});const wn=Fs,Ci={convertToDynamicArray:function(e){e&&this.resetOffset();var t=this.attributes;for(var r in t)e||!t[r].value?t[r].value=[]:t[r].value=Array.prototype.slice.call(t[r].value);e||!this.indices?this.indices=[]:this.indices=Array.prototype.slice.call(this.indices)},convertToTypedArray:function(){var e=this.attributes;for(var t in e)e[t].value&&e[t].value.length>0?e[t].value=new Float32Array(e[t].value):e[t].value=null;this.indices&&this.indices.length>0&&(this.indices=this.vertexCount>65535?new Uint32Array(this.indices):new Uint16Array(this.indices)),this.dirty()}},Me={vec2:X,vec3:E,vec4:G,mat2:be,mat2d:De,mat3:ie,mat4:B,quat:Y};var Wn=Me.vec3,Mo=[[0,0],[1,1]],Us=oe.extend(function(){return{segmentScale:1,dynamic:!0,useNativeLine:!0,attributes:{position:new oe.Attribute("position","float",3,"POSITION"),positionPrev:new oe.Attribute("positionPrev","float",3),positionNext:new oe.Attribute("positionNext","float",3),prevPositionPrev:new oe.Attribute("prevPositionPrev","float",3),prevPosition:new oe.Attribute("prevPosition","float",3),prevPositionNext:new oe.Attribute("prevPositionNext","float",3),offset:new oe.Attribute("offset","float",1),color:new oe.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(e){var t=this.attributes;this.vertexCount!==e&&(t.position.init(e),t.color.init(e),this.useNativeLine||(t.positionPrev.init(e),t.positionNext.init(e),t.offset.init(e)),e>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(e){this.triangleCount!==e&&(e===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(e*3):new Uint16Array(e*3))},_getCubicCurveApproxStep:function(e,t,r,i){var n=Wn.dist(e,t)+Wn.dist(r,t)+Wn.dist(i,r),a=1/(n+1)*this.segmentScale;return a},getCubicCurveVertexCount:function(e,t,r,i){var n=this._getCubicCurveApproxStep(e,t,r,i),a=Math.ceil(1/n);return this.useNativeLine?a*2:a*2+2},getCubicCurveTriangleCount:function(e,t,r,i){var n=this._getCubicCurveApproxStep(e,t,r,i),a=Math.ceil(1/n);return this.useNativeLine?0:a*2},getLineVertexCount:function(){return this.getPolylineVertexCount(Mo)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(Mo)},getPolylineVertexCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/3}return this.useNativeLine?(t-1)*2:(t-1)*2+2},getPolylineTriangleCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/3}return this.useNativeLine?0:Math.max(t-1,0)*2},addCubicCurve:function(e,t,r,i,n,a){a==null&&(a=1);for(var o=e[0],s=e[1],l=e[2],h=t[0],u=t[1],f=t[2],d=r[0],c=r[1],v=r[2],p=i[0],m=i[1],g=i[2],x=this._getCubicCurveApproxStep(e,t,r,i),y=x*x,_=y*x,w=3*x,S=3*y,b=6*y,A=6*_,C=o-h*2+d,P=s-u*2+c,L=l-f*2+v,R=(h-d)*3-o+p,I=(u-c)*3-s+m,D=(f-v)*3-l+g,O=o,z=s,V=l,F=(h-o)*w+C*S+R*_,le=(u-s)*w+P*S+I*_,H=(f-l)*w+L*S+D*_,de=C*b+R*A,he=P*b+I*A,ge=L*b+D*A,_e=R*A,te=I*A,Ne=D*A,Se=0,Ce=0,Qe=Math.ceil(1/x),Xe=new Float32Array((Qe+1)*3),Xe=[],ze=0,Ce=0;Ce 1&&(O=F>0?Math.min(O,p):Math.max(O,p),z=le>0?Math.min(z,m):Math.max(z,m),V=H>0?Math.min(V,g):Math.max(V,g));return this.addPolyline(Xe,n,a)},addLine:function(e,t,r,i){return this.addPolyline([e,t],r,i)},addPolyline:function(e,t,r,i,n){if(!!e.length){var a=typeof e[0]!="number";if(n==null&&(n=a?e.length:e.length/3),!(n<2)){i==null&&(i=0),r==null&&(r=1),this._itemVertexOffsets.push(this._vertexOffset);var a=typeof e[0]!="number",o=a?typeof t[0]!="number":t.length/4===n,s=this.attributes.position,l=this.attributes.positionPrev,h=this.attributes.positionNext,u=this.attributes.color,f=this.attributes.offset,d=this.indices,c=this._vertexOffset,v,p;r=Math.max(r,.01);for(var m=i;m 1&&(s.copy(c,c-1),u.copy(c,c-1),c++):(m 0&&(h.set(c-2,v),h.set(c-1,v)),s.set(c,v),s.set(c+1,v),u.set(c,p),u.set(c+1,p),f.set(c,r/2),f.set(c+1,-r/2),c+=2),this.useNativeLine)u.set(c,p),s.set(c,v),c++;else if(m>0){var y=this._triangleOffset*3,d=this.indices;d[y]=c-4,d[y+1]=c-3,d[y+2]=c-2,d[y+3]=c-3,d[y+4]=c-1,d[y+5]=c-2,this._triangleOffset+=2}}if(!this.useNativeLine){var _=this._vertexOffset,w=this._vertexOffset+n*2;l.copy(_,_+2),l.copy(_+1,_+3),h.copy(w-1,w-3),h.copy(w-2,w-4)}return this._vertexOffset=c,this._vertexOffset}}},setItemColor:function(e,t){for(var r=this._itemVertexOffsets[e],i=e o&&(n=this._x=0,a+=this._rowHeight+l,this._y=a,this._rowHeight=0),this._x+=t+l,this._rowHeight=Math.max(this._rowHeight,r),a+r+l>s)return null;e.x+=this.offsetX*this.dpr+n,e.y+=this.offsetY*this.dpr+a,this._zr.add(e);var h=[this.offsetX/this.width,this.offsetY/this.height],u=[[n/o+h[0],a/s+h[1]],[(n+t)/o+h[0],(a+r)/s+h[1]]];return u},_fitElement:function(e,t,r){var i=e.getBoundingRect(),n=t/i.width,a=r/i.height;e.x=-i.x*n,e.y=-i.y*a,e.scaleX=n,e.scaleY=a,e.update()}};function sn(e){e=e||{},e.width=e.width||512,e.height=e.height||512,e.devicePixelRatio=e.devicePixelRatio||1,e.gap=e.gap==null?2:e.gap;var t=document.createElement("canvas");t.width=e.width*e.devicePixelRatio,t.height=e.height*e.devicePixelRatio,this._canvas=t,this._texture=new $({image:t,flipY:!1});var r=this;this._zr=Kl(t);var i=this._zr.refreshImmediately;this._zr.refreshImmediately=function(){i.call(this),r._texture.dirty(),r.onupdate&&r.onupdate()},this._dpr=e.devicePixelRatio,this._coords={},this.onupdate=e.onupdate,this._gap=e.gap,this._textureAtlasNodes=[new on(this._zr,0,0,e.width,e.height,this._gap,this._dpr)],this._nodeWidth=e.width,this._nodeHeight=e.height,this._currentNodeIdx=0}sn.prototype={clear:function(){for(var e=0;e =e){console.error("Too much labels. Some will be ignored.");return}var a=(i+this._nodeWidth)*this._dpr,o=(n+this._nodeHeight)*this._dpr;try{this._zr.resize({width:a,height:o})}catch{this._canvas.width=a,this._canvas.height=o}var s=new on(this._zr,i,n,this._nodeWidth,this._nodeHeight,this._gap,this._dpr);return this._textureAtlasNodes.push(s),s},add:function(e,t,r){if(this._coords[e.id])return console.warn("Element already been add"),this._coords[e.id];var i=this._getCurrentNode().add(e,t,r);if(!i){var n=this._expand();if(!n)return;i=n.add(e,t,r)}return this._coords[e.id]=i,i},getCoordsScale:function(){var e=this._dpr;return[this._nodeWidth/this._canvas.width*e,this._nodeHeight/this._canvas.height*e]},getCoords:function(e){return this._coords[e]},dispose:function(){this._zr.dispose()}};function Yt(){}Yt.prototype={constructor:Yt,setScene:function(e){this._scene=e,this._skybox&&this._skybox.attachScene(this._scene)},initLight:function(e){this._lightRoot=e,this.mainLight=new T.DirectionalLight({shadowBias:.005}),this.ambientLight=new T.AmbientLight,e.add(this.mainLight),e.add(this.ambientLight)},dispose:function(){this._lightRoot&&(this._lightRoot.remove(this.mainLight),this._lightRoot.remove(this.ambientLight))},updateLight:function(e){var t=this.mainLight,r=this.ambientLight,i=e.getModel("light"),n=i.getModel("main"),a=i.getModel("ambient");t.intensity=n.get("intensity"),r.intensity=a.get("intensity"),t.color=T.parseColor(n.get("color")).slice(0,3),r.color=T.parseColor(a.get("color")).slice(0,3);var o=n.get("alpha")||0,s=n.get("beta")||0;t.position.setArray(T.directionFromAlphaBeta(o,s)),t.lookAt(T.Vector3.ZERO),t.castShadow=n.get("shadow"),t.shadowResolution=T.getShadowResolution(n.get("shadowQuality"))},updateAmbientCubemap:function(e,t,r){var i=t.getModel("light.ambientCubemap"),n=i.get("texture");if(n){this._cubemapLightsCache=this._cubemapLightsCache||{};var a=this._cubemapLightsCache[n];if(!a){var o=this;a=this._cubemapLightsCache[n]=T.createAmbientCubemap(i.option,e,r,function(){o._isSkyboxFromAmbientCubemap&&o._skybox.setEnvironmentMap(a.specular.cubemap),r.getZr().refresh()})}this._lightRoot.add(a.diffuse),this._lightRoot.add(a.specular),this._currentCubemapLights=a}else this._currentCubemapLights&&(this._lightRoot.remove(this._currentCubemapLights.diffuse),this._lightRoot.remove(this._currentCubemapLights.specular),this._currentCubemapLights=null)},updateSkybox:function(e,t,r){var i=t.get("environment"),n=this;function a(){return n._skybox=n._skybox||new pi,n._skybox}var o=a();if(i&&i!=="none")if(i==="auto")if(this._isSkyboxFromAmbientCubemap=!0,this._currentCubemapLights){var s=this._currentCubemapLights.specular.cubemap;o.setEnvironmentMap(s),this._scene&&o.attachScene(this._scene),o.material.set("lod",3)}else this._skybox&&this._skybox.detachScene();else if(typeof i=="object"&&i.colorStops||typeof i=="string"&&ss(i)){this._isSkyboxFromAmbientCubemap=!1;var l=new T.Texture2D({anisotropic:8,flipY:!1});o.setEnvironmentMap(l);var h=l.image=document.createElement("canvas");h.width=h.height=16;var u=h.getContext("2d"),f=new ls({shape:{x:0,y:0,width:16,height:16},style:{fill:i}});hs(u,f),o.attachScene(this._scene)}else{this._isSkyboxFromAmbientCubemap=!1;var l=T.loadTexture(i,r,{anisotropic:8,flipY:!1});o.setEnvironmentMap(l),o.attachScene(this._scene)}else this._skybox&&this._skybox.detachScene(this._scene),this._skybox=null;var d=t.coordinateSystem;if(this._skybox)if(d&&d.viewGL&&i!=="auto"&&!(i.match&&i.match(/.hdr$/))){var c=d.viewGL.isLinearSpace()?"define":"undefine";this._skybox.material[c]("fragment","SRGB_DECODE")}else this._skybox.material.undefine("fragment","SRGB_DECODE")}};var rr=Me.vec3,Gs=oe.extend(function(){return{segmentScale:1,useNativeLine:!0,attributes:{position:new oe.Attribute("position","float",3,"POSITION"),normal:new oe.Attribute("normal","float",3,"NORMAL"),color:new oe.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setQuadCount:function(e){var t=this.attributes,r=this.getQuadVertexCount()*e,i=this.getQuadTriangleCount()*e;this.vertexCount!==r&&(t.position.init(r),t.normal.init(r),t.color.init(r)),this.triangleCount!==i&&(this.indices=r>65535?new Uint32Array(i*3):new Uint16Array(i*3))},getQuadVertexCount:function(){return 4},getQuadTriangleCount:function(){return 2},addQuad:function(){var e=rr.create(),t=rr.create(),r=rr.create(),i=[0,3,1,3,2,1];return function(n,a){var o=this.attributes.position,s=this.attributes.normal,l=this.attributes.color;rr.sub(e,n[1],n[0]),rr.sub(t,n[2],n[1]),rr.cross(r,e,t),rr.normalize(r,r);for(var h=0;h<4;h++)o.set(this._vertexOffset+h,n[h]),l.set(this._vertexOffset+h,a),s.set(this._vertexOffset+h,r);for(var u=this._faceOffset*3,h=0;h<6;h++)this.indices[u+h]=i[h]+this._vertexOffset;this._vertexOffset+=4,this._faceOffset+=2}}()});Kt(Gs.prototype,Ci);const zf=Gs;var ua=K.firstNotNull,Hf={x:0,y:2,z:1};function Vf(e,t,r,i){var n=[0,0,0],a=i<0?r.getExtentMin():r.getExtentMax();n[Hf[r.dim]]=a,e.position.setArray(n),e.rotation.identity(),t.distance=-Math.abs(a),t.normal.set(0,0,0),r.dim==="x"?(e.rotation.rotateY(i*Math.PI/2),t.normal.x=-i):r.dim==="z"?(e.rotation.rotateX(-i*Math.PI/2),t.normal.y=-i):(i>0&&e.rotation.rotateY(Math.PI),t.normal.z=-i)}function Sn(e,t,r){this.rootNode=new T.Node;var i=new T.Mesh({geometry:new yr({useNativeLine:!1}),material:t,castShadow:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:1}),n=new T.Mesh({geometry:new zf,material:r,castShadow:!1,culling:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:0});this.rootNode.add(n),this.rootNode.add(i),this.faceInfo=e,this.plane=new T.Plane,this.linesMesh=i,this.quadsMesh=n}Sn.prototype.update=function(e,t,r){var i=e.coordinateSystem,n=[i.getAxis(this.faceInfo[0]),i.getAxis(this.faceInfo[1])],a=this.linesMesh.geometry,o=this.quadsMesh.geometry;a.convertToDynamicArray(!0),o.convertToDynamicArray(!0),this._updateSplitLines(a,n,e,r),this._udpateSplitAreas(o,n,e,r),a.convertToTypedArray(),o.convertToTypedArray();var s=i.getAxis(this.faceInfo[2]);Vf(this.rootNode,this.plane,s,this.faceInfo[3])};Sn.prototype._updateSplitLines=function(e,t,r,i){var n=i.getDevicePixelRatio();t.forEach(function(a,o){var s=a.model,l=t[1-o].getExtent();if(!a.scale.isBlank()){var h=s.getModel("splitLine",r.getModel("splitLine"));if(h.get("show")){var u=h.getModel("lineStyle"),f=u.get("color"),d=ua(u.get("opacity"),1),c=ua(u.get("width"),1);f=Mt(f)?f:[f];for(var v=a.getTicksCoords({tickModel:h}),p=0,m=0;m 65535?new Uint32Array(r*3):new Uint16Array(r*3))},setSpriteAlign:function(e,t,r,i,n){r==null&&(r="left"),i==null&&(i="top");var a,o,s,l;switch(n=n||0,r){case"left":a=n,s=t[0]+n;break;case"center":case"middle":a=-t[0]/2,s=t[0]/2;break;case"right":a=-t[0]-n,s=-n;break}switch(i){case"bottom":o=n,l=t[1]+n;break;case"middle":o=-t[1]/2,l=t[1]/2;break;case"top":o=-t[1]-n,l=-n;break}var h=e*4,u=this.attributes.offset;u.set(h,[a,l]),u.set(h+1,[s,l]),u.set(h+2,[s,o]),u.set(h+3,[a,o])},addSprite:function(e,t,r,i,n,a){var o=this._vertexOffset;this.setSprite(this._vertexOffset/4,e,t,r,i,n,a);for(var s=0;s 3?t[3]=e[3]:t[3]=1,t):(t=os(e||"#000",t)||[0,0,0,0],t[0]/=255,t[1]/=255,t[2]/=255,t)};q.directionFromAlphaBeta=function(e,t){var r=e/180*Math.PI+Math.PI/2,i=-t/180*Math.PI+Math.PI/2,n=[],a=Math.sin(r);return n[0]=a*Math.cos(i),n[1]=-Math.cos(r),n[2]=a*Math.sin(i),n};q.getShadowResolution=function(e){var t=1024;switch(e){case"low":t=512;break;case"medium":break;case"high":t=2048;break;case"ultra":t=4096;break}return t};q.COMMON_SHADERS=["lambert","color","realistic","hatching","shadow"];q.createShader=function(e){e==="ecgl.shadow"&&(e="ecgl.displayShadow");var t=N.source(e+".vertex"),r=N.source(e+".fragment");t||console.error("Vertex shader of '%s' not exits",e),r||console.error("Fragment shader of '%s' not exits",e);var i=new N(t,r);return i.name=e,i};q.createMaterial=function(e,t){t instanceof Array||(t=[t]);var r=q.createShader(e),i=new gt({shader:r});return t.forEach(function(n){typeof n=="string"&&i.define(n)}),i};q.setMaterialFromModel=function(e,t,r,i){t.autoUpdateTextureStatus=!1;var n=r.getModel(e+"Material"),a=n.get("detailTexture"),o=K.firstNotNull(n.get("textureTiling"),1),s=K.firstNotNull(n.get("textureOffset"),0);typeof o=="number"&&(o=[o,o]),typeof s=="number"&&(s=[s,s]);var l=o[0]>1||o[1]>1?q.Texture.REPEAT:q.Texture.CLAMP_TO_EDGE,h={anisotropic:8,wrapS:l,wrapT:l};if(e==="realistic"){var u=n.get("roughness"),f=n.get("metalness");f!=null?isNaN(f)&&(t.setTextureImage("metalnessMap",f,i,h),f=K.firstNotNull(n.get("metalnessAdjust"),.5)):f=0,u!=null?isNaN(u)&&(t.setTextureImage("roughnessMap",u,i,h),u=K.firstNotNull(n.get("roughnessAdjust"),.5)):u=.5;var d=n.get("normalTexture");t.setTextureImage("detailMap",a,i,h),t.setTextureImage("normalMap",d,i,h),t.set({roughness:u,metalness:f,detailUvRepeat:o,detailUvOffset:s})}else if(e==="lambert")t.setTextureImage("detailMap",a,i,h),t.set({detailUvRepeat:o,detailUvOffset:s});else if(e==="color")t.setTextureImage("detailMap",a,i,h),t.set({detailUvRepeat:o,detailUvOffset:s});else if(e==="hatching"){var c=n.get("hatchingTextures")||[];c.length<6&&console.error("Invalid hatchingTextures.");for(var v=0;v<6;v++)t.setTextureImage("hatch"+(v+1),c[v],i,{anisotropic:8,wrapS:q.Texture.REPEAT,wrapT:q.Texture.REPEAT});t.set({detailUvRepeat:o,detailUvOffset:s})}};q.updateVertexAnimation=function(e,t,r,i){var n=i.get("animation"),a=i.get("animationDurationUpdate"),o=i.get("animationEasingUpdate"),s=r.shadowDepthMaterial;if(n&&t&&a>0&&t.geometry.vertexCount===r.geometry.vertexCount){r.material.define("vertex","VERTEX_ANIMATION"),r.ignorePreZ=!0,s&&s.define("vertex","VERTEX_ANIMATION");for(var l=0;l =0&&this._viewsToDispose.splice(t,1),this.views.push(e),e.layer=this;var r=this.zr;e.scene.traverse(function(i){i.__zr=r,i.addAnimatorsToZr&&i.addAnimatorsToZr(r)})}};function Ns(e){var t=e.__zr;e.__zr=null,t&&e.removeAnimatorsFromZr&&e.removeAnimatorsFromZr(t)}me.prototype.removeView=function(e){if(e.layer===this){var t=this.views.indexOf(e);t>=0&&(this.views.splice(t,1),e.scene.traverse(Ns,this),e.layer=null,this._viewsToDispose.push(e))}};me.prototype.removeViewsAll=function(){this.views.forEach(function(e){e.scene.traverse(Ns,this),e.layer=null,this._viewsToDispose.push(e)},this),this.views.length=0};me.prototype.resize=function(e,t){var r=this.renderer;r.resize(e,t)};me.prototype.clear=function(){var e=this.renderer.gl,t=this._backgroundColor||[0,0,0,0];e.clearColor(t[0],t[1],t[2],t[3]),e.depthMask(!0),e.colorMask(!0,!0,!0,!0),e.clear(e.DEPTH_BUFFER_BIT|e.COLOR_BUFFER_BIT)};me.prototype.clearDepth=function(){var e=this.renderer.gl;e.clear(e.DEPTH_BUFFER_BIT)};me.prototype.clearColor=function(){var e=this.renderer.gl;e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT)};me.prototype.needsRefresh=function(){this.zr.refresh()};me.prototype.refresh=function(e){this._backgroundColor=e?T.parseColor(e):[0,0,0,0],this.renderer.clearColor=this._backgroundColor;for(var t=0;t 20)){e=e.event;var i=this.pickObject(e.offsetX,e.offsetY);i&&(this._dispatchEvent(e.type,e,i),this._dispatchDataEvent(e.type,e,i));var n=this._clickToSetFocusPoint(e);if(n){var a=n.view.setDOFFocusOnPoint(n.distance);a&&this.zr.refresh()}}}};me.prototype._clickToSetFocusPoint=function(e){for(var t=this.renderer,r=t.viewport,i=this.views.length-1;i>=0;i--){var n=this.views[i];if(n.hasDOF()&&n.containPoint(e.offsetX,e.offsetY)){this._picking.scene=n.scene,this._picking.camera=n.camera,t.viewport=n.viewport;var a=this._picking.pick(e.offsetX,e.offsetY,!0);if(a)return a.view=n,a}}t.viewport=r};me.prototype.onglobalout=function(e){var t=this._hovered;t&&this._dispatchEvent("mouseout",e,{target:t.target})};me.prototype.pickObject=function(e,t){for(var r=[],i=this.renderer,n=i.viewport,a=0;a =0&&(u.dataIndex=this._lastDataIndex,u.seriesIndex=this._lastSeriesIndex,this.zr.handler.dispatchToElement(h,"mouseout",t)),s=!0):o!=null&&o!==this._lastEventData&&(this._lastEventData!=null&&(u.eventData=this._lastEventData,this.zr.handler.dispatchToElement(h,"mouseout",t)),s=!0),this._lastEventData=o,this._lastDataIndex=n,this._lastSeriesIndex=a),u.eventData=o,u.dataIndex=n,u.seriesIndex=a,(o!=null||parseInt(n,10)>=0&&parseInt(a,10)>=0)&&(this.zr.handler.dispatchToElement(h,e,t),s&&this.zr.handler.dispatchToElement(h,"mouseover",t))};me.prototype._dispatchToView=function(e,t){for(var r=0;r =0&&(Bf(t),t.coordinateSystem==="mapbox"&&(t.coordinateSystem="mapbox3D",e.mapbox3D=e.mapbox))}),zi(e.xAxis3D),zi(e.yAxis3D),zi(e.zAxis3D),zi(e.grid3D),si(e.geo3D)}function Os(e){this._layers={},this._zr=e}Os.prototype.update=function(e,t){var r=this,i=t.getZr();if(!i.getWidth()||!i.getHeight()){console.warn("Dom has no width or height");return}function n(s){i.setSleepAfterStill(0);var l;s.coordinateSystem&&s.coordinateSystem.model,l=s.get("zlevel");var h=r._layers,u=h[l];if(!u){if(u=h[l]=new Is("gl-"+l,i),i.painter.isSingleCanvas()){u.virtual=!0;var f=new ql({z:1e4,style:{image:u.renderer.canvas},silent:!0});u.__hostImage=f,i.add(f)}i.painter.insertLayer(l,u)}return u.__hostImage&&u.__hostImage.setStyle({width:u.renderer.getWidth(),height:u.renderer.getHeight()}),u}function a(s,l){s&&s.traverse(function(h){h.isRenderable&&h.isRenderable()&&(h.ignorePicking=h.$ignorePicking!=null?h.$ignorePicking:l)})}for(var o in this._layers)this._layers[o].removeViewsAll();e.eachComponent(function(s,l){if(s!=="series"){var h=t.getViewOfComponentModel(l),u=l.coordinateSystem;if(h.__ecgl__){var f;if(u){if(!u.viewGL){console.error("Can't find viewGL in coordinateSystem of component "+l.id);return}f=u.viewGL}else{if(!l.viewGL){console.error("Can't find viewGL of component "+l.id);return}f=u.viewGL}var f=u.viewGL,d=n(l);d.addView(f),h.afterRender&&h.afterRender(l,e,t,d),a(h.groupGL,l.get("silent"))}}}),e.eachSeries(function(s){var l=t.getViewOfSeriesModel(s),h=s.coordinateSystem;if(l.__ecgl__){if(h&&!h.viewGL&&!l.viewGL){console.error("Can't find viewGL of series "+l.id);return}var u=h&&h.viewGL||l.viewGL,f=n(s);f.addView(u),l.afterRender&&l.afterRender(s,e,t,f),a(l.groupGL,s.get("silent"))}})};Xl(function(e){var t=e.getZr(),r=t.painter.dispose;t.painter.dispose=function(){typeof this.eachOtherLayer=="function"&&this.eachOtherLayer(function(i){i instanceof Is&&i.dispose()}),r.call(this)},t.painter.getRenderedCanvas=function(i){if(i=i||{},this._singleCanvas)return this._layers[0].dom;var n=document.createElement("canvas"),a=i.pixelRatio||this.dpr;n.width=this.getWidth()*a,n.height=this.getHeight()*a;var o=n.getContext("2d");o.dpr=a,o.clearRect(0,0,n.width,n.height),i.backgroundColor&&(o.fillStyle=i.backgroundColor,o.fillRect(0,0,n.width,n.height));var s=this.storage.getDisplayList(!0),l={},h,u=this;function f(p,m){var g=u._zlevelList;p==null&&(p=-1/0);for(var x,y=0;y p&&_ 0&&this._notFirst?this.animateTo({alpha:h,beta:u,center:f,distance:a,orthographicSize:o,easing:l.animationEasingUpdate,duration:l.animationDurationUpdate}):(this.setDistance(a),this.setAlpha(h),this.setBeta(u),this.setCenter(f),this.setOrthographicSize(o)),this._notFirst=!0,this._validateProperties()},_validateProperties:function(){Hi[this.panMouseButton]==null&&console.error("Unkown panMouseButton %s. It should be left|middle|right",this.panMouseButton),Hi[this.rotateMouseButton]==null&&console.error("Unkown rotateMouseButton %s. It should be left|middle|right",this.rotateMouseButton),this.autoRotateDirection!=="cw"&&this.autoRotateDirection!=="ccw"&&console.error("Unkown autoRotateDirection %s. It should be cw|ccw",this.autoRotateDirection)},animateTo:function(e){var t=this.zr,r=this,i={},n={};return e.distance!=null&&(i.distance=this.getDistance(),n.distance=e.distance),e.orthographicSize!=null&&(i.orthographicSize=this.getOrthographicSize(),n.orthographicSize=e.orthographicSize),e.alpha!=null&&(i.alpha=this.getAlpha(),n.alpha=e.alpha),e.beta!=null&&(i.beta=this.getBeta(),n.beta=e.beta),e.center!=null&&(i.center=this.getCenter(),n.center=e.center),this._addAnimator(t.animation.animate(i).when(e.duration||1e3,n).during(function(){i.alpha!=null&&r.setAlpha(i.alpha),i.beta!=null&&r.setBeta(i.beta),i.distance!=null&&r.setDistance(i.distance),i.center!=null&&r.setCenter(i.center),i.orthographicSize!=null&&r.setOrthographicSize(i.orthographicSize),r._needsUpdate=!0})).start(e.easing||"linear")},stopAllAnimation:function(){for(var e=0;e 0},_update:function(e){if(this._rotating){var t=(this.autoRotateDirection==="cw"?1:-1)*this.autoRotateSpeed/180*Math.PI;this._phi-=t*e/1e3,this._needsUpdate=!0}else this._rotateVelocity.len()>0&&(this._needsUpdate=!0);(Math.abs(this._zoomSpeed)>.1||this._panVelocity.len()>0)&&(this._needsUpdate=!0),this._needsUpdate&&(e=Math.min(e,50),this._updateDistanceOrSize(e),this._updatePan(e),this._updateRotate(e),this._updateTransform(),this.getCamera().update(),this.zr&&this.zr.refresh(),this.trigger("update"),this._needsUpdate=!1)},_updateRotate:function(e){var t=this._rotateVelocity;this._phi=t.y*e/20+this._phi,this._theta=t.x*e/20+this._theta,this.setAlpha(this.getAlpha()),this.setBeta(this.getBeta()),this._vectorDamping(t,Math.pow(this.damping,e/16))},_updateDistanceOrSize:function(e){this._projection==="perspective"?this._setDistance(this._distance+this._zoomSpeed*e/20):this._setOrthoSize(this._orthoSize+this._zoomSpeed*e/20),this._zoomSpeed*=Math.pow(this.damping,e/16)},_setDistance:function(e){this._distance=Math.max(Math.min(e,this.maxDistance),this.minDistance)},_setOrthoSize:function(e){this._orthoSize=Math.max(Math.min(e,this.maxOrthographicSize),this.minOrthographicSize);var t=this.getCamera(),r=this._orthoSize,i=r/this.viewGL.viewport.height*this.viewGL.viewport.width;t.left=-i/2,t.right=i/2,t.top=r/2,t.bottom=-r/2},_updatePan:function(e){var t=this._panVelocity,r=this._distance,i=this.getCamera(),n=i.worldTransform.y,a=i.worldTransform.x;this._center.scaleAndAdd(a,-t.x*r/200).scaleAndAdd(n,-t.y*r/200),this._vectorDamping(t,0)},_updateTransform:function(){var e=this.getCamera(),t=new U,r=this._theta+Math.PI/2,i=this._phi+Math.PI/2,n=Math.sin(r);t.x=n*Math.cos(i),t.y=-Math.cos(r),t.z=n*Math.sin(i),e.position.copy(this._center).scaleAndAdd(t,this._distance),e.rotation.identity().rotateY(-this._phi).rotateX(-this._theta)},_startCountingStill:function(){clearTimeout(this._stillTimeout);var e=this.autoRotateAfterStill,t=this;!isNaN(e)&&e>0&&(this._stillTimeout=setTimeout(function(){t._rotating=!0},e*1e3))},_vectorDamping:function(e,t){var r=e.len();r=r*t,r<1e-4&&(r=0),e.normalize().scale(r)},_decomposeTransform:function(){if(!!this.getCamera()){this.getCamera().updateWorldTransform();var e=this.getCamera().worldTransform.z,t=Math.asin(e.y),r=Math.atan2(e.x,e.z);this._theta=t,this._phi=-r,this.setBeta(this.getBeta()),this.setAlpha(this.getAlpha()),this.getCamera().aspect?this._setDistance(this.getCamera().position.dist(this._center)):this._setOrthoSize(this.getCamera().top-this.getCamera().bottom)}},_mouseDownHandler:function(e){if(!e.target&&!this._isAnimating()){var t=e.offsetX,r=e.offsetY;this.viewGL&&!this.viewGL.containPoint(t,r)||(this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler),e.event.targetTouches?e.event.targetTouches.length===1&&(this._mode="rotate"):e.event.button===Hi[this.rotateMouseButton]?this._mode="rotate":e.event.button===Hi[this.panMouseButton]?this._mode="pan":this._mode="",this._rotateVelocity.set(0,0),this._rotating=!1,this.autoRotate&&this._startCountingStill(),this._mouseX=e.offsetX,this._mouseY=e.offsetY)}},_mouseMoveHandler:function(e){if(!(e.target&&e.target.__isGLToZRProxy)&&!this._isAnimating()){var t=Co(this.panSensitivity),r=Co(this.rotateSensitivity);this._mode==="rotate"?(this._rotateVelocity.y=(e.offsetX-this._mouseX)/this.zr.getHeight()*2*r[0],this._rotateVelocity.x=(e.offsetY-this._mouseY)/this.zr.getWidth()*2*r[1]):this._mode==="pan"&&(this._panVelocity.x=(e.offsetX-this._mouseX)/this.zr.getWidth()*t[0]*400,this._panVelocity.y=(-e.offsetY+this._mouseY)/this.zr.getHeight()*t[1]*400),this._mouseX=e.offsetX,this._mouseY=e.offsetY,e.event.preventDefault()}},_mouseWheelHandler:function(e){if(!this._isAnimating()){var t=e.event.wheelDelta||-e.event.detail;this._zoomHandler(e,t)}},_pinchHandler:function(e){this._isAnimating()||(this._zoomHandler(e,e.pinchScale>1?1:-1),this._mode="")},_zoomHandler:function(e,t){if(t!==0){var r=e.offsetX,i=e.offsetY;if(!(this.viewGL&&!this.viewGL.containPoint(r,i))){var n;this._projection==="perspective"?n=Math.max(Math.max(Math.min(this._distance-this.minDistance,this.maxDistance-this._distance))/20,.5):n=Math.max(Math.max(Math.min(this._orthoSize-this.minOrthographicSize,this.maxOrthographicSize-this._orthoSize))/20,.5),this._zoomSpeed=(t>0?-1:1)*n*this.zoomSensitivity,this._rotating=!1,this.autoRotate&&this._mode==="rotate"&&this._startCountingStill(),e.event.preventDefault()}}},_mouseUpHandler:function(){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_isRightMouseButtonUsed:function(){return this.rotateMouseButton==="right"||this.panMouseButton==="right"},_contextMenuHandler:function(e){this._isRightMouseButtonUsed()&&e.preventDefault()},_addAnimator:function(e){var t=this._animators;return t.push(e),e.done(function(){var r=t.indexOf(e);r>=0&&t.splice(r,1)}),e}});Object.defineProperty(Bs.prototype,"autoRotate",{get:function(e){return this._autoRotate},set:function(e){this._autoRotate=e,this._rotating=e}});const Tn=Bs,bi={convertToDynamicArray:function(e){e&&this.resetOffset();var t=this.attributes;for(var r in t)e||!t[r].value?t[r].value=[]:t[r].value=Array.prototype.slice.call(t[r].value);e||!this.indices?this.indices=[]:this.indices=Array.prototype.slice.call(this.indices)},convertToTypedArray:function(){var e=this.attributes;for(var t in e)e[t].value&&e[t].value.length>0?e[t].value=new Float32Array(e[t].value):e[t].value=null;this.indices&&this.indices.length>0&&(this.indices=this.vertexCount>65535?new Uint32Array(this.indices):new Uint16Array(this.indices)),this.dirty()}},Me={vec2:X,vec3:E,vec4:G,mat2:be,mat2d:De,mat3:ie,mat4:B,quat:Y};var kn=Me.vec3,Lo=[[0,0],[1,1]],Fs=oe.extend(function(){return{segmentScale:1,dynamic:!0,useNativeLine:!0,attributes:{position:new oe.Attribute("position","float",3,"POSITION"),positionPrev:new oe.Attribute("positionPrev","float",3),positionNext:new oe.Attribute("positionNext","float",3),prevPositionPrev:new oe.Attribute("prevPositionPrev","float",3),prevPosition:new oe.Attribute("prevPosition","float",3),prevPositionNext:new oe.Attribute("prevPositionNext","float",3),offset:new oe.Attribute("offset","float",1),color:new oe.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(e){var t=this.attributes;this.vertexCount!==e&&(t.position.init(e),t.color.init(e),this.useNativeLine||(t.positionPrev.init(e),t.positionNext.init(e),t.offset.init(e)),e>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(e){this.triangleCount!==e&&(e===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(e*3):new Uint16Array(e*3))},_getCubicCurveApproxStep:function(e,t,r,i){var n=kn.dist(e,t)+kn.dist(r,t)+kn.dist(i,r),a=1/(n+1)*this.segmentScale;return a},getCubicCurveVertexCount:function(e,t,r,i){var n=this._getCubicCurveApproxStep(e,t,r,i),a=Math.ceil(1/n);return this.useNativeLine?a*2:a*2+2},getCubicCurveTriangleCount:function(e,t,r,i){var n=this._getCubicCurveApproxStep(e,t,r,i),a=Math.ceil(1/n);return this.useNativeLine?0:a*2},getLineVertexCount:function(){return this.getPolylineVertexCount(Lo)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(Lo)},getPolylineVertexCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/3}return this.useNativeLine?(t-1)*2:(t-1)*2+2},getPolylineTriangleCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/3}return this.useNativeLine?0:Math.max(t-1,0)*2},addCubicCurve:function(e,t,r,i,n,a){a==null&&(a=1);for(var o=e[0],s=e[1],l=e[2],h=t[0],u=t[1],f=t[2],d=r[0],c=r[1],v=r[2],p=i[0],m=i[1],g=i[2],x=this._getCubicCurveApproxStep(e,t,r,i),y=x*x,_=y*x,w=3*x,S=3*y,b=6*y,A=6*_,C=o-h*2+d,P=s-u*2+c,L=l-f*2+v,R=(h-d)*3-o+p,I=(u-c)*3-s+m,D=(f-v)*3-l+g,O=o,z=s,V=l,F=(h-o)*w+C*S+R*_,le=(u-s)*w+P*S+I*_,H=(f-l)*w+L*S+D*_,de=C*b+R*A,he=P*b+I*A,ge=L*b+D*A,_e=R*A,te=I*A,Ne=D*A,Se=0,Ce=0,Qe=Math.ceil(1/x),Xe=new Float32Array((Qe+1)*3),Xe=[],ze=0,Ce=0;Ce 1&&(O=F>0?Math.min(O,p):Math.max(O,p),z=le>0?Math.min(z,m):Math.max(z,m),V=H>0?Math.min(V,g):Math.max(V,g));return this.addPolyline(Xe,n,a)},addLine:function(e,t,r,i){return this.addPolyline([e,t],r,i)},addPolyline:function(e,t,r,i,n){if(!!e.length){var a=typeof e[0]!="number";if(n==null&&(n=a?e.length:e.length/3),!(n<2)){i==null&&(i=0),r==null&&(r=1),this._itemVertexOffsets.push(this._vertexOffset);var a=typeof e[0]!="number",o=a?typeof t[0]!="number":t.length/4===n,s=this.attributes.position,l=this.attributes.positionPrev,h=this.attributes.positionNext,u=this.attributes.color,f=this.attributes.offset,d=this.indices,c=this._vertexOffset,v,p;r=Math.max(r,.01);for(var m=i;m 1&&(s.copy(c,c-1),u.copy(c,c-1),c++):(m 0&&(h.set(c-2,v),h.set(c-1,v)),s.set(c,v),s.set(c+1,v),u.set(c,p),u.set(c+1,p),f.set(c,r/2),f.set(c+1,-r/2),c+=2),this.useNativeLine)u.set(c,p),s.set(c,v),c++;else if(m>0){var y=this._triangleOffset*3,d=this.indices;d[y]=c-4,d[y+1]=c-3,d[y+2]=c-2,d[y+3]=c-3,d[y+4]=c-1,d[y+5]=c-2,this._triangleOffset+=2}}if(!this.useNativeLine){var _=this._vertexOffset,w=this._vertexOffset+n*2;l.copy(_,_+2),l.copy(_+1,_+3),h.copy(w-1,w-3),h.copy(w-2,w-4)}return this._vertexOffset=c,this._vertexOffset}}},setItemColor:function(e,t){for(var r=this._itemVertexOffsets[e],i=e o&&(n=this._x=0,a+=this._rowHeight+l,this._y=a,this._rowHeight=0),this._x+=t+l,this._rowHeight=Math.max(this._rowHeight,r),a+r+l>s)return null;e.x+=this.offsetX*this.dpr+n,e.y+=this.offsetY*this.dpr+a,this._zr.add(e);var h=[this.offsetX/this.width,this.offsetY/this.height],u=[[n/o+h[0],a/s+h[1]],[(n+t)/o+h[0],(a+r)/s+h[1]]];return u},_fitElement:function(e,t,r){var i=e.getBoundingRect(),n=t/i.width,a=r/i.height;e.x=-i.x*n,e.y=-i.y*a,e.scaleX=n,e.scaleY=a,e.update()}};function on(e){e=e||{},e.width=e.width||512,e.height=e.height||512,e.devicePixelRatio=e.devicePixelRatio||1,e.gap=e.gap==null?2:e.gap;var t=document.createElement("canvas");t.width=e.width*e.devicePixelRatio,t.height=e.height*e.devicePixelRatio,this._canvas=t,this._texture=new $({image:t,flipY:!1});var r=this;this._zr=Yl(t);var i=this._zr.refreshImmediately;this._zr.refreshImmediately=function(){i.call(this),r._texture.dirty(),r.onupdate&&r.onupdate()},this._dpr=e.devicePixelRatio,this._coords={},this.onupdate=e.onupdate,this._gap=e.gap,this._textureAtlasNodes=[new an(this._zr,0,0,e.width,e.height,this._gap,this._dpr)],this._nodeWidth=e.width,this._nodeHeight=e.height,this._currentNodeIdx=0}on.prototype={clear:function(){for(var e=0;e =e){console.error("Too much labels. Some will be ignored.");return}var a=(i+this._nodeWidth)*this._dpr,o=(n+this._nodeHeight)*this._dpr;try{this._zr.resize({width:a,height:o})}catch{this._canvas.width=a,this._canvas.height=o}var s=new an(this._zr,i,n,this._nodeWidth,this._nodeHeight,this._gap,this._dpr);return this._textureAtlasNodes.push(s),s},add:function(e,t,r){if(this._coords[e.id])return console.warn("Element already been add"),this._coords[e.id];var i=this._getCurrentNode().add(e,t,r);if(!i){var n=this._expand();if(!n)return;i=n.add(e,t,r)}return this._coords[e.id]=i,i},getCoordsScale:function(){var e=this._dpr;return[this._nodeWidth/this._canvas.width*e,this._nodeHeight/this._canvas.height*e]},getCoords:function(e){return this._coords[e]},dispose:function(){this._zr.dispose()}};function Yt(){}Yt.prototype={constructor:Yt,setScene:function(e){this._scene=e,this._skybox&&this._skybox.attachScene(this._scene)},initLight:function(e){this._lightRoot=e,this.mainLight=new T.DirectionalLight({shadowBias:.005}),this.ambientLight=new T.AmbientLight,e.add(this.mainLight),e.add(this.ambientLight)},dispose:function(){this._lightRoot&&(this._lightRoot.remove(this.mainLight),this._lightRoot.remove(this.ambientLight))},updateLight:function(e){var t=this.mainLight,r=this.ambientLight,i=e.getModel("light"),n=i.getModel("main"),a=i.getModel("ambient");t.intensity=n.get("intensity"),r.intensity=a.get("intensity"),t.color=T.parseColor(n.get("color")).slice(0,3),r.color=T.parseColor(a.get("color")).slice(0,3);var o=n.get("alpha")||0,s=n.get("beta")||0;t.position.setArray(T.directionFromAlphaBeta(o,s)),t.lookAt(T.Vector3.ZERO),t.castShadow=n.get("shadow"),t.shadowResolution=T.getShadowResolution(n.get("shadowQuality"))},updateAmbientCubemap:function(e,t,r){var i=t.getModel("light.ambientCubemap"),n=i.get("texture");if(n){this._cubemapLightsCache=this._cubemapLightsCache||{};var a=this._cubemapLightsCache[n];if(!a){var o=this;a=this._cubemapLightsCache[n]=T.createAmbientCubemap(i.option,e,r,function(){o._isSkyboxFromAmbientCubemap&&o._skybox.setEnvironmentMap(a.specular.cubemap),r.getZr().refresh()})}this._lightRoot.add(a.diffuse),this._lightRoot.add(a.specular),this._currentCubemapLights=a}else this._currentCubemapLights&&(this._lightRoot.remove(this._currentCubemapLights.diffuse),this._lightRoot.remove(this._currentCubemapLights.specular),this._currentCubemapLights=null)},updateSkybox:function(e,t,r){var i=t.get("environment"),n=this;function a(){return n._skybox=n._skybox||new vi,n._skybox}var o=a();if(i&&i!=="none")if(i==="auto")if(this._isSkyboxFromAmbientCubemap=!0,this._currentCubemapLights){var s=this._currentCubemapLights.specular.cubemap;o.setEnvironmentMap(s),this._scene&&o.attachScene(this._scene),o.material.set("lod",3)}else this._skybox&&this._skybox.detachScene();else if(typeof i=="object"&&i.colorStops||typeof i=="string"&&os(i)){this._isSkyboxFromAmbientCubemap=!1;var l=new T.Texture2D({anisotropic:8,flipY:!1});o.setEnvironmentMap(l);var h=l.image=document.createElement("canvas");h.width=h.height=16;var u=h.getContext("2d"),f=new ss({shape:{x:0,y:0,width:16,height:16},style:{fill:i}});ls(u,f),o.attachScene(this._scene)}else{this._isSkyboxFromAmbientCubemap=!1;var l=T.loadTexture(i,r,{anisotropic:8,flipY:!1});o.setEnvironmentMap(l),o.attachScene(this._scene)}else this._skybox&&this._skybox.detachScene(this._scene),this._skybox=null;var d=t.coordinateSystem;if(this._skybox)if(d&&d.viewGL&&i!=="auto"&&!(i.match&&i.match(/.hdr$/))){var c=d.viewGL.isLinearSpace()?"define":"undefine";this._skybox.material[c]("fragment","SRGB_DECODE")}else this._skybox.material.undefine("fragment","SRGB_DECODE")}};var rr=Me.vec3,Us=oe.extend(function(){return{segmentScale:1,useNativeLine:!0,attributes:{position:new oe.Attribute("position","float",3,"POSITION"),normal:new oe.Attribute("normal","float",3,"NORMAL"),color:new oe.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setQuadCount:function(e){var t=this.attributes,r=this.getQuadVertexCount()*e,i=this.getQuadTriangleCount()*e;this.vertexCount!==r&&(t.position.init(r),t.normal.init(r),t.color.init(r)),this.triangleCount!==i&&(this.indices=r>65535?new Uint32Array(i*3):new Uint16Array(i*3))},getQuadVertexCount:function(){return 4},getQuadTriangleCount:function(){return 2},addQuad:function(){var e=rr.create(),t=rr.create(),r=rr.create(),i=[0,3,1,3,2,1];return function(n,a){var o=this.attributes.position,s=this.attributes.normal,l=this.attributes.color;rr.sub(e,n[1],n[0]),rr.sub(t,n[2],n[1]),rr.cross(r,e,t),rr.normalize(r,r);for(var h=0;h<4;h++)o.set(this._vertexOffset+h,n[h]),l.set(this._vertexOffset+h,a),s.set(this._vertexOffset+h,r);for(var u=this._faceOffset*3,h=0;h<6;h++)this.indices[u+h]=i[h]+this._vertexOffset;this._vertexOffset+=4,this._faceOffset+=2}}()});Kt(Us.prototype,bi);const Gf=Us;var ha=K.firstNotNull,zf={x:0,y:2,z:1};function Hf(e,t,r,i){var n=[0,0,0],a=i<0?r.getExtentMin():r.getExtentMax();n[zf[r.dim]]=a,e.position.setArray(n),e.rotation.identity(),t.distance=-Math.abs(a),t.normal.set(0,0,0),r.dim==="x"?(e.rotation.rotateY(i*Math.PI/2),t.normal.x=-i):r.dim==="z"?(e.rotation.rotateX(-i*Math.PI/2),t.normal.y=-i):(i>0&&e.rotation.rotateY(Math.PI),t.normal.z=-i)}function wn(e,t,r){this.rootNode=new T.Node;var i=new T.Mesh({geometry:new _r({useNativeLine:!1}),material:t,castShadow:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:1}),n=new T.Mesh({geometry:new Gf,material:r,castShadow:!1,culling:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:0});this.rootNode.add(n),this.rootNode.add(i),this.faceInfo=e,this.plane=new T.Plane,this.linesMesh=i,this.quadsMesh=n}wn.prototype.update=function(e,t,r){var i=e.coordinateSystem,n=[i.getAxis(this.faceInfo[0]),i.getAxis(this.faceInfo[1])],a=this.linesMesh.geometry,o=this.quadsMesh.geometry;a.convertToDynamicArray(!0),o.convertToDynamicArray(!0),this._updateSplitLines(a,n,e,r),this._udpateSplitAreas(o,n,e,r),a.convertToTypedArray(),o.convertToTypedArray();var s=i.getAxis(this.faceInfo[2]);Hf(this.rootNode,this.plane,s,this.faceInfo[3])};wn.prototype._updateSplitLines=function(e,t,r,i){var n=i.getDevicePixelRatio();t.forEach(function(a,o){var s=a.model,l=t[1-o].getExtent();if(!a.scale.isBlank()){var h=s.getModel("splitLine",r.getModel("splitLine"));if(h.get("show")){var u=h.getModel("lineStyle"),f=u.get("color"),d=ha(u.get("opacity"),1),c=ha(u.get("width"),1);f=Mt(f)?f:[f];for(var v=a.getTicksCoords({tickModel:h}),p=0,m=0;m 65535?new Uint32Array(r*3):new Uint16Array(r*3))},setSpriteAlign:function(e,t,r,i,n){r==null&&(r="left"),i==null&&(i="top");var a,o,s,l;switch(n=n||0,r){case"left":a=n,s=t[0]+n;break;case"center":case"middle":a=-t[0]/2,s=t[0]/2;break;case"right":a=-t[0]-n,s=-n;break}switch(i){case"bottom":o=n,l=t[1]+n;break;case"middle":o=-t[1]/2,l=t[1]/2;break;case"top":o=-t[1]-n,l=-n;break}var h=e*4,u=this.attributes.offset;u.set(h,[a,l]),u.set(h+1,[s,l]),u.set(h+2,[s,o]),u.set(h+3,[a,o])},addSprite:function(e,t,r,i,n,a){var o=this._vertexOffset;this.setSprite(this._vertexOffset/4,e,t,r,i,n,a);for(var s=0;s i[1]?0:1,s=this._faces[r*2+o],l=this._faces[r*2+1-o];s.rootNode.invisible=!0,l.rootNode.invisible=!1}},_updateAxisLinePosition:function(){var e=this._model.coordinateSystem,t=e.getAxis("x"),r=e.getAxis("y"),i=e.getAxis("z"),n=i.getExtentMax(),a=i.getExtentMin(),o=t.getExtentMin(),s=t.getExtentMax(),l=r.getExtentMax(),h=r.getExtentMin(),u=this._axes[0].rootNode,f=this._axes[1].rootNode,d=this._axes[2].rootNode,c=this._faces,v=c[4].rootNode.invisible?h:l,p=c[2].rootNode.invisible?n:a,m=c[0].rootNode.invisible?o:s,g=c[2].rootNode.invisible?n:a,x=c[0].rootNode.invisible?s:o,y=c[4].rootNode.invisible?h:l;u.rotation.identity(),f.rotation.identity(),d.rotation.identity(),c[4].rootNode.invisible&&(this._axes[0].flipped=!0,u.rotation.rotateX(Math.PI)),c[0].rootNode.invisible&&(this._axes[1].flipped=!0,f.rotation.rotateZ(Math.PI)),c[4].rootNode.invisible&&(this._axes[2].flipped=!0,d.rotation.rotateY(Math.PI)),u.position.set(0,p,v),f.position.set(m,g,0),d.position.set(x,0,y),u.update(),f.update(),d.update(),this._updateAxisLabelAlign()},_updateAxisLabelAlign:function(){var e=this._control.getCamera(),t=[new T.Vector4,new T.Vector4],r=new T.Vector4;this.groupGL.getWorldPosition(r),r.w=1,r.transformMat4(e.viewMatrix).transformMat4(e.projectionMatrix),r.x/=r.w,r.y/=r.w,this._axes.forEach(function(i){var n=i.axisLineCoords;i.labelsMesh.geometry;for(var a=0;a r.y?"bottom":"top"):(f="middle",u=l>r.x?"left":"right"),i.setSpriteAlign(u,f,this._api)},this)},_doShowAxisPointer:function(){!this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!1,this._axisPointerLabelsMesh.invisible=!1,this._api.getZr().refresh())},_doHideAxisPointer:function(){this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!0,this._axisPointerLabelsMesh.invisible=!0,this._api.getZr().refresh())},_updateAxisPointer:function(e){var t=this._model.coordinateSystem,r=t.dataToPoint(e),i=this._axisPointerLineMesh,n=i.geometry,a=this._model.getModel("axisPointer"),o=this._api.getDevicePixelRatio();n.convertToDynamicArray(!0);function s(A){return K.firstNotNull(A.model.get("axisPointer.show"),a.get("show"))}function l(A){var C=A.model.getModel("axisPointer",a),P=C.getModel("lineStyle"),L=T.parseColor(P.get("color")),R=Po(P.get("width"),1),I=Po(P.get("opacity"),1);return L[3]*=I,{color:L,lineWidth:R}}for(var h=0;h i[1]?0:1,s=this._faces[r*2+o],l=this._faces[r*2+1-o];s.rootNode.invisible=!0,l.rootNode.invisible=!1}},_updateAxisLinePosition:function(){var e=this._model.coordinateSystem,t=e.getAxis("x"),r=e.getAxis("y"),i=e.getAxis("z"),n=i.getExtentMax(),a=i.getExtentMin(),o=t.getExtentMin(),s=t.getExtentMax(),l=r.getExtentMax(),h=r.getExtentMin(),u=this._axes[0].rootNode,f=this._axes[1].rootNode,d=this._axes[2].rootNode,c=this._faces,v=c[4].rootNode.invisible?h:l,p=c[2].rootNode.invisible?n:a,m=c[0].rootNode.invisible?o:s,g=c[2].rootNode.invisible?n:a,x=c[0].rootNode.invisible?s:o,y=c[4].rootNode.invisible?h:l;u.rotation.identity(),f.rotation.identity(),d.rotation.identity(),c[4].rootNode.invisible&&(this._axes[0].flipped=!0,u.rotation.rotateX(Math.PI)),c[0].rootNode.invisible&&(this._axes[1].flipped=!0,f.rotation.rotateZ(Math.PI)),c[4].rootNode.invisible&&(this._axes[2].flipped=!0,d.rotation.rotateY(Math.PI)),u.position.set(0,p,v),f.position.set(m,g,0),d.position.set(x,0,y),u.update(),f.update(),d.update(),this._updateAxisLabelAlign()},_updateAxisLabelAlign:function(){var e=this._control.getCamera(),t=[new T.Vector4,new T.Vector4],r=new T.Vector4;this.groupGL.getWorldPosition(r),r.w=1,r.transformMat4(e.viewMatrix).transformMat4(e.projectionMatrix),r.x/=r.w,r.y/=r.w,this._axes.forEach(function(i){var n=i.axisLineCoords;i.labelsMesh.geometry;for(var a=0;a r.y?"bottom":"top"):(f="middle",u=l>r.x?"left":"right"),i.setSpriteAlign(u,f,this._api)},this)},_doShowAxisPointer:function(){!this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!1,this._axisPointerLabelsMesh.invisible=!1,this._api.getZr().refresh())},_doHideAxisPointer:function(){this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!0,this._axisPointerLabelsMesh.invisible=!0,this._api.getZr().refresh())},_updateAxisPointer:function(e){var t=this._model.coordinateSystem,r=t.dataToPoint(e),i=this._axisPointerLineMesh,n=i.geometry,a=this._model.getModel("axisPointer"),o=this._api.getDevicePixelRatio();n.convertToDynamicArray(!0);function s(A){return K.firstNotNull(A.model.get("axisPointer.show"),a.get("show"))}function l(A){var C=A.model.getModel("axisPointer",a),P=C.getModel("lineStyle"),L=T.parseColor(P.get("color")),R=Do(P.get("width"),1),I=Do(P.get("opacity"),1);return L[3]*=I,{color:L,lineWidth:R}}for(var h=0;h 4){console.warn("Support at most 4 cascade");continue}v.shadowCascade>1&&(d=v),this.renderDirectionalLightShadow(e,t,r,v,u,h,l)}else v.type==="SPOT_LIGHT"?this.renderSpotLightShadow(e,t,v,s,o):v.type==="POINT_LIGHT"&&this.renderPointLightShadow(e,t,v,f);this._shadowMapNumber[v.type]++}for(var p in this._shadowMapNumber)for(var m=this._shadowMapNumber[p],g=p+"_SHADOWMAP_COUNT",c=0;c 0?y.define("fragment",g,m):y.isDefined("fragment",g)&&y.undefine("fragment",g))}for(var c=0;c 0){var S=l.map(w);if(_.directionalLightShadowMaps={value:l,type:"tv"},_.directionalLightMatrices={value:h,type:"m4v"},_.directionalLightShadowMapSizes={value:S,type:"1fv"},d){var b=u.slice(),A=u.slice();b.pop(),A.shift(),b.reverse(),A.reverse(),h.reverse(),_.shadowCascadeClipsNear={value:b,type:"1fv"},_.shadowCascadeClipsFar={value:A,type:"1fv"}}}if(o.length>0){var C=o.map(w),_=t.shadowUniforms;_.spotLightShadowMaps={value:o,type:"tv"},_.spotLightMatrices={value:s,type:"m4v"},_.spotLightShadowMapSizes={value:C,type:"1fv"}}f.length>0&&(_.pointLightShadowMaps={value:f,type:"tv"})},renderDirectionalLightShadow:function(){var e=new Ea,t=new k,r=new tt,i=new k,n=new k,a=new k,o=new k;return function(s,l,h,u,f,d,c){var v=this._getDepthMaterial(u),p={getMaterial:function(ge){return ge.shadowDepthMaterial||v},isMaterialChanged:No,getUniform:jn,ifRender:function(ge){return ge.castShadow},sortCompare:fi.opaqueSortCompare};if(!l.viewBoundingBoxLastFrame.isFinite()){var m=l.getBoundingBox();l.viewBoundingBoxLastFrame.copy(m).applyTransform(h.viewMatrix)}var g=Math.min(-l.viewBoundingBoxLastFrame.min.z,h.far),x=Math.max(-l.viewBoundingBoxLastFrame.max.z,h.near),y=this._getDirectionalLightCamera(u,l,h),_=a.array;o.copy(y.projectionMatrix),B.invert(n.array,y.worldTransform.array),B.multiply(n.array,n.array,h.worldTransform.array),B.multiply(_,o.array,n.array);for(var w=[],S=h instanceof He,b=(h.near+h.far)/(h.near-h.far),A=2*h.near*h.far/(h.near-h.far),C=0;C<=u.shadowCascade;C++){var P=x*Math.pow(g/x,C/u.shadowCascade),L=x+(g-x)*C/u.shadowCascade,R=P*u.cascadeSplitLogFactor+L*(1-u.cascadeSplitLogFactor);w.push(R),f.push(-(-R*b+A)/-R)}var I=this._getTexture(u,u.shadowCascade);c.push(I);var D=s.viewport,O=s.gl;this._frameBuffer.attach(I),this._frameBuffer.bind(s),O.clear(O.COLOR_BUFFER_BIT|O.DEPTH_BUFFER_BIT);for(var C=0;C P?C>L?v[S>0?"px":"nx"]=!0:v[A>0?"pz":"nz"]=!0:P>L?v[b>0?"py":"ny"]=!0:v[A>0?"pz":"nz"]=!0}for(var _=0;_ 0){var t=this.outputs[e];t.keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e])}}});const gi=Kf;var Qf=nt.extend(function(){return{nodes:[]}},{dirty:function(){this._dirty=!0},addNode:function(e){this.nodes.indexOf(e)>=0||(this.nodes.push(e),this._dirty=!0)},removeNode:function(e){typeof e=="string"&&(e=this.getNodeByName(e));var t=this.nodes.indexOf(e);t>=0&&(this.nodes.splice(t,1),this._dirty=!0)},getNodeByName:function(e){for(var t=0;t =t.COLOR_ATTACHMENT0&&l<=t.COLOR_ATTACHMENT0+8&&u.push(l);h.drawBuffersEXT(u)}e.saveClear(),e.clearBit=M.DEPTH_BUFFER_BIT|M.COLOR_BUFFER_BIT,r=e.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ),e.restoreClear(),i.unbind(e)}this.trigger("afterrender",r),this._rendering=!1,this._rendered=!0}});const tc=ec;var rc=gi.extend(function(){return{texture:null,outputs:{color:{}}}},function(){},{getOutput:function(e,t){return this.texture},beforeFrame:function(){},afterFrame:function(){}});const ic=rc;var nc=gi.extend(function(){return{name:"",inputs:{},outputs:null,shader:"",inputLinks:{},outputLinks:{},pass:null,_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}},function(){var e=new Re({fragment:this.shader});this.pass=e},{render:function(e,t){this.trigger("beforerender",e),this._rendering=!0;var r=e.gl;for(var i in this.inputLinks){var n=this.inputLinks[i],a=n.node.getOutput(e,n.pin);this.pass.setUniform(i,a)}if(!this.outputs)this.pass.outputs=null,this._compositor.getFrameBuffer().unbind(e),this.pass.render(e,t);else{this.pass.outputs={};var o={};for(var s in this.outputs){var l=this.updateParameter(s,e);isNaN(l.width)&&this.updateParameter(s,e);var h=this.outputs[s],u=this._compositor.allocateTexture(l);this._outputTextures[s]=u;var f=h.attachment||r.COLOR_ATTACHMENT0;typeof f=="string"&&(f=r[f]),o[f]=u}this._compositor.getFrameBuffer().bind(e);for(var f in o)this._compositor.getFrameBuffer().attach(o[f],f);this.pass.render(e),this._compositor.getFrameBuffer().updateMipmap(e)}for(var i in this.inputLinks){var n=this.inputLinks[i];n.node.removeReference(n.pin)}this._rendering=!1,this._rendered=!0,this.trigger("afterrender",e)},updateParameter:function(e,t){var r=this.outputs[e],i=r.parameters,n=r._parametersCopy;if(n||(n=r._parametersCopy={}),i)for(var a in i)a!=="width"&&a!=="height"&&(n[a]=i[a]);var o,s;return typeof i.width=="function"?o=i.width.call(this,t):o=i.width,typeof i.height=="function"?s=i.height.call(this,t):s=i.height,o=Math.ceil(o),s=Math.ceil(s),(n.width!==o||n.height!==s)&&this._outputTextures[e]&&this._outputTextures[e].dispose(t),n.width=o,n.height=s,n},setParameter:function(e,t){this.pass.setUniform(e,t)},getParameter:function(e){return this.pass.getUniform(e)},setParameters:function(e){for(var t in e)this.setParameter(t,e[t])},define:function(e,t){this.pass.material.define("fragment",e,t)},undefine:function(e){this.pass.material.undefine("fragment",e)},removeReference:function(e){if(this._outputReferences[e]--,this._outputReferences[e]===0){var t=this.outputs[e];t.keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e])}},clear:function(){gi.prototype.clear.call(this),this.pass.material.disableTexturesAll()}});const ac=nc,oc=`@export clay.compositor.coloradjust +@end`;var Vt=["px","nx","py","ny","pz","nz"];N.import(jf);function Zn(e,t,r){if(r==="alphaMap")return e.material.get("diffuseMap");if(r==="alphaCutoff"){if(e.material.isDefined("fragment","ALPHA_TEST")&&e.material.get("diffuseMap")){var i=e.material.get("alphaCutoff");return i||0}return 0}else return r==="uvRepeat"?e.material.get("uvRepeat"):r==="uvOffset"?e.material.get("uvOffset"):t.get(r)}function Ro(e,t){var r=e.material,i=t.material;return r.get("diffuseMap")!==i.get("diffuseMap")||(r.get("alphaCutoff")||0)!==(i.get("alphaCutoff")||0)}var Ct=nt.extend(function(){return{softShadow:Ct.PCF,shadowBlur:1,lightFrustumBias:"auto",kernelPCF:new Float32Array([1,0,1,1,-1,1,0,1,-1,0,-1,-1,1,-1,0,-1]),precision:"highp",_lastRenderNotCastShadow:!1,_frameBuffer:new qe,_textures:{},_shadowMapNumber:{POINT_LIGHT:0,DIRECTIONAL_LIGHT:0,SPOT_LIGHT:0},_depthMaterials:{},_distanceMaterials:{},_receivers:[],_lightsCastShadow:[],_lightCameras:{},_lightMaterials:{},_texturePool:new Hs}},function(){this._gaussianPassH=new Re({fragment:N.source("clay.compositor.gaussian_blur")}),this._gaussianPassV=new Re({fragment:N.source("clay.compositor.gaussian_blur")}),this._gaussianPassH.setUniform("blurSize",this.shadowBlur),this._gaussianPassH.setUniform("blurDir",0),this._gaussianPassV.setUniform("blurSize",this.shadowBlur),this._gaussianPassV.setUniform("blurDir",1),this._outputDepthPass=new Re({fragment:N.source("clay.sm.debug_depth")})},{render:function(e,t,r,i){r||(r=t.getMainCamera()),this.trigger("beforerender",this,e,t,r),this._renderShadowPass(e,t,r,i),this.trigger("afterrender",this,e,t,r)},renderDebug:function(e,t){e.saveClear();var r=e.viewport,i=0,n=0,a=t||r.width/4,o=a;this.softShadow===Ct.VSM?this._outputDepthPass.material.define("fragment","USE_VSM"):this._outputDepthPass.material.undefine("fragment","USE_VSM");for(var s in this._textures){var l=this._textures[s];e.setViewport(i,n,a*l.width/l.height,o),this._outputDepthPass.setUniform("depthMap",l),this._outputDepthPass.render(e),i+=a*l.width/l.height}e.setViewport(r),e.restoreClear()},_updateReceivers:function(e,t){if(t.receiveShadow?(this._receivers.push(t),t.material.set("shadowEnabled",1),t.material.set("pcfKernel",this.kernelPCF)):t.material.set("shadowEnabled",0),this.softShadow===Ct.VSM)t.material.define("fragment","USE_VSM"),t.material.undefine("fragment","PCF_KERNEL_SIZE");else{t.material.undefine("fragment","USE_VSM");var r=this.kernelPCF;r&&r.length?t.material.define("fragment","PCF_KERNEL_SIZE",r.length/2):t.material.undefine("fragment","PCF_KERNEL_SIZE")}},_update:function(e,t){var r=this;t.traverse(function(a){a.isRenderable()&&r._updateReceivers(e,a)});for(var i=0;i 4){console.warn("Support at most 4 cascade");continue}v.shadowCascade>1&&(d=v),this.renderDirectionalLightShadow(e,t,r,v,u,h,l)}else v.type==="SPOT_LIGHT"?this.renderSpotLightShadow(e,t,v,s,o):v.type==="POINT_LIGHT"&&this.renderPointLightShadow(e,t,v,f);this._shadowMapNumber[v.type]++}for(var p in this._shadowMapNumber)for(var m=this._shadowMapNumber[p],g=p+"_SHADOWMAP_COUNT",c=0;c 0?y.define("fragment",g,m):y.isDefined("fragment",g)&&y.undefine("fragment",g))}for(var c=0;c 0){var S=l.map(w);if(_.directionalLightShadowMaps={value:l,type:"tv"},_.directionalLightMatrices={value:h,type:"m4v"},_.directionalLightShadowMapSizes={value:S,type:"1fv"},d){var b=u.slice(),A=u.slice();b.pop(),A.shift(),b.reverse(),A.reverse(),h.reverse(),_.shadowCascadeClipsNear={value:b,type:"1fv"},_.shadowCascadeClipsFar={value:A,type:"1fv"}}}if(o.length>0){var C=o.map(w),_=t.shadowUniforms;_.spotLightShadowMaps={value:o,type:"tv"},_.spotLightMatrices={value:s,type:"m4v"},_.spotLightShadowMapSizes={value:C,type:"1fv"}}f.length>0&&(_.pointLightShadowMaps={value:f,type:"tv"})},renderDirectionalLightShadow:function(){var e=new Aa,t=new k,r=new tt,i=new k,n=new k,a=new k,o=new k;return function(s,l,h,u,f,d,c){var v=this._getDepthMaterial(u),p={getMaterial:function(ge){return ge.shadowDepthMaterial||v},isMaterialChanged:Ro,getUniform:Zn,ifRender:function(ge){return ge.castShadow},sortCompare:ui.opaqueSortCompare};if(!l.viewBoundingBoxLastFrame.isFinite()){var m=l.getBoundingBox();l.viewBoundingBoxLastFrame.copy(m).applyTransform(h.viewMatrix)}var g=Math.min(-l.viewBoundingBoxLastFrame.min.z,h.far),x=Math.max(-l.viewBoundingBoxLastFrame.max.z,h.near),y=this._getDirectionalLightCamera(u,l,h),_=a.array;o.copy(y.projectionMatrix),B.invert(n.array,y.worldTransform.array),B.multiply(n.array,n.array,h.worldTransform.array),B.multiply(_,o.array,n.array);for(var w=[],S=h instanceof He,b=(h.near+h.far)/(h.near-h.far),A=2*h.near*h.far/(h.near-h.far),C=0;C<=u.shadowCascade;C++){var P=x*Math.pow(g/x,C/u.shadowCascade),L=x+(g-x)*C/u.shadowCascade,R=P*u.cascadeSplitLogFactor+L*(1-u.cascadeSplitLogFactor);w.push(R),f.push(-(-R*b+A)/-R)}var I=this._getTexture(u,u.shadowCascade);c.push(I);var D=s.viewport,O=s.gl;this._frameBuffer.attach(I),this._frameBuffer.bind(s),O.clear(O.COLOR_BUFFER_BIT|O.DEPTH_BUFFER_BIT);for(var C=0;C P?C>L?v[S>0?"px":"nx"]=!0:v[A>0?"pz":"nz"]=!0:P>L?v[b>0?"py":"ny"]=!0:v[A>0?"pz":"nz"]=!0}for(var _=0;_ 0){var t=this.outputs[e];t.keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e])}}});const mi=Yf;var Kf=nt.extend(function(){return{nodes:[]}},{dirty:function(){this._dirty=!0},addNode:function(e){this.nodes.indexOf(e)>=0||(this.nodes.push(e),this._dirty=!0)},removeNode:function(e){typeof e=="string"&&(e=this.getNodeByName(e));var t=this.nodes.indexOf(e);t>=0&&(this.nodes.splice(t,1),this._dirty=!0)},getNodeByName:function(e){for(var t=0;t =t.COLOR_ATTACHMENT0&&l<=t.COLOR_ATTACHMENT0+8&&u.push(l);h.drawBuffersEXT(u)}e.saveClear(),e.clearBit=M.DEPTH_BUFFER_BIT|M.COLOR_BUFFER_BIT,r=e.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ),e.restoreClear(),i.unbind(e)}this.trigger("afterrender",r),this._rendering=!1,this._rendered=!0}});const ec=Jf;var tc=mi.extend(function(){return{texture:null,outputs:{color:{}}}},function(){},{getOutput:function(e,t){return this.texture},beforeFrame:function(){},afterFrame:function(){}});const rc=tc;var ic=mi.extend(function(){return{name:"",inputs:{},outputs:null,shader:"",inputLinks:{},outputLinks:{},pass:null,_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}},function(){var e=new Re({fragment:this.shader});this.pass=e},{render:function(e,t){this.trigger("beforerender",e),this._rendering=!0;var r=e.gl;for(var i in this.inputLinks){var n=this.inputLinks[i],a=n.node.getOutput(e,n.pin);this.pass.setUniform(i,a)}if(!this.outputs)this.pass.outputs=null,this._compositor.getFrameBuffer().unbind(e),this.pass.render(e,t);else{this.pass.outputs={};var o={};for(var s in this.outputs){var l=this.updateParameter(s,e);isNaN(l.width)&&this.updateParameter(s,e);var h=this.outputs[s],u=this._compositor.allocateTexture(l);this._outputTextures[s]=u;var f=h.attachment||r.COLOR_ATTACHMENT0;typeof f=="string"&&(f=r[f]),o[f]=u}this._compositor.getFrameBuffer().bind(e);for(var f in o)this._compositor.getFrameBuffer().attach(o[f],f);this.pass.render(e),this._compositor.getFrameBuffer().updateMipmap(e)}for(var i in this.inputLinks){var n=this.inputLinks[i];n.node.removeReference(n.pin)}this._rendering=!1,this._rendered=!0,this.trigger("afterrender",e)},updateParameter:function(e,t){var r=this.outputs[e],i=r.parameters,n=r._parametersCopy;if(n||(n=r._parametersCopy={}),i)for(var a in i)a!=="width"&&a!=="height"&&(n[a]=i[a]);var o,s;return typeof i.width=="function"?o=i.width.call(this,t):o=i.width,typeof i.height=="function"?s=i.height.call(this,t):s=i.height,o=Math.ceil(o),s=Math.ceil(s),(n.width!==o||n.height!==s)&&this._outputTextures[e]&&this._outputTextures[e].dispose(t),n.width=o,n.height=s,n},setParameter:function(e,t){this.pass.setUniform(e,t)},getParameter:function(e){return this.pass.getUniform(e)},setParameters:function(e){for(var t in e)this.setParameter(t,e[t])},define:function(e,t){this.pass.material.define("fragment",e,t)},undefine:function(e){this.pass.material.undefine("fragment",e)},removeReference:function(e){if(this._outputReferences[e]--,this._outputReferences[e]===0){var t=this.outputs[e];t.keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e])}},clear:function(){mi.prototype.clear.call(this),this.pass.material.disableTexturesAll()}});const nc=ic,ac=`@export clay.compositor.coloradjust varying vec2 v_Texcoord; uniform sampler2D texture; uniform float brightness : 0.0; @@ -2082,7 +2082,7 @@ void main() color = mix(vec3(luminance), color, saturation); gl_FragColor = vec4(color, tex.a); } -@end`,ks=`@export clay.compositor.kernel.gaussian_9 +@end`,Vs=`@export clay.compositor.kernel.gaussian_9 float gaussianKernel[9]; gaussianKernel[0] = 0.07; gaussianKernel[1] = 0.09; @@ -2134,7 +2134,7 @@ void main (void) gl_FragColor = encodeHDR(sum / max(weightAll, 0.01)); } @end -`,sc=`@export clay.compositor.hdr.log_lum +`,oc=`@export clay.compositor.hdr.log_lum varying vec2 v_Texcoord; uniform sampler2D texture; const vec3 w = vec3(0.2125, 0.7154, 0.0721); @@ -2171,7 +2171,7 @@ void main() float luminance = dot(tex.rgb, w); gl_FragColor = vec4(vec3(luminance), 1.0); } -@end`,Ws=` +@end`,ks=` @export clay.compositor.lut varying vec2 v_Texcoord; uniform sampler2D texture; @@ -2197,7 +2197,7 @@ void main() vec4 newColor = mix(newColor1, newColor2, fract(blueColor)); gl_FragColor = vec4(newColor.rgb, tex.w); } -@end`,lc=`@export clay.compositor.vignette +@end`,sc=`@export clay.compositor.vignette #define OUTPUT_ALPHA varying vec2 v_Texcoord; uniform sampler2D texture; @@ -2211,7 +2211,7 @@ void main() vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(offset); gl_FragColor = encodeHDR(vec4(mix(texel.rgb, vec3(1.0 - darkness), dot(uv, uv)), texel.a)); } -@end`,Xs=`@export clay.compositor.output +@end`,Ws=`@export clay.compositor.output #define OUTPUT_ALPHA varying vec2 v_Texcoord; uniform sampler2D texture; @@ -2230,7 +2230,7 @@ void main() gl_FragColor.rgb *= gl_FragColor.a; #endif } -@end`,Zs=`@export clay.compositor.bright +@end`,Xs=`@export clay.compositor.bright uniform sampler2D texture; uniform float threshold : 1; uniform float scale : 1.0; @@ -2266,7 +2266,7 @@ void main() gl_FragColor = encodeHDR(color); } @end -`,js=`@export clay.compositor.downsample +`,Zs=`@export clay.compositor.downsample uniform sampler2D texture; uniform vec2 textureSize : [512, 512]; varying vec2 v_Texcoord; @@ -2302,7 +2302,7 @@ void main() #endif gl_FragColor = encodeHDR(color); } -@end`,qs=` +@end`,js=` @export clay.compositor.upsample #define HIGH_QUALITY uniform sampler2D texture; @@ -2336,7 +2336,7 @@ void main() gl_FragColor = encodeHDR(s / 4.0); #endif } -@end`,Ys=`@export clay.compositor.hdr.composite +@end`,qs=`@export clay.compositor.hdr.composite #define TONEMAPPING uniform sampler2D texture; #ifdef BLOOM_ENABLED @@ -2460,7 +2460,7 @@ void main() gl_FragColor.rgb *= gl_FragColor.a; #endif } -@end`,hc=`@export clay.compositor.lensflare +@end`,lc=`@export clay.compositor.lensflare #define SAMPLE_NUMBER 8 uniform sampler2D texture; uniform sampler2D lenscolor; @@ -2503,7 +2503,7 @@ void main() result += textureDistorted(offset, normalize(ghostVec), distortion) * weight; gl_FragColor = result; } -@end`,Ks=`@export clay.compositor.blend +@end`,Ys=`@export clay.compositor.blend #define SHADER_NAME blend #ifdef TEXTURE1_ENABLED uniform sampler2D texture1; @@ -2554,7 +2554,7 @@ void main() #endif gl_FragColor = encodeHDR(tex); } -@end`,Qs=`@export clay.compositor.fxaa +@end`,Ks=`@export clay.compositor.fxaa uniform sampler2D texture; uniform vec4 viewport : VIEWPORT; varying vec2 v_Texcoord; @@ -2604,7 +2604,7 @@ void main() gl_FragColor = vec4( rgbB, opacity ); } } -@end`;function uc(e){e.import(oc),e.import(ks),e.import(sc),e.import(Ws),e.import(lc),e.import(Xs),e.import(Zs),e.import(js),e.import(qs),e.import(Ys),e.import(hc),e.import(Ks),e.import(Qs)}uc(N);var fc=/^#source\((.*?)\)/;function cc(e,t){var r=new Jf;t=t||{};var i={textures:{},parameters:{}},n=function(s,l){for(var h=0;h 0;)r=r+i*(n%t),n=Math.floor(n/t),i=i/t;return r}const yc=`@export ecgl.ssao.estimate +@end`;function hc(e){e.import(ac),e.import(Vs),e.import(oc),e.import(ks),e.import(sc),e.import(Ws),e.import(Xs),e.import(Zs),e.import(js),e.import(qs),e.import(lc),e.import(Ys),e.import(Ks)}hc(N);var uc=/^#source\((.*?)\)/;function fc(e,t){var r=new $f;t=t||{};var i={textures:{},parameters:{}},n=function(s,l){for(var h=0;h 0;)r=r+i*(n%t),n=Math.floor(n/t),i=i/t;return r}const _c=`@export ecgl.ssao.estimate uniform sampler2D depthTex; @@ -2788,7 +2788,7 @@ void main() } @end -`;N.import(yc);function Js(e){for(var t=new Uint8Array(e*e*4),r=0,i=new U,n=0;n =1?.95:0,weight2:i>=1?.05:1}),c.render(e)),h.attach(s),f.setUniform("texture",this._physicallyCorrect?this._currentTexture:o),f.render(e),h.attach(l),d.setUniform("texture",s),d.render(e),h.unbind(e),this._physicallyCorrect){var g=this._prevTexture;this._prevTexture=this._currentTexture,this._currentTexture=g}};Ut.prototype.getTargetTexture=function(){return this._texture3};Ut.prototype.setParameter=function(e,t){e==="maxIteration"?this._ssrPass.material.define("fragment","MAX_ITERATION",t):this._ssrPass.setUniform(e,t)};Ut.prototype.setPhysicallyCorrect=function(e){e?(this._normalDistribution||(this._normalDistribution=$i.generateNormalDistribution(64,this._totalSamples)),this._ssrPass.material.define("fragment","PHYSICALLY_CORRECT"),this._ssrPass.material.set("normalDistribution",this._normalDistribution),this._ssrPass.material.set("normalDistributionSize",[64,this._totalSamples])):this._ssrPass.material.undefine("fragment","PHYSICALLY_CORRECT"),this._physicallyCorrect=e};Ut.prototype.setSSAOTexture=function(e){var t=this._blurPass2;e?(t.material.enableTexture("ssaoTex"),t.material.set("ssaoTex",e)):t.material.disableTexture("ssaoTex")};Ut.prototype.isFinished=function(e){return this._physicallyCorrect?e>this._totalSamples/this._samplePerFrame:!0};Ut.prototype.dispose=function(e){this._ssrTexture.dispose(e),this._texture2.dispose(e),this._texture3.dispose(e),this._prevTexture.dispose(e),this._currentTexture.dispose(e),this._frameBuffer.dispose(e)};const Bo=[0,0,-.321585265978,-.154972575841,.458126042375,.188473391593,.842080129861,.527766490688,.147304551086,-.659453822776,-.331943915203,-.940619700594,.0479226680259,.54812163202,.701581552186,-.709825561388,-.295436780218,.940589268233,-.901489676764,.237713156085,.973570876096,-.109899459384,-.866792314779,-.451805525005,.330975007087,.800048655954,-.344275183665,.381779221166,-.386139432542,-.437418421534,-.576478634965,-.0148463392551,.385798197415,-.262426961053,-.666302061145,.682427250835,-.628010632582,-.732836215494,.10163141741,-.987658134403,.711995289051,-.320024291314,.0296005138058,.950296523438,.0130612307608,-.351024443122,-.879596633704,-.10478487883,.435712737232,.504254490347,.779203817497,.206477676721,.388264289969,-.896736162545,-.153106280781,-.629203242522,-.245517550697,.657969239148,.126830499058,.26862328493,-.634888119007,-.302301223431,.617074219636,.779817204925],wc=`@export ecgl.normal.vertex +@end`;N.import(xc);function Ut(e){e=e||{},this._ssrPass=new Re({fragment:N.source("ecgl.ssr.main"),clearColor:[0,0,0,0]}),this._blurPass1=new Re({fragment:N.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blurPass2=new Re({fragment:N.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blendPass=new Re({fragment:N.source("clay.compositor.blend")}),this._blendPass.material.disableTexturesAll(),this._blendPass.material.enableTexture(["texture1","texture2"]),this._ssrPass.setUniform("gBufferTexture1",e.normalTexture),this._ssrPass.setUniform("gBufferTexture2",e.depthTexture),this._blurPass1.setUniform("gBufferTexture1",e.normalTexture),this._blurPass1.setUniform("gBufferTexture2",e.depthTexture),this._blurPass2.setUniform("gBufferTexture1",e.normalTexture),this._blurPass2.setUniform("gBufferTexture2",e.depthTexture),this._blurPass2.material.define("fragment","VERTICAL"),this._blurPass2.material.define("fragment","BLEND"),this._ssrTexture=new $({type:W.HALF_FLOAT}),this._texture2=new $({type:W.HALF_FLOAT}),this._texture3=new $({type:W.HALF_FLOAT}),this._prevTexture=new $({type:W.HALF_FLOAT}),this._currentTexture=new $({type:W.HALF_FLOAT}),this._frameBuffer=new qe({depthBuffer:!1}),this._normalDistribution=null,this._totalSamples=256,this._samplePerFrame=4,this._ssrPass.material.define("fragment","SAMPLE_PER_FRAME",this._samplePerFrame),this._ssrPass.material.define("fragment","TOTAL_SAMPLES",this._totalSamples),this._downScale=1}Ut.prototype.setAmbientCubemap=function(e,t){this._ssrPass.material.set("specularCubemap",e),this._ssrPass.material.set("specularIntensity",t);var r=e&&t;this._ssrPass.material[r?"enableTexture":"disableTexture"]("specularCubemap")};Ut.prototype.update=function(e,t,r,i){var n=e.getWidth(),a=e.getHeight(),o=this._ssrTexture,s=this._texture2,l=this._texture3;o.width=this._prevTexture.width=this._currentTexture.width=n/this._downScale,o.height=this._prevTexture.height=this._currentTexture.height=a/this._downScale,s.width=l.width=n,s.height=l.height=a;var h=this._frameBuffer,u=this._ssrPass,f=this._blurPass1,d=this._blurPass2,c=this._blendPass,v=new k,p=new k;k.transpose(v,t.worldTransform),k.transpose(p,t.viewMatrix),u.setUniform("sourceTexture",r),u.setUniform("projection",t.projectionMatrix.array),u.setUniform("projectionInv",t.invProjectionMatrix.array),u.setUniform("toViewSpace",v.array),u.setUniform("toWorldSpace",p.array),u.setUniform("nearZ",t.near);var m=i/this._totalSamples*this._samplePerFrame;if(u.setUniform("jitterOffset",m),u.setUniform("sampleOffset",i*this._samplePerFrame),f.setUniform("textureSize",[o.width,o.height]),d.setUniform("textureSize",[n,a]),d.setUniform("sourceTexture",r),f.setUniform("projection",t.projectionMatrix.array),d.setUniform("projection",t.projectionMatrix.array),h.attach(o),h.bind(e),u.render(e),this._physicallyCorrect&&(h.attach(this._currentTexture),c.setUniform("texture1",this._prevTexture),c.setUniform("texture2",o),c.material.set({weight1:i>=1?.95:0,weight2:i>=1?.05:1}),c.render(e)),h.attach(s),f.setUniform("texture",this._physicallyCorrect?this._currentTexture:o),f.render(e),h.attach(l),d.setUniform("texture",s),d.render(e),h.unbind(e),this._physicallyCorrect){var g=this._prevTexture;this._prevTexture=this._currentTexture,this._currentTexture=g}};Ut.prototype.getTargetTexture=function(){return this._texture3};Ut.prototype.setParameter=function(e,t){e==="maxIteration"?this._ssrPass.material.define("fragment","MAX_ITERATION",t):this._ssrPass.setUniform(e,t)};Ut.prototype.setPhysicallyCorrect=function(e){e?(this._normalDistribution||(this._normalDistribution=Qi.generateNormalDistribution(64,this._totalSamples)),this._ssrPass.material.define("fragment","PHYSICALLY_CORRECT"),this._ssrPass.material.set("normalDistribution",this._normalDistribution),this._ssrPass.material.set("normalDistributionSize",[64,this._totalSamples])):this._ssrPass.material.undefine("fragment","PHYSICALLY_CORRECT"),this._physicallyCorrect=e};Ut.prototype.setSSAOTexture=function(e){var t=this._blurPass2;e?(t.material.enableTexture("ssaoTex"),t.material.set("ssaoTex",e)):t.material.disableTexture("ssaoTex")};Ut.prototype.isFinished=function(e){return this._physicallyCorrect?e>this._totalSamples/this._samplePerFrame:!0};Ut.prototype.dispose=function(e){this._ssrTexture.dispose(e),this._texture2.dispose(e),this._texture3.dispose(e),this._prevTexture.dispose(e),this._currentTexture.dispose(e),this._frameBuffer.dispose(e)};const Oo=[0,0,-.321585265978,-.154972575841,.458126042375,.188473391593,.842080129861,.527766490688,.147304551086,-.659453822776,-.331943915203,-.940619700594,.0479226680259,.54812163202,.701581552186,-.709825561388,-.295436780218,.940589268233,-.901489676764,.237713156085,.973570876096,-.109899459384,-.866792314779,-.451805525005,.330975007087,.800048655954,-.344275183665,.381779221166,-.386139432542,-.437418421534,-.576478634965,-.0148463392551,.385798197415,-.262426961053,-.666302061145,.682427250835,-.628010632582,-.732836215494,.10163141741,-.987658134403,.711995289051,-.320024291314,.0296005138058,.950296523438,.0130612307608,-.351024443122,-.879596633704,-.10478487883,.435712737232,.504254490347,.779203817497,.206477676721,.388264289969,-.896736162545,-.153106280781,-.629203242522,-.245517550697,.657969239148,.126830499058,.26862328493,-.634888119007,-.302301223431,.617074219636,.779817204925],Tc=`@export ecgl.normal.vertex @import ecgl.common.transformUniforms @@ -3262,7 +3262,7 @@ void main() gl_FragColor.rgb = (N.xyz + 1.0) * 0.5; gl_FragColor.a = g; } -@end`;N.import(wc);function qn(e,t,r,i,n){var a=e.gl;t.setUniform(a,"1i",r,n),a.activeTexture(a.TEXTURE0+n),i.isRenderable()?i.bind(e):i.unbind(e)}function Sc(e,t,r,i,n){var a,o,s,l,h=e.gl;return function(u,f,d){if(!(l&&l.material===u.material)){var c=u.material,v=u.__program,p=c.get("roughness");p==null&&(p=1);var m=c.get("normalMap")||t,g=c.get("roughnessMap"),x=c.get("bumpMap"),y=c.get("uvRepeat"),_=c.get("uvOffset"),w=c.get("detailUvRepeat"),S=c.get("detailUvOffset"),b=!!x&&c.isTextureEnabled("bumpMap"),A=!!g&&c.isTextureEnabled("roughnessMap"),C=c.isDefined("fragment","DOUBLE_SIDED");x=x||r,g=g||i,d!==f?(f.set("normalMap",m),f.set("bumpMap",x),f.set("roughnessMap",g),f.set("useBumpMap",b),f.set("useRoughnessMap",A),f.set("doubleSide",C),y!=null&&f.set("uvRepeat",y),_!=null&&f.set("uvOffset",_),w!=null&&f.set("detailUvRepeat",w),S!=null&&f.set("detailUvOffset",S),f.set("roughness",p)):(v.setUniform(h,"1f","roughness",p),a!==m&&qn(e,v,"normalMap",m,0),o!==x&&x&&qn(e,v,"bumpMap",x,1),s!==g&&g&&qn(e,v,"roughnessMap",g,2),y!=null&&v.setUniform(h,"2f","uvRepeat",y),_!=null&&v.setUniform(h,"2f","uvOffset",_),w!=null&&v.setUniform(h,"2f","detailUvRepeat",w),S!=null&&v.setUniform(h,"2f","detailUvOffset",S),v.setUniform(h,"1i","useBumpMap",+b),v.setUniform(h,"1i","useRoughnessMap",+A),v.setUniform(h,"1i","doubleSide",+C)),a=m,o=x,s=g,l=u}}}function Zr(e){this._depthTex=new $({format:W.DEPTH_COMPONENT,type:W.UNSIGNED_INT}),this._normalTex=new $({type:W.HALF_FLOAT}),this._framebuffer=new qe,this._framebuffer.attach(this._normalTex),this._framebuffer.attach(this._depthTex,qe.DEPTH_ATTACHMENT),this._normalMaterial=new gt({shader:new N(N.source("ecgl.normal.vertex"),N.source("ecgl.normal.fragment"))}),this._normalMaterial.enableTexture(["normalMap","bumpMap","roughnessMap"]),this._defaultNormalMap=fr.createBlank("#000"),this._defaultBumpMap=fr.createBlank("#000"),this._defaultRoughessMap=fr.createBlank("#000"),this._debugPass=new Re({fragment:N.source("clay.compositor.output")}),this._debugPass.setUniform("texture",this._normalTex),this._debugPass.material.undefine("fragment","OUTPUT_ALPHA")}Zr.prototype.getDepthTexture=function(){return this._depthTex};Zr.prototype.getNormalTexture=function(){return this._normalTex};Zr.prototype.update=function(e,t,r){var i=e.getWidth(),n=e.getHeight(),a=this._depthTex,o=this._normalTex,s=this._normalMaterial;a.width=i,a.height=n,o.width=i,o.height=n;var l=t.getRenderList(r).opaque;this._framebuffer.bind(e),e.gl.clearColor(0,0,0,0),e.gl.clear(e.gl.COLOR_BUFFER_BIT|e.gl.DEPTH_BUFFER_BIT),e.gl.disable(e.gl.BLEND),e.renderPass(l,r,{getMaterial:function(){return s},ifRender:function(h){return h.renderNormal},beforeRender:Sc(e,this._defaultNormalMap,this._defaultBumpMap,this._defaultRoughessMap,this._normalMaterial),sort:e.opaqueSortCompare}),this._framebuffer.unbind(e)};Zr.prototype.renderDebug=function(e){this._debugPass.render(e)};Zr.prototype.dispose=function(e){this._depthTex.dispose(e),this._normalTex.dispose(e)};function Li(e){e=e||{},this._edgePass=new Re({fragment:N.source("ecgl.edge")}),this._edgePass.setUniform("normalTexture",e.normalTexture),this._edgePass.setUniform("depthTexture",e.depthTexture),this._targetTexture=new $({type:W.HALF_FLOAT}),this._frameBuffer=new qe,this._frameBuffer.attach(this._targetTexture)}Li.prototype.update=function(e,t,r,i){var n=e.getWidth(),a=e.getHeight(),o=this._targetTexture;o.width=n,o.height=a;var s=this._frameBuffer;s.bind(e),this._edgePass.setUniform("projectionInv",t.invProjectionMatrix.array),this._edgePass.setUniform("textureSize",[n,a]),this._edgePass.setUniform("texture",r),this._edgePass.render(e),s.unbind(e)};Li.prototype.getTargetTexture=function(){return this._targetTexture};Li.prototype.setParameter=function(e,t){this._edgePass.setUniform(e,t)};Li.prototype.dispose=function(e){this._targetTexture.dispose(e),this._frameBuffer.dispose(e)};const Ac={type:"compositor",nodes:[{name:"source",type:"texture",outputs:{color:{}}},{name:"source_half",shader:"#source(clay.compositor.downsample)",inputs:{texture:"source"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bright",shader:"#source(clay.compositor.bright)",inputs:{texture:"source_half"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{threshold:2,scale:4,textureSize:"expr([width * 1.0 / 2, height / 2])"}},{name:"bright_downsample_4",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 2, height / 2] )"}},{name:"bright_downsample_8",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 4, height / 4] )"}},{name:"bright_downsample_16",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 8, height / 8] )"}},{name:"bright_downsample_32",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 32)",height:"expr(height * 1.0 / 32)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 16, height / 16] )"}},{name:"bright_upsample_16_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_32"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 32, height / 32] )"}},{name:"bright_upsample_16_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_16_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_8_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_8_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_8_blur_v",texture2:"bright_upsample_16_blur_v"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_4_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_4_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_4_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_4_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_4_blur_v",texture2:"bright_upsample_8_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_2_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_2_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_2_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_2_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_2_blur_v",texture2:"bright_upsample_4_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_full_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_full_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_full_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bloom_composite",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_full_blur_v",texture2:"bright_upsample_2_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"coc",shader:"#source(ecgl.dof.coc)",outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{focalDist:50,focalRange:30}},{name:"dof_far_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"dof_near_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_NEARFIELD:null}},{name:"dof_coc_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"coc"},outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_COC:null}},{name:"dof_composite",shader:"#source(ecgl.dof.composite)",inputs:{original:"source",blurred:"dof_far_blur",nearfield:"dof_near_blur",coc:"coc",nearcoc:"dof_coc_blur"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}}},{name:"composite",shader:"#source(clay.compositor.hdr.composite)",inputs:{texture:"source",bloom:"bloom_composite"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},defines:{}},{name:"FXAA",shader:"#source(clay.compositor.fxaa)",inputs:{texture:"composite"}}]},Ec=`@export ecgl.dof.coc +@end`;N.import(Tc);function jn(e,t,r,i,n){var a=e.gl;t.setUniform(a,"1i",r,n),a.activeTexture(a.TEXTURE0+n),i.isRenderable()?i.bind(e):i.unbind(e)}function wc(e,t,r,i,n){var a,o,s,l,h=e.gl;return function(u,f,d){if(!(l&&l.material===u.material)){var c=u.material,v=u.__program,p=c.get("roughness");p==null&&(p=1);var m=c.get("normalMap")||t,g=c.get("roughnessMap"),x=c.get("bumpMap"),y=c.get("uvRepeat"),_=c.get("uvOffset"),w=c.get("detailUvRepeat"),S=c.get("detailUvOffset"),b=!!x&&c.isTextureEnabled("bumpMap"),A=!!g&&c.isTextureEnabled("roughnessMap"),C=c.isDefined("fragment","DOUBLE_SIDED");x=x||r,g=g||i,d!==f?(f.set("normalMap",m),f.set("bumpMap",x),f.set("roughnessMap",g),f.set("useBumpMap",b),f.set("useRoughnessMap",A),f.set("doubleSide",C),y!=null&&f.set("uvRepeat",y),_!=null&&f.set("uvOffset",_),w!=null&&f.set("detailUvRepeat",w),S!=null&&f.set("detailUvOffset",S),f.set("roughness",p)):(v.setUniform(h,"1f","roughness",p),a!==m&&jn(e,v,"normalMap",m,0),o!==x&&x&&jn(e,v,"bumpMap",x,1),s!==g&&g&&jn(e,v,"roughnessMap",g,2),y!=null&&v.setUniform(h,"2f","uvRepeat",y),_!=null&&v.setUniform(h,"2f","uvOffset",_),w!=null&&v.setUniform(h,"2f","detailUvRepeat",w),S!=null&&v.setUniform(h,"2f","detailUvOffset",S),v.setUniform(h,"1i","useBumpMap",+b),v.setUniform(h,"1i","useRoughnessMap",+A),v.setUniform(h,"1i","doubleSide",+C)),a=m,o=x,s=g,l=u}}}function Xr(e){this._depthTex=new $({format:W.DEPTH_COMPONENT,type:W.UNSIGNED_INT}),this._normalTex=new $({type:W.HALF_FLOAT}),this._framebuffer=new qe,this._framebuffer.attach(this._normalTex),this._framebuffer.attach(this._depthTex,qe.DEPTH_ATTACHMENT),this._normalMaterial=new gt({shader:new N(N.source("ecgl.normal.vertex"),N.source("ecgl.normal.fragment"))}),this._normalMaterial.enableTexture(["normalMap","bumpMap","roughnessMap"]),this._defaultNormalMap=fr.createBlank("#000"),this._defaultBumpMap=fr.createBlank("#000"),this._defaultRoughessMap=fr.createBlank("#000"),this._debugPass=new Re({fragment:N.source("clay.compositor.output")}),this._debugPass.setUniform("texture",this._normalTex),this._debugPass.material.undefine("fragment","OUTPUT_ALPHA")}Xr.prototype.getDepthTexture=function(){return this._depthTex};Xr.prototype.getNormalTexture=function(){return this._normalTex};Xr.prototype.update=function(e,t,r){var i=e.getWidth(),n=e.getHeight(),a=this._depthTex,o=this._normalTex,s=this._normalMaterial;a.width=i,a.height=n,o.width=i,o.height=n;var l=t.getRenderList(r).opaque;this._framebuffer.bind(e),e.gl.clearColor(0,0,0,0),e.gl.clear(e.gl.COLOR_BUFFER_BIT|e.gl.DEPTH_BUFFER_BIT),e.gl.disable(e.gl.BLEND),e.renderPass(l,r,{getMaterial:function(){return s},ifRender:function(h){return h.renderNormal},beforeRender:wc(e,this._defaultNormalMap,this._defaultBumpMap,this._defaultRoughessMap,this._normalMaterial),sort:e.opaqueSortCompare}),this._framebuffer.unbind(e)};Xr.prototype.renderDebug=function(e){this._debugPass.render(e)};Xr.prototype.dispose=function(e){this._depthTex.dispose(e),this._normalTex.dispose(e)};function Ci(e){e=e||{},this._edgePass=new Re({fragment:N.source("ecgl.edge")}),this._edgePass.setUniform("normalTexture",e.normalTexture),this._edgePass.setUniform("depthTexture",e.depthTexture),this._targetTexture=new $({type:W.HALF_FLOAT}),this._frameBuffer=new qe,this._frameBuffer.attach(this._targetTexture)}Ci.prototype.update=function(e,t,r,i){var n=e.getWidth(),a=e.getHeight(),o=this._targetTexture;o.width=n,o.height=a;var s=this._frameBuffer;s.bind(e),this._edgePass.setUniform("projectionInv",t.invProjectionMatrix.array),this._edgePass.setUniform("textureSize",[n,a]),this._edgePass.setUniform("texture",r),this._edgePass.render(e),s.unbind(e)};Ci.prototype.getTargetTexture=function(){return this._targetTexture};Ci.prototype.setParameter=function(e,t){this._edgePass.setUniform(e,t)};Ci.prototype.dispose=function(e){this._targetTexture.dispose(e),this._frameBuffer.dispose(e)};const Sc={type:"compositor",nodes:[{name:"source",type:"texture",outputs:{color:{}}},{name:"source_half",shader:"#source(clay.compositor.downsample)",inputs:{texture:"source"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bright",shader:"#source(clay.compositor.bright)",inputs:{texture:"source_half"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{threshold:2,scale:4,textureSize:"expr([width * 1.0 / 2, height / 2])"}},{name:"bright_downsample_4",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 2, height / 2] )"}},{name:"bright_downsample_8",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 4, height / 4] )"}},{name:"bright_downsample_16",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 8, height / 8] )"}},{name:"bright_downsample_32",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 32)",height:"expr(height * 1.0 / 32)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 16, height / 16] )"}},{name:"bright_upsample_16_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_32"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 32, height / 32] )"}},{name:"bright_upsample_16_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_16_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_8_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_8_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_8_blur_v",texture2:"bright_upsample_16_blur_v"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_4_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_4_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_4_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_4_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_4_blur_v",texture2:"bright_upsample_8_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_2_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_2_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_2_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_2_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_2_blur_v",texture2:"bright_upsample_4_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_full_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_full_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_full_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bloom_composite",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_full_blur_v",texture2:"bright_upsample_2_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"coc",shader:"#source(ecgl.dof.coc)",outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{focalDist:50,focalRange:30}},{name:"dof_far_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"dof_near_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_NEARFIELD:null}},{name:"dof_coc_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"coc"},outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_COC:null}},{name:"dof_composite",shader:"#source(ecgl.dof.composite)",inputs:{original:"source",blurred:"dof_far_blur",nearfield:"dof_near_blur",coc:"coc",nearcoc:"dof_coc_blur"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}}},{name:"composite",shader:"#source(clay.compositor.hdr.composite)",inputs:{texture:"source",bloom:"bloom_composite"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},defines:{}},{name:"FXAA",shader:"#source(clay.compositor.fxaa)",inputs:{texture:"composite"}}]},Ac=`@export ecgl.dof.coc uniform sampler2D depth; @@ -3435,7 +3435,7 @@ void main() #endif } -@end`,bc=`@export ecgl.edge +@end`,Ec=`@export ecgl.edge uniform sampler2D texture; @@ -3488,8 +3488,8 @@ void main() { gl_FragColor = mix(texture2D(texture, v_Texcoord), vec4(edgeColor.rgb, 1.0), edgeColor.a * edge); } -@end`;N.import(ks);N.import(Ws);N.import(Xs);N.import(Zs);N.import(js);N.import(qs);N.import(Ys);N.import(Ks);N.import(Qs);N.import(Ec);N.import(bc);function el(e,t){return{color:{parameters:{width:e,height:t}}}}var Ra=["composite","FXAA"];function re(){this._width,this._height,this._dpr,this._sourceTexture=new $({type:W.HALF_FLOAT}),this._depthTexture=new $({format:W.DEPTH_COMPONENT,type:W.UNSIGNED_INT}),this._framebuffer=new qe,this._framebuffer.attach(this._sourceTexture),this._framebuffer.attach(this._depthTexture,qe.DEPTH_ATTACHMENT),this._normalPass=new Zr,this._compositor=cc(Ac);var e=this._compositor.getNodeByName("source");e.texture=this._sourceTexture;var t=this._compositor.getNodeByName("coc");this._sourceNode=e,this._cocNode=t,this._compositeNode=this._compositor.getNodeByName("composite"),this._fxaaNode=this._compositor.getNodeByName("FXAA"),this._dofBlurNodes=["dof_far_blur","dof_near_blur","dof_coc_blur"].map(function(i){return this._compositor.getNodeByName(i)},this),this._dofBlurKernel=0,this._dofBlurKernelSize=new Float32Array(0),this._finalNodesChain=Ra.map(function(i){return this._compositor.getNodeByName(i)},this);var r={normalTexture:this._normalPass.getNormalTexture(),depthTexture:this._normalPass.getDepthTexture()};this._ssaoPass=new Ft(r),this._ssrPass=new Ut(r),this._edgePass=new Li(r)}re.prototype.resize=function(i,n,r){r=r||1;var i=i*r,n=n*r,a=this._sourceTexture,o=this._depthTexture;a.width=i,a.height=n,o.width=i,o.height=n;var s={getWidth:function(){return i},getHeight:function(){return n},getDevicePixelRatio:function(){return r}};function l(h,u){if(typeof h[u]=="function"){var f=h[u].__original||h[u];h[u]=function(d){return f.call(this,s)},h[u].__original=f}}this._compositor.nodes.forEach(function(h){for(var u in h.outputs){var f=h.outputs[u].parameters;f&&(l(f,"width"),l(f,"height"))}for(var d in h.parameters)l(h.parameters,d)}),this._width=i,this._height=n,this._dpr=r};re.prototype.getWidth=function(){return this._width};re.prototype.getHeight=function(){return this._height};re.prototype._ifRenderNormalPass=function(){return this._enableSSAO||this._enableEdge||this._enableSSR};re.prototype._getPrevNode=function(e){for(var t=Ra.indexOf(e.name)-1,r=this._finalNodesChain[t];r&&!this._compositor.getNodeByName(r.name);)t-=1,r=this._finalNodesChain[t];return r};re.prototype._getNextNode=function(e){for(var t=Ra.indexOf(e.name)+1,r=this._finalNodesChain[t];r&&!this._compositor.getNodeByName(r.name);)t+=1,r=this._finalNodesChain[t];return r};re.prototype._addChainNode=function(e){var t=this._getPrevNode(e),r=this._getNextNode(e);!t||(e.inputs.texture=t.name,r?(e.outputs=el(this.getWidth.bind(this),this.getHeight.bind(this)),r.inputs.texture=e.name):e.outputs=null,this._compositor.addNode(e))};re.prototype._removeChainNode=function(e){var t=this._getPrevNode(e),r=this._getNextNode(e);!t||(r?(t.outputs=el(this.getWidth.bind(this),this.getHeight.bind(this)),r.inputs.texture=t.name):t.outputs=null,this._compositor.removeNode(e))};re.prototype.updateNormal=function(e,t,r,i){this._ifRenderNormalPass()&&this._normalPass.update(e,t,r)};re.prototype.updateSSAO=function(e,t,r,i){this._ssaoPass.update(e,r,i)};re.prototype.enableSSAO=function(){this._enableSSAO=!0};re.prototype.disableSSAO=function(){this._enableSSAO=!1};re.prototype.enableSSR=function(){this._enableSSR=!0};re.prototype.disableSSR=function(){this._enableSSR=!1};re.prototype.getSSAOTexture=function(){return this._ssaoPass.getTargetTexture()};re.prototype.getSourceFrameBuffer=function(){return this._framebuffer};re.prototype.getSourceTexture=function(){return this._sourceTexture};re.prototype.disableFXAA=function(){this._removeChainNode(this._fxaaNode)};re.prototype.enableFXAA=function(){this._addChainNode(this._fxaaNode)};re.prototype.enableBloom=function(){this._compositeNode.inputs.bloom="bloom_composite",this._compositor.dirty()};re.prototype.disableBloom=function(){this._compositeNode.inputs.bloom=null,this._compositor.dirty()};re.prototype.enableDOF=function(){this._compositeNode.inputs.texture="dof_composite",this._compositor.dirty()};re.prototype.disableDOF=function(){this._compositeNode.inputs.texture="source",this._compositor.dirty()};re.prototype.enableColorCorrection=function(){this._compositeNode.define("COLOR_CORRECTION"),this._enableColorCorrection=!0};re.prototype.disableColorCorrection=function(){this._compositeNode.undefine("COLOR_CORRECTION"),this._enableColorCorrection=!1};re.prototype.enableEdge=function(){this._enableEdge=!0};re.prototype.disableEdge=function(){this._enableEdge=!1};re.prototype.setBloomIntensity=function(e){this._compositeNode.setParameter("bloomIntensity",e)};re.prototype.setSSAOParameter=function(e,t){switch(e){case"quality":var r={low:6,medium:12,high:32,ultra:62}[t]||12;this._ssaoPass.setParameter("kernelSize",r);break;case"radius":this._ssaoPass.setParameter(e,t),this._ssaoPass.setParameter("bias",t/200);break;case"intensity":this._ssaoPass.setParameter(e,t);break;default:console.warn("Unkown SSAO parameter "+e)}};re.prototype.setDOFParameter=function(e,t){switch(e){case"focalDistance":case"focalRange":case"fstop":this._cocNode.setParameter(e,t);break;case"blurRadius":for(var r=0;r =this._haltonSequence.length},render:function(e,t,r){var i=this._blendPass;this._frame===0?(i.setUniform("weight1",0),i.setUniform("weight2",1)):(i.setUniform("weight1",.9),i.setUniform("weight2",.1)),i.setUniform("texture1",this._prevFrameTex),i.setUniform("texture2",t||this._sourceTex),this._blendFb.attach(this._outputTex),this._blendFb.bind(e),i.render(e),this._blendFb.unbind(e),r||(this._outputPass.setUniform("texture",this._outputTex),this._outputPass.render(e));var n=this._prevFrameTex;this._prevFrameTex=this._outputTex,this._outputTex=n,this._frame++},dispose:function(e){this._sourceFb.dispose(e),this._blendFb.dispose(e),this._prevFrameTex.dispose(e),this._outputTex.dispose(e),this._sourceTex.dispose(e),this._outputPass.dispose(e),this._blendPass.dispose(e)}};function ce(e){e=e||"perspective",this.layer=null,this.scene=new Qt,this.rootNode=this.scene,this.viewport={x:0,y:0,width:0,height:0},this.setProjection(e),this._compositor=new re,this._temporalSS=new ca,this._shadowMapPass=new Yf;for(var t=[],r=0,i=0;i<30;i++){for(var n=[],a=0;a<6;a++)n.push(Ur(r,2)*4-2),n.push(Ur(r,3)*4-2),r++;t.push(n)}this._pcfKernels=t,this.scene.on("beforerender",function(o,s,l){this.needsTemporalSS()&&this._temporalSS.jitterProjection(o,l)},this)}ce.prototype.setProjection=function(e){var t=this.camera;t&&t.update(),e==="perspective"?this.camera instanceof He||(this.camera=new He,t&&this.camera.setLocalTransform(t.localTransform)):this.camera instanceof Fr||(this.camera=new Fr,t&&this.camera.setLocalTransform(t.localTransform)),this.camera.near=.1,this.camera.far=2e3};ce.prototype.setViewport=function(e,t,r,i,n){this.camera instanceof He&&(this.camera.aspect=r/i),n=n||1,this.viewport.x=e,this.viewport.y=t,this.viewport.width=r,this.viewport.height=i,this.viewport.devicePixelRatio=n,this._compositor.resize(r*n,i*n),this._temporalSS.resize(r*n,i*n)};ce.prototype.containPoint=function(e,t){var r=this.viewport,i=this.layer.renderer.getHeight();return t=i-t,e>=r.x&&t>=r.y&&e<=r.x+r.width&&t<=r.y+r.height};var Fo=new ut;ce.prototype.castRay=function(e,t,r){var i=this.layer.renderer,n=i.viewport;return i.viewport=this.viewport,i.screenToNDC(e,t,Fo),this.camera.castRay(Fo,r),i.viewport=n,r};ce.prototype.prepareRender=function(){this.scene.update(),this.camera.update(),this.scene.updateLights();var e=this.scene.updateRenderList(this.camera);this._needsSortProgressively=!1;for(var t=0;t 30};ce.prototype._doRender=function(e,t,r){var i=this.scene,n=this.camera;r=r||0,this._updateTransparent(e,i,n,r),t||(this._shadowMapPass.kernelPCF=this._pcfKernels[0],this._shadowMapPass.render(e,i,n,!0)),this._updateShadowPCFKernel(r);var a=e.clearColor;if(e.gl.clearColor(a[0],a[1],a[2],a[3]),this._enablePostEffect&&(this.needsTemporalSS()&&this._temporalSS.jitterProjection(e,n),this._compositor.updateNormal(e,i,n,this._temporalSS.getFrame())),this._updateSSAO(e,i,n,this._temporalSS.getFrame()),this._enablePostEffect){var o=this._compositor.getSourceFrameBuffer();o.bind(e),e.gl.clear(e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT),e.render(i,n,!0,!0),o.unbind(e),this.needsTemporalSS()&&t?(this._compositor.composite(e,i,n,this._temporalSS.getSourceFrameBuffer(),this._temporalSS.getFrame()),e.setViewport(this.viewport),this._temporalSS.render(e)):(e.setViewport(this.viewport),this._compositor.composite(e,i,n,null,0))}else if(this.needsTemporalSS()&&t){var o=this._temporalSS.getSourceFrameBuffer();o.bind(e),e.saveClear(),e.clearBit=e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT,e.render(i,n,!0,!0),e.restoreClear(),o.unbind(e),e.setViewport(this.viewport),this._temporalSS.render(e)}else e.setViewport(this.viewport),e.render(i,n,!0,!0)};ce.prototype._updateTransparent=function(e,t,r,i){for(var n=new U,a=new k,o=r.getWorldPosition(),s=t.getRenderList(r).transparent,l=0;l this.camera.far||e 80*r){s=h=e[0],l=u=e[1];for(var v=r;v h&&(h=f),d>u&&(u=d);c=Math.max(h-s,u-l)}return yi(a,o,r,s,l,c),o}function ol(e,t,r,i,n){var a,o;if(n===pa(e,t,r,i)>0)for(a=t;a =t;a-=i)o=Uo(a,e[a],e[a+1],o);return o&&ur(o,o.next)&&(Ti(o),o=o.next),o}function _i(e,t){if(!e)return e;t||(t=e);var r=e,i;do if(i=!1,!r.steiner&&(ur(r,r.next)||rt(r.prev,r,r.next)===0)){if(Ti(r),r=t=r.prev,r===r.next)return null;i=!0}else r=r.next;while(i||r!==t);return t}function yi(e,t,r,i,n,a,o){if(!!e){!o&&a&&qc(e,i,n,a);for(var s=e,l,h;e.prev!==e.next;){if(l=e.prev,h=e.next,a?Hc(e,i,n,a):zc(e)){t.push(l.i/r),t.push(e.i/r),t.push(h.i/r),Ti(e),e=h.next,s=h.next;continue}if(e=h,e===s){o?o===1?(e=Vc(e,t,r),yi(e,t,r,i,n,a,2)):o===2&&kc(e,t,r,i,n,a):yi(_i(e),t,r,i,n,a,1);break}}}}function zc(e){var t=e.prev,r=e,i=e.next;if(rt(t,r,i)>=0)return!1;for(var n=e.next.next;n!==e.prev;){if(hn(t.x,t.y,r.x,r.y,i.x,i.y,n.x,n.y)&&rt(n.prev,n,n.next)>=0)return!1;n=n.next}return!0}function Hc(e,t,r,i){var n=e.prev,a=e,o=e.next;if(rt(n,a,o)>=0)return!1;for(var s=n.x a.x?n.x>o.x?n.x:o.x:a.x>o.x?a.x:o.x,u=n.y>a.y?n.y>o.y?n.y:o.y:a.y>o.y?a.y:o.y,f=da(s,l,t,r,i),d=da(h,u,t,r,i),c=e.nextZ;c&&c.z<=d;){if(c!==e.prev&&c!==e.next&&hn(n.x,n.y,a.x,a.y,o.x,o.y,c.x,c.y)&&rt(c.prev,c,c.next)>=0)return!1;c=c.nextZ}for(c=e.prevZ;c&&c.z>=f;){if(c!==e.prev&&c!==e.next&&hn(n.x,n.y,a.x,a.y,o.x,o.y,c.x,c.y)&&rt(c.prev,c,c.next)>=0)return!1;c=c.prevZ}return!0}function Vc(e,t,r){var i=e;do{var n=i.prev,a=i.next.next;!ur(n,a)&&sl(n,i,i.next,a)&&xi(n,a)&&xi(a,n)&&(t.push(n.i/r),t.push(i.i/r),t.push(a.i/r),Ti(i),Ti(i.next),i=e=a),i=i.next}while(i!==e);return i}function kc(e,t,r,i,n,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&Qc(o,s)){var l=ll(o,s);o=_i(o,o.next),l=_i(l,l.next),yi(o,t,r,i,n,a),yi(l,t,r,i,n,a);return}s=s.next}o=o.next}while(o!==e)}function Wc(e,t,r,i){var n=[],a,o,s,l,h;for(a=0,o=t.length;a =r.next.y&&r.next.y!==r.y){var s=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(n===r.y)return r;if(n===r.next.y)return r.next}o=r.x =r.x&&r.x>=h&&i!==r.x&&hn(no.x)&&xi(r,e)&&(o=r,f=d)),r=r.next;return o}function qc(e,t,r,i){var n=e;do n.z===null&&(n.z=da(n.x,n.y,t,r,i)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,Yc(n)}function Yc(e){var t,r,i,n,a,o,s,l,h=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,i=r,s=0,t=0;t 0||l>0&&i;)s!==0&&(l===0||!i||r.z<=i.z)?(n=r,r=r.nextZ,s--):(n=i,i=i.nextZ,l--),a?a.nextZ=n:e=n,n.prevZ=a,a=n;r=i}a.nextZ=null,h*=2}while(o>1);return e}function da(e,t,r,i,n){return e=32767*(e-r)/n,t=32767*(t-i)/n,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function Kc(e){var t=e,r=e;do t.x =0&&(e-o)*(i-s)-(r-o)*(t-s)>=0&&(r-o)*(a-s)-(n-o)*(i-s)>=0}function Qc(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!$c(e,t)&&xi(e,t)&&xi(t,e)&&Jc(e,t)}function rt(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function ur(e,t){return e.x===t.x&&e.y===t.y}function sl(e,t,r,i){return ur(e,t)&&ur(r,i)||ur(e,i)&&ur(r,t)?!0:rt(e,t,r)>0!=rt(e,t,i)>0&&rt(r,i,e)>0!=rt(r,i,t)>0}function $c(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&sl(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function xi(e,t){return rt(e.prev,e,e.next)<0?rt(e,t,e.next)>=0&&rt(e,e.prev,t)>=0:rt(e,t,e.prev)<0||rt(e,e.next,t)<0}function Jc(e,t){var r=e,i=!1,n=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&n<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(i=!i),r=r.next;while(r!==e);return i}function ll(e,t){var r=new va(e.i,e.x,e.y),i=new va(t.i,t.x,t.y),n=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function Uo(e,t,r,i){var n=new va(e,t,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function Ti(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function va(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}al.deviation=function(e,t,r,i){var n=t&&t.length,a=n?t[0]*r:e.length,o=Math.abs(pa(e,0,a,r));if(n)for(var s=0,l=t.length;s l&&s.push({pivot:Math.floor((h+l)/2),left:l,right:h});var l=a[o].pivot+1,h=a[o].right;h>l&&s.push({pivot:Math.floor((h+l)/2),left:l,right:h})}a=this._parts=s}else for(var o=0;o =2e4},doSortTriangles:function(e,t){var r=this.indices;if(t===0){var i=this.attributes.position,e=e.array;(!this._triangleZList||this._triangleZList.length!==this.triangleCount)&&(this._triangleZList=new Float32Array(this.triangleCount),this._sortedTriangleIndices=new Uint32Array(this.triangleCount),this._indicesTmp=new r.constructor(r.length),this._triangleZListTmp=new Float32Array(this.triangleCount));for(var n=0,a,o=0;o 0,r={},i=0;i 65535?new Uint32Array(o*3):new Uint16Array(o*3),d.material.shader!==t&&d.material.attachShader(t,!0),T.setMaterialFromModel(t.__shading,d.material,e,r),s>0&&(this._linesMesh.geometry.resetOffset(),this._linesMesh.geometry.setVertexCount(s),this._linesMesh.geometry.setTriangleCount(l)),this._dataIndexOfVertex=new Uint32Array(a),this._vertexRangeOfDataIndex=new Uint32Array((n-i)*2)},_updateRegionMesh:function(e,t,r,i){for(var n=e.getData(),a=0,o=0,s=!1,S=this._polygonMesh,l=this._linesMesh,h=r;h0;w&&(_*=t.getDevicePixelRatio(),this._updateLinesGeometry(l.geometry,e,h,g,_,e.coordinateSystem.transform)),l.invisible=!w,l.material.set({color:p})}var S=this._polygonMesh;S.material.transparent=s,S.material.depthMask=!s,S.geometry.updateBoundingBox(),S.frontFace=this.extrudeY?T.Mesh.CCW:T.Mesh.CW,S.material.get("normalMap")&&S.geometry.generateTangents(),S.seriesIndex=e.seriesIndex,S.on("mousemove",this._onmousemove,this),S.on("mouseout",this._onmouseout,this)},_updateDebugWireframe:function(e){var t=e.getModel("debug.wireframe");if(t.get("show")){var r=T.parseColor(t.get("lineStyle.color")||"rgba(0,0,0,0.5)"),i=K.firstNotNull(t.get("lineStyle.width"),1),n=this._polygonMesh;n.geometry.generateBarycentric(),n.material.define("both","WIREFRAME_TRIANGLE"),n.material.set("wireframeLineColor",r),n.material.set("wireframeLineWidth",i)}},_onmousemove:function(e){var t=this._dataIndexOfVertex[e.triangle[0]];t==null&&(t=-1),t!==this._lastHoverDataIndex&&(this.downplay(this._lastHoverDataIndex),this.highlight(t),this._labelsBuilder.updateLabels([t])),this._lastHoverDataIndex=t,this._polygonMesh.dataIndex=t},_onmouseout:function(e){e.target&&(this.downplay(this._lastHoverDataIndex),this._lastHoverDataIndex=-1,this._polygonMesh.dataIndex=-1),this._labelsBuilder.updateLabels([])},_updateGroundPlane:function(e,t,r){var i=e.getModel("groundPlane",e);if(this._groundMesh.invisible=!i.get("show",!0),!this._groundMesh.invisible){var n=e.get("shading"),a=this._groundMaterials[n];a||(console.warn("Unkown shading "+n),a=this._groundMaterials.lambert),T.setMaterialFromModel(n,a,i,r),a.get("normalMap")&&this._groundMesh.geometry.generateTangents(),this._groundMesh.material=a,this._groundMesh.material.set("color",T.parseColor(i.get("color"))),this._groundMesh.scale.set(t.size[0],t.size[2],1)}},_triangulation:function(e,t,r){this._triangulationResults=[];for(var i=[1/0,1/0,1/0],n=[-1/0,-1/0,-1/0],a=e.coordinateSystem,o=t;o 1?i:0,O[te][m]=L.points[Se+2],l.set(n+te,O[te]),s?(le[0]=(L.points[Se]*g[0]-x[0])/_,le[1]=(L.points[Se+2]*g[m]-x[m])/_):(le[0]=(Ne?H:H+_e)/_,le[1]=(O[te][p]*g[p]-x[p])/_),u.set(n+te,le)}ot.sub(z,O[1],O[0]),ot.sub(V,O[3],O[0]),ot.cross(F,z,V),ot.normalize(F,F);for(var te=0;te<4;te++)h.set(n+te,F),c&&f.set(n+te,o);for(var te=0;te<6;te++)v[a*3+te]=D[te]+n;n+=4,a+=2,H+=_e}}return t.dirty(),{vertexOffset:n,triangleOffset:a}},_getRegionLinesInfo:function(e,t,r){var i=0,n=0,a=t.getRegionModel(e),o=a.getModel("itemStyle"),s=o.get("borderWidth");if(s>0){var l=t.getRegionPolygonCoords(e);l.forEach(function(h){var u=h.exterior,f=h.interiors;i+=r.getPolylineVertexCount(u),n+=r.getPolylineTriangleCount(u);for(var d=0;d this._endIndex)){t-=this._startIndex;for(var i=this._vertexRangeOfDataIndex[t*2];i 0},_displacementChanged:!0,_displacementScale:0,updateDisplacementHash:function(){var e=this.getDisplacementTexture(),t=this.getDisplacemenScale();this._displacementChanged=this._displacementTexture!==e||this._displacementScale!==t,this._displacementTexture=e,this._displacementScale=t},isDisplacementChanged:function(){return this._displacementChanged}});fe(dr.prototype,xn);fe(dr.prototype,Wr);fe(dr.prototype,Xr);fe(dr.prototype,jr);const hd=dr;var pl=Math.PI,_t=Math.sin,Ot=Math.cos,ml=Math.tan,gl=Math.asin,_l=Math.atan2,vr=pl/180,ud=1e3*60*60*24,fd=2440588,cd=2451545;function dd(e){return e.valueOf()/ud-.5+fd}function vd(e){return dd(e)-cd}var cn=vr*23.4397;function pd(e,t){return _l(_t(e)*Ot(cn)-ml(t)*_t(cn),Ot(e))}function md(e,t){return gl(_t(t)*Ot(cn)+Ot(t)*_t(cn)*_t(e))}function gd(e,t,r){return _l(_t(e),Ot(e)*_t(t)-ml(r)*Ot(t))}function _d(e,t,r){return gl(_t(t)*_t(r)+Ot(t)*Ot(r)*Ot(e))}function yd(e,t){return vr*(280.16+360.9856235*e)-t}function xd(e){return vr*(357.5291+.98560028*e)}function Td(e){var t=vr*(1.9148*_t(e)+.02*_t(2*e)+3e-4*_t(3*e)),r=vr*102.9372;return e+t+r+pl}function wd(e){var t=xd(e),r=Td(t);return{dec:md(r,0),ra:pd(r,0)}}var yl={};yl.getPosition=function(e,t,r){var i=vr*-r,n=vr*t,a=vd(e),o=wd(a),s=yd(a,i)-o.ra;return{azimuth:gd(s,n,o.dec),altitude:_d(s,n,o.dec)}};const Sd=yl,Ad=`@export ecgl.atmosphere.vertex +@end`;N.import(Vs);N.import(ks);N.import(Ws);N.import(Xs);N.import(Zs);N.import(js);N.import(qs);N.import(Ys);N.import(Ks);N.import(Ac);N.import(Ec);function Js(e,t){return{color:{parameters:{width:e,height:t}}}}var Pa=["composite","FXAA"];function re(){this._width,this._height,this._dpr,this._sourceTexture=new $({type:W.HALF_FLOAT}),this._depthTexture=new $({format:W.DEPTH_COMPONENT,type:W.UNSIGNED_INT}),this._framebuffer=new qe,this._framebuffer.attach(this._sourceTexture),this._framebuffer.attach(this._depthTexture,qe.DEPTH_ATTACHMENT),this._normalPass=new Xr,this._compositor=fc(Sc);var e=this._compositor.getNodeByName("source");e.texture=this._sourceTexture;var t=this._compositor.getNodeByName("coc");this._sourceNode=e,this._cocNode=t,this._compositeNode=this._compositor.getNodeByName("composite"),this._fxaaNode=this._compositor.getNodeByName("FXAA"),this._dofBlurNodes=["dof_far_blur","dof_near_blur","dof_coc_blur"].map(function(i){return this._compositor.getNodeByName(i)},this),this._dofBlurKernel=0,this._dofBlurKernelSize=new Float32Array(0),this._finalNodesChain=Pa.map(function(i){return this._compositor.getNodeByName(i)},this);var r={normalTexture:this._normalPass.getNormalTexture(),depthTexture:this._normalPass.getDepthTexture()};this._ssaoPass=new Ft(r),this._ssrPass=new Ut(r),this._edgePass=new Ci(r)}re.prototype.resize=function(i,n,r){r=r||1;var i=i*r,n=n*r,a=this._sourceTexture,o=this._depthTexture;a.width=i,a.height=n,o.width=i,o.height=n;var s={getWidth:function(){return i},getHeight:function(){return n},getDevicePixelRatio:function(){return r}};function l(h,u){if(typeof h[u]=="function"){var f=h[u].__original||h[u];h[u]=function(d){return f.call(this,s)},h[u].__original=f}}this._compositor.nodes.forEach(function(h){for(var u in h.outputs){var f=h.outputs[u].parameters;f&&(l(f,"width"),l(f,"height"))}for(var d in h.parameters)l(h.parameters,d)}),this._width=i,this._height=n,this._dpr=r};re.prototype.getWidth=function(){return this._width};re.prototype.getHeight=function(){return this._height};re.prototype._ifRenderNormalPass=function(){return this._enableSSAO||this._enableEdge||this._enableSSR};re.prototype._getPrevNode=function(e){for(var t=Pa.indexOf(e.name)-1,r=this._finalNodesChain[t];r&&!this._compositor.getNodeByName(r.name);)t-=1,r=this._finalNodesChain[t];return r};re.prototype._getNextNode=function(e){for(var t=Pa.indexOf(e.name)+1,r=this._finalNodesChain[t];r&&!this._compositor.getNodeByName(r.name);)t+=1,r=this._finalNodesChain[t];return r};re.prototype._addChainNode=function(e){var t=this._getPrevNode(e),r=this._getNextNode(e);!t||(e.inputs.texture=t.name,r?(e.outputs=Js(this.getWidth.bind(this),this.getHeight.bind(this)),r.inputs.texture=e.name):e.outputs=null,this._compositor.addNode(e))};re.prototype._removeChainNode=function(e){var t=this._getPrevNode(e),r=this._getNextNode(e);!t||(r?(t.outputs=Js(this.getWidth.bind(this),this.getHeight.bind(this)),r.inputs.texture=t.name):t.outputs=null,this._compositor.removeNode(e))};re.prototype.updateNormal=function(e,t,r,i){this._ifRenderNormalPass()&&this._normalPass.update(e,t,r)};re.prototype.updateSSAO=function(e,t,r,i){this._ssaoPass.update(e,r,i)};re.prototype.enableSSAO=function(){this._enableSSAO=!0};re.prototype.disableSSAO=function(){this._enableSSAO=!1};re.prototype.enableSSR=function(){this._enableSSR=!0};re.prototype.disableSSR=function(){this._enableSSR=!1};re.prototype.getSSAOTexture=function(){return this._ssaoPass.getTargetTexture()};re.prototype.getSourceFrameBuffer=function(){return this._framebuffer};re.prototype.getSourceTexture=function(){return this._sourceTexture};re.prototype.disableFXAA=function(){this._removeChainNode(this._fxaaNode)};re.prototype.enableFXAA=function(){this._addChainNode(this._fxaaNode)};re.prototype.enableBloom=function(){this._compositeNode.inputs.bloom="bloom_composite",this._compositor.dirty()};re.prototype.disableBloom=function(){this._compositeNode.inputs.bloom=null,this._compositor.dirty()};re.prototype.enableDOF=function(){this._compositeNode.inputs.texture="dof_composite",this._compositor.dirty()};re.prototype.disableDOF=function(){this._compositeNode.inputs.texture="source",this._compositor.dirty()};re.prototype.enableColorCorrection=function(){this._compositeNode.define("COLOR_CORRECTION"),this._enableColorCorrection=!0};re.prototype.disableColorCorrection=function(){this._compositeNode.undefine("COLOR_CORRECTION"),this._enableColorCorrection=!1};re.prototype.enableEdge=function(){this._enableEdge=!0};re.prototype.disableEdge=function(){this._enableEdge=!1};re.prototype.setBloomIntensity=function(e){this._compositeNode.setParameter("bloomIntensity",e)};re.prototype.setSSAOParameter=function(e,t){switch(e){case"quality":var r={low:6,medium:12,high:32,ultra:62}[t]||12;this._ssaoPass.setParameter("kernelSize",r);break;case"radius":this._ssaoPass.setParameter(e,t),this._ssaoPass.setParameter("bias",t/200);break;case"intensity":this._ssaoPass.setParameter(e,t);break;default:console.warn("Unkown SSAO parameter "+e)}};re.prototype.setDOFParameter=function(e,t){switch(e){case"focalDistance":case"focalRange":case"fstop":this._cocNode.setParameter(e,t);break;case"blurRadius":for(var r=0;r