(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1dab8d5a"],{2830:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"table_alarmLogist"},[a("a-table",{ref:"table",attrs:{bordered:"",size:"middle",rowKey:function(t,e){return e},columns:t.columns,dataSource:t.dataList,pagination:!1,loading:t.loadingwarnStatus},scopedSlots:t._u([{key:"status",fn:function(e){return["3"==e||"23"==e?a("div",{staticStyle:{color:"#00ee00",width:"100%",height:"100%"}},[t._v("运行")]):"1"==e||"2"==e?a("div",{staticStyle:{color:"#ffea91",width:"100%",height:"100%"}},[t._v("待机")]):"0"==e?a("div",{staticStyle:{color:"#A8A8A8",width:"100%",height:"100%"}},[t._v("关机")]):"22"==e?a("div",{staticStyle:{color:"red",width:"100%",height:"100%"}},[t._v("报警")]):t._e()]}}])})],1)])},r=[],s=a("7b16"),i=a("4349"),d=a("d579"),l=a("f933"),o={name:"AlarmLogList",components:{Tooltip:l["a"],JDictSelectTag:s["default"],JInput:i["default"],JEllipsis:d["default"]},props:{dataList:{type:Array,required:!0,default:[]},loadingwarnStatus:{type:Boolean,default:!1}},data:function(){return{disabled:!0,columns:[{title:"状态",align:"center",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"报警时间",align:"center",dataIndex:"startTime"},{title:"结束时间",align:"center",dataIndex:"endTime"},{title:"持续时间",align:"center",dataIndex:"duration",customRender:function(t,e,a){var n=parseInt(t);if(n>=3600){var r=parseInt(n/3600)<10?"0"+parseInt(n/3600):parseInt(n/3600),s=parseInt(n%3600/60)<10?"0"+parseInt(n%3600/60):parseInt(n%3600/60),i=parseInt(n%3600%60)<10?"0"+parseInt(n%3600%60):parseInt(n%3600%60);return"00"==s?"00"==i?r+"小时":r+"小时"+i+"秒":"00"==i?r+"小时"+s+"分":r+"小时"+s+"分"+i+"秒"}if(60<n&&n<3600){var d=parseInt(n%3600/60)<10?"0"+parseInt(n%3600/60):parseInt(n%3600/60),l=parseInt(n%3600%60)<10?"0"+parseInt(n%3600%60):parseInt(n%3600%60);return d+"分"+l+"秒"}var o=parseInt(n%3600%60)<10?"0"+parseInt(n%3600%60):parseInt(n%3600%60);return o+"秒"}},{title:"报警号",align:"center",dataIndex:"alarm"},{title:"报警描述",align:"center",dataIndex:"alarmContent"}],url:{}}},methods:{},created:function(){}},c=o,u=(a("4bba"),a("2877")),p=Object(u["a"])(c,n,r,!1,null,"064e2805",null);e["default"]=p.exports},"4bba":function(t,e,a){"use strict";var n=a("9245"),r=a.n(n);r.a},9245:function(t,e,a){}}]);
|