Agriculture-front-end/dist/assets/index.19fbc859.js

2 lines
7.1 KiB
JavaScript
Raw Normal View History

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