chunk-edf0c7ec.dec9c1ed.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-edf0c7ec"],{"253a":function(t,e,n){"use strict";n("7664")},"333d":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[n("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)},a=[];n("a9e3");Math.easeInOutQuad=function(t,e,n,r){return t/=r/2,t<1?n/2*t*t+e:(t--,-n/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 c(t,e,n){var r=u(),a=t-r,c=20,d=0;e="undefined"===typeof e?500:e;var s=function t(){d+=c;var u=Math.easeInOutQuad(d,r,a,e);o(u),d<e?i(t):n&&"function"===typeof n&&n()};s()}var d={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&&c(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&c(0,800)}}},s=d,l=(n("c799"),n("2877")),f=Object(l["a"])(s,r,a,!1,null,"07f7dac8",null);e["a"]=f.exports},"475c":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"},[t.checkRole([1,2])?n("el-button",{staticClass:"margin-left",attrs:{type:"primary",icon:"el-icon-plus"},on:{click:t.create}},[t._v("添加标签")]):t._e(),t.checkRole([1])?[n("el-select",{staticClass:"margin-left",attrs:{placeholder:"请选择省份"},model:{value:t.page,callback:function(e){t.page=e},expression:"page"}},t._l(t.province_list,(function(t){return n("el-option",{key:t.areaCodeId,attrs:{label:t.name,value:t.areaCodeId}})})),1),n("el-button",{staticClass:"margin-left",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.fetchData}},[t._v("搜索")])]:t._e(),n("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":""}},[n("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)+" ")]}}])}),n("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))+" ")]}}])}),n("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.provinceName))+" ")]}}])}),t.checkRole([2])?n("el-table-column",{attrs:{align:"center",label:"操作区",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(n){return t.deleteUser(e.row.id)}}},[t._v("删除")]),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(n){return t.update(e.row)}}},[t._v("修改")])]}}],null,!1,2933565162)}):t._e()],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",{ref:"user_form",attrs:{model:t.user_form,rules:t.rules,"label-width":"120px","label-position":"left"}},[n("el-form-item",{attrs:{label:"省",prop:"provinceId","label-width":"120px"}},[n("el-select",{attrs:{placeholder:"请选择省份",disabled:!t.checkRole([1])},model:{value:t.user_form.provinceId,callback:function(e){t.$set(t.user_form,"provinceId",e)},expression:"user_form.provinceId"}},t._l(t.province_list,(function(t){return n("el-option",{key:t.areaCodeId,attrs:{label:t.name,value:t.areaCodeId}})})),1)],1),n("el-form-item",{attrs:{label:"标签名称",prop:"name"}},[n("el-input",{attrs:{maxlength:"11","show-word-limit":""},model:{value:t.user_form.name,callback:function(e){t.$set(t.user_form,"name","string"===typeof e?e.trim():e)},expression:"user_form.name"}})],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){"add"===t.dialogType?t.add():t.doUpdate()}}},[t._v(" 确定 ")])],1)],1)],2)},a=[],i=(n("e9c4"),n("333d")),o=n("4834"),u=n("42d1"),c={components:{Pagination:i["a"]},filters:{matchNull:function(t){return t||"未连接"}},data:function(){return{list:null,listLoading:!0,dialogVisible:!1,dialogTitle:{add:"添加标签",update:"编辑标签"},dialogType:"add",user_form:{provinceId:null,name:null},user_form_copy:{},page:"",province_list:[],rules:{name:[{required:!0,message:"请输入标签名称",trigger:"blur"},{min:2,max:20,message:"长度在 2 到 20 个字符",trigger:"blur"}],provinceId:[{required:!0,message:"请选择省",trigger:"blur"}]}}},created:function(){Object(u["a"])([2])&&(this.user_form.provinceId=this.$store.getters.provinceId),this.user_form_copy=JSON.parse(JSON.stringify(this.user_form)),this.fetchData(),this.getAddressList()},methods:{checkRole:u["a"],fetchData:function(){var t=this;this.listLoading=!0,Object(o["x"])(this.page).then((function(e){t.list=e.data,t.listLoading=!1}))},getAddressList:function(){var t=this;Object(o["v"])().then((function(e){t.province_list=e.data}))},create:function(){var t=this;this.user_form=JSON.parse(JSON.stringify(this.user_form_copy)),this.dialogType="add",this.dialogVisible=!0,this.$nextTick((function(){t.$refs["user_form"].clearValidate()}))},add:function(){var t=this;this.$refs["user_form"].validate((function(e){e&&Object(o["D"])(t.user_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(o["f"])(t).then((function(t){e.fetchData(),e.$message({type:"success",message:"删除成功!"})}))}))},update:function(t){var e=this;this.user_form=Object.assign(this.user_form,t),this.dialogType="update",this.dialogVisible=!0,this.$nextTick((function(){e.$refs["user_form"].clearValidate()}))},doUpdate:function(){var t=this;this.$refs["user_form"].validate((function(e){e&&Object(o["N"])(t.user_form).then((function(e){t.dialogVisible=!1,t.fetchData(),t.$message({type:"success",message:"编辑成功!"})}))}))}}},d=c,s=(n("253a"),n("2877")),l=Object(s["a"])(d,r,a,!1,null,"039a1acc",null);e["default"]=l.exports},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 o})),n.d(e,"v",(function(){return u})),n.d(e,"o",(function(){return c})),n.d(e,"m",(function(){return d})),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 g})),n.d(e,"f",(function(){return h})),n.d(e,"p",(function(){return b})),n.d(e,"q",(function(){return v})),n.d(e,"z",(function(){return y})),n.d(e,"B",(function(){return O})),n.d(e,"C",(function(){return _})),n.d(e,"j",(function(){return j})),n.d(e,"g",(function(){return k})),n.d(e,"b",(function(){return w})),n.d(e,"s",(function(){return A})),n.d(e,"r",(function(){return C})),n.d(e,"P",(function(){return I})),n.d(e,"O",(function(){return x})),n.d(e,"K",(function(){return S})),n.d(e,"H",(function(){return L})),n.d(e,"c",(function(){return T})),n.d(e,"I",(function(){return $})),n.d(e,"J",(function(){return N})),n.d(e,"u",(function(){return P})),n.d(e,"F",(function(){return z})),n.d(e,"a",(function(){return D})),n.d(e,"e",(function(){return V})),n.d(e,"E",(function(){return F})),n.d(e,"G",(function(){return B})),n.d(e,"k",(function(){return E})),n.d(e,"n",(function(){return q})),n.d(e,"d",(function(){return J})),n.d(e,"L",(function(){return R})),n.d(e,"M",(function(){return W})),n.d(e,"t",(function(){return U}));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 o(){return Object(r["a"])({url:"/admin/auth/getAdminlist",method:"post"})}function u(){return Object(r["a"])({url:"/admin/areaCode/getProvince",method:"get",params:{}})}function c(t){return Object(r["a"])({url:"/admin/areaCode/getCity",method:"get",params:{areaCodeId:t}})}function d(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 g(t){return Object(r["a"])({url:"/admin/tag/update",method:"post",data:t})}function h(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 v(t){return Object(r["a"])({url:"/admin/face/getContextByWhiteId",method:"get",params:{id:t}})}function y(t){return Object(r["a"])({url:"/admin/face/getUserListFrom",method:"get",params:t})}function O(t){return Object(r["a"])({url:"/admin/face/getVisitorListFrom",method:"get",params:{id:t}})}function _(t){return Object(r["a"])({url:"/admin/face/getWhiteListFrom",method:"get",params:{id:t}})}function j(){return Object(r["a"])({url:"/admin/userWhitelis/doGetWhiteExcel",method:"get",responseType:"blob",params:{}})}function k(t){return Object(r["a"])({url:"/admin/userVisitorList/deleteVisitor",method:"get",params:{id:t}})}function w(t){return Object(r["a"])({url:"/admin/userVisitorList/addSingle",method:"get",params:{id:t}})}function A(t){return Object(r["a"])({url:"/admin/userVisitorList/getDetailPageList",method:"post",data:t})}function C(t){return Object(r["a"])({url:"/admin/userVisitorList/getDetailInfo/".concat(t),method:"get"})}function I(t){return Object(r["a"])({url:"/admin/userWhitelis/userWhitelistExcelOut",method:"post",data:t})}function x(t){return Object(r["a"])({url:"/admin/userVisitorList/userVisitorlistExcelOut",method:"post",data:t})}function S(t){return Object(r["a"])({url:"/admin/auth/saveEnterpriseAccount",method:"post",data:t})}function L(t){return Object(r["a"])({url:"/admin/auth/queryAdminById/".concat(t),method:"get"})}function T(t,e){return Object(r["a"])({url:"/admin/auth/audit/".concat(t,"/").concat(e),method:"post"})}function $(t){return Object(r["a"])({url:"/admin/auth/queryEnterpriseAccount",method:"get"})}function N(t){return Object(r["a"])({url:"/admin/auth/queryPlaceInfos/".concat(t),method:"get"})}function P(t){return Object(r["a"])({url:"/admin/privateArea/getPrivateAreaList",method:"get",params:{adminId:t}})}function z(t){return Object(r["a"])({url:"/admin/privateArea/privateAreaPageList",method:"post",data:t})}function D(t){return Object(r["a"])({url:"/admin/privateArea/addOrUpdatePrivateArea",method:"post",data:t})}function V(t){return Object(r["a"])({url:"admin/privateArea/deletePrivateArea",method:"get",params:{privateAreaId:t}})}function F(t){return Object(r["a"])({url:"/admin/privateArea/privateAreaDevicePageList",method:"post",data:t})}function B(t){return Object(r["a"])({url:"/admin/privateArea/privateAreaWhitelistPageList",method:"post",data:t})}function E(t){return Object(r["a"])({url:"/admin/auth/punch/field-options",method:"get",params:{}})}function q(t){return Object(r["a"])({url:"/autoTaskInfo/getByPage",method:"post",data:t})}function J(t){return Object(r["a"])({url:"/autoTaskInfo/cancelTask",headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"post",params:{taskId:t}})}function R(t){return Object(r["a"])({url:"/systemNotice/edit",method:"post",data:t})}function W(t){return Object(r["a"])({url:"/systemNotice/getNotice",method:"post",data:t})}function U(t){return Object(r["a"])({url:"/admin/auth/getPlaceAreas",method:"get",params:{}})}},7664:function(t,e,n){},c49a:function(t,e,n){},c799:function(t,e,n){"use strict";n("c49a")},e9c4:function(t,e,n){var r=n("23e7"),a=n("d066"),i=n("d039"),o=a("JSON","stringify"),u=/[\uD800-\uDFFF]/g,c=/^[\uD800-\uDBFF]$/,d=/^[\uDC00-\uDFFF]$/,s=function(t,e,n){var r=n.charAt(e-1),a=n.charAt(e+1);return c.test(t)&&!d.test(a)||d.test(t)&&!c.test(r)?"\\u"+t.charCodeAt(0).toString(16):t},l=i((function(){return'"\\udf06\\ud834"'!==o("\udf06\ud834")||'"\\udead"'!==o("\udead")}));o&&r({target:"JSON",stat:!0,forced:l},{stringify:function(t,e,n){var r=o.apply(null,arguments);return"string"==typeof r?r.replace(u,s):r}})}}]);