(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4f6cfd47"],{"1e18":function(t,e,n){"use strict";n("ba81")},4834:function(t,e,n){"use strict";n.d(e,"l",(function(){return a})),n.d(e,"y",(function(){return i})),n.d(e,"A",(function(){return u})),n.d(e,"v",(function(){return o})),n.d(e,"o",(function(){return d})),n.d(e,"m",(function(){return c})),n.d(e,"w",(function(){return s})),n.d(e,"i",(function(){return l})),n.d(e,"h",(function(){return f})),n.d(e,"x",(function(){return m})),n.d(e,"D",(function(){return p})),n.d(e,"N",(function(){return h})),n.d(e,"f",(function(){return g})),n.d(e,"p",(function(){return b})),n.d(e,"q",(function(){return O})),n.d(e,"z",(function(){return j})),n.d(e,"B",(function(){return v})),n.d(e,"C",(function(){return y})),n.d(e,"j",(function(){return _})),n.d(e,"g",(function(){return w})),n.d(e,"b",(function(){return L})),n.d(e,"s",(function(){return x})),n.d(e,"r",(function(){return I})),n.d(e,"P",(function(){return A})),n.d(e,"O",(function(){return C})),n.d(e,"K",(function(){return k})),n.d(e,"H",(function(){return T})),n.d(e,"c",(function(){return D})),n.d(e,"I",(function(){return P})),n.d(e,"J",(function(){return F})),n.d(e,"u",(function(){return E})),n.d(e,"F",(function(){return V})),n.d(e,"a",(function(){return S})),n.d(e,"e",(function(){return q})),n.d(e,"E",(function(){return W})),n.d(e,"G",(function(){return N})),n.d(e,"k",(function(){return G})),n.d(e,"n",(function(){return $})),n.d(e,"d",(function(){return U})),n.d(e,"L",(function(){return B})),n.d(e,"M",(function(){return J})),n.d(e,"t",(function(){return z}));n("99af");var r=n("b775");function a(t){return Object(r["a"])({url:"/admin/auth/getAdminListNew",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/admin/auth/doGetAdmins",method:"post",data:t})}function u(){return Object(r["a"])({url:"/admin/auth/getAdminlist",method:"post"})}function o(){return Object(r["a"])({url:"/admin/areaCode/getProvince",method:"get",params:{}})}function d(t){return Object(r["a"])({url:"/admin/areaCode/getCity",method:"get",params:{areaCodeId:t}})}function c(t){return Object(r["a"])({url:"/admin/areaCode/getArea",method:"get",params:{areaCodeId:t}})}function s(t){return Object(r["a"])({url:"/admin/areaCode/getStreet",method:"get",params:{areaCodeId:t}})}function l(t){return Object(r["a"])({url:"/admin/auth/doEditAdmin",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/admin/auth/doDeleteAdmin",method:"delete",params:{id:t}})}function m(t){return Object(r["a"])({url:"/admin/tag/getList",method:"get",params:{provinceId:t||null}})}function p(t){return Object(r["a"])({url:"/admin/tag/insert",method:"post",data:t})}function h(t){return Object(r["a"])({url:"/admin/tag/update",method:"post",data:t})}function g(t){return Object(r["a"])({url:"/admin/tag/delete",method:"get",params:{tagId:t}})}function b(t){return Object(r["a"])({url:"/admin/face/getContextById",method:"get",params:{adminId:t}})}function O(t){return Object(r["a"])({url:"/admin/face/getContextByWhiteId",method:"get",params:{id:t}})}function j(t){return Object(r["a"])({url:"/admin/face/getUserListFrom",method:"get",params:t})}function v(t){return Object(r["a"])({url:"/admin/face/getVisitorListFrom",method:"get",params:{id:t}})}function y(t){return Object(r["a"])({url:"/admin/face/getWhiteListFrom",method:"get",params:{id:t}})}function _(){return Object(r["a"])({url:"/admin/userWhitelis/doGetWhiteExcel",method:"get",responseType:"blob",params:{}})}function w(t){return Object(r["a"])({url:"/admin/userVisitorList/deleteVisitor",method:"get",params:{id:t}})}function L(t){return Object(r["a"])({url:"/admin/userVisitorList/addSingle",method:"get",params:{id:t}})}function x(t){return Object(r["a"])({url:"/admin/userVisitorList/getDetailPageList",method:"post",data:t})}function I(t){return Object(r["a"])({url:"/admin/userVisitorList/getDetailInfo/".concat(t),method:"get"})}function A(t){return Object(r["a"])({url:"/admin/userWhitelis/userWhitelistExcelOut",method:"post",data:t})}function C(t){return Object(r["a"])({url:"/admin/userVisitorList/userVisitorlistExcelOut",method:"post",data:t})}function k(t){return Object(r["a"])({url:"/admin/auth/saveEnterpriseAccount",method:"post",data:t})}function T(t){return Object(r["a"])({url:"/admin/auth/queryAdminById/".concat(t),method:"get"})}function D(t,e){return Object(r["a"])({url:"/admin/auth/audit/".concat(t,"/").concat(e),method:"post"})}function P(t){return Object(r["a"])({url:"/admin/auth/queryEnterpriseAccount",method:"get"})}function F(t){return Object(r["a"])({url:"/admin/auth/queryPlaceInfos/".concat(t),method:"get"})}function E(t){return Object(r["a"])({url:"/admin/privateArea/getPrivateAreaList",method:"get",params:{adminId:t}})}function V(t){return Object(r["a"])({url:"/admin/privateArea/privateAreaPageList",method:"post",data:t})}function S(t){return Object(r["a"])({url:"/admin/privateArea/addOrUpdatePrivateArea",method:"post",data:t})}function q(t){return Object(r["a"])({url:"admin/privateArea/deletePrivateArea",method:"get",params:{privateAreaId:t}})}function W(t){return Object(r["a"])({url:"/admin/privateArea/privateAreaDevicePageList",method:"post",data:t})}function N(t){return Object(r["a"])({url:"/admin/privateArea/privateAreaWhitelistPageList",method:"post",data:t})}function G(t){return Object(r["a"])({url:"/admin/auth/punch/field-options",method:"get",params:{}})}function $(t){return Object(r["a"])({url:"/autoTaskInfo/getByPage",method:"post",data:t})}function U(t){return Object(r["a"])({url:"/autoTaskInfo/cancelTask",headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"post",params:{taskId:t}})}function B(t){return Object(r["a"])({url:"/systemNotice/edit",method:"post",data:t})}function J(t){return Object(r["a"])({url:"/systemNotice/getNotice",method:"post",data:t})}function z(t){return Object(r["a"])({url:"/admin/auth/getPlaceAreas",method:"get",params:{}})}},ba81:function(t,e,n){},e154:function(t,e,n){"use strict";n.d(e,"j",(function(){return a})),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 d})),n.d(e,"k",(function(){return c})),n.d(e,"l",(function(){return s})),n.d(e,"n",(function(){return l})),n.d(e,"p",(function(){return f})),n.d(e,"q",(function(){return m})),n.d(e,"w",(function(){return p})),n.d(e,"y",(function(){return h})),n.d(e,"z",(function(){return g})),n.d(e,"r",(function(){return b})),n.d(e,"A",(function(){return O})),n.d(e,"x",(function(){return j})),n.d(e,"o",(function(){return v})),n.d(e,"a",(function(){return y})),n.d(e,"d",(function(){return _})),n.d(e,"s",(function(){return w})),n.d(e,"t",(function(){return L})),n.d(e,"b",(function(){return x})),n.d(e,"e",(function(){return I})),n.d(e,"u",(function(){return A})),n.d(e,"v",(function(){return C})),n.d(e,"c",(function(){return k})),n.d(e,"f",(function(){return T}));var r=n("b775");function a(t){return Object(r["a"])({url:"/admin/face/doGetFaceDevices",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/admin/face/doEditFaceDevices",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/admin/face/doDeleteDevice/"+t,method:"delete"})}function o(t){return Object(r["a"])({url:"/admin/face/doAuthFaceDevice/"+t,method:"get"})}function d(t){return Object(r["a"])({url:"/admin/face/doStopFaceDevice/"+t,method:"get"})}function c(t){return Object(r["a"])({url:"/admin/face/doGetFacePass",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/admin/face/doGetFaceServerLog",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/admin/face/doGetFaceServerLogExcel",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/admin/face/getDetails",method:"post",data:t})}function m(){return Object(r["a"])({url:"/admin/face/getFaceDeviceList",method:"post",data:{}})}function p(t){return Object(r["a"])({url:"/admin/userWhitelis/addSnIssued",method:"get",params:t})}function h(t){return Object(r["a"])({url:"/admin/userWhitelis/addSingle",method:"get",params:{id:t}})}function g(t){return Object(r["a"])({url:"/admin/face/doReboot",method:"get",params:{sn:t}})}function b(){return Object(r["a"])({url:"/admin/face/getLogo",method:"get",params:{}})}function O(t){return Object(r["a"])({url:"/upload/picture",method:"post",headers:{"Content-Type":"multipart/form-data"},data:t})}function j(t){return Object(r["a"])({url:"/admin/face/issuedAll",method:"get",params:t})}function v(t){return Object(r["a"])({url:"/admin/sysInquire/getList",method:"post",data:t})}function y(t){return Object(r["a"])({url:"/admin/sysInquire/addOrUpdate",method:"post",data:t})}function _(t){return Object(r["a"])({url:"/admin/sysInquire/delete",method:"DELETE",params:{id:t}})}function w(t){return Object(r["a"])({url:"/admin/thirdParty/getPageList",method:"post",data:t})}function L(){return Object(r["a"])({url:"/admin/thirdParty/getList",method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{}})}function x(t){return Object(r["a"])({url:"/admin/thirdParty/edit",method:"post",data:t})}function I(t){return Object(r["a"])({url:"/admin/thirdParty/delete",method:"get",params:{thirdPartyId:t}})}function A(t){return Object(r["a"])({url:"/admin/deviceType/getPageList",method:"post",data:t})}function C(){return Object(r["a"])({url:"/admin/deviceType/getList",method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{}})}function k(t){return Object(r["a"])({url:"/admin/deviceType/addOrEdit",method:"post",data:t})}function T(t){return Object(r["a"])({url:"/admin/deviceType/deleteType",method:"get",params:{faceDeviceTypeId:t}})}},f171:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("div",{staticClass:"logo-top"},[t.push_form.url?n("el-image",{staticStyle:{width:"200px",height:"200px"},attrs:{src:t.push_form.url,fit:"contain","preview-src-list":[t.push_form.url]}}):n("div",{staticStyle:{width:"200px",height:"200px",display:"flex","justify-content":"center","align-items":"center",border:"1px solid #909399",color:"#909399"}},[t._v(" 还未上传logo哦~ ")])],1),n("div",{staticClass:"logo-bottom"},[n("el-button",{staticClass:"margin-left",attrs:{type:"primary",icon:"el-icon-thumb"},on:{click:t.handlePushLogo}},[t._v("下发 logo")])],1),n("el-dialog",{attrs:{title:t.dialogTitle[t.dialogType],visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-form",{directives:[{name:"show",rawName:"v-show",value:"push"===t.dialogType,expression:"dialogType === 'push'"}],ref:"user_form",attrs:{model:t.push_form,rules:t.push_rules,"label-width":"120px","label-position":"left"}},[n("el-form-item",{attrs:{label:"设备logo",prop:"url","label-width":"120px"}},[n("div",{staticClass:"upload"},[t.push_form.url?n("el-image",{staticClass:"img",staticStyle:{width:"100px",height:"100px"},attrs:{src:t.push_form.url,fit:"contain"}}):t._e(),t.push_form.url?n("div",{staticClass:"deleteLogo",on:{click:t.deleteImage}},[n("i",{staticClass:"el-icon-close"})]):t._e(),t.push_form.url?t._e():n("a",{staticClass:"file",attrs:{href:"javascript:;"}},[n("i",{staticClass:"el-icon-upload2"}),n("input",{ref:"file",attrs:{type:"file",name:"file"},on:{change:function(e){return t.upload(e)}}})])],1)]),n("el-form-item",{attrs:{label:"下发类型",prop:"type"}},[n("el-radio-group",{on:{change:t.changeType},model:{value:t.push_form.type,callback:function(e){t.$set(t.push_form,"type",e)},expression:"push_form.type"}},[n("el-radio",{attrs:{label:1}},[t._v("全量下发")]),n("el-radio",{attrs:{label:2}},[t._v("账号下发")]),n("el-radio",{attrs:{label:3}},[t._v("单台下发")])],1)],1),n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:2===t.push_form.type,expression:"push_form.type === 2"}],attrs:{label:"下发账号",prop:"sn","label-width":"120px"}},[n("el-form-item",{attrs:{prop:"adminId"}},[n("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请选择账号"},model:{value:t.push_form.adminId,callback:function(e){t.$set(t.push_form,"adminId",e)},expression:"push_form.adminId"}},t._l(t.user_list,(function(t){return n("el-option",{key:t.adminId,attrs:{label:t.username,value:t.adminId}})})),1)],1)],1),n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3===t.push_form.type,expression:"push_form.type === 3"}],attrs:{label:"设备",prop:"sn","label-width":"120px"}},[n("el-select",{staticClass:"margin-left input",attrs:{filterable:"",clearable:"",placeholder:"请选择设备编号"},model:{value:t.push_form.sn,callback:function(e){t.$set(t.push_form,"sn",e)},expression:"push_form.sn"}},t._l(t.machine_list,(function(t){return n("el-option",{key:t.sn,attrs:{label:t.sn,value:t.sn}})})),1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v(" 取消 ")]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){"upload"===t.dialogType?t.uploadLogo():t.pushLogo()}}},[t._v(" 确定 ")])],1)],1)],1)},a=[],i=n("e154"),u=n("4834"),o={name:"logoManage",data:function(){return{baseUrl:"..",dialogVisible:!1,dialogTitle:{upload:"上传 logo",push:"下发 logo"},dialogType:"",push_form:{url:"",type:1,adminId:"",sn:""},push_rules:{type:[{required:!0,message:"请选择下发方式",trigger:"blur"}],sn:[{required:!0,message:"请选择设备",trigger:"blur"}]},machine_list:[],user_list:[]}},created:function(){this.fetchData(),this.getFaceDeviceList(),this.getUserListSearch()},methods:{fetchData:function(){var t=this;Object(i["r"])().then((function(e){t.push_form.url=e.data}))},getFaceDeviceList:function(){var t=this;Object(i["q"])().then((function(e){t.machine_list=e.data}))},getUserListSearch:function(){var t=this;Object(u["A"])().then((function(e){t.user_list=e.data}))},changeType:function(t){switch(t){case 1:this.push_form.adminId="",this.push_form.sn="";break;case 2:this.push_form.sn="";break;case 3:this.push_form.adminId="";break;default:break}},upload:function(t){var e=this,n=t.currentTarget.files;if(n.length){var r=this.$loading({lock:!0,text:"上传logo中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),a=new FormData;a.append("file",n[0]),Object(i["A"])(a).then((function(t){r.close(),e.fetchData()})).catch((function(t){r.close(),e.fetchData()}))}},deleteImage:function(){this.push_form.url=""},handlePushLogo:function(){this.dialogVisible=!0,this.dialogType="push"},pushLogo:function(){var t=this;this.dialogVisible=!1;var e=this.$loading({lock:!0,text:"全力下发中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});Object(i["x"])(this.push_form).then((function(n){e.close(),t.fetchData(),t.$message({type:"success",message:"下发成功,设备重启后生效!"})})).catch((function(n){e.close(),t.fetchData()}))}}},d=o,c=(n("1e18"),n("2877")),s=Object(c["a"])(d,r,a,!1,null,"4fd7a17a",null);e["default"]=s.exports}}]);