chunk-bc5be1d8.ce5db4c9.js 45 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bc5be1d8"],{"0091":function(e,t,r){},"097e":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-card",{scopedSlots:e._u([{key:"header",fn:function(){return[r("content-header")]},proxy:!0}])},[r("div",{staticClass:"filters"},[r("search-form",{ref:"searchForm",attrs:{fields:e.search}}),r("div",{staticClass:"selections"},[r("el-button-group",[r("el-button",{attrs:{type:"primary",size:"medium",round:""},on:{click:e.clickBikesMul}},[e._v("\n 批量操作\n ")]),r("el-button",{attrs:{type:"danger",size:"medium",round:""},on:{click:e.clickBikesSettingMul}},[e._v("\n 批量配置中控\n ")])],1)],1)],1),r("el-table",{ref:"multipleTable",attrs:{data:e.bikes,resource:"bike","row-key":e.row.id},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection","reserve-selection":!0,"column-key":e.row.id,width:"55",prop:"id"}}),r("el-table-column",{attrs:{prop:"id",label:"ID",width:"100"}}),r("el-table-column",{attrs:{prop:"bike_no",label:"车辆编号"}}),r("el-table-column",{attrs:{prop:"box_no",label:"控制器编号"}}),r("el-table-column",{attrs:{label:"投放状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.put_status?r("el-tag",{attrs:{type:"success"}},[e._v("已投放")]):r("el-tag",{attrs:{type:"danger"}},[e._v("未投放")])]}}])}),r("el-table-column",{attrs:{label:"在线状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.is_link?r("el-tag",{attrs:{type:"success"}},[e._v("在线")]):r("el-tag",{attrs:{type:"danger"}},[e._v("离线")])]}}])}),r("el-table-column",{attrs:{label:"故障状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.is_trouble?r("el-tag",{attrs:{type:"danger"}},[e._v("有故障")]):r("el-tag",{attrs:{type:"success"}},[e._v("无故障")])]}}])}),r("el-table-column",{attrs:{label:"剩余电量",width:"150"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("el-progress",{attrs:{percentage:e.row.battery_power}})]}}])}),r("el-table-column",{attrs:{prop:"put_area",label:"投放区域"}}),r("el-table-column",{attrs:{label:"投放时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",[e._v(e._s(t.row.put_time))])]}}])}),r("el-table-column",{attrs:{label:"操作",align:"center",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;t.$index;return[r("el-button",{attrs:{type:"warning",size:"small",plain:""},on:{click:function(t){return e.qcodeClick(a)}}},[e._v("\n 操作\n ")]),r("el-button",{directives:[{name:"show",rawName:"v-show",value:""!==a.box,expression:"row.box !== ''"}],attrs:{type:"danger",size:"small",plain:""},on:{click:function(t){return e.dialogBoxFormShow(a)}}},[e._v("\n 配置中控\n ")]),r("el-button",{directives:[{name:"show",rawName:"v-show",value:""!==a.box,expression:"row.box !== ''"}],attrs:{type:"info",size:"small",plain:""},on:{click:function(t){return e.queryConfig(a)}}},[e._v("\n 查询配置\n ")])]}}])})],1),r("el-dialog",{staticStyle:{"text-align":"center"},attrs:{title:"车辆二维码",visible:e.dialogQrCodeVisible,width:"30%"},on:{"update:visible":function(t){e.dialogQrCodeVisible=t}}},[r("img",{attrs:{src:e.QrCodeUrl,width:"300px",height:"300px",alt:"二维码"}}),r("div",{staticClass:"bigC"},[r("div",{staticClass:"titleDiv"},[e._v("车辆控制:")]),r("div",{staticClass:"detailDiv"},[r("p",[r("el-button",{staticClass:"btnL",attrs:{type:"success"},on:{click:function(t){return e.controBike("bell")}}},[e._v("寻车")]),r("el-button",{staticClass:"btnL",attrs:{type:"warning"},on:{click:function(t){return e.controBike("openLock")}}},[e._v("开锁")]),r("el-button",{staticClass:"btnL",attrs:{type:"info"},on:{click:function(t){return e.controBike("closeLock")}}},[e._v("关锁")]),r("el-button",{staticClass:"btnL",attrs:{type:"danger"},on:{click:function(t){return e.controBike("openBatteryLock")}}},[e._v("开电池锁")]),r("el-button",{staticClass:"btnL",attrs:{type:"danger"},on:{click:function(t){return e.controBike("outLoseElectric")}}},[e._v("车辆失能")]),r("el-button",{staticClass:"btnL",attrs:{type:"success"},on:{click:function(t){return e.controBike("outGetElectric")}}},[e._v("车辆获能")])],1)])]),r("div",{staticClass:"bigC"},[r("div",{staticClass:"titleDiv"},[e._v("状态更新:")]),r("div",{staticClass:"detailDiv"},[r("p",[r("el-button",{staticClass:"btnL",attrs:{type:"primary"},on:{click:function(t){return e.controBike("rebootBox")}}},[e._v("重启中控")]),r("el-button",{staticClass:"btnL",attrs:{type:"primary"},on:{click:function(t){return e.controBike("nowBikeLocation")}}},[e._v("立即定位")]),r("el-button",{staticClass:"btnL",attrs:{type:"primary"},on:{click:function(t){return e.controBike("nowBikeBatteryMSG")}}},[e._v("立即更新电量")]),r("el-button",{staticClass:"btnL",attrs:{type:"primary"},on:{click:function(t){return e.controBike("repair")}}},[e._v("恢复正常")]),r("el-button",{staticClass:"btnL",attrs:{type:"danger"},on:{click:function(t){e.innerVisible=!0}}},[e._v("重置总收益")])],1)])]),r("div",{staticClass:"bigC"},[r("div",{staticClass:"titleDiv"},[e._v("语音控制:")]),r("div",{staticClass:"detailDiv"},[r("p",[r("el-select",{staticStyle:{width:"250px","margin-right":"10px"},attrs:{placeholder:"请选择"},model:{value:e.video,callback:function(t){e.video=t},expression:"video"}},e._l(e.options,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),r("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.controBike("video",e.video)}}},[e._v("发送")])],1)])]),r("el-dialog",{attrs:{width:"30%",title:"重置总收益",visible:e.innerVisible,"append-to-body":""},on:{"update:visible":function(t){e.innerVisible=t}}},[r("lz-form",{ref:"resetForm",staticStyle:{margin:"10px 0"},attrs:{submit:e.resetOnSubmit,model:e.resetForm,"edit-mode":e.resetIsedit,rules:e.resetRules,errors:e.resetErrors,"disable-redirect":!0,"in-dialog":!0,"label-width":"225px"},on:{"update:errors":function(t){e.resetErrors=t}}},[r("el-form-item",{attrs:{required:"",prop:"total_money_time",label:"车辆总收益起始时间"}},[r("el-date-picker",{attrs:{type:"datetime",placeholder:"选择日期时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.resetForm.total_money_time,callback:function(t){e.$set(e.resetForm,"total_money_time",t)},expression:"resetForm.total_money_time"}})],1),r("el-form-item",{attrs:{required:"",prop:"is_reset_total_money",label:"总收益"}},[r("el-radio",{attrs:{label:"1"},model:{value:e.resetForm.is_reset_total_money,callback:function(t){e.$set(e.resetForm,"is_reset_total_money",t)},expression:"resetForm.is_reset_total_money"}},[e._v("清零")]),r("el-radio",{attrs:{label:"2"},model:{value:e.resetForm.is_reset_total_money,callback:function(t){e.$set(e.resetForm,"is_reset_total_money",t)},expression:"resetForm.is_reset_total_money"}},[e._v("保持不变")]),r("el-radio",{attrs:{label:"3"},model:{value:e.resetForm.is_reset_total_money,callback:function(t){e.$set(e.resetForm,"is_reset_total_money",t)},expression:"resetForm.is_reset_total_money"}},[e._v("根据时间自动计算")])],1)],1)],1)],1),r("el-dialog",{attrs:{title:"批量操作",visible:e.dialogFormVisible,width:"40%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[r("div",{staticClass:"cen"},[r("div",[r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("选择范围:")]),r("el-radio",{attrs:{label:"1"},on:{change:e.radioDownloadChange},model:{value:e.radio_download,callback:function(t){e.radio_download=t},expression:"radio_download"}},[e._v("勾选项")]),r("el-radio",{attrs:{label:"2"},on:{change:e.radioDownloadChange},model:{value:e.radio_download,callback:function(t){e.radio_download=t},expression:"radio_download"}},[e._v("本页")])],1),r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("已选数量:")]),r("span",[e._v("已选择"+e._s(e.download_number)+"个")])]),r("div",{staticClass:"bigC"},[r("div",{staticClass:"titleDiv"},[e._v("车辆控制:")]),r("div",{staticClass:"detailDiv"},[r("p",[r("el-button",{staticClass:"btnL",attrs:{type:"success"},on:{click:function(t){return e.submitMul("bell")}}},[e._v("批量寻车")]),r("el-button",{staticClass:"btnL",attrs:{type:"warning"},on:{click:function(t){return e.submitMul("openLock")}}},[e._v("批量开锁")]),r("el-button",{staticClass:"btnL",attrs:{type:"info"},on:{click:function(t){return e.submitMul("closeLock")}}},[e._v("批量关锁")]),r("el-button",{staticClass:"btnL",attrs:{type:"danger"},on:{click:function(t){return e.submitMul("openBatteryLock")}}},[e._v("批量开电池锁")]),r("el-button",{staticClass:"btnL",attrs:{type:"danger"},on:{click:function(t){return e.submitMul("outLoseElectric")}}},[e._v("批量车辆失能")]),r("el-button",{staticClass:"btnL",attrs:{type:"success"},on:{click:function(t){return e.submitMul("outGetElectric")}}},[e._v("批量车辆获能")])],1)])]),r("div",{staticClass:"bigC"},[r("div",{staticClass:"titleDiv"},[e._v("状态更新:")]),r("div",{staticClass:"detailDiv"},[r("p",[r("el-button",{staticClass:"btnL",attrs:{type:"primary"},on:{click:function(t){return e.submitMul("rebootBox")}}},[e._v("批量重启中控")]),r("el-button",{staticClass:"btnL",attrs:{type:"primary"},on:{click:function(t){return e.submitMul("nowBikeLocation")}}},[e._v("批量立即定位")]),r("el-button",{staticClass:"btnL",attrs:{type:"primary"},on:{click:function(t){return e.submitMul("nowBikeBatteryMSG")}}},[e._v("批量立即更新电量")]),r("el-button",{staticClass:"btnL",attrs:{type:"primary"},on:{click:function(t){return e.submitMul("repair")}}},[e._v("批量恢复正常")]),r("el-button",{staticClass:"btnL",attrs:{type:"danger"},on:{click:function(t){e.innerVisibleMul=!0}}},[e._v("重置总收益")])],1)])])])]),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")])],1),r("el-dialog",{attrs:{width:"40%",title:"批量重置总收益",visible:e.innerVisibleMul,"append-to-body":""},on:{"update:visible":function(t){e.innerVisibleMul=t}}},[r("el-card",{staticClass:"cen",staticStyle:{"margin-bottom":"20px"}},[r("div",[r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("选择范围:")]),r("el-radio",{attrs:{label:"1"},on:{change:e.radioDownloadChange},model:{value:e.radio_download,callback:function(t){e.radio_download=t},expression:"radio_download"}},[e._v("勾选项")]),r("el-radio",{attrs:{label:"2"},on:{change:e.radioDownloadChange},model:{value:e.radio_download,callback:function(t){e.radio_download=t},expression:"radio_download"}},[e._v("本页")])],1),r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("已选数量:")]),r("span",[e._v("已选择"+e._s(e.download_number)+"个")])])])]),r("el-card",{staticStyle:{"margin-bottom":"20px"}},[r("lz-form",{ref:"resetForm",staticStyle:{margin:"10px 0"},attrs:{submit:e.resetOnSubmitMul,model:e.resetForm,"edit-mode":e.resetIsedit,rules:e.resetRules,errors:e.resetErrors,"disable-redirect":!0,"in-dialog":!0,"label-width":"225px"},on:{"update:errors":function(t){e.resetErrors=t}}},[r("el-form-item",{attrs:{required:"",prop:"total_money_time",label:"车辆总收益起始时间"}},[r("el-date-picker",{attrs:{type:"datetime",placeholder:"选择日期时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.resetForm.total_money_time,callback:function(t){e.$set(e.resetForm,"total_money_time",t)},expression:"resetForm.total_money_time"}})],1),r("el-form-item",{attrs:{required:"",prop:"is_reset_total_money",label:"总收益"}},[r("el-radio",{attrs:{label:"1"},model:{value:e.resetForm.is_reset_total_money,callback:function(t){e.$set(e.resetForm,"is_reset_total_money",t)},expression:"resetForm.is_reset_total_money"}},[e._v("清零")]),r("el-radio",{attrs:{label:"2"},model:{value:e.resetForm.is_reset_total_money,callback:function(t){e.$set(e.resetForm,"is_reset_total_money",t)},expression:"resetForm.is_reset_total_money"}},[e._v("保持不变")]),r("el-radio",{attrs:{label:"3"},model:{value:e.resetForm.is_reset_total_money,callback:function(t){e.$set(e.resetForm,"is_reset_total_money",t)},expression:"resetForm.is_reset_total_money"}},[e._v("根据时间自动计算")])],1)],1)],1)],1)],1),r("el-dialog",{attrs:{title:"中控配置",visible:e.dialogBoxFormVisible,width:"40%","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogBoxFormVisible=t}}},[r("el-card",{staticStyle:{margin:"20px"}},[r("lz-form",{ref:"boxForm",staticStyle:{margin:"10px 0"},attrs:{submit:e.onSubmitBox,model:e.boxForm,rules:e.boxRules,"edit-mode":e.isedit,errors:e.boxErrors,"disable-redirect":!0,"in-dialog":!0,"label-width":"220px"},on:{"update:errors":function(t){e.boxErrors=t}}},[r("el-form-item",{attrs:{label:"车辆编号"}},[r("el-input",{attrs:{disabled:""},model:{value:e.bike_no,callback:function(t){e.bike_no=t},expression:"bike_no"}})],1),r("el-form-item",{attrs:{required:"",prop:"box_no",label:"中控编号"}},[r("el-input",{attrs:{disabled:""},model:{value:e.boxForm.box_no,callback:function(t){e.$set(e.boxForm,"box_no",t)},expression:"boxForm.box_no"}})],1),r("el-form-item",{attrs:{required:"",prop:"pulse",label:"心跳间隔时间(秒)"}},[r("el-input-number",{attrs:{min:10,max:1200},model:{value:e.boxForm.pulse,callback:function(t){e.$set(e.boxForm,"pulse",t)},expression:"boxForm.pulse"}})],1),r("el-form-item",{attrs:{required:"",prop:"freq",label:"骑行定位包间隔时间(秒)"}},[r("el-input-number",{attrs:{min:10,max:60},model:{value:e.boxForm.freq,callback:function(t){e.$set(e.boxForm,"freq",t)},expression:"boxForm.freq"}})],1),r("el-form-item",{attrs:{required:"",prop:"vibfilterremindt",label:"骑行时静止多少分钟锁车(分)"}},[r("el-input-number",{attrs:{min:10,max:60},model:{value:e.boxForm.vibfilterremindt,callback:function(t){e.$set(e.boxForm,"vibfilterremindt",t)},expression:"boxForm.vibfilterremindt"}})],1),r("el-form-item",{attrs:{required:"",prop:"server",label:"配置服务器地址"}},[r("el-select",{attrs:{filterable:"","allow-create":"","default-first-option":"",placeholder:"请输入配置服务器地址"},model:{value:e.boxForm.server,callback:function(t){e.$set(e.boxForm,"server",t)},expression:"boxForm.server"}},e._l(e.serverOptions,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),r("el-form-item",{attrs:{required:"",prop:"maxecuspeed",label:"速度选择"}},[r("el-select",{attrs:{placeholder:"请选择"},model:{value:e.boxForm.maxecuspeed,callback:function(t){e.$set(e.boxForm,"maxecuspeed",t)},expression:"boxForm.maxecuspeed"}},e._l(e.speedOptions,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1)],1),r("el-card",{directives:[{name:"show",rawName:"v-show",value:e.resShow,expression:"resShow"}],staticStyle:{margin:"20px"}},[r("div",{staticClass:"responses"},[r("div",[r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("心跳间隔时间修改:")]),r("span",[e._v(e._s(e.tables.pulse))])]),r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("骑行定位包间隔时间修改:")]),r("span",[e._v(e._s(e.tables.freq))])]),r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("骑行时静止多少分钟锁车修改:")]),r("span",[e._v(e._s(e.tables.vibfilterremindt))])])]),r("div",[r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("服务器地址修改:")]),r("span",[e._v(e._s(e.tables.server))])]),r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("蓝牙开关修改:")]),r("span",[e._v(e._s(e.tables.blekg))])]),r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("速度修改:")]),r("span",[e._v(e._s(e.tables.maxecuspeed))])])])])])],1),r("el-dialog",{attrs:{title:"批量中控配置",visible:e.dialogMulBoxFormVisible,width:"40%"},on:{"update:visible":function(t){e.dialogMulBoxFormVisible=t}}},[r("el-card",{staticClass:"mulaa"},[r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("选择范围:")]),r("el-radio",{attrs:{label:"1"},on:{change:e.radioDownloadChange},model:{value:e.radio_download,callback:function(t){e.radio_download=t},expression:"radio_download"}},[e._v("勾选项")]),r("el-radio",{attrs:{label:"2"},on:{change:e.radioDownloadChange},model:{value:e.radio_download,callback:function(t){e.radio_download=t},expression:"radio_download"}},[e._v("本页")])],1),r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("已选数量:")]),r("span",[e._v("已选择"+e._s(e.box_ids_num)+"个")])])]),r("el-card",{staticClass:"mulaaa"},[r("lz-form",{ref:"boxFormMul",staticStyle:{margin:"10px 0"},attrs:{submit:e.onSubmitBoxMul,model:e.boxFormMul,rules:e.boxRulesMul,"edit-mode":e.iseditMul,errors:e.boxErrorsMul,"disable-redirect":!0,"in-dialog":!0,"label-width":"220px"},on:{"update:errors":function(t){e.boxErrorsMul=t}}},[r("el-form-item",{attrs:{required:"",prop:"pulse",label:"心跳间隔时间(秒)"}},[r("el-input-number",{attrs:{min:10,max:1200},model:{value:e.boxFormMul.pulse,callback:function(t){e.$set(e.boxFormMul,"pulse",t)},expression:"boxFormMul.pulse"}})],1),r("el-form-item",{attrs:{required:"",prop:"freq",label:"骑行定位包间隔时间(秒)"}},[r("el-input-number",{attrs:{min:10,max:60},model:{value:e.boxFormMul.freq,callback:function(t){e.$set(e.boxFormMul,"freq",t)},expression:"boxFormMul.freq"}})],1),r("el-form-item",{attrs:{required:"",prop:"vibfilterremindt",label:"骑行时静止多少分钟锁车(分)"}},[r("el-input-number",{attrs:{min:10,max:60},model:{value:e.boxFormMul.vibfilterremindt,callback:function(t){e.$set(e.boxFormMul,"vibfilterremindt",t)},expression:"boxFormMul.vibfilterremindt"}})],1),r("el-form-item",{attrs:{required:"",prop:"server",label:"配置服务器地址"}},[r("el-select",{attrs:{filterable:"","allow-create":"","default-first-option":"",placeholder:"请输入配置服务器地址"},model:{value:e.boxFormMul.server,callback:function(t){e.$set(e.boxFormMul,"server",t)},expression:"boxFormMul.server"}},e._l(e.serverOptions,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),r("el-form-item",{attrs:{required:"",prop:"maxecuspeed",label:"速度选择"}},[r("el-select",{attrs:{placeholder:"请选择"},model:{value:e.boxFormMul.maxecuspeed,callback:function(t){e.$set(e.boxFormMul,"maxecuspeed",t)},expression:"boxFormMul.maxecuspeed"}},e._l(e.speedOptions,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1)],1)],1),r("el-dialog",{attrs:{title:"中控配置",visible:e.dialogBoxConfigVisible,width:"40%"},on:{"update:visible":function(t){e.dialogBoxConfigVisible=t}}},[r("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{margin:"20px"}},[r("div",[r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("心跳间隔时间:")]),r("span",[e._v(e._s(e.configs.pulse))])]),r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("骑行定位包间隔时间:")]),r("span",[e._v(e._s(e.configs.freq))])]),r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("服务器地址:")]),r("span",[e._v(e._s(e.configs.server))])]),r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("速度:")]),r("span",[e._v(e._s(e.configs.maxecuspeed)+"(1最慢 7最快)")])]),r("p",{staticClass:"downloadp"},[r("span",{staticClass:"downloadform"},[e._v("软件版本号:")]),r("span",[e._v(e._s(e.configs.softversion))])])])])],1),r("div",{staticClass:"card-footer"},[r("pagination",{attrs:{page:e.page}})],1)],1)},o=[],i=(r("386d"),r("ac6a"),r("5df3"),r("768b")),n=(r("96cf"),r("3b8d")),s=(r("c5f6"),r("81df")),l=r("69d9"),u=r("2bc2"),c=r("b64d"),d=r("c23f"),b=r("873a"),p=r("ada3"),m=r("323a"),f={name:"Index",components:{LzForm:p["a"],Pagination:s["a"],SearchForm:l["a"]},data:function(){return{search:[{type:"super-input",field:"bike_or_box",label:"车牌号 / 控制器号"},{type:"el-select",field:"is_link",label:"是否在线",options:[{id:"",name:"全部"},{value:1,label:"在线"},{value:0,label:"离线"}]},{type:"el-select",field:"put_status",label:"是否投放",options:[{id:"",name:"全部"},{value:1,label:"已投放"},{value:0,label:"未投放"}]},{type:"el-select",field:"put_area_id",label:"投放区域",options:[{id:"",name:"全部"}]},{type:"el-select",field:"battery_power",label:"选择电量",options:[{id:"",name:"全部"},{value:10,label:"小于10%"},{value:50,label:"小于40%"},{value:70,label:"小于60%"},{value:90,label:"小于80%"}]},{field:"bike_no_bottom",label:"车牌号区间下限"},{field:"bike_no_top",label:"车牌号区间上限"},{field:"box_no_bottom",label:"控制器号区间下限"},{field:"box_no_top",label:"控制器号区间上限"},{type:"el-select",field:"merchant_id",label:"商户",options:[{id:"",name:"全部"}]}],searchs:"",bikes:[],page:null,row:{bike_no:"",battery_power:Number,status:"",box_no:"",put_area:"",put_status:"",put_time:"",position:"",total_money:"",box:{}},boxForm:{box_no:"",pulse:30,freq:15,vibfilterremindt:"",server:"",maxecuspeed:7},boxRules:{},boxErrors:{},speedOptions:[{value:1,label:"70%"},{value:2,label:"75%"},{value:3,label:"80%"},{value:4,label:"85%"},{value:5,label:"90%"},{value:6,label:"95%"},{value:7,label:"100%"}],box_id:"",dialogBoxFormVisible:!1,isedit:!0,boxFormMul:{pulse:120,freq:15,vibfilterremindt:30,server:"",maxecuspeed:7,box_ids:[]},boxRulesMul:{},iseditMul:!0,boxErrorsMul:{},box_ids:[],box_ids_num:0,serverOptions:[],bike_no:"",dialogMulBoxFormVisible:!1,resShow:!1,radio_download:"1",download_number:0,multipleSelection:[],multipleSelectionBikeNos:[],dialogQrCodeVisible:!1,dialogDownloadVisible:!1,dialogFormVisible:!1,QrCodeUrl:"",clickBikeId:"",tables:{pulse:"OK",freq:"OK",vibfilterremindt:"OK",server:"OK",blekg:"OK",maxecuspeed:"OK"},dialogBoxConfigVisible:!1,loading:!0,configs:{pulse:"",freq:"",server:"",maxecuspeed:"",softversion:""},innerVisible:!1,innerVisibleMul:!1,resetIsedit:!0,resetRules:{},resetErrors:{},resetForm:{is_reset_total_money:"1",total_money_time:""},options:[],optionsTi:[{value:"01",label:"欢迎使用共享电单车"},{value:"02",label:"没电了,请换一辆车"},{value:"03",label:"骑出运营区,请尽快返回"},{value:"04",label:"报警音,车辆未解锁,请扫描骑行"},{value:"05",label:"HI,主人,我在这辆车"},{value:"06",label:"还车成功,欢迎再次使用共享电单车"},{value:"07",label:"寻车提示音"},{value:"08",label:"临时锁车"},{value:"09",label:"当前不在停车点,请在手机查看停车点"},{value:"0A",label:"电池锁已打开"},{value:"0B",label:"电池锁已关闭"},{value:"0C",label:"距离服务区过远,车辆即将断电"},{value:"0E",label:"已超速,请注意减速慢行"}],optionsWei:[{value:"01",label:"还车成功,请规范停车"},{value:"02",label:"开锁成功"},{value:"03",label:"请文明骑行规范停车"},{value:"04",label:"车辆已断电请回到服务区"},{value:"05",label:"车辆已下线"},{value:"06",label:"非法移动"},{value:"07",label:"临停成功将持续计费"},{value:"08",label:"向着诗和远方我们继续出发吧"},{value:"09",label:"小喵在这里"},{value:"0A",label:"靠近服务区边缘,服务区外将断电"},{value:"0B",label:"换电完成您辛苦了"},{value:"0C",label:"您已出服务区请尽快骑回"},{value:"0D",label:"夜间出行注意安全"},{value:"0E",label:"当前为禁停区禁止停车"},{value:"10",label:"小喵生病了试试别的车吧"},{value:"11",label:"电量过低"},{value:"12",label:"主人即将回来试试别的车吧"},{value:"13",label:"小猫被预约了试试别的车吧"},{value:"14",label:"请停止偷窃行为"},{value:"15",label:"您已进入禁停区"},{value:"16",label:"车辆已报警请勿移动"},{value:"17",label:"请停止偷窃行为"},{value:"18",label:"设备已绑定"},{value:"19",label:"小喵摔倒了"}],video:""}},inject:["reload"],mixins:[b["m"]],methods:{resetOnSubmitMul:function(){var e=Object(n["a"])(regeneratorRuntime.mark(function e(){var t,r,a,o,n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t=this.radio_download,r=[],"1"===t?r=this.multipleSelection:"2"===t&&(r=this.bikes.map(function(e){return e.id})),e.next=5,Promise.all([Object(u["l"])({bikeIds:r,type:"reset_total_money",total_money_time:this.resetForm.total_money_time,is_reset_total_money:this.resetForm.is_reset_total_money})]);case 5:a=e.sent,o=Object(i["a"])(a,1),n=o[0].data,n&&this.reload();case 9:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),resetOnSubmit:function(){var e=Object(n["a"])(regeneratorRuntime.mark(function e(){var t,r,a,o;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t=[],t.push(this.clickBikeId),e.next=4,Promise.all([Object(u["l"])({bikeIds:t,type:"reset_total_money",total_money_time:this.resetForm.total_money_time,is_reset_total_money:this.resetForm.is_reset_total_money})]);case 4:r=e.sent,a=Object(i["a"])(r,1),o=a[0].data,o&&this.reload();case 8:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),handleSelectionChange:function(e){var t=this;this.box_ids=[],this.multipleSelection=e.map(function(e){return e.id}),this.multipleSelectionBikeNos=e.map(function(e){return e.bike_no}),e.forEach(function(e){void 0!==e.box.id&&t.box_ids.push(e.box.id)}),this.box_ids_num=this.box_ids.length},radioDownloadChange:function(){var e=this.radio_download;if("1"===e)this.download_number=this.multipleSelectionBikeNos.length,this.box_ids_num=this.box_ids.length;else if("2"===e){var t=[];this.download_number=this.page.to-this.page.from+1,this.bikes.forEach(function(e){void 0!==e.box.id&&t.push(e.box.id)}),this.box_ids_num=t.length}else"3"===e&&(this.download_number=this.page.total)},qcodeClick:function(){var e=Object(n["a"])(regeneratorRuntime.mark(function e(t){var r,a,o;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return this.clickBikeId=t.id,e.next=3,Promise.all([Object(u["a"])({bike_no:t.bike_no})]);case 3:r=e.sent,a=Object(i["a"])(r,1),o=a[0].data,this.dialogQrCodeVisible=!0,this.QrCodeUrl=o,t.box_no.length<10?this.options=this.optionsTi:this.options=this.optionsWei;case 9:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),submitMul:function(){var e=Object(n["a"])(regeneratorRuntime.mark(function e(t){var r,a,o,n,s;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return this.dialogFormVisible=!1,r=this.radio_download,a=[],"1"===r?a=this.multipleSelection:"2"===r&&(a=this.bikes.map(function(e){return e.id})),e.next=6,Promise.all([Object(u["l"])({bikeIds:a,type:t})]);case 6:o=e.sent,n=Object(i["a"])(o,1),s=n[0].data,s&&(this.$message({type:"success",message:"操作成功!"}),this.reload());case 10:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),controBike:function(){var e=Object(n["a"])(regeneratorRuntime.mark(function e(t){var r,a,o,n,s,l,c=arguments;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return r=c.length>1&&void 0!==c[1]?c[1]:"",a=[],a.push(this.clickBikeId),o={bikeIds:a,type:t},""!==r&&(o={bikeIds:a,type:t,command:r}),e.next=7,Promise.all([Object(u["l"])(o)]);case 7:n=e.sent,s=Object(i["a"])(n,1),l=s[0].data,l&&this.$message({type:"success",message:"操作成功!"});case 11:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),clickBikesMul:function(){this.download_number=this.multipleSelectionBikeNos.length,this.dialogFormVisible=!0},clickBikesSettingMul:function(){this.download_number=this.multipleSelectionBikeNos.length,this.dialogMulBoxFormVisible=!0;var e=this.radio_download,t=[];"1"===e?t=this.box_ids:"2"===e&&this.bikes.forEach(function(e){void 0!==e.box.id&&t.push(e.box.id)}),this.box_ids_num=t.length},dialogBoxFormShow:function(e){this.row.box=e.box,this.box_id=this.row.box.id,this.boxForm.box_no=this.row.box.box_no,this.boxForm.pulse=this.row.box.pulse,this.boxForm.freq=this.row.box.freq,this.boxForm.vibfilterremindt=this.row.box.vibfilterremindt,this.boxForm.server=this.row.box.server,this.boxForm.maxecuspeed=this.row.box.maxecuspeed,this.bike_no=e.bike_no,this.dialogBoxFormVisible=!0},onSubmitBox:function(){var e=Object(n["a"])(regeneratorRuntime.mark(function e(){var t,r,a,o;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([Object(d["f"])(this.box_id,this.boxForm)]);case 2:t=e.sent,r=Object(i["a"])(t,1),a=r[0].data,o=JSON.parse(a),this.tables.pulse=o.PULSE,this.tables.freq=o.FREQ,this.tables.vibfilterremindt=o.VIBFILTERREMINDT,this.tables.server=o.SERVER,this.tables.blekg=o.BLEKG,this.tables.maxecuspeed=o.MAXECUSPEED,this.resShow=!0;case 13:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),handleClose:function(){this.reload()},onSubmitBoxMul:function(){var e=Object(n["a"])(regeneratorRuntime.mark(function e(){var t,r,a,o;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.radio_download,r=[],"1"===t?r=this.box_ids:"2"===t&&this.bikes.forEach(function(e){void 0!==e.box.id&&r.push(e.box.id)}),0===r.length){e.next=11;break}return this.boxFormMul.box_ids=r,e.next=7,Promise.all([Object(d["g"])(this.boxFormMul)]);case 7:a=e.sent,o=Object(i["a"])(a,1),o[0].data,this.reload();case 11:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),queryConfig:function(){var e=Object(n["a"])(regeneratorRuntime.mark(function e(t){var r,a,o,n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return r=t.box_no,this.dialogBoxConfigVisible=!0,this.loading=!0,e.next=5,Promise.all([Object(d["c"])({box_no:r})]);case 5:a=e.sent,o=Object(i["a"])(a,1),n=o[0].data,this.configs.pulse=n.PULSE,this.configs.freq=n.FREQ,this.configs.server=n.SERVER,this.configs.maxecuspeed=n.MAXECUSPEED,this.configs.softversion=n.SOFTVERSION,this.loading=!1;case 14:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()},created:function(){var e=Object(n["a"])(regeneratorRuntime.mark(function e(){var t,r,a,o,n,s,l;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([Object(c["b"])({all:1}),Object(d["d"])()]);case 2:if(t=e.sent,r=Object(i["a"])(t,2),a=r[0].data,o=r[1].data,this.search[3].options.push.apply(this.search[3].options,a),this.serverOptions=o,"administrator"!==this.$store.state.users.user.roles[0]){e.next=17;break}return e.next=11,Promise.all([Object(m["c"])({all:1})]);case 11:n=e.sent,s=Object(i["a"])(n,1),l=s[0].data,this.search[9].options.push.apply(this.search[9].options,l.data),e.next=18;break;case 17:this.search.splice(9,1);case 18:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),watch:{$route:{handler:function(){var e=Object(n["a"])(regeneratorRuntime.mark(function e(t){var r,a,o,i;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.autoPageSize(60,t);case 2:return e.next=4,Object(u["g"])(t.query);case 4:r=e.sent,a=r.data,o=a.data,i=a.meta,this.bikes=o,this.page=i;case 10:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),immediate:!0}}},h=f,v=(r("ea31"),r("2877")),_=Object(v["a"])(h,a,o,!1,null,"65af3ecc",null);t["default"]=_.exports},"0cd2":function(e,t,r){},"0fb6":function(e,t,r){},"323a":function(e,t,r){"use strict";r.d(t,"e",function(){return o}),r.d(t,"f",function(){return i}),r.d(t,"a",function(){return n}),r.d(t,"c",function(){return s}),r.d(t,"d",function(){return l}),r.d(t,"b",function(){return u});var a=r("bf9a");function o(e){return a["b"].post("admin_merchants",e)}function i(e,t){return a["b"].put("admin_merchants/".concat(e),t)}function n(e){return a["b"].get("admin_merchants/".concat(e,"/edit"))}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a["b"].get("admin_merchants",{params:e})}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a["b"].get("admin_merchant_config/get",{params:e})}function u(e){return a["b"].post("admin_merchant_config/edit",e)}},"386d":function(e,t,r){"use strict";var a=r("cb7c"),o=r("83a1"),i=r("5f1b");r("214f")("search",1,function(e,t,r,n){return[function(r){var a=e(this),o=void 0==r?void 0:r[t];return void 0!==o?o.call(r,a):new RegExp(r)[t](String(a))},function(e){var t=n(r,e,this);if(t.done)return t.value;var s=a(e),l=String(this),u=s.lastIndex;o(u,0)||(s.lastIndex=0);var c=i(s,l);return o(s.lastIndex,u)||(s.lastIndex=u),null===c?-1:c.index}]})},"469f":function(e,t,r){r("6c1c"),r("1654"),e.exports=r("7d7b")},"5d73":function(e,t,r){e.exports=r("469f")},"69d9":function(e,t,r){"use strict";r("8e6e"),r("456d"),r("7f7f"),r("ac6a");var a=r("bd86");function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(r,!0).forEach(function(t){Object(a["a"])(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var n,s,l={name:"SearchForm",data:function(){return{form:{},show:!0}},props:{fields:Array,resetCurrentPage:{type:Boolean,default:!0}},created:function(){this.initFormShow()},methods:{onSubmit:function(){var e=this,t=i({},this.$route.query);this.resetCurrentPage&&delete t.page,this.fields.forEach(function(r){var a=r.field,o=e.form[a];"string"===typeof o&&(o=o.trim()),""===o||void 0===o?delete t[a]:(t[a]=o,"time_between"===a&&(t[a]=null==o?o:[o[0],o[1]]))}),this.$router.push({path:this.$route.path,query:t})},dateFormat:function(e){var t=e.getFullYear()+"-"+this.p(e.getMonth()+1)+"-"+this.p(e.getDate()),r=this.p(e.getHours())+":"+this.p(e.getMinutes())+":"+this.p(e.getSeconds());return t+r},p:function(e){return e<10?"0"+e:e},onReset:function(){this.form={},this.onSubmit()},initFormShow:function(){var e=this;this.fields.some(function(t){if(e.$route.query[t.field])return e.show=!0,!0})},setFormValueFromQuery:function(){var e=this,t=this.$route.query;this.fields.forEach(function(r){var a=r.field,o=t[a];e.$set(e.form,a,o)})},toggleShow:function(){this.show=!this.show},getOffsetHeight:function(){var e=document.getElementById("div-searchForm"),t=e.clientWidth||e.offsetWidth;this.formHeight=t}},watch:{$route:{handler:function(){this.setFormValueFromQuery()},immediate:!0}},render:function(e){var t=this;return e("el-collapse-transition",[e("div",{directives:[{name:"show",value:this.show}]},[e("el-form",{attrs:{inline:!0},nativeOn:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(e.preventDefault(),t.onSubmit(e)):null}}},[this.fields.map(function(r){var a;switch(r.type){case"el-select":a=e("el-select",{style:"width:150px;",attrs:{placeholder:r.label,filterable:!0,clearable:!0},model:{value:t.form[r.field],callback:function(e){t.$set(t.form,r.field,e)}}},[r.options.map(function(t){return e("el-option",{key:t.value||t.id,attrs:{label:t.label||t.name,value:String(t.value||t.id)}})})]);break;case"time-between":a=e("el-date-picker",{attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":r.label1,"end-placeholder":r.label2},model:{value:t.form[r.field],callback:function(e){t.$set(t.form,r.field,e)}}});break;case"super-input":a=e("el-input",{attrs:{placeholder:r.label,clearable:!0},model:{value:t.form[r.field],callback:function(e){t.$set(t.form,r.field,e)}}});break;default:a=e("el-input",{attrs:{placeholder:r.label,clearable:!0},model:{value:t.form[r.field],callback:function(e){t.$set(t.form,r.field,e)}}})}return e("el-form-item",{key:r.field},[a])}),e("el-form-item",{class:"actions"},[e("el-button",{attrs:{type:"primary"},on:{click:this.onSubmit}},["查询"]),e("el-button",{on:{click:this.onReset}},["重置"])])])])])}},u=l,c=(r("cafd"),r("2877")),d=Object(c["a"])(u,n,s,!1,null,"6dd66826",null);t["a"]=d.exports},"6cbc":function(e,t,r){"use strict";var a=r("0cd2"),o=r.n(a);o.a},"768b":function(e,t,r){"use strict";var a=r("a745"),o=r.n(a);function i(e){if(o()(e))return e}var n=r("5d73"),s=r.n(n);function l(e,t){var r=[],a=!0,o=!1,i=void 0;try{for(var n,l=s()(e);!(a=(n=l.next()).done);a=!0)if(r.push(n.value),t&&r.length===t)break}catch(u){o=!0,i=u}finally{try{a||null==l["return"]||l["return"]()}finally{if(o)throw i}}return r}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function c(e,t){return i(e)||l(e,t)||u()}r.d(t,"a",function(){return c})},"7d7b":function(e,t,r){var a=r("e4ae"),o=r("7cd6");e.exports=r("584a").getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return a(t.call(e))}},"81df":function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.page?r("el-pagination",e._b({ref:"page",attrs:{"page-sizes":e.pageSizes,"current-page":e.currentPage,"page-size":e.perPage,total:e.page.total,layout:e.layout,background:""},on:{"size-change":e.onSizeChange,"current-change":e.onChange,"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.perPage=t},"update:page-size":function(t){e.perPage=t}}},"el-pagination",e.$attrs,!1)):e._e()},o=[],i={name:"Pagination",data:function(){return{currentPage:1,perPage:10}},props:{page:Object,layout:{type:String,default:"total, prev, pager, next, sizes, jumper"},autoPush:{type:Boolean,default:!0}},computed:{pageSizes:function(){var e=[10,30,50,100,200],t=this.page.per_page;return-1===e.indexOf(t)?[this.page.per_page].concat(e):e}},methods:{push:function(){var e=Object.assign({},this.$route.query,{page:this.currentPage,per_page:this.perPage});this.$router.push({path:this.$route.path,query:e})},onSizeChange:function(e){this.$emit("size-change",e),this.autoPush&&(this.currentPage=1,this.push())},onChange:function(e){this.$emit("current-change",e),this.autoPush&&this.push()}},watch:{page:{handler:function(e){var t=this;e&&(this.currentPage=e.current_page,this.perPage=e.per_page,this.$nextTick(function(){t.$refs.page.internalCurrentPage=e.current_page}))},immediate:!0}}},n=i,s=r("2877"),l=Object(s["a"])(n,a,o,!1,null,"f691fd2e",null);t["a"]=l.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"8a92":function(e,t,r){"use strict";var a=r("0091"),o=r.n(a);o.a},ada3:function(e,t,r){"use strict";r("8e6e"),r("456d");var a=r("bd86"),o=r("75fc"),i=(r("a481"),r("96cf"),r("3b8d")),n=(r("ac6a"),r("28a5"),r("9948")),s=r.n(n),l=r("9b02"),u=r.n(l),c=r("1a38"),d=r("873a"),b=r("a22f");function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(r,!0).forEach(function(t){Object(a["a"])(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var f,h,v={name:"LzForm",components:{FlexSpacer:b["a"]},inject:{view:{from:"view",default:null}},data:function(){return{loading:!1,stay:!1}},props:{getData:Function,submit:Function,errors:Object,form:Object,submitText:{type:String,default:"保存"},labelPosition:String,inDialog:Boolean,createdRedirect:{type:[String,Function],default:function(){var e=this.$route.path.split("/");return"/"+(e[e.length-2]||"")}},updatedRedirect:{type:[String,Function],default:function(){return this.$router.back.bind(this.$router)}},disableRedirect:Boolean,disableStay:Boolean,editMode:Boolean},computed:{realLabelPosition:function(){return this.labelPosition||(this.$store.state.miniWidth?"top":"right")},miniWidth:function(){return this.$store.state.miniWidth}},created:function(){this.copyMethods()},methods:{copyMethods:function(){var e=this;[c["default"].extends.methods,c["default"].methods].forEach(function(t){s()(t,function(t,r){e[r]=function(){t.apply(this.$refs.form,arguments)}})})},_getData:function(){var e=Object(i["a"])(regeneratorRuntime.mark(function e(){var t=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.loading=!0,this.view&&this.$emit("update:form",this.view.formBak),e.prev=2,e.t0=this.getData,!e.t0){e.next=7;break}return e.next=7,this.getData();case 7:this.$nextTick(function(){t.setInitialValues()}),e.next=13;break;case 10:e.prev=10,e.t1=e["catch"](2),Promise.reject(e.t1);case 13:this.loading=!1;case 14:case"end":return e.stop()}},e,this,[[2,10]])}));function t(){return e.apply(this,arguments)}return t}(),onSubmit:function(){var e=Object(i["a"])(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.$emit("update:errors",{}),e.prev=1,e.t0=this.submit,!e.t0){e.next=6;break}return e.next=6,this.submit();case 6:if(this.$message.success(Object(d["h"])(this.editMode?"updated":"created")),!this.stay&&!this.disableRedirect){e.next=9;break}return e.abrupt("return");case 9:t=this.editMode?this.updatedRedirect:this.createdRedirect,"string"===typeof t?this.$router.push(t):"function"===typeof t&&t(),e.next=17;break;case 13:e.prev=13,e.t1=e["catch"](1),this.$emit("update:errors",Object(d["j"])(e.t1.response)),422!==u()(e.t1,"response.status")&&Promise.reject(e.t1);case 17:case"end":return e.stop()}},e,this,[[1,13]])}));function t(){return e.apply(this,arguments)}return t}(),onReset:function(){this.$refs.form.resetFields()}},watch:{$route:{handler:function(){this.$active&&this._getData()},immediate:!0}},render:function(e){var t=this,r=this.$slots.default;Array.isArray(r)&&(r=r.map(function(r){var a=r.componentOptions,i=a.propsData,n=i.helper,s=i.label;if(n){n=n.replace(/\n/g,"<br>");var l=e("template",{slot:"label"},[e("span",[s]),e("el-tooltip",{attrs:{effect:"dark",placement:"top-start","popper-class":"form-helper-popper ".concat(t.miniWidth?"mini-width":"")}},[e("div",{slot:"content",domProps:{innerHTML:n}}),e("i",{class:"ml-1 el-icon-question helper"})])]);return e("el-form-item",{props:a.propsData},[l].concat(Object(o["a"])(a.children)))}return r}));!this.disableStay&&e("el-checkbox",{attrs:{title:"表单提交后,留在此页"},model:{value:t.stay,callback:function(e){t.stay=e}}},["留在此页"]);var a=this.$slots.footer||e("el-form-item",{class:"footer"},[e("loading-action",{attrs:{type:"primary",action:this.onSubmit}},[this.submitText]),e("el-button",{on:{click:this.onReset}},["重置"]),this.$slots.footerAppend,e("flex-spacer")]);return e("el-form",{props:m({model:this.form,errors:this.errors,labelPosition:this.realLabelPosition},this.$attrs),on:m({},this.$listeners),class:{"in-dialog":this.inDialog},style:{width:this.inDialog?"auto":"800px"},directives:[{name:"loading",value:this.loading}],ref:"form"},[r,a])}},_=v,g=(r("6cbc"),r("8a92"),r("2877")),x=Object(g["a"])(_,f,h,!1,null,"3084f0c4",null);t["a"]=x.exports},b64d:function(e,t,r){"use strict";r.d(t,"b",function(){return o}),r.d(t,"c",function(){return i}),r.d(t,"d",function(){return n}),r.d(t,"e",function(){return s}),r.d(t,"a",function(){return l});var a=r("bf9a");function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a["b"].get("area",{params:e})}function i(e){return a["b"].get("area/".concat(e))}function n(e){return a["b"].post("area",e)}function s(e,t){return a["b"].put("area/".concat(e),t)}function l(e){return a["b"].get("area/".concat(e,"/edit"))}},c23f:function(e,t,r){"use strict";r.d(t,"b",function(){return o}),r.d(t,"h",function(){return i}),r.d(t,"f",function(){return n}),r.d(t,"g",function(){return s}),r.d(t,"i",function(){return l}),r.d(t,"d",function(){return u}),r.d(t,"c",function(){return c}),r.d(t,"j",function(){return d}),r.d(t,"a",function(){return b}),r.d(t,"e",function(){return p});var a=r("bf9a");function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a["b"].get("box",{params:e})}function i(e){return a["b"].post("box",e)}function n(e,t){return a["b"].put("box/setting/".concat(e),t)}function s(e){return a["b"].put("box/settingMul",e)}function l(e){return a["b"].get("box/unbindBox/"+e)}function u(){return a["b"].get("box/getServerOptions")}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a["b"].get("box/queryConfig",{params:e})}function d(e,t){return a["b"].put("box/updateRemark/".concat(e),t)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a["b"].get("box/warningLogsIndex",{params:e})}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a["b"].get("box/getWarningType",{params:e})}},cafd:function(e,t,r){"use strict";var a=r("0fb6"),o=r.n(a);o.a},e292:function(e,t,r){},ea31:function(e,t,r){"use strict";var a=r("e292"),o=r.n(a);o.a}}]);
  2. //# sourceMappingURL=chunk-bc5be1d8.ce5db4c9.js.map