(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-83b1"],{CCCs:function(e,t,a){},gZ2l:function(e,t,a){"use strict";a.r(t);var n=a("QbLZ"),i=a.n(n),l=a("L2JU"),s={name:"RealTimeInformation",data:function(){return{equipmentName:"",variableName:"",equipmentList:[],total:0,tableData:[],pageCurrent:1,pageSize:20,loading:!1}},computed:i()({},Object(l.b)(["id","token"])),created:function(){this.getEquipmentList(),this.searchTable()},methods:{getEquipmentList:function(){var e=this;this.loading=!0,this.ExecDatabase(this.CreateData("11","设备管理_历史数据_设备_查询",[])).then(function(t){console.log(t),t.data&&0!==t.data.length?e.equipmentList=t.data.map(function(e){return{value:e.Zone,label:e.Zone}}):e.equipmentList=[],e.loading=!1})},searchTable:function(){var e=this;this.loading=!0;var t=[];t[0]=["设备名称",this.equipmentName],t[1]=["参数名称",this.variableName],t[2]=["PageCurrent",this.pageCurrent],t[3]=["PageSize",this.pageSize],t[4]=["PageCount","1111","int","1"],t[5]=["ItemCount","1111","int","1"];var a=this.CreateData("11","设备管理_设备数据_查询",t);this.ExecDatabase(a).then(function(t){console.log("设备信息查询",t.data),t.data.result&&0!==t.data.result.length?e.tableData=t.data.result.map(function(e){return{"设备名称":e.Zone,"参数名称":e.TagName,"数值":e.TagValue,"单位":e.TagUnit,"更新时间":e.UpdateTime}}):e.tableData=[],e.total=parseInt(t.data.output[0].ItemCount)||0,console.log("设备信息查询",e.tableData)}).finally(function(){e.loading=!1})},handleSizeChanges:function(e){this.pageCurrent=1,this.pageSize=e,this.searchTable()},handleCurrentChanges:function(e){this.pageCurrent=e,this.searchTable()}}},r=(a("yF1V"),a("KHd+")),o=Object(r.a)(s,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{staticClass:"real-time-card",attrs:{shadow:"hover"}},[a("div",{staticClass:"search-container"},[a("el-select",{staticStyle:{width:"200px"},attrs:{placeholder:"请选择设备",size:"small",clearable:""},model:{value:e.equipmentName,callback:function(t){e.equipmentName=t},expression:"equipmentName"}},e._l(e.equipmentList,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"变量名称",size:"small",clearable:""},model:{value:e.variableName,callback:function(t){e.variableName=t},expression:"variableName"}}),e._v(" "),a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"small"},on:{click:function(t){e.searchTable()}}},[e._v("查询")])],1),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table-container"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",size:"small",stripe:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"设备名称",prop:"设备名称",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"equipment-name"},[e._v(e._s(t.row.设备名称))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"参数名称",prop:"参数名称",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"parameter-name"},[e._v(e._s(t.row.参数名称))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"数值",prop:"数值",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"value"},[e._v(e._s(t.row.数值))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单位",prop:"单位",align:"center","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"unit"},[e._v(e._s(t.row.单位))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"更新时间",prop:"更新时间",align:"center","min-width":"180px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"update-time"},[e._v(e._s(t.row.更新时间))])]}}])})],1)],1),e._v(" "),a("div",{staticClass:"pagination-container"},[a("el-pagination",{attrs:{"current-page":e.pageCurrent,"page-sizes":[10,20,30,40,100],"page-size":e.pageSize,total:e.total,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":e.handleSizeChanges,"current-change":e.handleCurrentChanges}})],1)])],1)},[],!1,null,"bf3c5452",null);o.options.__file="index.vue";t.default=o.exports},yF1V:function(e,t,a){"use strict";var n=a("CCCs");a.n(n).a}}]);