(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-feef4472"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function c(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(e,t,n){var i=c(),a=e-i,u=20,d=0;t="undefined"===typeof t?500:t;var s=function e(){d+=u;var c=Math.easeInOutQuad(d,i,a,t);r(c),d<t?o(e):n&&"function"===typeof n&&n()};s()}var d={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&u(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&u(0,800)}}},s=d,l=(n("1cc6"),n("2877")),p=Object(l["a"])(s,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"8d41":function(e,t,n){},aa98:function(e,t,n){"use strict";n.d(t,"o",(function(){return a})),n.d(t,"l",(function(){return o})),n.d(t,"n",(function(){return r})),n.d(t,"m",(function(){return c})),n.d(t,"p",(function(){return u})),n.d(t,"x",(function(){return d})),n.d(t,"g",(function(){return s})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return p})),n.d(t,"C",(function(){return f})),n.d(t,"u",(function(){return h})),n.d(t,"s",(function(){return v})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"w",(function(){return b})),n.d(t,"r",(function(){return y})),n.d(t,"h",(function(){return S})),n.d(t,"j",(function(){return w})),n.d(t,"z",(function(){return O})),n.d(t,"t",(function(){return j})),n.d(t,"k",(function(){return C})),n.d(t,"d",(function(){return z})),n.d(t,"a",(function(){return k})),n.d(t,"v",(function(){return L})),n.d(t,"f",(function(){return x})),n.d(t,"q",(function(){return T})),n.d(t,"c",(function(){return E})),n.d(t,"y",(function(){return _})),n.d(t,"i",(function(){return I}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/device/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function o(e){return Object(i["a"])({url:"/device/deviceChannel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function r(e){return Object(i["a"])({url:"/device/deviceInfo/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,seriesId:e.seriesId,imei:e.imei}})}function c(e){return Object(i["a"])({url:"/device/deviceInfoExport/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(e){return Object(i["a"])({url:"/device/device/importDevice",method:"post",data:e})}function d(e){return Object(i["a"])({url:"/device/device/updateDeviceSeriesBatch",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/device/device/delete",method:"post",data:{ids:e}})}function l(e){return Object(i["a"])({url:"/device/device/uploadDeivceChannelExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i["a"])({url:"/device/device/uploadDeivceExcel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i["a"])({url:"/device/deviceInfoExport/uploadDeviceInfoExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i["a"])({url:"/device/device/saveChannel",method:"post",data:e})}function v(e){return Object(i["a"])({url:"/device/device/queryDeviceChannelSetting",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/device/channel/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort,channelNum:e.channelNum}})}function g(e){return Object(i["a"])({url:"/device/deviceChannel/add",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/device/deviceChannel/edit",method:"post",data:e})}function y(){return Object(i["a"])({url:"/device/deviceChannel/queryDeviceChannelAll",method:"post"})}function S(e){return Object(i["a"])({url:"/device/deviceChannel/delete",method:"post",data:{ids:e}})}function w(e){return Object(i["a"])({url:"/device/deviceChannel/deleteSettingDeviceChannel",method:"post",data:{deviceId:e}})}function O(e){return Object(i["a"])({url:"/device/deviceChannel/updateSettingDeviceChannel",method:"post",data:e})}function j(e){return Object(i["a"])({url:"/device/deviceChannel/queryTotalStatisticsDeviceChannel",method:"post",data:{channelIds:e}})}function C(e){return Object(i["a"])({url:"/device/deviceChannel/deleteStatisticsDeviceChannel",method:"post",data:e})}function z(e){return Object(i["a"])({url:"/device/deviceCarType/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function k(e){return Object(i["a"])({url:"/device/deviceCarType/add",method:"post",data:e})}function L(e){return Object(i["a"])({url:"/device/deviceCarType/edit",method:"post",data:e})}function x(e){return Object(i["a"])({url:"/device/deviceCarType/delete",method:"post",data:{ids:e}})}function T(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function E(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/add",method:"post",data:e})}function _(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/edit",method:"post",data:e})}function I(e){return Object(i["a"])({url:"/device/deviceLinkProtocols/delete",method:"post",data:{ids:e}})}},beec:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{attrs:{type:"primary"},on:{click:e.exportDevice}},[e._v("导入")]),e._v(" "),n("el-button",{on:{click:e.download}},[e._v("下载")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"名字",prop:"name",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"状态",prop:"status",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.status;return[n("span",[e._v(e._s(e._f("statusFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"更新时间",prop:"updateTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.updateTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],o=(n("28a5"),n("333d")),r=n("c7a7"),c=n("ed08"),u=n("aa98"),d=n("5f87"),s={components:{Pagination:o["a"]},directives:{waves:r["a"]},filters:{statusFilter:function(e){return 0===e?"正在导出中":1===e?"成功":-1===e?"失败":void 0},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(c["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{pageSize:10},list:[],total:0,defaultSort:{},multipleSelection:[],device:{imei:""},deviceIds:[],selectSeriesOptions:[]}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{download:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>=2){var e="只能单选";this.$message({message:e,type:"error"})}else{var t=this.multipleSelection[0],n=t.filepath.split("/"),i=n.length-2,a=t.filepath.substring(t.filepath.lastIndexOf("/")+1,t.filepath.length),o="".concat("http://server.cneeds.com.cn:9000")+"/deviceFile/deviceFileDownload/"+n[i]+"/"+a,r=new XMLHttpRequest;r.open("GET",o,!0),r.setRequestHeader("Authorization",Object(d["a"])()),r.responseType="blob",r.onload=function(){if(200===this.status){var e=this.response;if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(e,a);else{var t=document.createElement("a"),n=window.URL?window.URL.createObjectURL(e):window.webkitURL.createObjectURL(e);t.href=n,t.download=a,document.body.appendChild(t),t.click(),window.URL.revokeObjectURL(n)}this.refresh()}},r.send()}else{var c="一定要选择一个,如果没得选择请先导入";this.$message({message:c,type:"error"})}},exportDevice:function(){this.$router.push({path:"/deviceStatistical/deviceInfo/DeviceInfoExportUploadExcel"})},handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(u["m"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},refresh:function(){this.$router.push({path:"/deviceStatistical/deviceInfo/DeviceInfoExport",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},l=s,p=n("2877"),f=Object(p["a"])(l,i,a,!1,null,"18078240",null);t["default"]=f.exports},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=a.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),c=o.querySelector(".waves-ripple");switch(c?c.className="waves-ripple":(c=document.createElement("span"),c.className="waves-ripple",c.style.height=c.style.width=Math.max(r.width,r.height)+"px",o.appendChild(c)),a.type){case"center":c.style.top=r.height/2-c.offsetHeight/2+"px",c.style.left=r.width/2-c.offsetWidth/2+"px";break;default:c.style.top=(n.pageY-r.top-c.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",c.style.left=(n.pageX-r.left-c.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return c.style.backgroundColor=a.color,c.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);