Newer
Older
smartcity_env_front / videoEnv / static / js / chunk-200e.49801f4a.js
[wangxitong] on 22 Jul 2021 3 KB first commit
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-200e"],{"/I5v":function(e,t,n){"use strict";n.r(t);var i={name:"EnvironmentPoint",components:{},data:function(){return{listQuery:{keywords:"",offset:1,limit:20},columns:[{text:"名称",value:"name",align:"center"},{text:"PM2.5",value:"PM25",align:"center",width:100},{text:"PM10",value:"PM10",align:"center",width:100},{text:"SO2",value:"SO2",align:"center",width:100},{text:"NO2",value:"NO2",align:"center",width:100},{text:"CO",value:"CO",align:"center",width:100},{text:"O3",value:"O3",align:"center",width:100},{text:"温度",value:"temperature",align:"center",width:100},{text:"湿度",value:"humidity",align:"center",width:100},{text:"风速",value:"windSpeed",align:"center",width:100},{text:"风向",value:"windDirection",align:"center",width:100},{text:"时间",value:"time",align:"center"}],timeRange:[],list:[],total:0,listLoading:!0,tableOption:{head:{show:!0,text:"数据列表"},options:{needIndex:!1},toolsOption:{selectColumns:!1,refresh:!1}}}},created:function(){this.fetchData()},methods:{goDetail:function(e){this.$router.push({name:"EnvironmentData",query:{name:e.name}})},fetchData:function(){this.listLoading=!0;var e=this;setTimeout(function(){e.list=[{name:"宝水新城监控点",PM25:"23.40",PM10:"25.80",SO2:"0.00",NO2:"3.40",CO:"0.40",O3:"7.40",temperature:"22.50",humidity:"80.50",windSpeed:"2.50",windDirection:"122.50",time:"05-07 11:15"},{name:"宝水新城监控点",PM25:"23.40",PM10:"25.80",SO2:"0.00",NO2:"3.40",CO:"0.40",O3:"7.40",temperature:"22.50",humidity:"80.50",windSpeed:"2.50",windDirection:"122.50",time:"05-07 11:15"},{name:"宝水新城监控点",PM25:"23.40",PM10:"25.80",SO2:"0.00",NO2:"3.40",CO:"0.40",O3:"7.40",temperature:"22.50",humidity:"80.50",windSpeed:"2.50",windDirection:"122.50",time:"05-07 11:15"},{name:"宝水新城监控点",PM25:"23.40",PM10:"25.80",SO2:"0.00",NO2:"3.40",CO:"0.40",O3:"7.40",temperature:"22.50",humidity:"80.50",windSpeed:"2.50",windDirection:"122.50",time:"05-07 11:15"}],e.total=200,e.listLoading=!1},500)},changePage:function(e){e&&e.size&&(this.listQuery.limit=e.size),e&&e.page&&(this.listQuery.offset=e.page),this.fetchData()},clearInput:function(){this.$message.success("clearInput")}}},a=(n("Vmb4"),n("KHd+")),l=Object(a.a)(i,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("app-container",[n("search-area",{attrs:{"need-clear":!1,"need-search-more":!1,type:"seperate",size:"small","search-more-type":"default"},on:{search:e.fetchData,clear:e.clearInput}},[n("search-item",[n("el-input",{attrs:{size:"small",placeholder:"请输入关键字",clearable:""},model:{value:e.listQuery.keywords,callback:function(t){e.$set(e.listQuery,"keywords","string"==typeof t?t.trim():t)},expression:"listQuery.keywords"}})],1)],1),e._v(" "),n("normal-table",{attrs:{data:e.list,head:e.tableOption.head,query:e.listQuery,total:e.total,columns:e.columns,"list-loading":e.listLoading,options:e.tableOption.options,"tools-option":e.tableOption.toolsOption,size:"small"},on:{change:e.changePage}},[n("template",{slot:"btns"}),e._v(" "),n("template",{slot:"columns"},[n("el-table-column",{attrs:{label:"历史数据",align:"center",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){n.stopPropagation(),e.goDetail(t.row)}}},[e._v("历史数据")])]}}])})],1)],2)],1)},[],!1,null,"e1646c64",null);l.options.__file="environmentPoint.vue";t.default=l.exports},Vmb4:function(e,t,n){"use strict";var i=n("pDVO");n.n(i).a},pDVO:function(e,t,n){}}]);