1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fee13c0c"],{2679:function(t,e,a){"use strict";a("ec44")},"333d":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[a("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)},l=[];a("a9e3");Math.easeInOutQuad=function(t,e,a,n){return t/=n/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function r(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 u(t,e,a){var n=o(),l=t-n,u=20,c=0;e="undefined"===typeof e?500:e;var s=function t(){c+=u;var o=Math.easeInOutQuad(c,n,l,e);r(o),c<e?i(t):a&&"function"===typeof a&&a()};s()}var c={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&&u(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&u(0,800)}}},s=c,d=(a("c799"),a("2877")),f=Object(d["a"])(s,n,l,!1,null,"07f7dac8",null);e["a"]=f.exports},"718e":function(t,e,a){"use strict";a.d(e,"e",(function(){return l})),a.d(e,"d",(function(){return i})),a.d(e,"a",(function(){return r})),a.d(e,"c",(function(){return o})),a.d(e,"b",(function(){return u}));var n=a("b775");function l(t){return Object(n["a"])({url:"/admin/userCattle/getPageList",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/admin/userCattle/getFaceLogList",method:"post",data:t})}function r(t){return Object(n["a"])({url:"/admin/userCattle/addBlack",method:"get",params:{userCattleId:t}})}function o(t){return Object(n["a"])({url:"/admin/userBlackList/getCattlePageList",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/admin/userBlackList/deleteCattle",method:"get",params:{id:t}})}},"74c5":function(t,e,a){},c49a:function(t,e,a){},c799:function(t,e,a){"use strict";a("c49a")},dfdf:function(t,e,a){"use strict";a("74c5")},ec44:function(t,e,a){},fea3:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.clickDetails?a("detailsList",{attrs:{userCattleId:t.userCattleId},on:{showDetails:function(e){t.clickDetails=!1}}}):a("div",{staticClass:"app-container"},[a("el-input",{staticClass:"margin-left input",attrs:{placeholder:"请输入姓名"},model:{value:t.page.data.name,callback:function(e){t.$set(t.page.data,"name",e)},expression:"page.data.name"}}),a("el-input",{staticClass:"margin-left input",attrs:{placeholder:"请输入证件号"},model:{value:t.page.data.idNumber,callback:function(e){t.$set(t.page.data,"idNumber",e)},expression:"page.data.idNumber"}}),a("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"}}),a("el-button",{staticClass:"margin-left",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.fetchData}},[t._v("搜索")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"table_form",staticClass:"table",attrs:{data:t.list.filter((function(t){return 2===t.status})),"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""}},[a("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))+" ")]}}])}),a("el-table-column",{attrs:{label:"照片",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.row.avatar,"preview-src-list":[t.row.avatar]}})]}}])}),a("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.name))+" ")]}}])}),a("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.idNumber))+" ")]}}])}),a("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.phone))+" ")]}}])}),a("el-table-column",{attrs:{label:"进出天数(10天内)",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("matchNull")(e.row.currentDay))+" ")]}}])}),a("el-table-column",{attrs:{label:"进出次数(10天内)",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("matchNull")(e.row.currentNum))+" ")]}}])}),a("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))+" ")]}}])}),a("el-table-column",{attrs:{align:"center",label:"操作区"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return t.details(e.row.id)}}},[t._v("详情")]),a("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(a){return t.addBlacklist(e.row.id)}}},[t._v("添加到黑名单")])]}}])})],1),a("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)],1)},l=[],i=a("333d"),r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-page-header",{attrs:{content:"详情"},on:{back:t.goBack}}),a("el-date-picker",{staticClass:"margin-left",attrs:{type:"datetime",placeholder:"选择通行开始时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.data.startTime,callback:function(e){t.$set(t.data,"startTime",e)},expression:"data.startTime"}}),a("el-date-picker",{staticClass:"margin-left",attrs:{type:"datetime",placeholder:"选择通行结束时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.data.endTime,callback:function(e){t.$set(t.data,"endTime",e)},expression:"data.endTime"}}),a("el-button",{staticClass:"margin-left",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.fetchData}},[t._v("搜索")]),a("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":""}},[a("el-table-column",{attrs:{label:"序号",align:"center",width:"80px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.$index+1)+" ")]}}])}),a("el-table-column",{attrs:{label:"现场照片",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.row.photo,"preview-src-list":[t.row.photo]}})]}}])}),a("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.name))+" ")]}}])}),a("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.cardid))+" ")]}}])}),a("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))+" ")]}}])}),a("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.faceTime))+" ")]}}])})],1)],1)},o=[],u=(a("a9e3"),a("718e")),c={name:"",props:{userCattleId:{type:Number}},components:{},filters:{matchNull:function(t){return t||"暂无数据"}},data:function(){return{data:{startTime:null,endTime:null,userCattleId:this.userCattleId},list:[]}},methods:{goBack:function(){this.$emit("showDetails",!1)},fetchData:function(){var t=this;this.listLoading=!0,Object(u["d"])(this.data).then((function(e){t.list=e.data,t.listLoading=!1}))}},computed:{},watch:{},created:function(){this.fetchData()},mounted:function(){}},s=c,d=(a("dfdf"),a("2877")),f=Object(d["a"])(s,r,o,!1,null,"efcf6a3c",null),p=f.exports,m={components:{Pagination:i["a"],detailsList:p},filters:{matchNull:function(t){return t||"暂无数据"}},data:function(){return{clickDetails:!1,list:[],listLoading:!0,page:{data:{name:null,phone:null,idNumber:null},pageNum:1,pageSize:10},total:0,userCattleId:null}},created:function(){this.fetchData()},methods:{fetchData:function(){var t=this;this.listLoading=!0,Object(u["e"])(this.page).then((function(e){t.list=e.data.list,t.total=e.data.total,t.listLoading=!1}))},addBlacklist:function(t){var e=this;this.$confirm("确定要添加到黑名单吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){Object(u["a"])(t).then((function(t){e.fetchData(),e.$message({type:"success",message:"添加成功!"})}))}))},details:function(t){this.userCattleId=t,this.clickDetails=!0},indexMethod:function(t){return(this.page.pageNum-1)*this.page.pageSize+t+1}}},g=m,h=(a("2679"),Object(d["a"])(g,n,l,!1,null,"7a40b2e8",null));e["default"]=h.exports}}]);
|