Commit 05d515db authored by jiaxu.yan's avatar jiaxu.yan

Merge branch 'master' of gitee.com:tj-wang-yahui/AMS_HeatSys_Vue_V10

# Conflicts:
#	node_modules/.vite/deps/_metadata.json
#	node_modules/.vite/deps/element-plus.js
#	node_modules/.vite/deps/element-plus.js.map
#	public/config.js
#	src/components/Remote/HolidayControl.vue
#	src/components/Remote/NightControl.vue
#	src/components/Remote/TransferRegControl.vue
#	src/components/Remote/TransferStatusControl.vue
#	src/views/RemotePage/TransControlPage.vue
parents a15b182e 83f9beae
import{_ as c,c as e,e as p,f as _,j as t,w as o,p as u}from"./index-JHU7h98a.js";const i={name:""};function d(l,n,m,f,x,$){const r=e("el-button"),s=e("el-result"),a=e("el-col");return p(),_("div",null,[t(a,null,{default:o(()=>[t(s,{icon:"error",title:"404","sub-title":"页面不存在",style:{"padding-top":"150px"}},{extra:o(()=>[t(r,{type:"primary",onClick:n[0]||(n[0]=b=>l.$router.push("/"))},{default:o(()=>[u(" 返回首页 ")]),_:1})]),_:1})]),_:1})])}const v=c(i,[["render",d]]);export{v as default};
.moduleCard[data-v-2ccceebc]{width:auto;overflow:auto;padding:0}.moduleCard[data-v-2ccceebc] .el-card__body{padding:0}.pagination[data-v-2ccceebc]{padding:4px;margin-left:20px;height:30px;vertical-align:middle}[data-v-2ccceebc] .el-table__body tr:hover>td{background:linear-gradient(to top,#00c6ff,#fff)!important}[data-v-2ccceebc] .el-table__body tr.current-row>td{background-color:#92cbf1!important}.card-contianer[data-v-2ccceebc]{width:auto;height:70px}.card-contianer .div-header[data-v-2ccceebc]{width:100%;display:flex;margin:20px}.el-form-item[data-v-2ccceebc]{margin-top:-20px;margin-right:30px}.el-tag--mini[data-v-2ccceebc]{height:21px!important}.el-cascader .el-input .el-input__inner[data-v-2ccceebc]:focus,.el-cascader .el-input.is-focus .el-input__inner[data-v-2ccceebc]{height:33px}.el-cascader__tags[data-v-2ccceebc]{display:inline-flex;margin-right:10px;flex-wrap:nowrap}
import{d as ie,r as f,b as U,s as k,l as G,o as de,a as ce,c as p,z as ue,e as R,f as pe,j as n,w as s,i as fe,u as B,p as j,m as me,h as ge,C as ve,F as he,_ as be}from"./index-JHU7h98a.js";import{z as H}from"./zh-cn-CHEiFvXs.js";import{g as _e}from"./utils-D2jWEAG0.js";const Ie={class:"div-header"},xe=ie({__name:"AlarmInfoPage",setup(ye){const D=f(1);var g=f(30);const O=f(!1),q=f(!1),A=f(),d=U([]),L=f("TransExport"),v=f([]),V=f(500),S=f(),h=f(!0),m=U({}),y=f("GetTransAlarmData");J();function J(){var a=k.getters.getEnterprise();a&&(S.value=a[0].enterpriseId)}const K={multiple:!0,emitPath:!1};function z(){V.value=window.innerHeight-232}function W({order:a,prop:e}){!a||m[e]===a?m[e]=null:m[e]=a;let l="",t="",o="";for(const c in m)m[c]=="ascending"?o="ASC":m[c]=="descending"&&(o="DESC"),c==="name"?l="UnitName":c==="alarmDate"&&(l="alarmDate"),t===""?t=t+l+" "+o:t=t+","+l+" "+o,r.sort=t;E()}function X({column:a}){m[a.property]&&(a.order=m[a.property])}for(var b=new Date,P=b.getFullYear(),_=0,i=[b.getMonth()+1,b.getDate(),b.getHours(),b.getMinutes(),b.getSeconds()],I=0;I<i.length;I++)i[I]>=1&&i[I]<=9&&(i[I]="0"+i[I]);_=i[1]-1,_>=1&&_<=9&&(_="0"+_);var C=sessionStorage.getItem("DeviceQueryStart");console.log(!!C),C&&(C=P+"-"+i[0]+"-"+_+" "+i[2]+":"+i[3]+":"+i[4],sessionStorage.setItem("DeviceQueryStart",C));var T=sessionStorage.getItem("DeviceQueryEnd");T&&(T=P+"-"+i[0]+"-"+i[1]+" "+i[2]+":"+i[3]+":"+i[4],sessionStorage.setItem("DeviceQueryEnd",T));const r=U({Id:[],startTime:C,endTime:T,start:0,count:30,sort:" alarmDate"});M(),E();function E(){sessionStorage.setItem("DeviceQueryStart",r.startTime),sessionStorage.setItem("DeviceQueryEnd",r.endTime),Y()}function Z(){y.value==="GetPipeAlarmData"?(ee(),L.value="PipeExport"):y.value==="GetBoilerAlarmData"?($(),L.value="BoilerExport"):(M(),L.value="TransExport"),Y()}function $(){h.value=!0,v.length=0,r.Id.length=0,d.length=0;var a=k.getters.getEnterprise();a&&(a.forEach(e=>{e.enterpriseId===S.value&&(e.enterpriseId==="9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()?e.serviceCenterList.forEach(l=>{l.supplyList.forEach(t=>{t.boilerList.forEach(o=>{d.push({value:o.boilerId,label:o.description})})})}):e.supplyList.forEach(l=>{l.boilerList.forEach(t=>{d.push({value:t.boilerId,label:t.description})})}))}),d.forEach(e=>{r.Id.push(e.value)}))}function ee(){h.value=!0,v.value.length=0,r.Id.length=0;var a=k.getters.getEnterprise();a&&(d.length=0,a.forEach(e=>{e.enterpriseId===S.value&&(e.enterpriseId==="9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()?e.serviceCenterList.forEach(l=>{l.supplyList.forEach(t=>{d.push({value:t.pipeInfo.pipeId,label:t.pipeInfo.pipeName})})}):e.supplyList.forEach(l=>{d.push({value:l.pipeInfo.pipeId,label:l.pipeInfo.pipeName})}))})),console.log(d),d.forEach(e=>{r.Id.push(e.value)}),console.log(r.Id)}function M(){h.value=!0,v.value.length=0,d.length=0,r.Id.length=0;var a=k.getters.getEnterprise();a&&a.forEach(e=>{e.enterpriseId===S.value&&(e.enterpriseId==="9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()?e.serviceCenterList.forEach(l=>{let t=[];l.supplyList.forEach(o=>{let c=[];o.transferList.forEach(w=>{c.push({value:w.unitId,label:w.unitName})}),t.push({children:c,label:o.supplyName})}),d.push({children:t,label:l.serviceCenterName})}):e.supplyList.forEach(l=>{let t=[];l.transferList.forEach(o=>{t.push({value:o.unitId,label:o.unitName})}),d.push({children:t,label:l.supplyName})}))}),r.Id.push(d[0].children[0].children[0].value)}function Y(){h.value=!0,D.value==1?(r.start=0,r.count=g.value):(r.start=(D.value-1)*g.value+1,r.count=g.value-1),G.post("/api/alarm/"+y.value,r).then(a=>{console.log(a.data),console.log(r),a.data!==null&&(v.value=a.data.dataInfoList,A.value=a.data.rowCount),(a.data===null||r.Id.length<1)&&(v.value=null,A.value=0),h.value=!1})}function te({row:a,column:e,rowIndex:l,columnIndex:t}){let o={};return o["padding-left"]="0px",o["padding-right"]="0px",o.borderColor="#97d5fd",o.padding="0px",o}function ae({row:a,column:e,rowIndex:l,columnIndex:t}){let o;var c="d9f1ff";o={"background-color":"#"+c,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"};var c="d9f1ff";return o={"background-color":"#"+c,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"},o}async function le(){if(v.value!==null){sessionStorage.setItem("DeviceQueryStart",r.startTime),sessionStorage.setItem("DeviceQueryEnd",r.endTime),r.pageIndex=0,r.pageCount=1e5;var a=_e("报警信息历史数据");await G.post("/api/alarm/"+L.value,r,"正在导出数据....",{responseType:"blob"}).then(e=>{try{const l=new Blob([e]);if("download"in document.createElement("a")){const t=document.createElement("a");t.download=a,t.style.display="none",t.href=URL.createObjectURL(l),document.body.appendChild(t),t.click(),URL.revokeObjectURL(t.href),document.body.removeChild(t)}else navigator.msSaveBlob(l,a)}catch(l){console.log(l)}})}}return de(()=>{z(),window.addEventListener("resize",z)}),ce(()=>{window.removeEventListener("resize",z)}),(a,e)=>{const l=p("el-option"),t=p("el-select"),o=p("el-form-item"),c=p("el-cascader"),w=p("el-date-picker"),N=p("el-config-provider"),F=p("el-button"),Q=p("el-card"),x=p("el-table-column"),oe=p("el-table"),re=p("el-pagination"),ne=p("el-footer"),se=ue("loading");return R(),pe(he,null,[n(Q,{class:"card-contianer"},{default:s(()=>[fe("div",Ie,[n(o,{label:"查询类型:"},{default:s(()=>[n(t,{modelValue:y.value,"onUpdate:modelValue":e[0]||(e[0]=u=>y.value=u),placeholder:"请选择",style:{width:"150px"},onChange:Z},{default:s(()=>[n(l,{label:"换热机组",value:"GetTransAlarmData"}),n(l,{label:"锅炉",value:"GetBoilerAlarmData"}),n(l,{label:"总管",value:"GetPipeAlarmData"})]),_:1},8,["modelValue"])]),_:1}),n(o,{label:"设备:"},{default:s(()=>[n(c,{options:d,modelValue:r.Id,"onUpdate:modelValue":e[1]||(e[1]=u=>r.Id=u),props:K,"collapse-tags":"",clearable:"","show-all-levels":!1,placeholder:"请选择",style:{"min-width":"210px"}},null,8,["options","modelValue"])]),_:1}),n(o,{label:"开始时间:"},{default:s(()=>[n(N,{locale:B(H)},{default:s(()=>[n(w,{modelValue:r.startTime,"onUpdate:modelValue":e[2]||(e[2]=u=>r.startTime=u),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"选择开始时间",style:{"min-width":"180px"}},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1}),n(o,{label:"结束时间:"},{default:s(()=>[n(N,{locale:B(H)},{default:s(()=>[n(w,{modelValue:r.endTime,"onUpdate:modelValue":e[3]||(e[3]=u=>r.endTime=u),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"选择结束时间",style:{"min-width":"180px"}},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1}),n(o,null,{default:s(()=>[n(F,{type:"primary",onClick:E,style:{"min-width":"70px"}},{default:s(()=>[j("查询")]),_:1})]),_:1}),n(o,null,{default:s(()=>[n(F,{type:"primary",onClick:le,style:{"min-width":"70px"}},{default:s(()=>[j("导出表格")]),_:1})]),_:1})])]),_:1}),n(Q,{class:"moduleCard",height:V.value},{default:s(()=>[me((R(),ge(oe,{data:v.value,height:V.value,"cell-style":te,id:"out-table",border:"","highlight-current-row":"","header-cell-style":ae,onSortChange:W,"header-cell-class-name":X},{default:s(()=>[n(x,{prop:"index",label:"编号",sortable:!1,width:"80px",fixed:""}),n(x,{prop:"name",label:"设施名称",sortable:!0,width:"200px",fixed:""}),n(x,{prop:"cnName",label:"报警类型",sortable:!1,width:"200px",fixed:""}),n(x,{prop:"alarmDate",label:"报警时间",sortable:!0,width:"200px",fixed:""}),n(x,{prop:"alarmMessage",label:"报警信息",sortable:!1,width:"700px",fixed:""}),n(x,{prop:"alarmPlan",label:"报警预案",sortable:!1,fixed:""})]),_:1},8,["data","height"])),[[se,h.value]])]),_:1},8,["height"]),n(ne,{style:{height:"8px"}},{default:s(()=>[n(N,{locale:B(H)},{default:s(()=>[n(re,{"current-page":D.value,"onUpdate:currentPage":e[4]||(e[4]=u=>D.value=u),"page-size":B(g),"onUpdate:pageSize":e[5]||(e[5]=u=>ve(g)?g.value=u:g=u),"page-sizes":[30,40,50,100,200,300],small:!0,disabled:O.value,background:q.value,layout:"total, sizes, prev, pager, next, jumper",total:A.value,onSizeChange:E,onCurrentChange:E,class:"pagination"},null,8,["current-page","page-size","disabled","background","total"])]),_:1},8,["locale"])]),_:1})],64)}}}),De=be(xe,[["__scopeId","data-v-2ccceebc"]]);export{De as default};
import{d as Z,r as u,b as M,s as L,l as $,o as ee,a as te,c as p,z as ae,e as y,f as le,j as o,w as d,i as C,p as re,m as oe,h as E,B as A,F as se,_ as ne}from"./index-JHU7h98a.js";const ie={class:"div-header"},ce={class:"div-form-img"},de={class:"div-form-img"},ue={class:"div-form-img"},pe={class:"div-form-img"},fe=Z({__name:"AlarmStatusPage",setup(he){u(1),u(30),u(!1),u(!1);const i=M([]),m=u([]),B=u(500),I=u(),v=u(!0),T=M({}),w=u("GetTransAlarmStatusData");U();function U(){var e=L.getters.getEnterprise();e&&(I.value=e[0].enterpriseId)}const z={multiple:!0,emitPath:!1};function k(){B.value=window.innerHeight-195}function j({column:e}){T[e.property]&&(e.order=T[e.property])}for(var _=new Date,F=_.getFullYear(),b=0,n=[_.getMonth()+1,_.getDate(),_.getHours(),_.getMinutes(),_.getSeconds()],x=0;x<n.length;x++)n[x]>=1&&n[x]<=9&&(n[x]="0"+n[x]);b=n[1]-1,b>=1&&b<=9&&(b="0"+b);var N=sessionStorage.getItem("DeviceQueryStart");N||(N=F+"-"+n[0]+"-"+b+" "+n[2]+":"+n[3]+":"+n[4],sessionStorage.setItem("DeviceQueryStart",N));var V=sessionStorage.getItem("DeviceQueryEnd");V||(V=F+"-"+n[0]+"-"+n[1]+" "+n[2]+":"+n[3]+":"+n[4],sessionStorage.setItem("DeviceQueryEnd",V));const c=u([]);H(),G();function G(){sessionStorage.setItem("DeviceQueryStart",c.startTime),sessionStorage.setItem("DeviceQueryEnd",c.endTime),P()}function R(){w.value==="GetPipeAlarmStatusData"?q():w.value==="GetBoilerAlarmStatusData"?Y():H(),P()}function Y(){v.value=!0,m.length=0,c.value=[],i.length=0;var e=L.getters.getEnterprise();e&&(e.forEach(t=>{t.enterpriseId===I.value&&(t.enterpriseId==="9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()?t.serviceCenterList.forEach(a=>{a.supplyList.forEach(s=>{s.boilerList.forEach(r=>{i.push({value:r.boilerId,label:r.description})})})}):t.supplyList.forEach(a=>{a.boilerList.forEach(s=>{i.push({value:s.boilerId,label:s.description})})}))}),i.forEach(t=>{c.value.push(t.value)}))}function q(){v.value=!0,m.length=0,c.value=[];var e=L.getters.getEnterprise();e&&(i.length=0,e.forEach(t=>{t.enterpriseId===I.value&&(t.enterpriseId==="9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()?t.serviceCenterList.forEach(a=>{a.supplyList.forEach(s=>{i.push({value:s.pipeInfo.pipeId,label:s.pipeInfo.pipeName})})}):t.supplyList.forEach(a=>{i.push({value:a.pipeInfo.pipeId,label:a.pipeInfo.pipeName})}))})),i.forEach(t=>{c.push(t.value)}),console.log(c.value)}function H(){v.value=!0,m.length=0,i.length=0,c.length=0;var e=L.getters.getEnterprise();e&&(console.log(e),e.forEach(t=>{t.enterpriseId===I.value&&(t.enterpriseId==="9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()?t.serviceCenterList.forEach(a=>{let s=[];a.supplyList.forEach(r=>{let h=[];r.transferList.forEach(D=>{h.push({value:D.unitId,label:D.unitName})}),s.push({children:h,label:r.supplyName})}),i.push({children:s,label:a.serviceCenterName})}):t.supplyList.forEach(a=>{let s=[];a.transferList.forEach(r=>{s.push({value:r.unitId,label:r.unitName})}),i.push({children:s,label:a.supplyName})}))})),c.value.push(i[0].children[0].children[0].value)}function P(){v.value=!0,$.post("/api/alarm/"+w.value,c.value).then(e=>{console.log(e.data),e.data!==null&&(m.value=e.data),e.data===null&&(m.value=null),v.value=!1})}function J({row:e,column:t,rowIndex:a,columnIndex:s}){let r={};return r["padding-left"]="px",r["padding-right"]="0px",r.borderColor="#97d5fd",r.padding="5px",r}function K({row:e,column:t,rowIndex:a,columnIndex:s}){let r;var h="d9f1ff";r={"background-color":"#"+h,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"};var h="d9f1ff";return r={"background-color":"#"+h,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"},r}function O(){console.log(c.value)}function f(e,t){var a=null;switch(e.row[t]){case!0:a=new URL("/imgs/status/status_alarm.png",import.meta.url).href;break}return a}return ee(()=>{k(),window.addEventListener("resize",k)}),te(()=>{window.removeEventListener("resize",k)}),(e,t)=>{const a=p("el-option"),s=p("el-select"),r=p("el-form-item"),h=p("el-cascader"),D=p("el-button"),Q=p("el-card"),g=p("el-table-column"),S=p("el-image"),W=p("el-table"),X=ae("loading");return y(),le(se,null,[o(Q,{class:"card-contianer"},{default:d(()=>[C("div",ie,[o(r,{label:"查询类型:"},{default:d(()=>[o(s,{modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=l=>w.value=l),placeholder:"请选择",style:{width:"150px"},onChange:R},{default:d(()=>[o(a,{label:"换热机组",value:"GetTransAlarmStatusData"}),o(a,{label:"锅炉",value:"GetBoilerAlarmStatusData"}),o(a,{label:"总管",value:"GetPipeAlarmStatusData"})]),_:1},8,["modelValue"])]),_:1}),o(r,{label:"设备:"},{default:d(()=>[o(h,{options:i,modelValue:c.value,"onUpdate:modelValue":t[1]||(t[1]=l=>c.value=l),props:z,"collapse-tags":"",clearable:"","show-all-levels":!1,placeholder:"请选择",style:{"min-width":"210px"},onChange:O},null,8,["options","modelValue"])]),_:1}),o(r,null,{default:d(()=>[o(D,{type:"primary",onClick:G,style:{"min-width":"70px"}},{default:d(()=>[re("查询")]),_:1})]),_:1})])]),_:1}),o(Q,{class:"moduleCard",height:B.value},{default:d(()=>[oe((y(),E(W,{data:m.value,"row-class-name":e.rowClassName,height:B.value,"cell-style":J,id:"out-table",border:"","highlight-current-row":"","header-cell-style":K,"header-cell-class-name":j},{default:d(()=>[o(g,{prop:"index",label:"编号",sortable:!1,width:"100px",fixed:""}),o(g,{prop:"name",label:"设施名称",sortable:!1,width:"250px",fixed:""}),o(g,{prop:"cnName",label:"报警类型",sortable:!1,fixed:""}),o(g,{prop:"gatherTime",label:"报警时间",sortable:!1,width:"200px",fixed:""}),o(g,{prop:"topMost",label:"上上限",sortable:!1,width:"200px",fixed:""},{default:d(l=>[C("div",ce,[f(l,l.column.property)?(y(),E(S,{key:0,class:"img-center",style:{width:"20px",height:"20px"},src:f(l,l.column.property),fit:"cover"},null,8,["src"])):A("",!0)])]),_:1}),o(g,{prop:"upper",label:"上限",sortable:!1,width:"200px",fixed:""},{default:d(l=>[C("div",de,[f(l,l.column.property)?(y(),E(S,{key:0,class:"img-center",style:{width:"20px",height:"20px"},src:f(l,l.column.property),fit:"cover"},null,8,["src"])):A("",!0)])]),_:1}),o(g,{prop:"lower",label:"下限",sortable:!1,width:"200px",fixed:""},{default:d(l=>[C("div",ue,[f(l,l.column.property)?(y(),E(S,{key:0,class:"img-center",style:{width:"20px",height:"20px"},src:f(l,l.column.property),fit:"cover"},null,8,["src"])):A("",!0)])]),_:1}),o(g,{prop:"downMost",label:"下下限",sortable:!1,width:"200px",fixed:""},{default:d(l=>[C("div",pe,[f(l,l.column.property)?(y(),E(S,{key:0,class:"img-center",style:{width:"20px",height:"20px"},src:f(l,l.column.property),fit:"cover"},null,8,["src"])):A("",!0)])]),_:1})]),_:1},8,["data","row-class-name","height"])),[[X,v.value]])]),_:1},8,["height"])],64)}}}),me=ne(fe,[["__scopeId","data-v-35c57a87"]]);export{me as default};
.moduleCard[data-v-35c57a87]{width:auto;overflow:auto;padding:0}.moduleCard[data-v-35c57a87] .el-card__body{padding:0}.pagination[data-v-35c57a87]{padding:4px;margin-left:20px;height:30px;vertical-align:middle}[data-v-35c57a87] .el-table__body tr:hover>td{background:linear-gradient(to top,#00c6ff,#fff)!important}[data-v-35c57a87] .el-table__body tr.current-row>td{background-color:#92cbf1!important}.card-contianer[data-v-35c57a87]{width:auto;height:70px}.card-contianer .div-header[data-v-35c57a87]{width:100%;display:flex;margin:20px}.el-form-item[data-v-35c57a87]{margin-top:-20px;margin-right:30px}.el-tag--mini[data-v-35c57a87]{height:21px!important}.el-cascader .el-input .el-input__inner[data-v-35c57a87]:focus,.el-cascader .el-input.is-focus .el-input__inner[data-v-35c57a87]{height:33px}.el-cascader__tags[data-v-35c57a87]{display:inline-flex;margin-right:10px;flex-wrap:nowrap}[data-v-35c57a87] .div-form-img{display:flex;align-items:center;justify-content:center}
This diff is collapsed.
html,body{width:100%}.asmcContainer{width:100%;height:100%;overflow:auto;margin:0;padding:0}.amsArt{background-size:cover;white-space:nowrap;width:1920px;height:1080px;margin:0;padding:0;position:relative}div{margin:0;padding:0}.div_Param{border:1px solid black;background-color:#ccd1d6;opacity:.5;padding:4px;position:absolute;font-weight:900;font-size:small}
import{_ as r}from"./index-JHU7h98a.js";const e={};function t(c,o){return" 锅炉全景工艺图 "}const n=r(e,[["render",t]]);export{n as default};
import{_ as e}from"./index-JHU7h98a.js";const n={};function r(c,s){return" 生产与结算数据分析表 "}const _=e(n,[["render",r]]);export{_ as default};
import{_ as r}from"./index-JHU7h98a.js";const n={};function c(e,t){return" 年度参数管理 "}const a=r(n,[["render",c]]);export{a as default};
.contentBlock[data-v-524bb701]{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff;overflow:auto}table[data-v-524bb701],tr[data-v-524bb701],th[data-v-524bb701],td[data-v-524bb701]{font-size:14px;margin:0;padding:0}table[data-v-524bb701]{width:100%}table th[data-v-524bb701]{background-color:#dfe8f6;text-align:center;padding:5px 10px}table td[data-v-524bb701]{text-align:center;background-color:#fff;padding:5px 10px}.btngrounp[data-v-524bb701]{width:300px}.gc td[data-v-524bb701]{background-color:#a6ffa6}.gc td[data-v-524bb701]:first-child{background-color:#fff}table.botList td[data-v-524bb701]{width:33%;text-align:left;font-weight:bolder}.exlBlock[data-v-524bb701]{display:none}@media print{.printHidden[data-v-524bb701]{display:none}@page{size:auto;margin:3mm}body[data-v-524bb701],html[data-v-524bb701]{height:auto!important}}
import{_ as R,r as b,b as V,o as X,a as q,c as _,z as G,m as L,e as c,f as y,i as e,j as o,w as u,t as r,p as x,F as I,g as P,s as J,E as D,h as N,u as K,q as Q,x as W}from"./index-JHU7h98a.js";import{X as f,F as Z}from"./xlsx.min-DRjjhPmk.js";import{f as $,t as ee}from"./vue3-print-nb.es-DgOsI0Dr.js";const h=k=>(Q("data-v-524bb701"),k=k(),W(),k),le={class:"contentBlock","element-loading-background":"rgba(122, 122, 122, 0.6)"},te={class:"contentBlockInn",id:"printBlock"},oe={cellpadding:"0",cellspacing:"1",style:{"background-color":"#99bbe8"}},ae=h(()=>e("th",null,"年度",-1)),se={colspan:"2",style:{margin:"0",padding:"0","text-align":"left"}},re={cellpadding:"0",cellspacing:"0"},ne={style:{"text-align":"left"}},de=h(()=>e("th",{style:{"border-left":"#99bbe8 solid 1px","border-right":"#99bbe8 solid 1px"}}," 类型 ",-1)),ie=h(()=>e("th",{style:{"border-left":"#99bbe8 solid 1px","border-right":"#99bbe8 solid 1px"}}," 节能方式 ",-1)),ue={rowspan:"3"},pe={class:"printHidden"},ce={class:"btngrounp"},_e=h(()=>e("th",null,"供热站",-1)),be={style:{"text-align":"left"}},ye={cellpadding:"0",cellspacing:"1",class:"exlBlock",id:"exlBlock",style:{"background-color":"#99bbe8"}},fe={colspan:"3"},he={colspan:"2"},ve={colspan:"3"},Be={colspan:"6"},ge=h(()=>e("tr",null,[e("td",{rowspan:"2"},"序号"),e("td",{rowspan:"2"},"区域名称"),e("td",{rowspan:"2"},"换热站名称"),e("td",{rowspan:"2"},"年度"),e("td",{colspan:"2"},"居民(应供收费面积)"),e("td",{colspan:"2"},"大公建(应供建筑面积)"),e("td",{colspan:"2"},"小公建(应供建筑面积)"),e("td",{rowspan:"2"},"应供建筑面积"),e("td",{rowspan:"2"},"实供建筑面积C"),e("td",{rowspan:"2"},"实供收费面积D"),e("td",{rowspan:"2"},"计算面积")],-1)),xe=h(()=>e("tr",null,[e("td",null,"收费面积"),e("td",null,"停暖面积"),e("td",null,"实供建筑面积"),e("td",null,"停暖建筑面积"),e("td",null,"实供建筑面积"),e("td",null,"停暖建筑面积")],-1)),ke={__name:"AreaInfoPage",setup(k){const S=b(!1),F=b("供热站"),v=V([]),A=b(null);b([]);const C=b([]),T=b([]),Y=["2016-2017","2017-2018","2018-2019","2019-2020","2020-2021","2021-2022","2022-2023","2023-2024","2024-2025","2025-2026","2026-2027","2027-2028","2028-2029","2029-2030","2030-2031","2031-2032","2032-2033","2033-2034","2034-2035"],n=V({jurisdictionIds:[],nature:-1,energyType:-1,supplyYear:"2024-2025"}),U=ee,z={id:"printBlock",popTitle:"明日预测报表",extraHead:'<meta http-equiv="Content-Language"content="zh-cn"/>',zIndex:20002};function O(){const p=f.utils.book_new();var t=f.utils.table_to_sheet(document.getElementById("exlBlock"));const d={top:{style:"thin"},bottom:{style:"thin"},left:{style:"thin"},right:{style:"thin"}},i=f.utils.decode_range(t["!ref"]),a=Object.keys(t).filter(l=>l.indexOf("!")<0);for(let l=i.s.r;l<=i.e.r;l++)for(let B=i.s.c;B<=i.e.c;B++){const g=f.utils.encode_cell({r:l,c:B});a.indexOf(g)<0?t[g]={t:"",v:"",s:{border:d}}:t[g].s={border:d}}for(const l in t)(l==="A1"||l==="A2"||l==="B1"||l==="C1"||l==="D1"||l==="E1"||l==="F1"||l==="G1"||l==="H1"||l==="I1"||l==="J1"||l==="K1"||l==="L1"||l==="M1"||l==="N1"||t[l].v==="序号"||t[l].v==="区域名称"||t[l].v==="换热站名称"||t[l].v==="年度"||t[l].v==="居民(应供收费面积)"||t[l].v==="大公建(应供建筑面积)"||t[l].v==="小公建(应供建筑面积)"||t[l].v==="收费面积"||t[l].v==="停暖面积"||t[l].v==="实供建筑面积"||t[l].v==="停暖建筑面积"||t[l].v==="应供建筑面积"||t[l].v==="实供建筑面积C"||t[l].v==="实供收费面积D"||t[l].v==="计算面积")&&(t[l].s={alignment:{horizontal:"center",vertical:"center"},border:{bottom:{color:"#000000",style:"thin"},left:{color:"#000000",style:"thin"},right:{color:"#000000",style:"thin"},top:{color:"#000000",style:"thin"}},fill:{fgColor:{rgb:"0097d5fd"}},font:{bold:!0,family:2,size:12}});t["!cols"]=[{wch:5}],f.utils.sheet_add_aoa(t,[],{origin:"A1"}),f.utils.book_append_sheet(p,t,"面积统计报表");const E=f.write(p,{bookType:"xlsx",type:"array"}),m=new Blob([E],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"});URL.createObjectURL(m),Z.saveAs(m,"面积统计报表.xlsx"),D.success("导出成功!请稍后。。。")}function M(){var p=J.getters.getEnterprise();p&&(A.value=p[0].enterpriseId,p.forEach(t=>{t.enterpriseId===A.value&&(t.enterpriseId==="9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()?(F.value="片区",t.serviceCenterList.forEach(d=>{d.supplyList.forEach(i=>{i.jurisdictionList.forEach(a=>{v.push({value:a.jurisdictionId,lable:a.jurisdictionName})})})})):(F.value="供热站",t.supplyList.forEach(d=>{v.push({value:d.supplyId,lable:d.supplyName})})))}),v.forEach(t=>{n.jurisdictionIds.push(t.value)}))}function j(){T.value.length=0,n.jurisdictionIds.forEach(i=>{v.forEach(a=>{a.value==i&&T.value.push(a.lable)})});var p=new Date;let t=b();p.getMonth()+1<7?t=n.supplyYear.split("-")[0]:t=n.supplyYear.split("-")[1],S.value=!0;let d={jurisdictionIds:n.jurisdictionIds,supplyYear:t,nature:n.nature,energyType:n.energyType};$(d).then(i=>{i.success===!0?(C.value=i.data,C.value.forEach(a=>{a.realCostCiviled=a.realCostCiviled.toFixed(2),a.realCostSPB=a.realCostSPB.toFixed(2),a.realBuildBPB=a.realBuildBPB.toFixed(2),a.stopBuildBPB=a.stopBuildBPB.toFixed(2),a.realBuildSPB=a.realBuildSPB.toFixed(2),a.stopBuildSPB=a.stopBuildSPB.toFixed(2),a.supplyArea=a.supplyArea.toFixed(4),a.realBuild=a.realBuild.toFixed(4),a.realCost=a.realCost.toFixed(4),a.calculateArea=a.calculateArea.toFixed(4)})):D.error(i.message),S.value=!1})}return X(()=>{M(),j()}),q(()=>{}),(p,t)=>{const d=_("el-option"),i=_("el-select"),a=_("el-button"),E=_("el-checkbox"),m=_("el-checkbox-group"),l=_("el-table-column"),B=_("el-table"),g=_("el-card"),H=G("loading");return L((c(),y("div",le,[e("div",te,[o(g,{class:"card-contianer"},{default:u(()=>[e("table",oe,[e("tr",null,[ae,e("td",se,[e("table",re,[e("tr",null,[e("td",ne,[o(i,{modelValue:n.supplyYear,"onUpdate:modelValue":t[0]||(t[0]=s=>n.supplyYear=s),placeholder:"请选择年度",style:{width:"200px"}},{default:u(()=>[(c(),y(I,null,P(Y,s=>o(d,{label:s,key:s,value:s},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),de,e("td",null,[o(i,{modelValue:n.nature,"onUpdate:modelValue":t[1]||(t[1]=s=>n.nature=s),placeholder:"请选择",style:{"min-width":"130px"}},{default:u(()=>[o(d,{label:"全部",key:"-1",value:-1}),o(d,{label:"民用",key:"0",value:0}),o(d,{label:"公建",key:"1",value:1})]),_:1},8,["modelValue"])]),ie,e("td",null,[o(i,{modelValue:n.energyType,"onUpdate:modelValue":t[2]||(t[2]=s=>n.energyType=s),placeholder:"请选择",style:{"min-width":"130px"}},{default:u(()=>[o(d,{label:"全部",key:"1",value:-1}),o(d,{label:"一步节能",key:"1",value:1}),o(d,{label:"二步节能",key:"2",value:2}),o(d,{label:"三步节能",key:"3",value:3}),o(d,{label:"四步节能",key:"4",value:4})]),_:1},8,["modelValue"])])])])]),e("th",ue,[e("div",pe,[e("div",ce,[o(a,{type:"primary",onClick:j},{default:u(()=>[x("查询")]),_:1}),L((c(),N(a,{type:"primary",style:{margin:"0 0 0 10px"}},{default:u(()=>[x("打印")]),_:1})),[[K(U),z]]),o(a,{type:"primary",onClick:O,style:{margin:"0 0 0 10px"}},{default:u(()=>[x("导出")]),_:1})])])])]),e("tr",null,[_e,e("td",be,[o(m,{modelValue:n.jurisdictionIds,"onUpdate:modelValue":t[3]||(t[3]=s=>n.jurisdictionIds=s)},{default:u(()=>[(c(!0),y(I,null,P(v,(s,w)=>(c(),N(E,{key:w,label:s.value},{default:u(()=>[x(r(s.lable),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])])]),o(B,{data:C.value,"empty-text":"暂无数据",style:{width:"100%","margin-top":"10px"}},{default:u(()=>[o(l,{type:"index",width:"60",label:"序号",align:"center"}),o(l,{prop:"jurisdictionName",label:"区域名称"}),o(l,{prop:"stationName",label:"换热站名称"}),o(l,{prop:"supplyYear",label:"年度"}),o(l,{label:"居民(应供收费面积)"},{default:u(()=>[o(l,{prop:"realCostCiviled",label:"收费面积"}),o(l,{prop:"realCostSPB",label:"停暖面积"})]),_:1}),o(l,{label:"大公建(应供建筑面积)"},{default:u(()=>[o(l,{prop:"realBuildBPB",label:"实供建筑面积"}),o(l,{prop:"stopBuildBPB",label:"停暖建筑面积"})]),_:1}),o(l,{label:"小公建(应供建筑面积)"},{default:u(()=>[o(l,{prop:"realBuildSPB",label:"实供建筑面积"}),o(l,{prop:"stopBuildSPB",label:"停暖建筑面积"})]),_:1}),o(l,{prop:"supplyArea",label:"应供建筑面积"}),o(l,{prop:"realBuild",label:"实供建筑面积C"}),o(l,{prop:"realCost",label:"实供收费面积D"}),o(l,{prop:"calculateArea",label:"计算面积"})]),_:1},8,["data"])]),_:1})]),e("table",ye,[e("tr",null,[e("td",fe,"年度:"+r(n.supplyYear),1),e("td",he," 类型:"+r(n.nature==-1?"全部":"")+r(n.nature==0?"民用":"")+r(n.nature==1?"公建":""),1),e("td",ve," 节能方式:"+r(n.energyType==-1?"全部":"")+r(n.energyType==1?"一步节能":"")+r(n.energyType==2?"二步节能":"")+r(n.energyType==3?"三步节能":"")+r(n.energyType==4?"四步节能":""),1),e("td",Be,[x(" 供热站:"),(c(!0),y(I,null,P(T.value,s=>(c(),y("span",{key:s},r(s)+"    ",1))),128))])]),ge,xe,(c(!0),y(I,null,P(C.value,(s,w)=>(c(),y("tr",{key:w},[e("td",null,r(w+1),1),e("td",null,r(s.jurisdictionName),1),e("td",null,r(s.stationName),1),e("td",null,r(s.supplyYear),1),e("td",null,r(s.realCostCiviled),1),e("td",null,r(s.realCostSPB),1),e("td",null,r(s.realBuildBPB),1),e("td",null,r(s.stopBuildBPB),1),e("td",null,r(s.realBuildSPB),1),e("td",null,r(s.stopBuildSPB),1),e("td",null,r(s.supplyArea),1),e("td",null,r(s.realBuild),1),e("td",null,r(s.realCost),1),e("td",null,r(s.calculateArea),1)]))),128))])])),[[H,S.value]])}}},Ie=R(ke,[["__scopeId","data-v-524bb701"]]);export{Ie as default};
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
html,body{width:100%}.asmcContainer{width:100%;height:100%;overflow:auto;margin:0;padding:0}.amsArt{background-size:cover;white-space:nowrap;width:1920px;height:1080px;margin:0;padding:0;position:relative}div{margin:0;padding:0}.div_Param{border:1px solid black;background-color:#ccd1d6;opacity:.5;padding:4px;position:absolute;font-weight:900}
import{_ as o}from"./BoilerArt.vue_vue_type_style_index_1_lang-B8zhR0ug.js";import"./Pumpx-84eUMtg2.js";import"./index-JHU7h98a.js";import"./utils-D2jWEAG0.js";export{o as default};
import{_ as E}from"./BoilerArt.vue_vue_type_style_index_1_lang-B8zhR0ug.js";import{d as S,b as V,r as d,s as A,c as r,e as m,f as g,i as p,j as i,w as _,p as h,F as b,g as I,h as v}from"./index-JHU7h98a.js";import"./Pumpx-84eUMtg2.js";import"./utils-D2jWEAG0.js";const F={style:{position:"absolute",height:"40px","z-index":"999","background-color":"aliceblue",width:"100%"}},P=p("div",{style:{position:"absolute","margin-top":"-29px","margin-left":"490px"}}," 锅炉: ",-1),T={style:{position:"absolute","margin-top":"-38px",padding:"5px","margin-left":"555px"}},$={style:{position:"absolute","margin-top":"-32px","margin-left":"1100px"}},N=p("div",{style:{height:"40px"}},null,-1),W=S({__name:"BoilerArtworkPage",setup(U){const u=V([]),l=d(),a=d(60),f=d(1),y=d();x();function x(){var o=A.getters.getEnterprise();o&&(y.value=o[0].enterpriseId,o.forEach(e=>{e.enterpriseId===y.value&&(e.enterpriseId==="9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()?e.serviceCenterList.forEach(t=>{t.supplyList.forEach(n=>{n.boilerList.forEach(c=>{u.push({value:c.boilerId,label:c.description})})})}):e.supplyList.forEach(t=>{t.boilerList.forEach(n=>{u.push({value:n.boilerId,label:n.description})})}))}),l.value=u[0].value)}function w(){const o="/BoilerArt",e={id:l.value,time:a.value},t=new URLSearchParams(e).toString();window.open(`${o}?${t}`,"_blank","toolbar=yes,location=yes,status=yes,menubar=yes,width=600,height=400,scrollbars=yes")}function C(){const o="/AllBoilerArt",e={id:l.value,time:a.value},t=new URLSearchParams(e).toString();window.open(`${o}?${t}`,"_blank","toolbar=yes,location=yes,status=yes,menubar=yes,width=600,height=400,scrollbars=yes")}function k(){f.value+=1}return(o,e)=>{const t=r("el-button"),n=r("el-option"),c=r("el-select"),L=r("el-input"),B=r("el-scrollbar");return m(),g(b,null,[p("div",F,[i(t,{style:{"margin-left":"5px","padding-left":"10px","margin-top":"5px","margin-bottom":"0px"},onClick:w,type:"primary",icon:"FullScreen"},{default:_(()=>[h("全屏")]),_:1}),i(t,{style:{"margin-left":"5px","padding-left":"10px","margin-top":"5px","margin-bottom":"0px"},onClick:C,type:"primary",icon:"FullScreen"},{default:_(()=>[h("全景工艺图")]),_:1}),P,p("div",T,[i(c,{modelValue:l.value,"onUpdate:modelValue":e[0]||(e[0]=s=>l.value=s),"collapse-tags":"",placeholder:"请选择",style:{width:"250px"}},{default:_(()=>[(m(!0),g(b,null,I(u,s=>(m(),v(n,{label:s.label,value:s.value},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),p("div",$,[h(" 刷新间隔(秒):"),i(L,{style:{width:"80px"},modelValue:a.value,"onUpdate:modelValue":e[1]||(e[1]=s=>a.value=s),type:"number",min:"3",max:"300",onChange:k},null,8,["modelValue"])])]),N,i(B,{style:{width:"1920px",height:"980px"}},{default:_(()=>[(m(),v(E,{id:l.value,key:f.value,refreshTime:a.value},null,8,["id","refreshTime"]))]),_:1})],64)}}});export{W as default};
import{_ as r}from"./index-JHU7h98a.js";const e={};function o(t,c){return" 锅炉远程控制 "}const _=r(e,[["render",o]]);export{_ as default};
This diff is collapsed.
/* empty css */import{_ as fe,r as n,s as R,b as V,o as he,l as ve,c as h,z as ge,e as g,f as E,j as a,w as i,i as u,F as N,p as U,u as I,C as A,m as _e,h as D,g as M,B as G,q as me,x as be}from"./index-JHU7h98a.js";import{C as we}from"./CfgSupply-DVak_OLU.js";/* empty css */const L=C=>(me("data-v-ae7d728b"),C=C(),be(),C),xe={class:"div-header"},ye={class:"div-dropdown text-center"},Ie=L(()=>u("span",null,"换热站机组 : ",-1)),Le={class:"div-list"},Ce={style:{float:"left"}},ke={class:"div-button"},Fe={style:{display:"flex"}},Ve={class:"div-autoRefresh"},Ee={class:"div-form-img"},Ne={style:{height:"40px"}},De=L(()=>u("span",{class:"span-text"},"停止:",-1)),Te=L(()=>u("span",{class:"span-text"},"启动:",-1)),ze=L(()=>u("span",{class:"span-text"},"正常:",-1)),Se=L(()=>u("span",{class:"span-text"},"报警:",-1)),Be={__name:"BoilerStatusPage",setup(C){const b=n(null);b.value=R.getters.getEnterpriseId(),n([]),n([]),n([]),n([!1]),V({supplyList:[],dropdownList:[],pipeInfo:{}}),V({tableData:[],alarm:[],forms:[],title:[]});var _=n(!1),v=n(60),k;const J={multiple:!0,emitPath:!1},f=V({enterpriseId:b.value,tree:[],supplyId:[],deviceType:3,id:[],name:[],interval:2,sort:"",pageIndex:0,pageCount:30});n(1),n(30),n(100),n(!1),n(!1);var K=window.innerHeight-230;const T=n(K);var d=V({tableData:[],title:{frozenList:[],otherList:[]}});const z=n(!0);n(!0);const w=n(!1),Q=n(2),H=n([]),W=n("换热站状态自定义列");he(()=>X());async function X(){window.addEventListener("resize",Y),await $(),await P(b.value,2,null,f.id,[])}function Y(){T.value=window.innerHeight-230}const Z=l=>{w.value=!1,B()};function $(){var l=R.getters.getEnterprise(),e=R.getters.getEnterpriseId();if(l)for(var c=0;c<l.length;c++)l[c].enterpriseId===e&&(l[c].enterpriseId==="9bca54bc-8f27-4849-8d7d-50c5099e1949"?l[c].serviceCenterList.forEach(t=>{t.supplyList.forEach(s=>{var o={};o.value=s.supplyId,o.label=s.supplyName,o.children=[],s.boilerList.forEach(p=>{var m={value:p.boilerId,label:p.description};o.children.push(m)}),o.children.length>0&&f.tree.push(o)})}):l[c].supplyList.forEach(t=>{var s={};s.value=t.supplyId,s.label=t.supplyName,s.children=[],t.boilerList.forEach(o=>{var p={value:o.boilerId,label:o.description};s.children.push(p)}),s.children.length>0&&f.tree.push(s)}));f.tree&&(f.tree.forEach(t=>{t.children.forEach(s=>{f.id.push(s.value),f.name.push(s.label)})}),console.log(f))}function ee(l){d.title.frozenList.length===0&&te(),ae(l)}function te(){S("rowIndex","编号",!1,60,!0),S("name","锅炉名称",!0,180,!0),S("gatherTime","采集时间",!0,180,!0)}function S(l,e,c,t,s){var o={field:l,title:e,sortable:c,width:t,color:"b5e6ff",isVisible:s};d.title.frozenList.push(o)}function ae(l){d.title.otherList.length=0,l.forEach(e=>{le(e.alias,e.backColor,e.baseId,e.decimalPoint,e.enName[0].toLowerCase()+e.enName[1].toLowerCase()+e.enName.substring(2),e.orderNum,e.width,e.isVisible)})}function le(l,e,c,t,s,o,p,m){var F={alias:l,backColor:e,baseId:c,decimalPoint:t,enName:s,orderNum:o,width:p,isVisible:m};d.title.otherList.push(F)}function se(l){d.tableData.length=0,d.tableData.push.apply(d.tableData,l)}async function P(l,e,c,t,s){z.value=!0,await ve.post("/api/status/boiler",{enterpriseId:l,deviceType:e,supplyIdList:c,boilerIdList:t,sortList:s}).then(o=>{ee(o.data.title),H.value=o.data.title,se(o.data.realData)}),z.value=!1}function O(l,e){return x(l.row[e.enName])}function x(l){var e=null;switch(l){case"0":e=new URL("/imgs/status/status_off.png",import.meta.url).href;break;case"-1":e=new URL("/imgs/status/status_run.png",import.meta.url).href;break;case"1":e=new URL("/imgs/status/status_on.png",import.meta.url).href;break;case"-2":e=new URL("/imgs/status/status_alarm.png",import.meta.url).href;break}return e}async function B(){b.value;var l=f.id,e=[];l.length===0&&(l=null),await P(b.value,2,[],l,e)}function oe({row:l,column:e,rowIndex:c,columnIndex:t}){let s={};return s["padding-left"]="0px",s["padding-right"]="0px",s.borderColor="#97d5fd",s.padding="0px",d.title.frozenList.forEach(o=>{o.field===e.property&&(s["background-color"]="#"+o.color)}),d.title.otherList.forEach(o=>{o.enName===e.property&&(s["background-color"]="#"+o.backColor)}),s}function re({row:l,column:e,rowIndex:c,columnIndex:t}){let s;return d.title.frozenList.forEach(o=>{if(o.field===e.property){var p=o.color=="FFFFFF"?"d9f1ff":o.color;s={"background-color":"#"+p,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"}}}),d.title.otherList.forEach(o=>{if(o.enName===e.property){var p=o.backColor=="FFFFFF"?"d9f1ff":o.backColor;s={"background-color":"#"+p,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"}}}),s}function ne(){_.value?v.value&&v.value>0?k=setInterval(()=>{B()},v.value*1e3):(_.value=!1,v.value="",clearInterval(k)):clearInterval(k)}function ie(){_.value=!1,clearInterval(k)}function ce(l){return/^[0-9]*$/.test(l)?l:""}return(l,e)=>{const c=h("el-cascader"),t=h("el-col"),s=h("el-input"),o=h("el-switch"),p=h("el-button"),m=h("el-row"),F=h("el-card"),j=h("el-table-column"),y=h("el-image"),de=h("el-table"),ue=ge("loading");return g(),E(N,null,[a(we,{modelValue:w.value,"onUpdate:modelValue":e[0]||(e[0]=r=>w.value=r),onOnChangeDialog:Z,titleData:H.value,height:500,width:950,deviceType:2,title:W.value,cfgType:Q.value},null,8,["modelValue","titleData","title","cfgType"]),a(F,{class:"card-contianer","body-style":{padding:"0px 0px 0px 0px",height:"110px"}},{default:i(()=>[u("div",xe,[a(m,null,{default:i(()=>[a(t,{span:7},{default:i(()=>[u("div",ye,[Ie,a(c,{options:f.tree,modelValue:f.id,"onUpdate:modelValue":e[1]||(e[1]=r=>f.id=r),props:J,"collapse-tags":"",clearable:"","show-all-levels":!1,filterable:"",placeholder:"请选择",style:{"min-width":"310px"}},null,8,["options","modelValue"])])]),_:1}),a(t,{span:2}),a(t,{span:4},{default:i(()=>[u("div",Le,[u("div",Ce,[U(" 刷新间隔(秒): "),a(s,{modelValue:I(v),"onUpdate:modelValue":e[2]||(e[2]=r=>A(v)?v.value=r:v=r),formatter:ce,focus:ie,style:{width:"60px"}},null,8,["modelValue"])])])]),_:1}),a(t,{span:11},{default:i(()=>[u("div",ke,[a(m,{gutter:10},{default:i(()=>[a(t,{span:13},{default:i(()=>[u("div",Fe,[u("div",Ve,[a(o,{modelValue:I(_),"onUpdate:modelValue":e[3]||(e[3]=r=>A(_)?_.value=r:_=r),class:"switch-autoRefresh","active-text":"自动刷新","inactive-text":"手动刷新",style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"rgb(64, 158, 255)"},onChange:ne},null,8,["modelValue"])])])]),_:1}),a(t,{span:3},{default:i(()=>[a(p,{class:"el-button-button",type:"primary",span:6,onClick:B,icon:"Search"},{default:i(()=>[U(" 查  询")]),_:1})]),_:1}),a(t,{span:3},{default:i(()=>[a(p,{class:"el-button-button",type:"primary",span:6,onClick:e[4]||(e[4]=r=>w.value=!w.value)},{default:i(()=>[U("自定义列")]),_:1})]),_:1}),a(t,{span:5})]),_:1})])]),_:1})]),_:1})])]),_:1}),a(F,{class:"moduleCard",height:T.value},{default:i(()=>[_e((g(),D(de,{data:I(d).tableData,height:T.value,"cell-style":oe,border:"","highlight-current-row":"","header-cell-style":re,"header-cell-class-name":l.handleHeadAddClass},{default:i(()=>[(g(!0),E(N,null,M(I(d).title.frozenList,(r,pe)=>(g(),D(j,{prop:r.field,label:r.title,width:r.width,sortable:r.field==="name"||r.field==="gatherTime",fixed:""},null,8,["prop","label","width","sortable"]))),256)),(g(!0),E(N,null,M(I(d).title.otherList,(r,pe)=>(g(),E(N,null,[r.isVisible?(g(),D(j,{key:0,prop:r.enName,label:r.alias,width:r.width},{default:i(q=>[u("div",Ee,[O(q,r)?(g(),D(y,{key:0,class:"img-center",style:{width:"30px",height:"30px"},src:O(q,r),fit:"cover"},null,8,["src"])):G("",!0)])]),_:2},1032,["prop","label","width"])):G("",!0)],64))),256))]),_:1},8,["data","height","header-cell-class-name"])),[[ue,z.value]])]),_:1},8,["height"]),u("div",Ne,[a(m,{style:{height:"100%"}},{default:i(()=>[a(t,{span:2}),a(t,{span:2}),a(t,{span:2}),a(t,{span:2}),a(t,{span:2}),a(t,{span:2}),a(t,{span:2}),a(t,{class:"col-center",span:2},{default:i(()=>[De,a(y,{style:{width:"30px",height:"30px"},src:x("0"),fit:"cover"},null,8,["src"])]),_:1}),a(t,{class:"col-center",span:2},{default:i(()=>[Te,a(y,{style:{width:"30px",height:"30px"},src:x("1"),fit:"cover"},null,8,["src"])]),_:1}),a(t,{class:"col-center",span:2},{default:i(()=>[ze,a(y,{style:{width:"30px",height:"30px"},src:x("-1"),fit:"cover"},null,8,["src"])]),_:1}),a(t,{class:"col-center",span:2},{default:i(()=>[Se,a(y,{style:{width:"30px",height:"30px"},src:x("-2"),fit:"cover"},null,8,["src"])]),_:1}),a(t,{span:2})]),_:1})])],64)}}},Oe=fe(Be,[["__scopeId","data-v-ae7d728b"]]);export{Oe as default};
.dia-footer[data-v-55275419]{text-align:right;width:100%;border-top:1px solid #e2e2e2;padding:6px 2px;height:15px}.ams-dialog[data-v-55275419] .el-overlay-dialog{display:flex!important}.ams-dialog[data-v-55275419] .el-dialog{margin:auto}.ams-dialog[data-v-55275419] .el-dialog{border-top-left-radius:4px;border-top-right-radius:4px}.ams-dialog[data-v-55275419] .el-dialog__header{border-top-left-radius:4px;border-top-right-radius:4px;border-bottom:1px solid #e6e6e6;height:10px;color:#4f4f4f;font-weight:700;font-size:15px;margin:0;vertical-align:middle}.ams-dialog[data-v-55275419] .el-dialog__footer,.ams-dialog[data-v-55275419] .el-dialog__body{padding:0}.ams-dialog[data-v-55275419] .el-dialog__headerbtn{top:0;padding-top:8px;height:20px;width:0;padding-right:30px;padding-left:5px}.ams-dialog[data-v-55275419] .el-dialog__headerbtn .el-dialog__close{color:red}[data-v-55275419] .el-table,[data-v-55275419] .el-table__expanded-cell{background-color:#e6e6e6;font-size:14px;color:#000}[data-v-55275419] .el-table th{background-color:#fff;font-weight:700;font-size:15px}[data-v-55275419] .el-table td{background-color:#f4f1f1fd;border:0px;font-family:Source Han Sans CN Normal,Source Han Sans CN Normal-Normal;font-weight:400;color:#000}
import{_ as L,r as m,b as M,y as D,c as r,e as t,f as u,j as o,w as a,i as b,t as _,N as Q,p as V,h as f,n as X,B as T,s as Y,l as Z,O as N}from"./index-JHU7h98a.js";/* empty css */const ee={class:"ams-dialog"},le={style:{display:"flex"}},te={style:{"padding-left":"10px",height:"100%"}},oe={key:1},ae={key:0},ne={key:1},ie={key:1},de={key:1},se={key:0},ce={key:1},re={class:"dia-footer"},ue={__name:"CfgSupply",props:["cfgType","deviceType","titleData","modelValue","title","height","width"],emits:["update:modelValue"],setup(h,{emit:E}){const d=h,$=E,v=m(!1);v.value=d.modelValue;const C=m([]),U=m([]),c=m(-1);var i=M({cfgType:0,enterpriseId:"",baseId:0,deviceType:1,alias:"",backColor:"",decimalPoint:0,width:80,orderNum:1,isVisible:0});const B=m(100),I=document.body.clientHeight*.95-60,x=m(200);x.value=d.height;const F=m(null),H=l=>(x.value=I-30,I/-2+"px");B.value=H(),D(()=>d.modelValue,(l,s)=>{v.value=l}),D(()=>d.titleData,(l,s)=>{},{immediate:!0,deep:!0});const R=()=>{console.log("cfgtype:"+d.cfgType),d.cfgType||(d.cfgType=0),C.value&&d.titleData.forEach(l=>{l.backColor.includes("#")||(l.backColor="#"+l.backColor),l.isVisible&&C.value.toggleRowSelection(l)})},P=l=>{v.value=!1,$("onChangeDialog",!0)},y=m(!1),z=()=>{y.value=!y.value,$("fullscreen",y.value)},O=l=>{c.value=l},W=l=>{c.value=-1},j=l=>{U.value=l},K=l=>{try{const s=U.value.includes(l);c.value=-1,i.cfgType=d.cfgType,i.alias=l.alias,i.enterpriseId=Y.getters.getEnterpriseId(),i.baseId=l.baseId,i.decimalPoint=l.decimalPoint,i.width=l.width,i.orderNum=l.orderNum,i.isVisible=s,i.deviceType=d.deviceType;const S=l.backColor;i.backColor=S.replace("#",""),Z.post("/api/para/SaveCfgTitle",i).then(g=>{g.success?N({title:"Success",message:"自定义列提交成功",type:"success",position:"bottom-right",duration:3e3}):N({title:"Fail",message:"自定义列提交失败!"+g.message,type:"error",position:"bottom-right",duration:3e3})})}catch(s){N({title:"异常",message:"自定义列提交失败!"+s.message,type:"warning",position:"bottom-left",duration:3e3})}};return(l,s)=>{const S=r("setting"),g=r("el-icon"),q=r("FullScreen"),p=r("el-table-column"),k=r("el-input"),A=r("el-color-picker"),w=r("el-button"),G=r("el-table"),J=r("el-dialog");return t(),u("div",ee,[o(J,{modelValue:v.value,"onUpdate:modelValue":s[1]||(s[1]=e=>v.value=e),"close-on-click-modal":!1,"close-on-press-escape":!1,width:h.width,fullscreen:y.value,draggable:!0,"before-close":P,onOpen:R},{header:a(()=>[b("div",le,[o(g,null,{default:a(()=>[o(S)]),_:1}),b("div",te,_(h.title),1),b("button",{class:"el-dialog__headerbtn",type:"button",style:{right:"35px",color:"var(--el-color-info)"},onClick:z},[o(g,null,{default:a(()=>[o(q)]),_:1})])])]),footer:a(()=>[b("div",re,[Q(l.$slots,"footer",{},void 0,!0),o(w,{type:"primary",size:"mini",onClick:s[0]||(s[0]=e=>P()),icon:"close"},{default:a(()=>[V(" 关闭 ")]),_:1})])]),default:a(()=>[o(G,{ref_key:"tableRef",ref:C,"show-header":"true",data:h.titleData,"max-height":x.value,"default-checked-keys":F.value,onSelectionChange:j},{default:a(()=>[o(p,{"show-overflow-tooltip":"",type:"selection",width:"55px"}),o(p,{label:"参数名",prop:"cnName",minWidth:"200px","show-overflow-tooltip":""}),o(p,{label:"别名",prop:"alias",minWidth:"200px","show-overflow-tooltip":""},{default:a(e=>[c.value==e.$index?(t(),f(k,{key:0,modelValue:e.row.alias,"onUpdate:modelValue":n=>e.row.alias=n},null,8,["modelValue","onUpdate:modelValue"])):(t(),u("span",oe,_(e.row.alias),1))]),_:1}),h.cfgType!=2?(t(),f(p,{key:0,label:"背景色",prop:"backColor",width:"100px","show-overflow-tooltip":""},{default:a(e=>[c.value==e.$index?(t(),u("div",ae,[o(A,{modelValue:e.row.backColor,"onUpdate:modelValue":n=>e.row.backColor=n},null,8,["modelValue","onUpdate:modelValue"])])):(t(),u("span",{key:1,style:X([{backgroundColor:e.row.backColor,color:e.row.backColor},{width:"100px",height:"10px"}])},_(e.row.backColor),5))]),_:1})):T("",!0),h.cfgType!=2?(t(),f(p,{key:1,label:"小数点位数",prop:"decimalPoint","show-overflow-tooltip":""},{default:a(e=>[c.value==e.$index?(t(),f(k,{key:0,modelValue:e.row.decimalPoint,"onUpdate:modelValue":n=>e.row.decimalPoint=n},null,8,["modelValue","onUpdate:modelValue"])):(t(),u("span",ne,_(e.row.decimalPoint),1))]),_:1})):T("",!0),h.cfgType!=1?(t(),f(p,{key:2,label:"列宽",prop:"width","show-overflow-tooltip":"",width:"65px"},{default:a(e=>[c.value==e.$index?(t(),f(k,{key:0,modelValue:e.row.width,"onUpdate:modelValue":n=>e.row.width=n},null,8,["modelValue","onUpdate:modelValue"])):(t(),u("span",ie,_(e.row.width),1))]),_:1})):T("",!0),o(p,{label:"排序",prop:"orderNum","show-overflow-tooltip":"",width:"65px"},{default:a(e=>[c.value==e.$index?(t(),f(k,{key:0,modelValue:e.row.orderNum,"onUpdate:modelValue":n=>e.row.orderNum=n},null,8,["modelValue","onUpdate:modelValue"])):(t(),u("span",de,_(e.row.orderNum),1))]),_:1}),o(p,{align:"right",width:"150",lable:"编辑"},{default:a(e=>[c.value==e.$index?(t(),u("div",se,[o(w,{type:"info",onClick:n=>K(e.row)},{default:a(()=>[V("保存")]),_:2},1032,["onClick"]),o(w,{type:"danger",onClick:n=>W(e.$index)},{default:a(()=>[V("取消")]),_:2},1032,["onClick"])])):(t(),u("div",ce,[o(w,{type:"success",onClick:n=>O(e.$index)},{default:a(()=>[V("编辑")]),_:2},1032,["onClick"])]))]),_:1})]),_:1},8,["data","max-height","default-checked-keys"])]),_:3},8,["modelValue","width","fullscreen"])])}}},he=L(ue,[["__scopeId","data-v-55275419"]]);export{he as C};
import{_ as r}from"./index-JHU7h98a.js";const e={};function c(n,o){return" 锅炉参数配置 "}const _=r(e,[["render",c]]);export{_ as default};
import{_ as e}from"./index-JHU7h98a.js";const r={};function t(a,c){return" 能耗分析 "}const s=e(r,[["render",t]]);export{s as default};
import{_ as K,r as b,y as W,o as $,a as z,c as m,z as A,m as O,e as s,h,w as y,f as x,F as V,g as M,A as P,B as w,t as H}from"./index-JHU7h98a.js";/* empty css */const Y={key:0,class:"blink-animation"},q={key:1},G="fixedColumn",J=20,Q={__name:"DataForm",props:["dataRows","dataTables","maxHeight","sortMap","sortabletype","width","tableHeight","alarm","isLoading","parentMethod","offlineTime"],emits:["sort","child-event"],setup(d,{emit:D}){const e=d,T=D,c=b(null),u=b(30),_=b([]),v=b(1),g=b(0),U=t=>{if(!(v.value<=u.value)&&c){var a=g.value;if(t.deltaY>0?a+=4:a-=4,a<0&&(a=0),a+u.value>v.value&&(a=v.value-u.value),a==g.value)return;g.value=a,C()}};function C(){e.dataTables.length&&(e.dataTables.length<u.value?_.value=e.dataTables.slice(0,e.dataTables.length):_.value=e.dataTables.slice(g.value,g.value+u.value))}function E(t){T("sort",t)}function R({row:t,column:a,rowIndex:f,columnIndex:p}){let o={};return o.padding="0px",o.borderColor="#97d5fd",o.height="15px",e.dataRows.forEach(r=>{r.name===a.property&&(o["background-color"]="#"+r.color,r.fixed||e.alarm&&e.alarm.forEach(i=>{i.id.toUpperCase()===t.id.toUpperCase()&&i.enName.toUpperCase()==r.name.toUpperCase()&&(i.topMost||i.downMost?o.color="#ff0000":o.color="#ff8040")}))}),o}function L({row:t,column:a,rowIndex:f,columnIndex:p}){let o;return e.dataRows.forEach(r=>{if(r.name===a.property){var i=r.color=="FFFFFF"?"d9f1ff":r.color;o={"background-color":"#"+i,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"}}}),o}function S(t){e.sortMap&&t.column.property&&e.sortMap.get(t.column.property)&&(t.column.order=e.sortMap.get(t.column.property).order)}W([()=>e.isLoading,()=>e.dataTables],(t,a)=>{v.value=e.dataTables.length,C()},{deep:!0}),$(()=>{e.tableHeight&&(u.value=Math.ceil((e.tableHeight-100)/J)),v.value=e.dataTables.length,c.value&&c.value.$refs.bodyWrapper.addEventListener("mousewheel",U),C()}),z(()=>{c.value&&c.value.$refs.bodyWrapper.removeEventListener("mousewheel",U)});const F=()=>{e.parentMethod(),T("child-event")};function B(t,a){if(a.fixed)return!1;var f=!1;return e.alarm&&e.alarm.forEach(p=>{p.id.toUpperCase()===t.id.toUpperCase()&&p.enName.toUpperCase()==a.property.toUpperCase()&&(f=!0)}),f}function N(t,a){return t[a.property]}return(t,a)=>{const f=m("el-input"),p=m("el-option"),o=m("el-select"),r=m("el-table-column"),i=m("el-table"),I=A("loading");return d.dataRows&&d.dataTables?O((s(),h(i,{key:0,ref_key:"tableRef",ref:c,"show-header":"true",border:"","highlight-current-row":"","max-height":d.maxHeight?d.maxHeight:"-",height:d.tableHeight,"virtual-scroll":"",style:{"border-color":"#97d5fd"},"header-cell-class-name":S,onSortChange:E,"cell-style":R,data:_.value,"header-cell-style":L,"element-loading-text":"数据加载中......","row-class-name":"fixed-row-height","element-loading-background":"rgba(0, 0, 0, 0.8)"},{default:y(()=>[(s(!0),x(V,null,M(d.dataRows,l=>(s(),x(V,{key:l.name},[l.isVisible?(s(),h(r,{key:0,"class-name":[l.fixed?G:""],fixed:l.fixed,prop:l.name,label:l.showName,width:l.width,sortable:d.sortabletype,color:l.color},{default:y(()=>[l.haveFilter?(s(),h(r,{key:0,prop:l.name,width:l.width},{header:y(()=>[l.filterType==1?(s(),h(f,{key:0,modelValue:l.filterValue,"onUpdate:modelValue":n=>l.filterValue=n,placeholder:"",onKeyup:P(F,["enter"])},null,8,["modelValue","onUpdate:modelValue"])):l.filterType==2?(s(),h(o,{key:1,modelValue:l.filterValue,"onUpdate:modelValue":n=>l.filterValue=n,placeholder:"",onChange:F},{default:y(()=>[(s(!0),x(V,null,M(l.filterText,n=>(s(),h(p,{key:n.text,label:n.text,value:n.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):w("",!0)]),default:y(({row:n,column:k})=>[B(n,k)?(s(),x("div",Y,H(N(n,k)),1)):(s(),x("div",q,H(n[k.property]),1))]),_:2},1032,["prop","width"])):w("",!0)]),_:2},1032,["class-name","fixed","prop","label","width","sortable","color"])):w("",!0)],64))),128))]),_:1},8,["max-height","height","data"])),[[I,d.isLoading]]):w("",!0)}}},j=K(Q,[["__scopeId","data-v-4be20399"]]);export{j as D};
[data-v-4be20399] .el-table__body tr:hover>td{background:linear-gradient(to top,#00c6ff,#fff)!important}[data-v-4be20399] .el-table__body tr.current-row>td{background-color:#92cbf1!important}@keyframes blink-4be20399{0%{opacity:1}50%{opacity:0}to{opacity:1}}.blink-animation[data-v-4be20399]{animation:blink-4be20399 1s infinite}
const e="FeatureCollection",t=[{type:"Feature",properties:{adcode:120110,name:"东丽区",center:[117.313967,39.087764],centroid:[117.409531,39.133692],childrenNum:0,level:"district",acroutes:[1e5,12e4],parent:{adcode:12e4}},geometry:{type:"MultiPolygon",coordinates:[[[[117.266978,39.079796],[117.268316,39.079689],[117.274305,39.079349],[117.277806,39.078766],[117.284945,39.077747],[117.294739,39.077316],[117.301037,39.077116],[117.305161,39.076796],[117.307535,39.076413],[117.313367,39.0751],[117.318172,39.073292],[117.326424,39.069559],[117.328781,39.068322],[117.332638,39.064845],[117.337641,39.059509],[117.339844,39.057655],[117.341681,39.056491],[117.343706,39.055586],[117.347868,39.053874],[117.356476,39.051801],[117.358756,39.051606],[117.362481,39.051753],[117.367266,39.051809],[117.371431,39.052149],[117.375582,39.052973],[117.380243,39.053633],[117.381061,39.053404],[117.383295,39.052261],[117.384797,39.05121],[117.385364,39.050247],[117.387067,39.046026],[117.388432,39.041942],[117.39035,39.038187],[117.39319,39.033664],[117.394575,39.032217],[117.39878,39.02901],[117.405285,39.025433],[117.41235,39.022746],[117.420405,39.020741],[117.427118,39.020234],[117.431222,39.020183],[117.437523,39.020475],[117.448729,39.022794],[117.450728,39.023611],[117.455372,39.026346],[117.459483,39.028584],[117.462266,39.031149],[117.464342,39.032842],[117.465365,39.033156],[117.46686,39.033367],[117.468218,39.033359],[117.469784,39.032398],[117.471233,39.030515],[117.471793,39.029082],[117.472018,39.02561],[117.471015,39.021505],[117.469898,39.018571],[117.469898,39.017998],[117.47072,39.016694],[117.472718,39.015102],[117.473349,39.014762],[117.475331,39.014148],[117.47912,39.013422],[117.481698,39.013346],[117.484404,39.014217],[117.489709,39.016516],[117.491396,39.016945],[117.493626,39.016661],[117.495443,39.015691],[117.4977,39.013417],[117.50276,39.007529],[117.504685,39.004732],[117.506693,39.001207],[117.507998,38.998125],[117.508923,38.99646],[117.50952,38.995724],[117.510741,38.99512],[117.511767,38.995313],[117.513792,38.996442],[117.516317,38.998252],[117.519664,39.001169],[117.520539,39.002116],[117.523443,39.004654],[117.525418,39.00573],[117.52698,39.005994],[117.526974,39.007362],[117.526601,39.011841],[117.525626,39.012709],[117.524881,39.015072],[117.526343,39.021249],[117.526129,39.021845],[117.524164,39.022403],[117.525394,39.026382],[117.52464,39.02679],[117.523869,39.026397],[117.521984,39.023758],[117.519935,39.024629],[117.517383,39.026686],[117.51797,39.029396],[117.520579,39.03683],[117.520505,39.037332],[117.518889,39.037543],[117.518822,39.037906],[117.523718,39.046731],[117.527114,39.04617],[117.52974,39.057295],[117.530136,39.057858],[117.537922,39.055664],[117.538063,39.056235],[117.538623,39.056151],[117.546436,39.055403],[117.559543,39.054919],[117.559161,39.057498],[117.558081,39.063714],[117.55782,39.065743],[117.559148,39.068322],[117.563138,39.077199],[117.563772,39.078505],[117.552881,39.078982],[117.553286,39.08223],[117.552921,39.084136],[117.552317,39.084407],[117.5527,39.086124],[117.553313,39.088119],[117.553548,39.096571],[117.553367,39.099706],[117.536188,39.099977],[117.535974,39.103366],[117.535497,39.106549],[117.530947,39.10639],[117.527876,39.1064],[117.522963,39.106724],[117.517471,39.106727],[117.511418,39.107244],[117.503229,39.107908],[117.503793,39.110888],[117.505842,39.119568],[117.506137,39.121549],[117.507693,39.128517],[117.508065,39.130334],[117.509684,39.137509],[117.510821,39.140767],[117.511448,39.142147],[117.514329,39.150149],[117.514986,39.150919],[117.516854,39.152147],[117.518091,39.151489],[117.530484,39.146671],[117.540789,39.14273],[117.54149,39.142889],[117.546,39.1456],[117.552629,39.147229],[117.553129,39.147573],[117.55332,39.148168],[117.553089,39.153923],[117.553954,39.156288],[117.555744,39.159181],[117.557609,39.160275],[117.559349,39.161116],[117.566166,39.161741],[117.566951,39.162156],[117.567377,39.165054],[117.566786,39.167669],[117.566746,39.171321],[117.567065,39.173483],[117.567665,39.175233],[117.568798,39.177499],[117.564432,39.178694],[117.559852,39.17974],[117.554919,39.180307],[117.55058,39.180968],[117.549836,39.181173],[117.548988,39.18075],[117.548642,39.180355],[117.547432,39.180322],[117.544608,39.180851],[117.539548,39.181884],[117.537167,39.182616],[117.531433,39.185185],[117.523399,39.188932],[117.517742,39.191378],[117.513685,39.192436],[117.513678,39.202695],[117.513732,39.204775],[117.509909,39.207501],[117.509383,39.206924],[117.509614,39.20622],[117.511042,39.203256],[117.510687,39.20255],[117.504598,39.200892],[117.502257,39.19964],[117.503769,39.197351],[117.50279,39.195392],[117.491359,39.198549],[117.492405,39.200007],[117.495587,39.199078],[117.501831,39.201361],[117.503588,39.204117],[117.503457,39.204152],[117.503632,39.208804],[117.498998,39.206585],[117.493002,39.204836],[117.486705,39.204757],[117.485122,39.205307],[117.482979,39.20678],[117.487268,39.211044],[117.488006,39.220086],[117.488006,39.22045],[117.484304,39.222596],[117.483958,39.222363],[117.483023,39.223281],[117.478369,39.225467],[117.472796,39.229364],[117.465771,39.229002],[117.456811,39.23136],[117.451285,39.236425],[117.44775,39.231911],[117.446382,39.233409],[117.443783,39.231613],[117.442023,39.230593],[117.428734,39.231522],[117.426105,39.231347],[117.425351,39.228516],[117.417508,39.223643],[117.408176,39.225973],[117.408333,39.227927],[117.407837,39.229073],[117.407924,39.229723],[117.41054,39.234371],[117.410687,39.235496],[117.410261,39.236625],[117.409108,39.23776],[117.407673,39.238788],[117.406945,39.239121],[117.405503,39.239359],[117.404054,39.239817],[117.403149,39.24031],[117.395749,39.239777],[117.395913,39.237685],[117.391245,39.237017],[117.388596,39.236025],[117.384623,39.233589],[117.384733,39.232703],[117.386403,39.23049],[117.385075,39.23048],[117.382778,39.23073],[117.379029,39.231246],[117.373359,39.232294],[117.368289,39.23344],[117.364802,39.233794],[117.360007,39.233695],[117.356516,39.233933],[117.352958,39.234368],[117.350416,39.234204],[117.347979,39.234183],[117.345115,39.234532],[117.340954,39.234846],[117.334009,39.235706],[117.333573,39.235813],[117.326793,39.234601],[117.325696,39.235322],[117.324965,39.236693],[117.324529,39.237925],[117.321387,39.238669],[117.305721,39.242625],[117.299266,39.244368],[117.293401,39.247107],[117.290316,39.248509],[117.286551,39.246139],[117.284227,39.24479],[117.283,39.244338],[117.283687,39.242018],[117.292469,39.243695],[117.292523,39.243093],[117.291507,39.242865],[117.292543,39.239974],[117.295055,39.240356],[117.297603,39.227717],[117.297905,39.223253],[117.292623,39.219964],[117.291477,39.219339],[117.285458,39.218547],[117.281588,39.217874],[117.278798,39.217277],[117.272531,39.215753],[117.26499,39.213043],[117.259732,39.210927],[117.254373,39.208278],[117.24701,39.204476],[117.244803,39.202674],[117.244022,39.201948],[117.240769,39.199293],[117.239109,39.19768],[117.234982,39.194342],[117.233479,39.193053],[117.235075,39.191679],[117.237044,39.189841],[117.238137,39.188722],[117.240353,39.186874],[117.244481,39.183196],[117.248291,39.179611],[117.249967,39.178451],[117.247553,39.176451],[117.24369,39.172739],[117.242701,39.171913],[117.240957,39.170751],[117.242111,39.170923],[117.24652,39.171377],[117.246735,39.170414],[117.250782,39.170908],[117.251057,39.16965],[117.251701,39.168095],[117.25544,39.168163],[117.25606,39.168249],[117.256905,39.169032],[117.258659,39.169959],[117.260057,39.16871],[117.260533,39.16755],[117.260456,39.163268],[117.260627,39.159009],[117.262384,39.159095],[117.2673,39.160432],[117.27121,39.161346],[117.27684,39.163],[117.28139,39.160736],[117.287396,39.158474],[117.290316,39.157142],[117.290833,39.155546],[117.293405,39.15062],[117.284908,39.148224],[117.279935,39.147355],[117.286648,39.13174],[117.283325,39.130889],[117.281316,39.13045],[117.27624,39.129809],[117.271763,39.129326],[117.271102,39.128834],[117.270294,39.127856],[117.269939,39.127109],[117.269869,39.126366],[117.272336,39.117964],[117.272762,39.116904],[117.273953,39.112607],[117.27523,39.108952],[117.27582,39.108068],[117.294689,39.104116],[117.302911,39.102563],[117.309655,39.100945],[117.306459,39.09783],[117.306513,39.096659],[117.308078,39.096358],[117.306848,39.092418],[117.307636,39.092086],[117.306912,39.089376],[117.304819,39.085571],[117.301949,39.086268],[117.300108,39.082113],[117.297992,39.082671],[117.29826,39.083439],[117.297184,39.083746],[117.298183,39.086476],[117.286581,39.089072],[117.286269,39.089092],[117.286095,39.087153],[117.279945,39.086884],[117.279878,39.088542],[117.278842,39.088165],[117.278842,39.090591],[117.276337,39.090773],[117.275338,39.089929],[117.274234,39.088793],[117.272333,39.09053],[117.271176,39.088963],[117.269309,39.086808],[117.267873,39.08529],[117.26736,39.08421],[117.266864,39.080503],[117.266978,39.079796]]]]}}],o={type:e,features:t};export{o as default,t as features,e as type};
table[data-v-b7b43a05],th[data-v-b7b43a05],td[data-v-b7b43a05]{margin:0;padding:0}.contentBlock[data-v-b7b43a05]{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff}.el-form--inline .el-form-item[data-v-b7b43a05]{margin-right:10px}.el-form-item[data-v-b7b43a05]{margin:5px 5px 10px!important}.echartsLayer[data-v-b7b43a05]{width:100%;margin:2% auto 0}.titBlock div.leftLine[data-v-b7b43a05]{border-left:#3e79ed solid 4px;padding:0 0 0 10px;letter-spacing:2px;font-size:130%}.titBlock td img[data-v-b7b43a05]{min-height:126px}.titBlock td.img1[data-v-b7b43a05]{position:relative;min-width:300px;width:21%;padding-right:1%}.titBlock td.img2[data-v-b7b43a05]{position:relative;min-width:233px;width:16%;padding-right:1.4%}.mainBlock[data-v-b7b43a05]{width:100%;height:66%;overflow:auto}.mainBlockInn[data-v-b7b43a05]{display:flex;justify-content:space-around;flex-wrap:wrap;margin-bottom:50px}.mainBlockInn .cardList[data-v-b7b43a05]{width:24%;margin:1% 0 0;padding:0}.titBlock td.img1 .tit[data-v-b7b43a05]{position:absolute;top:10%;right:20%;text-align:center;letter-spacing:5px;color:#fff;font-size:150%;font-weight:bolder}.titBlock td.img1 .left span[data-v-b7b43a05],.titBlock td.img1 .right span[data-v-b7b43a05]{font-size:160%;letter-spacing:2px;font-weight:bolder}.titBlock td.img1 .sub[data-v-b7b43a05]{letter-spacing:5px;font-weight:bolder}.titBlock td.img1 .left[data-v-b7b43a05]{position:absolute;bottom:20%;left:20%;color:#fff;font-size:90%;font-weight:bolder;text-align:center}.titBlock td.img1 .right[data-v-b7b43a05]{position:absolute;bottom:20%;right:12%;color:#fff;font-size:90%;font-weight:bolder;text-align:center}.titBlock td.img2 .tit[data-v-b7b43a05]{position:absolute;top:8%;right:12%;text-align:center;letter-spacing:5px;color:#fff;font-size:150%;font-weight:bolder}.titBlock td.img2 .left span[data-v-b7b43a05],.titBlock td.img2 .right span[data-v-b7b43a05]{font-size:140%;font-weight:bolder}.titBlock td.img2 .sub[data-v-b7b43a05]{letter-spacing:5px;font-weight:bolder}.titBlock td.img2 .left[data-v-b7b43a05]{position:absolute;bottom:20%;left:6%;color:#fff;font-size:90%;font-weight:bolder;text-align:center}.titBlock td.img2 .right[data-v-b7b43a05]{position:absolute;bottom:20%;right:13%;color:#fff;font-size:90%;font-weight:bolder;text-align:center}.cardListTit[data-v-b7b43a05]{position:absolute;top:5px;left:35px;color:#fff;letter-spacing:3px;font-weight:bolder}.downExl[data-v-b7b43a05]{position:absolute;top:5px;right:10px;color:#3e79ed;font-weight:bolder;cursor:pointer}.cardTable[data-v-b7b43a05]{border:none;border-spacing:0;font-size:90%;background-color:#d8f6fe;border-radius:10px}.cardTable th[data-v-b7b43a05]{background-color:#56dcff;text-align:center;padding:3px;color:#fff}.cardTable td[data-v-b7b43a05]{text-align:center;padding:3px;color:#666}
This diff is collapsed.
import{_ as e}from"./index-JHU7h98a.js";const r={};function n(c,t){return" 能源消耗 "}const a=e(r,[["render",n]]);export{a as default};
import{_ as e}from"./index-JHU7h98a.js";const r={};function n(c,t){return" 企业能耗 "}const s=e(r,[["render",n]]);export{s as default};
.contentBlock[data-v-8d1ad902]{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff;overflow:auto}table[data-v-8d1ad902],tr[data-v-8d1ad902],th[data-v-8d1ad902],td[data-v-8d1ad902]{font-size:14px;margin:0;padding:0}table[data-v-8d1ad902]{width:100%}table th[data-v-8d1ad902]{background-color:#dfe8f6;text-align:center;padding:5px 10px}table td[data-v-8d1ad902]{text-align:center;background-color:#fff;padding:5px 10px}.btngrounp[data-v-8d1ad902]{width:500px;margin:0 auto;text-align:center}.gc td[data-v-8d1ad902]{background-color:#a6ffa6}.gc td[data-v-8d1ad902]:first-child{background-color:#fff}table.botList td[data-v-8d1ad902]{width:33%;text-align:left;font-weight:bolder}.exlBlock[data-v-8d1ad902]{display:none}@media print{.printHidden[data-v-8d1ad902]{display:none}@page{size:auto;margin:3mm}body[data-v-8d1ad902],html[data-v-8d1ad902]{height:auto!important}}
This diff is collapsed.
const e="FeatureCollection",t=[{type:"Feature",properties:{adcode:120105,name:"河北区",center:[117.201569,39.156632],centroid:[117.213791,39.167182],childrenNum:0,level:"district",acroutes:[1e5,12e4],parent:{adcode:12e4}},geometry:{type:"MultiPolygon",coordinates:[[[[117.233479,39.193053],[117.23228,39.192072],[117.229662,39.18999],[117.224709,39.185531],[117.22398,39.184968],[117.223234,39.185771],[117.221941,39.184696],[117.219982,39.186448],[117.216116,39.191282],[117.213809,39.189857],[117.212702,39.190727],[117.211886,39.191553],[117.211827,39.191717],[117.211723,39.191754],[117.21077,39.192926],[117.210712,39.192959],[117.209953,39.192613],[117.206701,39.190881],[117.204246,39.189603],[117.203495,39.189196],[117.202718,39.188822],[117.199953,39.187383],[117.199165,39.18694],[117.197264,39.186103],[117.191919,39.191924],[117.18996,39.190838],[117.1886,39.190234],[117.183739,39.189147],[117.183512,39.189103],[117.182656,39.190352],[117.181772,39.190328],[117.180478,39.189418],[117.180482,39.189301],[117.1812,39.188383],[117.179528,39.187974],[117.17712,39.187427],[117.17368,39.186699],[117.171782,39.186309],[117.169789,39.185803],[117.169373,39.185665],[117.168905,39.185427],[117.168636,39.185172],[117.168056,39.184512],[117.167553,39.184001],[117.170248,39.182381],[117.171149,39.181823],[117.172093,39.181508],[117.173081,39.181423],[117.176009,39.181957],[117.176773,39.182074],[117.177223,39.182042],[117.177664,39.181954],[117.178063,39.181671],[117.17848,39.180948],[117.178738,39.179954],[117.178808,39.178512],[117.178677,39.176858],[117.178304,39.174236],[117.178408,39.173388],[117.178633,39.172575],[117.179785,39.170172],[117.179941,39.169707],[117.180028,39.169182],[117.180044,39.168413],[117.179603,39.167293],[117.178842,39.1666],[117.177168,39.165616],[117.176129,39.165024],[117.175825,39.164768],[117.175721,39.164374],[117.175903,39.163622],[117.176622,39.162574],[117.177176,39.162056],[117.178893,39.160924],[117.18195,39.15909],[117.18492,39.156656],[117.186481,39.155099],[117.189167,39.151941],[117.190466,39.150332],[117.193082,39.148381],[117.193836,39.147643],[117.194442,39.146993],[117.194737,39.146454],[117.194928,39.145199],[117.194356,39.140028],[117.194008,39.136441],[117.194008,39.135251],[117.194207,39.134669],[117.194761,39.133612],[117.196035,39.132246],[117.19699,39.131463],[117.198193,39.13081],[117.198956,39.1305],[117.200039,39.130451],[117.202482,39.130902],[117.206452,39.132798],[117.208455,39.133394],[117.209773,39.133536],[117.209998,39.133914],[117.210275,39.134234],[117.211107,39.135673],[117.207708,39.136896],[117.206226,39.137593],[117.204209,39.139229],[117.203896,39.139522],[117.203619,39.140155],[117.203515,39.140685],[117.20355,39.141284],[117.203845,39.142126],[117.204626,39.143648],[117.204989,39.144226],[117.205742,39.144916],[117.206402,39.145349],[117.207832,39.145907],[117.211759,39.147274],[117.213648,39.14797],[117.214221,39.148318],[117.214741,39.148785],[117.215072,39.149262],[117.215209,39.14951],[117.215313,39.14997],[117.21534,39.150508],[117.215218,39.151408],[117.21631,39.149808],[117.220922,39.144812],[117.221189,39.144979],[117.228365,39.14952],[117.228772,39.14968],[117.229145,39.149784],[117.229545,39.149832],[117.234887,39.149905],[117.240796,39.149979],[117.243521,39.149699],[117.248607,39.149578],[117.249194,39.149575],[117.249928,39.149546],[117.249572,39.152134],[117.249285,39.154271],[117.248983,39.155509],[117.248784,39.15771],[117.248793,39.157894],[117.248723,39.158397],[117.249209,39.158228],[117.250669,39.158253],[117.251449,39.15831],[117.252543,39.158409],[117.253333,39.158409],[117.25407,39.158492],[117.256094,39.15867],[117.258248,39.158783],[117.259004,39.158866],[117.259942,39.158922],[117.260629,39.159009],[117.260456,39.163268],[117.260534,39.167551],[117.260421,39.16809],[117.260266,39.168398],[117.260056,39.168711],[117.258658,39.169958],[117.256905,39.169032],[117.2564,39.168597],[117.25606,39.16825],[117.255439,39.168163],[117.255029,39.16814],[117.253907,39.168111],[117.251703,39.168094],[117.251059,39.169649],[117.250782,39.170908],[117.246736,39.170414],[117.246519,39.171378],[117.242111,39.170925],[117.240956,39.170751],[117.241841,39.17129],[117.242699,39.171914],[117.243691,39.172739],[117.245184,39.17418],[117.247553,39.176452],[117.249966,39.178452],[117.249616,39.178696],[117.249352,39.178819],[117.24829,39.179612],[117.247268,39.180572],[117.24586,39.181871],[117.244932,39.182763],[117.244621,39.183106],[117.244481,39.183196],[117.242927,39.184603],[117.241616,39.18577],[117.240353,39.186874],[117.239597,39.187429],[117.238136,39.188721],[117.237044,39.189841],[117.235075,39.191679],[117.233862,39.192696],[117.233479,39.193053]]]]}}],o={type:e,features:t};export{o as default,t as features,e as type};
const e="FeatureCollection",t=[{type:"Feature",properties:{adcode:120102,name:"河东区",center:[117.226568,39.122125],centroid:[117.256682,39.122406],childrenNum:0,level:"district",acroutes:[1e5,12e4],parent:{adcode:12e4}},geometry:{type:"MultiPolygon",coordinates:[[[[117.260629,39.159009],[117.259942,39.158922],[117.259005,39.158866],[117.258248,39.158782],[117.256095,39.15867],[117.254071,39.158491],[117.253333,39.158409],[117.252543,39.158409],[117.251449,39.158309],[117.250668,39.158254],[117.249209,39.158229],[117.248723,39.158397],[117.248793,39.157894],[117.248784,39.15771],[117.248982,39.155509],[117.249286,39.154272],[117.249572,39.152134],[117.249928,39.149546],[117.249195,39.149575],[117.248607,39.149578],[117.243521,39.1497],[117.240797,39.149979],[117.234888,39.149905],[117.229545,39.149832],[117.229145,39.149784],[117.228772,39.14968],[117.228365,39.149519],[117.220923,39.144813],[117.21631,39.149808],[117.215218,39.151407],[117.215339,39.150508],[117.215312,39.14997],[117.21521,39.14951],[117.215072,39.149262],[117.214741,39.148786],[117.214221,39.148318],[117.213648,39.14797],[117.211759,39.147275],[117.207832,39.145906],[117.206402,39.145349],[117.205743,39.144917],[117.204989,39.144225],[117.204625,39.143648],[117.203845,39.142126],[117.20355,39.141284],[117.203515,39.140685],[117.20362,39.140155],[117.203896,39.139522],[117.204208,39.139229],[117.206227,39.137593],[117.207709,39.136895],[117.211107,39.135673],[117.210275,39.134233],[117.209998,39.133913],[117.209773,39.133536],[117.211038,39.133673],[117.211852,39.13348],[117.212797,39.132887],[117.213257,39.132028],[117.213456,39.130464],[117.213621,39.128244],[117.214141,39.126429],[117.215465,39.124525],[117.217625,39.121933],[117.219749,39.11979],[117.222299,39.117706],[117.22457,39.115306],[117.227606,39.111742],[117.230397,39.108344],[117.241347,39.09861],[117.242075,39.097478],[117.243454,39.093065],[117.245023,39.089246],[117.24604,39.087921],[117.246518,39.087499],[117.248558,39.086222],[117.252819,39.084064],[117.257067,39.082104],[117.260148,39.080914],[117.265491,39.079926],[117.266977,39.079796],[117.266865,39.080504],[117.266917,39.08103],[117.267108,39.082536],[117.267361,39.084209],[117.267873,39.08529],[117.269307,39.086807],[117.271176,39.088962],[117.272332,39.09053],[117.274235,39.088794],[117.275339,39.089929],[117.276339,39.090772],[117.27799,39.090707],[117.278843,39.090591],[117.278782,39.08938],[117.278843,39.088163],[117.279878,39.088542],[117.279945,39.086884],[117.285023,39.087132],[117.286093,39.087154],[117.286137,39.087525],[117.286268,39.089092],[117.28658,39.089072],[117.292922,39.087651],[117.298183,39.086475],[117.297183,39.083746],[117.298261,39.083438],[117.297991,39.082671],[117.298401,39.082548],[117.30011,39.082114],[117.301949,39.086269],[117.304819,39.085572],[117.306128,39.087938],[117.306911,39.089376],[117.307634,39.092087],[117.306907,39.092241],[117.306847,39.092418],[117.30808,39.096358],[117.306512,39.09666],[117.306459,39.097831],[117.309654,39.100946],[117.302911,39.102564],[117.294688,39.104116],[117.275914,39.108052],[117.27582,39.108069],[117.27523,39.108951],[117.274403,39.111291],[117.273953,39.112606],[117.272762,39.116906],[117.272336,39.117965],[117.271866,39.119498],[117.271276,39.121515],[117.269869,39.126367],[117.269939,39.127109],[117.270294,39.127857],[117.271103,39.128833],[117.271762,39.129324],[117.27624,39.12981],[117.281317,39.130449],[117.283326,39.130889],[117.286647,39.13174],[117.279937,39.147354],[117.284907,39.148224],[117.293404,39.15062],[117.290831,39.155546],[117.290315,39.157142],[117.287398,39.158474],[117.281389,39.160737],[117.27684,39.162999],[117.27242,39.161728],[117.271211,39.161345],[117.267301,39.160431],[117.264599,39.159687],[117.262382,39.159096],[117.261654,39.159018],[117.260629,39.159009]]]]}}],o={type:e,features:t};export{o as default,t as features,e as type};
const e="FeatureCollection",t=[{type:"Feature",properties:{adcode:120101,name:"和平区",center:[117.195907,39.118327],centroid:[117.196207,39.118993],childrenNum:0,level:"district",acroutes:[1e5,12e4],parent:{adcode:12e4}},geometry:{type:"MultiPolygon",coordinates:[[[[117.222506,39.117484],[117.222299,39.117706],[117.219749,39.11979],[117.217625,39.121933],[117.215465,39.124525],[117.21414,39.126429],[117.21362,39.128244],[117.213457,39.130464],[117.213257,39.132029],[117.212797,39.132888],[117.211853,39.13348],[117.211038,39.133673],[117.208454,39.133394],[117.206452,39.132798],[117.202482,39.130902],[117.200039,39.130451],[117.198956,39.1305],[117.198194,39.13081],[117.196989,39.131463],[117.196034,39.132246],[117.194762,39.133612],[117.194206,39.134669],[117.193748,39.13457],[117.193202,39.134467],[117.192316,39.134329],[117.19224,39.134377],[117.19205,39.135337],[117.191868,39.135871],[117.191634,39.136081],[117.191442,39.13615],[117.190395,39.136283],[117.190395,39.136737],[117.190355,39.136844],[117.184923,39.136998],[117.181168,39.13709],[117.181003,39.133829],[117.180872,39.132361],[117.180681,39.130134],[117.180491,39.127971],[117.180301,39.126091],[117.180222,39.125279],[117.180014,39.123282],[117.179953,39.122756],[117.179901,39.122444],[117.179806,39.121257],[117.179744,39.119716],[117.179676,39.117129],[117.179659,39.114404],[117.179546,39.110206],[117.179535,39.109498],[117.179422,39.104469],[117.179292,39.10199],[117.179846,39.101975],[117.180722,39.101857],[117.181527,39.101777],[117.182402,39.101671],[117.184603,39.101654],[117.185314,39.101527],[117.186535,39.101294],[117.187956,39.101044],[117.188804,39.100943],[117.190052,39.100954],[117.190842,39.101021],[117.191568,39.101099],[117.194109,39.101441],[117.194645,39.101488],[117.195295,39.10153],[117.196291,39.101576],[117.196595,39.101624],[117.196508,39.101832],[117.19637,39.102053],[117.196187,39.102198],[117.196319,39.102307],[117.197413,39.102917],[117.197651,39.103116],[117.198189,39.103349],[117.198756,39.103794],[117.198784,39.103791],[117.199144,39.104065],[117.199147,39.104101],[117.200182,39.104914],[117.201491,39.105502],[117.202341,39.106439],[117.202991,39.107033],[117.204364,39.107998],[117.205739,39.108917],[117.207065,39.10918],[117.207619,39.109258],[117.208114,39.109374],[117.209631,39.110284],[117.210588,39.110914],[117.210756,39.110994],[117.211382,39.111424],[117.212423,39.111813],[117.213072,39.11199],[117.213118,39.11204],[117.213185,39.112207],[117.213264,39.112711],[117.213255,39.1131],[117.213273,39.113643],[117.213297,39.113694],[117.213568,39.113866],[117.215014,39.114402],[117.215803,39.114652],[117.216688,39.114779],[117.218171,39.115479],[117.219024,39.115862],[117.219893,39.116287],[117.22111,39.116822],[117.221674,39.117116],[117.222506,39.117484]]]]}}],o={type:e,features:t};export{o as default,t as features,e as type};
const e="FeatureCollection",t=[{type:"Feature",properties:{adcode:120103,name:"河西区",center:[117.217536,39.101897],centroid:[117.232522,39.072613],childrenNum:0,level:"district",acroutes:[1e5,12e4],parent:{adcode:12e4}},geometry:{type:"MultiPolygon",coordinates:[[[[117.26729,39.039449],[117.267069,39.03996],[117.266953,39.040048],[117.266505,39.041231],[117.269791,39.041989],[117.272479,39.042778],[117.272532,39.042953],[117.272261,39.043423],[117.270475,39.044921],[117.268985,39.047166],[117.267691,39.050364],[117.278046,39.05354],[117.279183,39.051464],[117.280462,39.048924],[117.286822,39.051028],[117.284402,39.055491],[117.283094,39.058995],[117.280571,39.058304],[117.280475,39.059302],[117.282943,39.059446],[117.285537,39.059778],[117.288004,39.060122],[117.288473,39.0602],[117.287952,39.062467],[117.287621,39.063826],[117.2871,39.066071],[117.286543,39.067156],[117.285891,39.06894],[117.285839,39.069735],[117.285995,39.070468],[117.286205,39.07076],[117.286674,39.071286],[117.288701,39.072478],[117.292076,39.075414],[117.292423,39.07587],[117.29245,39.077424],[117.284945,39.077747],[117.277807,39.078765],[117.274304,39.07935],[117.267986,39.079705],[117.265492,39.079926],[117.260149,39.080914],[117.257067,39.082104],[117.25282,39.084064],[117.248557,39.086223],[117.246518,39.0875],[117.24604,39.087921],[117.245023,39.089246],[117.243454,39.093064],[117.242074,39.097477],[117.241346,39.098611],[117.230398,39.108343],[117.227605,39.111742],[117.224571,39.115306],[117.222506,39.117484],[117.221674,39.117117],[117.22111,39.116822],[117.219892,39.116287],[117.219024,39.115861],[117.218171,39.115478],[117.216687,39.114778],[117.215804,39.114652],[117.215013,39.114402],[117.213568,39.113866],[117.213273,39.113643],[117.213264,39.112711],[117.213184,39.112207],[117.213072,39.11199],[117.212422,39.111813],[117.211382,39.111424],[117.210756,39.110994],[117.210588,39.110914],[117.209631,39.110284],[117.208114,39.109373],[117.207618,39.109258],[117.207065,39.10918],[117.205738,39.108917],[117.204364,39.107998],[117.202991,39.107033],[117.202341,39.106439],[117.201491,39.105502],[117.200182,39.104914],[117.199147,39.104101],[117.199145,39.104065],[117.198756,39.103794],[117.198189,39.103349],[117.19765,39.103116],[117.197413,39.102918],[117.196318,39.102307],[117.196188,39.102198],[117.196369,39.102054],[117.196595,39.101623],[117.196291,39.101576],[117.195295,39.10153],[117.194108,39.10144],[117.191568,39.101099],[117.190842,39.101021],[117.190051,39.100953],[117.188804,39.100943],[117.187956,39.101044],[117.186535,39.101293],[117.185314,39.101527],[117.184603,39.101654],[117.182402,39.101671],[117.181528,39.101777],[117.180722,39.101857],[117.179845,39.101975],[117.179292,39.10199],[117.179248,39.10103],[117.179232,39.09918],[117.17923,39.098012],[117.179213,39.097483],[117.179065,39.097291],[117.179082,39.09605],[117.17911,39.095324],[117.179239,39.094067],[117.179334,39.09326],[117.179394,39.092613],[117.179463,39.092096],[117.179688,39.089798],[117.179723,39.089329],[117.17993,39.088048],[117.18019,39.086771],[117.180658,39.084751],[117.181082,39.083112],[117.181541,39.081277],[117.18213,39.078706],[117.182452,39.077016],[117.182728,39.075623],[117.183066,39.074205],[117.183465,39.072876],[117.18382,39.072002],[117.184096,39.07148],[117.184451,39.070993],[117.185456,39.069719],[117.185863,39.069314],[117.187007,39.068465],[117.187491,39.067999],[117.187864,39.067682],[117.188532,39.066925],[117.189005,39.067091],[117.192075,39.068052],[117.196286,39.069329],[117.203879,39.071719],[117.204902,39.07057],[117.208524,39.066513],[117.212477,39.062056],[117.214145,39.060193],[117.213847,39.06007],[117.213334,39.059961],[117.212746,39.06002],[117.211884,39.060401],[117.21158,39.060472],[117.211352,39.060467],[117.211204,39.060356],[117.211172,39.060245],[117.211152,39.05842],[117.211184,39.058155],[117.211444,39.057766],[117.211747,39.057592],[117.212668,39.057234],[117.213089,39.057137],[117.215178,39.057181],[117.216943,39.057065],[117.217713,39.056218],[117.217784,39.053223],[117.217725,39.034319],[117.218849,39.034103],[117.221346,39.033657],[117.222965,39.033469],[117.229496,39.03307],[117.232907,39.033152],[117.233742,39.033259],[117.234043,39.033194],[117.234148,39.033362],[117.234228,39.033205],[117.23457,39.03337],[117.243159,39.034847],[117.250115,39.036267],[117.251907,39.036993],[117.253,39.037226],[117.2542,39.03716],[117.259906,39.038062],[117.26729,39.039449]]]]}}],o={type:e,features:t};export{o as default,t as features,e as type};
This diff is collapsed.
.contentBlock[data-v-7bb29aab]{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff;overflow:auto}table[data-v-7bb29aab],tr[data-v-7bb29aab],th[data-v-7bb29aab],td[data-v-7bb29aab]{font-size:14px;margin:0;padding:0}table[data-v-7bb29aab]{width:100%}table th[data-v-7bb29aab]{background-color:#dfe8f6;text-align:center;padding:5px 10px}table td[data-v-7bb29aab]{text-align:center;background-color:#fff;padding:5px 10px}.btngrounp[data-v-7bb29aab]{width:300px;margin:0 auto;text-align:center}.exlBlock[data-v-7bb29aab]{display:none}@media print{.printHidden[data-v-7bb29aab]{display:none}@page{size:auto;margin:3mm}body[data-v-7bb29aab],html[data-v-7bb29aab]{height:auto!important}}
.moduleCard[data-v-7e452615]{width:auto;overflow:auto;padding:0}.moduleCard[data-v-7e452615] .el-card__body{padding:0}.pagination[data-v-7e452615]{padding:4px;margin-left:20px;height:30px;vertical-align:middle}[data-v-7e452615] .el-table__body tr:hover>td{background:linear-gradient(to top,#00c6ff,#fff)!important}[data-v-7e452615] .el-table__body tr.current-row>td{background-color:#92cbf1!important}.div-time-picker[data-v-7e452615]{padding-top:6px;margin-left:30px;display:flex}.card-contianer[data-v-7e452615]{width:calc(100%-1px);font-size:medium;height:60px;overflow:hidden}.card-contianer .div-header[data-v-7e452615]{width:100%;margin:5px;height:80px}.card-contianer .div-list[data-v-7e452615]{padding-top:10px;widows:100%}.card-contianer .div-list .span-time[data-v-7e452615]{font-family:simhei;font-weight:700;font-size:medium}.card-contianer .div-button[data-v-7e452615]{text-align:right;padding-top:2px;padding-left:15px;padding-right:0;height:80px}.card-contianer .div-button .el-button-button[data-v-7e452615]{margin-top:5px;width:80px}.card-contianer .div-button .div-autoRefresh[data-v-7e452615]{background-color:#fff;color:#409eff;display:flex;margin-top:5px;border-radius:var(--el-border-radius-base);padding:6px 0;font-size:14px;height:20px;overflow:hidden}.card-contianer .div-button .switch-autoRefresh[data-v-7e452615]{margin-left:0;margin-top:-6px}.card-form[data-v-7e452615]{width:100%;height:300px}.div-dropdown[data-v-7e452615]{padding-top:7px;height:50px;padding-left:10px}.div-dropdown .el-dropdown-link[data-v-7e452615]{margin-top:5px;color:#fff}.text-center[data-v-7e452615]{text-align:center}[data-v-7e452615] .div-form-img,[data-v-7e452615] .col-center{display:flex;align-items:center;justify-content:center}
This diff is collapsed.
import{d as xe,r as u,b as m,s as ie,l as Y,o as Ee,a as Ie,H as Se,c as p,z as Te,e as g,f as L,j as r,w as d,i as re,F as V,g as K,h as M,u as E,p as W,m as Q,v as X,B as De,C as Le,q as Ve,x as ke,_ as Fe}from"./index-JHU7h98a.js";import{z as Z}from"./zh-cn-CHEiFvXs.js";import{g as Ne}from"./utils-D2jWEAG0.js";import{C as ze}from"./CfgSupply-DVak_OLU.js";/* empty css */const Be=k=>(Ve("data-v-c9877d71"),k=k(),ke(),k),He={class:"div-header"},Ue=Be(()=>re("div",{id:"chart",style:{width:"99%",height:"690px"}},null,-1)),Ae=xe({__name:"HisBoilerPage",setup(k){const F=u(1);var b=u(30);const ne=u(!1),se=u(!1),P=u(),I=m([]);var N=m([]),z=m([]);const S=u([]),R=m([]),j=u([]),v=u(!0),B=u(!0),O=u(500),H=u(),h=m({}),$=u([]),ee=u([]),T=u(!1),de=u("换热站历史数据自定义列"),ue=l=>{T.value=!1,v?(B.value=!0,ae(),le()):q()};ce();function ce(){var l=ie.getters.getEnterprise();l&&(H.value=l[0].enterpriseId)}function G(){O.value=window.innerHeight-232}function pe({order:l,prop:t}){!l||h[t]===l?h[t]=null:h[t]=l;let s="",e="",a="";for(const n in h)h[n]=="ascending"?a="ASC":h[n]=="descending"&&(a="DESC"),n==="name"?s="BoilerName":n==="gatherTime"&&(s="GatherTime"),e===""?e=e+s+" "+a:e=e+","+s+" "+a,o.sort=e;D()}function fe({column:l}){h[l.property]&&(l.order=h[l.property])}for(var _=new Date,te=_.getFullYear(),w=0,c=[_.getMonth()+1,_.getDate(),_.getHours(),_.getMinutes(),_.getSeconds()],C=0;C<c.length;C++)c[C]>=1&&c[C]<=9&&(c[C]="0"+c[C]);w=c[1]-1,w>=1&&w<=9&&(w="0"+w);var U=sessionStorage.getItem("DeviceQueryStart");U||(U=te+"-"+c[0]+w+" "+c[2]+":"+c[3]+":"+c[4],sessionStorage.setItem("DeviceQueryStart",U));var A=sessionStorage.getItem("DeviceQueryEnd");A||(A=te+"-"+c[0]+"-"+c[1]+" "+c[2]+":"+c[3]+":"+c[4],sessionStorage.setItem("DeviceQueryEnd",A));const o=m({enterpriseId:H.value,supplyId:[],deviceType:2,id:[],startTime:U,endTime:A,interval:2,sort:"",pageIndex:0,pageCount:30});function ve(){var l=ie.getters.getEnterprise();l&&(l.forEach(t=>{t.enterpriseId===H.value&&(t.enterpriseId==="9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()?t.serviceCenterList.forEach(s=>{s.supplyList.forEach(e=>{e.boilerList.forEach(a=>{I.push({value:a.boilerId,label:a.description})})})}):t.supplyList.forEach(s=>{s.boilerList.forEach(e=>{I.push({value:e.boilerId,label:e.description})})}))}),I.forEach(t=>{o.id.push(t.value)}))}ve(),D();function D(){B.value=!0,sessionStorage.setItem("DeviceQueryStart",o.startTime),sessionStorage.setItem("DeviceQueryEnd",o.endTime),ae(),le(),q()}function ae(){Y.post("/api/boiler/Title",{enterpriseId:H.value,deviceType:2}).then(l=>{$.value=l.data.otherList;var t=new Array;l.data.frozenList.forEach(e=>{t.push({field:e.field[0].toLowerCase()+e.field.substring(1),title:e.title,sortable:e.sortable,width:e.width,filter:e.filter,color:e.color,isVisible:!0})}),N=t;var s=new Array;l.data.otherList.forEach(e=>{s.push({alias:e.alias,backColor:e.backColor,baseId:e.baseId,decimalPoint:e.decimalPoint,enName:e.enName[0].toLowerCase()+e.enName.substring(1),orderNum:e.orderNum,width:e.width,isVisible:e.isVisible})}),z=s})}function le(){F.value==1?(o.pageIndex=0,o.pageCount=b.value):(o.pageIndex=(F.value-1)*b.value+1,o.pageCount=b.value-1),console.log(o),Y.post("/api/boiler/History",o).then(l=>{console.log(l),S.value=null,l.data!==null&&(S.value=l.data.dataInfoList,P.value=l.data.rowCount,console.log(S.value)),(l.data===null||o.id.length<1)&&(S.value=null,P.value=0),B.value=!1})}function ge({row:l,column:t,rowIndex:s,columnIndex:e}){let a={};return a["padding-left"]="0px",a["padding-right"]="0px",a.borderColor="#97d5fd",a.padding="0px",N.forEach(n=>{n.field===t.property&&(a["background-color"]="#"+n.color)}),z.forEach(n=>{n.enName===t.property&&(a["background-color"]="#"+n.backColor)}),a}function he({row:l,column:t,rowIndex:s,columnIndex:e}){let a;return N.forEach(n=>{if(n.field===t.property){var f=n.color=="FFFFFF"?"d9f1ff":n.color;a={"background-color":"#"+f,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"}}}),z.forEach(n=>{if(n.enName===t.property){var f=n.backColor=="FFFFFF"?"d9f1ff":n.backColor;a={"background-color":"#"+f,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"}}}),a}async function me(){sessionStorage.setItem("DeviceQueryStart",o.startTime),sessionStorage.setItem("DeviceQueryEnd",o.endTime),o.pageIndex=0,o.pageCount=1e5,o.interval===void 0&&(o.interval=2);var l=Ne("锅炉历史数据");await Y.post("/api/boiler/hisExport",o,"正在导出数据....",{responseType:"blob"}).then(t=>{try{const s=new Blob([t]);if("download"in document.createElement("a")){const e=document.createElement("a");e.download=l,e.style.display="none",e.href=URL.createObjectURL(s),document.body.appendChild(e),e.click(),URL.revokeObjectURL(e.href),document.body.removeChild(e)}else navigator.msSaveBlob(s,l)}catch(s){console.log(s)}})}Ee(()=>{G(),window.addEventListener("resize",G)}),Ie(()=>{window.removeEventListener("resize",G)});function q(){if(v.value===!1){const l=m([]),t=m([]),s=u();let e="";e=o.id[0],o.id=[],o.id.push(e),o.pageCount=999999,I.forEach(a=>{a.value===e&&(s.value=a.label)}),Y.post("/api/boiler/Curve",o).then(a=>{ee.value=a.data.title,a.data.title.forEach(f=>{t.push(f.alias);let x=new Array;a.data.data.forEach(y=>{x.push(y[f.enName[0].toLowerCase()+f.enName.substring(1)])}),R.length=0,a.data.data.forEach(y=>{R.push(y.gatherTime)}),l.push({name:f.alias,type:"line",data:x})}),j.value={title:{text:s.value+"历史数据"},tooltip:{trigger:"axis"},legend:{data:t},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!1,data:R},yAxis:{type:"value",axisLabel:{formatter:"{value} ℃"}},series:l},console.log(j.value);var n=Se(document.getElementById("chart"));n.setOption(j.value),window.addEventListener("resize",()=>{n.resize()})})}}return(l,t)=>{const s=p("el-switch"),e=p("el-form-item"),a=p("el-option"),n=p("el-select"),f=p("el-date-picker"),x=p("el-config-provider"),y=p("el-button"),J=p("el-card"),oe=p("el-table-column"),be=p("el-table"),ye=p("el-pagination"),_e=p("el-footer"),we=Te("loading");return g(),L(V,null,[r(J,{class:"card-contianer"},{default:d(()=>[re("div",He,[r(e,null,{default:d(()=>[r(s,{modelValue:v.value,"onUpdate:modelValue":t[0]||(t[0]=i=>v.value=i),"active-text":"表格","inactive-text":"曲线图",style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949","min-width":"130px"},onChange:q},null,8,["modelValue"])]),_:1}),r(e,{label:"锅炉:"},{default:d(()=>[r(n,{modelValue:o.id,"onUpdate:modelValue":t[1]||(t[1]=i=>o.id=i),multiple:"true","collapse-tags":"",placeholder:"请选择",style:{"min-width":"170px"}},{default:d(()=>[(g(!0),L(V,null,K(I,i=>(g(),M(a,{label:i.label,value:i.value},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1}),r(e,{label:"开始时间:"},{default:d(()=>[r(x,{locale:E(Z)},{default:d(()=>[r(f,{modelValue:o.startTime,"onUpdate:modelValue":t[2]||(t[2]=i=>o.startTime=i),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"选择开始时间",style:{"min-width":"180px"}},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1}),r(e,{label:"结束时间:"},{default:d(()=>[r(x,{locale:E(Z)},{default:d(()=>[r(f,{modelValue:o.endTime,"onUpdate:modelValue":t[3]||(t[3]=i=>o.endTime=i),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"选择结束时间",style:{"min-width":"180px"}},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1}),r(e,{label:"时间间隔"},{default:d(()=>[r(n,{modelValue:o.interval,"onUpdate:modelValue":t[4]||(t[4]=i=>o.interval=i),placeholder:"1小时/次",style:{"min-width":"105px"},clearable:""},{default:d(()=>[r(a,{label:"全部",value:0}),r(a,{label:"1分钟/次",value:1}),r(a,{label:"1小时/次",value:2}),r(a,{label:"1天/次",value:3}),r(a,{label:"1周/次",value:4})]),_:1},8,["modelValue"])]),_:1}),r(e,null,{default:d(()=>[r(y,{type:"primary",onClick:D,style:{"min-width":"70px"}},{default:d(()=>[W("查询")]),_:1})]),_:1}),r(e,null,{default:d(()=>[r(y,{type:"primary",onClick:t[5]||(t[5]=i=>T.value=!T.value),style:{"min-width":"70px"}},{default:d(()=>[W("自定义列")]),_:1})]),_:1}),r(e,null,{default:d(()=>[r(y,{type:"primary",onClick:me,style:{"min-width":"70px"}},{default:d(()=>[W("导出表格")]),_:1})]),_:1})])]),_:1}),Q(r(J,{class:"moduleCard",height:O.value},{default:d(()=>[Q((g(),M(be,{data:S.value,height:O.value,"cell-style":ge,id:"out-table",border:"","highlight-current-row":"","header-cell-style":he,onSortChange:pe,"header-cell-class-name":fe},{default:d(()=>[(g(!0),L(V,null,K(E(N),(i,Ce)=>(g(),M(oe,{prop:i.field,label:i.title,width:i.width,sortable:i.field==="name"||i.field==="gatherTime",fixed:""},null,8,["prop","label","width","sortable"]))),256)),(g(!0),L(V,null,K(E(z),(i,Ce)=>(g(),L(V,null,[i.isVisible?(g(),M(oe,{key:0,prop:i.enName,label:i.alias,width:i.width},null,8,["prop","label","width"])):De("",!0)],64))),256))]),_:1},8,["data","height"])),[[we,B.value]])]),_:1},8,["height"]),[[X,v.value]]),Q(r(_e,{style:{height:"8px"}},{default:d(()=>[r(x,{locale:E(Z)},{default:d(()=>[r(ye,{"current-page":F.value,"onUpdate:currentPage":t[6]||(t[6]=i=>F.value=i),"page-size":E(b),"onUpdate:pageSize":t[7]||(t[7]=i=>Le(b)?b.value=i:b=i),"page-sizes":[30,40,50,100,200,300],small:!0,disabled:ne.value,background:se.value,layout:"total, sizes, prev, pager, next, jumper",total:P.value,onSizeChange:D,onCurrentChange:D,class:"pagination"},null,8,["current-page","page-size","disabled","background","total"])]),_:1},8,["locale"])]),_:1},512),[[X,v.value]]),Q(r(J,null,{default:d(()=>[Ue]),_:1},512),[[X,v.value===!1]]),r(ze,{modelValue:T.value,"onUpdate:modelValue":t[8]||(t[8]=i=>T.value=i),onOnChangeDialog:ue,titleData:v.value?$.value:ee.value,height:500,width:950,deviceType:o.deviceType,title:de.value,cfgType:v.value?0:1},null,8,["modelValue","titleData","deviceType","title","cfgType"])],64)}}}),je=Fe(Ae,[["__scopeId","data-v-c9877d71"]]);export{je as default};
.moduleCard[data-v-c9877d71]{width:auto;overflow:auto;padding:0}.moduleCard[data-v-c9877d71] .el-card__body{padding:0}.pagination[data-v-c9877d71]{padding:4px;margin-left:20px;height:30px;vertical-align:middle}[data-v-c9877d71] .el-table__body tr:hover>td{background:linear-gradient(to top,#00c6ff,#fff)!important}[data-v-c9877d71] .el-table__body tr.current-row>td{background-color:#92cbf1!important}.card-contianer[data-v-c9877d71]{width:auto;height:70px}.card-contianer .div-header[data-v-c9877d71]{width:100%;display:flex;margin:20px}.el-form-item[data-v-c9877d71]{margin-top:-20px;margin-right:30px}
import{d as xe,r as u,b as m,s as ie,l as Y,o as Ee,a as Ie,H as Se,c as p,z as De,e as g,f as L,j as r,w as d,i as re,F as V,g as K,h as M,u as E,p as W,m as Q,v as X,B as Te,C as Le,q as Ve,x as ke,_ as Fe}from"./index-JHU7h98a.js";import{z as Z}from"./zh-cn-CHEiFvXs.js";import{g as Ne}from"./utils-D2jWEAG0.js";import{C as ze}from"./CfgSupply-DVak_OLU.js";/* empty css */const He=k=>(Ve("data-v-9498bae9"),k=k(),ke(),k),Ue={class:"div-header"},Ae=He(()=>re("div",{id:"chart",style:{width:"99%",height:"690px"}},null,-1)),Be=xe({__name:"HisElecPage",setup(k){const F=u(1);var b=u(30);const ne=u(!1),se=u(!1),P=u(),I=m([]);var N=m([]),z=m([]);const S=u([]),R=m([]),j=u([]),v=u(!0),H=u(!0),O=u(500),U=u(),h=m({}),$=u([]),ee=u([]),D=u(!1),de=u("电表历史数据自定义列"),ue=l=>{D.value=!1,v?(H.value=!0,ae(),le()):q()};ce();function ce(){var l=ie.getters.getEnterprise();l&&(U.value=l[0].enterpriseId)}function G(){O.value=window.innerHeight-232}function pe({order:l,prop:t}){!l||h[t]===l?h[t]=null:h[t]=l;let s="",e="",a="";for(const n in h)h[n]=="ascending"?a="ASC":h[n]=="descending"&&(a="DESC"),n==="name"?s="DeviceName":n==="gatherTime"&&(s="GatherTime"),e===""?e=e+s+" "+a:e=e+","+s+" "+a,o.sort=e;T()}function fe({column:l}){h[l.property]&&(l.order=h[l.property])}for(var _=new Date,te=_.getFullYear(),w=0,c=[_.getMonth()+1,_.getDate(),_.getHours(),_.getMinutes(),_.getSeconds()],C=0;C<c.length;C++)c[C]>=1&&c[C]<=9&&(c[C]="0"+c[C]);w=c[1]-1,w>=1&&w<=9&&(w="0"+w);var A=sessionStorage.getItem("DeviceQueryStart");A||(A=te+"-"+c[0]+"-"+w+" "+c[2]+":"+c[3]+":"+c[4],sessionStorage.setItem("DeviceQueryStart",A));var B=sessionStorage.getItem("DeviceQueryEnd");B||(B=te+"-"+c[0]+"-"+c[1]+" "+c[2]+":"+c[3]+":"+c[4],sessionStorage.setItem("DeviceQueryEnd",B));const o=m({enterpriseId:U.value,supplyId:[],deviceType:7,id:[],startTime:A,endTime:B,interval:2,sort:"",pageIndex:0,pageCount:30});function ve(){var l=ie.getters.getEnterprise();l&&(l.forEach(t=>{t.enterpriseId===U.value&&(t.enterpriseId==="9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()?t.serviceCenterList.forEach(s=>{s.supplyList.forEach(e=>{e.elecList.forEach(a=>{I.push({value:a.deviceId,label:a.description})})})}):t.supplyList.forEach(s=>{s.elecList.forEach(e=>{I.push({value:e.deviceId,label:e.description})})}))}),I.forEach(t=>{o.id.push(t.value)}))}ve(),T();function T(){H.value=!0,sessionStorage.setItem("DeviceQueryStart",o.startTime),sessionStorage.setItem("DeviceQueryEnd",o.endTime),ae(),le(),q()}function ae(){Y.post("/api/device/Title",{enterpriseId:U.value,deviceType:7}).then(l=>{$.value=l.data.otherList;var t=new Array;l.data.frozenList.forEach(e=>{t.push({field:e.field[0].toLowerCase()+e.field.substring(1),title:e.title,sortable:e.sortable,width:e.width,filter:e.filter,color:e.color,isVisible:!0})}),N=t;var s=new Array;l.data.otherList.forEach(e=>{s.push({alias:e.alias,backColor:e.backColor,baseId:e.baseId,decimalPoint:e.decimalPoint,enName:e.enName[0].toLowerCase()+e.enName.substring(1),orderNum:e.orderNum,width:e.width,isVisible:e.isVisible})}),z=s})}function le(){F.value==1?(o.pageIndex=0,o.pageCount=b.value):(o.pageIndex=(F.value-1)*b.value+1,o.pageCount=b.value-1),Y.post("/api/device/History",o).then(l=>{console.log(l),S.value=null,l.data!==null&&(S.value=l.data.dataInfoList,P.value=l.data.rowCount,console.log(S.value)),(l.data===null||o.id.length<1)&&(S.value=null,P.value=0),H.value=!1})}function ge({row:l,column:t,rowIndex:s,columnIndex:e}){let a={};return a["padding-left"]="0px",a["padding-right"]="0px",a.borderColor="#97d5fd",a.padding="0px",N.forEach(n=>{n.field===t.property&&(a["background-color"]="#"+n.color)}),z.forEach(n=>{n.enName===t.property&&(a["background-color"]="#"+n.backColor)}),a}function he({row:l,column:t,rowIndex:s,columnIndex:e}){let a;return N.forEach(n=>{if(n.field===t.property){var f=n.color=="FFFFFF"?"d9f1ff":n.color;a={"background-color":"#"+f,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"}}}),z.forEach(n=>{if(n.enName===t.property){var f=n.backColor=="FFFFFF"?"d9f1ff":n.backColor;a={"background-color":"#"+f,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"}}}),a}async function me(){sessionStorage.setItem("DeviceQueryStart",o.startTime),sessionStorage.setItem("DeviceQueryEnd",o.endTime),o.pageIndex=0,o.pageCount=1e5,o.interval===void 0&&(o.interval=2);var l=Ne("电表历史数据");await Y.post("/api/device/hisExport",o,"正在导出数据....",{responseType:"blob"}).then(t=>{try{const s=new Blob([t]);if("download"in document.createElement("a")){const e=document.createElement("a");e.download=l,e.style.display="none",e.href=URL.createObjectURL(s),document.body.appendChild(e),e.click(),URL.revokeObjectURL(e.href),document.body.removeChild(e)}else navigator.msSaveBlob(s,l)}catch(s){console.log(s)}})}Ee(()=>{G(),window.addEventListener("resize",G)}),Ie(()=>{window.removeEventListener("resize",G)});function q(){if(v.value===!1){const l=m([]),t=m([]),s=u();let e="";e=o.id[0],o.id=[],o.id.push(e),o.pageCount=999999,I.forEach(a=>{a.value===e&&(s.value=a.label)}),Y.post("/api/device/Curve",o).then(a=>{console.log(a),ee.value=a.data.title,a.data.title.forEach(f=>{t.push(f.alias);let x=new Array;a.data.data.forEach(y=>{x.push(y[f.enName[0].toLowerCase()+f.enName.substring(1)])}),R.length=0,a.data.data.forEach(y=>{R.push(y.gatherTime)}),l.push({name:f.alias,type:"line",data:x})}),j.value={title:{text:s.value+"历史数据"},tooltip:{trigger:"axis"},legend:{data:t},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!1,data:R},yAxis:{type:"value",axisLabel:{formatter:"{value}A"}},series:l},console.log(j.value);var n=Se(document.getElementById("chart"));n.setOption(j.value),window.addEventListener("resize",()=>{n.resize()})})}}return(l,t)=>{const s=p("el-switch"),e=p("el-form-item"),a=p("el-option"),n=p("el-select"),f=p("el-date-picker"),x=p("el-config-provider"),y=p("el-button"),J=p("el-card"),oe=p("el-table-column"),be=p("el-table"),ye=p("el-pagination"),_e=p("el-footer"),we=De("loading");return g(),L(V,null,[r(J,{class:"card-contianer"},{default:d(()=>[re("div",Ue,[r(e,null,{default:d(()=>[r(s,{modelValue:v.value,"onUpdate:modelValue":t[0]||(t[0]=i=>v.value=i),"active-text":"表格","inactive-text":"曲线图",style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949","min-width":"130px"},onChange:q},null,8,["modelValue"])]),_:1}),r(e,{label:"选择设备:"},{default:d(()=>[r(n,{modelValue:o.id,"onUpdate:modelValue":t[1]||(t[1]=i=>o.id=i),multiple:"true","collapse-tags":"",placeholder:"请选择",style:{"min-width":"170px"}},{default:d(()=>[(g(!0),L(V,null,K(I,i=>(g(),M(a,{label:i.label,value:i.value},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1}),r(e,{label:"开始时间:"},{default:d(()=>[r(x,{locale:E(Z)},{default:d(()=>[r(f,{modelValue:o.startTime,"onUpdate:modelValue":t[2]||(t[2]=i=>o.startTime=i),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"选择开始时间",style:{"min-width":"180px"}},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1}),r(e,{label:"结束时间:"},{default:d(()=>[r(x,{locale:E(Z)},{default:d(()=>[r(f,{modelValue:o.endTime,"onUpdate:modelValue":t[3]||(t[3]=i=>o.endTime=i),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"选择结束时间",style:{"min-width":"180px"}},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1}),r(e,{label:"时间间隔"},{default:d(()=>[r(n,{modelValue:o.interval,"onUpdate:modelValue":t[4]||(t[4]=i=>o.interval=i),placeholder:"1小时/次",style:{"min-width":"105px"},clearable:""},{default:d(()=>[r(a,{label:"全部",value:0}),r(a,{label:"1分钟/次",value:1}),r(a,{label:"1小时/次",value:2}),r(a,{label:"1天/次",value:3}),r(a,{label:"1周/次",value:4})]),_:1},8,["modelValue"])]),_:1}),r(e,null,{default:d(()=>[r(y,{type:"primary",onClick:T,style:{"min-width":"70px"}},{default:d(()=>[W("查询")]),_:1})]),_:1}),r(e,null,{default:d(()=>[r(y,{type:"primary",onClick:t[5]||(t[5]=i=>D.value=!D.value),style:{"min-width":"70px"}},{default:d(()=>[W("自定义列")]),_:1})]),_:1}),r(e,null,{default:d(()=>[r(y,{type:"primary",onClick:me,style:{"min-width":"70px"}},{default:d(()=>[W("导出表格")]),_:1})]),_:1})])]),_:1}),Q(r(J,{class:"moduleCard",height:O.value},{default:d(()=>[Q((g(),M(be,{data:S.value,height:O.value,"cell-style":ge,id:"out-table",border:"","highlight-current-row":"","header-cell-style":he,onSortChange:pe,"header-cell-class-name":fe},{default:d(()=>[(g(!0),L(V,null,K(E(N),(i,Ce)=>(g(),M(oe,{prop:i.field,label:i.title,width:i.width,sortable:i.field==="name"||i.field==="gatherTime",fixed:""},null,8,["prop","label","width","sortable"]))),256)),(g(!0),L(V,null,K(E(z),(i,Ce)=>(g(),L(V,null,[i.isVisible?(g(),M(oe,{key:0,prop:i.enName,label:i.alias,width:i.width},null,8,["prop","label","width"])):Te("",!0)],64))),256))]),_:1},8,["data","height"])),[[we,H.value]])]),_:1},8,["height"]),[[X,v.value]]),Q(r(_e,{style:{height:"8px"}},{default:d(()=>[r(x,{locale:E(Z)},{default:d(()=>[r(ye,{"current-page":F.value,"onUpdate:currentPage":t[6]||(t[6]=i=>F.value=i),"page-size":E(b),"onUpdate:pageSize":t[7]||(t[7]=i=>Le(b)?b.value=i:b=i),"page-sizes":[30,40,50,100,200,300],small:!0,disabled:ne.value,background:se.value,layout:"total, sizes, prev, pager, next, jumper",total:P.value,onSizeChange:T,onCurrentChange:T,class:"pagination"},null,8,["current-page","page-size","disabled","background","total"])]),_:1},8,["locale"])]),_:1},512),[[X,v.value]]),Q(r(J,null,{default:d(()=>[Ae]),_:1},512),[[X,v.value===!1]]),r(ze,{modelValue:D.value,"onUpdate:modelValue":t[8]||(t[8]=i=>D.value=i),onOnChangeDialog:ue,titleData:v.value?$.value:ee.value,height:500,width:950,deviceType:o.deviceType,title:de.value,cfgType:v.value?0:1},null,8,["modelValue","titleData","deviceType","title","cfgType"])],64)}}}),je=Fe(Be,[["__scopeId","data-v-9498bae9"]]);export{je as default};
.moduleCard[data-v-9498bae9]{width:auto;overflow:auto;padding:0}.moduleCard[data-v-9498bae9] .el-card__body{padding:0}.pagination[data-v-9498bae9]{padding:4px;margin-left:20px;height:30px;vertical-align:middle}[data-v-9498bae9] .el-table__body tr:hover>td{background:linear-gradient(to top,#00c6ff,#fff)!important}[data-v-9498bae9] .el-table__body tr.current-row>td{background-color:#92cbf1!important}.card-contianer[data-v-9498bae9]{width:auto;height:70px}.card-contianer .div-header[data-v-9498bae9]{width:100%;display:flex;margin:20px}.el-form-item[data-v-9498bae9]{margin-top:-20px;margin-right:30px}
.moduleCard[data-v-bd68c42d]{width:auto;overflow:auto;padding:0}.moduleCard[data-v-bd68c42d] .el-card__body{padding:0}.pagination[data-v-bd68c42d]{padding:4px;margin-left:20px;height:30px;vertical-align:middle}[data-v-bd68c42d] .el-table__body tr:hover>td{background:linear-gradient(to top,#00c6ff,#fff)!important}[data-v-bd68c42d] .el-table__body tr.current-row>td{background-color:#92cbf1!important}.card-contianer[data-v-bd68c42d]{width:auto;height:70px}.card-contianer .div-header[data-v-bd68c42d]{width:100%;display:flex;margin:20px}.el-form-item[data-v-bd68c42d]{margin-top:-20px;margin-right:30px}
import{d as xe,r as u,b as m,s as ie,l as M,o as Ee,a as Ie,H as Se,c as p,z as De,e as g,f as L,j as r,w as d,i as re,F as V,g as K,h as Y,u as E,p as W,m as Q,v as X,B as Te,C as Le,q as Ve,x as ke,_ as Fe}from"./index-JHU7h98a.js";import{z as Z}from"./zh-cn-CHEiFvXs.js";import{g as Ne}from"./utils-D2jWEAG0.js";import{C as ze}from"./CfgSupply-DVak_OLU.js";/* empty css */const He=k=>(Ve("data-v-bd68c42d"),k=k(),ke(),k),Ue={class:"div-header"},Be=He(()=>re("div",{id:"chart",style:{width:"99%",height:"690px"}},null,-1)),Ae=xe({__name:"HisGasPage",setup(k){const F=u(1);var b=u(30);const ne=u(!1),se=u(!1),P=u(),I=m([]);var N=m([]),z=m([]);const S=u([]),R=m([]),j=u([]),f=u(!0),H=u(!0),G=u(500),U=u(),h=m({}),$=u([]),ee=u([]),D=u(!1),de=u("电表历史数据自定义列"),ue=l=>{D.value=!1,f?(H.value=!0,ae(),le()):q()};ce();function ce(){var l=ie.getters.getEnterprise();l&&(U.value=l[0].enterpriseId)}function O(){G.value=window.innerHeight-232}function pe({order:l,prop:t}){!l||h[t]===l?h[t]=null:h[t]=l;let s="",e="",a="";for(const n in h)h[n]=="ascending"?a="ASC":h[n]=="descending"&&(a="DESC"),n==="name"?s="DeviceName":n==="gatherTime"&&(s="GatherTime"),e===""?e=e+s+" "+a:e=e+","+s+" "+a,i.sort=e;T()}function ve({column:l}){h[l.property]&&(l.order=h[l.property])}for(var _=new Date,te=_.getFullYear(),w=0,c=[_.getMonth()+1,_.getDate(),_.getHours(),_.getMinutes(),_.getSeconds()],C=0;C<c.length;C++)c[C]>=1&&c[C]<=9&&(c[C]="0"+c[C]);w=c[1]-1,w>=1&&w<=9&&(w="0"+w);var B=sessionStorage.getItem("DeviceQueryStart");B||(B=te+"-"+c[0]+w+" "+c[2]+":"+c[3]+":"+c[4],sessionStorage.setItem("DeviceQueryStart",B));var A=sessionStorage.getItem("DeviceQueryEnd");A||(A=te+"-"+c[0]+"-"+c[1]+" "+c[2]+":"+c[3]+":"+c[4],sessionStorage.setItem("DeviceQueryEnd",A));const i=m({enterpriseId:U.value,supplyId:[],deviceType:4,id:[],startTime:B,endTime:A,interval:2,sort:"",pageIndex:0,pageCount:30});function fe(){var l=ie.getters.getEnterprise();l&&(l.forEach(t=>{t.enterpriseId===U.value&&(t.enterpriseId==="9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()?t.serviceCenterList.forEach(s=>{s.supplyList.forEach(e=>{e.gasList.forEach(a=>{I.push({value:a.deviceId,label:a.description})})})}):t.supplyList.forEach(s=>{s.gasList.forEach(e=>{I.push({value:e.deviceId,label:e.description})})}))}),I.forEach(t=>{i.id.push(t.value)}))}fe(),T();function T(){H.value=!0,sessionStorage.setItem("DeviceQueryStart",i.startTime),sessionStorage.setItem("DeviceQueryEnd",i.endTime),ae(),le(),q()}function ae(){M.post("/api/device/Title",{enterpriseId:U.value,deviceType:4}).then(l=>{$.value=l.data.otherList;var t=new Array;l.data.frozenList.forEach(e=>{t.push({field:e.field[0].toLowerCase()+e.field.substring(1),title:e.title,sortable:e.sortable,width:e.width,filter:e.filter,color:e.color,isVisible:!0})}),N=t;var s=new Array;l.data.otherList.forEach(e=>{s.push({alias:e.alias,backColor:e.backColor,baseId:e.baseId,decimalPoint:e.decimalPoint,enName:e.enName[0].toLowerCase()+e.enName.substring(1),orderNum:e.orderNum,width:e.width,isVisible:e.isVisible})}),z=s})}function le(){F.value==1?(i.pageIndex=0,i.pageCount=b.value):(i.pageIndex=(F.value-1)*b.value+1,i.pageCount=b.value-1),console.log(i.interval),M.post("/api/device/History",i).then(l=>{console.log(l),S.value=null,l.data!==null&&(S.value=l.data.dataInfoList,P.value=l.data.rowCount,console.log(S.value)),(l.data===null||i.id.length<1)&&(S.value=null,P.value=0),H.value=!1})}function ge({row:l,column:t,rowIndex:s,columnIndex:e}){let a={};return a["padding-left"]="0px",a["padding-right"]="0px",a.borderColor="#97d5fd",a.padding="0px",N.forEach(n=>{n.field===t.property&&(a["background-color"]="#"+n.color)}),z.forEach(n=>{n.enName===t.property&&(a["background-color"]="#"+n.backColor)}),a}function he({row:l,column:t,rowIndex:s,columnIndex:e}){let a;return N.forEach(n=>{if(n.field===t.property){var v=n.color=="FFFFFF"?"d9f1ff":n.color;a={"background-color":"#"+v,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"}}}),z.forEach(n=>{if(n.enName===t.property){var v=n.backColor=="FFFFFF"?"d9f1ff":n.backColor;a={"background-color":"#"+v,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"}}}),a}async function me(){sessionStorage.setItem("DeviceQueryStart",i.startTime),sessionStorage.setItem("DeviceQueryEnd",i.endTime),i.pageIndex=0,i.pageCount=1e5,i.interval===void 0&&(i.interval=2);var l=Ne("燃气调压站历史数据");await M.post("/api/device/hisExport",i,"正在导出数据....",{responseType:"blob"}).then(t=>{try{const s=new Blob([t]);if("download"in document.createElement("a")){const e=document.createElement("a");e.download=l,e.style.display="none",e.href=URL.createObjectURL(s),document.body.appendChild(e),e.click(),URL.revokeObjectURL(e.href),document.body.removeChild(e)}else navigator.msSaveBlob(s,l)}catch(s){console.log(s)}})}Ee(()=>{O(),window.addEventListener("resize",O)}),Ie(()=>{window.removeEventListener("resize",O)});function q(){if(f.value===!1){const l=m([]),t=m([]),s=u();let e="";e=i.id[0],i.id=[],i.id.push(e),i.pageCount=999999,I.forEach(a=>{a.value===e&&(s.value=a.label)}),M.post("/api/device/Curve",i).then(a=>{console.log(a),ee.value=a.data.title,a.data.title.forEach(v=>{t.push(v.alias);let x=new Array;a.data.data.forEach(y=>{x.push(y[v.enName[0].toLowerCase()+v.enName.substring(1)])}),R.length=0,a.data.data.forEach(y=>{R.push(y.gatherTime)}),l.push({name:v.alias,type:"line",data:x})}),j.value={title:{text:s.value+"历史数据"},tooltip:{trigger:"axis"},legend:{data:t},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!1,data:R},yAxis:{type:"value",axisLabel:{formatter:"{value}NM3/H"}},series:l},console.log(j.value);var n=Se(document.getElementById("chart"));n.setOption(j.value),window.addEventListener("resize",()=>{n.resize()})})}}return(l,t)=>{const s=p("el-switch"),e=p("el-form-item"),a=p("el-option"),n=p("el-select"),v=p("el-date-picker"),x=p("el-config-provider"),y=p("el-button"),J=p("el-card"),oe=p("el-table-column"),be=p("el-table"),ye=p("el-pagination"),_e=p("el-footer"),we=De("loading");return g(),L(V,null,[r(J,{class:"card-contianer"},{default:d(()=>[re("div",Ue,[r(e,null,{default:d(()=>[r(s,{modelValue:f.value,"onUpdate:modelValue":t[0]||(t[0]=o=>f.value=o),"active-text":"表格","inactive-text":"曲线图",style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949","min-width":"130px"},onChange:q},null,8,["modelValue"])]),_:1}),r(e,{label:"选择设备:"},{default:d(()=>[r(n,{modelValue:i.id,"onUpdate:modelValue":t[1]||(t[1]=o=>i.id=o),multiple:"true","collapse-tags":"",placeholder:"请选择",style:{"min-width":"170px"}},{default:d(()=>[(g(!0),L(V,null,K(I,o=>(g(),Y(a,{key:o.value,label:o.label,value:o.value,disabled:o.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(e,{label:"开始时间:"},{default:d(()=>[r(x,{locale:E(Z)},{default:d(()=>[r(v,{modelValue:i.startTime,"onUpdate:modelValue":t[2]||(t[2]=o=>i.startTime=o),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"选择开始时间",style:{"min-width":"180px"}},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1}),r(e,{label:"结束时间:"},{default:d(()=>[r(x,{locale:E(Z)},{default:d(()=>[r(v,{modelValue:i.endTime,"onUpdate:modelValue":t[3]||(t[3]=o=>i.endTime=o),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"选择结束时间",style:{"min-width":"180px"}},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1}),r(e,{label:"时间间隔"},{default:d(()=>[r(n,{modelValue:i.interval,"onUpdate:modelValue":t[4]||(t[4]=o=>i.interval=o),placeholder:"1小时/次",style:{"min-width":"105px"},clearable:""},{default:d(()=>[r(a,{label:"全部",value:0}),r(a,{label:"1分钟/次",value:1}),r(a,{label:"1小时/次",value:2}),r(a,{label:"1天/次",value:3}),r(a,{label:"1周/次",value:4})]),_:1},8,["modelValue"])]),_:1}),r(e,null,{default:d(()=>[r(y,{type:"primary",onClick:T,style:{"min-width":"70px"}},{default:d(()=>[W("查询")]),_:1})]),_:1}),r(e,null,{default:d(()=>[r(y,{type:"primary",onClick:t[5]||(t[5]=o=>D.value=!D.value),style:{"min-width":"70px"}},{default:d(()=>[W("自定义列")]),_:1})]),_:1}),r(e,null,{default:d(()=>[r(y,{type:"primary",onClick:me,style:{"min-width":"70px"}},{default:d(()=>[W("导出表格")]),_:1})]),_:1})])]),_:1}),Q(r(J,{class:"moduleCard",height:G.value},{default:d(()=>[Q((g(),Y(be,{data:S.value,height:G.value,"cell-style":ge,id:"out-table",border:"","highlight-current-row":"","header-cell-style":he,onSortChange:pe,"header-cell-class-name":ve},{default:d(()=>[(g(!0),L(V,null,K(E(N),(o,Ce)=>(g(),Y(oe,{prop:o.field,label:o.title,width:o.width,sortable:o.field==="name"||o.field==="gatherTime",fixed:""},null,8,["prop","label","width","sortable"]))),256)),(g(!0),L(V,null,K(E(z),(o,Ce)=>(g(),L(V,null,[o.isVisible?(g(),Y(oe,{key:0,prop:o.enName,label:o.alias,width:o.width},null,8,["prop","label","width"])):Te("",!0)],64))),256))]),_:1},8,["data","height"])),[[we,H.value]])]),_:1},8,["height"]),[[X,f.value]]),Q(r(_e,{style:{height:"8px"}},{default:d(()=>[r(x,{locale:E(Z)},{default:d(()=>[r(ye,{"current-page":F.value,"onUpdate:currentPage":t[6]||(t[6]=o=>F.value=o),"page-size":E(b),"onUpdate:pageSize":t[7]||(t[7]=o=>Le(b)?b.value=o:b=o),"page-sizes":[30,40,50,100,200,300],small:!0,disabled:ne.value,background:se.value,layout:"total, sizes, prev, pager, next, jumper",total:P.value,onSizeChange:T,onCurrentChange:T,class:"pagination"},null,8,["current-page","page-size","disabled","background","total"])]),_:1},8,["locale"])]),_:1},512),[[X,f.value]]),Q(r(J,null,{default:d(()=>[Be]),_:1},512),[[X,f.value===!1]]),r(ze,{modelValue:D.value,"onUpdate:modelValue":t[8]||(t[8]=o=>D.value=o),onOnChangeDialog:ue,titleData:f.value?$.value:ee.value,height:500,width:950,deviceType:i.deviceType,title:de.value,cfgType:f.value?0:1},null,8,["modelValue","titleData","deviceType","title","cfgType"])],64)}}}),je=Fe(Ae,[["__scopeId","data-v-bd68c42d"]]);export{je as default};
import{d as xe,r as u,b as m,s as ie,l as Y,o as Ee,a as Ie,H as Se,c as p,z as De,e as g,f as L,j as r,w as d,i as re,F as V,g as K,h as M,u as E,p as W,m as Q,v as X,B as Te,C as Le,q as Ve,x as ke,_ as Fe}from"./index-JHU7h98a.js";import{z as Z}from"./zh-cn-CHEiFvXs.js";import{g as He}from"./utils-D2jWEAG0.js";import{C as Ne}from"./CfgSupply-DVak_OLU.js";/* empty css */const ze=k=>(Ve("data-v-766fc474"),k=k(),ke(),k),Ue={class:"div-header"},Be=ze(()=>re("div",{id:"chart",style:{width:"99%",height:"690px"}},null,-1)),Ae=xe({__name:"HisHeatPage",setup(k){const F=u(1);var b=u(30);const ne=u(!1),se=u(!1),P=u(),I=m([]);var H=m([]),N=m([]);const S=u([]),R=m([]),j=u([]),v=u(!0),z=u(!0),O=u(500),U=u(),h=m({}),$=u([]),D=u(!1),de=u("电表历史数据自定义列"),ee=u([]),ue=l=>{D.value=!1,v?(z.value=!0,ae(),le()):q()};ce();function ce(){var l=ie.getters.getEnterprise();l&&(U.value=l[0].enterpriseId)}function G(){O.value=window.innerHeight-232}function pe({order:l,prop:t}){!l||h[t]===l?h[t]=null:h[t]=l;let s="",e="",a="";for(const n in h)h[n]=="ascending"?a="ASC":h[n]=="descending"&&(a="DESC"),n==="name"?s="DeviceName":n==="gatherTime"&&(s="GatherTime"),e===""?e=e+s+" "+a:e=e+","+s+" "+a,o.sort=e;T()}function fe({column:l}){h[l.property]&&(l.order=h[l.property])}for(var _=new Date,te=_.getFullYear(),w=0,c=[_.getMonth()+1,_.getDate(),_.getHours(),_.getMinutes(),_.getSeconds()],C=0;C<c.length;C++)c[C]>=1&&c[C]<=9&&(c[C]="0"+c[C]);w=c[1]-1,w>=1&&w<=9&&(w="0"+w);var B=sessionStorage.getItem("DeviceQueryStart");B||(B=te+"-"+c[0]+w+" "+c[2]+":"+c[3]+":"+c[4],sessionStorage.setItem("DeviceQueryStart",B));var A=sessionStorage.getItem("DeviceQueryEnd");A||(A=te+"-"+c[0]+"-"+c[1]+" "+c[2]+":"+c[3]+":"+c[4],sessionStorage.setItem("DeviceQueryEnd",A));const o=m({enterpriseId:U.value,supplyId:[],deviceType:6,id:[],startTime:B,endTime:A,interval:2,sort:"",pageIndex:0,pageCount:30});function ve(){var l=ie.getters.getEnterprise();l&&(l.forEach(t=>{t.enterpriseId===U.value&&(t.enterpriseId==="9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()?t.serviceCenterList.forEach(s=>{s.supplyList.forEach(e=>{e.heatList.forEach(a=>{I.push({value:a.deviceId,label:a.description})})})}):t.supplyList.forEach(s=>{s.heatList.forEach(e=>{I.push({value:e.deviceId,label:e.description})})}))}),I.forEach(t=>{o.id.push(t.value)}))}ve(),T();function T(){z.value=!0,sessionStorage.setItem("DeviceQueryStart",o.startTime),sessionStorage.setItem("DeviceQueryEnd",o.endTime),ae(),le(),q()}function ae(){Y.post("/api/device/Title",{enterpriseId:U.value,deviceType:6}).then(l=>{$.value=l.data.otherList;var t=new Array;l.data.frozenList.forEach(e=>{t.push({field:e.field[0].toLowerCase()+e.field.substring(1),title:e.title,sortable:e.sortable,width:e.width,filter:e.filter,color:e.color,isVisible:!0})}),H=t;var s=new Array;l.data.otherList.forEach(e=>{s.push({alias:e.alias,backColor:e.backColor,baseId:e.baseId,decimalPoint:e.decimalPoint,enName:e.enName[0].toLowerCase()+e.enName.substring(1),orderNum:e.orderNum,width:e.width,isVisible:e.isVisible})}),N=s})}function le(){F.value==1?(o.pageIndex=0,o.pageCount=b.value):(o.pageIndex=(F.value-1)*b.value+1,o.pageCount=b.value-1),console.log(o.interval),Y.post("/api/device/History",o).then(l=>{console.log(l),S.value=null,l.data!==null&&(S.value=l.data.dataInfoList,P.value=l.data.rowCount,console.log(S.value)),(l.data===null||o.id.length<1)&&(S.value=null,P.value=0),z.value=!1})}function ge({row:l,column:t,rowIndex:s,columnIndex:e}){let a={};return a["padding-left"]="0px",a["padding-right"]="0px",a.borderColor="#97d5fd",a.padding="0px",H.forEach(n=>{n.field===t.property&&(a["background-color"]="#"+n.color)}),N.forEach(n=>{n.enName===t.property&&(a["background-color"]="#"+n.backColor)}),a}function he({row:l,column:t,rowIndex:s,columnIndex:e}){let a;return H.forEach(n=>{if(n.field===t.property){var f=n.color=="FFFFFF"?"d9f1ff":n.color;a={"background-color":"#"+f,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"}}}),N.forEach(n=>{if(n.enName===t.property){var f=n.backColor=="FFFFFF"?"d9f1ff":n.backColor;a={"background-color":"#"+f,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"}}}),a}async function me(){sessionStorage.setItem("DeviceQueryStart",o.startTime),sessionStorage.setItem("DeviceQueryEnd",o.endTime),o.pageIndex=0,o.pageCount=1e5,o.interval===void 0&&(o.interval=2);var l=He("热表历史数据");await Y.post("/api/device/hisExport",o,"正在导出数据....",{responseType:"blob"}).then(t=>{try{const s=new Blob([t]);if("download"in document.createElement("a")){const e=document.createElement("a");e.download=l,e.style.display="none",e.href=URL.createObjectURL(s),document.body.appendChild(e),e.click(),URL.revokeObjectURL(e.href),document.body.removeChild(e)}else navigator.msSaveBlob(s,l)}catch(s){console.log(s)}})}Ee(()=>{G(),window.addEventListener("resize",G)}),Ie(()=>{window.removeEventListener("resize",G)});function q(){if(v.value===!1){const l=m([]),t=m([]),s=u();let e="";e=o.id[0],o.id=[],o.id.push(e),o.pageCount=999999,I.forEach(a=>{a.value===e&&(s.value=a.label)}),Y.post("/api/device/Curve",o).then(a=>{console.log(a),ee.value=a.data.title,a.data.title.forEach(f=>{t.push(f.alias);let x=new Array;a.data.data.forEach(y=>{x.push(y[f.enName[0].toLowerCase()+f.enName.substring(1)])}),R.length=0,a.data.data.forEach(y=>{R.push(y.gatherTime)}),l.push({name:f.alias,type:"line",data:x})}),j.value={title:{text:s.value+"历史数据"},tooltip:{trigger:"axis"},legend:{data:t},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!1,data:R},yAxis:{type:"value",axisLabel:{formatter:"{value}GJ/h"}},series:l},console.log(j.value);var n=Se(document.getElementById("chart"));n.setOption(j.value),window.addEventListener("resize",()=>{n.resize()})})}}return(l,t)=>{const s=p("el-switch"),e=p("el-form-item"),a=p("el-option"),n=p("el-select"),f=p("el-date-picker"),x=p("el-config-provider"),y=p("el-button"),J=p("el-card"),oe=p("el-table-column"),be=p("el-table"),ye=p("el-pagination"),_e=p("el-footer"),we=De("loading");return g(),L(V,null,[r(J,{class:"card-contianer"},{default:d(()=>[re("div",Ue,[r(e,null,{default:d(()=>[r(s,{modelValue:v.value,"onUpdate:modelValue":t[0]||(t[0]=i=>v.value=i),"active-text":"表格","inactive-text":"曲线图",style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949","min-width":"130px"},onChange:q},null,8,["modelValue"])]),_:1}),r(e,{label:"选择设备:"},{default:d(()=>[r(n,{modelValue:o.id,"onUpdate:modelValue":t[1]||(t[1]=i=>o.id=i),multiple:"true","collapse-tags":"",placeholder:"请选择",style:{"min-width":"170px"}},{default:d(()=>[(g(!0),L(V,null,K(I,i=>(g(),M(a,{label:i.label,value:i.value},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1}),r(e,{label:"开始时间:"},{default:d(()=>[r(x,{locale:E(Z)},{default:d(()=>[r(f,{modelValue:o.startTime,"onUpdate:modelValue":t[2]||(t[2]=i=>o.startTime=i),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"选择开始时间",style:{"min-width":"180px"}},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1}),r(e,{label:"结束时间:"},{default:d(()=>[r(x,{locale:E(Z)},{default:d(()=>[r(f,{modelValue:o.endTime,"onUpdate:modelValue":t[3]||(t[3]=i=>o.endTime=i),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"选择结束时间",style:{"min-width":"180px"}},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1}),r(e,{label:"时间间隔"},{default:d(()=>[r(n,{modelValue:o.interval,"onUpdate:modelValue":t[4]||(t[4]=i=>o.interval=i),placeholder:"1小时/次",style:{"min-width":"105px"},clearable:""},{default:d(()=>[r(a,{label:"全部",value:0}),r(a,{label:"1分钟/次",value:1}),r(a,{label:"1小时/次",value:2}),r(a,{label:"1天/次",value:3}),r(a,{label:"1周/次",value:4})]),_:1},8,["modelValue"])]),_:1}),r(e,null,{default:d(()=>[r(y,{type:"primary",onClick:T,style:{"min-width":"70px"}},{default:d(()=>[W("查询")]),_:1})]),_:1}),r(e,null,{default:d(()=>[r(y,{type:"primary",onClick:t[5]||(t[5]=i=>D.value=!D.value),style:{"min-width":"70px"}},{default:d(()=>[W("自定义列")]),_:1})]),_:1}),r(e,null,{default:d(()=>[r(y,{type:"primary",onClick:me,style:{"min-width":"70px"}},{default:d(()=>[W("导出表格")]),_:1})]),_:1})])]),_:1}),Q(r(J,{class:"moduleCard",height:O.value},{default:d(()=>[Q((g(),M(be,{data:S.value,height:O.value,"cell-style":ge,id:"out-table",border:"","highlight-current-row":"","header-cell-style":he,onSortChange:pe,"header-cell-class-name":fe},{default:d(()=>[(g(!0),L(V,null,K(E(H),(i,Ce)=>(g(),M(oe,{prop:i.field,label:i.title,width:i.width,sortable:i.field==="name"||i.field==="gatherTime",fixed:""},null,8,["prop","label","width","sortable"]))),256)),(g(!0),L(V,null,K(E(N),(i,Ce)=>(g(),L(V,null,[i.isVisible?(g(),M(oe,{key:0,prop:i.enName,label:i.alias,width:i.width},null,8,["prop","label","width"])):Te("",!0)],64))),256))]),_:1},8,["data","height"])),[[we,z.value]])]),_:1},8,["height"]),[[X,v.value]]),Q(r(_e,{style:{height:"8px"}},{default:d(()=>[r(x,{locale:E(Z)},{default:d(()=>[r(ye,{"current-page":F.value,"onUpdate:currentPage":t[6]||(t[6]=i=>F.value=i),"page-size":E(b),"onUpdate:pageSize":t[7]||(t[7]=i=>Le(b)?b.value=i:b=i),"page-sizes":[30,40,50,100,200,300],small:!0,disabled:ne.value,background:se.value,layout:"total, sizes, prev, pager, next, jumper",total:P.value,onSizeChange:T,onCurrentChange:T,class:"pagination"},null,8,["current-page","page-size","disabled","background","total"])]),_:1},8,["locale"])]),_:1},512),[[X,v.value]]),Q(r(J,null,{default:d(()=>[Be]),_:1},512),[[X,v.value===!1]]),r(Ne,{modelValue:D.value,"onUpdate:modelValue":t[8]||(t[8]=i=>D.value=i),onOnChangeDialog:ue,titleData:v.value?$.value:ee.value,height:500,width:950,deviceType:o.deviceType,title:de.value,cfgType:v.value?0:1},null,8,["modelValue","titleData","deviceType","title","cfgType"])],64)}}}),je=Fe(Ae,[["__scopeId","data-v-766fc474"]]);export{je as default};
.moduleCard[data-v-766fc474]{width:auto;overflow:auto;padding:0}.moduleCard[data-v-766fc474] .el-card__body{padding:0}.pagination[data-v-766fc474]{padding:4px;margin-left:20px;height:30px;vertical-align:middle}[data-v-766fc474] .el-table__body tr:hover>td{background:linear-gradient(to top,#00c6ff,#fff)!important}[data-v-766fc474] .el-table__body tr.current-row>td{background-color:#92cbf1!important}.card-contianer[data-v-766fc474]{width:auto;height:70px}.card-contianer .div-header[data-v-766fc474]{width:100%;display:flex;margin:20px}.el-form-item[data-v-766fc474]{margin-top:-20px;margin-right:30px}
import{d as Z,r as c,b as z,s as Y,l as $,o as ee,a as te,c as p,z as ae,e as M,f as le,j as o,w as d,i as oe,u as E,p as re,m as ne,h as se,C as ie,F as de,_ as ce}from"./index-JHU7h98a.js";import{z as N}from"./zh-cn-CHEiFvXs.js";const ue={class:"div-header"},pe=Z({__name:"HisPatrolPage",setup(fe){const x=c(1);var m=c(30);const U=c(!1),B=c(!1),T=c(),_=z([]);c("TransExport");const y=c([]),k=c(500),V=c(),C=c(!0),f=z({});c("GetTransAlarmData"),Q();function Q(){var t=Y.getters.getEnterprise();t&&(V.value=t[0].enterpriseId)}const A={multiple:!0,emitPath:!1};function H(){k.value=window.innerHeight-232}function F({order:t,prop:a}){!t||f[a]===t?f[a]=null:f[a]=t;let i="",l="",e="";for(const s in f)f[s]=="ascending"?e="ASC":f[s]=="descending"&&(e="DESC"),s==="transferName"?i="UnitName":s==="patrolTime"&&(i="PatrolTime"),l===""?l=l+i+" "+e:l=l+","+i+" "+e,r.sort=l;b()}function j({column:t}){f[t.property]&&(t.order=f[t.property])}for(var g=new Date,P=g.getFullYear(),v=0,n=[g.getMonth()+1,g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds()],h=0;h<n.length;h++)n[h]>=1&&n[h]<=9&&(n[h]="0"+n[h]);v=n[1]-1,v>=1&&v<=9&&(v="0"+v);var w=sessionStorage.getItem("DeviceQueryStart");w&&(w=P+"-"+n[0]+"-"+v+" "+n[2]+":"+n[3]+":"+n[4],sessionStorage.setItem("DeviceQueryStart",w));var I=sessionStorage.getItem("DeviceQueryEnd");I&&(I=P+"-"+n[0]+"-"+n[1]+" "+n[2]+":"+n[3]+":"+n[4],sessionStorage.setItem("DeviceQueryEnd",I));const r=z({Id:[],startTime:w,endTime:I,start:0,count:30,sort:""});G(),b();function b(){sessionStorage.setItem("DeviceQueryStart",r.startTime),sessionStorage.setItem("DeviceQueryEnd",r.endTime),R()}function G(){C.value=!0,y.value.length=0,_.length=0,r.Id.length=0;var t=Y.getters.getEnterprise();t&&t.forEach(a=>{a.enterpriseId===V.value&&(a.enterpriseId==="9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()?a.serviceCenterList.forEach(i=>{let l=[];i.supplyList.forEach(e=>{let s=[];e.transferList.forEach(D=>{s.push({value:D.unitId,label:D.unitName})}),l.push({children:s,label:e.supplyName})}),_.push({children:l,label:i.serviceCenterName})}):a.supplyList.forEach(i=>{let l=[];i.transferList.forEach(e=>{l.push({value:e.unitId,label:e.unitName})}),_.push({children:l,label:i.supplyName})}))}),r.Id.push(_[0].children[0].children[0].value)}function R(){C.value=!0,x.value==1?(r.start=0,r.count=m.value):(r.start=(x.value-1)*m.value+1,r.count=m.value-1),$.post("/api/patrol/GetPatrolHisData",r).then(t=>{t.data!==null&&(y.value=t.data.dataInfoList,T.value=t.data.rowCount),(t.data===null||r.Id.length<1)&&(y.value=null,T.value=0),C.value=!1})}function q({row:t,column:a,rowIndex:i,columnIndex:l}){let e={};return e["padding-left"]="0px",e["padding-right"]="0px",e.borderColor="#97d5fd",e.padding="0px",e}function J({row:t,column:a,rowIndex:i,columnIndex:l}){let e;var s="d9f1ff";e={"background-color":"#"+s,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"};var s="d9f1ff";return e={"background-color":"#"+s,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"},e}return ee(()=>{H(),window.addEventListener("resize",H)}),te(()=>{window.removeEventListener("resize",H)}),(t,a)=>{const i=p("el-cascader"),l=p("el-form-item"),e=p("el-date-picker"),s=p("el-config-provider"),D=p("el-button"),L=p("el-card"),S=p("el-table-column"),K=p("el-table"),O=p("el-pagination"),W=p("el-footer"),X=ae("loading");return M(),le(de,null,[o(L,{class:"card-contianer"},{default:d(()=>[oe("div",ue,[o(l,{label:"设备:"},{default:d(()=>[o(i,{options:_,modelValue:r.Id,"onUpdate:modelValue":a[0]||(a[0]=u=>r.Id=u),props:A,"collapse-tags":"",clearable:"","show-all-levels":!1,placeholder:"请选择",style:{"min-width":"210px"}},null,8,["options","modelValue"])]),_:1}),o(l,{label:"开始时间:"},{default:d(()=>[o(s,{locale:E(N)},{default:d(()=>[o(e,{modelValue:r.startTime,"onUpdate:modelValue":a[1]||(a[1]=u=>r.startTime=u),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"选择开始时间",style:{"min-width":"180px"}},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1}),o(l,{label:"结束时间:"},{default:d(()=>[o(s,{locale:E(N)},{default:d(()=>[o(e,{modelValue:r.endTime,"onUpdate:modelValue":a[2]||(a[2]=u=>r.endTime=u),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"选择结束时间",style:{"min-width":"180px"}},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1}),o(l,null,{default:d(()=>[o(D,{type:"primary",onClick:b,style:{"min-width":"70px"}},{default:d(()=>[re("查询")]),_:1})]),_:1})])]),_:1}),o(L,{class:"moduleCard",height:k.value},{default:d(()=>[ne((M(),se(K,{data:y.value,height:k.value,"cell-style":q,id:"out-table",border:"","highlight-current-row":"","header-cell-style":J,onSortChange:F,"header-cell-class-name":j},{default:d(()=>[o(S,{prop:"index",label:"编号",sortable:!1,width:"80px",fixed:""}),o(S,{prop:"transferName",label:"换热站",sortable:!0,width:"200px",fixed:""}),o(S,{prop:"realName",label:"巡更人",sortable:!1,width:"200px",fixed:""}),o(S,{prop:"patrolTime",label:"巡更时间",sortable:!0,width:"200px",fixed:""})]),_:1},8,["data","height"])),[[X,C.value]])]),_:1},8,["height"]),o(W,{style:{height:"8px"}},{default:d(()=>[o(s,{locale:E(N)},{default:d(()=>[o(O,{"current-page":x.value,"onUpdate:currentPage":a[3]||(a[3]=u=>x.value=u),"page-size":E(m),"onUpdate:pageSize":a[4]||(a[4]=u=>ie(m)?m.value=u:m=u),"page-sizes":[30,40,50,100,200,300],small:!0,disabled:U.value,background:B.value,layout:"total, sizes, prev, pager, next, jumper",total:T.value,onSizeChange:b,onCurrentChange:b,class:"pagination"},null,8,["current-page","page-size","disabled","background","total"])]),_:1},8,["locale"])]),_:1})],64)}}}),ve=ce(pe,[["__scopeId","data-v-b6227a78"]]);export{ve as default};
.moduleCard[data-v-b6227a78]{width:auto;overflow:auto;padding:0}.moduleCard[data-v-b6227a78] .el-card__body{padding:0}.pagination[data-v-b6227a78]{padding:4px;margin-left:20px;height:30px;vertical-align:middle}[data-v-b6227a78] .el-table__body tr:hover>td{background:linear-gradient(to top,#00c6ff,#fff)!important}[data-v-b6227a78] .el-table__body tr.current-row>td{background-color:#92cbf1!important}.card-contianer[data-v-b6227a78]{width:auto;height:70px}.card-contianer .div-header[data-v-b6227a78]{width:100%;display:flex;margin:20px}.el-form-item[data-v-b6227a78]{margin-top:-20px;margin-right:30px}.el-tag--mini[data-v-b6227a78]{height:21px!important}.el-cascader .el-input .el-input__inner[data-v-b6227a78]:focus,.el-cascader .el-input.is-focus .el-input__inner[data-v-b6227a78]{height:33px}.el-cascader__tags[data-v-b6227a78]{display:inline-flex;margin-right:10px;flex-wrap:nowrap}
.moduleCard[data-v-7093fd9a]{width:auto;overflow:auto;padding:2px}.moduleCard[data-v-7093fd9a] .el-card__body{padding:0}.pagination[data-v-7093fd9a]{padding:4px;margin-left:20px;height:30px;vertical-align:middle}[data-v-7093fd9a] .el-table__body tr:hover>td{background:linear-gradient(to top,#00c6ff,#fff)!important}[data-v-7093fd9a] .el-table__body tr.current-row>td{background-color:#92cbf1!important}.card-contianer[data-v-7093fd9a]{width:auto;height:70px}.card-contianer .div-header[data-v-7093fd9a]{width:100%;display:flex;margin:20px}.el-form-item[data-v-7093fd9a]{margin-top:-20px;margin-right:30px}.search-box[data-v-7093fd9a]{background:#fefefe;margin-top:0;border:1px solid #eae8e8;position:absolute;z-index:999;padding:25px 20px 0;border-top:0;box-shadow:0 7px 18px -12px #bdc0bb;width:100%;height:160px}
This diff is collapsed.
This diff is collapsed.
.moduleCard[data-v-72cd90ce]{width:auto;overflow:auto;padding:0}.moduleCard[data-v-72cd90ce] .el-card__body{padding:0}.pagination[data-v-72cd90ce]{padding:4px;margin-left:20px;height:30px;vertical-align:middle}[data-v-72cd90ce] .el-table__body tr:hover>td{background:linear-gradient(to top,#00c6ff,#fff)!important}[data-v-72cd90ce] .el-table__body tr.current-row>td{background-color:#92cbf1!important}.card-contianer[data-v-72cd90ce]{width:auto;height:70px}.card-contianer .div-header[data-v-72cd90ce]{width:100%;display:flex;margin:20px}.el-form-item[data-v-72cd90ce]{margin-top:-20px;margin-right:30px}.el-tag--mini[data-v-72cd90ce]{height:21px!important}.el-cascader .el-input .el-input__inner[data-v-72cd90ce]:focus,.el-cascader .el-input.is-focus .el-input__inner[data-v-72cd90ce]{height:33px}.el-cascader__tags[data-v-72cd90ce]{display:inline-flex;margin-right:10px;flex-wrap:nowrap}
import{d as xe,r as u,b as m,s as ie,l as Y,o as Ee,a as Ie,H as Te,c as p,z as Se,e as g,f as L,j as r,w as d,i as re,F as V,g as J,h as M,u as E,p as K,m as Q,v as X,B as De,C as Le,q as Ve,x as ke,_ as Fe}from"./index-JHU7h98a.js";import{z as Z}from"./zh-cn-CHEiFvXs.js";import{g as Ne}from"./utils-D2jWEAG0.js";import{C as ze}from"./CfgSupply-DVak_OLU.js";/* empty css */const He=k=>(Ve("data-v-c5c57023"),k=k(),ke(),k),Ue={class:"div-header"},Be=He(()=>re("div",{id:"chart",style:{width:"99%",height:"690px"}},null,-1)),Ae=xe({__name:"HisWaterPage",setup(k){const F=u(1);var b=u(30);const ne=u(!1),se=u(!1),P=u(),I=m([]);var N=m([]),z=m([]);const T=u([]),R=m([]),j=u([]),v=u(!0),H=u(!0),O=u(500),U=u(),h=m({}),$=u([]),ee=u([]),S=u(!1),de=u("电表历史数据自定义列"),ue=o=>{S.value=!1,v?(H.value=!0,ae(),le()):W()};ce();function ce(){var o=ie.getters.getEnterprise();o&&(U.value=o[0].enterpriseId)}function G(){O.value=window.innerHeight-232}function pe({order:o,prop:t}){!o||h[t]===o?h[t]=null:h[t]=o;let s="",e="",a="";for(const n in h)h[n]=="ascending"?a="ASC":h[n]=="descending"&&(a="DESC"),n==="name"?s="DeviceName":n==="gatherTime"&&(s="GatherTime"),e===""?e=e+s+" "+a:e=e+","+s+" "+a,l.sort=e;D()}function fe({column:o}){h[o.property]&&(o.order=h[o.property])}for(var _=new Date,te=_.getFullYear(),w=0,c=[_.getMonth()+1,_.getDate(),_.getHours(),_.getMinutes(),_.getSeconds()],C=0;C<c.length;C++)c[C]>=1&&c[C]<=9&&(c[C]="0"+c[C]);w=c[1]-1,w>=1&&w<=9&&(w="0"+w);var B=sessionStorage.getItem("DeviceQueryStart");B||(B=te+"-"+c[0]+"-"+w+" "+c[2]+":"+c[3]+":"+c[4],sessionStorage.setItem("DeviceQueryStart",B));var A=sessionStorage.getItem("DeviceQueryEnd");A||(A=te+"-"+c[0]+"-"+c[1]+" "+c[2]+":"+c[3]+":"+c[4],sessionStorage.setItem("DeviceQueryEnd",A));const l=m({enterpriseId:U.value,supplyId:[],deviceType:5,id:[],startTime:B,endTime:A,interval:2,sort:"",pageIndex:0,pageCount:30});function ve(){var o=ie.getters.getEnterprise();o&&(o.forEach(t=>{t.enterpriseId===U.value&&(t.enterpriseId==="9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()?t.serviceCenterList.forEach(s=>{s.supplyList.forEach(e=>{e.waterList.forEach(a=>{I.push({value:a.deviceId,label:a.description})})})}):t.supplyList.forEach(s=>{s.waterList.forEach(e=>{I.push({value:e.deviceId,label:e.description})})}))}),I.forEach(t=>{l.id.push(t.value)}))}D(),ve();function D(){H.value=!0,console.log("start:"+l.startTime+" end:"+l.endTime),sessionStorage.setItem("DeviceQueryStart",l.startTime),sessionStorage.setItem("DeviceQueryEnd",l.endTime),ae(),le(),W()}function ae(){Y.post("/api/device/Title",{enterpriseId:U.value,deviceType:5}).then(o=>{$.value=o.data.otherList;var t=new Array;o.data.frozenList.forEach(e=>{t.push({field:e.field[0].toLowerCase()+e.field.substring(1),title:e.title,sortable:e.sortable,width:e.width,filter:e.filter,color:e.color,isVisible:!0})}),N=t;var s=new Array;o.data.otherList.forEach(e=>{s.push({alias:e.alias,backColor:e.backColor,baseId:e.baseId,decimalPoint:e.decimalPoint,enName:e.enName[0].toLowerCase()+e.enName.substring(1),orderNum:e.orderNum,width:e.width,isVisible:e.isVisible})}),z=s})}function le(){F.value==1?(l.pageIndex=0,l.pageCount=b.value):(l.pageIndex=(F.value-1)*b.value+1,l.pageCount=b.value-1),Y.post("/api/device/History",l).then(o=>{console.log(o),T.value=null,o.data!==null&&(T.value=o.data.dataInfoList,P.value=o.data.rowCount,console.log(T.value)),(o.data===null||l.id.length<1)&&(T.value=null,P.value=0),H.value=!1})}function ge({row:o,column:t,rowIndex:s,columnIndex:e}){let a={};return a["padding-left"]="0px",a["padding-right"]="0px",a.borderColor="#97d5fd",a.padding="0px",N.forEach(n=>{n.field===t.property&&(a["background-color"]="#"+n.color)}),z.forEach(n=>{n.enName===t.property&&(a["background-color"]="#"+n.backColor)}),a}function he({row:o,column:t,rowIndex:s,columnIndex:e}){let a;return N.forEach(n=>{if(n.field===t.property){var f=n.color=="FFFFFF"?"d9f1ff":n.color;a={"background-color":"#"+f,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"}}}),z.forEach(n=>{if(n.enName===t.property){var f=n.backColor=="FFFFFF"?"d9f1ff":n.backColor;a={"background-color":"#"+f,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"}}}),a}async function me(){sessionStorage.setItem("DeviceQueryStart",l.startTime),sessionStorage.setItem("DeviceQueryEnd",l.endTime),l.pageIndex=0,l.pageCount=1e5,l.interval===void 0&&(l.interval=2);var o=Ne("水表历史数据");await Y.post("/api/device/hisExport",l,"正在导出数据....",{responseType:"blob"}).then(t=>{try{const s=new Blob([t]);if("download"in document.createElement("a")){const e=document.createElement("a");e.download=o,e.style.display="none",e.href=URL.createObjectURL(s),document.body.appendChild(e),e.click(),URL.revokeObjectURL(e.href),document.body.removeChild(e)}else navigator.msSaveBlob(s,o)}catch(s){console.log(s)}})}Ee(()=>{G(),window.addEventListener("resize",G)}),Ie(()=>{window.removeEventListener("resize",G)});function W(){if(v.value===!1){const o=m([]),t=m([]),s=u();let e="";e=l.id[0],l.id=[],l.id.push(e),l.pageCount=999999,I.forEach(a=>{a.value===e&&(s.value=a.label)}),Y.post("/api/device/Curve",l).then(a=>{ee.value=a.data.title,console.log(a),a.data.title.forEach(f=>{t.push(f.alias);let x=new Array;a.data.data.forEach(y=>{x.push(y[f.enName[0].toLowerCase()+f.enName.substring(1)])}),R.length=0,a.data.data.forEach(y=>{R.push(y.gatherTime)}),o.push({name:f.alias,type:"line",data:x})}),j.value={title:{text:s.value+"历史数据"},tooltip:{trigger:"axis"},legend:{data:t},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!1,data:R},yAxis:{type:"value",axisLabel:{formatter:"{value}t"}},series:o},console.log(j.value);var n=Te(document.getElementById("chart"));n.setOption(j.value),window.addEventListener("resize",()=>{n.resize()})})}}return(o,t)=>{const s=p("el-switch"),e=p("el-form-item"),a=p("el-option"),n=p("el-select"),f=p("el-date-picker"),x=p("el-config-provider"),y=p("el-button"),q=p("el-card"),oe=p("el-table-column"),be=p("el-table"),ye=p("el-pagination"),_e=p("el-footer"),we=Se("loading");return g(),L(V,null,[r(q,{class:"card-contianer"},{default:d(()=>[re("div",Ue,[r(e,null,{default:d(()=>[r(s,{modelValue:v.value,"onUpdate:modelValue":t[0]||(t[0]=i=>v.value=i),"active-text":"表格","inactive-text":"曲线图",style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949","min-width":"130px"},onChange:W},null,8,["modelValue"])]),_:1}),r(e,{label:"选择设备:"},{default:d(()=>[r(n,{modelValue:l.id,"onUpdate:modelValue":t[1]||(t[1]=i=>l.id=i),multiple:"true","collapse-tags":"",placeholder:"请选择",style:{"min-width":"170px"}},{default:d(()=>[(g(!0),L(V,null,J(I,i=>(g(),M(a,{label:i.label,value:i.value},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1}),r(e,{label:"开始时间:"},{default:d(()=>[r(x,{locale:E(Z)},{default:d(()=>[r(f,{modelValue:l.startTime,"onUpdate:modelValue":t[2]||(t[2]=i=>l.startTime=i),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"选择开始时间",style:{"min-width":"180px"}},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1}),r(e,{label:"结束时间:"},{default:d(()=>[r(x,{locale:E(Z)},{default:d(()=>[r(f,{modelValue:l.endTime,"onUpdate:modelValue":t[3]||(t[3]=i=>l.endTime=i),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"选择结束时间",style:{"min-width":"180px"}},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1}),r(e,{label:"时间间隔"},{default:d(()=>[r(n,{modelValue:l.interval,"onUpdate:modelValue":t[4]||(t[4]=i=>l.interval=i),placeholder:"1小时/次",style:{"min-width":"105px"},clearable:""},{default:d(()=>[r(a,{label:"全部",value:0}),r(a,{label:"1分钟/次",value:1}),r(a,{label:"1小时/次",value:2}),r(a,{label:"1天/次",value:3}),r(a,{label:"1周/次",value:4})]),_:1},8,["modelValue"])]),_:1}),r(e,null,{default:d(()=>[r(y,{type:"primary",onClick:D,style:{"min-width":"70px"}},{default:d(()=>[K("查询")]),_:1})]),_:1}),r(e,null,{default:d(()=>[r(y,{type:"primary",onClick:t[5]||(t[5]=i=>S.value=!S.value),style:{"min-width":"70px"}},{default:d(()=>[K("自定义列")]),_:1})]),_:1}),r(e,null,{default:d(()=>[r(y,{type:"primary",onClick:me,style:{"min-width":"70px"}},{default:d(()=>[K("导出表格")]),_:1})]),_:1})])]),_:1}),Q(r(q,{class:"moduleCard",height:O.value},{default:d(()=>[Q((g(),M(be,{data:T.value,height:O.value,"cell-style":ge,id:"out-table",border:"","highlight-current-row":"","header-cell-style":he,onSortChange:pe,"header-cell-class-name":fe},{default:d(()=>[(g(!0),L(V,null,J(E(N),(i,Ce)=>(g(),M(oe,{prop:i.field,label:i.title,width:i.width,sortable:i.field==="name"||i.field==="gatherTime",fixed:""},null,8,["prop","label","width","sortable"]))),256)),(g(!0),L(V,null,J(E(z),(i,Ce)=>(g(),L(V,null,[i.isVisible?(g(),M(oe,{key:0,prop:i.enName,label:i.alias,width:i.width},null,8,["prop","label","width"])):De("",!0)],64))),256))]),_:1},8,["data","height"])),[[we,H.value]])]),_:1},8,["height"]),[[X,v.value]]),Q(r(_e,{style:{height:"8px"}},{default:d(()=>[r(x,{locale:E(Z)},{default:d(()=>[r(ye,{"current-page":F.value,"onUpdate:currentPage":t[6]||(t[6]=i=>F.value=i),"page-size":E(b),"onUpdate:pageSize":t[7]||(t[7]=i=>Le(b)?b.value=i:b=i),"page-sizes":[30,40,50,100,200,300],small:!0,disabled:ne.value,background:se.value,layout:"total, sizes, prev, pager, next, jumper",total:P.value,onSizeChange:D,onCurrentChange:D,class:"pagination"},null,8,["current-page","page-size","disabled","background","total"])]),_:1},8,["locale"])]),_:1},512),[[X,v.value]]),Q(r(q,null,{default:d(()=>[Be]),_:1},512),[[X,v.value===!1]]),r(ze,{modelValue:S.value,"onUpdate:modelValue":t[8]||(t[8]=i=>S.value=i),onOnChangeDialog:ue,titleData:v.value?$.value:ee.value,height:500,width:950,deviceType:l.deviceType,title:de.value,cfgType:v.value?0:1},null,8,["modelValue","titleData","deviceType","title","cfgType"])],64)}}}),je=Fe(Ae,[["__scopeId","data-v-c5c57023"]]);export{je as default};
.moduleCard[data-v-c5c57023]{width:auto;overflow:auto;padding:0}.moduleCard[data-v-c5c57023] .el-card__body{padding:0}.pagination[data-v-c5c57023]{padding:4px;margin-left:20px;height:30px;vertical-align:middle}[data-v-c5c57023] .el-table__body tr:hover>td{background:linear-gradient(to top,#00c6ff,#fff)!important}[data-v-c5c57023] .el-table__body tr.current-row>td{background-color:#92cbf1!important}.card-contianer[data-v-c5c57023]{width:auto;height:70px}.card-contianer .div-header[data-v-c5c57023]{width:100%;display:flex;margin:20px}.el-form-item[data-v-c5c57023]{margin-top:-20px;margin-right:30px}
const e="FeatureCollection",t=[{type:"Feature",properties:{adcode:120106,name:"红桥区",center:[117.163301,39.175066],centroid:[117.155648,39.164723],childrenNum:0,level:"district",acroutes:[1e5,12e4],parent:{adcode:12e4}},geometry:{type:"MultiPolygon",coordinates:[[[[117.194442,39.146993],[117.193836,39.147643],[117.193082,39.148381],[117.190466,39.150332],[117.189166,39.151941],[117.186481,39.155099],[117.18492,39.156656],[117.18195,39.15909],[117.178893,39.160924],[117.177176,39.162056],[117.176622,39.162574],[117.175903,39.163622],[117.17572,39.164374],[117.175825,39.164768],[117.17613,39.165024],[117.177168,39.165616],[117.178842,39.1666],[117.179603,39.167293],[117.180044,39.168414],[117.180028,39.169182],[117.179941,39.169707],[117.179785,39.170172],[117.178634,39.172575],[117.178408,39.173389],[117.178303,39.174236],[117.178676,39.176858],[117.178808,39.178512],[117.178738,39.179954],[117.17848,39.180948],[117.178063,39.181671],[117.177664,39.181954],[117.177223,39.182042],[117.176772,39.182073],[117.176009,39.181957],[117.173082,39.181424],[117.172093,39.181508],[117.171149,39.181823],[117.170247,39.182381],[117.167553,39.184001],[117.167077,39.184249],[117.163931,39.185753],[117.162571,39.186694],[117.161948,39.187277],[117.161601,39.187773],[117.161106,39.189428],[117.160657,39.189989],[117.16004,39.190237],[117.159296,39.190348],[117.154963,39.189951],[117.148566,39.189097],[117.147743,39.189068],[117.146867,39.189156],[117.146051,39.189357],[117.145489,39.189623],[117.145124,39.189984],[117.144786,39.190401],[117.144024,39.191901],[117.143252,39.191676],[117.142316,39.19136],[117.141762,39.191126],[117.139247,39.18961],[117.138015,39.188573],[117.136775,39.187824],[117.136057,39.18718],[117.135815,39.187022],[117.135231,39.186462],[117.134311,39.185351],[117.133228,39.183216],[117.131135,39.178866],[117.130807,39.178016],[117.130633,39.177374],[117.130503,39.176692],[117.130451,39.175536],[117.130365,39.173951],[117.129895,39.171906],[117.129652,39.171038],[117.129392,39.170165],[117.129157,39.169435],[117.128905,39.168585],[117.128612,39.167398],[117.127892,39.164654],[117.127413,39.162962],[117.127213,39.162168],[117.12698,39.161325],[117.126667,39.160395],[117.126433,39.159458],[117.126318,39.158924],[117.126285,39.158273],[117.126433,39.157812],[117.126658,39.156891],[117.126865,39.156123],[117.127239,39.154889],[117.127594,39.154107],[117.127941,39.153169],[117.128279,39.152526],[117.128479,39.152243],[117.128965,39.152294],[117.129797,39.152086],[117.130673,39.151476],[117.131541,39.150494],[117.133648,39.147942],[117.134273,39.147338],[117.134984,39.146915],[117.135807,39.146642],[117.136761,39.146467],[117.140022,39.147105],[117.142909,39.148066],[117.14376,39.148316],[117.144321,39.148577],[117.145414,39.147697],[117.145537,39.147415],[117.145647,39.146333],[117.145527,39.146081],[117.144729,39.145453],[117.144018,39.144368],[117.144034,39.144173],[117.144122,39.144068],[117.145595,39.144053],[117.147919,39.143364],[117.150545,39.143073],[117.151915,39.142723],[117.152366,39.14257],[117.152626,39.142531],[117.154177,39.142385],[117.155251,39.142314],[117.15617,39.142212],[117.15721,39.142002],[117.15773,39.141554],[117.158023,39.14118],[117.159073,39.141496],[117.159567,39.141577],[117.160234,39.141589],[117.161665,39.141595],[117.165096,39.141663],[117.171836,39.141937],[117.171681,39.146467],[117.174047,39.146319],[117.180619,39.146148],[117.180991,39.146073],[117.181273,39.146132],[117.185538,39.145935],[117.189027,39.145866],[117.189946,39.14589],[117.190587,39.145967],[117.192684,39.146449],[117.193559,39.146661],[117.194442,39.146993]]],[[[117.13036,39.189872],[117.133173,39.191312],[117.133323,39.191036],[117.135416,39.192016],[117.136057,39.192307],[117.135855,39.192685],[117.136416,39.192848],[117.140771,39.193229],[117.1406,39.194444],[117.138788,39.196467],[117.140022,39.19715],[117.140366,39.197325],[117.140805,39.197511],[117.141212,39.197742],[117.139547,39.200147],[117.138644,39.199849],[117.138366,39.200356],[117.138192,39.20103],[117.135909,39.200032],[117.134964,39.201172],[117.133827,39.20266],[117.132851,39.202302],[117.132036,39.203466],[117.125617,39.200879],[117.126304,39.199891],[117.12566,39.1996],[117.128575,39.195657],[117.125945,39.194942],[117.127223,39.193163],[117.127702,39.192706],[117.128705,39.191432],[117.129263,39.190684],[117.130004,39.190102],[117.13036,39.189872]]]]}}],o={type:e,features:t};export{o as default,t as features,e as type};
import{_ as t}from"./index-JHU7h98a.js";const e={};function n(r,c){return" 瞬时热量对比配置 "}const s=t(e,[["render",n]]);export{s as default};
This diff is collapsed.
const e="FeatureCollection",t=[{type:"Feature",properties:{adcode:120112,name:"津南区",center:[117.382549,38.989577],centroid:[117.387949,38.963139],childrenNum:0,level:"district",acroutes:[1e5,12e4],parent:{adcode:12e4}},geometry:{type:"MultiPolygon",coordinates:[[[[117.267289,39.039449],[117.26785,39.037573],[117.265999,39.035342],[117.265712,39.035945],[117.265215,39.035798],[117.263714,39.033599],[117.264236,39.032856],[117.263487,39.031005],[117.264208,39.029781],[117.262924,39.027084],[117.26293,39.02596],[117.265763,39.021214],[117.265259,39.020688],[117.259203,39.022735],[117.258328,39.022319],[117.256903,39.020756],[117.262461,39.018937],[117.266613,39.020545],[117.270412,39.016794],[117.271479,39.017021],[117.272599,39.016666],[117.274488,39.014857],[117.275989,39.011052],[117.277607,39.002627],[117.279502,39.001641],[117.280673,39.001211],[117.282971,38.999406],[117.287475,39.001222],[117.290232,39.002499],[117.291214,39.002838],[117.293656,38.999189],[117.295111,38.998169],[117.288542,38.996229],[117.294031,38.99412],[117.293458,38.992956],[117.289794,38.991654],[117.292246,38.989007],[117.292394,38.988264],[117.287648,38.983311],[117.285917,38.980704],[117.285297,38.975279],[117.284739,38.968899],[117.283861,38.96848],[117.282203,38.968763],[117.282306,38.972826],[117.279968,38.974741],[117.279854,38.974711],[117.274803,38.978106],[117.273509,38.978522],[117.269077,38.974673],[117.268432,38.973742],[117.268564,38.972982],[117.273761,38.970272],[117.273081,38.969028],[117.272187,38.968207],[117.269943,38.967468],[117.269502,38.966254],[117.268901,38.963611],[117.260384,38.952068],[117.255244,38.952863],[117.247535,38.953932],[117.246579,38.953993],[117.245467,38.952996],[117.263597,38.944331],[117.26604,38.943313],[117.26644,38.942668],[117.266317,38.942017],[117.263355,38.93446],[117.261293,38.929298],[117.266386,38.927281],[117.272486,38.923759],[117.269515,38.919869],[117.280062,38.91079],[117.29054,38.901366],[117.290905,38.901198],[117.297027,38.895717],[117.304267,38.88949],[117.308016,38.885961],[117.317493,38.885912],[117.324295,38.887097],[117.327382,38.884008],[117.328635,38.883774],[117.329539,38.877779],[117.329784,38.875499],[117.333995,38.876475],[117.336041,38.869255],[117.336573,38.868768],[117.339183,38.86863],[117.34109,38.865016],[117.337477,38.864922],[117.337911,38.861057],[117.342141,38.861027],[117.34251,38.859856],[117.341767,38.85816],[117.344552,38.85224],[117.344518,38.851756],[117.34019,38.850493],[117.336152,38.850043],[117.338868,38.844025],[117.339249,38.843525],[117.345336,38.847049],[117.351115,38.850526],[117.36294,38.857537],[117.367076,38.860245],[117.385304,38.871185],[117.3878,38.872791],[117.402269,38.883149],[117.405048,38.885259],[117.407532,38.887275],[117.410267,38.884669],[117.412149,38.882767],[117.417557,38.877571],[117.420116,38.87522],[117.42343,38.871974],[117.425832,38.869716],[117.429728,38.865955],[117.437459,38.858612],[117.44059,38.869742],[117.443946,38.874037],[117.4467,38.87762],[117.448286,38.879442],[117.455154,38.883814],[117.458091,38.885748],[117.464496,38.890742],[117.465217,38.89118],[117.469085,38.893858],[117.476737,38.898782],[117.481808,38.902328],[117.484628,38.904208],[117.486885,38.90547],[117.501266,38.907548],[117.50329,38.907764],[117.501917,38.915659],[117.500558,38.923024],[117.498436,38.935012],[117.497778,38.939027],[117.497067,38.942787],[117.505197,38.945529],[117.511511,38.94745],[117.512858,38.945178],[117.52169,38.952032],[117.527746,38.953225],[117.529251,38.953183],[117.53881,38.947227],[117.543619,38.943054],[117.54688,38.942141],[117.550984,38.943021],[117.550223,38.948261],[117.549505,38.952928],[117.548526,38.954489],[117.548709,38.957553],[117.548684,38.958723],[117.550301,38.959113],[117.549609,38.965218],[117.549316,38.967533],[117.549351,38.968172],[117.550849,38.971837],[117.551299,38.973378],[117.552857,38.976588],[117.553924,38.978501],[117.554919,38.981043],[117.555171,38.981312],[117.556442,38.981375],[117.556971,38.981593],[117.557991,38.983505],[117.55834,38.984574],[117.559933,38.988287],[117.560219,38.989271],[117.559933,38.989893],[117.55801,38.991983],[117.555932,38.991392],[117.553562,38.991067],[117.552011,38.99106],[117.549691,38.991495],[117.548746,38.991967],[117.546801,38.993475],[117.54559,38.994707],[117.540963,39.000161],[117.539984,39.001113],[117.538278,39.002267],[117.53486,39.004448],[117.531152,39.005844],[117.527951,39.006157],[117.525417,39.005729],[117.523443,39.004654],[117.520538,39.002115],[117.519663,39.001169],[117.516317,38.998251],[117.513793,38.996444],[117.511769,38.995313],[117.51074,38.995121],[117.509519,38.995724],[117.508924,38.996458],[117.507998,38.998125],[117.506692,39.001208],[117.504687,39.004734],[117.502758,39.007529],[117.4977,39.013417],[117.495443,39.015691],[117.493627,39.016661],[117.492468,39.01689],[117.491395,39.016944],[117.489708,39.016516],[117.484404,39.014216],[117.481701,39.013347],[117.47912,39.013422],[117.47533,39.014149],[117.47335,39.014761],[117.472717,39.015102],[117.470719,39.016691],[117.469897,39.017998],[117.469897,39.018571],[117.471015,39.021504],[117.472019,39.02561],[117.471792,39.02908],[117.471232,39.030514],[117.469787,39.032398],[117.46822,39.033358],[117.46686,39.033368],[117.465365,39.033157],[117.464342,39.032842],[117.462264,39.03115],[117.459485,39.028584],[117.455371,39.026346],[117.450729,39.023611],[117.448727,39.022794],[117.437525,39.020473],[117.43122,39.020181],[117.427119,39.020232],[117.420405,39.020742],[117.412351,39.022747],[117.405284,39.025434],[117.398778,39.02901],[117.394573,39.032218],[117.393191,39.033664],[117.390352,39.038185],[117.388429,39.041942],[117.387066,39.046026],[117.385363,39.050247],[117.384797,39.051212],[117.383296,39.052261],[117.381061,39.053403],[117.380242,39.053635],[117.375581,39.052971],[117.371432,39.052149],[117.367265,39.05181],[117.362481,39.051754],[117.358757,39.051605],[117.356475,39.051801],[117.34787,39.053875],[117.343709,39.055588],[117.341679,39.056489],[117.339844,39.057655],[117.33764,39.059509],[117.332636,39.064846],[117.32878,39.068322],[117.326422,39.069559],[117.318173,39.073291],[117.313366,39.075099],[117.307537,39.076413],[117.305161,39.076796],[117.301037,39.077116],[117.294739,39.077315],[117.292451,39.077425],[117.292423,39.075869],[117.292076,39.075414],[117.288702,39.072479],[117.286675,39.071285],[117.285995,39.070468],[117.285891,39.06894],[117.286543,39.067156],[117.2871,39.06607],[117.288472,39.060201],[117.282942,39.059446],[117.280475,39.059301],[117.280572,39.058304],[117.283093,39.058995],[117.284403,39.055489],[117.286823,39.051028],[117.280462,39.048923],[117.279184,39.051465],[117.278045,39.053539],[117.267692,39.050364],[117.268986,39.047166],[117.270475,39.044921],[117.272263,39.043424],[117.27248,39.042779],[117.269792,39.041989],[117.266506,39.041232],[117.267289,39.039449]]]]}}],o={type:e,features:t};export{o as default,t as features,e as type};
This diff is collapsed.
import{_ as m}from"./MeasurementArt.vue_vue_type_style_index_1_lang-Bd99kPjc.js";import"./index-JHU7h98a.js";export{m as default};
html,body{width:100%}.asmcContainer{width:100%;height:100%;overflow:auto;margin:0;padding:0}.amsArt{background-image:url(/imgs/artPage/gy_pipe_art.jpg);background-size:cover;white-space:nowrap;width:1920px;height:1080px;margin:0;padding:0;position:relative}div{margin:0;padding:0}.div_Param{border:1px solid black;background-color:#ccd1d6;opacity:.5;padding:4px;position:absolute;font-weight:900}
import{d as q,r as s,s as k,b as A,l as B,c as G,e as J,h as O,w as M,i as e,t as o,p as t,k as j}from"./index-JHU7h98a.js";const z={class:"amsArt"},K={style:{"margin-top":"-30px","margin-left":"800px"}},Q={class:"div_Param",style:{"margin-left":"730px","margin-top":"40px"}},U={style:{color:"green"}},W={class:"div_Param",style:{"margin-left":"1100px","margin-top":"40px"}},X={style:{color:"green"}},Y={class:"div_Param",style:{"margin-left":"1350px","margin-top":"50px"}},Z={style:{color:"green"}},$={class:"div_Param",style:{"margin-left":"1640px","margin-top":"190px"}},ee={style:{color:"green"}},te=e("br",null,null,-1),se={style:{color:"green"}},ae=e("br",null,null,-1),le={style:{color:"green"}},oe=e("br",null,null,-1),re={style:{color:"green"}},ne=e("br",null,null,-1),ie={class:"div_Param",style:{"margin-left":"580px","margin-top":"640px"}},ce={style:{color:"green"}},pe={class:"div_Param",style:{"margin-left":"830px","margin-top":"630px"}},ue={style:{color:"green"}},de={class:"div_Param",style:{"margin-left":"1200px","margin-top":"580px"}},ve={style:{color:"green"}},_e=e("br",null,null,-1),me={style:{color:"green"}},he=e("br",null,null,-1),ge=q({__name:"MeasurementArt",props:["id","refreshTime"],setup(E){const u=E,m=j(),d=s(),c=s(),v=s();u.id===void 0?c.value=m.query.id:c.value=u.id;const p=s();u.refreshTime===void 0?p.value=m.query.time:p.value=u.refreshTime,console.log(p.value),N();function N(){var a=k.getters.getEnterprise();a&&(v.value=a[0].enterpriseId)}const l=A([]),_=s(),H=s(),L=s(),D=s(),V=s(),h=s(),y=s(),g=s(),f=s(),S=s(),x=s(),I=s(),P=s(),w=s(),b=s(),F=s();R();function R(){var a=k.getters.getEnterprise();console.log(a),a&&a.forEach(n=>{n.enterpriseId===v.value&&(n.enterpriseId==="9bca54bc-8f27-4849-8d7d-50c5099e1949"?n.serviceCenterList.forEach(r=>{r.supplyList.forEach(i=>{c.value===i.pipeInfo.pipeId&&(d.value=i.pipeInfo.pipeName,_.value=i.supplyId,T())})}):n.supplyList.forEach(r=>{c.value===r.pipeInfo.pipeId&&(d.value=r.supplyName,_.value=r.supplyId,T())}))})}function T(){B.post("/api/weather/Real",_.value).then(a=>{H.value=a.data.temperature,L.value=a.data.wind,D.value=a.data.illumination,V.value=a.data.humidity})}C();function C(){B.post("/api/pipe/Real",{enterpriseId:v.value,deviceType:8}).then(n=>{console.log(n),n.data.title.forEach(r=>{n.data.realData.forEach(i=>{i.id===c.value&&(l[r.enName]=i[r.enName[0].toLowerCase()+r.enName.substring(1)])})}),h.value=l.SupplyClearPressure,y.value=l.SupplyValuePressure,g.value=l.FirstInTemp,f.value=l.SupplyFlow,S.value=l.SupplyFlowSum,x.value=l.SupplyHeat,I.value=l.SupplyHeatSum,P.value=l.FirstOutTemp,w.value=l.BackClearPressure,b.value=l.BackFlow,F.value=l.BackFlowSum})}return setInterval(()=>{C(),console.log(p.value)},p.value*1e3),(a,n)=>{const r=G("el-scrollbar");return J(),O(r,{class:"asmcContainer"},{default:M(()=>[e("div",z,[e("div",K,[e("h1",null,o(d.value),1)]),e("div",Q,[t("供水除污器后压力 "),e("a",U,o(h.value),1),t(" mpa")]),e("div",W,[t("供水电动阀后压力 "),e("a",X,o(y.value),1),t(" mpa")]),e("div",Y,[t("一次网供水温度 "),e("a",Z,o(g.value),1),t(" ℃")]),e("div",$,[t(" 供水瞬时流量 "),e("a",ee,o(f.value),1),t(" m³"),te,t(" 供水累计流量 "),e("a",se,o(S.value),1),t(" m³"),ae,t(" 供水瞬时热量 "),e("a",le,o(x.value),1),t(" GJ/H"),oe,t(" 供水累计热量 "),e("a",re,o(I.value),1),t(" GJ"),ne]),e("div",ie,[t("一次网回水温度 "),e("a",ce,o(P.value),1),t(" ℃")]),e("div",pe,[t("回水除污器后压力 "),e("a",ue,o(w.value),1),t(" mpa")]),e("div",de,[t(" 回水瞬时流量 "),e("a",ve,o(b.value),1),t(" m³"),_e,t(" 回水累计流量 "),e("a",me,o(F.value),1),t(" m³"),he])])]),_:1})}}});export{ge as _};
import{_ as L}from"./MeasurementArt.vue_vue_type_style_index_1_lang-Bd99kPjc.js";import{b as B,r as u,s as v,c as i,e as c,f as h,i as r,j as d,w as f,p as b,F as x,g as N,h as y,D as S}from"./index-JHU7h98a.js";const F={style:{position:"absolute",height:"40px","z-index":"999","background-color":"aliceblue",width:"100%"}},P=r("div",{style:{position:"absolute","margin-top":"-29px","margin-left":"390px"}}," 供热站: ",-1),T={style:{position:"absolute","margin-top":"-38px",padding:"5px","margin-left":"455px"}},A={style:{position:"absolute","margin-top":"-32px","margin-left":"1100px"}},D=r("div",{style:{height:"40px"}},null,-1),R={__name:"MeasurementArtworkPage",setup(U){S();const s=B([]),l=u("6d695d02-ceb8-4af2-836f-89a55f12b4d5"),p=u(60),m=u(1),_=u();w();function w(){var t=v.getters.getEnterprise();t&&(_.value=t[0].enterpriseId)}I();function I(){var t=v.getters.getEnterprise();t&&t.forEach(e=>{console.log(e),e.enterpriseId===_.value&&(e.enterpriseId==="9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()?(e.serviceCenterList.forEach(o=>{console.log(o),o.supplyList.forEach(a=>{a.pipeInfo.pipeId!=="f8fdf686-30ec-4e4c-ab60-d74ec8b98e3f"&&s.push({value:a.pipeInfo.pipeId,label:a.pipeInfo.pipeName})})}),l.value=s[0].value):(e.supplyList.forEach(o=>{s.push({value:o.pipeInfo.pipeId,label:supply.pipeInfo.pipeName})}),l.value=s[0].value))})}function C(){const t="/MeasurementArt",e={id:l.value,time:p.value},o=new URLSearchParams(e).toString();window.open(`${t}?${o}`,"_blank","toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes")}function g(){m.value+=1}return(t,e)=>{const o=i("el-button"),a=i("el-option"),E=i("el-select"),V=i("el-input"),k=i("el-scrollbar");return c(),h(x,null,[r("div",F,[d(o,{style:{"margin-left":"5px","padding-left":"10px","margin-top":"5px","margin-bottom":"0px"},onClick:C,type:"primary",icon:"FullScreen"},{default:f(()=>[b("全屏")]),_:1}),P,r("div",T,[d(E,{modelValue:l.value,"onUpdate:modelValue":e[0]||(e[0]=n=>l.value=n),"collapse-tags":"",placeholder:"请选择",style:{"min-width":"220px"},onChange:g},{default:f(()=>[(c(!0),h(x,null,N(s,n=>(c(),y(a,{label:n.label,value:n.value},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),r("div",A,[b(" 刷新间隔(秒):"),d(V,{style:{width:"80px"},modelValue:p.value,"onUpdate:modelValue":e[1]||(e[1]=n=>p.value=n),type:"number",min:"3",max:"300",onChange:g},null,8,["modelValue"])])]),D,d(k,{style:{width:"1920px",height:"980px"}},{default:f(()=>[(c(),y(L,{id:l.value,key:m.value,refreshTime:p.value},null,8,["id","refreshTime"]))]),_:1})],64)}}};export{R as default};
const e="FeatureCollection",t=[{type:"Feature",properties:{adcode:120104,name:"南开区",center:[117.164143,39.120474],centroid:[117.155049,39.108953],childrenNum:0,level:"district",acroutes:[1e5,12e4],parent:{adcode:12e4}},geometry:{type:"MultiPolygon",coordinates:[[[[117.188532,39.066925],[117.187864,39.067682],[117.187491,39.067999],[117.187008,39.068465],[117.185863,39.069314],[117.185456,39.069719],[117.184451,39.070993],[117.184096,39.071479],[117.183819,39.072002],[117.183464,39.072876],[117.183065,39.074205],[117.182728,39.075622],[117.182451,39.077016],[117.18213,39.078706],[117.181541,39.081277],[117.181082,39.083112],[117.180659,39.08475],[117.18019,39.08677],[117.179931,39.088048],[117.179723,39.08933],[117.179688,39.089798],[117.179464,39.092096],[117.179394,39.092613],[117.179334,39.09326],[117.179238,39.094067],[117.17911,39.095324],[117.179082,39.096049],[117.179065,39.097291],[117.179213,39.097482],[117.179231,39.098013],[117.179231,39.09918],[117.179248,39.101031],[117.179292,39.10199],[117.179422,39.104469],[117.179535,39.109497],[117.179546,39.110207],[117.17966,39.114403],[117.179676,39.117129],[117.179744,39.119716],[117.179805,39.121257],[117.179901,39.122444],[117.179953,39.122755],[117.180152,39.124597],[117.180491,39.127971],[117.180682,39.130134],[117.180872,39.132361],[117.181003,39.133829],[117.181168,39.137091],[117.184923,39.136998],[117.190355,39.136844],[117.190395,39.136737],[117.190395,39.136283],[117.191442,39.13615],[117.191634,39.136081],[117.191867,39.135872],[117.19205,39.135337],[117.19224,39.134377],[117.192315,39.134328],[117.193202,39.134467],[117.194207,39.134669],[117.194008,39.135251],[117.194008,39.136441],[117.194356,39.140028],[117.194928,39.145199],[117.194737,39.146454],[117.194442,39.146993],[117.193558,39.146661],[117.192684,39.146448],[117.190587,39.145967],[117.189946,39.14589],[117.189027,39.145866],[117.185538,39.145935],[117.181273,39.146132],[117.180991,39.146073],[117.18062,39.146148],[117.174047,39.146318],[117.171681,39.146467],[117.171837,39.141936],[117.165097,39.141663],[117.161665,39.141596],[117.160234,39.141589],[117.159567,39.141577],[117.159073,39.141495],[117.158023,39.14118],[117.157729,39.141554],[117.157209,39.142002],[117.15617,39.142212],[117.155251,39.142314],[117.154177,39.142385],[117.152625,39.142531],[117.152366,39.14257],[117.151914,39.142723],[117.150546,39.143073],[117.147919,39.143364],[117.145595,39.144053],[117.144122,39.144068],[117.144034,39.144173],[117.144018,39.144369],[117.144729,39.145453],[117.145527,39.146081],[117.145648,39.146333],[117.145536,39.147415],[117.145415,39.147696],[117.144321,39.148576],[117.143759,39.148317],[117.142909,39.148066],[117.140022,39.147105],[117.136761,39.146467],[117.135806,39.146642],[117.134983,39.146916],[117.134273,39.147337],[117.133648,39.147942],[117.131541,39.150495],[117.130673,39.151476],[117.129797,39.152086],[117.128964,39.152295],[117.128479,39.152243],[117.128496,39.151796],[117.128287,39.151079],[117.127863,39.150267],[117.127376,39.149486],[117.126717,39.14821],[117.126414,39.147672],[117.123646,39.146167],[117.122405,39.146928],[117.120947,39.146504],[117.12086,39.144028],[117.122118,39.142941],[117.120651,39.141705],[117.118108,39.139648],[117.117153,39.138841],[117.115156,39.137223],[117.114444,39.136609],[117.113569,39.135897],[117.113209,39.135873],[117.112327,39.135551],[117.109765,39.1345],[117.116978,39.128213],[117.120275,39.125349],[117.121785,39.124032],[117.123201,39.12282],[117.124423,39.121724],[117.125021,39.121233],[117.126514,39.119912],[117.129637,39.117168],[117.131154,39.115677],[117.131622,39.115078],[117.13176,39.114627],[117.1319,39.11377],[117.132065,39.112424],[117.132359,39.109635],[117.133217,39.100019],[117.133564,39.098442],[117.133823,39.09717],[117.134491,39.095211],[117.135522,39.093011],[117.136147,39.091968],[117.136824,39.091085],[117.135642,39.090502],[117.13347,39.089447],[117.131116,39.088296],[117.128498,39.087096],[117.125698,39.086018],[117.124809,39.085762],[117.123271,39.085081],[117.121409,39.08453],[117.122148,39.084022],[117.122596,39.08417],[117.122788,39.084271],[117.122959,39.084213],[117.123617,39.083808],[117.125112,39.082972],[117.126065,39.082513],[117.127991,39.081721],[117.131176,39.0804],[117.131398,39.080241],[117.132406,39.079862],[117.133361,39.079313],[117.134525,39.0786],[117.13625,39.077513],[117.13673,39.077196],[117.137451,39.076673],[117.138536,39.076003],[117.139985,39.075007],[117.140413,39.074614],[117.140644,39.074562],[117.141437,39.07415],[117.143364,39.072964],[117.143948,39.072552],[117.145699,39.07122],[117.149297,39.068916],[117.149699,39.068291],[117.153124,39.066549],[117.154674,39.065654],[117.159061,39.062369],[117.161163,39.063032],[117.161747,39.062504],[117.162659,39.061842],[117.163216,39.062246],[117.163259,39.062452],[117.163905,39.06273],[117.164352,39.063058],[117.164869,39.062604],[117.165727,39.062],[117.166654,39.061615],[117.16759,39.061305],[117.168404,39.061203],[117.169366,39.06115],[117.17018,39.061174],[117.171445,39.061446],[117.183993,39.065496],[117.188532,39.066925]]]]}}],o={type:e,features:t};export{o as default,t as features,e as type};
This diff is collapsed.
import{_,o as w,H as a,a as x,e as i,f as n,i as e,F as g,g as v,P as k,Q as b,p as B,t as c,q as S,x as $}from"./index-JHU7h98a.js";var I={title:{text:"供热面积",left:"center",padding:15},tooltip:{trigger:"item"},legend:{top:"bottom",icon:"circle",itemWidth:10,itemHeight:10,itemGap:7,padding:[0,0,15,0]},series:[{name:"面积",type:"pie",radius:["40%","65%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"40",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:35464925242e-4,name:"东部供热站"},{value:147597.9058,name:"重阳里供热站"},{value:21370324704e-4,name:"行政区供热站"},{value:25310522162e-4,name:"福苑里供热站"},{value:484232.7398,name:"小王庄供热站"}]}]},y={title:{text:"供热年能耗对比"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:["2021-2022年度","2022-2023年度","2023-2024年度"],padding:[0,0,15,0]},grid:{left:"3%",right:"4%",bottom:"3%",top:"13%",containLabel:!0},xAxis:[{type:"category",data:["10月","11月","12月","1月","2月","3月"]}],yAxis:[{type:"value"}],series:[{name:"2021-2022年度",type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"},itemStyle:{normal:{barBorderRadius:[4,4,0,0]}},data:[730,620,420,932,701,834]},{name:"2022-2023年度",type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"},data:[230,210,120,132,101,134]},{name:"2023-2024年度",type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"},data:[210,120,132,101,134,90]}]},O={title:{text:"小王庄换热站机组热量分配",left:"center"},tooltip:{trigger:"item"},legend:{top:"bottom",icon:"circle",itemWidth:10,itemHeight:10,itemGap:7,padding:[0,0,10,0]},series:[{name:"小王庄换热站机组热量分配",type:"pie",radius:"55%",data:[{value:136716.334,name:"瑞景园低区"},{value:46031.8708,name:"瑞景园高区"},{value:100442.6384,name:"翰锦园"},{value:92264.2236,name:"圣美园低区"},{value:19073.417,name:"圣美园高区"},{value:9061.78,name:"社区服务中心"},{value:73158.966,name:"枫雅园"},{value:3083.51,name:"枫雅园_幼儿园"},{value:0,name:"枫润园低区"},{value:0,name:"枫润园高区"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},E={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{},grid:{left:"3%",right:"4%",bottom:"3%",top:"13%",containLabel:!0},xAxis:{type:"value"},yAxis:{type:"category",data:["东部","重阳里","福苑里","行政区","小王庄"]},series:[{name:"大于18℃",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:[320,302,301,334,390,330,320]},{name:">=18℃",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:">=20℃ <22℃",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:">=22℃ <24℃",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:[150,212,201,154,190,330,410]},{name:">=24℃ <26℃",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:[820,832,901,934,1290,1330,1320]},{name:">=26℃",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:[820,832,901,934,1290,1330,1320]}]},C={title:{text:"重阳里换热站机组热量分配",left:"center"},tooltip:{trigger:"item"},legend:{top:"bottom",icon:"circle",itemWidth:10,itemHeight:10,itemGap:7,padding:[0,0,10,0]},series:[{name:"重阳里换热站机组热量分配",type:"pie",radius:"55%",data:[{value:128521.0958,name:"重阳里北区"},{value:10714.81,name:"重阳里南低区"},{value:8362,name:"重阳里南高区"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},r;const A={components:{},data(){return{center:[{title:"系统消息",icon:"el-icon-set-up",url:""},{title:"工具条",icon:"el-icon-turn-off",url:""}],n:90,value1:"1",applicants:{day:20,week:150,month:1200,totalBoy:800,totalGirl:890,taotal:1690},list:[{desc:"总供热面积(万m³):484232.7398"},{desc:"当日平均温度(℃):30"},{desc:"耗热量(GJ):0"},{desc:"热单耗(w/m):0"},{desc:"耗电量(A):0"},{desc:"耗水量(t):0"},{desc:"耗气量(Nm³):0"}],grid:[{name:"用户管理",desc:"系统用户管理,注册用户3000000人。",icon:"el-icon-user"},{name:"站内消息",desc:"您有一条新的消息,请及时处理。",icon:"el-icon-chat-dot-round"},{name:"系统管理",desc:"这里放点什么,还没想好。",icon:"el-icon-setting"},{name:"还没想好",desc:"这里不知道应该放点什么或者写点什么。",icon:"el-icon-document"},{name:"语音导航",desc:"高德地图林志玲为您语音导航。",icon:"el-icon-microphone"},{name:"垃圾回收",desc:"删除过的数据在此处找回。。。。",icon:"el-icon-delete"}]}},setup(){let t=d=>{window.open(d.url,"_blank")};return w(()=>{l=a(document.getElementById("h-chart1")),l.setOption(I),r=a(document.getElementById("h-chart2")),r.setOption(y),h=a(document.getElementById("h-chart3")),h.setOption(O),a(document.getElementById("h-chart4")).setOption(E),a(document.getElementById("h-chart5")).setOption(y),a(document.getElementById("h-chart6")).setOption(C)}),x(()=>{l&&(l.dispose(),r.dispose(),h.dispose(),$chart5.dispose())}),{open:t}},destroyed(){r=null}};var l,r,h;const p=t=>(S("data-v-67879011"),t=t(),$(),t),G={class:"home-contianer"},L={class:"h-top"},W=p(()=>e("div",{class:"h-top-left",id:"h-chart1"},"left",-1)),z={class:"h-top-center"},H={class:"n-item"},N=["onClick"],P=p(()=>e("br",null,null,-1)),V={class:"h-top-right task-table"},F=p(()=>e("h3",{class:"h3"},"相关信息",-1)),R={border:"0",cellspacing:"0",cellpadding:"0"},X=k('<div class="h-chart" data-v-67879011><div id="h-chart6" data-v-67879011></div><div id="h-chart2" data-v-67879011></div><div id="h-chart3" data-v-67879011></div></div><div style="display:flex;" data-v-67879011><div id="h-chart4" style="height:350px;background:white;flex:1;padding-top:15px;" data-v-67879011></div><div id="h-chart5" style="height:350px;background:white;flex:1;padding-top:15px;" data-v-67879011></div></div>',2);function q(t,d,f,m,u,D){return i(),n("div",G,[e("div",L,[W,e("div",z,[e("div",H,[(i(!0),n(g,null,v(u.center,(o,s)=>(i(),n("div",{onClick:J=>m.open(o),class:b(["item","item"+(s+1)]),key:s},[e("i",{style:{"font-size":"30px","padding-bottom":"10px"},class:b(o.icon),size:20},null,2),P,B(" "+c(o.title),1)],10,N))),128))])]),e("div",V,[F,e("table",R,[(i(!0),n(g,null,v(u.list,(o,s)=>(i(),n("tr",{key:s},[e("td",null,c(s+1),1),e("td",null,c(o.desc),1)]))),128))])])]),X])}const Q=_(A,[["render",q],["__scopeId","data-v-67879011"]]);export{Q as default};
.home-contianer[data-v-67879011]{padding:6px;background:#eee;width:100%;height:100%;top:0;right:0;left:0;margin:0 auto}.home-contianer .h-top[data-v-67879011]{display:flex;height:300px}.home-contianer .h-top .h-top-left[data-v-67879011]{height:100%;width:300px;background:#fff}.home-contianer .h-top>div[data-v-67879011]{border:1px solid #e8e7e7;border-radius:5px}.home-contianer .h-top-center[data-v-67879011]{height:100%;background:#fff;margin:0 6px;display:flex;flex-direction:column;flex:1}.home-contianer .h-top-center .item1 .num[data-v-67879011]{padding-top:28px}.home-contianer .h-top-center .item2 .num[data-v-67879011]{padding-bottom:20px}.home-contianer .h-top-center .n-item[data-v-67879011]{width:100%;height:100%;text-align:center;cursor:pointer}.home-contianer .h-top-center .n-item .item[data-v-67879011]{border-right:1px solid #e5e5e5;width:33.3333333%;float:left;height:50%;border-bottom:1px solid #e5e5e5;padding:47px 0;font-size:13px}.home-contianer .h-top-center .n-item .item[data-v-67879011]:hover{background:#f9f9f9;cursor:pointer}.home-contianer .h-top-center .n-item .item[data-v-67879011]:last-child{border-right:0}.home-contianer .h-top-center .n-item .item3[data-v-67879011],.home-contianer .h-top-center .n-item .item6[data-v-67879011]{border-right:0}.home-contianer .h-top-center .n-item .num[data-v-67879011]{word-break:break-all;color:#282727;font-size:30px;transition:transform .8s}.home-contianer .h-top-center .n-item .num[data-v-67879011]:hover{color:#55ce80;transform:scale(1.2)}.home-contianer .h-top-center .n-item .text[data-v-67879011]{font-size:13px;color:#777}.home-contianer .h-top-right[data-v-67879011]{width:400px;height:100%;background:#fff}.home-contianer .h3[data-v-67879011]{padding:7px 15px;font-weight:500;background:#fff;border-bottom:1px dotted #d4d4d4}.task-table table[data-v-67879011]{width:100%}.task-table table .thead[data-v-67879011]{font-weight:700}.task-table table tr[data-v-67879011]{cursor:pointer}.task-table table tr td[data-v-67879011]{border-bottom:1px solid #f3f3f3;padding:9px 8px;font-size:12px}.task-table table tr[data-v-67879011]:hover{background:#eee}.h-chart[data-v-67879011]{height:340px;margin:6px 0;display:flex}.h-chart .h-left-grid[data-v-67879011]{width:300px;height:100%;background:#fff;display:inline-block}.h-chart .h-left-grid .name[data-v-67879011]{margin-left:7px}.h-chart .h-left-grid .item[data-v-67879011]:hover{background:#f9f9f9;cursor:pointer}.h-chart .h-left-grid .item[data-v-67879011]{padding:22px 14px;float:left;width:50%;height:33.33333%;border-bottom:1px solid #eee;border-right:1px solid #eee}.h-chart .h-left-grid .item i[data-v-67879011]{font-size:30px}.h-chart .h-left-grid .item .desc[data-v-67879011]{font-size:12px;color:#c3c3c3;padding:5px 0 0 4px;line-height:1.5}#h-chart2[data-v-67879011]{border-radius:3px;background:#fff;padding-top:10px;height:100%;width:0;flex:1;margin:0 7px}#h-chart3[data-v-67879011]{border-radius:3px;padding:10px 10px 0;background:#fff;height:100%;width:400px}
import{_ as e}from"./index-JHU7h98a.js";const n={};function r(c,o){return" 天气工况 "}const _=e(n,[["render",r]]);export{_ as default};
This diff is collapsed.
/* empty css */import{_ as he,r as d,s as U,b as N,o as ve,l as ge,c as f,z as _e,e as h,f as x,j as l,w as r,i as u,F as I,g as B,h as L,p as H,u as C,C as J,m as me,B as K,q as be,x as ye}from"./index-JHU7h98a.js";import{C as we}from"./CfgSupply-DVak_OLU.js";/* empty css */const T=k=>(be("data-v-2881ef80"),k=k(),ye(),k),xe={class:"div-header"},Ie={class:"div-dropdown text-center"},Le=T(()=>u("span",null,"供热站 : ",-1)),Ce={class:"div-list"},Te={style:{float:"left"}},ke={class:"div-button"},Fe={style:{display:"flex"}},Ve={class:"div-autoRefresh"},Ee={class:"div-form-img"},Ne={style:{height:"40px"}},De=T(()=>u("span",{class:"span-text"},"停止:",-1)),ze=T(()=>u("span",{class:"span-text"},"启动:",-1)),Se=T(()=>u("span",{class:"span-text"},"正常:",-1)),Re=T(()=>u("span",{class:"span-text"},"报警:",-1)),Ue={__name:"PipeStatusPage",setup(k){const F=d(null);F.value=U.getters.getEnterpriseId(),d([]),d([]),d([]),d([!1]),N({supplyList:[],dropdownList:[],pipeInfo:{}}),N({tableData:[],alarm:[],forms:[],title:[]});var g=d(!1),v=d(60),V;const i=N({enterpriseId:F.value,tree:[],supplyId:[],deviceType:1,id:[],name:[],interval:2,sort:"",pageIndex:0,pageCount:30});d(1),d(30),d(100),d(!1),d(!1);var Q=window.innerHeight-230;const D=d(Q);var c=N({tableData:[],title:{frozenList:[],otherList:[]}});const z=d(!0);d(!0);const m=d(!1),W=d(2),P=d([]),X=d("换热站状态自定义列");ve(()=>Y());async function Y(){window.addEventListener("resize",Z),await ee(),await A(F.value,i.deviceType,i.id,[])}function Z(){D.value=window.innerHeight-230}const $=a=>{m.value=!1,R()};function ee(){var a=U.getters.getEnterprise(),t=U.getters.getEnterpriseId();if(a)for(var p=0;p<a.length;p++)a[p].enterpriseId===t&&(a[p].enterpriseId==="9bca54bc-8f27-4849-8d7d-50c5099e1949"?a[p].serviceCenterList.forEach(n=>{n.supplyList.forEach(e=>{var o={};o.value=e.supplyId,o.label=e.supplyName,e.pipeInfo&&(o.pipeType=e.pipeInfo.pipeType===1?8:1,o.disabled=o.pipeType!=i.deviceType,i.tree.push(o))})}):a[p].supplyList.forEach(n=>{var e={};e.value=n.supplyId,e.label=n.supplyName,n.pipeInfo&&(e.pipeType=n.pipeInfo.pipeType===1?8:1,e.disabled=e.pipeType!=i.deviceType,i.tree.push(e))}));i.tree&&i.tree.forEach(n=>{n.pipeType===i.deviceType&&i.id.push(n.value)})}function te(a){c.title.frozenList.length===0&&ae(),le(a)}function ae(){S("rowIndex","编号",!1,60,!0),S("name","机组名称",!0,180,!0),S("gatherTime","采集时间",!0,180,!0)}function S(a,t,p,n,e){var o={field:a,title:t,sortable:p,width:n,color:"b5e6ff",isVisible:e};c.title.frozenList.push(o)}function le(a){c.title.otherList.length=0,a.forEach(t=>{se(t.alias,t.backColor,t.baseId,t.decimalPoint,t.enName[0].toLowerCase()+t.enName[1].toLowerCase()+t.enName.substring(2),t.orderNum,t.width,t.isVisible)})}function se(a,t,p,n,e,o,_,E){var y={alias:a,backColor:t,baseId:p,decimalPoint:n,enName:e,orderNum:o,width:_,isVisible:E};c.title.otherList.push(y)}function O(a){c.tableData.length=0,c.tableData.push.apply(c.tableData,a)}async function A(a,t,p,n){z.value=!0,await ge.post("/api/status/pipe",{enterpriseId:a,deviceType:t,supplyIdList:p,name:null,sortList:n}).then(e=>{e.status===0?(te(e.data.title),P.value=e.data.title,O(e.data.realData)):O([])}),z.value=!1}function j(a,t){return b(a.row[t.enName])}function b(a){var t=null;switch(a){case"0":t=new URL("/imgs/status/status_off.png",import.meta.url).href;break;case"-1":t=new URL("/imgs/status/status_run.png",import.meta.url).href;break;case"1":t=new URL("/imgs/status/status_on.png",import.meta.url).href;break;case"-2":t=new URL("/imgs/status/status_alarm.png",import.meta.url).href;break}return t}async function R(){await A(F.value,i.deviceType,i.id,[])}function oe(){i.tree.forEach(a=>{a.value===i.id[0]&&(i.deviceType=a.pipeType)}),i.id.length===0?i.tree.forEach(a=>{a.disabled=!1}):i.tree.forEach(a=>{a.value===i.id[0]&&i.tree.forEach(t=>{t.pipeType!==a.pipeType?t.disabled=!0:t.disabled=!1})})}function ie({row:a,column:t,rowIndex:p,columnIndex:n}){let e={};return e["padding-left"]="0px",e["padding-right"]="0px",e.borderColor="#97d5fd",e.padding="0px",c.title.frozenList.forEach(o=>{o.field===t.property&&(e["background-color"]="#"+o.color)}),c.title.otherList.forEach(o=>{o.enName===t.property&&(e["background-color"]="#"+o.backColor)}),e}function re({row:a,column:t,rowIndex:p,columnIndex:n}){let e;return c.title.frozenList.forEach(o=>{if(o.field===t.property){var _=o.color=="FFFFFF"?"d9f1ff":o.color;e={"background-color":"#"+_,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"}}}),c.title.otherList.forEach(o=>{if(o.enName===t.property){var _=o.backColor=="FFFFFF"?"d9f1ff":o.backColor;e={"background-color":"#"+_,"padding-left":"0px","padding-right":"0px",borderColor:"#97d5fd",color:"#000","text-align":"center","vertical-align":"top"}}}),e}function ne(){g.value?v.value&&v.value>0?V=setInterval(()=>{R()},v.value*1e3):(g.value=!1,v.value="",clearInterval(V)):clearInterval(V)}function de(){g.value=!1,clearInterval(V)}function pe(a){return/^[0-9]*$/.test(a)?a:""}return(a,t)=>{const p=f("el-option"),n=f("el-select"),e=f("el-col"),o=f("el-input"),_=f("el-switch"),E=f("el-button"),y=f("el-row"),q=f("el-card"),M=f("el-table-column"),w=f("el-image"),ce=f("el-table"),ue=_e("loading");return h(),x(I,null,[l(we,{modelValue:m.value,"onUpdate:modelValue":t[0]||(t[0]=s=>m.value=s),onOnChangeDialog:$,titleData:P.value,height:500,width:950,deviceType:3,title:X.value,cfgType:W.value},null,8,["modelValue","titleData","title","cfgType"]),l(q,{class:"card-contianer","body-style":{padding:"0px 0px 0px 0px",height:"110px"}},{default:r(()=>[u("div",xe,[l(y,null,{default:r(()=>[l(e,{span:7},{default:r(()=>[u("div",Ie,[Le,l(n,{modelValue:i.id,"onUpdate:modelValue":t[1]||(t[1]=s=>i.id=s),multiple:"true","collapse-tags":"",placeholder:"请选择",style:{"min-width":"100px","max-width":"200px"},onChange:oe},{default:r(()=>[(h(!0),x(I,null,B(i.tree,s=>(h(),L(p,{label:s.label,value:s.value,disabled:s.disabled},null,8,["label","value","disabled"]))),256))]),_:1},8,["modelValue"])])]),_:1}),l(e,{span:2}),l(e,{span:4},{default:r(()=>[u("div",Ce,[u("div",Te,[H(" 刷新间隔(秒): "),l(o,{modelValue:C(v),"onUpdate:modelValue":t[2]||(t[2]=s=>J(v)?v.value=s:v=s),formatter:pe,focus:de,style:{width:"60px"}},null,8,["modelValue"])])])]),_:1}),l(e,{span:11},{default:r(()=>[u("div",ke,[l(y,{gutter:10},{default:r(()=>[l(e,{span:13},{default:r(()=>[u("div",Fe,[u("div",Ve,[l(_,{modelValue:C(g),"onUpdate:modelValue":t[3]||(t[3]=s=>J(g)?g.value=s:g=s),class:"switch-autoRefresh","active-text":"自动刷新","inactive-text":"手动刷新",style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"rgb(64, 158, 255)"},onChange:ne},null,8,["modelValue"])])])]),_:1}),l(e,{span:3},{default:r(()=>[l(E,{class:"el-button-button",type:"primary",span:6,onClick:R,icon:"Search"},{default:r(()=>[H(" 查  询")]),_:1})]),_:1}),l(e,{span:3},{default:r(()=>[l(E,{class:"el-button-button",type:"primary",span:6,onClick:t[4]||(t[4]=s=>m.value=!m.value)},{default:r(()=>[H("自定义列")]),_:1})]),_:1}),l(e,{span:5})]),_:1})])]),_:1})]),_:1})])]),_:1}),l(q,{class:"moduleCard",height:D.value},{default:r(()=>[me((h(),L(ce,{data:C(c).tableData,height:D.value,"cell-style":ie,border:"","highlight-current-row":"","header-cell-style":re,"header-cell-class-name":a.handleHeadAddClass},{default:r(()=>[(h(!0),x(I,null,B(C(c).title.frozenList,(s,fe)=>(h(),L(M,{prop:s.field,label:s.title,width:s.width,sortable:s.field==="name"||s.field==="gatherTime",fixed:""},null,8,["prop","label","width","sortable"]))),256)),(h(!0),x(I,null,B(C(c).title.otherList,(s,fe)=>(h(),x(I,null,[s.isVisible?(h(),L(M,{key:0,prop:s.enName,label:s.alias,width:s.width},{default:r(G=>[u("div",Ee,[j(G,s)?(h(),L(w,{key:0,class:"img-center",style:{width:"30px",height:"30px"},src:j(G,s),fit:"cover"},null,8,["src"])):K("",!0)])]),_:2},1032,["prop","label","width"])):K("",!0)],64))),256))]),_:1},8,["data","height","header-cell-class-name"])),[[ue,z.value]])]),_:1},8,["height"]),u("div",Ne,[l(y,{style:{height:"100%"}},{default:r(()=>[l(e,{span:2}),l(e,{span:2}),l(e,{span:2}),l(e,{span:2}),l(e,{span:2}),l(e,{span:2}),l(e,{span:2}),l(e,{class:"col-center",span:2},{default:r(()=>[De,l(w,{style:{width:"30px",height:"30px"},src:b("0"),fit:"cover"},null,8,["src"])]),_:1}),l(e,{class:"col-center",span:2},{default:r(()=>[ze,l(w,{style:{width:"30px",height:"30px"},src:b("1"),fit:"cover"},null,8,["src"])]),_:1}),l(e,{class:"col-center",span:2},{default:r(()=>[Se,l(w,{style:{width:"30px",height:"30px"},src:b("-1"),fit:"cover"},null,8,["src"])]),_:1}),l(e,{class:"col-center",span:2},{default:r(()=>[Re,l(w,{style:{width:"30px",height:"30px"},src:b("-2"),fit:"cover"},null,8,["src"])]),_:1}),l(e,{span:2})]),_:1})])],64)}}},Ae=he(Ue,[["__scopeId","data-v-2881ef80"]]);export{Ae as default};
const a="/imgs/artPage/fire_shuanggang.gif",s="/imgs/artPage/Exhaust_shuanggang.gif",g="/imgs/artPage/Fan.gif",t="/imgs/artPage/Pumpx.gif";export{a as _,s as a,g as b,t as c};
.contentBlock[data-v-cc05c20b]{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff}.el-form--inline .el-form-item[data-v-cc05c20b]{margin-right:10px}.el-form-item[data-v-cc05c20b]{margin:5px!important}.echartsLayer[data-v-cc05c20b]{width:100%;margin:2% auto 0}.el-form-item__content[data-v-cc05c20b]{align-items:right!important}
This diff is collapsed.
.contentBlock[data-v-b96e59b6]{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff;overflow:auto}table[data-v-b96e59b6],tr[data-v-b96e59b6],th[data-v-b96e59b6],td[data-v-b96e59b6]{font-size:14px;margin:0;padding:0}table[data-v-b96e59b6]{width:100%}table th[data-v-b96e59b6]{background-color:#dfe8f6;text-align:center;padding:5px 10px}table td[data-v-b96e59b6]{text-align:center;background-color:#fff;padding:5px 10px}table.bottomTable td[data-v-b96e59b6]{border-bottom:#ebeef5 solid 1px;padding:10px 0}.btngrounp[data-v-b96e59b6]{width:300px;margin:0 auto;text-align:center}.exlBlock[data-v-b96e59b6]{display:none}@media print{.printHidden[data-v-b96e59b6]{display:none}@page{size:auto;margin:3mm}body[data-v-b96e59b6],html[data-v-b96e59b6]{height:auto!important}}
import{_ as A,r as m,b as J,J as G,o as R,a as O,c as h,z as E,m as T,e as v,f as k,i as t,j as r,w as a,t as l,F as L,g as z,E as B,p as b,h as M,u as C,q as N,x as q}from"./index-JHU7h98a.js";import{X as _,F as j}from"./xlsx.min-DRjjhPmk.js";import{d as U,t as V}from"./vue3-print-nb.es-DgOsI0Dr.js";const i=g=>(N("data-v-b96e59b6"),g=g(),q(),g),X={class:"contentBlock","element-loading-background":"rgba(122, 122, 122, 0.6)"},Q={class:"contentBlockInn",id:"printBlock"},K={cellpadding:"0",cellspacing:"1",style:{"background-color":"#99bbe8"}},W={style:{"text-align":"center"}},Y={style:{"font-size":"24px"}},Z={style:{"font-size":"14px","margin-left":"10px"}},$=i(()=>t("div",null,[t("div",null,"港益"),t("span",null,"供水温度(℃)")],-1)),tt=i(()=>t("div",null,[t("div",null,"港益"),t("span",null,"回水温度(℃)")],-1)),et=i(()=>t("div",null,[t("div",null,"港益"),t("span",null,"供水瞬时流量(m³/h)")],-1)),lt=i(()=>t("div",null,[t("div",null,"港益"),t("span",null,"供水瞬时热量(GJ/H)")],-1)),nt=i(()=>t("div",null,[t("div",null,"滨海供热集团"),t("span",null,"供水温度(℃)")],-1)),ot=i(()=>t("div",null,[t("div",null,"滨海供热集团"),t("span",null,"回水温度(℃)")],-1)),st=i(()=>t("div",null,[t("div",null,"滨海供热集团"),t("span",null,"供水压力(MP)")],-1)),rt=i(()=>t("div",null,[t("div",null,"滨海供热集团"),t("span",null,"回水压力(MP)")],-1)),at=i(()=>t("div",null,[t("div",null,"滨海供热集团"),t("span",null,"供水瞬时流量(m³/h)")],-1)),it=i(()=>t("div",null,[t("div",null,"滨海供热集团"),t("span",null,"供水瞬时热量(GJ/H)")],-1)),ct={cellpadding:"0",cellspacing:"1",class:"bottomTable",style:{width:"100%"}},dt=i(()=>t("td",{style:{"text-align":"center",width:"50%"}}," 预测方案生成 瞬时热量(GJ/H) ",-1)),ut={style:{"text-align":"center"}},pt=i(()=>t("td",{style:{"text-align":"center"}},"滨海供热集团汇总 瞬时热量(GJ/H)",-1)),_t={style:{"text-align":"center"}},ht=i(()=>t("td",{style:{"text-align":"center"}}," 预测瞬时热量与汇总 瞬时热量 差两(GJ/H) ",-1)),gt={style:{"text-align":"center"}},ft=i(()=>t("td",{style:{"text-align":"center"}}," 预测瞬时热量与汇总 瞬时热量 差量比(%) ",-1)),yt={style:{"text-align":"center"}},wt={class:"btngrounp"},vt={cellpadding:"0",cellspacing:"3",class:"exlBlock",id:"exlBlock",style:{"background-color":"#ff0"}},bt={colspan:"17"},xt=i(()=>t("tr",null,[t("td",null,"地点"),t("td",null,"区域换热站计量反馈瞬时流量(m³/h)"),t("td",null,"区域换热站计量反馈瞬时热量(GJ/H)"),t("td",null,"港益供水温度(℃)"),t("td",null,"港益回水温度(℃)"),t("td",null,"港益供水瞬时流量(m³/h)"),t("td",null,"港益供水瞬时热量(GJ/H)"),t("td",null,"预测瞬时热量"),t("td",null,"当前预测热量累计"),t("td",null,"当前热量偏差量"),t("td",null,"滨海供热集团供水温度(℃)"),t("td",null,"滨海供热集团回水温度(℃)"),t("td",null,"滨海供热集团供水压力(MP)"),t("td",null,"滨海供热集团回水压力(MP)"),t("td",null,"滨海供热集团供水瞬时流量(m³/h)"),t("td",null,"滨海供热集团供水瞬时热量(GJ/H)"),t("td",null,"当前实际热量累计")],-1)),Ht={colspan:"17"},Ft={colspan:"17"},mt={colspan:"17"},kt={colspan:"17"},Pt={__name:"RealAnalysisPage",setup(g){const x=m(!1),f=J({nowTime:null,queryTime:null}),u=m([]),y=m([]),S=V,D={id:"printBlock",popTitle:"明日预测报表",extraHead:'<meta http-equiv="Content-Language"content="zh-cn"/>',zIndex:20002};function I(){const p=_.utils.book_new();var c=_.utils.table_to_sheet(document.getElementById("exlBlock"));const o={top:{style:"thin"},bottom:{style:"thin"},left:{style:"thin"},right:{style:"thin"}},d=_.utils.decode_range(c["!ref"]),n=Object.keys(c).filter(e=>e.indexOf("!")<0);for(let e=d.s.r;e<=d.e.r;e++)for(let s=d.s.c;s<=d.e.c;s++){const F=_.utils.encode_cell({r:e,c:s});n.indexOf(F)<0?c[F]={t:"",v:"",s:{border:o}}:c[F].s={border:o}}for(const e in c)(e==="A1"||e==="A2"||e==="A3"||e==="A4"||e==="A5"||e==="A6"||e==="A7"||e==="B1"||e==="C1"||e==="E1"||e==="D1"||e==="F1"||e==="G1"||e==="H1"||e==="I1"||e==="J1"||e==="K1"||e==="L1"||e==="M1"||e==="N1"||e==="O1"||e==="P1"||e==="Q1")&&(c[e].s={alignment:{horizontal:"center",vertical:"center"},border:{bottom:{color:"#000000",style:"thin"},left:{color:"#000000",style:"thin"},right:{color:"#000000",style:"thin"},top:{color:"#000000",style:"thin"}},fill:{fgColor:{rgb:"0097d5fd"}},font:{bold:!0,family:2,size:12}});c["!cols"]=[{wch:20},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:20}],_.utils.sheet_add_aoa(c,[],{origin:"A1"}),_.utils.book_append_sheet(p,c,"港益热量汇总实时分析");const H=_.write(p,{bookType:"xlsx",type:"array"}),w=new Blob([H],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"});URL.createObjectURL(w),j.saveAs(w,"港益热量汇总实时分析报表.xlsx"),B.success("导出成功!请稍后。。。")}function P(){const p=new Date,c=new Date(p.getTime()-60*60*1e3);p.setDate(p.getDate()),f.queryTime=p.toISOString().split("T")[0]+" "+c.getHours()+":00:00";let o={QueryTime:f.queryTime};x.value=!0,U(o).then(d=>{d.success===!0?(u.value=d.data[0],y.value=d.data[0].repData,y.value.forEach(n=>{n.firstInstantaneousFlow=parseFloat(n.firstInstantaneousFlow).toFixed(1),n.predictionHeat=parseFloat(n.predictionHeat).toFixed(1),n.currentPredictionHeat=n.currentPredictionHeat?n.currentPredictionHeat:"-",n.currentDifference=n.currentDifference?n.currentDifference:"-",n.groupFirstSupplyPress=n.groupFirstSupplyPress?n.groupFirstSupplyPress:"-",n.groupFirstBackPress=n.groupFirstBackPress?n.groupFirstBackPress:"-",n.currentRealHeat=n.currentRealHeat?n.currentRealHeat:"-"})):B.error(d.message),x.value=!1})}return G(()=>{P()}),R(()=>{P()}),O(()=>{}),(p,c)=>{const o=h("el-table-column"),d=h("el-table"),n=h("el-button"),H=h("router-link"),w=h("el-card"),e=E("loading");return T((v(),k("div",X,[t("div",Q,[r(w,{class:"card-contianer"},{default:a(()=>[t("table",K,[t("tr",null,[t("th",W,[t("span",Y,[b("港益热量汇总实时分析"),t("span",Z,"当前时间:"+l(f.nowTime),1)])])])]),r(d,{data:y.value,style:{overflow:"auto"}},{default:a(()=>[r(o,{fixed:"",prop:"pipeName",label:"地点",width:"180"}),r(o,{prop:"firstInstantaneousFlow",label:"区域换热站计量反馈瞬时流量(m³/h)",width:"150",align:"center"}),r(o,{prop:"firstInstantaneousHeat",label:"区域换热站计量反馈瞬时热量(GJ/H)",width:"150",align:"center"}),r(o,{prop:"firstInTemp",width:"150",align:"center"},{header:a(()=>[$]),_:1}),r(o,{prop:"firstOutTemp",width:"150",align:"center"},{header:a(()=>[tt]),_:1}),r(o,{prop:"supplyFlow",width:"180",align:"center"},{header:a(()=>[et]),_:1}),r(o,{prop:"supplyHeat",width:"180",align:"center"},{header:a(()=>[lt]),_:1}),r(o,{prop:"predictionHeat",label:"预测瞬时热量",width:"130"}),r(o,{prop:"currentPredictionHeat",label:"当前预测热量累计",width:"150"}),r(o,{prop:"currentDifference",label:"当前热量偏差量",width:"150"}),r(o,{prop:"groupFirstSupplyTemp",width:"150",align:"center"},{header:a(()=>[nt]),_:1}),r(o,{prop:"groupFirstBackTemp",width:"150",align:"center"},{header:a(()=>[ot]),_:1}),r(o,{prop:"groupFirstSupplyPress",width:"150",align:"center"},{header:a(()=>[st]),_:1}),r(o,{prop:"groupFirstBackPress",width:"150",align:"center"},{header:a(()=>[rt]),_:1}),r(o,{prop:"groupSupplyFlow",width:"180",align:"center"},{header:a(()=>[at]),_:1}),r(o,{prop:"groupSupplyHeat",width:"180",align:"center"},{header:a(()=>[it]),_:1}),r(o,{fixed:"right",prop:"currentRealHeat",label:"当前实际热量累计"})]),_:1},8,["data"]),t("table",ct,[t("tr",null,[dt,t("td",ut,l(u.value.prePlan),1)]),t("tr",null,[pt,t("td",_t,l(u.value.groupTotal),1)]),t("tr",null,[ht,t("td",gt,l(u.value.prePlanDiff),1)]),t("tr",null,[ft,t("td",yt,l(u.value.diffPercent),1)])]),t("div",null,[t("div",wt,[T((v(),M(n,{type:"primary",style:{margin:"15px 0 0 0"}},{default:a(()=>[b("打印")]),_:1})),[[C(S),D]]),r(n,{type:"primary",onClick:I,style:{margin:"15px 0 0 10px"}},{default:a(()=>[b("导出")]),_:1}),r(H,{to:"/Forecast"},{default:a(()=>[r(n,{type:"primary",style:{margin:"15px 0 0 10px"}},{default:a(()=>[b("返回")]),_:1})]),_:1})])])]),_:1})]),t("table",vt,[t("tr",null,[t("td",bt," 港益热量汇总实时分析        当前时间:"+l(f.nowTime),1)]),xt,(v(!0),k(L,null,z(y.value,s=>(v(),k("tr",{key:s},[t("td",null,l(s.pipeName),1),t("td",null,l(s.firstInstantaneousFlow),1),t("td",null,l(s.firstInstantaneousHeat),1),t("td",null,l(s.firstInTemp),1),t("td",null,l(s.firstOutTemp),1),t("td",null,l(s.supplyFlow),1),t("td",null,l(s.supplyHeat),1),t("td",null,l(s.predictionHeat),1),t("td",null,l(s.currentPredictionHeat),1),t("td",null,l(s.currentDifference),1),t("td",null,l(s.groupFirstSupplyTemp),1),t("td",null,l(s.groupFirstBackTemp),1),t("td",null,l(s.groupFirstSupplyPress),1),t("td",null,l(s.groupFirstBackPress),1),t("td",null,l(s.groupSupplyFlow),1),t("td",null,l(s.groupSupplyHeat),1),t("td",null,l(s.currentRealHeat),1)]))),128)),t("tr",null,[t("td",Ht," 预测方案生成 瞬时热量(GJ/H)    "+l(u.value.prePlan),1)]),t("tr",null,[t("td",Ft," 滨海供热集团汇总 瞬时热量(GJ/H)    "+l(u.value.groupTotal),1)]),t("tr",null,[t("td",mt," 预测瞬时热量与汇总 瞬时热量 差两(GJ/H)    "+l(u.value.prePlanDiff),1)]),t("tr",null,[t("td",kt," 预测瞬时热量与汇总 瞬时热量 差量比(%)    "+l(u.value.diffPercent),1)])])])),[[e,x.value]])}}},Dt=A(Pt,[["__scopeId","data-v-b96e59b6"]]);export{Dt as default};
/* empty css */import{_ as re,r as g,s as T,b as W,o as ne,l as z,c as u,e as b,f as P,j as a,w as r,i as c,F as x,g as B,u as p,h as R,p as C,t as N,C as D,B as de,q as ce,x as pe}from"./index-JHU7h98a.js";const A=E=>(ce("data-v-c0f94389"),E=E(),pe(),E),ue={class:"div-header"},fe={class:"div-boiler"},he={class:"el-dropdown-link"},be={class:"div-list"},me={style:{"margin-right":"10px",float:"left"}},_e=A(()=>c("label",null,"供热站:",-1)),ve={style:{"margin-right":"10px",float:"left","margin-top":"3px"}},we={class:"span-time"},ge={style:{float:"left","padding-left":"10px"}},Ie={class:"div-button"},ye={style:{display:"flex"}},Le={class:"div-autoRefresh"},Pe=A(()=>c("div",null,"自动刷新:",-1)),xe={class:"div-form"},Ce={class:"tableTitle"},Ee={__name:"RealBoilerPage",setup(E){const I=g(null);I.value=T.getters.getEnterpriseId();var v=g([]),h=g([]),n=W({supplyList:[],boilerList:[]}),t=W({tableData:[],alarm:[],forms:[],title:[]}),S=g([]),w=g(!1),m=g(60),V;ne(()=>G());async function G(){await J(),await k(),await y()}const H=i=>{console.log("c:",i),h.value=i,y()};function J(){var i=T.getters.getEnterprise();i&&(i.forEach(l=>{if(l.enterpriseId===I.value){l.enterpriseId==="9bca54bc-8f27-4849-8d7d-50c5099e1949"?l.serviceCenterList.forEach(e=>{e.supplyList.forEach(o=>{o.boilerList.length>0&&n.supplyList.push({label:o.supplyName,value:o.supplyId})})}):l.supplyList.forEach(e=>{e.boilerList.length>0&&n.supplyList.push({label:e.supplyName,value:e.supplyId})});return}}),n.supplyList.length>0&&(v.value=n.supplyList[0].value))}function k(){n.boilerList.length=0;var i=T.getters.getEnterprise();i&&(i.forEach(l=>{l.enterpriseId===I.value&&(n.boilerList.length=0,l.enterpriseId==="9bca54bc-8f27-4849-8d7d-50c5099e1949"?l.serviceCenterList.forEach(e=>{e.supplyList.forEach(o=>{o.supplyId===v.value&&n.boilerList.push.apply(n.boilerList,o.boilerList)})}):l.supplyList.forEach(e=>{e.supplyId===v.value&&n.boilerList.push.apply(n.boilerList,e.boilerList)}))}),h.value=0)}function K(){t.forms[0]={name:"温度",title:[{baseId:24,prop:"",color:"",label:"",decimalPoint:1,width:110},{baseId:23,prop:"",color:"",label:"",decimalPoint:1,width:110},{baseId:25,prop:"",color:"",label:"",decimalPoint:1,width:110},{baseId:110,prop:"",color:"",label:"",decimalPoint:1,width:110},{baseId:273,prop:"",color:"",label:"",decimalPoint:1,width:110}]},t.forms[1]={name:"压力",title:[{baseId:26,prop:"",color:"",label:"",decimalPoint:1,width:110},{baseId:27,prop:"",color:"",label:"",decimalPoint:1,width:110},{baseId:111,prop:"",color:"",label:"",decimalPoint:1,width:110}]},t.forms[2]={name:"流量",title:[{baseId:28,prop:"",color:"",label:"",decimalPoint:1,width:110}]},t.forms[3]={name:"节能器",title:[{baseId:30,prop:"",color:"",label:"",decimalPoint:1,width:110},{baseId:189,prop:"",color:"",label:"",decimalPoint:1,width:110}]},t.forms[4]={name:"烟气",title:[{baseId:375,prop:"",color:"",label:"",decimalPoint:1,width:110},{baseId:371,prop:"",color:"",label:"",decimalPoint:1,width:110},{baseId:377,prop:"",color:"",label:"",decimalPoint:1,width:110},{baseId:369,prop:"",color:"",label:"",decimalPoint:1,width:110},{baseId:376,prop:"",color:"",label:"",decimalPoint:1,width:110},{baseId:293,prop:"",color:"",label:"",decimalPoint:1,width:110},{baseId:370,prop:"",color:"",label:"",decimalPoint:1,width:110},{baseId:378,prop:"",color:"",label:"",decimalPoint:1,width:110},{baseId:379,prop:"",color:"",label:"",decimalPoint:1,width:110}]},t.forms[5]={name:"鼓风",title:[{baseId:176,prop:"",color:"",label:"",decimalPoint:1,width:110}]}}async function y(){K(),await z.post("/api/boiler/title",{enterpriseId:I.value,deviceType:2}).then(i=>{i.data.otherList.forEach(l=>{var e=!1;e:for(var o=0;o<6;o++)for(var s=0;s<t.forms[o].title.length;s++)if(l.baseId===t.forms[o].title[s].baseId){t.forms[o].title[s].prop=l.enName,t.forms[o].title[s].color=l.backColor,t.forms[o].title[s].label=l.alias,t.forms[o].title[s].decimalPoint=l.decimalPoint,t.forms[o].title[s].width=l.width,e=!0;break e}if(e===!1){var f={baseId:l.baseId,prop:l.enName,color:l.backColor,label:l.alias,decimalPoint:l.decimalPoint,width:l.width};t.forms[6].title.push(f),e=!0}})}),await z.post("/api/boiler/Real",{enterpriseId:I.value,deviceType:2}).then(i=>{O(i.data,n.boilerList[h.value].boilerId)})}function O(i,l){t.tableData.length=0,t.alarm.length=0,t.title.length=0;for(var e=i.realData,o=0;o<e.length;o++)if(e[o].id===l){S.value=e[o].gatherTime.substring(6);for(var s=0;s<t.forms.length;s++){t.tableData[s]=[];for(var f=0;f<t.forms[s].title.length;f++)t.tableData[s].push({name:t.forms[s].title[f].label,value:e[o][t.forms[s].title[f].prop[0].toLowerCase()+t.forms[s].title[f].prop.substring(1)+""]})}break}e=i.alarmData;for(var o=0;o<e.length;o++)e[o].id===l&&t.alarm.push(e[o]);t.title=i.title}const Q=i=>{k()};async function F(){await k(),await y()}function X({row:i,column:l,rowIndex:e,columnIndex:o}){let s={};return s.padding="0px",s.borderColor="#97d5fd",s.height="15px",l.property==="value"?s.color="black":s.color="grey",t.title.forEach(f=>{f.alias===i.name&&t.alarm.forEach(_=>{_.enName.toUpperCase()===f.enName.toUpperCase()&&(_.topMost||_.downMost?(console.log("!!!1"),s.color="#ff0000"):(console.log("!!!2"),s.color="#ff8040"))})}),s}function Y({row:i,rowIndex:l}){return{}}function Z(){h.value=(h.value+n.boilerList.length-1)%n.boilerList.length,y()}function $(){h.value=(h.value+1)%n.boilerList.length,y()}function j(){w.value?m.value&&m.value>0?V=setInterval(()=>{F()},m.value*1e3):(w.value=!1,m.value="",clearInterval(V)):clearInterval(V)}function ee(){w.value=!1,clearInterval(V)}function le(i){return/^[0-9]*$/.test(i)?i:""}return(i,l)=>{const e=u("el-col"),o=u("el-dropdown-item"),s=u("el-dropdown-menu"),f=u("el-dropdown"),_=u("el-row"),te=u("el-option"),oe=u("el-select"),ae=u("el-input"),U=u("el-button"),se=u("el-switch"),M=u("el-card"),q=u("el-table-column"),ie=u("el-table");return b(),P(x,null,[a(M,{class:"card-contianer","body-style":{padding:"0px 0px 0px 0px",height:"80px"}},{default:r(()=>[c("div",ue,[a(_,null,{default:r(()=>[a(e,{span:5},{default:r(()=>[c("div",fe,[a(_,null,{default:r(()=>[a(e,{span:1}),a(e,{span:3},{default:r(()=>[c("div",{class:"div-button-L",onClick:Z})]),_:1}),a(e,{span:12,class:"text-center"},{default:r(()=>[a(f,{onCommand:H},{dropdown:r(()=>[a(s,null,{default:r(()=>[(b(!0),P(x,null,B(p(n).boilerList,(d,L)=>(b(),R(o,{command:L},{default:r(()=>[C(N(d.description),1)]),_:2},1032,["command"]))),256))]),_:1})]),default:r(()=>[c("span",he,N(p(n).boilerList[p(h)]?p(n).boilerList[p(h)].description:""),1)]),_:1})]),_:1}),a(e,{span:3},{default:r(()=>[c("div",{class:"div-button-R",onClick:$})]),_:1}),a(e,{span:1})]),_:1})])]),_:1}),a(e,{span:11},{default:r(()=>[c("div",be,[c("div",me,[_e,a(oe,{modelValue:p(v),"onUpdate:modelValue":l[0]||(l[0]=d=>D(v)?v.value=d:v=d),placeholder:"请选择","collapse-tags":"",style:{width:"160px"},onChange:Q},{default:r(()=>[(b(!0),P(x,null,B(p(n).supplyList,d=>(b(),R(te,{label:d.label,value:d.value},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),c("div",ve,[C(" 采集时间: "),c("span",we,N(p(S)),1)]),c("div",ge,[C(" 刷新间隔(秒): "),a(ae,{modelValue:p(m),"onUpdate:modelValue":l[1]||(l[1]=d=>D(m)?m.value=d:m=d),formatter:le,focus:ee,style:{width:"60px"}},null,8,["modelValue"])])])]),_:1}),a(e,{span:7},{default:r(()=>[c("div",Ie,[a(_,null,{default:r(()=>[a(e,{span:1}),a(e,{span:4},{default:r(()=>[a(U,{class:"el-button-button",span:6,onClick:F,icon:"Search"},{default:r(()=>[C(" 刷  新")]),_:1})]),_:1}),a(e,{span:4},{default:r(()=>[a(U,{class:"el-button-button",span:6,icon:"Warning"},{default:r(()=>[C("  报  警")]),_:1})]),_:1}),a(e,{span:1}),a(e,{span:7},{default:r(()=>[c("div",ye,[c("div",Le,[Pe,a(se,{modelValue:p(w),"onUpdate:modelValue":l[2]||(l[2]=d=>D(w)?w.value=d:w=d),class:"switch-autoRefresh",style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"rgb(64, 158, 255)"},onChange:j},null,8,["modelValue"])])])]),_:1}),a(e,{span:5})]),_:1})])]),_:1})]),_:1})])]),_:1}),c("div",xe,[(b(!0),P(x,null,B(Math.floor(p(t).forms.length/3)+1,d=>(b(),R(_,{class:"row-form",gutter:20},{default:r(()=>[(b(),P(x,null,B(3,L=>a(e,{span:8},{default:r(()=>[(d-1)*3+L<=p(t).forms.length?(b(),R(M,{key:0,class:"card-form",shadow:"always"},{default:r(()=>[c("div",Ce,N(p(t).forms[(d-1)*3+L-1].name),1),a(ie,{data:p(t).tableData[(d-1)*3+L-1],"cell-style":X,"row-style":Y,style:{width:"100%"}},{default:r(()=>[a(q,{prop:"name",label:" "}),a(q,{prop:"value",label:" "})]),_:2},1032,["data"])]),_:2},1024)):de("",!0)]),_:2},1024)),64))]),_:2},1024))),256))])],64)}}},Re=re(Ee,[["__scopeId","data-v-c0f94389"]]);export{Re as default};
This diff is collapsed.
/* empty css */import{_ as ae,r as w,s as P,b as A,o as se,l as g,c as f,e as v,f as I,j as r,w as n,i as u,F as x,g as R,u as h,C as U,h as N,p as M,t as le,B as oe,q as ie,x as re}from"./index-JHU7h98a.js";const G=V=>(ie("data-v-7a54a055"),V=V(),re(),V),pe={class:"div-header"},ne={class:"div-dropdown"},de={style:{"margin-right":"10px","margin-top":"5px",float:"left"}},ue=G(()=>u("label",{style:{color:"white"}},"供热站:",-1)),ce={class:"div-list"},fe={style:{float:"left"}},he={class:"div-button"},ve={style:{display:"flex"}},be={class:"div-autoRefresh"},_e=G(()=>u("div",null,"自动刷新:",-1)),we={class:"div-form"},ge={class:"tableTitle"},Le={__name:"RealEnergyPage",setup(V){const c=w(null);c.value=P.getters.getEnterpriseId(),w([]);var F=w(!1),L=w([]),y=w([]);w([!1]);var e=A({supplyList:[],dropdownList:[],waterList:[],elecList:[],heatList:[],gasList:[]}),l=A({tableData:[],alarm:[],forms:[],title:[]}),m=w(!1),b=w(60),D;se(()=>H());async function H(){await J(),await k(),await S()}function J(){var a=P.getters.getEnterprise();a&&(a.forEach(o=>{if(o.enterpriseId===c.value){o.enterpriseId==="9bca54bc-8f27-4849-8d7d-50c5099e1949"?o.serviceCenterList.forEach(t=>{t.supplyList.forEach(i=>{e.supplyList.push({label:i.supplyName,value:i.supplyId})})}):o.supplyList.forEach(t=>{e.supplyList.push({label:t.supplyName,value:t.supplyId})});return}}),e.supplyList.length>0&&(L.value=e.supplyList[0].value))}function k(){e.dropdownList.length=0,e.waterList.length=0,e.gasList.length=0,e.heatList.length=0,e.elecList.length=0;var a=P.getters.getEnterprise();a&&(a.forEach(o=>{o.enterpriseId===c.value&&(e.dropdownList.length=0,o.enterpriseId==="9bca54bc-8f27-4849-8d7d-50c5099e1949"?o.serviceCenterList.forEach(t=>{t.supplyList.forEach(i=>{i.supplyId===L.value&&(e.dropdownList.push.apply(e.dropdownList,i.waterList),e.waterList.push.apply(e.waterList,i.waterList),e.gasList.push.apply(e.gasList,i.gasList),e.heatList.push.apply(e.heatList,i.heatList),e.elecList.push.apply(e.elecList,i.elecList))})}):o.supplyList.forEach(t=>{t.supplyId===L.value&&(e.dropdownList.push.apply(e.dropdownList,t.waterList),e.waterList.push.apply(e.waterList,t.waterList),e.gasList.push.apply(e.gasList,t.gasList),e.heatList.push.apply(e.heatList,t.heatList),e.elecList.push.apply(e.elecList,t.elecList))}))}),y.value=0)}function K(){l.forms.length=0,l.forms[0]={name:"耗水",title:[{prop:"name",width:150,sortable:!0,label:"名称",filter:!1,color:"b5e6ff",isVisible:!0},{prop:"gatherTime",width:150,sortable:!0,label:"采集时间",filter:!1,color:"F2D9D9",isVisible:!0},{baseId:50}]},l.forms[1]={name:"耗热",title:[{prop:"name",width:150,sortable:!0,label:"名称",filter:!1,color:"b5e6ff",isVisible:!0},{prop:"gatherTime",width:150,sortable:!0,label:"采集时间",filter:!1,color:"F2D9D9",isVisible:!0},{baseId:21},{baseId:22},{baseId:23},{baseId:24}]},l.forms[2]={name:"耗电",title:[{prop:"name",width:150,sortable:!0,label:"名称",filter:!1,color:"b5e6ff",isVisible:!0},{prop:"gatherTime",width:150,sortable:!0,label:"采集时间",filter:!1,color:"F2D9D9",isVisible:!0},{baseId:49}]},l.forms[3]={name:"耗气",title:[{prop:"name",width:150,sortable:!0,label:"名称",filter:!1,color:"b5e6ff",isVisible:!0},{prop:"gatherTime",width:150,sortable:!0,label:"采集时间",filter:!1,color:"F2D9D9",isVisible:!0},{baseId:6},{baseId:7},{baseId:8},{baseId:9},{baseId:10},{baseId:55}]}}function T(a){F.value=!1;var o={name:"其他",title:[]};a.data.otherList.forEach(t=>{var i=!1;e:for(var s=0;s<l.forms.length;s++)for(var d=0;d<l.forms[s].title.length;d++)if(l.forms[s].title[d].baseId&&t.baseId===l.forms[s].title[d].baseId){l.forms[s].title[d].prop=t.enName[0].toLowerCase()+t.enName.substring(1)+"",l.forms[s].title[d].color=t.backColor,l.forms[s].title[d].label=t.alias,l.forms[s].title[d].decimalPoint=t.decimalPoint,l.forms[s].title[d].width=t.width,i=!0;break e}if(i===!1){var _={baseId:t.baseId,prop:t.enName[0].toLowerCase()+t.enName.substring(1)+"",color:t.backColor,label:t.alias,decimalPoint:t.decimalPoint,width:t.width};o.title.push(_),i=!0}}),o.title.length>0&&l.forms.push(o),F.value=!0}async function S(){l.tableData.length=0,l.alarm.length=0,l.title.length=0,K(),await g.post("/api/device/title",{enterpriseId:c.value,deviceType:4}).then(a=>{T(a)}),await g.post("/api/device/title",{enterpriseId:c.value,deviceType:5}).then(a=>{T(a)}),await g.post("/api/device/title",{enterpriseId:c.value,deviceType:6}).then(a=>{T(a)}),await g.post("/api/device/title",{enterpriseId:c.value,deviceType:7}).then(a=>{T(a)}),await g.post("/api/device/Real",{enterpriseId:c.value,deviceType:5}).then(a=>{e.waterList.length>0&&C(a.data,e.waterList[y.value].deviceId)}),await g.post("/api/device/Real",{enterpriseId:c.value,deviceType:6}).then(a=>{e.heatList.length>0&&C(a.data,e.heatList[y.value].deviceId)}),await g.post("/api/device/Real",{enterpriseId:c.value,deviceType:7}).then(a=>{e.elecList.length>0&&C(a.data,e.elecList[y.value].deviceId)}),await g.post("/api/device/Real",{enterpriseId:c.value,deviceType:4}).then(a=>{e.gasList.length>0&&C(a.data,e.gasList[y.value].deviceId)})}function C(a,o){var t=a.realData;l.tableData.push(t),t=a.alarmData;for(var i=0;i<t.length;i++)t[i].id===o&&l.alarm.push(t[i]);l.title=a.title}const O=async a=>{await k(),await S()};async function q(){await k(),await S()}function Q({row:a,column:o,rowIndex:t,columnIndex:i}){let s={};return s.padding="0px",s.borderColor="#97d5fd",s.height="15px",o.property==="value"?s.color="black":s.color="grey",l.title.forEach(d=>{d.alias===a.name&&l.alarm.forEach(_=>{_.enName.toUpperCase()===d.enName.toUpperCase()&&(_.topMost||_.downMost?s.color="#ff0000":s.color="#ff8040")})}),s}function X({row:a,rowIndex:o}){return{}}function Y(){m.value?b.value&&b.value>0?D=setInterval(()=>{q()},b.value*1e3):(m.value=!1,b.value="",clearInterval(D)):clearInterval(D)}function Z(){m.value=!1,clearInterval(D)}function $(a){return/^[0-9]*$/.test(a)?a:""}return(a,o)=>{const t=f("el-option"),i=f("el-select"),s=f("el-col"),d=f("el-input"),_=f("el-button"),j=f("el-switch"),B=f("el-row"),W=f("el-card"),ee=f("el-table-column"),te=f("el-table");return v(),I(x,null,[r(W,{class:"card-contianer","body-style":{padding:"0px 0px 0px 0px",height:"80px"}},{default:n(()=>[u("div",pe,[r(B,null,{default:n(()=>[r(s,{span:6},{default:n(()=>[u("div",ne,[u("div",de,[ue,r(i,{modelValue:h(L),"onUpdate:modelValue":o[0]||(o[0]=p=>U(L)?L.value=p:L=p),placeholder:"请选择","collapse-tags":"",style:{width:"160px"},onChange:O},{default:n(()=>[(v(!0),I(x,null,R(h(e).supplyList,p=>(v(),N(t,{label:p.label,value:p.value},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])])])]),_:1}),r(s,{span:9,gutter:30},{default:n(()=>[u("div",ce,[u("div",fe,[M(" 刷新间隔(秒): "),r(d,{modelValue:h(b),"onUpdate:modelValue":o[1]||(o[1]=p=>U(b)?b.value=p:b=p),formatter:$,focus:Z,style:{width:"60px"}},null,8,["modelValue"])])])]),_:1}),r(s,{span:9},{default:n(()=>[u("div",he,[r(B,{gutter:20},{default:n(()=>[r(s,{span:5},{default:n(()=>[r(_,{class:"el-button-button",span:6,onClick:q,icon:"Search"},{default:n(()=>[M(" 刷  新")]),_:1})]),_:1}),r(s,{span:5},{default:n(()=>[r(_,{class:"el-button-button",span:6,icon:"Warning"},{default:n(()=>[M("  报  警")]),_:1})]),_:1}),r(s,{span:1}),r(s,{span:8},{default:n(()=>[u("div",ve,[u("div",be,[_e,r(j,{modelValue:h(m),"onUpdate:modelValue":o[2]||(o[2]=p=>U(m)?m.value=p:m=p),class:"switch-autoRefresh",style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"rgb(64, 158, 255)"},onChange:Y},null,8,["modelValue"])])])]),_:1}),r(s,{span:5})]),_:1})])]),_:1})]),_:1})])]),_:1}),u("div",we,[(v(!0),I(x,null,R(Math.floor(h(l).forms.length/2)+1,p=>(v(),N(B,{class:"row-form",gutter:20},{default:n(()=>[(v(),I(x,null,R(2,E=>r(s,{span:12},{default:n(()=>[h(F)&&(p-1)*2+E<=h(l).forms.length?(v(),N(W,{key:0,class:"card-form",shadow:"always"},{default:n(()=>[u("div",ge,le(h(l).forms[(p-1)*2+E-1].name),1),r(te,{data:h(l).tableData[(p-1)*2+E-1],"cell-style":Q,"row-style":X,height:250},{default:n(()=>[(v(!0),I(x,null,R(h(l).forms[(p-1)*2+E-1].title,z=>(v(),N(ee,{prop:z.prop,label:z.label},null,8,["prop","label"]))),256))]),_:2},1032,["data"])]),_:2},1024)):oe("",!0)]),_:2},1024)),64))]),_:2},1024))),256))])],64)}}},Ie=ae(Le,[["__scopeId","data-v-7a54a055"]]);export{Ie as default};
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
.home-contianer[data-v-8b10de65]{width:100%;height:100%;background:#fff}.tableTitle[data-v-8b10de65]{background-image:url(/assets/tableTitle-DXTgFgWA.png);background-size:contain;background-repeat:no-repeat;padding-left:50px;color:#fff}.card-contianer[data-v-8b10de65]{width:100%;flex:1}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
import{_ as m}from"./TransferArt.vue_vue_type_style_index_1_lang-CfLkke2g.js";import"./index-JHU7h98a.js";export{m as default};
html,body{width:100%}.asmcContainer{width:100%;height:100%;overflow:auto;margin:0;padding:0}.amsArt{background-image:url(/imgs/artPage/TransferArt_gangyi.jpg);background-size:cover;white-space:nowrap;width:1920px;height:1080px;margin:0;padding:0;position:relative}div{margin:0;padding:0}.div_Param{border:1px solid black;background-color:#ccd1d6;opacity:.5;padding:4px;position:absolute;font-weight:900}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment