chunk-86f3.1076a4a3.js 19 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-86f3"],{"543/":function(t,a,e){"use strict";var n=e("Ub7k");e.n(n).a},"5fXe":function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".chargingStationDetail-wrap[data-v-95827b88] {\n background: #F0F4F7;\n}\n.chargingStationDetail[data-v-95827b88] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n height: calc(100vh - 140px);\n padding: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.chargingStationDetail .left-area[data-v-95827b88] {\n height: 100%;\n min-width: 250px;\n padding: 20px;\n border: 1px solid #ddd;\n background: #fff;\n}\n.chargingStationDetail .left-area .station-info[data-v-95827b88] {\n text-align: center;\n}\n.chargingStationDetail .left-area .station-info .img[data-v-95827b88] {\n width: 100px;\n height: 100px;\n border-radius: 50%;\n margin-bottom: 10px;\n}\n.chargingStationDetail .left-area .station-info .city[data-v-95827b88] {\n margin-top: 10px;\n color: #666;\n font-size: 14px;\n}\n.chargingStationDetail .left-area .car-type-wrap[data-v-95827b88] {\n margin-top: 20px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.chargingStationDetail .left-area .car-type-wrap .item[data-v-95827b88] {\n cursor: pointer;\n padding: 8px 20px;\n border: 1px solid #999;\n border-radius: 6px;\n font-size: 14px;\n}\n.chargingStationDetail .left-area .car-type-wrap .item[data-v-95827b88]:nth-child(1) {\n margin-right: 10px;\n}\n.chargingStationDetail .left-area .car-type-wrap .item.active[data-v-95827b88] {\n background: #0089FE;\n color: #fff;\n border: 0;\n}\n.chargingStationDetail .left-area .car-type-wrap .item.disabled[data-v-95827b88] {\n opacity: .4;\n cursor: not-allowed;\n}\n.chargingStationDetail .left-area .device-total-wrap[data-v-95827b88] {\n margin-top: 50px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.chargingStationDetail .left-area .device-total-wrap .item[data-v-95827b88] {\n text-align: center;\n}\n.chargingStationDetail .left-area .device-total-wrap .item[data-v-95827b88]:nth-child(1) {\n margin-right: 40px;\n}\n.chargingStationDetail .left-area .device-total-wrap .item .value[data-v-95827b88] {\n color: #0089FE;\n font-size: 18px;\n margin-bottom: 12px;\n}\n.chargingStationDetail .left-area .charge0-statistics-wrap[data-v-95827b88] {\n margin-top: 80px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.chargingStationDetail .left-area .charge0-statistics-wrap .wrap[data-v-95827b88] {\n text-align: center;\n}\n.chargingStationDetail .left-area .charge0-statistics-wrap .text[data-v-95827b88] {\n margin-bottom: 36px;\n text-align: left;\n}\n.chargingStationDetail .right-area[data-v-95827b88] {\n background: #fff;\n padding: 14px 20px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n margin-left: 12px;\n}\n.chargingStationDetail .right-area .status-wrap[data-v-95827b88] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.chargingStationDetail .right-area .status-wrap .item[data-v-95827b88] {\n background: #f2f2f2;\n padding: 10px 20px;\n width: 140px;\n margin-right: 10px;\n text-align: center;\n}\n.chargingStationDetail .right-area .status-wrap .item[data-v-95827b88]:last-child {\n margin-right: 0;\n}\n.chargingStationDetail .right-area .status-wrap .item .status[data-v-95827b88] {\n color: #666;\n margin-bottom: 12px;\n}\n.chargingStationDetail .right-area .search-row[data-v-95827b88] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n margin: 20px 0;\n}\n.chargingStationDetail .right-area .device-wrap[data-v-95827b88] {\n padding: 20px;\n border: 1px solid #f2f2f2;\n}\n.chargingStationDetail .right-area .device-wrap .options[data-v-95827b88] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n margin-bottom: 20px;\n}\n.chargingStationDetail .right-area .device-wrap .device-item-wrap[data-v-95827b88] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.chargingStationDetail .right-area .device-wrap .device-item[data-v-95827b88] {\n font-size: 14px;\n margin: 0 20px 20px 0;\n position: relative;\n}\n.chargingStationDetail .right-area .device-wrap .device-item .check[data-v-95827b88] {\n margin-bottom: 10px;\n}\n.chargingStationDetail .right-area .device-wrap .device-item .col[data-v-95827b88] {\n line-height: 1.8;\n}\n.chargingStationDetail .right-area .device-wrap .device-item .port-container[data-v-95827b88] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n width: 200px;\n}\n.chargingStationDetail .right-area .device-wrap .device-item .port-item[data-v-95827b88] {\n -webkit-box-flex: 0;\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n padding: 5px 0;\n}\n.chargingStationDetail .right-area .device-wrap .device-item .port-item.DISABLED[data-v-95827b88], .chargingStationDetail .right-area .device-wrap .device-item .port-item.FAULT[data-v-95827b88] {\n color: #F56C6C;\n}\n.chargingStationDetail .right-area .device-wrap .device-item .port-item.CHARGING[data-v-95827b88] {\n color: #67C23A;\n}\n.chargingStationDetail .right-area .device-wrap .device-item .port-item.NORMAL[data-v-95827b88] {\n color: #E6A23C;\n}\n.chargingStationDetail .refresh-icon[data-v-95827b88] {\n font-size: 18px;\n cursor: pointer;\n position: absolute;\n right: 10px;\n}\n",""])},"6KLq":function(t,a,e){"use strict";e.d(a,"a",function(){return r}),e.d(a,"j",function(){return c}),e.d(a,"i",function(){return o}),e.d(a,"f",function(){return s}),e.d(a,"h",function(){return l}),e.d(a,"d",function(){return d}),e.d(a,"l",function(){return p}),e.d(a,"k",function(){return u}),e.d(a,"b",function(){return v}),e.d(a,"g",function(){return h}),e.d(a,"m",function(){return g}),e.d(a,"o",function(){return f}),e.d(a,"p",function(){return b}),e.d(a,"e",function(){return m}),e.d(a,"r",function(){return x}),e.d(a,"c",function(){return _}),e.d(a,"n",function(){return y}),e.d(a,"q",function(){return w});var n=e("t3Un"),i=e("clrU");function r(t){return Object(n.a)({url:"?r=chrpannel-group/add",method:"post",data:t})}function c(t){return Object(n.a)({url:"?r=chrpannel-group/list",method:"post",data:t})}function o(t){return Object(n.a)({url:"?r=chrpannel-group/info",method:"post",data:t})}function s(t){return Object(n.a)({url:"?r=chrpannel-group/edit",method:"post",data:t})}function l(t){return Object(n.a)({url:"?r=chrpannel-group/detail",method:"post",data:t})}function d(t){return Object(n.a)({url:"?r=chrpannel/batch-operate-port",method:"post",data:t})}function p(t){return Object(n.a)({url:"?r=chrpannel/list",method:"get",params:t})}function u(t){return Object(n.a)({url:"?r=chrpannel/detail",method:"post",data:t})}function v(t){return Object(n.a)({url:"?r=chrpannel/add",method:"post",data:t})}function h(t){return Object(n.a)({url:"?r=chrpannel/edit",method:"post",data:t})}function g(t){return Object(n.a)({url:"?r=chrpannel/info",method:"post",data:t})}function f(t){return Object(n.a)({url:"?r=chrpannel/third-device-type-list",method:"post",data:t})}function b(t){return Object(i.a)({url:"/sim/sim-type-list",method:"get",data:t})}function m(t){return Object(n.a)({url:"?r=chrpannel/batch-restart",method:"post",data:t})}function x(t){return Object(n.a)({url:"?r=chrpannel-group/search-refresh-chrpannel",method:"post",data:t})}function _(t){return Object(n.a)({url:"?r=chrpannel/transfer",method:"post",data:t})}function y(t){return Object(n.a)({url:"?r=chrpannel/list-by-dev-id-list",method:"post",data:t})}function w(t){return Object(n.a)({url:"?r=chrpannel/refresh-common-code",method:"post",data:t})}},A0kp:function(t,a,e){"use strict";var n={props:{title:{type:String,default:""}},methods:{goBack:function(){this.$router.go(-1)},submit:function(){this.$emit("submit")}}},i=(e("qZzI"),e("KHd+")),r=Object(i.a)(n,function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"common-page-header"},[a("el-page-header",{attrs:{content:this.title},on:{back:this.goBack}}),this._v(" "),a("div",{staticClass:"options"},[this._t("options")],2)],1)},[],!1,null,"05bf5119",null);r.options.__file="index.vue";a.a=r.exports},F5HS:function(t,a,e){"use strict";e.r(a);var n=e("QbLZ"),i=e.n(n),r=e("6KLq"),c=e("iJd5"),o={components:{ComHeader:e("A0kp").a},data:function(){return{CHARGE_PORT_STATUS_ENUM:c.a,loading:!1,listLoading:!1,carType:"1",dtlData:{},searchForm:{},checkAllDevice:!1,statusArr:[{type:"充电桩",prop:"chrpannel_count"},{type:"离线",prop:"chrpannel_offline_count"},{type:"充电端口",prop:"box_count"},{type:"充电中",prop:"chrpannel_online_count"},{type:"空闲",prop:"box_normal_count"},{type:"故障",prop:"box_fault_count"}]}},created:function(){var t=this.$route.query.id;this.queryData(t)},methods:{searchDetail:function(t,a){var e=this,n=this.$route.query.id,c=i()({group_id:n},this.searchForm);t&&t.chrpannel_id&&(c.chrpannel_id=t.chrpannel_id),this.listLoading=!0,Object(r.r)(c).then(function(t){e.listLoading=!1,t.succeed&&(a?e.dtlData.chrpannel_list[a]=t.body[0]:e.dtlData.chrpannel_list=t.body)}).catch(function(){e.listLoading=!1})},toDetail:function(t){this.$router.push("/chargingPilesDetail?id="+t.chrpannel_id+"&dev_id="+t.dev_id)},toggleAllSelection:function(t){this.dtlData.chrpannel_list.forEach(function(a){a.checkItem=t}),this.$forceUpdate()},batchResetHandle:function(){var t=this,a=this.dtlData.chrpannel_list.filter(function(t){return t.checkItem});if(a.length){var e=a.map(function(t){return t.dev_id});this.$confirm("确认重启选中设备?",{type:"warning"}).then(function(){Object(r.e)({dev_id_list:e}).then(function(a){a.succeed&&(t.$message({message:"重启成功",type:"success"}),t.searchDetail(),t.$nextTick(function(){t.dtlData.chrpannel_list.map(function(t){t.checkItem=!1}),t.checkAllDevice=!1}))})})}else this.$message({message:"请选择要重启的设备",type:"warning"})},secondsToHours:function(t){return t?(t/3600).toFixed(2):0},queryData:function(t){var a=this;this.loading=!0,Object(r.h)({id:t}).then(function(t){a.loading=!1;var e=t.data.data||{};e.imgs&&(e.imgs=e.imgs.split(",")),a.dtlData=e}).catch(function(){a.loading=!1})}}},s=(e("543/"),e("KHd+")),l=Object(s.a)(o,function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"chargingStationDetail-wrap"},[e("ComHeader",{attrs:{title:"充电站详情"}}),t._v(" "),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"chargingStationDetail"},[e("div",{staticClass:"left-area"},[e("div",{staticClass:"station-info"},[t.dtlData.imgs&&Array.isArray(t.dtlData.imgs)?e("el-image",{staticClass:"img",attrs:{src:t.dtlData.imgs[0],"preview-src-list":t.dtlData.imgs.map(function(t){return t})}}):t._e(),t._v(" "),e("div",{staticClass:"name"},[t._v(t._s(t.dtlData.address))]),t._v(" "),e("div",{staticClass:"city"},[t._v(t._s(t.dtlData.cityname))])],1),t._v(" "),e("div",{staticClass:"car-type-wrap"},[e("div",{class:["item","1"==t.carType&&"active"],on:{click:function(a){t.carType=1}}},[t._v("电瓶车")]),t._v(" "),e("div",{class:["item","disabled"]},[t._v("汽车")])]),t._v(" "),e("div",{staticClass:"device-total-wrap"},[e("div",{staticClass:"item"},[e("div",{staticClass:"value"},[t._v("\n "+t._s(t.dtlData.chrpannel_count)+"\n "),e("span",{staticStyle:{"font-size":"14px"}},[t._v("个")])]),t._v(" "),e("div",{staticClass:"label"},[t._v("充电桩")])]),t._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"value"},[t._v("\n "+t._s(t.dtlData.box_count)+"\n "),e("span",{staticStyle:{"font-size":"14px"}},[t._v("个")])]),t._v(" "),e("div",{staticClass:"label"},[t._v("充电端口")])])]),t._v(" "),e("div",{staticClass:"charge0-statistics-wrap"},[e("div",{staticClass:"wrap"},[e("div",{staticClass:"text"},[t._v("今日充电次数: "+t._s(t.dtlData.order_count||0)+" 次")]),t._v(" "),e("div",{staticClass:"text"},[t._v("今日充电电量: "+t._s(t.dtlData.energy||0)+" kwh")]),t._v(" "),e("div",{staticClass:"text"},[t._v("今日充电时长: "+t._s(t.secondsToHours(t.dtlData.charge_duration))+" 小时")])])])]),t._v(" "),e("div",{staticClass:"right-area"},[e("div",{staticClass:"status-wrap"},t._l(t.statusArr,function(a,n){return e("div",{key:n,staticClass:"item"},[e("div",{staticClass:"status"},[t._v(t._s(a.type))]),t._v(" "),e("div",{staticClass:"num"},[t._v(t._s(t.dtlData[a.prop]||0)+"个")])])})),t._v(" "),e("div",{staticClass:"search-row"},[e("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入充电桩编号",clearable:""},model:{value:t.searchForm.dev_id,callback:function(a){t.$set(t.searchForm,"dev_id",a)},expression:"searchForm.dev_id"}}),t._v(" "),e("el-select",{staticStyle:{margin:"0 10px"},attrs:{placeholder:"请选择状态",clearable:""},model:{value:t.searchForm.status,callback:function(a){t.$set(t.searchForm,"status",a)},expression:"searchForm.status"}},[e("el-option",{attrs:{label:"在线",value:"ONLINE"}}),t._v(" "),e("el-option",{attrs:{label:"离线",value:"OFFLINE"}})],1),t._v(" "),e("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-search"},on:{click:function(a){t.searchDetail()}}},[t._v("搜索")]),t._v(" "),e("el-button",{attrs:{type:"info",plain:"",icon:"el-icon-refresh"},on:{click:function(a){t.searchDetail()}}},[t._v("刷新")])],1),t._v(" "),e("div",{staticClass:"device-wrap"},[e("div",{staticClass:"options"},[e("el-button",{attrs:{type:"primary",plain:""},on:{click:t.batchResetHandle}},[t._v("远程重启")]),t._v(" "),e("el-checkbox",{staticStyle:{"margin-left":"10px"},on:{change:t.toggleAllSelection},model:{value:t.checkAllDevice,callback:function(a){t.checkAllDevice=a},expression:"checkAllDevice"}},[t._v("全选")])],1),t._v(" "),Array.isArray(t.dtlData.chrpannel_list)&&t.dtlData.chrpannel_list.length?[e("div",{staticClass:"device-item-wrap"},t._l(t.dtlData.chrpannel_list,function(a,n){return e("el-card",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:n,staticClass:"device-item"},[e("div",{staticClass:"flex"},[e("el-checkbox",{staticClass:"check",model:{value:a.checkItem,callback:function(e){t.$set(a,"checkItem",e)},expression:"item.checkItem"}},[t._v("\n "+t._s(a.chrpannel_name)+"\n ")]),t._v(" "),e("div",{staticStyle:{"margin-left":"10px"}},["ONLINE"===a.status?e("div",{staticStyle:{color:"#67C23A"}},[t._v("在线")]):t._e(),t._v(" "),"OFFLINE"===a.status?e("div",{staticStyle:{color:"#909399"}},[t._v("离线")]):t._e()]),t._v(" "),e("i",{staticClass:"el-icon-refresh refresh-icon",on:{click:function(e){t.searchDetail(a,n+"")}}})],1),t._v(" "),e("div",{staticClass:"col"},[t._v("编号:\n "),e("el-link",{staticStyle:{color:"#145dff"},on:{click:function(e){t.toDetail(a)}}},[t._v("\n "+t._s(a.dev_id)+"\n ")])],1),t._v(" "),e("div",{staticClass:"col"},[t._v("今日电量: "+t._s(a.energy||0)+" kwh")]),t._v(" "),e("div",{staticClass:"col"},[t._v("今日次数: "+t._s(a.order_count||0)+" 次")]),t._v(" "),e("div",{staticClass:"col"},[t._v("今日时长: "+t._s(t.secondsToHours(a.charge_duration)||0)+" 小时")]),t._v(" "),e("div",{staticClass:"port-container"},t._l(a.box_list,function(a){return e("div",{key:a.box_id,class:["port-item",a.status]},[t._v("\n "+t._s(a.box_sn)+" "+t._s(t.CHARGE_PORT_STATUS_ENUM.obj[a.status])+"\n ")])}))])}))]:e("el-empty",{attrs:{description:"暂无充电桩"}})],2)])])],1)},[],!1,null,"95827b88",null);l.options.__file="chargingStationDetail.vue";a.default=l.exports},Ub7k:function(t,a,e){var n=e("5fXe");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);(0,e("SZ7m").default)("7ccddf9e",n,!0,{})},clrU:function(t,a,e){"use strict";var n=e("4d7F"),i=e.n(n),r=e("vDqi"),c=e.n(r),o=e("XJYT"),s=e("Q2AE"),l=e("X4fA"),d=c.a.create({baseURL:"https://bmsapi.bms16.com/",timeout:15e3});d.interceptors.request.use(function(t){return s.a.getters.token&&(t.headers["X-Token"]=Object(l.b)(),t.params={token:Object(l.a)()}),t},function(t){i.a.reject(t)}),d.interceptors.response.use(function(t){return t},function(t){return Object(o.Message)({message:t.message,type:"error",duration:5e3}),i.a.reject(t)}),a.a=d},iJd5:function(t,a,e){"use strict";e.d(a,"d",function(){return c}),e.d(a,"c",function(){return o}),e.d(a,"a",function(){return s}),e.d(a,"f",function(){return l}),e.d(a,"b",function(){return d}),e.d(a,"e",function(){return p});var n=e("EJiy"),i=e.n(n),r=function(t){var a={},e=[];return t.forEach(function(t){var n=t,r=t,c=t;"object"===(void 0===t?"undefined":i()(t))&&(n=t.v,r=t.t,c=t.e),e.push({value:n,text:r,type:c}),a[n]=r}),{arr:e,obj:a}},c=10,o=r([{t:"计时",v:"1"},{t:"计量",v:"2"},{t:"按功率",v:"3"}]),s=r([{t:"空闲",v:"NORMAL"},{t:"禁用",v:"DISABLED"},{t:"充电中",v:"CHARGING"},{t:"故障",v:"FAULT"}]),l=r([{t:"微信支付",v:0},{t:"线下支付",v:1},{t:"支付宝支付",v:2},{t:"钱客多支付",v:3},{t:"富友支付",v:4},{t:"支付宝周期扣款",v:5},{t:"泰隆支付",v:6},{t:"拉卡拉支付",v:7},{t:"paypal支付",v:8},{t:"钱包支付",v:9},{t:"充电座钱包",v:10},{t:"订单逾期续费",v:11},{t:"蚂蚁代扣",v:14},{t:"充电桩钱包",v:15}]),d=r([{t:"全部",v:-1},{t:"未开始",v:0},{t:"开启充电操作中",v:1},{t:"充电中",v:2},{t:"开启充电失败",v:3},{t:"停止充电操作中",v:4},{t:"停止充电失败",v:5},{t:"充电结束",v:6}]),p=r([{t:"待支付",v:"WAIT_PAY",e:"warning"},{t:"已支付",v:"SUCCESS_PAY",e:"success"},{t:"支付失败",v:"FAIL_PAY",e:"danger"},{t:"取消支付",v:"CANCEL_PAY",e:"info"}])},o043:function(t,a,e){var n=e("x9g3");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);(0,e("SZ7m").default)("38e91282",n,!0,{})},qZzI:function(t,a,e){"use strict";var n=e("o043");e.n(n).a},x9g3:function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".common-page-header[data-v-05bf5119] {\n position: sticky;\n top: 0;\n z-index: 998;\n background: #fff;\n padding: 10px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n border-bottom: 1px solid #dcdfe6;\n margin-bottom: 10px;\n}\n.common-page-header .options[data-v-05bf5119] {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n margin-left: auto;\n}\n.common-page-header .el-page-header .el-page-header__left[data-v-05bf5119] {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.common-page-header .el-page-header .el-page-header__content[data-v-05bf5119] {\n font-size: 16px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n",""])}}]);