cuikaidong
2025-08-08 c495c1ae53473d54af136ea00da84bf51c50d521
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d5fd04a"],{"606b":function(t,e,a){"use strict";var n=a("a9f2"),i=a.n(n);i.a},"61b3":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_logList"},[a("a-table",{ref:"table",attrs:{bordered:"",size:"middle",rowKey:function(t,e){return e},columns:t.columns,dataSource:t.dataList,pagination:t.ipagination,loading:t.loadingequip,customRow:t.rowClick},on:{change:t.handleTableChange},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)])},i=[],r=a("7b16"),s=(a("0fea"),a("4349")),o=a("d579"),d=a("f933"),c=a("b65a"),l=a("c1df"),u=a.n(l),p={name:"LogList",mixins:[c["a"]],components:{Tooltip:d["a"],JDictSelectTag:r["default"],JInput:s["default"],JEllipsis:o["default"]},props:{dataList:{type:Array,required:!0,default:[]},loadingequip:{type:Boolean,default:!1}},watch:{},data:function(){return{statusName:"",disabled:!0,disableMixinCreated:!0,loading:!1,ipagination:{current:1,pageSize:100,pageSizeOptions:["100","500","1000"],showTotal:function(t,e){return e[0]+"-"+e[1]+" 共"+t+"条"},showQuickJumper:!0,showSizeChanger:!0,total: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 i=parseInt(n/3600)<10?"0"+parseInt(n/3600):parseInt(n/3600),r=parseInt(n%3600/60)<10?"0"+parseInt(n%3600/60):parseInt(n%3600/60),s=parseInt(n%3600%60)<10?"0"+parseInt(n%3600%60):parseInt(n%3600%60);return"00"==r?"00"==s?i+"小时":i+"小时"+s+"秒":"00"==s?i+"小时"+r+"分":i+"小时"+r+"分"+s+"秒"}if(60<n&&n<3600){var o=parseInt(n%3600/60)<10?"0"+parseInt(n%3600/60):parseInt(n%3600/60),d=parseInt(n%3600%60)<10?"0"+parseInt(n%3600%60):parseInt(n%3600%60);return o+"分"+d+"秒"}var c=parseInt(n%3600%60)<10?"0"+parseInt(n%3600%60):parseInt(n%3600%60);return c+"秒"}},{title:"程序号",align:"center",dataIndex:"sequenceNumber"}]}},methods:{handleTableChange:function(t,e,a){Object.keys(a).length>0&&(this.isorter.column=a.field,this.isorter.order="ascend"==a.order?"asc":"desc"),this.ipagination=t},rowClick:function(t){var e=this;return{on:{click:function(){if(0!==t.status){var a={start:u()(t.startTime),end:u()(t.endTime)};e.$bus.$emit("tableRowRecord",a)}}}}}},created:function(){}},f=p,h=(a("606b"),a("2877")),g=Object(h["a"])(f,n,i,!1,null,"4c9eb140",null);e["default"]=g.exports},a9f2:function(t,e,a){}}]);