1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7e154882"],{"0e22":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"},[t.showPrivateArea?a("div",[a("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(e){return t.create()}}},[t._v("添加私有区域")]),a("el-input",{staticClass:"margin-left input",attrs:{placeholder:"请输入私有区域名称"},model:{value:t.page.data.privateAreaName,callback:function(e){t.$set(t.page.data,"privateAreaName",e)},expression:"page.data.privateAreaName"}}),t.checkRole([99])?t._e():a("el-select",{staticClass:"margin-left input",attrs:{filterable:"",clearable:"",placeholder:"请选择账号"},model:{value:t.page.data.adminId,callback:function(e){t.$set(t.page.data,"adminId",e)},expression:"page.data.adminId"}},t._l(t.enterprise_list,(function(t){return a("el-option",{key:t.adminId,attrs:{label:t.username,value:t.adminId}})})),1),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))+" ")]}}],null,!1,1101814723)}),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.privateAreaName))+" ")]}}],null,!1,2802677457)}),a("el-table-column",{attrs:{label:"账号名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("matchNull")(e.row.username)))])]}}],null,!1,135531521)}),a("el-table-column",{attrs:{label:"创建时间",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("matchNull")(e.row.createTime)))])]}}],null,!1,833612070)}),a("el-table-column",{attrs:{align:"center",prop:"",label:"操作区",width:"350"},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.privateAreaId)}}},[t._v("删除")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return t.update(e.row)}}},[t._v("编辑")]),a("el-button",{attrs:{type:"success",plain:"",size:"small"},on:{click:function(a){return t.check(e.row.privateAreaId,"1")}}},[t._v("查看设备")]),a("el-button",{attrs:{type:"warning",plain:"",size:"small"},on:{click:function(a){return t.check(e.row.privateAreaId,"2")}}},[t._v("查看人员")])]}}],null,!1,3727619569)})],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):a("div",[a("el-page-header",{attrs:{content:"私有区域"},on:{back:t.goBack}}),a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"设备",name:"1"}},[a("istable",{attrs:{list:t.checkList,type:"查看设备"}})],1),a("el-tab-pane",{attrs:{label:"人员",name:"2"}},[a("istable",{attrs:{list:t.checkList,type:"查看人员"}})],1)],1)],1),a("el-dialog",{attrs:{title:t.dialogTitle[t.dialogType],visible:t.dialogVisible,width:"800px","close-on-click-modal":!1},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",{staticStyle:{flex:"0.5"},attrs:{label:"私有区域名称",prop:"privateAreaName"}},[a("el-input",{attrs:{placeholder:"请输入私有区域名称"},model:{value:t.form.privateAreaName,callback:function(e){t.$set(t.form,"privateAreaName","string"===typeof e?e.trim():e)},expression:"form.privateAreaName"}})],1),t.checkRole([99])?t._e():a("el-form-item",{attrs:{label:"绑定账号",prop:"adminId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",placeholder:"请选择绑定账号"},model:{value:t.form.adminId,callback:function(e){t.$set(t.form,"adminId",e)},expression:"form.adminId"}},t._l(t.enterprise_list,(function(t){return a("el-option",{key:t.adminId,attrs:{label:t.username,value:t.adminId}})})),1)],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){"add"===t.dialogType?t.add():t.doUpdate()}}},[t._v(" 确定 ")])],1)],1)],1)},r=[],i=(a("e9c4"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-table",{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"}}),"查看设备"==t.type?[a("el-table-column",{attrs:{label:"设备名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.name)+" ")]}}],null,!1,2507105690)}),a("el-table-column",{attrs:{label:"设备编号",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sn))])]}}],null,!1,1643272219)}),a("el-table-column",{attrs:{label:"创建时间",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.createTime))])]}}],null,!1,2774630583)})]:[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(e.row.name)+" ")]}}])}),a("el-table-column",{attrs:{label:"手机号",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.phone))])]}}])}),a("el-table-column",{attrs:{label:"身份证号",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.idNumber))])]}}])}),a("el-table-column",{attrs:{label:"创建时间",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.createTime))])]}}])})]],2)],1)}),o=[],u={name:"",components:{},props:{list:{type:Array},type:{type:String}},data:function(){return{}},methods:{isdelete:function(){}},computed:{},watch:{},created:function(){},mounted:function(){}},l=u,c=a("2877"),s=Object(c["a"])(l,i,o,!1,null,"6b668286",null),d=s.exports,f=a("42d1"),p=a("333d"),m=a("4834"),g={components:{Pagination:p["a"],istable:d},filters:{matchNull:function(t){return t||"未连接"}},data:function(){return{role:this.$store.getters.role,placeType:this.$store.getters.placeType,list:null,listLoading:!0,page:{data:{privateAreaId:null},pageNum:1,pageSize:10},total:0,enterprise_list:[],dialogVisible:!1,dialogTitle:{add:"添加私有区域",update:"编辑私有区域"},dialogType:"add",form:{adminId:null,privateAreaName:null},rules:{adminId:[{required:!0,message:"请选择账号",trigger:"blur"}],privateAreaName:[{required:!0,message:"请输入私有区域名称",trigger:"blur"}]},form_copy:{},showPrivateArea:!0,activeName:"2",checkList:[],privateAreaId:null}},created:function(){this.form_copy=JSON.parse(JSON.stringify(this.form)),this.fetchData(),this.queryEnterpriseAccount()},methods:{checkRole:f["a"],fetchData:function(){var t=this;this.listLoading=!0,Object(m["F"])(this.page).then((function(e){t.list=e.data.list,t.total=e.data.total,t.listLoading=!1}))},create:function(){var t=this;this.form=JSON.parse(JSON.stringify(this.form_copy)),this.dialogType="add",this.dialogVisible=!0,this.$nextTick((function(){t.$refs["form"].clearValidate()}))},add:function(){var t=this;this.$refs["form"].validate((function(e){e&&Object(m["a"])(t.form).then((function(e){t.dialogVisible=!1,t.fetchData(),t.$message({type:"success",message:"添加成功!"})}))}))},update:function(t){var e=this;this.form=Object.assign(this.form_copy,t),this.dialogType="update",this.dialogVisible=!0,this.$nextTick((function(){e.$refs["form"].clearValidate()}))},doUpdate:function(){var t=this;this.$refs["form"].validate((function(e){e&&Object(m["a"])(t.form).then((function(e){t.dialogVisible=!1,t.fetchData(),t.$message({type:"success",message:"编辑成功!"})}))}))},deleteUser:function(t){var e=this;this.$confirm("确定要删除此私有区域吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){Object(m["e"])(t).then((function(t){e.fetchData(),e.$message({type:"success",message:"删除成功!"})}))}))},check:function(t,e){var a=this,n={data:{privateAreaId:t},pageNum:1,pageSize:1e5};this.privateAreaId=t,"1"===e?Object(m["E"])(n).then((function(t){a.checkList=t.data.list,a.activeName="1",a.showPrivateArea=!1})):Object(m["G"])(n).then((function(t){a.checkList=t.data.list,a.activeName="2",a.showPrivateArea=!1}))},handleClick:function(){this.check(this.privateAreaId,this.activeName)},goBack:function(){this.showPrivateArea=!0,this.fetchData()},queryEnterpriseAccount:function(){var t=this,e={isNeedDistrict:2,isNeedEnterprise:1,isNeedPrivateArea:3};Object(m["l"])(e).then((function(e){t.enterprise_list=e.data}))},indexMethod:function(t){return(this.page.pageNum-1)*this.page.pageSize+t+1}}},h=g,b=(a("d715"),Object(c["a"])(h,n,r,!1,null,"48056288",null));e["default"]=b.exports},1878:function(t,e,a){},"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)},r=[];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 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(),r=t-n,l=20,c=0;e="undefined"===typeof e?500:e;var s=function t(){c+=l;var u=Math.easeInOutQuad(c,n,r,e);o(u),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&&l(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&l(0,800)}}},s=c,d=(a("c799"),a("2877")),f=Object(d["a"])(s,n,r,!1,null,"07f7dac8",null);e["a"]=f.exports},4834:function(t,e,a){"use strict";a.d(e,"l",(function(){return r})),a.d(e,"y",(function(){return i})),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 c})),a.d(e,"w",(function(){return s})),a.d(e,"i",(function(){return d})),a.d(e,"h",(function(){return f})),a.d(e,"x",(function(){return p})),a.d(e,"D",(function(){return m})),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 _})),a.d(e,"C",(function(){return O})),a.d(e,"j",(function(){return k})),a.d(e,"g",(function(){return A})),a.d(e,"b",(function(){return w})),a.d(e,"s",(function(){return j})),a.d(e,"r",(function(){return N})),a.d(e,"P",(function(){return S})),a.d(e,"O",(function(){return I})),a.d(e,"K",(function(){return x})),a.d(e,"H",(function(){return C})),a.d(e,"c",(function(){return $})),a.d(e,"I",(function(){return L})),a.d(e,"J",(function(){return T})),a.d(e,"u",(function(){return z})),a.d(e,"F",(function(){return P})),a.d(e,"a",(function(){return D})),a.d(e,"e",(function(){return V})),a.d(e,"E",(function(){return E})),a.d(e,"G",(function(){return F})),a.d(e,"k",(function(){return B})),a.d(e,"n",(function(){return q})),a.d(e,"d",(function(){return J})),a.d(e,"L",(function(){return W})),a.d(e,"M",(function(){return U})),a.d(e,"t",(function(){return M}));a("99af");var n=a("b775");function r(t){return Object(n["a"])({url:"/admin/auth/getAdminListNew",method:"post",data:t})}function i(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 c(t){return Object(n["a"])({url:"/admin/areaCode/getArea",method:"get",params:{areaCodeId:t}})}function s(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 p(t){return Object(n["a"])({url:"/admin/tag/getList",method:"get",params:{provinceId:t||null}})}function m(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 _(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 k(){return Object(n["a"])({url:"/admin/userWhitelis/doGetWhiteExcel",method:"get",responseType:"blob",params:{}})}function A(t){return Object(n["a"])({url:"/admin/userVisitorList/deleteVisitor",method:"get",params:{id:t}})}function w(t){return Object(n["a"])({url:"/admin/userVisitorList/addSingle",method:"get",params:{id:t}})}function j(t){return Object(n["a"])({url:"/admin/userVisitorList/getDetailPageList",method:"post",data:t})}function N(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 I(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 C(t){return Object(n["a"])({url:"/admin/auth/queryAdminById/".concat(t),method:"get"})}function $(t,e){return Object(n["a"])({url:"/admin/auth/audit/".concat(t,"/").concat(e),method:"post"})}function L(t){return Object(n["a"])({url:"/admin/auth/queryEnterpriseAccount",method:"get"})}function T(t){return Object(n["a"])({url:"/admin/auth/queryPlaceInfos/".concat(t),method:"get"})}function z(t){return Object(n["a"])({url:"/admin/privateArea/getPrivateAreaList",method:"get",params:{adminId:t}})}function P(t){return Object(n["a"])({url:"/admin/privateArea/privateAreaPageList",method:"post",data:t})}function D(t){return Object(n["a"])({url:"/admin/privateArea/addOrUpdatePrivateArea",method:"post",data:t})}function V(t){return Object(n["a"])({url:"admin/privateArea/deletePrivateArea",method:"get",params:{privateAreaId:t}})}function E(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 B(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 J(t){return Object(n["a"])({url:"/autoTaskInfo/cancelTask",headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"post",params:{taskId:t}})}function W(t){return Object(n["a"])({url:"/systemNotice/edit",method:"post",data:t})}function U(t){return Object(n["a"])({url:"/systemNotice/getNotice",method:"post",data:t})}function M(t){return Object(n["a"])({url:"/admin/auth/getPlaceAreas",method:"get",params:{}})}},c49a:function(t,e,a){},c799:function(t,e,a){"use strict";a("c49a")},d715:function(t,e,a){"use strict";a("1878")},e9c4:function(t,e,a){var n=a("23e7"),r=a("d066"),i=a("d039"),o=r("JSON","stringify"),u=/[\uD800-\uDFFF]/g,l=/^[\uD800-\uDBFF]$/,c=/^[\uDC00-\uDFFF]$/,s=function(t,e,a){var n=a.charAt(e-1),r=a.charAt(e+1);return l.test(t)&&!c.test(r)||c.test(t)&&!l.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},d=i((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(u,s):n}})}}]);
|