chunk-117b44c4.86ec8de7.js 10 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-117b44c4"],{"047d":function(t,e,n){},"333d":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[n("el-pagination",t._b({attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},r=[];n("a9e3");Math.easeInOutQuad=function(t,e,n,a){return t/=a/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function u(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function c(t,e,n){var a=o(),r=t-a,c=20,l=0;e="undefined"===typeof e?500:e;var d=function t(){l+=c;var o=Math.easeInOutQuad(l,a,r,e);u(o),l<e?i(t):n&&"function"===typeof n&&n()};d()}var l={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[5,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(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&c(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&c(0,800)}}},d=l,s=(n("c799"),n("2877")),f=Object(s["a"])(d,a,r,!1,null,"07f7dac8",null);e["a"]=f.exports},c450:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-input",{staticClass:"margin-left input",attrs:{placeholder:"请输入姓名"},model:{value:t.page.data.username,callback:function(e){t.$set(t.page.data,"username",e)},expression:"page.data.username"}}),n("el-input",{staticClass:"margin-left input",attrs:{placeholder:"请输入手机号"},model:{value:t.page.data.phone,callback:function(e){t.$set(t.page.data,"phone",e)},expression:"page.data.phone"}}),n("el-select",{staticClass:"margin-left input",attrs:{filterable:"",clearable:"",placeholder:"请选择设备编号"},model:{value:t.page.data.deviceSn,callback:function(e){t.$set(t.page.data,"deviceSn",e)},expression:"page.data.deviceSn"}},t._l(t.machine_list,(function(t){return n("el-option",{key:t.sn,attrs:{label:t.sn,value:t.sn}})})),1),n("el-button",{staticClass:"margin-left",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.fetchData}},[t._v("搜索")]),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"table_form",staticClass:"table",attrs:{data:t.list,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{label:"序号",align:"center",width:"80px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.indexMethod(e.$index))+" ")]}}])}),n("el-table-column",{attrs:{label:"姓名",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("matchNull")(e.row.username))+" ")]}}])}),n("el-table-column",{attrs:{label:"手机号",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("matchNull")(e.row.phone)))])]}}])}),n("el-table-column",{attrs:{label:"设备编号",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("matchNull")(e.row.deviceSn))+" ")]}}])}),n("el-table-column",{attrs:{label:"设备名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("matchNull")(e.row.deviceName))+" ")]}}])}),n("el-table-column",{attrs:{label:"下发类型",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.type?n("el-tag",{attrs:{type:"info"}},[t._v("黑名单")]):2===e.row.type?n("el-tag",{attrs:{type:"success"}},[t._v("员工")]):3===e.row.type?n("el-tag",{attrs:{type:""}},[t._v("访客")]):n("el-tag",[t._v("未知类型")])]}}])}),n("el-table-column",{attrs:{label:"下发状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.status?n("el-tag",{attrs:{type:"info"}},[t._v("下发中")]):2===e.row.status?n("el-tag",{attrs:{type:"success"}},[t._v("成功")]):3===e.row.status?n("el-tag",{attrs:{type:"warning"}},[t._v("失败")]):n("el-tag",[t._v("其它")])]}}])}),n("el-table-column",{attrs:{label:"下发时间",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.createTime)+" ")]}}])}),n("el-table-column",{attrs:{label:"有效期开始时间",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.startTime)+" ")]}}])}),n("el-table-column",{attrs:{label:"有效期结束时间",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.endTime)+" ")]}}])})],1),n("pagination",{attrs:{total:t.total,page:t.page.pageNum,limit:t.page.pageSize},on:{"update:page":function(e){return t.$set(t.page,"pageNum",e)},"update:limit":function(e){return t.$set(t.page,"pageSize",e)},pagination:t.fetchData}})],1)},r=[],i=n("e154"),u=n("333d"),o={components:{Pagination:u["a"]},filters:{matchNull:function(t){return t||"未连接"}},data:function(){return{list:null,listLoading:!0,page:{data:{username:null,phone:null,deviceSn:null},pageNum:1,pageSize:10},total:0,machine_list:[]}},created:function(){this.fetchData(),this.getFaceDeviceList()},methods:{fetchData:function(){var t=this;this.listLoading=!0,Object(i["k"])(this.page).then((function(e){t.list=e.data.list,t.total=e.data.total,t.listLoading=!1}))},getFaceDeviceList:function(){var t=this;Object(i["q"])().then((function(e){t.machine_list=e.data}))},indexMethod:function(t){return(this.page.pageNum-1)*this.page.pageSize+t+1}}},c=o,l=(n("fb20"),n("2877")),d=Object(l["a"])(c,a,r,!1,null,"2497f636",null);e["default"]=d.exports},c49a:function(t,e,n){},c799:function(t,e,n){"use strict";n("c49a")},e154:function(t,e,n){"use strict";n.d(e,"j",(function(){return r})),n.d(e,"i",(function(){return i})),n.d(e,"h",(function(){return u})),n.d(e,"g",(function(){return o})),n.d(e,"m",(function(){return c})),n.d(e,"k",(function(){return l})),n.d(e,"l",(function(){return d})),n.d(e,"n",(function(){return s})),n.d(e,"p",(function(){return f})),n.d(e,"q",(function(){return p})),n.d(e,"w",(function(){return m})),n.d(e,"y",(function(){return g})),n.d(e,"z",(function(){return h})),n.d(e,"r",(function(){return b})),n.d(e,"A",(function(){return v})),n.d(e,"x",(function(){return y})),n.d(e,"o",(function(){return _})),n.d(e,"a",(function(){return w})),n.d(e,"d",(function(){return S})),n.d(e,"s",(function(){return O})),n.d(e,"t",(function(){return j})),n.d(e,"b",(function(){return k})),n.d(e,"e",(function(){return z})),n.d(e,"u",(function(){return T})),n.d(e,"v",(function(){return L})),n.d(e,"c",(function(){return x})),n.d(e,"f",(function(){return C}));var a=n("b775");function r(t){return Object(a["a"])({url:"/admin/face/doGetFaceDevices",method:"post",data:t})}function i(t){return Object(a["a"])({url:"/admin/face/doEditFaceDevices",method:"post",data:t})}function u(t){return Object(a["a"])({url:"/admin/face/doDeleteDevice/"+t,method:"delete"})}function o(t){return Object(a["a"])({url:"/admin/face/doAuthFaceDevice/"+t,method:"get"})}function c(t){return Object(a["a"])({url:"/admin/face/doStopFaceDevice/"+t,method:"get"})}function l(t){return Object(a["a"])({url:"/admin/face/doGetFacePass",method:"post",data:t})}function d(t){return Object(a["a"])({url:"/admin/face/doGetFaceServerLog",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/admin/face/doGetFaceServerLogExcel",method:"post",data:t})}function f(t){return Object(a["a"])({url:"/admin/face/getDetails",method:"post",data:t})}function p(){return Object(a["a"])({url:"/admin/face/getFaceDeviceList",method:"post",data:{}})}function m(t){return Object(a["a"])({url:"/admin/userWhitelis/addSnIssued",method:"get",params:t})}function g(t){return Object(a["a"])({url:"/admin/userWhitelis/addSingle",method:"get",params:{id:t}})}function h(t){return Object(a["a"])({url:"/admin/face/doReboot",method:"get",params:{sn:t}})}function b(){return Object(a["a"])({url:"/admin/face/getLogo",method:"get",params:{}})}function v(t){return Object(a["a"])({url:"/upload/picture",method:"post",headers:{"Content-Type":"multipart/form-data"},data:t})}function y(t){return Object(a["a"])({url:"/admin/face/issuedAll",method:"get",params:t})}function _(t){return Object(a["a"])({url:"/admin/sysInquire/getList",method:"post",data:t})}function w(t){return Object(a["a"])({url:"/admin/sysInquire/addOrUpdate",method:"post",data:t})}function S(t){return Object(a["a"])({url:"/admin/sysInquire/delete",method:"DELETE",params:{id:t}})}function O(t){return Object(a["a"])({url:"/admin/thirdParty/getPageList",method:"post",data:t})}function j(){return Object(a["a"])({url:"/admin/thirdParty/getList",method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{}})}function k(t){return Object(a["a"])({url:"/admin/thirdParty/edit",method:"post",data:t})}function z(t){return Object(a["a"])({url:"/admin/thirdParty/delete",method:"get",params:{thirdPartyId:t}})}function T(t){return Object(a["a"])({url:"/admin/deviceType/getPageList",method:"post",data:t})}function L(){return Object(a["a"])({url:"/admin/deviceType/getList",method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{}})}function x(t){return Object(a["a"])({url:"/admin/deviceType/addOrEdit",method:"post",data:t})}function C(t){return Object(a["a"])({url:"/admin/deviceType/deleteType",method:"get",params:{faceDeviceTypeId:t}})}},fb20:function(t,e,n){"use strict";n("047d")}}]);