4.d7687cf27df1897845f4.js 26 KB

1
  1. webpackJsonp([4],{"3zER":function(e,t,l){"use strict";var n=l("t4zo"),a=l.n(n),o=l("uXZL"),i=l.n(o),s={name:"ExportExcel",props:{exportTable:{type:Array,required:!0,default:[]},exportTitle:{type:Array,required:!0,default:[]},excelName:{type:String,required:!0,default:"Data"},showExportBtn:{type:Boolean,required:!1,default:!0},btnSize:{type:String,required:!1,default:"default"}},data:function(){return{}},methods:{export_data:function(){var e=this;if(!this.exportTable.length)return this.$message.warning("表格为空,无法导出...");var t=i.a.utils.table_to_book(document.querySelector("#out-table")),l=i.a.write(t,{bookType:"xlsx",bookSST:!0,type:"array"});try{a.a.saveAs(new Blob([l],{type:"application/octet-stream"}),this.$dayjs().format("YYYY-MM-DD")+"-"+this.excelName+".xlsx"),setTimeout(function(){return e.$message.success("表格导出成功...")},1e3)}catch(e){"undefined"!=typeof console&&console.log(e,l)}return l}},mounted:function(){}},c={render:function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"export_tools"},[l("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[l("el-table",{staticStyle:{width:"100%"},attrs:{id:"out-table",data:e.exportTable}},[e._l(e.exportTitle,function(t,n){return[t.isExport?l("el-table-column",{key:n,attrs:{prop:t.prop,label:t.label,align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return[l("span",[e._v(e._s(n.row[t.prop]?n.row[t.prop]:"-"))])]}}],null,!0)}):e._e()]})],2)],1),e._v(" "),e.showExportBtn?l("el-button",{directives:[{name:"debounce",rawName:"v-debounce",value:e.export_data,expression:"export_data"}],attrs:{type:"primary",size:e.btnSize,icon:"el-icon-download"}},[e._v("导出表格")]):e._e()],1)},staticRenderFns:[]};var r=l("VU/8")(s,c,!1,function(e){l("QZk7")},"data-v-68043684",null);t.a=r.exports},QZk7:function(e,t){},pDgV:function(e,t){},vnDm:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l("mvHQ"),a=l.n(n),o=l("//Fk"),i=l.n(o),s=l("fZjL"),c=l.n(s),r=l("ifoU"),_=l.n(r),u=l("gyMJ"),d={name:"Equipment",data:function(){return{bind_dialogVisible:!1,add_edit_dialogVisible:!1,upload_dialogVisible:!1,dialog_title:"",tableData:[],search:"",currpage:1,pageSize:15,currentPage:null,unbind_list:[],bind_equ:{mo:"",mp:"",IMEI:"",idx:""},new_equ:{mo:"",mp:"",tow_num:"",zzj_type:"",mt_ext_loca:"",mt_ext_no:"",zl_1_loca:"",zl_1_no:"",zl_2_loca:"",zl_2_no:"",direct1:"",direct2:"",zl_3_no:""},mo_list:[],tow_num_list:["双机","三机","五机","九机"],mp_list:[],zzj_type_list:["ZDJ9","ZYJ7","S700K","ZD6"],mt_ext_loca_list:["J1","J2","J3","J4","J5","J6","X1","X2","X3"],position:["定位","反位"],direct_list:["定扳反","反扳定"],mp_map:new _.a([["双机",["全部","J1","J2"]],["三机",["全部","J1","J2","J3"]],["五机",["全部","J1","J2","J3","X1","X2"]],["九机",["全部","J1","J2","J3","J4","J5","J6","X1","X2","X3"]]]),station_data:[],station_id:"",body:"",headers:{IMEI:"",token:this.$store.state.token,type:"0001","Content-Type":"application/octet-stream"},excel_name:"设备数据",export_title:[{prop:"up_name",label:"站",isExport:!0},{prop:"mo_name",label:"道岔名称",isExport:!0},{prop:"tow_num",label:"牵引点数量",isExport:!0},{prop:"zzj_type",label:"转辙机类型",isExport:!0},{prop:"mp",label:"牵引点名称",isExport:!0},{prop:"iMEI",label:"设备号",isExport:!0},{prop:"version",label:"设备版本",isExport:!0},{prop:"updatetime",label:"在线时间",isExport:!0},{prop:"idx",label:"通道号",isExport:!0},{prop:"mt_ext_loca",label:"监测分机/位置",isExport:!0},{prop:"mt_ext_no",label:"监测分机/编号",isExport:!0},{prop:"zl_1_loca",label:"1号测力片/位置",isExport:!0},{prop:"zl_1_no",label:"1号测力片/编号",isExport:!0},{prop:"zl_2_loca",label:"2号测力片/位置",isExport:!0},{prop:"zl_2_no",label:"2号测力片/编号",isExport:!0},{prop:"direct1",label:"3号测力片/伸出位",isExport:!0},{prop:"direct2",label:"3号测力片/缩进位",isExport:!0},{prop:"zl_3_no",label:"3号测力片/编号",isExport:!0}],export_table:[],btnSize:"small"}},components:{"export-excel":l("3zER").a},computed:{getSearchInfo:function(){var e=this.search;return e?(this.currpage=1,this.currentPage=1,this.tableData.filter(function(t){return c()(t).some(function(l){if(["up_name","mo_name","mp"].includes(l))return t[l].toLowerCase().indexOf(e.toLowerCase())>-1})})):this.tableData},computed_unbind_idx_list:function(){var e=this;if(this.bind_equ.IMEI){var t=[];return this.unbind_list.find(function(t){return t.IMEI==e.bind_equ.IMEI}).idx.forEach(function(e){t.push({label:e+1,value:e})}),t}}},methods:{handle_upgrade:function(e){this.headers.IMEI=e.iMEI,this.upload_dialogVisible=!0},cancel_upload:function(){this.upload_dialogVisible=!1,this.headers.IMEI="",this.headers.type="0001",this.body="",this.$refs.upload.clearFiles()},confirm_upload:function(){var e=this;return this.body?this.headers.type?void Object(u.d)(this.body,this.headers).then(function(t){return e.cancel_upload(),e.$message.success("上传成功...")}).catch(function(e){console.log(e)}):this.$message.warning("请输入版本号..."):this.$message.warning("请先选择文件...")},handleExceed:function(){return this.$message.warning("只能上传一个文件...")},remove_bin:function(){this.body="",this.headers.type="0001"},handle_bin_change:function(e,t){var l=this;this.uploadImgToBase64(e.raw).then(function(e){l.body=l.convertImgDataToBlob(e.result)})},uploadImgToBase64:function(e){return new i.a(function(t,l){var n=new FileReader;n.readAsDataURL(e),n.onload=function(){t(n)},n.onerror=l})},convertImgDataToBlob:function(e){for(var t=e,l=window.atob(t.split(",")[1]),n=new window.ArrayBuffer(l.length),a=new window.Uint8Array(n),o=0;o<l.length;o++)a[o]=255&l.charCodeAt(o);var i=null;try{i=new Blob([a],{type:"bin"})}catch(e){if(window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,"TypeError"==e.name&&window.BlobBuilder){var s=new window.BlobBuilder;s.append(a.buffer),i=s.getBlob("bin")}else"InvalidStateError"==e.name&&(i=new Blob([n],{type:"bin"}))}return i},get_equip_list:function(){var e=this;Object(u.g)().then(function(t){e.tableData=t,e.export_table=JSON.parse(a()(t)),e.export_table.forEach(function(e){return e.idx+=1})}).catch(function(e){console.log(e)})},handle_click_add:function(){var e=this;this.dialog_title="新建设备",Object(u.k)().then(function(t){e.mo_list=t,e.$nextTick(function(){e.add_edit_dialogVisible=!0})}).catch(function(e){console.log(e)})},station_change:function(e){var t=this;this.new_equ.mo="",console.log(e),Object(u.k)({id:e}).then(function(e){t.mo_list=e,t.filter_mo_list=e,t.add_edit_dialogVisible||(t.filter_mo="")}).catch(function(e){console.log(e)})},handle_bind:function(e){var t=this;this.bind_equ.mo=e.mo,this.bind_equ.mp=e.mp,Object(u.h)().then(function(e){if(200!=e.code)return t.$message.warning("获取未绑定数据失败...");t.unbind_list=e.data,t.bind_dialogVisible=!0}).catch(function(e){console.log(e)})},confirm_bind:function(){var e=this;if(!["IMEI","idx"].every(function(t){return e.bind_equ[t]+""!=""}))return this.$message.warning("请检查必填项...");Object(u.e)(this.bind_equ).then(function(t){return 200!=t.code?e.$message.warning("绑定失败..."):(e.$message.success("绑定成功..."),e.get_equip_list(),e.cancel_bind())}).catch(function(e){console.log(e)})},cancel_bind:function(){var e=this;this.bind_dialogVisible=!1,setTimeout(function(){e.bind_equ={mo:"",mp:"",IMEI:"",idx:""}},300)},handle_unbind:function(e){var t=this;this.$confirm("此操作将解绑该设备, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(u.e)({mo:e.mo,mp:e.mp,IMEI:"",idx:e.idx}).then(function(e){return 200!=e.code?t.$message.warning("解绑失败..."):(t.$message.success("解绑成功..."),t.get_equip_list())}).catch(function(e){console.log(e)})}).catch(function(){})},handle_edit:function(e){var t=this;console.log(e),this.dialog_title="编辑设备",Object(u.k)().then(function(l){t.mo_list=l,t.new_equ=JSON.parse(a()(e)),t.$nextTick(function(){t.add_edit_dialogVisible=!0})}).catch(function(e){console.log(e)})},handle_del:function(e){var t=this;this.$confirm("此操作将删除该设备, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(u.f)({mo:e.mo,mp:e.mp}).then(function(e){return 200!=e.code?t.$message.warning("删除失败..."):(t.$message.success("删除设备成功..."),t.get_equip_list())}).catch(function(e){console.log(e)})}).catch(function(){})},bind_change:function(){this.bind_equ.idx=""},confirm_add_edit:function(){var e=this;if(!["mo","two_num","mp","zl_1_loca","zl_2_loca","direct1","direct2"].every(function(t){return""!=e.new_equ[t]}))return this.$message.warning("请检查必填项...");"编辑设备"==this.dialog_title?Object(u.F)(this.new_equ).then(function(t){return 200!=t.code?e.$message.warning("编辑设备失败..."):(e.$message.success("编辑设备成功..."),e.get_equip_list(),e.cancel_add_edit())}).catch(function(e){console.log(e)}):Object(u.a)(this.new_equ).then(function(t){return 200!=t.code?e.$message.warning("重复设备,新增失败..."):(e.$message.success("新增设备成功..."),e.get_equip_list(),e.cancel_add_edit())}).catch(function(e){console.log(e)})},cancel_add_edit:function(){var e=this;this.add_edit_dialogVisible=!1,this.mo_list=[],setTimeout(function(){e.new_equ={mo:"",mp:"",tow_num:"",zzj_type:"",mt_ext_loca:"",mt_ext_no:"",zl_1_loca:"",zl_1_no:"",zl_2_loca:"",zl_2_no:"",direct1:"",direct2:"",zl_3_no:""},e.station_id=""},500)},tow_num_change:function(e){this.mp_list=[],this.new_equ.mp="",this.mp_list=this.mp_map.get(e)},zl_1_loca_change:function(e){e?"定位"!=e?"反位"!=e||(this.new_equ.zl_2_loca="定位"):this.new_equ.zl_2_loca="反位":this.new_equ.zl_2_loca=""},zl_2_loca_change:function(e){e?"定位"!=e?"反位"!=e||(this.new_equ.zl_1_loca="定位"):this.new_equ.zl_1_loca="反位":this.new_equ.zl_1_loca=""},direct_1_change:function(e){e?"定扳反"!=e?"反扳定"!=e||(this.new_equ.direct2="定扳反"):this.new_equ.direct2="反扳定":this.new_equ.direct2=""},direct_2_change:function(e){e?"定扳反"!=e?"反扳定"!=e||(this.new_equ.direct1="定扳反"):this.new_equ.direct1="反扳定":this.new_equ.direct1=""},handle_current_change:function(e){this.currpage=e},handle_size_change:function(e){this.pageSize=e},get_station_list:function(){var e=this;Object(u.E)().then(function(t){e.station_data=t,e.station_data.unshift({id:"",name:"全部"})}).catch(function(e){console.log(e)})}},mounted:function(){this.get_equip_list(),this.get_station_list()}},p={render:function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"equipment_box"},[l("div",{staticClass:"tool"},[e.$store.state.admin?l("el-button",{attrs:{icon:"el-icon-plus",size:"small",type:"primary"},on:{click:e.handle_click_add}},[e._v("新建设备")]):e._e(),e._v(" "),e.$store.state.admin?l("export-excel",{staticStyle:{margin:"0 8px"},attrs:{exportTable:e.export_table,excelName:e.excel_name,btnSize:e.btnSize,exportTitle:e.export_title}}):e._e(),e._v(" "),l("el-input",{staticStyle:{width:"300px"},attrs:{size:"small",clearable:"",placeholder:"输入站、道岔名称或牵引点名称搜索","prefix-icon":"el-icon-search"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),l("div",{staticClass:"table_box"},[l("el-table",{staticStyle:{width:"100%"},attrs:{data:e.getSearchInfo.slice((e.currpage-1)*e.pageSize,e.currpage*e.pageSize),"max-height":"600px"}},[l("el-table-column",{attrs:{prop:"up_name","show-overflow-tooltip":"",width:"200px",label:"站",align:"center"}}),e._v(" "),l("el-table-column",{attrs:{prop:"mo_name",label:"道岔名称",width:"80",align:"center"}}),e._v(" "),l("el-table-column",{attrs:{prop:"tow_num",label:"牵引点数量",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.tow_num||"-"))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"zzj_type",label:"转辙机类型",width:"110",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.zzj_type||"-"))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"mp",label:"牵引点名称",width:"110",align:"center"}}),e._v(" "),l("el-table-column",{attrs:{prop:"iMEI",label:"设备号","show-overflow-tooltip":"",width:"155",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.iMEI||"-"))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"version",label:"设备版本","show-overflow-tooltip":"",width:"95",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.version||"-"))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"updatetime",label:"在线时间","show-overflow-tooltip":"",width:"195",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.updatetime||"-"))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"idx",label:"通道号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.idx+1))])]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"监测分机",align:"center"}},[l("el-table-column",{attrs:{prop:"mt_ext_loca",label:"位置",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.mt_ext_loca||"-"))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"mt_ext_no",label:"编号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.mt_ext_no||"-"))])]}}])})],1),e._v(" "),l("el-table-column",{attrs:{label:"1号测力片",align:"center"}},[l("el-table-column",{attrs:{prop:"zl_1_loca",label:"位置",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.zl_1_loca||"-"))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"zl_1_no",label:"编号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.zl_1_no||"-"))])]}}])})],1),e._v(" "),l("el-table-column",{attrs:{label:"2号测力片",align:"center"}},[l("el-table-column",{attrs:{prop:"zl_2_loca",label:"位置",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.zl_2_loca||"-"))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"zl_2_no",label:"编号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.zl_2_no||"-"))])]}}])})],1),e._v(" "),l("el-table-column",{attrs:{label:"3号测力片",align:"center"}},[l("el-table-column",{attrs:{prop:"direct1",label:"伸出位",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.direct1||"-"))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"direct2",label:"缩进位",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.direct2||"-"))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"zl_3_no",label:"编号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.zl_3_no||"-"))])]}}])})],1),e._v(" "),e.$store.state.admin?l("el-table-column",{attrs:{fixed:"right",width:"190",label:"操作",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.iMEI?[l("el-link",{attrs:{type:"primary"},on:{click:function(l){return e.handle_unbind(t.row)}}},[e._v("解绑")]),e._v(" "),"system"==e.$store.state.user_name?l("span",[e._v("|")]):e._e(),"system"==e.$store.state.user_name?l("el-link",{attrs:{type:"primary"},on:{click:function(l){return e.handle_upgrade(t.row)}}},[e._v("升级")]):e._e()]:l("el-link",{attrs:{type:"primary"},on:{click:function(l){return e.handle_bind(t.row)}}},[e._v("绑定")]),e._v("\n |"),l("el-link",{attrs:{type:"primary"},on:{click:function(l){return e.handle_edit(t.row)}}},[e._v("编辑")]),e._v(" |"),l("el-link",{attrs:{type:"danger"},on:{click:function(l){return e.handle_del(t.row)}}},[e._v("删除")])]}}],null,!1,3849795846)}):e._e()],1),e._v(" "),l("el-pagination",{attrs:{background:"","page-size":e.pageSize,"page-sizes":[15,50,100],"current-page":e.currentPage,total:e.getSearchInfo.length,layout:"sizes, total, prev, pager, next, jumper"},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"size-change":e.handle_size_change,"current-change":e.handle_current_change}})],1),e._v(" "),l("div",{staticClass:"unbind_dialog"},[l("el-dialog",{attrs:{width:"300px",title:"绑定设备","lock-scroll":!0,"show-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,visible:e.bind_dialogVisible},on:{close:e.cancel_bind,"update:visible":function(t){e.bind_dialogVisible=t}}},[l("span",{staticClass:"label_text"},[l("span",{staticClass:"mark"},[e._v("*")]),e._v("设备号")]),e._v(" "),l("el-select",{staticStyle:{width:"100%"},attrs:{size:"small","popper-append-to-body":!1,placeholder:"请选择设备号"},on:{change:e.bind_change},model:{value:e.bind_equ.IMEI,callback:function(t){e.$set(e.bind_equ,"IMEI",t)},expression:"bind_equ['IMEI']"}},e._l(e.unbind_list,function(e){return l("el-option",{key:e.IMEI,attrs:{label:e.IMEI,value:e.IMEI}})}),1),e._v(" "),l("span",{staticClass:"label_text"},[l("span",{staticClass:"mark"},[e._v("*")]),e._v("通道号")]),e._v(" "),l("el-select",{staticStyle:{width:"100%"},attrs:{size:"small","popper-append-to-body":!1,placeholder:"请选择通道号"},model:{value:e.bind_equ.idx,callback:function(t){e.$set(e.bind_equ,"idx",t)},expression:"bind_equ['idx']"}},e._l(e.computed_unbind_idx_list,function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),l("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v("为必填项\n "),l("el-button",{attrs:{size:"small"},on:{click:e.cancel_bind}},[e._v("取 消")]),e._v(" "),l("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirm_bind}},[e._v("确 定")])],1)],1)],1),e._v(" "),l("div",{staticClass:"add_edit"},[l("el-dialog",{attrs:{width:"450px",top:"8vh",title:e.dialog_title,"lock-scroll":!0,"show-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,visible:e.add_edit_dialogVisible},on:{close:e.cancel_add_edit,"update:visible":function(t){e.add_edit_dialogVisible=t}}},[l("div",{staticClass:"add_dialog"},[l("div",{staticClass:"left"},[l("span",{staticClass:"label_text"},[e._v("选择站点")]),e._v(" "),l("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",clearable:"",filterable:"",disabled:"新建设备"!=e.dialog_title,"popper-append-to-body":!1,placeholder:"请选择站点"},on:{change:e.station_change},model:{value:e.station_id,callback:function(t){e.station_id=t},expression:"station_id"}},e._l(e.station_data,function(e){return l("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1),e._v(" "),l("span",{staticClass:"label_text"},[l("span",{staticClass:"mark"},[e._v("*")]),e._v("道岔名称")]),e._v(" "),l("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",filterable:"",disabled:"新建设备"!=e.dialog_title,"popper-append-to-body":!1,placeholder:"请选择道岔名称"},model:{value:e.new_equ.mo,callback:function(t){e.$set(e.new_equ,"mo",t)},expression:"new_equ.mo"}},e._l(e.mo_list,function(e){return l("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1),e._v(" "),l("span",{staticClass:"label_text"},[l("span",{staticClass:"mark"},[e._v("*")]),e._v("牵引点数量")]),e._v(" "),l("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",filterable:"",disabled:"新建设备"!=e.dialog_title,"popper-append-to-body":!1,placeholder:"请选择牵引点数量"},on:{change:e.tow_num_change},model:{value:e.new_equ.tow_num,callback:function(t){e.$set(e.new_equ,"tow_num",t)},expression:"new_equ.tow_num"}},e._l(e.tow_num_list,function(e){return l("el-option",{key:e,attrs:{label:e,value:e}})}),1),e._v(" "),l("span",{staticClass:"label_text"},[l("span",{staticClass:"mark"},[e._v("*")]),e._v("牵引点名称")]),e._v(" "),l("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",disabled:"新建设备"!=e.dialog_title,"popper-append-to-body":!1,placeholder:"请选择牵引点名称"},model:{value:e.new_equ.mp,callback:function(t){e.$set(e.new_equ,"mp",t)},expression:"new_equ.mp"}},e._l(e.mp_list,function(e){return l("el-option",{key:e,attrs:{label:e,value:e}})}),1),e._v(" "),l("span",{staticClass:"label_text"},[e._v("转辙机类型")]),e._v(" "),l("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",clearable:"","popper-append-to-body":!1,placeholder:"请选择转辙机类型"},model:{value:e.new_equ.zzj_type,callback:function(t){e.$set(e.new_equ,"zzj_type",t)},expression:"new_equ.zzj_type"}},e._l(e.zzj_type_list,function(e){return l("el-option",{key:e,attrs:{label:e,value:e}})}),1),e._v(" "),l("span",{staticClass:"label_text"},[e._v("监测分机位置")]),e._v(" "),l("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",clearable:"","popper-append-to-body":!1,placeholder:"请选择监测分机位置"},model:{value:e.new_equ.mt_ext_loca,callback:function(t){e.$set(e.new_equ,"mt_ext_loca",t)},expression:"new_equ.mt_ext_loca"}},e._l(e.mt_ext_loca_list,function(e){return l("el-option",{key:e,attrs:{label:e,value:e}})}),1),e._v(" "),l("span",{staticClass:"label_text"},[e._v("监测分机编号")]),e._v(" "),l("el-input",{attrs:{size:"small",placeholder:"请输入监测分机编号"},model:{value:e.new_equ.mt_ext_no,callback:function(t){e.$set(e.new_equ,"mt_ext_no",t)},expression:"new_equ.mt_ext_no"}})],1),e._v(" "),l("div",{staticClass:"right"},[l("span",{staticClass:"label_text"},[l("span",{staticClass:"mark"},[e._v("*")]),e._v("1号测力点位置")]),e._v(" "),l("el-select",{staticStyle:{width:"100%"},attrs:{size:"small","popper-append-to-body":!1,placeholder:"请选择1号测力点位置"},on:{change:e.zl_1_loca_change},model:{value:e.new_equ.zl_1_loca,callback:function(t){e.$set(e.new_equ,"zl_1_loca",t)},expression:"new_equ.zl_1_loca"}},e._l(e.position,function(e){return l("el-option",{key:e,attrs:{label:e,value:e}})}),1),e._v(" "),l("span",{staticClass:"label_text"},[e._v("1号测力点编号")]),e._v(" "),l("el-input",{attrs:{size:"small",placeholder:"请输入1号测力点编号"},model:{value:e.new_equ.zl_1_no,callback:function(t){e.$set(e.new_equ,"zl_1_no",t)},expression:"new_equ.zl_1_no"}}),e._v(" "),l("span",{staticClass:"label_text"},[l("span",{staticClass:"mark"},[e._v("*")]),e._v("2号测力点位置")]),e._v(" "),l("el-select",{staticStyle:{width:"100%"},attrs:{size:"small","popper-append-to-body":!1,placeholder:"请选择2号测力点位置"},on:{change:e.zl_2_loca_change},model:{value:e.new_equ.zl_2_loca,callback:function(t){e.$set(e.new_equ,"zl_2_loca",t)},expression:"new_equ.zl_2_loca"}},e._l(e.position,function(e){return l("el-option",{key:e,attrs:{label:e,value:e}})}),1),e._v(" "),l("span",{staticClass:"label_text"},[e._v("2号测力点编号")]),e._v(" "),l("el-input",{attrs:{size:"small",placeholder:"请输入2号测力点编号"},model:{value:e.new_equ.zl_2_no,callback:function(t){e.$set(e.new_equ,"zl_2_no",t)},expression:"new_equ.zl_2_no"}}),e._v(" "),l("span",{staticClass:"label_text"},[l("span",{staticClass:"mark"},[e._v("*")]),e._v("3号测力点伸出位")]),e._v(" "),l("el-select",{staticStyle:{width:"100%"},attrs:{size:"small","popper-append-to-body":!1,placeholder:"请选择3号测力点伸出位"},on:{change:e.direct_1_change},model:{value:e.new_equ.direct1,callback:function(t){e.$set(e.new_equ,"direct1",t)},expression:"new_equ.direct1"}},e._l(e.direct_list,function(e){return l("el-option",{key:e,attrs:{label:e,value:e}})}),1),e._v(" "),l("span",{staticClass:"label_text"},[l("span",{staticClass:"mark"},[e._v("*")]),e._v("3号测力点缩进位")]),e._v(" "),l("el-select",{staticStyle:{width:"100%"},attrs:{size:"small","popper-append-to-body":!1,placeholder:"请选择3号测力点缩进位"},on:{change:e.direct_2_change},model:{value:e.new_equ.direct2,callback:function(t){e.$set(e.new_equ,"direct2",t)},expression:"new_equ.direct2"}},e._l(e.direct_list,function(e){return l("el-option",{key:e,attrs:{label:e,value:e}})}),1),e._v(" "),l("span",{staticClass:"label_text"},[e._v("3号测力点编号")]),e._v(" "),l("el-input",{attrs:{size:"small",placeholder:"请输入2号测力点编号"},model:{value:e.new_equ.zl_3_no,callback:function(t){e.$set(e.new_equ,"zl_3_no",t)},expression:"new_equ.zl_3_no"}})],1)]),e._v(" "),l("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v("为必填项\n "),l("el-button",{attrs:{size:"small"},on:{click:e.cancel_add_edit}},[e._v("取 消")]),e._v(" "),l("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirm_add_edit}},[e._v("确 定")])],1)])],1),e._v(" "),l("div",{staticClass:"upload_bin"},[l("el-dialog",{attrs:{width:"400px",title:"上传配置文件","lock-scroll":!0,"show-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,visible:e.upload_dialogVisible},on:{close:e.cancel_upload,"update:visible":function(t){e.upload_dialogVisible=t}}},[l("el-input",{staticStyle:{"margin-bottom":"5px"},attrs:{placeholder:"请输入文件type",size:"small"},model:{value:e.headers.type,callback:function(t){e.$set(e.headers,"type",t)},expression:"headers.type"}}),e._v(" "),l("el-upload",{ref:"upload",attrs:{drag:"",action:"#",accept:".bin",limit:1,"on-remove":e.remove_bin,"on-exceed":e.handleExceed,"on-change":e.handle_bin_change,"auto-upload":!1}},[l("i",{staticClass:"el-icon-upload"}),e._v(" "),l("div",{staticClass:"el-upload__text"},[e._v("将文件拖到此处,或"),l("em",[e._v("点击上传")])]),e._v(" "),l("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("只可上传一个.bin格式文件")])]),e._v(" "),l("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{size:"small"},on:{click:e.cancel_upload}},[e._v("取 消")]),e._v(" "),l("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirm_upload}},[e._v("上 传")])],1)],1)],1)])},staticRenderFns:[]};var b=l("VU/8")(d,p,!1,function(e){l("pDgV")},"data-v-02180d48",null);t.default=b.exports}});