chunk-584d64c0.9abbc4e1.js 18 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-584d64c0"],{"207f":function(t,e,a){"use strict";a("9fa7")},"2abf":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",{directives:[{name:"loading",rawName:"v-loading",value:t.downloadLoading,expression:"downloadLoading"}],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.phone,callback:function(e){t.$set(t.page.data,"phone",e)},expression:"page.data.phone"}}),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-select",{staticClass:"margin-left input",attrs:{filterable:"",clearable:"",placeholder:"请选择是否认证"},model:{value:t.page.data.status,callback:function(e){t.$set(t.page.data,"status",e)},expression:"page.data.status"}},t._l(t.status_list,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-date-picker",{staticClass:"margin-left",attrs:{type:"datetime",placeholder:"预约时段开始日期","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.page.data.startTime,callback:function(e){t.$set(t.page.data,"startTime",e)},expression:"page.data.startTime"}}),a("el-date-picker",{staticClass:"margin-left",attrs:{type:"datetime",placeholder:"预约时段结束日期","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.page.data.endTime,callback:function(e){t.$set(t.page.data,"endTime",e)},expression:"page.data.endTime"}}),a("el-select",{staticClass:"margin-left input",attrs:{clearable:"",filterable:"",placeholder:"请选择人员类型"},model:{value:t.page.data.type,callback:function(e){t.$set(t.page.data,"type",e)},expression:"page.data.type"}},t._l(t.userType_list,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-date-picker",{staticClass:"margin-left",attrs:{type:"datetime",placeholder:"申请时间开始日期","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.page.data.applyStartTime,callback:function(e){t.$set(t.page.data,"applyStartTime",e)},expression:"page.data.applyStartTime"}}),a("el-date-picker",{staticClass:"margin-left",attrs:{type:"datetime",placeholder:"申请时间结束日期","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.page.data.applyEndTime,callback:function(e){t.$set(t.page.data,"applyEndTime",e)},expression:"page.data.applyEndTime"}}),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(t.indexMethod(e.$index))+" ")]}}])}),a("el-table-column",{attrs:{label:"实名照片",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-image",{staticStyle:{width:"70px",height:"70px"},attrs:{src:e.row.avatar,"preview-src-list":[e.row.avatar]}},[a("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[t._v(" "+t._s(e.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.phone))+" ")]}}])}),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[1===e.row.status?a("el-tag",{attrs:{effect:"plain",type:"success"}},[t._v("已认证")]):2===e.row.status?a("el-tag",{attrs:{effect:"plain",type:"info"}},[t._v("未认证")]):a("el-tag",{attrs:{effect:"plain",type:"info"}},[t._v("未知")])]}}])}),a("el-table-column",{attrs:{label:"人员类型",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.type?a("el-tag",{attrs:{effect:"plain",type:"success"}},[t._v("内宾")]):1===e.row.type?a("el-tag",{attrs:{effect:"plain"}},[t._v("外宾")]):t._e()]}}])}),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.createTime))+" ")]}}])}),a("el-table-column",{attrs:{align:"center",prop:"",label:"操作区",width:"320"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(a){return t.deleteUser(e.row.id)}}},[t._v("删除")]),a("el-button",{attrs:{type:"primary",plain:"",size:"small"},on:{click:function(a){return t.reIssue(e.row.id)}}},[t._v("重新下发")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return t.searchContent(e.row)}}},[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}}),a("detailsDialog",{attrs:{detailsList:t.detailsList,dialogTableVisible:t.dialogTableVisible},on:{dialog:function(e){t.dialogTableVisible=!1}}})],1)},i=[],r=a("ade3"),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-dialog",{attrs:{title:"详情",visible:t.dialogTableVisible,"before-close":t.cancel,width:"1000"},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[a("div",{staticClass:"user"},[a("span",[t._v("姓名:")]),a("span",[t._v(t._s(t.detailsList.name))])]),a("div",{staticClass:"user"},[a("span",[t._v(" 手机号:")]),a("span",[t._v(t._s(t.detailsList.phone))])]),a("el-table",{ref:"table_form",staticClass:"table",attrs:{data:t.detailsList.reservationRecordList,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""}},[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.createTime))+" ")]}}])}),a("el-table-column",{attrs:{label:"预约时段",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.startTime)+"-"+t._s(e.row.endTime)+" ")]}}])}),t.addCustomList.length>0?t._l(t.addCustomList,(function(e,n){return a("el-table-column",{key:n,attrs:{align:"center",label:e.customName},scopedSlots:t._u([{key:"default",fn:function(i){return i.row.contents[n].customNameVal?["图片"===e.customType?a("el-image",{staticStyle:{width:"70px",height:"70px"},attrs:{src:i.row.contents[n].customNameVal,"preview-src-list":[i.row.contents[n].customNameVal]}},[a("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[t._v("暂无照片")])]):a("p",[t._v(t._s(i.row.contents[n].customNameVal))])]:void 0}}],null,!0)})})):t._e()],2)],1)],1)},u=[],l=(a("d3b7"),a("159b"),a("4834")),s={name:"",filters:{matchNull:function(t){return t||"未填写"}},props:{dialogTableVisible:{type:Boolean,default:!1},detailsList:{type:Object}},components:{},data:function(){return{addCustomList:[]}},methods:{cancel:function(){this.$emit("dialog",!1)},getContextById:function(t){var e=this;Object(l["p"])(t).then((function(t){e.addCustomList=t.data}))}},computed:{},watch:{detailsList:function(t){var e=this;t.reservationRecordList.length>0&&t.reservationRecordList.forEach((function(t){!t.contents[0]&&e.addCustomList.length>0&&(t.contents=e.addCustomList)}))}},created:function(){this.getContextById(this.$store.getters.adminId)},mounted:function(){}},c=s,d=(a("9f16"),a("2877")),m=Object(d["a"])(c,o,u,!1,null,"35f53ce8",null),p=m.exports,f=a("42d1"),g=a("333d"),h=a("50e2"),b={components:{Pagination:g["a"],detailsDialog:p},filters:{matchNull:function(t){return t||"未填写"}},data:function(){var t;return{list:null,listLoading:!0,downloadLoading:!1,isOut:this.$store.getters.isOut,page:{data:(t={username:null,name:"",phone:"",idNumber:"",status:null,contents:null,endTime:null,startTime:null,applyEndTime:null},Object(r["a"])(t,"applyEndTime",null),Object(r["a"])(t,"type",null),t),pageNum:1,pageSize:10},total:0,user_list:[],status_list:[{id:1,name:"已认证"},{id:2,name:"未认证"}],userType_list:[{id:0,name:"内宾"},{id:1,name:"外宾"}],dialogTableVisible:!1,detailsList:{}}},created:function(){this.fetchData(),this.getUserListSearch()},methods:{checkRole:f["a"],checkVisitorType:f["b"],fetchData:function(){var t=this;this.listLoading=!0,Object(h["e"])(this.page).then((function(e){t.list=e.data.list,t.total=e.data.total,t.listLoading=!1}))},searchContent:function(t){var e=this;Object(h["l"])(t.id).then((function(t){e.dialogTableVisible=!0,e.detailsList=t.data}))},deleteUser:function(t){var e=this;this.$confirm("确定要删除此人员吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){Object(h["j"])(t).then((function(t){e.fetchData(),e.$message({type:"success",message:"删除成功!"})}))}))},getUserListSearch:function(){var t=this;Object(l["A"])().then((function(e){t.user_list=e.data}))},reIssue:function(t){var e=this;this.$confirm("确定要重新下发此工作人员吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){Object(h["A"])(t).then((function(t){e.fetchData(),e.$message({type:"success",message:"下发成功!"})}))}))},indexMethod:function(t){return(this.page.pageNum-1)*this.page.pageSize+t+1}}},y=b,v=(a("207f"),Object(d["a"])(y,n,i,!1,null,"47e84e78",null));e["default"]=v.exports},"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)},i=[];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 r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function o(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function u(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(t,e,a){var n=u(),i=t-n,l=20,s=0;e="undefined"===typeof e?500:e;var c=function t(){s+=l;var u=Math.easeInOutQuad(s,n,i,e);o(u),s<e?r(t):a&&"function"===typeof a&&a()};c()}var s={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&&l(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&l(0,800)}}},c=s,d=(a("c799"),a("2877")),m=Object(d["a"])(c,n,i,!1,null,"07f7dac8",null);e["a"]=m.exports},4834:function(t,e,a){"use strict";a.d(e,"l",(function(){return i})),a.d(e,"y",(function(){return r})),a.d(e,"A",(function(){return o})),a.d(e,"v",(function(){return u})),a.d(e,"o",(function(){return l})),a.d(e,"m",(function(){return s})),a.d(e,"w",(function(){return c})),a.d(e,"i",(function(){return d})),a.d(e,"h",(function(){return m})),a.d(e,"x",(function(){return p})),a.d(e,"D",(function(){return f})),a.d(e,"N",(function(){return g})),a.d(e,"f",(function(){return h})),a.d(e,"p",(function(){return b})),a.d(e,"q",(function(){return y})),a.d(e,"z",(function(){return v})),a.d(e,"B",(function(){return _})),a.d(e,"C",(function(){return O})),a.d(e,"j",(function(){return w})),a.d(e,"g",(function(){return j})),a.d(e,"b",(function(){return T})),a.d(e,"s",(function(){return k})),a.d(e,"r",(function(){return C})),a.d(e,"P",(function(){return L})),a.d(e,"O",(function(){return S})),a.d(e,"K",(function(){return x})),a.d(e,"H",(function(){return N})),a.d(e,"c",(function(){return A})),a.d(e,"I",(function(){return $})),a.d(e,"J",(function(){return z})),a.d(e,"u",(function(){return I})),a.d(e,"F",(function(){return V})),a.d(e,"a",(function(){return P})),a.d(e,"e",(function(){return E})),a.d(e,"E",(function(){return B})),a.d(e,"G",(function(){return D})),a.d(e,"k",(function(){return M})),a.d(e,"n",(function(){return H})),a.d(e,"d",(function(){return q})),a.d(e,"L",(function(){return F})),a.d(e,"M",(function(){return W})),a.d(e,"t",(function(){return R}));a("99af");var n=a("b775");function i(t){return Object(n["a"])({url:"/admin/auth/getAdminListNew",method:"post",data:t})}function r(t){return Object(n["a"])({url:"/admin/auth/doGetAdmins",method:"post",data:t})}function o(){return Object(n["a"])({url:"/admin/auth/getAdminlist",method:"post"})}function u(){return Object(n["a"])({url:"/admin/areaCode/getProvince",method:"get",params:{}})}function l(t){return Object(n["a"])({url:"/admin/areaCode/getCity",method:"get",params:{areaCodeId:t}})}function s(t){return Object(n["a"])({url:"/admin/areaCode/getArea",method:"get",params:{areaCodeId:t}})}function c(t){return Object(n["a"])({url:"/admin/areaCode/getStreet",method:"get",params:{areaCodeId:t}})}function d(t){return Object(n["a"])({url:"/admin/auth/doEditAdmin",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/admin/auth/doDeleteAdmin",method:"delete",params:{id:t}})}function p(t){return Object(n["a"])({url:"/admin/tag/getList",method:"get",params:{provinceId:t||null}})}function f(t){return Object(n["a"])({url:"/admin/tag/insert",method:"post",data:t})}function g(t){return Object(n["a"])({url:"/admin/tag/update",method:"post",data:t})}function h(t){return Object(n["a"])({url:"/admin/tag/delete",method:"get",params:{tagId:t}})}function b(t){return Object(n["a"])({url:"/admin/face/getContextById",method:"get",params:{adminId:t}})}function y(t){return Object(n["a"])({url:"/admin/face/getContextByWhiteId",method:"get",params:{id:t}})}function v(t){return Object(n["a"])({url:"/admin/face/getUserListFrom",method:"get",params:t})}function _(t){return Object(n["a"])({url:"/admin/face/getVisitorListFrom",method:"get",params:{id:t}})}function O(t){return Object(n["a"])({url:"/admin/face/getWhiteListFrom",method:"get",params:{id:t}})}function w(){return Object(n["a"])({url:"/admin/userWhitelis/doGetWhiteExcel",method:"get",responseType:"blob",params:{}})}function j(t){return Object(n["a"])({url:"/admin/userVisitorList/deleteVisitor",method:"get",params:{id:t}})}function T(t){return Object(n["a"])({url:"/admin/userVisitorList/addSingle",method:"get",params:{id:t}})}function k(t){return Object(n["a"])({url:"/admin/userVisitorList/getDetailPageList",method:"post",data:t})}function C(t){return Object(n["a"])({url:"/admin/userVisitorList/getDetailInfo/".concat(t),method:"get"})}function L(t){return Object(n["a"])({url:"/admin/userWhitelis/userWhitelistExcelOut",method:"post",data:t})}function S(t){return Object(n["a"])({url:"/admin/userVisitorList/userVisitorlistExcelOut",method:"post",data:t})}function x(t){return Object(n["a"])({url:"/admin/auth/saveEnterpriseAccount",method:"post",data:t})}function N(t){return Object(n["a"])({url:"/admin/auth/queryAdminById/".concat(t),method:"get"})}function A(t,e){return Object(n["a"])({url:"/admin/auth/audit/".concat(t,"/").concat(e),method:"post"})}function $(t){return Object(n["a"])({url:"/admin/auth/queryEnterpriseAccount",method:"get"})}function z(t){return Object(n["a"])({url:"/admin/auth/queryPlaceInfos/".concat(t),method:"get"})}function I(t){return Object(n["a"])({url:"/admin/privateArea/getPrivateAreaList",method:"get",params:{adminId:t}})}function V(t){return Object(n["a"])({url:"/admin/privateArea/privateAreaPageList",method:"post",data:t})}function P(t){return Object(n["a"])({url:"/admin/privateArea/addOrUpdatePrivateArea",method:"post",data:t})}function E(t){return Object(n["a"])({url:"admin/privateArea/deletePrivateArea",method:"get",params:{privateAreaId:t}})}function B(t){return Object(n["a"])({url:"/admin/privateArea/privateAreaDevicePageList",method:"post",data:t})}function D(t){return Object(n["a"])({url:"/admin/privateArea/privateAreaWhitelistPageList",method:"post",data:t})}function M(t){return Object(n["a"])({url:"/admin/auth/punch/field-options",method:"get",params:{}})}function H(t){return Object(n["a"])({url:"/autoTaskInfo/getByPage",method:"post",data:t})}function q(t){return Object(n["a"])({url:"/autoTaskInfo/cancelTask",headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"post",params:{taskId:t}})}function F(t){return Object(n["a"])({url:"/systemNotice/edit",method:"post",data:t})}function W(t){return Object(n["a"])({url:"/systemNotice/getNotice",method:"post",data:t})}function R(t){return Object(n["a"])({url:"/admin/auth/getPlaceAreas",method:"get",params:{}})}},"6f7d":function(t,e,a){},"9f16":function(t,e,a){"use strict";a("6f7d")},"9fa7":function(t,e,a){},c49a:function(t,e,a){},c799:function(t,e,a){"use strict";a("c49a")}}]);