chunk-15903956.a35b14c8.js 9.5 KB

1234567
  1. /*!
  2. * build: vue-admin-better
  3. * vue-admin-beautiful.com
  4. * https://gitee.com/chu1204505056/vue-admin-better
  5. * time: 2022-6-10 15:26:20
  6. */
  7. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-15903956"],{"3fb9":function(t,e,a){},5301:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"table-container"},[a("vab-query-form",[a("vab-query-form-left-panel",[a("el-form",{ref:"searchForm",attrs:{model:t.searchForm,inline:!0},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"timestamp"},model:{value:t.times,callback:function(e){t.times=e},expression:"times"}})],1),a("el-form-item",[a("el-select",{attrs:{clearable:"",placeholder:"场站"},model:{value:t.searchForm.stationCode,callback:function(e){t.$set(t.searchForm,"stationCode",e)},expression:"searchForm.stationCode"}},t._l(t.stations,(function(t){return a("el-option",{key:t.stationCode,attrs:{label:t.name,value:t.stationCode}})})),1)],1),a("el-form-item",[a("el-button",{attrs:{icon:"el-icon-search",type:"primary","native-type":"submit"},on:{click:t.handleQuery}},[t._v(" 查询 ")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"table",attrs:{data:t.tableData,"element-loading-text":t.elementLoadingText,height:t.height,"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"}}},[a("el-table-column",{attrs:{fixed:"",label:"序号",width:"95"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.$index+1)+" ")]}}])}),a("el-table-column",{attrs:{fixed:"",label:"一体化公司",prop:"inCode",formatter:t.formatCompany}}),a("el-table-column",{attrs:{fixed:"",width:"150",label:"场站名称",prop:"stationCode",formatter:t.formatStation}}),a("el-table-column",{attrs:{width:"100",label:"下载时间",prop:"initTime"}}),a("el-table-column",{attrs:{width:"100",label:"上送时间",prop:"uploadTime"}}),a("el-table-column",{attrs:{width:"100",label:"修正时间",prop:"correctTime"}}),a("el-table-column",{attrs:{width:"100",label:"预测时间",prop:"forecastTime",formatter:t.formatDate}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"预测功率",prop:"fpValue"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"预测功率(修)",prop:"fpValueCorrect"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"总辐射",prop:"swr"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"总辐射(修)",prop:"swrCorrect"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"直辐射",prop:"directRadiation"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"直辐射(修)",prop:"directRadiationCorrect"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"散辐射",prop:"diffuseRadiation"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"散辐射(修)",prop:"diffuseRadiationCorrect"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"风速",prop:"windSpeed"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"风速(修)",prop:"windSpeedCorrect"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"风向",prop:"windDir"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"风向(修)",prop:"windDirCorrect"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"气温",prop:"temperature"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"气温(修)",prop:"temperatureCorrect"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"相对湿度",prop:"humidity"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"相对湿度(修)",prop:"humidityCorrect"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"压力",prop:"pressure"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"压力(修)",prop:"pressureCorrect"}})],1),a("el-pagination",{attrs:{background:t.background,"current-page":t.page.currentPage,layout:t.layout,"page-size":t.page.pageSize,total:t.page.total},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1)},n=[],r=a("c7eb"),l=a("1da1"),i=(a("b0c0"),a("7db0"),a("d3b7"),a("fb6a"),a("d6de")),u=a("d3e4"),c=a("b30e"),s={name:"Record",data:function(){return{tableData:[],companys:[],types:[{label:"拉取原始数据",value:"PULL_INIT"},{label:"推送原始数据",value:"PUSH_INIT"},{label:"拉取修正数据",value:"PULL_CORRECT"},{label:"交互权限",value:"COM_PERMISSON"}],stations:[],searchForm:{},times:[new Date((new Date).setHours(0,0,0,0)).getTime(),new Date((new Date).setHours(23,59,59,59)).getTime()+10368e5],listLoading:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,elementLoadingText:"正在加载...",page:{total:0,currentPage:1,pageSize:20}}},computed:{height:function(){return this.$baseTableHeight()}},created:function(){this.getCompany()},methods:{getCompany:function(){var t=this;Object(u["getCompanyAll"])().then((function(e){t.companys=e.data,t.getStation(),t.listLoading=!1})).catch((function(){t.listLoading=!1}))},getStation:function(){var t=this;Object(c["getStationAll"])().then((function(e){t.stations=e.data,t.fetchData(),t.listLoading=!1})).catch((function(){t.listLoading=!1}))},fetchData:function(){var t=this;return Object(l["a"])(Object(r["a"])().mark((function e(){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.listLoading=!0,t.searchForm.startTime=null,t.searchForm.endTime=null,null!=t.times&&(t.searchForm.startTime=t.times[0],t.searchForm.endTime=t.times[1]),Object(i["fetchList"])(Object.assign({current:t.page.currentPage,size:t.page.pageSize},t.searchForm)).then((function(e){t.tableData=e.data.records,t.page.total=e.data.total,t.listLoading=!1})).catch((function(){t.listLoading=!1}));case 5:case"end":return e.stop()}}),e)})))()},handleSizeChange:function(t){this.page.pageSize=t,this.page.currentPage=1,this.fetchData()},handleCurrentChange:function(t){this.page.currentPage=t,this.fetchData()},handleQuery:function(){for(var t in this.searchForm)""==this.searchForm[t]&&delete this.searchForm[t];this.page.currentPage=1,this.fetchData()},handleDelete:function(t){var e=this;this.$baseConfirm("你确定要删除当前项吗",null,Object(l["a"])(Object(r["a"])().mark((function a(){return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(i["delObj"])(t.id);case 2:e.$baseMessage("删除成功","success"),e.fetchData();case 4:case"end":return a.stop()}}),a)}))))},formatCompany:function(t,e){for(var a=0;a<this.companys.length;a++)if(t.inCode==this.companys[a].code)return this.companys[a].name},formatType:function(t,e){for(var a=0;a<this.types.length;a++)if(t.type==this.types[a].value)return this.types[a].label},formatStation:function(t,e){var a=this.stations.find((function(e){return e.stationCode===t.stationCode}));return a.name},formatDate:function(t,e){var a=new Date(t.forecastTime),o=a.getFullYear(),n=("0"+(a.getMonth()+1)).slice(-2),r=("0"+a.getDate()).slice(-2),l=("0"+a.getHours()).slice(-2),i=("0"+a.getMinutes()).slice(-2),u=("0"+a.getSeconds()).slice(-2),c=o+"-"+n+"-"+r+" "+l+":"+i+":"+u;return c}}},d=s,p=(a("533d"),a("2877")),f=Object(p["a"])(d,o,n,!1,null,null,null);e["default"]=f.exports},"533d":function(t,e,a){"use strict";a("3fb9")},b30e:function(t,e,a){"use strict";a.r(e),a.d(e,"fetchList",(function(){return n})),a.d(e,"addObj",(function(){return r})),a.d(e,"getObj",(function(){return l})),a.d(e,"getStationAll",(function(){return i})),a.d(e,"delObj",(function(){return u})),a.d(e,"putObj",(function(){return c}));var o=a("b775");function n(t){return Object(o["default"])({url:"/station/page",method:"get",params:t})}function r(t){return Object(o["default"])({url:"/station",method:"post",data:t})}function l(t){return Object(o["default"])({url:"/station/"+t,method:"get"})}function i(){return Object(o["default"])({url:"/station/all",method:"get"})}function u(t){return Object(o["default"])({url:"/station/"+t,method:"delete"})}function c(t){return Object(o["default"])({url:"/station",method:"put",data:t})}},d3e4:function(t,e,a){"use strict";a.r(e),a.d(e,"fetchList",(function(){return n})),a.d(e,"addObj",(function(){return r})),a.d(e,"getObj",(function(){return l})),a.d(e,"getCompanyAll",(function(){return i})),a.d(e,"delObj",(function(){return u})),a.d(e,"putObj",(function(){return c}));var o=a("b775");function n(t){return Object(o["default"])({url:"/integrationCompany/page",method:"get",params:t})}function r(t){return Object(o["default"])({url:"/integrationCompany",method:"post",data:t})}function l(t){return Object(o["default"])({url:"/integrationCompany/"+t,method:"get"})}function i(){return Object(o["default"])({url:"/integrationCompany/all",method:"get"})}function u(t){return Object(o["default"])({url:"/integrationCompany/"+t,method:"delete"})}function c(t){return Object(o["default"])({url:"/integrationCompany",method:"put",data:t})}},d6de:function(t,e,a){"use strict";a.r(e),a.d(e,"fetchList",(function(){return n})),a.d(e,"addObj",(function(){return r})),a.d(e,"delObj",(function(){return l})),a.d(e,"putObj",(function(){return i}));var o=a("b775");function n(t){return Object(o["default"])({url:"/forecastData/page",method:"get",params:t})}function r(t){return Object(o["default"])({url:"/forecastData",method:"post",data:t})}function l(t){return Object(o["default"])({url:"/forecastData/"+t,method:"delete"})}function i(t){return Object(o["default"])({url:"/forecastData",method:"put",data:t})}}}]);