1 |
- import{b as e,f as l,g as a,h as t,j as n,w as u,X as o,Y as s,o as d,F as i,v as p,i as v,Z as r,y as c,_ as m,$ as g,a0 as b,m as w,a1 as h,a2 as x,a3 as f,a4 as y,a5 as _,c as C}from"./vendor.fceb02b1.js";/* empty css *//* empty css *//* empty css */import{s as V}from"./index.e2e9e653.js";const $={class:"bg-white py-[10px] px-[10px] relative"},k={class:"pl-[20px] flex items-center h-[80px] relative mb-[20px] shadow rounded-[6px] shadow-blue-500"},H=c("查询"),z={class:"relative shadow rounded-[6px] shadow-blue-500 px-[10px] pt-[20px] pb-[10px]"},T={__name:"index",setup(c){const T=e(window.innerHeight-260+"px"),U=e(window.innerHeight-260+"px"),j=e(window.innerHeight-260+"px"),I=e([]),D=e(""),M=e([new Date(2023,5,1),new Date(2023,5,1)]),Y=e(),E=async()=>{console.log("gb",D.value),console.log("gb",S.value);const e=await V.get(`/meterinfo/calculating?stationId=${J.value}&windId=${D.value}${"all"===S.value?"":"&meterType="+S.value}${"all"===K.value?"":"&meterClass="+K.value}${"all"===P.value?"":"&name="+P.value}&startTime=${new Date(M.value[0]).getTime()}&endTime=${new Date(M.value[1]).getTime()}&page=${X.value}&perPage=${q.value}`);console.log("66",e),e.data.calculating.forEach((e=>{e.date=e.date.slice(0,10),e.rdl=e.rdl.toFixed(4)})),Y.value=e.data.calculating,W.value=e.data.totalItems},F=e([]),S=e("all"),Z=e([]),K=e("all"),L=e([]),P=e("all"),W=e();let X=e(1),q=e(19);const A=e=>{q.value=e,E()},B=e=>{X.value=e,E()},G=e([]),J=e();return l((()=>{j.value=window.innerHeight-260+"px",U.value=window.innerHeight-260+"px",T.value=window.innerHeight-260+"px",window.addEventListener("resize",(()=>{j.value=window.innerHeight-260+"px",U.value=window.innerHeight-260+"px",T.value=window.innerHeight-260+"px"})),(async()=>{const e=await V.get("/meter/allStation");console.log(e),G.value=e.data})()})),(e,l)=>{const c=m,T=g,U=o,j=b,N=w,O=h,Q=x,R=f,ee=y,le=_,ae=s;return d(),a("div",$,[t("div",k,[n(U,{label:"场站类型",class:"!mb-0"},{default:u((()=>[n(T,{modelValue:J.value,"onUpdate:modelValue":l[0]||(l[0]=e=>J.value=e),class:"w-[150px]",onChange:l[1]||(l[1]=e=>(async()=>{const e=await V.get(`/meter/infoall?stationId=${J.value}`);console.log(e),I.value=e.data.fdc,K.value="all",P.value="all"})(J.value)),placeholder:"请选择","popper-class":"select"},{default:u((()=>[(d(!0),a(i,null,p(G.value,(e=>(d(),C(c,{key:e.nemCode,value:e.nemCode,label:e.name},null,8,["value","label"])))),128))])),_:1},8,["modelValue"])])),_:1}),n(U,{label:"场站",class:"!mb-0 ml-3"},{default:u((()=>[n(T,{modelValue:D.value,"onUpdate:modelValue":l[2]||(l[2]=e=>D.value=e),class:"w-[150px]",onChange:l[3]||(l[3]=e=>(async()=>{console.log("123",D.value);const e=await V.get(`/meter/getMeterTypeCalculating?windId=${D.value}`);console.log(e),F.value=e.data.type,S.value="all",K.value="all",P.value="all"})(D.value)),clearable:"",placeholder:"请选择","popper-class":"select"},{default:u((()=>[(d(!0),a(i,null,p(I.value,(e=>(d(),C(c,{key:e.nemCode,value:e.nemCode,label:e.name},null,8,["value","label"])))),128))])),_:1},8,["modelValue"])])),_:1}),n(U,{label:"时间",class:"!mb-0 ml-3"},{default:u((()=>[n(j,{modelValue:M.value,"onUpdate:modelValue":l[4]||(l[4]=e=>M.value=e),type:"daterange","start-placeholder":"开始","end-placeholder":"结束",format:"YYYY-MM-DD"},null,8,["modelValue"])])),_:1}),n(U,{class:"!mb-0 ml-3"},{default:u((()=>[n(N,{type:"primary",onClick:E},{default:u((()=>[H])),_:1})])),_:1})]),t("div",z,[n(ae,{gutter:10},{default:u((()=>[n(O,{span:4},{default:u((()=>[t("div",null,[n(U,{label:"类型",class:"!mb-0 ml-2"},{default:u((()=>[n(T,{modelValue:S.value,"onUpdate:modelValue":l[5]||(l[5]=e=>S.value=e),class:"w-[150px]",onChange:l[6]||(l[6]=e=>(async()=>{const e=await V.get(`/meter/getMeterTypeCalculating?windId=${D.value}&type=${S.value}`);console.log(e),Z.value=e.data.type,K.value="all",P.value="all"})(S.value)),placeholder:"请选择","popper-class":"select"},{default:u((()=>[n(c,{label:"全部",value:"all"}),(d(!0),a(i,null,p(F.value,(e=>(d(),C(c,{key:e.index,value:e.name,label:e.name},null,8,["value","label"])))),128))])),_:1},8,["modelValue"])])),_:1}),n(U,{label:"分类",class:"mt-5 ml-2"},{default:u((()=>[n(T,{modelValue:K.value,"onUpdate:modelValue":l[7]||(l[7]=e=>K.value=e),class:"w-[150px]",onChange:l[8]||(l[8]=e=>(async()=>{const e=await V.get(`/meter/getMeterTypeCalculating?windId=${D.value}&type=${S.value}&meterClass=${K.value}`);console.log("555",e),L.value=e.data.type,P.value="all"})(K.value)),placeholder:"请选择","popper-class":"select"},{default:u((()=>[n(c,{label:"全部",value:"all"}),(d(!0),a(i,null,p(Z.value,(e=>(d(),C(c,{key:e.index,value:e.name,label:e.name},null,8,["value","label"])))),128))])),_:1},8,["modelValue"])])),_:1}),n(U,{label:"名称",class:"mt-5 ml-2"},{default:u((()=>[n(T,{modelValue:P.value,"onUpdate:modelValue":l[9]||(l[9]=e=>P.value=e),class:"w-[150px]",onChange:l[10]||(l[10]=l=>e.ChangZhanChange3(P.value)),placeholder:"请选择","popper-class":"select"},{default:u((()=>[n(c,{label:"全部",value:"all"}),(d(!0),a(i,null,p(L.value,(e=>(d(),C(c,{key:e.index,value:e.name,label:e.name},null,8,["value","label"])))),128))])),_:1},8,["modelValue"])])),_:1})])])),_:1}),n(O,{span:20},{default:u((()=>[t("div",null,[n(ee,{"max-height":"650px"},{default:u((()=>[n(R,{data:Y.value,height:"650",style:{width:"100%"},border:!0},{default:u((()=>[n(Q,{prop:"date",label:"时间",align:"center",width:"250",resizable:""}),n(Q,{prop:"name",label:"指标类型",align:"center",width:"250"}),n(Q,{prop:"rdl",label:"指标数据(万KWh或%)",align:"right",width:"200"})])),_:1},8,["data"])])),_:1})]),t("div",null,[n(le,{"current-page":v(X),"onUpdate:current-page":l[11]||(l[11]=e=>r(X)?X.value=e:X=e),"page-size":v(q),"onUpdate:page-size":l[12]||(l[12]=e=>r(q)?q.value=e:q=e),"page-sizes":[19,30,50,100],small:e.small,disabled:e.disabled,background:e.background,layout:"total, sizes, prev, pager, next, jumper",total:W.value,onSizeChange:A,onCurrentChange:B},null,8,["current-page","page-size","small","disabled","background","total"])])])),_:1})])),_:1})])])}}};export default T;
|