chunk-7d6fff2a.de8add7a.js 9.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7d6fff2a"],{"196f":function(t,e,n){},"1b88":function(t,e,n){"use strict";n("196f")},4185:function(t,e,n){"use strict";n("dea5")},4834:function(t,e,n){"use strict";n.d(e,"l",(function(){return a})),n.d(e,"y",(function(){return o})),n.d(e,"A",(function(){return i})),n.d(e,"v",(function(){return u})),n.d(e,"o",(function(){return s})),n.d(e,"m",(function(){return c})),n.d(e,"w",(function(){return d})),n.d(e,"i",(function(){return l})),n.d(e,"h",(function(){return m})),n.d(e,"x",(function(){return f})),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 O})),n.d(e,"z",(function(){return v})),n.d(e,"B",(function(){return j})),n.d(e,"C",(function(){return w})),n.d(e,"j",(function(){return y})),n.d(e,"g",(function(){return A})),n.d(e,"b",(function(){return C})),n.d(e,"s",(function(){return k})),n.d(e,"r",(function(){return $})),n.d(e,"P",(function(){return L})),n.d(e,"O",(function(){return x})),n.d(e,"K",(function(){return F})),n.d(e,"H",(function(){return I})),n.d(e,"c",(function(){return P})),n.d(e,"I",(function(){return T})),n.d(e,"J",(function(){return D})),n.d(e,"u",(function(){return _})),n.d(e,"F",(function(){return E})),n.d(e,"a",(function(){return q})),n.d(e,"e",(function(){return N})),n.d(e,"E",(function(){return V})),n.d(e,"G",(function(){return W})),n.d(e,"k",(function(){return z})),n.d(e,"n",(function(){return B})),n.d(e,"d",(function(){return G})),n.d(e,"L",(function(){return S})),n.d(e,"M",(function(){return Z})),n.d(e,"t",(function(){return J}));n("99af");var r=n("b775");function a(t){return Object(r["a"])({url:"/admin/auth/getAdminListNew",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/admin/auth/doGetAdmins",method:"post",data:t})}function i(){return Object(r["a"])({url:"/admin/auth/getAdminlist",method:"post"})}function u(){return Object(r["a"])({url:"/admin/areaCode/getProvince",method:"get",params:{}})}function s(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 d(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 m(t){return Object(r["a"])({url:"/admin/auth/doDeleteAdmin",method:"delete",params:{id:t}})}function f(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 O(t){return Object(r["a"])({url:"/admin/face/getContextByWhiteId",method:"get",params:{id:t}})}function v(t){return Object(r["a"])({url:"/admin/face/getUserListFrom",method:"get",params:t})}function j(t){return Object(r["a"])({url:"/admin/face/getVisitorListFrom",method:"get",params:{id:t}})}function w(t){return Object(r["a"])({url:"/admin/face/getWhiteListFrom",method:"get",params:{id:t}})}function y(){return Object(r["a"])({url:"/admin/userWhitelis/doGetWhiteExcel",method:"get",responseType:"blob",params:{}})}function A(t){return Object(r["a"])({url:"/admin/userVisitorList/deleteVisitor",method:"get",params:{id:t}})}function C(t){return Object(r["a"])({url:"/admin/userVisitorList/addSingle",method:"get",params:{id:t}})}function k(t){return Object(r["a"])({url:"/admin/userVisitorList/getDetailPageList",method:"post",data:t})}function $(t){return Object(r["a"])({url:"/admin/userVisitorList/getDetailInfo/".concat(t),method:"get"})}function L(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 F(t){return Object(r["a"])({url:"/admin/auth/saveEnterpriseAccount",method:"post",data:t})}function I(t){return Object(r["a"])({url:"/admin/auth/queryAdminById/".concat(t),method:"get"})}function P(t,e){return Object(r["a"])({url:"/admin/auth/audit/".concat(t,"/").concat(e),method:"post"})}function T(t){return Object(r["a"])({url:"/admin/auth/queryEnterpriseAccount",method:"get"})}function D(t){return Object(r["a"])({url:"/admin/auth/queryPlaceInfos/".concat(t),method:"get"})}function _(t){return Object(r["a"])({url:"/admin/privateArea/getPrivateAreaList",method:"get",params:{adminId:t}})}function E(t){return Object(r["a"])({url:"/admin/privateArea/privateAreaPageList",method:"post",data:t})}function q(t){return Object(r["a"])({url:"/admin/privateArea/addOrUpdatePrivateArea",method:"post",data:t})}function N(t){return Object(r["a"])({url:"admin/privateArea/deletePrivateArea",method:"get",params:{privateAreaId:t}})}function V(t){return Object(r["a"])({url:"/admin/privateArea/privateAreaDevicePageList",method:"post",data:t})}function W(t){return Object(r["a"])({url:"/admin/privateArea/privateAreaWhitelistPageList",method:"post",data:t})}function z(t){return Object(r["a"])({url:"/admin/auth/punch/field-options",method:"get",params:{}})}function B(t){return Object(r["a"])({url:"/autoTaskInfo/getByPage",method:"post",data:t})}function G(t){return Object(r["a"])({url:"/autoTaskInfo/cancelTask",headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"post",params:{taskId:t}})}function S(t){return Object(r["a"])({url:"/systemNotice/edit",method:"post",data:t})}function Z(t){return Object(r["a"])({url:"/systemNotice/getNotice",method:"post",data:t})}function J(t){return Object(r["a"])({url:"/admin/auth/getPlaceAreas",method:"get",params:{}})}},"9ed6":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:"login-container"},[n("img",{staticClass:"bg",attrs:{src:t.bg,alt:""}}),n("img",{staticClass:"logo",attrs:{src:t.logo,alt:""}}),t.noticeData.isShow?n("div",{staticClass:"affiche-box"},[n("h4",[t._v(t._s(t.noticeData.titile))]),n("p",[t._v(" "+t._s(t.noticeData.content)+" ")]),n("div",{staticClass:"qrcode"},[n("img",{attrs:{src:t.noticeData.picture,alt:""}})])]):t._e(),n("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{rules:t.rules,model:t.loginForm,"auto-complete":"on","label-position":"left"}},[n("div",{staticClass:"title-container"},[n("h3",{staticClass:"title"},[t._v(t._s(t.title))])]),n("el-form-item",{attrs:{prop:"username"}},[n("span",{staticClass:"svg-container"},[n("svg-icon",{attrs:{"icon-class":"user"}})],1),n("el-input",{ref:"username",attrs:{placeholder:"请输入账号",name:"username",type:"text",tabindex:"1","auto-complete":"on"},model:{value:t.loginForm.username,callback:function(e){t.$set(t.loginForm,"username",e)},expression:"loginForm.username"}})],1),n("el-form-item",{attrs:{prop:"password"}},[n("span",{staticClass:"svg-container"},[n("svg-icon",{attrs:{"icon-class":"password"}})],1),n("el-input",{key:t.passwordType,ref:"password",attrs:{type:t.passwordType,placeholder:"请输入密码",name:"password",tabindex:"2","auto-complete":"on"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleLogin(e)}},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}}),n("span",{staticClass:"show-pwd",on:{click:t.showPwd}},[n("svg-icon",{attrs:{"icon-class":"password"===t.passwordType?"eye":"eye-open"}})],1)],1),n("el-button",{staticStyle:{width:"100%","margin-top":"10px",background:"#3d22d7"},attrs:{loading:t.loading,type:"primary"},nativeOn:{click:function(e){return e.preventDefault(),t.handleLogin(e)}}},[t._v("登录")])],1)],1)},a=[],o=(n("61f7"),n("4834")),i=n("c24f"),u=(n("df7c"),{name:"Login",data:function(){return{loginForm:{username:"",password:""},rules:{password:[{required:!0,message:"请输入密码",trigger:"blur"},{pattern:/^(((?=.*\d)(?=.*[a-z])(?=.*[A-Z]))|((?=.*\d)(?=.*[a-z])(?=.*[~!@#$%^&*]))|((?=.*\d)(?=.*[A-Z])(?=.*[~!@#$%^&*]))|((?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&*]))|((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&*]))).{10,32}$/,message:"必须大小写字母、数字、特殊字符,4种组合中至少满足3种,且密码长度在10-32位之间。若无法登录,请联系管理员!"}]},loading:!1,passwordType:"password",redirect:void 0,noticeData:{},title:"防控终端管理平台",bg:"",logo:""}},watch:{$route:{handler:function(t){this.redirect=t.query&&t.query.redirect},immediate:!0}},created:function(){this.getPicture(),this.systemNoticeGetNotice()},methods:{getPicture:function(){var t=this;Object(i["b"])().then((function(e){console.log(e),t.title=e.data.title,t.bg=e.data.bg,t.logo=e.data.logo,document.title=e.data.title,t.changeFavicon(e.data.favicon)}))},changeFavicon:function(t){var e=document.querySelector('link[rel="icon"]');null!==e?e.href=t:(e=document.createElement("link"),e.rel="icon",e.href=t,document.head.appendChild(e))},systemNoticeGetNotice:function(){var t=this;Object(o["M"])().then((function(e){t.noticeData=e.data}))},showPwd:function(){var t=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){t.$refs.password.focus()}))},handleLogin:function(){var t=this;this.$refs.loginForm.validate((function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,t.$store.dispatch("user/login",t.loginForm).then((function(){1===t.$store.getters.role||2===t.$store.getters.role||3===t.$store.getters.role||4===t.$store.getters.role||5===t.$store.getters.role?t.$router.push({path:"/index"}):99===t.$store.getters.role&&t.$router.push({path:"/machine_list/index"}),t.loading=!1})).catch((function(){t.loading=!1}))}))}}}),s=u,c=(n("4185"),n("1b88"),n("2877")),d=Object(c["a"])(s,r,a,!1,null,"1ea3d3b0",null);e["default"]=d.exports},dea5:function(t,e,n){}}]);