wangrong
2021-11-24 749179ef60bca3074f8e12325b92b0d406d9246c
1
2
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c1e39e28"],{"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"182e":function(t,e,a){"use strict";a.r(e);var i,n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-row",[a("el-col",{staticStyle:{height:"45px","text-align":"left","margin-top":"20px"},attrs:{span:24}},[a("el-radio-group",{staticStyle:{"margin-right":"15px"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[a("el-radio-button",{attrs:{label:"时间段"}}),a("el-radio-button",{attrs:{label:"单日"}}),a("el-radio-button",{attrs:{label:"单月"}}),a("el-radio-button",{attrs:{label:"年度"}})],1),a("span",{staticStyle:{"margin-right":"15px"}},[a("el-date-picker",{staticStyle:{width:"130px"},attrs:{type:"时间段"==t.type?"date":"单月"==t.type?"month":"年度"==t.type?"year":"date",placeholder:"时间段"==t.type?"选择日期":"单月"==t.type?"选择月份":"年度"==t.type?"选择年份":"选择日期",clearable:""},model:{value:t.search.valueDay,callback:function(e){t.$set(t.search,"valueDay",e)},expression:"search.valueDay"}})],1),a("span",{directives:[{name:"show",rawName:"v-show",value:"时间段"==t.type,expression:"type == '时间段'"}],staticStyle:{"margin-right":"15px"}},[a("el-time-select",{staticStyle:{width:"130px"},attrs:{"picker-options":{start:"00:00",step:"00:30",end:"23:30"},placeholder:"选择时间",clearable:""},model:{value:t.search.valueTime,callback:function(e){t.$set(t.search,"valueTime",e)},expression:"search.valueTime"}})],1),a("el-select",{staticStyle:{"margin-right":"15px"},attrs:{placeholder:"查询站点名字",clearable:""},on:{change:t.handleChange},model:{value:t.monitorpointName,callback:function(e){t.monitorpointName=e},expression:"monitorpointName"}},t._l(t.selMonitorpointName,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),a("el-col",{staticClass:"Device",staticStyle:{"margin-top":"30px"},attrs:{span:24}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"detailTable",attrs:{data:t.tableData,height:t.tableH,stripe:"",size:"small"}},[a("el-table-column",{attrs:{label:"频率",prop:"frequencyValue"}}),a("el-table-column",{attrs:{label:"站点名字",prop:"monitorpointName"}}),a("el-table-column",{attrs:{label:"平均场强值",prop:"avg_level"}}),a("el-table-column",{attrs:{label:"状态",prop:"status"}}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(a){return t.lookEcharts(e)}}},[t._v("信号强度")])],1)]}}])})],1)],1),a("el-col",{staticStyle:{"margin-top":"5px"},attrs:{span:24}},[a("el-pagination",{attrs:{"current-page":t.pageNo,"page-sizes":[10,20,30,50],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.totalCount},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1),a("el-dialog",{attrs:{title:"信号强度变化趋势",visible:t.echartVisible,width:"80%","close-on-click-modal":!1},on:{"update:visible":function(e){t.echartVisible=e}}},[a("div",{ref:"myChart",staticStyle:{width:"100%",height:"400px"}})])],1)},o=[],r=a("ade3"),l=(a("ac1f"),a("841c"),a("1276"),a("159b"),{watch:{search:{handler:function(t,e){var a=this;console.log(this.search),this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function(){a.handleSearch()}),300)},deep:!0},monitorpointName:{handler:function(t,e){var a=this;this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function(){a.handleSearch()}),500)},deep:!0},type:{handler:function(t,e){var a=this;this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function(){a.handleSearch()}),500)},deep:!0}},data:function(){return{seriesData:[],xAxisData:[],echartVisible:!1,totalCount:100,pageNo:1,pageSize:10,tableData:[],tableH:null,otherAct:[{item:"查看所有",id:"",type:"primary"}],type:"时间段",queryParams:{page:1,size:10,VF:"",table:"t_fm_scan_timestamp"},determine:"",search:{valueTime:"15:00",valueDay:""},loading:!1,selMonitorpointName:[],monitorpointName:""}},mounted:function(){this.tableH=window.innerHeight-135+"px";var t=new Date,e=t.getHours();this.search.valueDay=t,this.search.valueTime=this.add0(e)+":00",this.initInfo(),console.log(this.$route.query.frequency)},methods:(i={add0:function(t){return t<10?"0"+t:t},initInfo:function(){this.getData(1)},getData:function(t){var e=this,a={};if(1==t)a={bid:"getDetailSepctrum",pageno:1,pagesize:10,querymode:"day",monitorPointName:"",frequency:this.$route.query.frequency,timevalue2:"",timevalue1:""};else{var i=this.formatType(this.type),n=""==this.search.valueDay?"2021":this.formatDate(this.search.valueDay),o="时间段"==this.type?this.search.valueTime.split(":")[0]:"";a={bid:"getDetailSepctrum",querymode:i,timevalue1:n,timevalue2:o,monitorPointName:this.monitorpointName,frequency:this.$route.query.frequency,pageno:this.pageNo,pagesize:this.pageSize}}this.$getJSON("http://wiibox.xicp.io:8484/dataservice/getNoTokenData",a).then((function(t){console.log(t),e.tableData=t.data.data[0],console.log(e.tableData);var a=[];e.tableData.forEach((function(t){a.push(t.monitorpointName)})),e.selMonitorpointName=a,e.totalCount=t.data.data[1][0].counter}))},handleSizeChange:function(t){this.pageSize=t,this.getData(0)},handleCurrentChange:function(t){this.pageNo=t,this.getData(0)},handleSearch:function(){this.getData(0)},handleChange:function(t){},formatType:function(t){return"时间段"==t?"time":"单日"==t?"day":"单月"==t?"month":"年度"==t?"year":void 0},formatDate:function(t){if(t){var e=t.getFullYear(),a=t.getMonth()+1,i=t.getDate();return"年度"==this.type?e:"单月"==this.type?e+"-"+this.add0(a):"单日"==this.type||"时间段"==this.type?e+"-"+this.add0(a)+"-"+this.add0(i):""}}},Object(r["a"])(i,"add0",(function(t){return t<10?"0"+t:t})),Object(r["a"])(i,"lookEcharts",(function(t){var e=this,a={bid:"getHistorySepctrum",frequency:t.row.frequencyValue,monitorPointId:t.row.monitorpointId};this.$getJSON("http://wiibox.xicp.io:8484/dataservice/getNoTokenData",a).then((function(t){console.log(t),t.data.data[0].forEach((function(t){e.seriesData.push(t.level),e.xAxisData.push(t.time.split("T")[0]+" "+t.time.split("T")[1].substring(0,t.time.split("T")[1].length-5)),e.echartVisible=!0})),e.getEchartData()})),console.log(a)})),Object(r["a"])(i,"getEchartData",(function(){this.$nextTick((function(){var t=this.$refs.myChart;if(console.log(t),t){var e=this.$echarts.init(t),a={grid:{top:"20px",left:"45px",right:"20px",bottom:"40px",backgroundColor:"#fff"},dataZoom:[{type:"slider",start:0,end:20,bottom:-5}],xAxis:{type:"category",data:this.xAxisData,axisLabel:{interval:0,rotate:0,color:"#FFFFFF",fontSize:10}},yAxis:{type:"value",min:0,max:120,splitLine:{show:!0,lineStyle:{color:"rgba(255,225,255,0.5)",width:1,type:"solid"}}},series:[{data:this.seriesData,type:"line",color:"#5A82FC"}]};e.setOption(a),window.addEventListener("resize",(function(){e.resize()})),this.loading=!1}}))})),i)}),s=l,c=(a("a52d"),a("2877")),u=Object(c["a"])(s,n,o,!1,null,null,null);e["default"]=u.exports},"841c":function(t,e,a){"use strict";var i=a("d784"),n=a("825a"),o=a("1d80"),r=a("129f"),l=a("14c3");i("search",(function(t,e,a){return[function(e){var a=o(this),i=void 0==e?void 0:e[t];return void 0!==i?i.call(e,a):new RegExp(e)[t](String(a))},function(t){var i=a(e,this,t);if(i.done)return i.value;var o=n(this),s=String(t),c=o.lastIndex;r(c,0)||(o.lastIndex=0);var u=l(o,s);return r(o.lastIndex,c)||(o.lastIndex=c),null===u?-1:u.index}]}))},a44d:function(t,e,a){},a52d:function(t,e,a){"use strict";a("a44d")}}]);
//# sourceMappingURL=chunk-c1e39e28.a27ad8d7.js.map