12 |
- webpackJsonp([7],{"0h5e":function(t,e){},KjOG:function(t,e,a){"use strict";var l=a("Dd8w"),r=a.n(l),n=a("NYxO"),o={data:function(){return{title:"车辆控制",dialogShow:!1}},created:function(){},computed:r()({},Object(n.b)([])),watch:{ApprovedPass:function(t,e){this.dialogZCBF=!1,0==t.Code?(this.$message.success("审批成功"),t.ReturnData.OperateBusinessStatus&&(this.currentFormStatus=2,this.updateStatus()),this.$parent.getCardData()):this.$message.error(t.Message)}},props:{BillNO:{type:String,default:""}},methods:{}},s={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("el-dialog",{attrs:{id:"addUserDialog",title:t.title,width:"600px",visible:t.dialogShow},on:{open:t.openEvent,"update:visible":function(e){t.dialogShow=e}}})},staticRenderFns:[]};var i=a("VU/8")(o,s,!1,function(t){a("0h5e")},"data-v-14ec7d76",null);e.a=i.exports},SGw7:function(t,e){},Z5Ev:function(t,e){},q5kO:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=a("KjOG"),r=a("l/JR"),n={name:"User",data:function(){return{form:{},renwuZT:["空闲","等待开始执行","执行中","暂停中","已结束","已取消","等待上层系统回复"],chongdianZT:["正在充电","未在充电"],baozhaZT:["抱闸","未抱闸"],kongzhiZT:["自动","手动"],zhandainZT:["1","2","3","4","5"],dialogVisible:!1,is_alive:{is_alive:"all"},inputData:{action_state:"",battery:"30%",battery_state:"",break_switch_status:"",control_mode:"",cur_station_no:"",emergency_source:"",execute_order_id:"",nickname:""},tableData:[{id:1,action_state:"空闲",battery:"30%",battery_state:"正在充电",break_switch_status:"抱闸",control_mode:0,cur_station_no:2,emergency_source:"火灾",execute_order_id:"202012545",nickname:"HW-688885"},{id:2,action_state:"执行中",battery:"60%",battery_state:"正在充电",break_switch_status:"未抱闸",control_mode:0,cur_station_no:2,emergency_source:"火灾",execute_order_id:"202012545",nickname:"HW-688885"},{id:3,action_state:"暂停中",battery:"90%",battery_state:"正在充电",break_switch_status:"抱闸",control_mode:1,cur_station_no:1,emergency_source:"火灾",execute_order_id:"202012545",nickname:"HW-688885"}]}},components:{SetCar:l.a},created:function(){},mounted:function(){},methods:{goSetCar:function(){this.$refs.SetCar.dialogShow=!0},getVehicles:function(){Object(r.D)(this.is_alive).then(function(t){console.log(t),alert("dda")}).catch(function(t){})},goTo:function(){this.$router.push("/Alarm/RealTime")},addUser:function(){this.dialogVisible=!0}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"logBox"},[a("div",{staticClass:"border_left_top border"}),t._v(" "),a("div",{staticClass:"border_top border"}),t._v(" "),a("div",{staticClass:"border_right_top border"}),t._v(" "),a("div",{staticClass:"border_left border"}),t._v(" "),a("div",{staticClass:"border_right border"}),t._v(" "),a("div",{staticClass:"border_left_bottom border"}),t._v(" "),a("div",{staticClass:"border_bottom border"}),t._v(" "),a("div",{staticClass:"border_right_bottom border"}),t._v(" "),a("el-button-group",{attrs:{id:"topButton2"}},[a("el-button",{staticClass:"active",attrs:{type:"primary"}},[t._v("车辆管理")])],1),t._v(" "),a("el-button",{staticClass:"addUser",attrs:{type:"primary"},on:{click:t.addUser}},[t._v("新增车辆")]),t._v(" "),a("el-table",{staticStyle:{width:"100%",color:"#2DAFF5"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"date",label:"车辆名",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row;return[a("span",{staticStyle:{"margin-left":"10px"}},[t._v(t._s(l.nickname))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"date",label:"动作任务执行状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row;return[a("span",{staticStyle:{"margin-left":"10px"}},[t._v(t._s(l.action_state))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"车辆剩余电量",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row;return[a("div",{staticClass:"progress_body"},[a("span",{staticClass:"progress_span"},[t._v(t._s(l.battery))]),t._v(" "),a("div",{staticClass:"progress_item",style:{width:l.battery,background:"#20CEA0",height:"100%"}})])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"address",label:"抱闸状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row;return[a("span",{staticStyle:{"margin-left":"10px"}},[t._v(t._s(l.break_switch_status))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"控制模式",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row;return[1==l.control_mode?a("span",{staticStyle:{"margin-left":"10px"}},[t._v("手动")]):t._e(),t._v(" "),0==l.control_mode?a("span",{staticStyle:{"margin-left":"10px"}},[t._v("自动")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"车辆所在站点",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row;return[a("span",{staticStyle:{"margin-left":"10px"}},[t._v(t._s(l.cur_station_no))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"急停触发来源",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row;return[a("span",{staticStyle:{"margin-left":"10px"}},[t._v(t._s(l.emergency_source))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"正在执行订单",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row;return[a("span",{staticStyle:{"margin-left":"10px"}},[t._v(t._s(l.execute_order_id))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"操作",width:"260px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return e.row,[a("el-button",{staticClass:"Colorbutton_blue"},[t._v("详情")]),t._v(" "),a("el-button",{staticClass:"Colorbutton",on:{click:t.goSetCar}},[t._v("设置")]),t._v(" "),a("el-button",{staticClass:"Colorbutton_blue"},[t._v("移除")])]}}])})],1),t._v(" "),a("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"600px",id:"addUserDialog"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{ref:"form",attrs:{model:t.form,"label-position":"right"}},[a("el-form-item",{attrs:{label:"车辆名:","label-width":"120px"}},[a("el-input",{attrs:{placeholder:"请输入车辆名称或编号"},model:{value:t.inputData.nickname,callback:function(e){t.$set(t.inputData,"nickname",e)},expression:"inputData.nickname"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"任务执行状态:","label-width":"120px"}},[a("el-select",{attrs:{placeholder:"请选择任务执行状态"},model:{value:t.inputData.action_state,callback:function(e){t.$set(t.inputData,"action_state",e)},expression:"inputData.action_state"}},t._l(t.renwuZT,function(e,l){return a("el-option",{key:l,attrs:{label:e,value:e}},[t._v(t._s(e))])}),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"车辆剩余电量:","label-width":"120px"}},[a("el-input",{attrs:{placeholder:"百分比%",max:"100",min:"0",autocomplete:"off"},model:{value:t.inputData.battery,callback:function(e){t.$set(t.inputData,"battery",e)},expression:"inputData.battery"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"是否在充电:","label-width":"120px"}},[a("el-select",{attrs:{placeholder:"请选择充电状态"},model:{value:t.inputData.battery_state,callback:function(e){t.$set(t.inputData,"battery_state",e)},expression:"inputData.battery_state"}},t._l(t.chongdianZT,function(e,l){return a("el-option",{key:l,attrs:{label:e,value:e}},[t._v(t._s(e))])}),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"抱闸状态:","label-width":"120px"}},[a("el-select",{attrs:{placeholder:"请选择抱闸状态"},model:{value:t.inputData.break_switch_status,callback:function(e){t.$set(t.inputData,"break_switch_status",e)},expression:"inputData.break_switch_status"}},t._l(t.baozhaZT,function(e,l){return a("el-option",{key:l,attrs:{label:e,value:e}},[t._v(t._s(e))])}),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"控制模式:","label-width":"120px"}},[a("el-select",{attrs:{placeholder:"请选择控制模式"},model:{value:t.inputData.control_mode,callback:function(e){t.$set(t.inputData,"control_mode",e)},expression:"inputData.control_mode"}},t._l(t.kongzhiZT,function(e,l){return a("el-option",{key:l,attrs:{label:e,value:e}},[t._v(t._s(e))])}),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"车辆所在站点:","label-width":"120px"}},[a("el-select",{attrs:{placeholder:"请选择车辆所在站点"},model:{value:t.inputData.cur_station_no,callback:function(e){t.$set(t.inputData,"cur_station_no",e)},expression:"inputData.cur_station_no"}},t._l(t.zhandainZT,function(e,l){return a("el-option",{key:l,attrs:{label:e,value:e}},[t._v(t._s(e))])}),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"急停触发来源:","label-width":"120px"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入急停触发来源"},model:{value:t.inputData.emergency_source,callback:function(e){t.$set(t.inputData,"emergency_source",e)},expression:"inputData.emergency_source"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",id:"sureBtn"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("确 定")])],1)],1),t._v(" "),a("SetCar",{ref:"SetCar"})],1)},staticRenderFns:[]};var s=a("VU/8")(n,o,!1,function(t){a("Z5Ev"),a("SGw7")},"data-v-fa1abcf0",null);e.default=s.exports}});
- //# sourceMappingURL=7.bd27c263fba760384dae.js.map
|