2 lines
6.3 KiB
JavaScript
2 lines
6.3 KiB
JavaScript
|
import{Q as e,_ as l,r as a,I as t,a5 as s,a6 as i,a7 as r,d,o as n,c as o,l as m,e as u,w as p,f,V as g,W as v,k as y,n as c,A as _,J as b}from"./index.e5c8b0d6.js";function x(l){return e({url:"/bh/gjsjhzdmcckxx",method:"get",params:l})}const w={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={class:"Bottom"},$=l({__name:"index",setup(l){var $=localStorage.getItem("deptName")||"青岛西海岸新区";const ee=a(),le=t({time:[{required:!1,message:"Please input Activity name",trigger:"blur"}],msCode:[{required:!1,message:"Please input Activity name",trigger:"blur"}]});let ae=a({time:"",msCode:""}),te=a([]),se=a([]),ie=a(1),re=a(20),de=a(0);function ne(e){re.value=e,ie.value=1}function oe(e){ie.value=e}function me(){ae.value.time="",ae.value.msCode="",ie.value=1,re.value=20}return s((()=>{let e={};ae.value.time&&(e.startTime=i(ae.value.time[0]).format("YYYY-MM-DD"),e.endTime=i(ae.value.time[1]).format("YYYY-MM-DD")),e.msCode=ae.value.msCode,e.pageNum=ie.value,e.pageSize=re.value,x(e).then((e=>{se.value=e.rows,de.value=e.total}))})),r((async()=>{const l=await(a={divisions:$},e({url:"/bh/cxzdmchzdh",method:"get",params:a}));var a;let t={};ae.value.time&&(t.startTime=i(ae.value.time[0]).format("YYYY-MM-DD"),t.endTime=i(ae.value.time[1]).format("YYYY-MM-DD")),t.msCode=ae.value.msCode,t.pageNum=ie.value,t.pageSize=re.value;const s=await x(t);200==l.code&&(te.value=l.data.map((e=>({value:e.mscode,label:e.msname})))),200==s.code&&(de.value=s.total,se.value=s.rows)})),(e,l)=>{const a=d("el-date-picker"),t=d("el-form-item"),s=d("el-option"),r=d("el-select"),$=d("el-button"),ue=d("el-form"),pe=d("el-table-column"),fe=d("el-table"),ge=d("el-pagination");return n(),o("div",w,[m("div",h,[u(ue,{ref_key:"ruleFormRef",ref:ee,rules:le,model:f(ae),"label-width":"auto",style:{"max-width":"100%"},inline:!0,"label-position":"left"},{default:p((()=>[u(t,{label:"日期:",prop:"time"},{default:p((()=>[u(a,{modelValue:f(ae).time,"onUpdate:modelValue":l[0]||(l[0]=e=>f(ae).time=e),type:"daterange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",size:e.size},null,8,["modelValue","size"])])),_:1}),u(t,{label:"站点:",prop:"msCode"},{default:p((()=>[u(r,{modelValue:f(ae).msCode,"onUpdate:modelValue":l[1]||(l[1]=e=>f(ae).msCode=e),placeholder:"请选择",size:"large",style:{width:"240px"}},{default:p((()=>[u(s,{key:"全部",label:"全部",value:""}),(n(!0),o(g,null,v(f(te),(e=>(n(),y(s,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),u(t,null,{default:p((()=>[u($,{type:"primary",onClick:l[2]||(l[2]=e=>(async e=>{e&&await e.validate(((e,l)=>{if(e){let e={};ae.value.time&&(e.startTime=i(ae.value.time[0]).format("YYYY-MM-DD"),e.endTime=i(ae.value.time[1]).format("YYYY-MM-DD")),e.msCode=ae.value.msCode,e.pageNum=ie.value,e.pageSize=re.value,x(e).then((e=>{se.value=e.rows}))}}))})(ee.value)
|