1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ee9668e2"],{"0c57":function(t,e,a){"use strict";a.d(e,"f",(function(){return i})),a.d(e,"e",(function(){return l})),a.d(e,"d",(function(){return n})),a.d(e,"h",(function(){return o})),a.d(e,"g",(function(){return c})),a.d(e,"c",(function(){return s})),a.d(e,"b",(function(){return h})),a.d(e,"a",(function(){return d}));var r=a("b775");function i(){return Object(r["a"])({url:"/device/getChargeCode",method:"get"})}function l(t){return Object(r["a"])({url:"/charge/list",method:"post",data:t})}function n(t){return Object(r["a"])({url:"/charge/export",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/swap/list",method:"post",data:t})}function c(t){return Object(r["a"])({url:"/swap/export",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/alarm/list",method:"post",data:t})}function h(t){return Object(r["a"])({url:"/alarm/export",method:"post",data:t})}function d(t){return Object(r["a"])({url:"/alarm/dispose",method:"post",data:t})}},3252:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"charge-box"},[a("div",{staticClass:"charge-tools"},[a("el-form",{attrs:{inline:!0,model:t.queryParams}},[a("el-form-item",{staticStyle:{"margin-left":"35px"},attrs:{label:"充电机ID:"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:t.queryParams.chargerId,callback:function(e){t.$set(t.queryParams,"chargerId",e)},expression:"queryParams.chargerId"}},t._l(t.chargerArr,(function(t){return a("el-option",{key:t.value,attrs:{label:t+"号充电机",value:t}})})),1)],1),a("el-form-item",{staticStyle:{"margin-left":"50px"},attrs:{label:"电池编号:"}},[a("el-input",{attrs:{placeholder:"请输入电池编号",clearable:""},model:{value:t.queryParams.chgSn,callback:function(e){t.$set(t.queryParams,"chgSn","string"===typeof e?e.trim():e)},expression:"queryParams.chgSn"}})],1),a("el-form-item",{staticStyle:{"margin-left":"50px"},attrs:{label:"充电时间:"}},[a("el-date-picker",{staticClass:"times",attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:t.dateArr.chargerDate,callback:function(e){t.$set(t.dateArr,"chargerDate",e)},expression:"dateArr.chargerDate"}})],1),a("el-form-item",[a("el-button",{staticClass:"serch actve",attrs:{type:"primary"},on:{click:t.handleQuery}},[t._v("查询")]),a("el-button",{staticClass:"serch",attrs:{type:"primary"},on:{click:t.resetForm}},[t._v("重置")])],1)],1)],1),a("div",{staticClass:"charge-table"},[a("div",{staticClass:"charge-table-top"},[a("el-button",{staticClass:"daochu",attrs:{type:"primary"},on:{click:t.chargeExport}},[t._v("导出结果")])],1),a("div",{staticClass:"charge-table-bottom"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.datalist,"header-cell-style":{background:"#1d283e",borderColor:"#2f3c86",height:"36px",lineHeight:"36px",color:"white",fontSize:"16px"},stripe:"",fit:"",height:t.tableheight,"default-sort":{prop:"chargerId",order:"descending"}}},[a("el-table-column",{attrs:{prop:"chargerId",label:"充电机ID",fixed:"",width:"120"}}),a("el-table-column",{attrs:{prop:"chgId",label:"充电流水号",width:"120"}}),a("el-table-column",{attrs:{prop:"chgSn",label:"电池编号",width:"180"}}),a("el-table-column",{attrs:{prop:"chgBeginTime",label:"充电开始时间",width:"180"}}),a("el-table-column",{attrs:{prop:"chgEndTime",label:"充电结束时间",width:"180"}}),a("el-table-column",{attrs:{prop:"chgDuration",label:"充电时长(小时)",sortable:"",width:"160"}}),a("el-table-column",{attrs:{prop:"chgBeginSoc",label:"开始SOC(%)",width:"150"}}),a("el-table-column",{attrs:{prop:"chgEndSoc",label:"结束SOC",width:"150"}}),a("el-table-column",{attrs:{prop:"chgCapacity",label:"充电量",sortable:"",width:"120"}}),a("el-table-column",{attrs:{prop:"chgBeginAmmeter",label:"充电前电表数",width:"160"}}),a("el-table-column",{attrs:{prop:"chgEndAmmeter",label:"充电后电表数",width:"160"}}),a("el-table-column",{attrs:{prop:"chgEndReason",label:"充电结束原因",width:"160"}}),a("el-table-column",{attrs:{prop:"chgAccumCapacity",label:"累计充电量",sortable:"",width:"160"}}),a("el-table-column",{attrs:{label:"时段明细",width:"100",align:"center",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"handle",attrs:{type:"primary",size:"small"},on:{click:function(a){return t.chargeShow(e.row.interval)}}},[t._v("明细")])]}}])})],1)],1),a("div",{staticClass:"pageblock"},[a("el-pagination",{attrs:{"current-page":t.queryParams.page,"page-sizes":[10,20,30,40],"page-size":t.queryParams.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)]),a("div",{staticClass:"rolemanage chargeshow"},[a("el-dialog",{attrs:{title:"充电明细",visible:t.dialogChargeVisible,"destroy-on-close":!0},on:{"update:visible":function(e){t.dialogChargeVisible=e}}},[a("div",{staticClass:"charge-table-bottom"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.chargeShowList,"header-cell-style":{background:"#1d283e",borderColor:"#2f3c86",height:"36px",lineHeight:"36px",color:"white",fontSize:"16px"},stripe:"",fit:"",height:t.tableheight-80}},[a("el-table-column",{attrs:{prop:"index",label:"序号"}}),a("el-table-column",{attrs:{prop:"startTime",label:"开始时间段"}}),a("el-table-column",{attrs:{prop:"endTime",label:"结束时间段"}}),a("el-table-column",{attrs:{prop:"chargePower",label:"充电量kWh"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})])],1)])},i=[],l=a("c7eb"),n=a("1da1"),o=(a("9d19"),a("0c57")),c=a("5f35"),s=a.n(c),h={name:"PagePermission",components:{},data:function(){return{dateArr:{chargerDate:[]},chargerArr:null,datalist:[],queryParams:{page:1,pageSize:10,chargerId:void 0,chgSn:void 0,chgBeginTime:void 0,chgEndTime:void 0,orderByField:void 0,orderByWays:"desc"},total:0,tableheight:0,dialogChargeVisible:!1,chargeShowList:[]}},watch:{tableheight:function(t){this.heightTimer||(this.screenHeight=t,this.heightTimer=!0,setTimeout((function(){this.heightTimer=!1}),400))}},mounted:function(){this.chargeList(),this.getChargeCode(),this.onLoadHeight(),this.changeWindow()},methods:{onLoadHeight:function(){var t=this;this.$nextTick((function(){t.tableheight=document.body.clientHeight-460}))},changeWindow:function(){var t=this;window.onresize=function(){return function(){t.tableheight=document.body.clientHeight-460}()}},chargeShow:function(t){this.dialogChargeVisible=!0,this.chargeShowList=t},getChargeCode:function(){var t=this;Object(o["f"])().then((function(e){t.chargerArr=e.data}))},chargeList:function(){var t=this,e=this.queryParams;Object(o["e"])(e).then((function(e){t.datalist=e.data.records,t.total=e.data.total}))},handleSizeChange:function(t){this.queryParams.pageSize=t,this.chargeList()},handleCurrentChange:function(t){this.queryParams.page=t,this.chargeList()},handleQuery:function(){0!==this.dateArr.chargerDate.length&&(this.queryParams.chgBeginTime=this.dateArr.chargerDate[0],this.queryParams.chgEndTime=this.dateArr.chargerDate[1]),this.chargeList()},resetForm:function(){this.queryParams.chgBeginTime=void 0,this.queryParams.chgEndTime=void 0,this.queryParams.chargerId=void 0,this.queryParams.chgSn=void 0,this.chargeList()},chargeExport:function(){var t=this;this.$confirm("确认导出结果?","导出结果",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(Object(n["a"])(Object(l["a"])().mark((function e(){var a,r;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["d"])(t.queryParams);case 2:a=e.sent,r=s.a.devServer.proxy["/api"].target+"/excel/"+a.data,window.open(r,"_blank");case 5:case"end":return e.stop()}}),e)})))).catch((function(t){console.error(t)}))}}},d=h,u=a("2877"),g=Object(u["a"])(d,r,i,!1,null,null,null);e["default"]=g.exports},"9d19":function(t,e,a){}}]);
|