cuikaidong
2025-08-08 c495c1ae53473d54af136ea00da84bf51c50d521
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a22fd47e"],{"73fb":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{staticStyle:{display:"flex","flex-direction":"column"},attrs:{bordered:!1}},[n("div",{staticClass:"equipmentList",attrs:{id:"DeviceList"}},[n("a-table",{ref:"table",attrs:{bordered:"",size:"middle",rowKey:"equipmentId",columns:e.columns,dataSource:e.dataSource,pagination:!1,loading:e.loading,scroll:{x:"max-content",y:e.scrollY}},scopedSlots:e._u([{key:"equipmentId",fn:function(t,i){return[n("div",{style:{color:0!==i.equipmentStatus?"#f00":null}},[e._v(e._s(t))])]}},{key:"equipmentName",fn:function(t,i){return[n("div",{style:{color:0!==i.equipmentStatus?"#f00":null}},[e._v(e._s(t))])]}},{key:"oporationDict",fn:function(t,i){return[n("div",{style:{color:0!==i.equipmentStatus?"#f00":null}},[e._v(e._s(t))])]}},{key:"equipmentStatus",fn:function(t){return[n("div",{style:{color:0!==t?"#f00":null}},[e._v(e._s(0===t?"正常":"异常"))])]}},{key:"collecttime",fn:function(t,i){return[n("div",{style:{color:0!==i.equipmentStatus?"#f00":null}},[e._v(e._s(t))])]}},{key:"action",fn:function(t,i){return[n("a-popconfirm",{directives:[{name:"has",rawName:"v-has",value:"deiveBaseInfo:responseStatus",expression:"'deiveBaseInfo:responseStatus'"}],attrs:{title:"确定反馈吗?"},on:{confirm:function(t){return e.$emit("editEquipmentStatus",i)}}},[n("a",[e._v("状态反馈")])])]}}])})],1)])},o=[],a=(n("0fea"),{name:"EquipmentLayout",components:{},data:function(){return{loading:!1,url:{},columns:[{title:"设备ID",align:"center",dataIndex:"equipmentId",scopedSlots:{customRender:"equipmentId"},width:210},{title:"设备名称",align:"center",dataIndex:"equipmentName",scopedSlots:{customRender:"equipmentName"},width:300},{title:"状态",align:"center",dataIndex:"oporationDict",scopedSlots:{customRender:"oporationDict"},width:200},{title:"设备异常",align:"center",dataIndex:"equipmentStatus",scopedSlots:{customRender:"equipmentStatus"},width:200},{title:"采集时间",align:"center",dataIndex:"collecttime",defaultSortOrder:"descend",sorter:function(e,t){return e.collecttime>t.collecttime?1:-1},scopedSlots:{customRender:"collecttime"},width:350},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"},align:"center",width:150,fixed:"right"}],scrollY:465}},props:{dataSource:{type:Array,required:!0,default:[]}},watch:{},methods:{handleWindowResize:function(){var e=+window.getComputedStyle(document.getElementById("DeviceList")).height.slice(0,-2),t=+window.getComputedStyle(document.querySelector(".ant-table-thead th")).height.slice(0,-2);this.scrollY=e-t}},mounted:function(){window.addEventListener("resize",this.handleWindowResize),this.handleWindowResize()}}),c=a,s=(n("e4ec"),n("2877")),l=Object(s["a"])(c,i,o,!1,null,"cc314ec4",null);t["default"]=l.exports},e4ec:function(e,t,n){"use strict";var i=n("fa46"),o=n.n(i);o.a},fa46:function(e,t,n){}}]);