(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5d16dce2"],{6840:function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"dashboard-container"},[e("div",{staticClass:"search-content"},[e("el-input",{staticStyle:{width:"220px"},attrs:{placeholder:"请输入终端编码",clearable:""},model:{value:t.searchData.terminalCode,callback:function(a){t.$set(t.searchData,"terminalCode",a)},expression:"searchData.terminalCode"}}),e("el-input",{staticStyle:{width:"220px"},attrs:{placeholder:"请输入终端名称",clearable:""},model:{value:t.searchData.terminalName,callback:function(a){t.$set(t.searchData,"terminalName",a)},expression:"searchData.terminalName"}}),e("el-select",{staticStyle:{width:"220px"},attrs:{clearable:"",placeholder:"请选择终端状态"},model:{value:t.searchData.status,callback:function(a){t.$set(t.searchData,"status",a)},expression:"searchData.status"}},[e("el-option",{attrs:{label:"在线",value:"1"}}),e("el-option",{attrs:{label:"离线",value:"2"}})],1),e("div",{staticClass:"search-btn"},[e("div",{staticClass:"search",on:{click:function(a){return t.searchBtn()}}},[t._v("查询")]),e("div",{staticClass:"reset",on:{click:function(a){return t.reset()}}},[t._v("重置")])])],1),e("div",{staticClass:"table-content"},[e("div",{staticStyle:{width:"100%",height:"30px"}},[e("div",{staticClass:"btn",staticStyle:{"margin-right":"-3px"},on:{click:function(a){return t.reset()}}},[t._v("刷新")])]),e("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[e("el-table-column",{attrs:{prop:"terminalCodes",label:"终端编码"}}),e("el-table-column",{attrs:{prop:"terminalName",label:"终端名称"}}),e("el-table-column",{attrs:{prop:"status",label:"终端状态"},scopedSlots:t._u([{key:"default",fn:function(a){return["在线"==a.row.status?e("div",{staticClass:"startUsing"},[t._v("在线")]):e("div",{staticClass:"Deactivate"},[t._v("离线")])]}}])}),e("el-table-column",{attrs:{prop:"travelMileFormat",label:"当前所在位置"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" "+t._s(a.row.travelMileFormat)+"-"+t._s(a.row.lineDirName)+" ")]}}])}),e("el-table-column",{attrs:{prop:"currenTime",label:"更新时间"}})],1),e("div",{staticClass:"pagination"},[e("el-pagination",{attrs:{"page-sizes":[10,15,20],"page-size":t.searchData.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)])},i=[],n=e("b7e8"),r={name:"vehicleMonitoring",components:{},data:function(){return{tableData:[],searchData:{pageNum:1,pageSize:10,terminalCode:"",terminalName:"",status:""},total:0}},created:function(){this.$route.params.pageNum&&(this.searchData.status=this.$route.params.status),this.getList(this.searchData)},methods:{getList:function(t){var a=this;Object(n["b"])(t).then((function(t){200==t.code&&(a.tableData=t.data.records,a.total=t.data.total)}))},searchBtn:function(){this.searchData.pageNum=1,this.getList(this.searchData)},handleSizeChange:function(t){this.searchData.pageSize=t,this.getList(this.searchData)},handleCurrentChange:function(t){this.searchData.pageNum=t,this.getList(this.searchData)},reset:function(){this.searchData={pageNum:1,pageSize:10,terminalCode:"",terminalName:"",status:""},this.getList(this.searchData)}}},l=r,c=(e("8873"),e("2877")),o=Object(c["a"])(l,s,i,!1,null,"671cf1e0",null);a["default"]=o.exports},8873:function(t,a,e){"use strict";e("e53b")},b7e8:function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"a",(function(){return n}));var s=e("b775");function i(t){return Object(s["a"])({method:"post",url:"/monitor/vehicleposition/vehiclePositionPage",data:t})}function n(t){return Object(s["a"])({method:"post",url:"/system/monitor/monitorSystemPage",data:t})}},e53b:function(t,a,e){}}]);