GasWell-front/dist/assets/index-BEb8PyCV.js

2 lines
2.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* empty css */import{d as B,r as D,b as d,o as I,a4 as y,c as C,e as l,h as t,i,k as n,l as N,_ as P}from"./index-CV-n4caa.js";const M={class:"TableBoxPadding"},W={class:"table-header TableMarginBottom"},Y={class:"TableFrom"},z={class:"formLine"},R={style:{"margin-top":"7px"}},S={class:"Table"},U={class:"example-pagination-block"},F=B({__name:"index",setup(L){const a=D({gasWellName:"",startTime:"",endTime:"",deviceId:""});d();const u=d(),_=d([]);d(!1),I(()=>{c({currentPage:1,pageSize:10})});const m=d(),b=o=>{a.startTime=o[0],a.endTime=o[1]},v=o=>{const e=new Date;return o.getTime()>e.getTime()},c=async o=>{let e=await y(o);e.code===200&&(_.value=e.data.records,u.value=e.total)},f=(o,e)=>{c({currentPage:o,pageSize:e,...a})},h=async()=>{c({currentPage:1,pageSize:10,...a})},w=()=>{a.gasWellName="",a.startTime="",a.endTime="",a.deviceId="",m.value="",c({currentPage:1,pageSize:10})};return(o,e)=>{const g=n("el-input"),p=n("el-form-item"),T=n("el-date-picker"),V=n("el-form"),r=n("el-table-column"),x=n("el-table"),k=n("el-pagination");return N(),C("view",M,[l("view",W,[e[3]||(e[3]=l("view",{class:"TableHeaderTitle TableMarginBottom"},[l("text",null,"提醒记录")],-1)),l("view",Y,[l("view",z,[t(V,{inline:!0,model:a,class:"demo-form-inline"},{default:i(()=>[t(p,{label:"气井名称:"},{default:i(()=>[t(g,{modelValue:a.gasWellName,"onUpdate:modelValue":e[0]||(e[0]=s=>a.gasWellName=s),placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1}),t(p,{label:"设备ID"},{default:i(()=>[t(g,{modelValue:a.deviceId,"onUpdate:modelValue":e[1]||(e[1]=s=>a.deviceId=s),placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1}),l("view",R,[t(p,{label:"时间范围:"},{default:i(()=>[t(T,{modelValue:m.value,"onUpdate:modelValue":e[2]||(e[2]=s=>m.value=s),clearable:!1,type:"daterange","range-separator":"到","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD hh:mm:ss ",onChange:b,"disabled-date":v},null,8,["modelValue"])]),_:1})])]),_:1},8,["model"])]),l("view",{class:"FormButton"},[l("button",{class:"Button",onClick:h},"搜索"),l("button",{class:"ButtonInfo",onClick:w},"重置")])])]),l("view",S,[t(x,{"header-cell-style":{background:"#eef1f6"},data:_.value,style:{width:"100%"},height:"500"},{default:i(()=>[t(r,{prop:"deviceId",label:"设备编码",width:"220"}),t(r,{prop:"gasWell.name",label:"所属气井",width:"220"}),t(r,{prop:"content","show-overflow-tooltip":"",label:"提醒信息",width:"500"}),t(r,{prop:"createTime",label:"提醒时间",width:"300"})]),_:1},8,["data"]),l("div",U,[t(k,{onChange:f,total:u.value},null,8,["total"])])])])}}}),j=P(F,[["__scopeId","data-v-bc96be27"]]);export{j as default};