wisdomisite-java/src/main/resources/static/js/chunk-42a83818.2dbcfdec.js

1 line
7.4 KiB
JavaScript
Raw Normal View History

2023-02-16 15:28:15 +08:00
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-42a83818","chunk-2d0b59c3"],{"0585":function(t,e,n){"use strict";n.r(e);var a=n("1a41"),r={name:"historyData",data:function(){return{projectSn:"",options:[],time:[],formInline:{endTime:"",startTime:"",devSn:""},tableData:[],pageNo:1,pageSize:10,total:0}},created:function(){this.projectSn=this.$store.state.projectSn,this.getDevListData(),this.onSubmit()},methods:{exportFn:function(){window.location.href=this.$http.defaults.baseURL+"xmgl/standardCurrentData/exportExcelStandardCurrentData?devSn="+this.formInline.devSn+"&projectSn="+this.projectSn+"&startTime="+this.formInline.startTime+"&endTime="+this.formInline.endTime},getDevListData:function(){var t=this,e={projectSn:this.projectSn};Object(a.v)(e).then((function(e){200==e.code&&(t.options=e.result)}))},onSubmit:function(){var t=this;this.time&&0!=this.time.length?(this.formInline.startTime=this.time[0],this.formInline.endTime=this.time[1]):(this.formInline.endTime="",this.formInline.startTime="");var e=this.formInline;e.projectSn=this.projectSn,e.pageNo=this.pageNo,e.pageSize=this.pageSize,Object(a.p)(e).then((function(e){200==e.code&&(t.total=e.result.total,t.tableData=e.result.records)}))},handleSizeChange:function(t){this.pageSize=t,this.onSubmit()},handleCurrentChange:function(t){this.pageNo=t,this.onSubmit()}}},i=n("2877"),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fullHeight"},[n("div",{staticClass:"searchBox whiteBlock"},[n("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.formInline,size:"medium"}},[n("el-form-item",{attrs:{label:t.$t("message.deviceManage.date")}},[n("el-date-picker",{attrs:{type:"datetimerange","range-separator":t.$t("message.deviceManage.to"),"start-placeholder":t.$t("message.deviceManage.startDate"),"value-format":"yyyy-MM-dd HH:mm:ss","end-placeholder":t.$t("message.deviceManage.endDate")},model:{value:t.time,callback:function(e){t.time=e},expression:"time"}})],1),n("el-form-item",{attrs:{label:t.$t("message.deviceManage.facility")}},[n("el-select",{attrs:{placeholder:t.$t("message.deviceManage.placeholder_select")+t.$t("message.deviceManage.facility"),size:"small"},model:{value:t.formInline.devSn,callback:function(e){t.$set(t.formInline,"devSn",e)},expression:"formInline.devSn"}},[n("el-option",{attrs:{label:t.$t("message.deviceManage.all"),value:""}}),t._l(t.options,(function(e){return t.options.length>0?n("el-option",{key:e.value,attrs:{label:e.laboratoryName,value:e.devSn}}):t._e()}))],2)],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",plain:""},on:{click:t.onSubmit}},[t._v(t._s(t.$t("message.deviceManage.query")))]),n("el-button",{attrs:{type:"primary"},on:{click:t.exportFn}},[t._v(" "+t._s(t.$t("message.projectInfo.export"))+" ")])],1)],1)],1),n("div",{staticClass:"table_wrap whiteBlock"},[n("el-table",{staticClass:"tables",attrs:{data:t.tableData}},[n("el-table-column",{attrs:{prop:"laboratoryName",label:t.$t("message.deviceManage.devName")}}),n("el-table-column",{attrs:{prop:"temperature",label:t.$t("message.projectInfo.temperatureUnit")}}),n("el-table-column",{attrs:{prop:"humidity",label:t.$t("message.projectInfo.humidityUnit")}}),n("el-table-column",{attrs:{prop:"receiveTime",label:t.$t("message.deviceManage.uploadTime")}})],1),n("el-pagination",{staticClass:"pagerBox",attrs:{"current-page":t.pageNo,"page-sizes":t.$store.state.PAGESIZRS,"page-size":t.pageSize,layout:"total, sizes, prev, pager, next",total:Number(t.total),background:""},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)])}),[],!1,null,"72189ede",null);e.default=o.exports},"1a41":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"k",(function(){return i})),n.d(e,"g",(function(){return o})),n.d(e,"v",(function(){return c})),n.d(e,"d",(function(){return u})),n.d(e,"l",(function(){return l})),n.d(e,"h",(function(){return s})),n.d(e,"w",(function(){return d})),n.d(e,"f",(function(){return m})),n.d(e,"n",(function(){return f})),n.d(e,"j",(function(){return b})),n.d(e,"y",(f