Newer
Older
laserPTZFront / laserPTZ / static / js / chunk-5bfc.6e7e70aa.js
[wangxitong] on 10 May 2022 10 KB first commit
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5bfc"],{"+84/":function(t,e,a){"use strict";var i=a("fh6R"),n=a("FcKo"),s={name:"ChartGasHistory",data:function(){return{chartSettings:{labelMap:{logTime:"采集时间",concentration:"浓度值"},dimension:["logTime"],metrics:["concentration"]},listQuery:{monitorId:"",startTime:"",endTime:""},chartData:{columns:["logTime","concentration"],rows:[]},listLoading:!0}},mounted:function(){},methods:{fetchData:function(t){var e=this;this.listLoading=!0,this.listQuery.startTime=Object(n.a)((new Date).getTime()-864e5).Format("yyyy-MM-dd hh:mm:ss"),this.listQuery.endTime=(new Date).Format("yyyy-MM-dd hh:mm:ss"),this.listQuery.monitorId=t.monitorId,console.log(this.listQuery),Object(i.b)(this.listQuery).then(function(t){e.chartData.rows=t.data,e.listLoading=!1})}}},r=(a("fNaV"),a("KHd+")),o=Object(r.a)(s,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"app-container"},[e("el-row",[e("ve-line",{attrs:{data:this.chartData,settings:this.chartSettings}})],1)],1)},[],!1,null,"22ef43c5",null);o.options.__file="ChartGasHistory.vue";e.a=o.exports},"9qZL":function(t,e,a){},FcKo:function(t,e,a){"use strict";function i(t){var e=new Date(t);return e.setHours(0,0,0,0),new Date(e)}a.d(e,"a",function(){return i}),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 a in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),e)new RegExp("("+a+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[a]:("00"+e[a]).substr((""+e[a]).length)));return t}},QKYH:function(t,e,a){"use strict";var i=a("fh6R"),n={name:"ListGasHistory",components:{},data:function(){return{listQuery:{monitorId:"",startTime:"",endTime:"",offset:1,limit:20,sort:"logtime",order:"desc"},columns:[{text:"监控点",value:"monitorName",align:"center",width:140},{text:"场站名称",value:"stationName",align:"center"},{text:"浓度值(ppm.m)",value:"concentration",align:"center"},{text:"阈值(ppm.m)",value:"threshold",align:"center"},{text:"采集时间",value:"logTime",align:"center"},{text:"采集水平角度",value:"direction",align:"center"},{text:"采集垂直角度",value:"pitch",align:"center"}],list:[],total:0,listLoading:!0,high:"",filename:"device_template.xlsx"}},mounted:function(){},methods:{fetchData:function(t){var e=this;this.listQuery.monitorId=t.monitorId,this.listQuery.startTime=t.startTime,this.listQuery.endTime=t.endTime,this.listLoading=!0,Object(i.c)(this.listQuery).then(function(t){e.list=t.data.rows,e.total=parseInt(t.data.total),e.listLoading=!1})},batchExport:function(){var t=this.$loading({lock:!0,text:"数据处理中,请稍后...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});Object(i.a)(this.listQuery).then(function(e){t.close(),console.log("download===",e);var a=new Blob([e.data]),i=document.createElement("a"),n=window.URL.createObjectURL(a);i.href=n,i.download="甲烷历史数据.xlsx",document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n)}).catch(function(){t.close()})},indexMethod:function(t){return this.listQuery.limit*(this.listQuery.offset-1)+t+1},handleSizeChange:function(t){this.listQuery.limit=t,this.fetchData(this.listQuery,this.high)},handleCurrentChange:function(t){this.listQuery.offset=t,this.fetchData(this.listQuery,this.high)}}},s=(a("fnHR"),a("KHd+")),r=Object(s.a)(n,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",[a("el-row",{staticClass:"table-title"},[a("el-col",{attrs:{span:6}},[a("div",{staticClass:"title-header"},[a("i",{staticClass:"el-icon-menu"}),t._v("甲烷历史数据列表")])]),t._v(" "),a("el-col",{staticClass:"edit_btns",attrs:{span:12,offset:6}},[a("el-button",{staticClass:"edit_btn",attrs:{size:"small"},on:{click:t.batchExport}},[t._v("导出记录")])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{data:t.list,border:""}},[a("el-table-column",{attrs:{index:t.indexMethod,align:"center",type:"index"}}),t._v(" "),t._l(t.columns,function(e){return a("el-table-column",{key:e.value,attrs:{label:e.text,width:e.width,align:e.align,"show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(i){return[a("span",{class:e.class},[t._v(t._s(i.row[e.value]))])]}}])})})],2)],1),t._v(" "),a("div",{staticClass:"pagination-container"},[a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>t.listQuery.limit,expression:"total>listQuery.limit"}],attrs:{"current-page":t.listQuery.offset,"page-sizes":[20,30,50],"page-size":t.listQuery.limit,total:t.total,align:"center",layout:"total, sizes, prev, pager, next"},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)])},[],!1,null,"69c1d8cf",null);r.options.__file="ListGasHistory.vue";e.a=r.exports},YOXB:function(t,e,a){"use strict";a.r(e);var i=a("QKYH"),n=a("+84/"),s=a("sw7M"),r={name:"GasData",components:{ListGasHistory:i.a,ChartGasHistory:n.a},data:function(){return{activeName:"listTab",data:[],timeRange:[],listLoading:!1,high:"",listQuery:{monitorId:"",keyword:"",startTime:"",endTime:"",offset:1,limit:20,sort:"logTime",order:"desc"},fullscreenLoading:!1}},watch:{timeRange:function(t){t&&t.length>0?(this.listQuery.startTime=t[0],this.listQuery.endTime=t[1]):(this.listQuery.startTime="",this.listQuery.endTime="")}},created:function(){},mounted:function(){this.fetchData(),this.$refs.list.fetchData(this.listQuery)},methods:{fetchData:function(){var t=this;this.listLoading=!0,Object(s.g)(this.listQuery).then(function(e){if(e.data.length>0){for(var a=e.data,i=0;i<a.length;i++)a[i].children=a[i].monipoiList,delete a[i].monipoiList;t.data=a;for(var n=0;n<t.data.length;n++)if(t.data[n].children.length>0){t.nodeClick(t.data[n].children[0]);break}t.listLoading=!1}})},handleClick:function(t,e){"listTab"===t.name?(this.activeName="listTab",this.$refs.list.fetchData(this.listQuery)):"chartTab"===t.name&&(this.activeName="chartTab",this.$refs.chart.fetchData(this.listQuery))},nodeClick:function(t){var e=this;t.monitorPointId&&(this.listQuery.monitorId=t.monitorPointId,this.high=t.high,this.$nextTick(function(){e.$refs.tree.setCurrentKey(t.monitorPointId)}),"listTab"===this.activeName?this.$refs.list.fetchData(this.listQuery):"chartTab"===this.activeName&&this.$refs.chart.fetchData(this.listQuery))},search:function(){"listTab"===this.activeName?this.$refs.list.fetchData(this.listQuery):"chartTab"===this.activeName&&this.$refs.chart.fetchData(this.listQuery)}}},o=(a("uBAa"),a("KHd+")),l=Object(o.a)(r,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-row",[a("el-col",{attrs:{span:5}},[a("div",{staticStyle:{width:"90%"}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-input",{attrs:{placeholder:"场站名称/监控点",clearable:""},on:{change:t.fetchData},model:{value:t.listQuery.keyword,callback:function(e){t.$set(t.listQuery,"keyword","string"==typeof e?e.trim():e)},expression:"listQuery.keyword"}})],1),t._v(" "),a("el-tree",{ref:"tree",attrs:{data:t.data,"v-loading":t.listLoading,"node-key":"monitorPointId","highlight-current":!0,"default-expand-all":"","expand-on-click-node":!0},on:{"node-click":t.nodeClick},scopedSlots:t._u([{key:"default",fn:function(e){e.node;var i=e.data;return a("span",{staticClass:"custom-tree-node"},[i.deptId?a("span",[t._v(t._s(i.stationName))]):a("span",[t._v(t._s(i.monitorPointName))])])}}])})],1)],1)]),t._v(" "),a("el-col",{attrs:{span:19}},[a("div",{staticClass:"search-div"},[a("el-form",{ref:"dataForm",staticClass:"form-container",attrs:{inline:!0,model:t.listQuery}},[a("el-form-item",{staticClass:"selectForm-container-item",attrs:{prop:"startTime"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":"采集开始时间","end-placeholder":"采集结束时间"},model:{value:t.timeRange,callback:function(e){t.timeRange=e},expression:"timeRange"}})],1),t._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.search}},[t._v("搜索")])],1)],1),t._v(" "),a("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"数据列表",name:"listTab"}},[a("list-gas-history",{ref:"list"})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"数据图表",name:"chartTab"}},[a("chart-gas-history",{ref:"chart"})],1)],1)],1)],1)],1)},[],!1,null,"a1a011e6",null);l.options.__file="gasData.vue";e.default=l.exports},Yhgo:function(t,e,a){},fNaV:function(t,e,a){"use strict";var i=a("9qZL");a.n(i).a},fh6R:function(t,e,a){"use strict";a.d(e,"c",function(){return n}),a.d(e,"b",function(){return s}),a.d(e,"a",function(){return r});var i=a("t3Un");a("Qyje");function n(t){return Object(i.a)({url:"/data/hisListPage",method:"get",params:t})}function s(t){return Object(i.a)({url:"/data/hisList",method:"get",params:t})}function r(t){return Object(i.a)({url:"data/export",method:"get",timeout:12e4,params:t,responseType:"blob"})}},fnHR:function(t,e,a){"use strict";var i=a("Yhgo");a.n(i).a},mGqH:function(t,e,a){},sw7M:function(t,e,a){"use strict";a.d(e,"g",function(){return n}),a.d(e,"c",function(){return s}),a.d(e,"a",function(){return r}),a.d(e,"e",function(){return o}),a.d(e,"f",function(){return l}),a.d(e,"b",function(){return c}),a.d(e,"d",function(){return u}),a.d(e,"h",function(){return d});var i=a("t3Un");a("Qyje");function n(t){return Object(i.a)({url:"/monitor/list",method:"get",params:t})}function s(t){return Object(i.a)({url:"/monitor/delete",method:"get",params:{monitorId:t}})}function r(t){return Object(i.a)({url:"/monitor/add",method:"post",params:t})}function o(t){return Object(i.a)({url:"/monitor/edit",method:"post",params:t})}function l(t){return Object(i.a)({url:"/station/edit",method:"post",params:t})}function c(t){return Object(i.a)({url:"/station/add",method:"post",params:t})}function u(t){return Object(i.a)({url:"/station/delete",method:"get",params:{stationId:t}})}function d(t){return Object(i.a)({url:"/observ/list",method:"get",params:{monitorId:t}})}},uBAa:function(t,e,a){"use strict";var i=a("mGqH");a.n(i).a}}]);