chunk-14c1503e.0623b889.js 32 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-14c1503e"],{"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 s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(t,e,a){var n=s(),i=t-n,l=20,u=0;e="undefined"===typeof e?500:e;var c=function t(){u+=l;var s=Math.easeInOutQuad(u,n,i,e);o(s),u<e?r(t):a&&"function"===typeof a&&a()};c()}var u={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=u,d=(a("c799"),a("2877")),f=Object(d["a"])(c,n,i,!1,null,"07f7dac8",null);e["a"]=f.exports},"3e32":function(t,e,a){},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 s})),a.d(e,"o",(function(){return l})),a.d(e,"m",(function(){return u})),a.d(e,"w",(function(){return c})),a.d(e,"i",(function(){return d})),a.d(e,"h",(function(){return f})),a.d(e,"x",(function(){return m})),a.d(e,"D",(function(){return p})),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 v})),a.d(e,"z",(function(){return y})),a.d(e,"B",(function(){return O})),a.d(e,"C",(function(){return j})),a.d(e,"j",(function(){return w})),a.d(e,"g",(function(){return _})),a.d(e,"b",(function(){return x})),a.d(e,"s",(function(){return L})),a.d(e,"r",(function(){return k})),a.d(e,"P",(function(){return S})),a.d(e,"O",(function(){return C})),a.d(e,"K",(function(){return T})),a.d(e,"H",(function(){return $})),a.d(e,"c",(function(){return I})),a.d(e,"I",(function(){return N})),a.d(e,"J",(function(){return P})),a.d(e,"u",(function(){return A})),a.d(e,"F",(function(){return z})),a.d(e,"a",(function(){return V})),a.d(e,"e",(function(){return U})),a.d(e,"E",(function(){return D})),a.d(e,"G",(function(){return F})),a.d(e,"k",(function(){return E})),a.d(e,"n",(function(){return q})),a.d(e,"d",(function(){return B})),a.d(e,"L",(function(){return J})),a.d(e,"M",(function(){return M})),a.d(e,"t",(function(){return G}));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 s(){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 u(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 f(t){return Object(n["a"])({url:"/admin/auth/doDeleteAdmin",method:"delete",params:{id:t}})}function m(t){return Object(n["a"])({url:"/admin/tag/getList",method:"get",params:{provinceId:t||null}})}function p(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 v(t){return Object(n["a"])({url:"/admin/face/getContextByWhiteId",method:"get",params:{id:t}})}function y(t){return Object(n["a"])({url:"/admin/face/getUserListFrom",method:"get",params:t})}function O(t){return Object(n["a"])({url:"/admin/face/getVisitorListFrom",method:"get",params:{id:t}})}function j(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 _(t){return Object(n["a"])({url:"/admin/userVisitorList/deleteVisitor",method:"get",params:{id:t}})}function x(t){return Object(n["a"])({url:"/admin/userVisitorList/addSingle",method:"get",params:{id:t}})}function L(t){return Object(n["a"])({url:"/admin/userVisitorList/getDetailPageList",method:"post",data:t})}function k(t){return Object(n["a"])({url:"/admin/userVisitorList/getDetailInfo/".concat(t),method:"get"})}function S(t){return Object(n["a"])({url:"/admin/userWhitelis/userWhitelistExcelOut",method:"post",data:t})}function C(t){return Object(n["a"])({url:"/admin/userVisitorList/userVisitorlistExcelOut",method:"post",data:t})}function T(t){return Object(n["a"])({url:"/admin/auth/saveEnterpriseAccount",method:"post",data:t})}function $(t){return Object(n["a"])({url:"/admin/auth/queryAdminById/".concat(t),method:"get"})}function I(t,e){return Object(n["a"])({url:"/admin/auth/audit/".concat(t,"/").concat(e),method:"post"})}function N(t){return Object(n["a"])({url:"/admin/auth/queryEnterpriseAccount",method:"get"})}function P(t){return Object(n["a"])({url:"/admin/auth/queryPlaceInfos/".concat(t),method:"get"})}function A(t){return Object(n["a"])({url:"/admin/privateArea/getPrivateAreaList",method:"get",params:{adminId:t}})}function z(t){return Object(n["a"])({url:"/admin/privateArea/privateAreaPageList",method:"post",data:t})}function V(t){return Object(n["a"])({url:"/admin/privateArea/addOrUpdatePrivateArea",method:"post",data:t})}function U(t){return Object(n["a"])({url:"admin/privateArea/deletePrivateArea",method:"get",params:{privateAreaId:t}})}function D(t){return Object(n["a"])({url:"/admin/privateArea/privateAreaDevicePageList",method:"post",data:t})}function F(t){return Object(n["a"])({url:"/admin/privateArea/privateAreaWhitelistPageList",method:"post",data:t})}function E(t){return Object(n["a"])({url:"/admin/auth/punch/field-options",method:"get",params:{}})}function q(t){return Object(n["a"])({url:"/autoTaskInfo/getByPage",method:"post",data:t})}function B(t){return Object(n["a"])({url:"/autoTaskInfo/cancelTask",headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"post",params:{taskId:t}})}function J(t){return Object(n["a"])({url:"/systemNotice/edit",method:"post",data:t})}function M(t){return Object(n["a"])({url:"/systemNotice/getNotice",method:"post",data:t})}function G(t){return Object(n["a"])({url:"/admin/auth/getPlaceAreas",method:"get",params:{}})}},"6baf":function(t,e,a){"use strict";a("f839")},7424: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",{staticClass:"app-container"},[a("el-tabs",{attrs:{type:"card"}},[a("el-tab-pane",{attrs:{label:"未脱敏数据查询权限设置"}},[a("PassRecordsSearch")],1),a("el-tab-pane",{attrs:{label:"第三方设备设置"}},[a("MachineCompany"),a("MachineType")],1),a("el-tab-pane",{attrs:{label:"公告栏"}},[a("BulletinBoard")],1)],1)],1)},i=[],r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-button",{staticClass:"margin-left",attrs:{type:"primary",icon:"el-icon-plus"},on:{click:t.addOrUpdate}},[t._v("添加 ")]),[a("el-select",{staticClass:"margin-left",attrs:{placeholder:"请选择账号"},model:{value:t.page.data.accountId,callback:function(e){t.$set(t.page.data,"accountId",e)},expression:"page.data.accountId"}},t._l(t.user_list,(function(t){return a("el-option",{key:t.adminId,attrs:{label:t.username,value:t.adminId}})})),1),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.statusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),a("el-button",{staticClass:"margin-left",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.getList}},[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",type:"index"}}),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.account))+" ")]}}])}),a("el-table-column",{attrs:{label:"停用/启用",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.status?a("el-tag",{attrs:{type:"warning",effect:"dark"}},[t._v("停用")]):1===e.row.status?a("el-tag",{attrs:{type:"success",effect:"dark"}},[t._v("启用")]):a("el-tag",{attrs:{type:"info",effect:"plain"}},[t._v("未知")])]}}])}),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",label:"操作区",width:"200"},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",size:"small"},on:{click:function(a){return t.addOrUpdate(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.getList}}),a("el-dialog",{attrs:{title:t.dialogTitle,visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"120px","label-position":"left"}},[a("el-form-item",{attrs:{label:"绑定账号",prop:"adminId"}},[a("el-select",{attrs:{disabled:"修改"===t.dialogTitle,filterable:"",clearable:"",placeholder:"请选择账号"},model:{value:t.form.adminId,callback:function(e){t.$set(t.form,"adminId",e)},expression:"form.adminId"}},t._l(t.user_list,(function(t){return a("el-option",{key:t.adminId,attrs:{label:t.username,value:t.adminId}})})),1)],1),a("el-form-item",{attrs:{label:"停用/启用",prop:"status"}},[a("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[a("el-radio",{attrs:{label:0}},[t._v("停用")]),a("el-radio",{attrs:{label:1}},[t._v("启用")])],1)],1),a("el-form-item",{attrs:{label:"查询密码",prop:"password"}},[a("el-input",{attrs:{type:"password","show-word-limit":"","show-password":""},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password","string"===typeof e?e.trim():e)},expression:"form.password"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v(" 取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){"添加"===t.dialogTitle?t.add():t.doUpdate()}}},[t._v(" 确定 ")])],1)],1)],2)},o=[],s=a("c7eb"),l=a("1da1"),u=(a("e9c4"),a("333d")),c=a("e154"),d=a("4834"),f={name:"pass_records_search",filters:{matchNull:function(t){return t||"暂无"}},components:{Pagination:u["a"]},data:function(){return{listLoading:!0,list:[],dialogVisible:!1,dialogTitle:"",form:{adminId:null,status:1,password:null},formCopy:{},statusList:[{value:"0",label:"停用"},{value:"1",label:"启用"}],page:{data:{adminId:null,status:null,type:null},pageNum:1,pageSize:10},total:0,rules:{adminId:[{required:!0,message:"请选择账号",trigger:"blur"}],password:[{required:!0,message:"请设置密码",trigger:"blur"}],status:[{required:!0,message:"请选择是否启用",trigger:"blur"}]},user_list:[]}},methods:{getList:function(){var t=this;return Object(l["a"])(Object(s["a"])().mark((function e(){var a,n,i,r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.listLoading=!0,e.next=3,Object(c["o"])(t.page);case 3:a=e.sent,n=a.data,i=n.list,r=n.total,t.list=i,t.total=r,t.listLoading=!1;case 8:case"end":return e.stop()}}),e)})))()},getUserListSearch:function(){var t=this;Object(d["A"])().then((function(e){t.user_list=e.data}))},deleteUser:function(t){var e=this;this.$confirm("确定要删除此条信息吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){Object(c["d"])(t).then((function(t){e.getList(),e.$message({type:"success",message:"删除成功!"})}))}))},addOrUpdate:function(t){var e=this;this.dialogVisible=!0,t.id?(this.dialogTitle="修改",Object.assign(this.form,t)):(this.dialogTitle="添加",this.form=JSON.parse(JSON.stringify(this.formCopy))),this.$nextTick((function(){e.$refs["form"].clearValidate()}))},add:function(){var t=this;this.$refs["form"].validate((function(e){e&&Object(c["a"])(t.form).then((function(e){t.dialogVisible=!1,t.getList(),t.$message({type:"success",message:"添加成功!"})}))}))},doUpdate:function(){var t=this;this.$refs["form"].validate((function(e){e&&Object(c["a"])(t.form).then((function(e){t.dialogVisible=!1,t.getList(),t.$message({type:"success",message:"编辑成功!"})}))}))}},created:function(){this.getList(),this.getUserListSearch(),this.formCopy=JSON.parse(JSON.stringify(this.form))}},m=f,p=(a("a941"),a("2877")),g=Object(p["a"])(m,r,o,!1,null,"b08f601e",null),h=g.exports,b=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-button",{staticClass:"margin-left",attrs:{type:"primary",icon:"el-icon-plus"},on:{click:t.addOrUpdate}},[t._v("添加设备品牌 ")]),[a("el-select",{staticClass:"margin-left",attrs:{filterable:"",clearable:"",placeholder:"请选择设备品牌名称"},model:{value:t.page.data.thirdPartyId,callback:function(e){t.$set(t.page.data,"thirdPartyId",e)},expression:"page.data.thirdPartyId"}},t._l(t.machine_list,(function(t){return a("el-option",{key:t.thirdPartyId,attrs:{label:t.name,value:t.thirdPartyId}})})),1),a("el-button",{staticClass:"margin-left",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.getList}},[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",type:"index"}}),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.extend1))+" ")]}}])}),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",label:"操作区",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"danger",size:"small",disabled:1===e.row.thirdPartyId},on:{click:function(a){return t.deleteUser(e.row.thirdPartyId)}}},[t._v("删除 ")]),a("el-button",{attrs:{type:"primary",size:"small",disabled:1===e.row.thirdPartyId},on:{click:function(a){return t.addOrUpdate(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.getList}}),a("el-dialog",{attrs:{title:t.dialogTitle,visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"120px","label-position":"left"}},[a("el-form-item",{attrs:{label:"设备品牌名称",prop:"name"}},[a("el-input",{attrs:{"show-word-limit":""},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name","string"===typeof e?e.trim():e)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"设备公司名称",prop:"extend1"}},[a("el-input",{attrs:{"show-word-limit":""},model:{value:t.form.extend1,callback:function(e){t.$set(t.form,"extend1","string"===typeof e?e.trim():e)},expression:"form.extend1"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v(" 取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){"添加"===t.dialogTitle?t.add():t.doUpdate()}}},[t._v(" 确定 ")])],1)],1)],2)},v=[],y={name:"machine_company",filters:{matchNull:function(t){return t||"暂无"}},components:{Pagination:u["a"]},data:function(){return{listLoading:!0,list:[],dialogVisible:!1,dialogTitle:"",form:{name:null,extend1:null},formCopy:{},page:{data:{thirdPartyId:null},pageNum:1,pageSize:10},total:0,rules:{name:[{required:!0,message:"请输入设备的品牌名称",trigger:"blur"}],extend1:[{required:!0,message:"请输入设备的公司名称",trigger:"blur"}]},machine_list:[]}},methods:{getList:function(){var t=this;return Object(l["a"])(Object(s["a"])().mark((function e(){var a,n,i,r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.listLoading=!0,e.next=3,Object(c["s"])(t.page);case 3:a=e.sent,n=a.data,i=n.list,r=n.total,t.list=i,t.total=r,t.listLoading=!1;case 8:case"end":return e.stop()}}),e)})))()},getMachineCompanyListSearch:function(){var t=this;Object(c["t"])().then((function(e){t.machine_list=e.data}))},deleteUser:function(t){var e=this;this.$confirm("确定要删除此类设备吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){Object(c["e"])(t).then((function(t){e.getList(),e.$message({type:"success",message:"删除成功!"})}))}))},addOrUpdate:function(t){var e=this;this.dialogVisible=!0,t.thirdPartyId?(this.dialogTitle="修改",Object.assign(this.form,t)):(this.dialogTitle="添加",this.form=JSON.parse(JSON.stringify(this.formCopy))),this.$nextTick((function(){e.$refs["form"].clearValidate()}))},add:function(){var t=this;this.$refs["form"].validate((function(e){e&&Object(c["b"])(t.form).then((function(e){t.dialogVisible=!1,t.getList(),t.$message({type:"success",message:"添加成功!"})}))}))},doUpdate:function(){var t=this;this.$refs["form"].validate((function(e){e&&Object(c["b"])(t.form).then((function(e){t.dialogVisible=!1,t.getList(),t.$message({type:"success",message:"编辑成功!"})}))}))}},created:function(){this.getList(),this.getMachineCompanyListSearch(),this.formCopy=JSON.parse(JSON.stringify(this.form))}},O=y,j=(a("d303"),Object(p["a"])(O,b,v,!1,null,"2feb9c88",null)),w=j.exports,_=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-button",{staticClass:"margin-left",attrs:{type:"primary",icon:"el-icon-plus"},on:{click:t.addOrUpdate}},[t._v("添加设备类型 ")]),[a("el-select",{staticClass:"margin-left",attrs:{filterable:"",clearable:"",placeholder:"请选择设备类型名称"},model:{value:t.page.data.faceDeviceTypeId,callback:function(e){t.$set(t.page.data,"faceDeviceTypeId",e)},expression:"page.data.faceDeviceTypeId"}},t._l(t.machine_list,(function(t){return a("el-option",{key:t.faceDeviceTypeId,attrs:{label:t.name,value:t.faceDeviceTypeId}})})),1),a("el-button",{staticClass:"margin-left",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.getList}},[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",type:"index"}}),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.createTime))+" ")]}}])}),a("el-table-column",{attrs:{align:"center",label:"操作区",width:"200"},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.faceDeviceTypeId)}}},[t._v("删除 ")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return t.addOrUpdate(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.getList}}),a("el-dialog",{attrs:{title:t.dialogTitle,visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"120px","label-position":"left"}},[a("el-form-item",{attrs:{label:"设备类型名称",prop:"name"}},[a("el-input",{attrs:{"show-word-limit":""},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name","string"===typeof e?e.trim():e)},expression:"form.name"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v(" 取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){"添加"===t.dialogTitle?t.add():t.doUpdate()}}},[t._v(" 确定 ")])],1)],1)],2)},x=[],L={name:"machine_type",filters:{matchNull:function(t){return t||"暂无"}},components:{Pagination:u["a"]},data:function(){return{listLoading:!0,list:[],dialogVisible:!1,dialogTitle:"",form:{name:null},formCopy:{},page:{data:{faceDeviceTypeId:null},pageNum:1,pageSize:10},total:0,rules:{name:[{required:!0,message:"请输入设备的品牌名称",trigger:"blur"}]},machine_list:[]}},methods:{getList:function(){var t=this;return Object(l["a"])(Object(s["a"])().mark((function e(){var a,n,i,r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.listLoading=!0,e.next=3,Object(c["u"])(t.page);case 3:a=e.sent,n=a.data,i=n.list,r=n.total,t.list=i,t.total=r,t.listLoading=!1;case 8:case"end":return e.stop()}}),e)})))()},getMachineTypeListSearch:function(){var t=this;Object(c["v"])().then((function(e){t.machine_list=e.data}))},deleteUser:function(t){var e=this;this.$confirm("确定要删除此类设备吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){Object(c["f"])(t).then((function(t){e.getList(),e.$message({type:"success",message:"删除成功!"})}))}))},addOrUpdate:function(t){var e=this;this.dialogVisible=!0,t.faceDeviceTypeId?(this.dialogTitle="修改",Object.assign(this.form,t)):(this.dialogTitle="添加",this.form=JSON.parse(JSON.stringify(this.formCopy))),this.$nextTick((function(){e.$refs["form"].clearValidate()}))},add:function(){var t=this;this.$refs["form"].validate((function(e){e&&Object(c["c"])(t.form).then((function(e){t.dialogVisible=!1,t.getList(),t.$message({type:"success",message:"添加成功!"})}))}))},doUpdate:function(){var t=this;this.$refs["form"].validate((function(e){e&&Object(c["c"])(t.form).then((function(e){t.dialogVisible=!1,t.getList(),t.$message({type:"success",message:"编辑成功!"})}))}))}},created:function(){this.getList(),this.getMachineTypeListSearch(),this.formCopy=JSON.parse(JSON.stringify(this.form))}},k=L,S=(a("c9c1"),Object(p["a"])(k,_,x,!1,null,"1b49ce93",null)),C=S.exports,T=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login-container"},[a("div",{staticClass:"affiche-box"},[a("h4",[t._v(t._s(t.form.titile))]),a("p",[t._v(" "+t._s(t.form.content)+" ")]),a("div",{staticClass:"qrcode"},[a("img",{attrs:{src:t.form.picture,alt:""}})])]),a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("编辑公告")])]),a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px","label-position":"left"}},[a("el-form-item",{attrs:{label:"是否展示公告"}},[a("el-radio",{attrs:{label:!1},model:{value:t.form.isShow,callback:function(e){t.$set(t.form,"isShow",e)},expression:"form.isShow"}},[t._v("否")]),a("el-radio",{attrs:{label:!0},model:{value:t.form.isShow,callback:function(e){t.$set(t.form,"isShow",e)},expression:"form.isShow"}},[t._v("是")])],1),a("el-form-item",{attrs:{label:"公告标题"}},[a("el-input",{model:{value:t.form.titile,callback:function(e){t.$set(t.form,"titile",e)},expression:"form.titile"}})],1),a("el-form-item",{attrs:{label:"公告内容"}},[a("el-input",{attrs:{type:"textarea",rows:3},model:{value:t.form.content,callback:function(e){t.$set(t.form,"content",e)},expression:"form.content"}})],1),a("el-form-item",{attrs:{label:"公告照片"}},[a("el-upload",{ref:"upload",staticClass:"avatar-uploader",attrs:{name:"file",action:t.doUpload,"show-file-list":!1,"http-request":t.doUploadAvatar,"before-upload":t.beforeAvatarUpload,"auto-upload":!0,accept:"image/png,image/gif,image/jpg,image/jpeg"}},[t.form.picture?a("img",{staticClass:"avatar",attrs:{src:t.form.picture}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1)],1),a("el-button",{staticClass:"update",attrs:{type:"primary"},on:{click:t.systemNoticeEdit}},[t._v("修改")]),a("el-button",{staticClass:"update",attrs:{type:"primary",plain:""},on:{click:t.systemNoticeGetNotice}},[t._v("重置")])],1)],1)},$=[],I=a("50e2"),N={name:"bulletin_board",data:function(){return{doUpload:"",dialogVisible:!0,form:{isShow:!1,titile:"",content:"",picture:null}}},created:function(){this.systemNoticeGetNotice()},methods:{systemNoticeGetNotice:function(){var t=this;Object(d["M"])().then((function(e){t.form=e.data}))},systemNoticeEdit:function(){var t=this;Object(d["L"])(this.form).then((function(e){t.$message.success("修改成功!")}))},beforeAvatarUpload:function(t){if("image/png"===t.type||"image/gif"===t.type||"image/jpg"===t.type||"image/jpeg"===t.type){var e=t.size/1024/1024<2;e||this.$notify.warning({title:"警告",message:"图片大小必须小于2M"})}else this.$notify.warning({title:"警告",message:"请上传格式为image/png, image/gif, image/jpg, image/jpeg的图片"})},doUploadAvatar:function(t){var e=this,a=new FormData;a.append("file",t.file),Object(I["C"])(a).then((function(t){e.form.picture=t.data}))}}},P=N,A=(a("6baf"),Object(p["a"])(P,T,$,!1,null,"05c052da",null)),z=A.exports,V={name:"setting",filters:{},components:{PassRecordsSearch:h,MachineCompany:w,MachineType:C,BulletinBoard:z},data:function(){return{}},methods:{}},U=V,D=Object(p["a"])(U,n,i,!1,null,"cea8b618",null);e["default"]=D.exports},a941:function(t,e,a){"use strict";a("d985")},accc:function(t,e,a){},c49a:function(t,e,a){},c799:function(t,e,a){"use strict";a("c49a")},c9c1:function(t,e,a){"use strict";a("3e32")},d303:function(t,e,a){"use strict";a("accc")},d985:function(t,e,a){},e154:function(t,e,a){"use strict";a.d(e,"j",(function(){return i})),a.d(e,"i",(function(){return r})),a.d(e,"h",(function(){return o})),a.d(e,"g",(function(){return s})),a.d(e,"m",(function(){return l})),a.d(e,"k",(function(){return u})),a.d(e,"l",(function(){return c})),a.d(e,"n",(function(){return d})),a.d(e,"p",(function(){return f})),a.d(e,"q",(function(){return m})),a.d(e,"w",(function(){return p})),a.d(e,"y",(function(){return g})),a.d(e,"z",(function(){return h})),a.d(e,"r",(function(){return b})),a.d(e,"A",(function(){return v})),a.d(e,"x",(function(){return y})),a.d(e,"o",(function(){return O})),a.d(e,"a",(function(){return j})),a.d(e,"d",(function(){return w})),a.d(e,"s",(function(){return _})),a.d(e,"t",(function(){return x})),a.d(e,"b",(function(){return L})),a.d(e,"e",(function(){return k})),a.d(e,"u",(function(){return S})),a.d(e,"v",(function(){return C})),a.d(e,"c",(function(){return T})),a.d(e,"f",(function(){return $}));var n=a("b775");function i(t){return Object(n["a"])({url:"/admin/face/doGetFaceDevices",method:"post",data:t})}function r(t){return Object(n["a"])({url:"/admin/face/doEditFaceDevices",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/admin/face/doDeleteDevice/"+t,method:"delete"})}function s(t){return Object(n["a"])({url:"/admin/face/doAuthFaceDevice/"+t,method:"get"})}function l(t){return Object(n["a"])({url:"/admin/face/doStopFaceDevice/"+t,method:"get"})}function u(t){return Object(n["a"])({url:"/admin/face/doGetFacePass",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/admin/face/doGetFaceServerLog",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/admin/face/doGetFaceServerLogExcel",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/admin/face/getDetails",method:"post",data:t})}function m(){return Object(n["a"])({url:"/admin/face/getFaceDeviceList",method:"post",data:{}})}function p(t){return Object(n["a"])({url:"/admin/userWhitelis/addSnIssued",method:"get",params:t})}function g(t){return Object(n["a"])({url:"/admin/userWhitelis/addSingle",method:"get",params:{id:t}})}function h(t){return Object(n["a"])({url:"/admin/face/doReboot",method:"get",params:{sn:t}})}function b(){return Object(n["a"])({url:"/admin/face/getLogo",method:"get",params:{}})}function v(t){return Object(n["a"])({url:"/upload/picture",method:"post",headers:{"Content-Type":"multipart/form-data"},data:t})}function y(t){return Object(n["a"])({url:"/admin/face/issuedAll",method:"get",params:t})}function O(t){return Object(n["a"])({url:"/admin/sysInquire/getList",method:"post",data:t})}function j(t){return Object(n["a"])({url:"/admin/sysInquire/addOrUpdate",method:"post",data:t})}function w(t){return Object(n["a"])({url:"/admin/sysInquire/delete",method:"DELETE",params:{id:t}})}function _(t){return Object(n["a"])({url:"/admin/thirdParty/getPageList",method:"post",data:t})}function x(){return Object(n["a"])({url:"/admin/thirdParty/getList",method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{}})}function L(t){return Object(n["a"])({url:"/admin/thirdParty/edit",method:"post",data:t})}function k(t){return Object(n["a"])({url:"/admin/thirdParty/delete",method:"get",params:{thirdPartyId:t}})}function S(t){return Object(n["a"])({url:"/admin/deviceType/getPageList",method:"post",data:t})}function C(){return Object(n["a"])({url:"/admin/deviceType/getList",method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{}})}function T(t){return Object(n["a"])({url:"/admin/deviceType/addOrEdit",method:"post",data:t})}function $(t){return Object(n["a"])({url:"/admin/deviceType/deleteType",method:"get",params:{faceDeviceTypeId:t}})}},e9c4:function(t,e,a){var n=a("23e7"),i=a("d066"),r=a("d039"),o=i("JSON","stringify"),s=/[\uD800-\uDFFF]/g,l=/^[\uD800-\uDBFF]$/,u=/^[\uDC00-\uDFFF]$/,c=function(t,e,a){var n=a.charAt(e-1),i=a.charAt(e+1);return l.test(t)&&!u.test(i)||u.test(t)&&!l.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},d=r((function(){return'"\\udf06\\ud834"'!==o("\udf06\ud834")||'"\\udead"'!==o("\udead")}));o&&n({target:"JSON",stat:!0,forced:d},{stringify:function(t,e,a){var n=o.apply(null,arguments);return"string"==typeof n?n.replace(s,c):n}})},f839:function(t,e,a){}}]);