(self["webpackChunknewfront"]=self["webpackChunknewfront"]||[]).push([[360],{30360:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>z});r(74916),r(64765),r(73210),r(68309);var a=function(){var t=this,e=t._self._c;return e("app-container",[e("search-area",{attrs:{size:"small"},on:{search:t.search}},[e("search-item",[e("el-input",{attrs:{size:"small",placeholder:"点位编号",clearable:""},model:{value:t.listQuery.wellCode,callback:function(e){t.$set(t.listQuery,"wellCode","string"===typeof e?e.trim():e)},expression:"listQuery.wellCode"}})],1),e("search-item",[e("el-select",{attrs:{size:"small",placeholder:"监测指标",clearable:""},model:{value:t.listQuery.deviceType,callback:function(e){t.$set(t.listQuery,"deviceType",e)},expression:"listQuery.deviceType"}},t._l(t.deviceTypeList,(function(t){return e("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1)],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.chartShow,expression:"chartShow"}],staticClass:"chart-container"},[e("el-row",{staticClass:"chart-tools"},[e("el-col",{attrs:{span:21}},[e("span",{staticClass:"chart-tool-button",on:{click:function(e){return t.changeDate("today")}}},[t._v("今日")]),e("span",{staticClass:"chart-tool-button",on:{click:function(e){return t.changeDate("yesterday")}}},[t._v("昨日")]),e("span",{staticClass:"chart-tool-button",on:{click:function(e){return t.changeDate("sevendays")}}},[t._v("最近7日")]),e("span",{staticClass:"chart-tool-button",on:{click:function(e){return t.changeDate("lastmonth")}}},[t._v("最近30日")]),e("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:mm:ss",size:"small"},on:{change:t.fetchData},model:{value:t.timeRange,callback:function(e){t.timeRange=e},expression:"timeRange"}})],1)],1),e("div",{staticClass:"chart-body"},[e(t.cmpName,{ref:"chart",tag:"component"})],1)],1),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.chartShow,expression:"!chartShow"}],staticClass:"introduce"},[e("el-row",[e("h3",[t._v("说明")]),e("p",[t._v("该模块可以查看指定井一段时间范围内的数据(液位、燃气、有害气体、温湿度)曲线图,分析数据变化趋势。")]),e("p",[t._v("使用方法:请在上方输入框中输入要查询的完整的点位编号,选择监测指标后点击搜索按钮。默认查询7天数据。")])]),e("el-row")],1)],1)},n=[],i=r(66347),s=(r(83710),r(32564),function(){var t=this,e=t._self._c;return e("ve-line",{ref:"linechart",attrs:{title:t.title,data:t.chartData,settings:t.chartSettings}})}),o=[],u=(r(2707),r(69441));function l(t,e){return e=void 0===e||e?1:-1,function(r,a){var n=r[t],i=a[t];return n<i?-1*e:n>i?e:0}}const m={name:"LiquidData",data:function(){return this.title={text:"液位数据曲线图"},this.chartSettings={labelMap:{liquiddata:"液位值(m)",uptime:"上报时间"},metrics:["liquiddata"],dimension:["uptime"]},{listQuery:{wellCode:"",watchType:"liquid",beginTime:"",endTime:"",sort:"",order:""},chartData:{columns:["uptime","liquiddata"],rows:[]}}},methods:{fetchData:function(t){var e=this;this.listQuery.wellCode=t.wellCode,this.listQuery.beginTime=t.beginTime,this.listQuery.endTime=t.endTime,(0,u.rp)(this.listQuery).then((function(t){0===t.data.length&&e.$message.error("该井此段时间内无液位数据,请修改监测指标或查询范围"),e.chartData.rows=t.data.sort(l("uptime")),e.$refs["linechart"].echarts.resize()}))}}},c=m;var h=r(1001),d=(0,h.Z)(c,s,o,!1,null,null,null);const p=d.exports;var f=function(){var t=this,e=t._self._c;return e("ve-line",{ref:"linechart",attrs:{title:t.title,data:t.chartData,settings:t.chartSettings,tooltip:t.options.tooltip}})},g=[];r(54678),r(56977),r(21249);const y={name:"GasData",data:function(){return this.title={text:"燃气监测曲线图"},this.chartSettings={labelMap:{strength:"燃气(%LEL)",strengthVOL:"燃气(%VOL)",uptime:"上报时间"},metrics:["strength"],dimension:["uptime"]},{listQuery:{wellCode:"",watchType:"gas",beginTime:"",endTime:"",offset:1,limit:1e5,sort:"",order:""},options:{tooltip:{formatter:function(t){var e=t.name+"<br/>",r=parseFloat(t.data[1]);return e+=t.seriesName+" : "+r.toFixed(2),r>20&&(e+="<br/>燃气(%VOL)"+(r/20).toFixed(2)),e}}},chartData:{columns:["uptime","strength"],rows:[]}}},methods:{fetchData:function(t){var e=this;this.listQuery.wellCode=t.wellCode,this.listQuery.beginTime=t.beginTime,this.listQuery.endTime=t.endTime,(0,u.rp)(this.listQuery).then((function(t){0===t.data.length&&e.$message.error("该井此段时间内无燃气数据,请修改监测指标或查询范围");var r=t.data.map((function(t){return{strength:t.strength,strengthVOL:(t.strength/20).toFixed(2),uptime:t.uptime}}));e.chartData.rows=r.sort(l("uptime")),e.$refs["linechart"].echarts.resize()}))}}},v=y;var w=(0,h.Z)(v,f,g,!1,null,null,null);const T=w.exports;var b=function(){var t=this,e=t._self._c;return e("ve-line",{ref:"linechart",attrs:{title:t.title,data:t.chartData,settings:t.chartSettings}})},D=[];const Z={name:"HamfulData",data:function(){return this.title={text:"有害气体监测曲线图"},this.chartSettings={labelMap:{CO:"一氧化碳(ppm)",CH4:"甲烷(%VOL)",H2S:"硫化氢(ppm)",O2:"氧气(%VOL)",uptime:"上报时间"},metrics:["CO","CH4","H2S","O2"],dimension:["uptime"]},{listQuery:{keywords:"",deptid:"",beginTime:"",endTime:"",offset:1,limit:1e5,sort:"",order:""},chartData:{columns:["uptime","CO"],rows:[]}}},methods:{fetchData:function(t){var e=this;this.listQuery.keywords=t.wellCode,this.listQuery.beginTime=t.beginTime,this.listQuery.endTime=t.endTime,(0,u.Wz)(this.listQuery).then((function(t){0===t.data.rows.length&&e.$message.error("该井此段时间内无有害气体数据,请修改监测指标或查询范围"),e.chartData.rows=t.data.rows.sort(l("uptime")),e.$refs["linechart"].echarts.resize()}))}}},M=Z;var x=(0,h.Z)(M,b,D,!1,null,null,null);const Q=x.exports;var C=function(){var t=this,e=t._self._c;return e("ve-line",{ref:"linechart",attrs:{title:t.title,data:t.chartData,settings:t.chartSettings}})},S=[];const k={name:"TempData",data:function(){return this.title={text:"温湿度监测曲线图"},this.chartSettings={labelMap:{temperature:"温度(℃)",humidity:"湿度(%RH)",H2S:"硫化氢(ppm)",O2:"氧气(%VOL)",uptime:"上报时间"},metrics:["temperature","humidity"],dimension:["uptime"]},{listQuery:{keywords:"",deptid:"",beginTime:"",endTime:"",offset:1,limit:1e5,sort:"",order:""},chartData:{columns:["uptime","temperature"],rows:[]}}},methods:{fetchData:function(t){var e=this;this.listQuery.keywords=t.wellCode,this.listQuery.beginTime=t.beginTime,this.listQuery.endTime=t.endTime,(0,u.pQ)(this.listQuery).then((function(t){0===t.data.rows.length&&e.$message.error("该井此段时间内无温湿度数据,请修改监测指标或查询范围"),e.chartData.rows=t.data.rows.sort(l("uptime")),e.$refs["linechart"].echarts.resize()}))}}},F=k;var R=(0,h.Z)(F,C,S,!1,null,null,null);const L=R.exports;var $=r(79730),q=r(9632);const _={name:"DataStatics",components:{LiquidData:p,GasData:T,HarmfulData:Q,TempData:L},data:function(){return{listQuery:{wellCode:"",deviceType:"",beginTime:"",endTime:""},timeRange:[],deviceTypeList:[],chartShow:!1,cmpName:"",chartSample:r(65796)}},mounted:function(){this.fetchDeviceType()},methods:{search:function(){""!==this.listQuery.wellCode?""!==this.listQuery.deviceType?this.fetchData():this.$message.error("监测指标必选"):this.$message.error("点位编号不能为空")},fetchDeviceType:function(){var t,e=this.$store.getters.deviceTypes,r=(0,i.Z)(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;"2"===a?this.deviceTypeList.push({name:"液位",value:"liquid"}):"3"===a?this.deviceTypeList.push({name:"有害气体",value:"harmful"}):"4"===a?this.deviceTypeList.push({name:"燃气",value:"gas"}):"5"===a&&this.deviceTypeList.push({name:"温湿度",value:"temp"})}}catch(n){r.e(n)}finally{r.f()}},fetchData:function(){var t=this,e={wellCode:this.listQuery.wellCode},r=this;(0,q.o5)(e).then((function(e){if(e.data.hasWell){var a=(0,$.eR)((new Date).getTime()-6048e5).Format("yyyy-MM-dd hh:mm:ss"),n=(new Date).Format("yyyy-MM-dd hh:mm:ss");0===t.timeRange.length&&(t.timeRange=[a,n]),r.listQuery.beginTime=t.timeRange[0],r.listQuery.endTime=t.timeRange[1],r.checkDate(r.listQuery.beginTime,r.listQuery.endTime,366)?("liquid"===r.listQuery.deviceType?r.cmpName="liquid-data":"gas"===r.listQuery.deviceType?r.cmpName="gas-data":"harmful"===r.listQuery.deviceType?r.cmpName="harmful-data":"temp"===r.listQuery.deviceType&&(r.cmpName="temp-data"),r.chartShow=!0,setTimeout((function(){r.$refs.chart.fetchData(r.listQuery)}),100)):r.$message.warning("查询跨度不能超过一年")}else r.$message.warning("井不存在,请确认点位编号无误"),r.chartShow=!1}))},checkDate:function(t,e,r){var a=new Date(t),n=new Date(e),i=n.getTime()-a.getTime(),s=Math.floor(i/864e5*100)/100;return!(s>r)},changeDate:function(t){var e,r;"today"===t?(e=(0,$.eR)((new Date).getTime()),r=new Date,this.timeRange=[e,r]):"yesterday"===t?(e=(0,$.eR)((new Date).getTime()-864e5),r=(0,$.eR)((new Date).getTime())):"sevendays"===t?(e=(0,$.eR)((new Date).getTime()-6048e5),r=new Date):"lastmonth"===t&&(e=(0,$.eR)((new Date).getTime()-2592e6),r=new Date),this.timeRange=[e.Format("yyyy-MM-dd hh:mm:ss"),r.Format("yyyy-MM-dd hh:mm:ss")],this.fetchData()}}},O=_;var H=(0,h.Z)(O,a,n,!1,null,"0555418e",null);const z=H.exports},94362:(t,e,r)=>{var a=r(41589),n=Math.floor,i=function(t,e){var r=t.length,u=n(r/2);return r<8?s(t,e):o(t,i(a(t,0,u),e),i(a(t,u),e),e)},s=function(t,e){var r,a,n=t.length,i=1;while(i<n){a=i,r=t[i];while(a&&e(t[a-1],r)>0)t[a]=t[--a];a!==i++&&(t[a]=r)}return t},o=function(t,e,r,a){var n=e.length,i=r.length,s=0,o=0;while(s<n||o<i)t[s+o]=s<n&&o<i?a(e[s],r[o])<=0?e[s++]:r[o++]:s<n?e[s++]:r[o++];return t};t.exports=i},68886:(t,e,r)=>{var a=r(88113),n=a.match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},30256:(t,e,r)=>{var a=r(88113);t.exports=/MSIE|Trident/.test(a)},98008:(t,e,r)=>{var a=r(88113),n=a.match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},2707:(t,e,r)=>{"use strict";var a=r(82109),n=r(1702),i=r(19662),s=r(47908),o=r(26244),u=r(85117),l=r(41340),m=r(47293),c=r(94362),h=r(9341),d=r(68886),p=r(30256),f=r(7392),g=r(98008),y=[],v=n(y.sort),w=n(y.push),T=m((function(){y.sort(void 0)})),b=m((function(){y.sort(null)})),D=h("sort"),Z=!m((function(){if(f)return f<70;if(!(d&&d>3)){if(p)return!0;if(g)return g<603;var t,e,r,a,n="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(a=0;a<47;a++)y.push({k:e+a,v:r})}for(y.sort((function(t,e){return e.v-t.v})),a=0;a<y.length;a++)e=y[a].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}})),M=T||!b||!D||!Z,x=function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:l(e)>l(r)?1:-1}};a({target:"Array",proto:!0,forced:M},{sort:function(t){void 0!==t&&i(t);var e=s(this);if(Z)return void 0===t?v(e):v(e,t);var r,a,n=[],l=o(e);for(a=0;a<l;a++)a in e&&w(n,e[a]);c(n,x(t)),r=o(n),a=0;while(a<r)e[a]=n[a++];while(a<l)u(e,a++);return e}})},69441:(t,e,r)=>{"use strict";r.d(e,{Dp:()=>b,ES:()=>w,GF:()=>j,HV:()=>L,Hg:()=>y,J3:()=>F,Jn:()=>S,LF:()=>Y,Lq:()=>M,NW:()=>V,O$:()=>B,OR:()=>Q,QZ:()=>o,R:()=>q,S9:()=>u,SS:()=>H,Vm:()=>W,Wy:()=>l,Wz:()=>T,YY:()=>D,Yy:()=>$,ZU:()=>z,Zg:()=>v,ct:()=>p,cv:()=>m,dU:()=>_,fg:()=>k,iG:()=>d,jY:()=>x,kM:()=>h,lr:()=>s,mV:()=>O,nj:()=>E,ot:()=>c,pN:()=>G,pQ:()=>Z,r4:()=>g,rp:()=>n,rw:()=>A,su:()=>i,vD:()=>f,y7:()=>R,yp:()=>N,zq:()=>C});var a=r(84471);function n(t){return(0,a.Z)({url:"data/list",method:"get",params:t})}function i(t){return(0,a.Z)({url:"welldata/list-page",method:"get",params:t})}function s(t){return(0,a.Z)({url:"welldata/list",method:"get",params:t})}function o(t){return(0,a.Z)({url:"welldata/export",method:"get",timeout:12e4,params:t,responseType:"blob"})}function u(t){return(0,a.Z)({url:"liquiddata/list-page",method:"get",params:t})}function l(t){return(0,a.Z)({url:"liquiddata/list",method:"get",params:t})}function m(t){return(0,a.Z)({url:"liquiddata/export",method:"get",timeout:12e4,params:t,responseType:"blob"})}function c(t){return(0,a.Z)({url:"gasdata/list-page",method:"get",params:t})}function h(t){return(0,a.Z)({url:"gasdata/list",method:"get",params:t})}function d(t){return(0,a.Z)({url:"gasdata/export",method:"get",timeout:12e4,params:t,responseType:"blob"})}function p(t){return(0,a.Z)({url:"tubedata/list-page",method:"get",params:t})}function f(t){return(0,a.Z)({url:"tubedata/list",method:"get",params:t})}function g(t){return(0,a.Z)({url:"tubedata/export",method:"get",timeout:12e4,params:t,responseType:"blob"})}function y(t){return(0,a.Z)({url:"digdata/list-page",method:"get",params:t})}function v(t){return(0,a.Z)({url:"digdata/list",method:"get",params:t})}function w(t){return(0,a.Z)({url:"digdata/export",method:"get",timeout:12e4,params:t,responseType:"blob"})}function T(t){return(0,a.Z)({url:"harmfuldata/list-page",method:"get",params:t})}function b(t){return(0,a.Z)({url:"harmfuldata/list",method:"get",params:t})}function D(t){return(0,a.Z)({url:"harmfuldata/export",method:"get",timeout:12e4,params:t,responseType:"blob"})}function Z(t){return(0,a.Z)({url:"tempdata/list-page",method:"get",params:t})}function M(t){return(0,a.Z)({url:"tempdata/list",method:"get",params:t})}function x(t){return(0,a.Z)({url:"tempdata/export",method:"get",timeout:12e4,params:t,responseType:"blob"})}function Q(t){return(0,a.Z)({url:"welllocadata/list-page",method:"get",params:t})}function C(t){return(0,a.Z)({url:"welllocadata/list",method:"get",params:t})}function S(t){return(0,a.Z)({url:"welllocadata/export",method:"get",timeout:12e4,params:t,responseType:"blob"})}function k(t){return(0,a.Z)({url:"noisedata/list-page",method:"get",params:t})}function F(t){return(0,a.Z)({url:"noisedata/list",method:"get",params:t})}function R(t){return(0,a.Z)({url:"noisedata/export",method:"get",timeout:12e4,params:t,responseType:"blob"})}function L(t){return(0,a.Z)({url:"liquidGasData/list-page",method:"get",params:t})}function $(t){return(0,a.Z)({url:"liquidGasData/list",method:"get",params:t})}function q(t){return(0,a.Z)({url:"/liquidGasData/export",method:"get",timeout:12e4,params:t,responseType:"blob"})}function _(t){return(0,a.Z)({url:"/gasdector/list-page",method:"get",params:t})}function O(t){return(0,a.Z)({url:"/gasdector/list",method:"get",params:t})}function H(t){return(0,a.Z)({url:"/gasdector/export",method:"get",timeout:12e4,params:t,responseType:"blob"})}function z(t){return(0,a.Z)({url:"/pantilt/list-page",method:"get",params:t})}function E(t){return(0,a.Z)({url:"/pantilt/export",method:"get",timeout:12e4,params:t,responseType:"blob"})}function N(t){return(0,a.Z)({url:"hydrant/list-page",method:"get",params:t})}function V(t){return(0,a.Z)({url:"hydrant/list",method:"get",params:t})}function G(t){return(0,a.Z)({url:"hydrant/export",method:"get",timeout:12e4,params:t,responseType:"blob"})}function W(t){return(0,a.Z)({url:"h2s/list",method:"get",params:t})}function Y(t){return(0,a.Z)({url:"h2s/list-page",method:"get",params:t})}function j(t){return(0,a.Z)({url:"h2s/export",method:"get",timeout:12e4,params:t,responseType:"blob"})}function A(t){return(0,a.Z)({url:"wellliquiddata/list-page",method:"get",params:t})}function B(t){return(0,a.Z)({url:"wellliquiddata/export",method:"get",timeout:12e4,params:t,responseType:"blob"})}},9632:(t,e,r)=>{"use strict";r.d(e,{Ek:()=>h,HL:()=>g,M8:()=>u,ej:()=>m,fP:()=>v,jA:()=>c,jo:()=>l,jx:()=>p,ke:()=>f,lL:()=>y,o5:()=>T,vE:()=>o,yW:()=>d,z1:()=>w});var a=r(95082),n=r(84471),i=r(80129),s=r.n(i);function o(t){return(0,n.Z)({url:"well/list",method:"get",params:t})}function u(t){return(0,n.Z)({url:"well/info",method:"get",params:{id:t}})}function l(t){return(0,n.Z)({url:"/sys/dict/code/sluicewellType",method:"get",params:t})}function m(t){return(0,n.Z)({url:"/sys/dict/code/communicationType",method:"get",params:t})}function c(t){return(0,n.Z)({url:"well/add",method:"post",params:t})}function h(t){return(0,n.Z)({url:"well/update",method:"post",params:t})}function d(t){return(0,n.Z)({url:"well/delete",method:"post",params:{ids:t},paramsSerializer:function(t){return s().stringify(t,{indices:!1})}})}function p(t){var e=new FormData;return e.append("file",t),(0,n.Z)({url:"well/batchImport",method:"post",headers:{"Content-Type":"multipart/form-data"},data:e})}function f(t,e){return(0,n.Z)((0,a.Z)((0,a.Z)({url:"well/batchExport",method:"get",timeout:12e4,params:t},e),{},{responseType:"blob"}))}function g(t){return(0,n.Z)({url:"well/watchDataByWell",method:"get",params:{id:t}})}function y(t,e){return(0,n.Z)({url:"well/bfcf",method:"post",params:{wellId:t,bfzt:e}})}function v(t){return(0,n.Z)({url:"well/batchBfcf",method:"post",params:t})}function w(){return(0,n.Z)({url:"well/countByBfzt",method:"get"})}function T(t){return(0,n.Z)({url:"well/selectOne",method:"get",params:t})}},79730:(t,e,r)=>{"use strict";r.d(e,{NM:()=>l,O5:()=>u,Q9:()=>c,e0:()=>d,eR:()=>a,ip:()=>h,p6:()=>o,wh:()=>m,x2:()=>n});r(83710),r(74916),r(77601),r(15306),r(24603),r(28450),r(88386),r(39714),r(83650);function a(t){var e=new Date(t);return e.setHours(0,0,0,0),new Date(e)}function n(t){return(new Date).Format(t)}function i(){var t=new Date;return t.setTime(t.getTime()-6048e5),t}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,e=new Date;return e.setMonth(e.getMonth()-t),e}function o(t,e){return t.Format(e)}function u(){var t=a((new Date).getTime()).Format("yyyy-MM-dd hh:mm:ss"),e=a((new Date).getTime()+86376e3).Format("yyyy-MM-dd hh:mm:ss");return[t,e]}function l(){var t=i().Format("yyyy-MM-dd hh:mm:ss"),e=n("yyyy-MM-dd hh:mm:ss");return[t,e]}function m(){new Date;var t=s(1).Format("yyyy-MM-dd hh:mm:ss"),e=n("yyyy-MM-dd hh:mm:ss");return[t,e]}function c(){var t=new Date;t.setMonth(t.getMonth()-3);var e=t.Format("yyyy-MM-dd hh:mm:ss"),r=n("yyyy-MM-dd hh:mm:ss");return[e,r]}function h(){var t=new Date;t.setMonth(t.getMonth()-6);var e=t.Format("yyyy-MM-dd hh:mm:ss"),r=n("yyyy-MM-dd hh:mm:ss");return[e,r]}function d(){var t=new Date;t.setFullYear(t.getFullYear()-1);var e=t.Format("yyyy-MM-dd hh:mm:ss"),r=n("yyyy-MM-dd hh:mm:ss");return[e,r]}Date.prototype.Format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var r in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),e)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?e[r]:("00"+e[r]).substr((""+e[r]).length)));return t}},65796:(t,e,r)=>{"use strict";t.exports=r.p+"static/img/chartSample.caea838d.png"}}]);