Newer
Older
laserPTZFront / laserPTZ / static / js / chunk-5866.72c1705d.js
[wangxitong] on 10 May 2022 3 KB first commit
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5866"],{"1Zu5":function(t,e,a){},meyv:function(t,e,a){"use strict";var n=a("1Zu5");a.n(n).a},x4Dw:function(t,e,a){"use strict";a.r(e);var n=a("KChx"),l=a("nakL"),i=a("vIUu"),o=a("fM4a"),r=a("xuoe"),s=a("ngQV"),c={name:"ListAlarmHistory",components:{SearchItem:o.a,SearchArea:i.a,AppContainer:l.a,NormalTable:n.a,AlarmDetail:r.a},data:function(){return{listQuery:{keyword:"",startTime:"",endTime:"",offset:1,limit:20,sort:"alarmTime",order:"desc"},columns:[{text:"监控点",value:"monitorName",align:"center"},{text:"场站名称",value:"stationName",align:"center"},{text:"报警原因",value:"alarmContent",align:"center"},{text:"报警数值(ppm.m)",value:"alarmValue",align:"center"},{text:"报警阈值(ppm.m)",value:"alarmThresh",align:"center"},{text:"报警时间",value:"alarmTime",width:220,align:"center"},{text:"报警水平角度",value:"alarmDirection",width:120,align:"center"},{text:"报警垂直角度",value:"alarmPitch",width:120,align:"center"}],timeRange:[],list:[],total:0,listLoading:!0,tableOption:{head:{show:!0,text:"历史报警列表"},options:{needIndex:!1},toolsOption:{selectColumns:!0,refresh:!0}}}},created:function(){this.fetchData()},methods:{detail:function(t){this.$refs.alarmdetail.initDialog(t)},batchExport:function(t){var e=this.$loading({lock:!0,text:"数据处理中,请稍后...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});Object(s.a)(this.listQuery).then(function(t){e.close(),console.log("download===",t);var a=new Blob([t.data]),n=document.createElement("a"),l=window.URL.createObjectURL(a);n.href=l,n.download="历史报警列表.xlsx",document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(l)}).catch(function(){e.close()})},batchClear:function(){this.$refs.clearalarm.initDialog(null,!0)},fetchData:function(){var t=this;this.listLoading=!0,Object(s.c)(this.listQuery).then(function(e){t.list=e.data.rows,t.total=parseInt(e.data.total),t.listLoading=!1})},changePage:function(t){t&&t.size&&(this.listQuery.limit=t.size),t&&t.page&&(this.listQuery.offset=t.page),this.fetchData()},clearInput:function(){this.listQuery={keyword:"",startTime:"",endTime:"",offset:1,limit:20,sort:"alarmTime",order:"desc"}}}},d=(a("meyv"),a("KHd+")),u=Object(d.a)(c,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("app-container",[a("search-area",{attrs:{"need-clear":!0,"need-search-more":!1,type:"seperate"},on:{search:t.fetchData,clear:t.clearInput}},[a("search-item",[a("el-input",{attrs:{placeholder:"场站名称/监控点",clearable:""},model:{value:t.listQuery.keyword,callback:function(e){t.$set(t.listQuery,"keyword","string"==typeof e?e.trim():e)},expression:"listQuery.keyword"}})],1),t._v(" "),a("search-item",[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":"报警开始时间","end-placeholder":"报警结束时间"},model:{value:t.timeRange,callback:function(e){t.timeRange=e},expression:"timeRange"}})],1)],1),t._v(" "),a("normal-table",{attrs:{data:t.list,head:t.tableOption.head,query:t.listQuery,total:t.total,columns:t.columns,"list-loading":t.listLoading,options:t.tableOption.options,"tools-option":t.tableOption.toolsOption},on:{change:t.changePage}},[a("template",{slot:"btns"},[a("el-button",{staticClass:"edit_btn",attrs:{size:"small"},on:{click:t.batchExport}},[t._v("导出记录")])],1),t._v(" "),a("template",{slot:"columns"},[a("el-table-column",{attrs:{label:"操作",align:"center",width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.detail(e.row)}}},[t._v("详情")])]}}])})],1)],2),t._v(" "),a("alarm-detail",{ref:"alarmdetail",on:{watchChild:t.fetchData}})],1)},[],!1,null,"4be23da4",null);u.options.__file="listAlarmHistory.vue";e.default=u.exports}}]);