(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["gunList"],{"020b":function(t,e,s){"use strict";s("d25c")},"22bd":function(t,e,s){"use strict";s("a4bf")},7459:function(t,e,s){"use strict";s.d(e,"d",(function(){return n})),s.d(e,"c",(function(){return a})),s.d(e,"b",(function(){return r})),s.d(e,"a",(function(){return c}));var i=s("f52e");function n(){return Object(i["b"])({url:"/rm/reformer-devices/software/scene",method:"get"})}function a(t){return Object(i["b"])({url:"/rm/reformer-devices/charging_device/station/list/by_scene_id?scene_id="+t,method:"GET"})}function r(t){return Object(i["b"])({url:"/rm/reformer-devices/charging_device/gun/list",method:"post",data:t})}function c(t){return Object(i["b"])({url:"/rm/reformer-devices/connector_code/connector/bind",method:"post",data:t})}},"81e5":function(t,e,s){t.exports=s.p+"img/2.8bb7e140.png"},a4bf:function(t,e,s){},a708:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"detail-layout"},[e("van-nav-bar",{attrs:{title:t.title,"left-arrow":"",fixed:""},on:{"click-left":t.back}}),t._l(t.deviceList,(function(s){return e("certain-info",{key:s.id,attrs:{status:s.status,statusesList:t.statusesList,"device-details":s,urlParams:t.urlParams}})}))],2)},n=[],a=s("7459"),r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"certain-info",on:{click:t.toBind}},[e("div",{staticClass:"left"},[e("div",{staticClass:"status"},[e("img",{attrs:{src:t.statusesList[t.status].icon}})]),e("div",{staticClass:"park",style:{color:t.fontColor,border:"1px solid "+t.fontColor}},[t._v(t._s(t.fontText))])]),e("div",{staticClass:"right"},[e("div",{staticClass:"model"},[e("span",[t._v("枪名称：")]),e("span",[t._v(t._s(t.deviceDetails.gun_name))])]),e("div",{staticClass:"model"},[e("span",[t._v("桩编号：")]),e("span",[t._v(t._s(t.deviceDetails.pile_no))])]),e("div",{staticClass:"device-no-content"},[e("p",[t._v("接口类型：")]),e("span",[t._v(t._s(t.deviceDetails.interface_status))])])])])},c=[],o=(s("558b"),{name:"CertainInfo",props:{status:Number,deviceDetails:Object,urlParams:Object,statusesList:Array},data(){return{}},computed:{fontColor(){return this.statusesList[this.status].color},fontText(){return this.statusesList[this.status].label}},methods:{toBind(){this.$router.push({name:"bindGun",query:{gun_name:this.deviceDetails.gun_name,connector_id:this.deviceDetails.connector_id,connector_code:this.deviceDetails.connector_code,pile_no:this.deviceDetails.pile_no,...this.urlParams}})}}}),u=o,d=(s("020b"),s("8619")),l=Object(d["a"])(u,r,c,!1,null,"0f38a76d",null),f=l.exports,v=s("c1c5"),b=s.n(v),m=s("81e5"),_=s.n(m);const p=[{id:1,label:"未绑定",icon:b.a,color:"#a0ecff"},{id:2,label:"已绑定",icon:_.a,color:"#ff9744"}];var h={name:"chargingGunsList",components:{CertainInfo:f},data(){return{title:"充电枪",urlParams:"",statusesList:p,deviceList:[]}},mounted(){this.urlParams=this.$route.query,this.initGuns()},computed:{},watch:{},methods:{back(){this.$router.go(-1)},initGuns(){Object(a["b"])({pile_no:"",scene_id:Number(this.urlParams.scene_id),station_no:this.urlParams.station_no}).then(t=>{const e=t.data||[];this.deviceList=e.map(t=>(t.status=t.connector_code?1:0,t))})}}},g=h,C=(s("22bd"),Object(d["a"])(g,i,n,!1,null,"6bf53f4b",null));e["default"]=C.exports},c1c5:function(t,e,s){t.exports=s.p+"img/1.4c69ebac.png"},d25c:function(t,e,s){}}]);