2 lines
7.1 KiB
JavaScript
2 lines
7.1 KiB
JavaScript
import{Q as e,_ as l,r as a,I as t,a5 as i,a6 as s,a7 as d,d as r,o as n,c as o,l as m,e as p,w as u,f,V as c,W as g,k as y,n as v,A as _,J as b}from"./index.e5c8b0d6.js";function w(l){return e({url:"/ch/gjsjhzdmcckxx",method:"get",params:l})}const x={class:"DiseaseBox"},h={class:"TopForm"},Y={class:"CenterTable"},C={style:{display:"flex","align-items":"center"}},z={style:{"margin-left":"10px"}},D={style:{display:"flex","align-items":"center"}},M={style:{"margin-left":"10px"}},k={style:{display:"flex","align-items":"center"}},T={style:{"margin-left":"10px"}},V={style:{display:"flex","align-items":"center"}},S={style:{"margin-left":"10px"}},j={style:{display:"flex","align-items":"center"}},N={style:{"margin-left":"10px"}},U={style:{display:"flex","align-items":"center"}},A={style:{"margin-left":"10px"}},I={style:{display:"flex","align-items":"center"}},q={style:{"margin-left":"10px"}},B={style:{display:"flex","align-items":"center"}},F={style:{"margin-left":"10px"}},P={style:{display:"flex","align-items":"center"}},J={style:{"margin-left":"10px"}},Q={style:{display:"flex","align-items":"center"}},R={style:{"margin-left":"10px"}},W={style:{display:"flex","align-items":"center"}},E={style:{"margin-left":"10px"}},G={style:{display:"flex","align-items":"center"}},H={style:{"margin-left":"10px"}},K={style:{display:"flex","align-items":"center"}},L={style:{"margin-left":"10px"}},O={style:{display:"flex","align-items":"center"}},X={style:{"margin-left":"10px"}},Z={style:{display:"flex","align-items":"center"}},$={style:{"margin-left":"10px"}},ee={style:{display:"flex","align-items":"center"}},le={style:{"margin-left":"10px"}},ae={style:{display:"flex","align-items":"center"}},te={style:{"margin-left":"10px"}},ie={class:"Bottom"},se=l({__name:"index",setup(l){var se=localStorage.getItem("deptName")||"青岛西海岸新区";const de=a(),re=t({time:[{required:!1,message:"Please input Activity name",trigger:"blur"}],msCode:[{required:!1,message:"Please input Activity name",trigger:"blur"}]});let ne=a({time:"",msCode:""}),oe=a([]),me=a([]),pe=a(1),ue=a(20),fe=a(0);function ce(e){ue.value=e}function ge(e){pe.value=e}function ye(){ne.value.time="",ne.value.msCode="",pe.value=1,ue.value=20}return i((()=>{let e={};ne.value.time&&(e.startTime=s(ne.value.time[0]).format("YYYY-MM-DD"),e.endTime=s(ne.value.time[1]).format("YYYY-MM-DD")),e.msCode=ne.value.msCode,e.pageNum=pe.value,e.pageSize=ue.value,w(e).then((e=>{me.value=e.rows,fe.value=e.total}))})),d((async()=>{const l=await(a={divisions:se},e({url:"/bh/cxzdmchzdh",method:"get",params:a}));var a;let t={};ne.value.time&&(t.startTime=s(ne.value.time[0]).format("YYYY-MM-DD"),t.endTime=s(ne.value.time[1]).format("YYYY-MM-DD")),t.msCode=ne.value.msCode,t.pageNum=pe.value,t.pageSize=ue.value;const i=await w(t);200==l.code&&(oe.value=l.data.map((e=>({value:e.mscode,label:e.msname})))),200==i.code&&(fe.value=i.total,me.value=i.rows)})),(e,l)=>{const a=r("el-date-picker"),t=r("el-form-item"),i=r("el-option"),d=r("el-select"),se=r("el-button"),ve=r("el-form"),_e=r("el-table-column"),be=r("el-table"),we=r("el-pagination");return n(),o("div",x,[m("div",h,[p(ve,{ref_key:"ruleFormRef",ref:de,rules:re,model:f(ne),"label-width":"auto",style:{"max-width":"100%"},inline:!0,"label-position":"left"},{default:u((()=>[p(t,{label:"日期:",prop:"time"},{default:u((()=>[p(a,{modelValue:f(ne).time,"onUpdate:modelValue":l[0]||(l[0]=e=>f(ne).time=e),type:"daterange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",size:e.size},null,8,["modelValue","size"])])),_:1}),p(t,{label:"站点:",prop:"msCode"},{default:u((()=>[p(d,{modelValue:f(ne).msCode,"onUpdate:modelValue":l[1]||(l[1]=e=>f(ne).msCode=e),placeholder:"请选择",size:"large",style:{width:"240px"}},{default:u((()=>[p(i,{key:"全部",label:"全部",value:""}),(n(!0),o(c,null,g(f(oe),(e=>(n(),y(i,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),p(t,null,{default:u((()=>[p(se,{type:"primary",onClick:l[2]||(l[2]=e=>(async e=>{e&&await e.validate(((e,l)=>{if(e){let e={};ne.value.time&&(e.startTime=s(ne.value.time[0]).format("YYYY-MM-DD"),e.endTime=s(ne.value.time[1]).format("YYYY-MM-DD")),e.msCode=ne.value.msCode,e.pageNum=pe.value,e.pageSize=ue.value,w(e).then((e=>{me.value=e.rows}))}}))})(de.value)),style:{display:"none"}},{default:u((()=>[v("查询")])),_:1}),p(se,{onClick:ye},{default:u((()=>[v("重置")])),_:1})])),_:1})])),_:1},8,["rules","model"])]),m("div",Y,[p(be,{data:f(me),height:"650",style:{width:"100%",color:"black"}},{default:u((()=>[p(_e,{prop:"dataTime",label:"时间",width:"100",fixed:""}),p(_e,{prop:"ms_crop",label:"作物名称",fixed:""}),p(_e,{prop:"description",label:"描述"}),p(_e,{prop:"ms_code",label:"监测站编码",width:"120"}),p(_e,{label:"铁线虫",width:"90"},{default:u((e=>[m("div",C,[m("span",z,_(e.row.wireworm_bi)+"%",1)])])),_:1}),p(_e,{label:"幼虫",width:"90"},{default:u((e=>[m("div",D,[m("span",M,_(e.row.grub_bi)+"%",1)])])),_:1}),p(_e,{label:"蝼蛄",width:"90"},{default:u((e=>[m("div",k,[m("span",T,_(e.row.mole_cricket_bi)+"%",1)])])),_:1}),p(_e,{label:"蚜虫",width:"90"},{default:u((e=>[m("div",V,[m("span",S,_(e.row.aphid_bi)+"%",1)])])),_:1}),p(_e,{label:"红恙虫",width:"90"},{default:u((e=>[m("div",j,[m("span",N,_(e.row.red_mite_bi)+"%",1)])])),_:1}),p(_e,{label:"麦叶蜂",width:"90"},{default:u((e=>[m("div",U,[m("span",A,_(e.row.dolerus_tritici_bi)+"%",1)])])),_:1}),p(_e,{label:"麦红吸浆虫",width:"100"},{default:u((e=>[m("div",I,[m("span",q,_(e.row.wheat_midge_bi)+"%",1)])])),_:1}),p(_e,{label:"棉铃虫",width:"90"},{default:u((e=>[m("div",B,[m("span",F,_(e.row.cotton_bollworm_bi)+"%",1)])])),_:1}),p(_e,{label:"地老虎",width:"90"},{default:u((e=>[m("div",P,[m("span",J,_(e.row.cutworms_bi)+"%",1)])])),_:1}),p(_e,{label:"牧草虫",width:"90"},{default:u((e=>[m("div",Q,[m("span",R,_(e.row.thrips_bi)+"%",1)])])),_:1}),p(_e,{label:"甜菜夜蛾",width:"90"},{default:u((e=>[m("div",W,[m("span",E,_(e.row.beet_armyworm_bi)+"%",1)])])),_:1}),p(_e,{label:"二点委夜蛾",width:"100"},{default:u((e=>[m("div",G,[m("span",H,_(e.row.athetis_lepigone_bi)+"%",1)])])),_:1}),p(_e,{label:"秋叶蛾",width:"90"},{default:u((e=>[m("div",K,[m("span",L,_(e.row.fall_armyworm_bi)+"%",1)])])),_:1}),p(_e,{label:"玉米螟",width:"90"},{default:u((e=>[m("div",O,[m("span",X,_(e.row.corn_borer_bi)+"%",1)])])),_:1}),p(_e,{label:"斜纹夜蛾",width:"90"},{default:u((e=>[m("div",Z,[m("span",$,_(e.row.spodoptera_litura_bi)+"%",1)])])),_:1}),p(_e,{label:"黏虫",width:"90"},{default:u((e=>[m("div",ee,[m("span",le,_(e.row.leucania_separata_bi)+"%",1)])])),_:1}),p(_e,{label:"桃蛀螟",width:"90"},{default:u((e=>[m("div",ae,[m("span",te,_(e.row.dichocrocis_punctiferalis_bi)+"%",1)])])),_:1})])),_:1},8,["data"])]),m("div",ie,[p(we,{"current-page":f(pe),"onUpdate:current-page":l[3]||(l[3]=e=>b(pe)?pe.value=e:pe=e),"page-size":f(ue),"onUpdate:page-size":l[4]||(l[4]=e=>b(ue)?ue.value=e:ue=e),"page-sizes":[10,20,30,40],size:"default",background:"true",layout:"total, sizes, prev, pager, next, jumper",total:f(fe),onSizeChange:ce,onCurrentChange:ge},null,8,["current-page","page-size","total"])])])}}},[["__scopeId","data-v-f609e2e9"]]);export{se as default};
|