webpackJsonp([5],{Nc2v:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={components:{},data:function(){return{device_id:"",device_type:"",timevalue:"",start_time:"",end_time:"",typeoptions:[],tableData:[],tableSum:100,page:1,pagekey:1}},computed:{},watch:{},methods:{getdatainfo:function(){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=monitor_manage.device.device_monitor_list",data:this.qs.stringify({page:this.page,page_item:20,device_id:this.device_id,type_name:this.device_type,start_time:this.start_time,end_time:this.end_time})}).then(function(t){e.tableSum=t.data.data.total_item,e.tableData=t.data.data.page_list,e.typeoptions=t.data.data.type_name_list})},timechange:function(e){e?(this.start_time=this.timetag(e[0]),this.end_time=this.timetag(e[1])):(this.start_time="",this.end_time="")},timetag:function(e){var t=e.getFullYear(),a=e.getMonth()+1,i=e.getDate();return t+"-"+(a=a<10?"0"+a:a)+"-"+(i=i<10?"0"+i:i)},search:function(){this.page=1,this.pagekey=10*Math.random()+1,this.getdatainfo()},newPage:function(e){this.page=e,this.getdatainfo()}},beforeCreate:function(){},created:function(){this.getdatainfo()},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"OPSbox"},[a("div",{staticClass:"OPSbox_search"},[a("el-input",{attrs:{size:"mini",placeholder:"请输入设备ID"},model:{value:e.device_id,callback:function(t){e.device_id=t},expression:"device_id"}}),e._v(" "),a("el-select",{attrs:{size:"mini",clearable:"",placeholder:"请选择设备类型"},model:{value:e.device_type,callback:function(t){e.device_type=t},expression:"device_type"}},e._l(e.typeoptions,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})}),1),e._v(" "),a("el-date-picker",{attrs:{size:"mini",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.timechange},model:{value:e.timevalue,callback:function(t){e.timevalue=t},expression:"timevalue"}}),e._v(" "),a("el-button",{attrs:{type:"info",size:"mini"},on:{click:e.search}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"OPSbox_table"},[a("el-table",{staticStyle:{width:"100%","overflow-y":"auto"},attrs:{data:e.tableData,stripe:"",height:624}},[a("el-table-column",{attrs:{prop:"device_type_name",label:"设备类型"}}),e._v(" "),a("el-table-column",{attrs:{prop:"device_id",label:"设备编号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"device_status",label:"设备状态"}}),e._v(" "),a("el-table-column",{attrs:{prop:"org_name",label:"隶属组织"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.org_name||"暂无"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"设备地点"}}),e._v(" "),a("el-table-column",{attrs:{prop:"message",label:"故障描述"}}),e._v(" "),a("el-table-column",{attrs:{prop:"failure_time",label:"故障时间"}})],1),e._v(" "),e.tableData.length>0?a("el-pagination",{key:e.pagekey,staticStyle:{margin:"60px 0 0 0"},attrs:{"page-size":20,"current-page":e.page,background:"",layout:"prev, pager, next, jumper",total:e.tableSum},on:{"current-change":e.newPage}}):e._e()],1)])},staticRenderFns:[]};var l=a("VU/8")(i,n,!1,function(e){a("YOFR")},"data-v-a3919914",null);t.default=l.exports},YOFR:function(e,t){}});