12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f1c0a4f0"],{"0aed":function(e,t,r){"use strict";r("aaba");var n=r("bf16"),a=r("86d4"),s=r("238a"),i=r("f6b4"),o=r("cb3d"),l=r("8714"),c=o("species"),u=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();e.exports=function(e,t,r){var p=o(e),d=!s((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=d?!s((function(){var t=!1,r=/a/;return r.exec=function(){return t=!0,null},"split"===e&&(r.constructor={},r.constructor[c]=function(){return r}),r[p](""),!t})):void 0;if(!d||!m||"replace"===e&&!u||"split"===e&&!f){var h=/./[p],v=r(i,p,""[e],(function(e,t,r,n,a){return t.exec===l?d&&!a?{done:!0,value:h.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}})),g=v[0],b=v[1];n(String.prototype,e,g),a(RegExp.prototype,p,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},"2fd4":function(e,t,r){var n=r("fb68"),a=r("75c4"),s=r("cb3d")("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==a(e))}},7108:function(e,t,r){"use strict";var n=r("7e23"),a=RegExp.prototype.exec;e.exports=function(e,t){var r=e.exec;if("function"===typeof r){var s=r.call(e,t);if("object"!==typeof s)throw new TypeError("RegExp exec method returned something other than an Object or null");return s}if("RegExp"!==n(e))throw new TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},8714:function(e,t,r){"use strict";var n=r("f1fe"),a=RegExp.prototype.exec,s=String.prototype.replace,i=a,o="lastIndex",l=function(){var e=/a/,t=/b*/g;return a.call(e,"a"),a.call(t,"a"),0!==e[o]||0!==t[o]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(i=function(e){var t,r,i,u,f=this;return c&&(r=new RegExp("^"+f.source+"$(?!\\s)",n.call(f))),l&&(t=f[o]),i=a.call(f,e),l&&i&&(f[o]=f.global?i.index+i[0].length:t),c&&i&&i.length>1&&s.call(i[0],r,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(i[u]=void 0)})),i}),e.exports=i},"8e69":function(e,t,r){},"9a33":function(e,t,r){"use strict";var n=r("2fd4"),a=r("69b3"),s=r("f63e"),i=r("e754"),o=r("eafa"),l=r("7108"),c=r("8714"),u=r("238a"),f=Math.min,p=[].push,d="split",m="length",h="lastIndex",v=4294967295,g=!u((function(){RegExp(v,"y")}));r("0aed")("split",2,(function(e,t,r,u){var b;return b="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[m]||2!="ab"[d](/(?:ab)*/)[m]||4!="."[d](/(.?)(.?)/)[m]||"."[d](/()()/)[m]>1||""[d](/.?/)[m]?function(e,t){var a=String(this);if(void 0===e&&0===t)return[];if(!n(e))return r.call(a,e,t);var s,i,o,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=void 0===t?v:t>>>0,g=new RegExp(e.source,u+"g");while(s=c.call(g,a)){if(i=g[h],i>f&&(l.push(a.slice(f,s.index)),s[m]>1&&s.index<a[m]&&p.apply(l,s.slice(1)),o=s[0][m],f=i,l[m]>=d))break;g[h]===s.index&&g[h]++}return f===a[m]?!o&&g.test("")||l.push(""):l.push(a.slice(f)),l[m]>d?l.slice(0,d):l}:"0"[d](void 0,0)[m]?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,n){var a=e(this),s=void 0==r?void 0:r[t];return void 0!==s?s.call(r,a,n):b.call(String(a),r,n)},function(e,t){var n=u(b,e,this,t,b!==r);if(n.done)return n.value;var c=a(e),p=String(this),d=s(c,RegExp),m=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(g?"y":"g"),x=new d(g?c:"^(?:"+c.source+")",h),y=void 0===t?v:t>>>0;if(0===y)return[];if(0===p.length)return null===l(x,p)?[p]:[];var w=0,$=0,k=[];while($<p.length){x.lastIndex=g?$:0;var E,R=l(x,g?p:p.slice($));if(null===R||(E=f(o(x.lastIndex+(g?0:$)),p.length))===w)$=i(p,$,m);else{if(k.push(p.slice(w,$)),k.length===y)return k;for(var C=1;C<=R.length-1;C++)if(k.push(R[C]),k.length===y)return k;$=w=E}}return k.push(p.slice(w)),k}]}))},a6c7:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("section",{staticClass:"add"},[r("p",[e._v("系统管理 > 新增账户")]),r("div",{staticClass:"content"},[r("el-form",{attrs:{"label-width":"80px"}},[r("el-form-item",{attrs:{label:"账号"}},[r("el-input",{attrs:{placeholder:"账号"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),r("el-form-item",{attrs:{label:"密码"}},[r("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1),r("el-form-item",{attrs:{label:"确认密码"}},[r("el-input",{attrs:{type:"password",placeholder:"确认密码"},model:{value:e.form.repassword,callback:function(t){e.$set(e.form,"repassword",t)},expression:"form.repassword"}})],1),r("el-form-item",{attrs:{label:"姓名"}},[r("el-input",{attrs:{placeholder:"姓名"},model:{value:e.form.realname,callback:function(t){e.$set(e.form,"realname",t)},expression:"form.realname"}})],1),r("el-form-item",{attrs:{label:"手机"}},[r("el-input",{attrs:{placeholder:"手机"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),r("el-form-item",{attrs:{label:"权限"}},[r("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:e.permission,callback:function(t){e.permission=t},expression:"permission"}},e._l(e.permissions,(function(e,t){return r("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1),r("el-form-item",{attrs:{label:"状态"}},[r("el-radio",{attrs:{label:1},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},[e._v("激活")]),r("el-radio",{attrs:{label:2},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},[e._v("禁用")])],1),r("el-form-item",{attrs:{label:" "}},[r("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")])],1)],1)],1)])},a=[],s=(r("9a33"),{data:function(){return{test:"",form:{name:"",realname:"",password:"",repassword:"",permissions:[],status:1},permissions:[],permission:[]}},methods:{getData:function(){var e=this;this.$api.getAccountById({id:this.form.id}).then((function(t){e.form=t.data.data,t.data.data.permissions&&(e.permission=t.data.data.permissions.split(","))}))},save:function(){var e=this,t=this.form;t.permissions=this.permission.join(","),t.id?this.$api.editAccount(t).then((function(t){0==t.data.code?(e.$message({message:"修改成功!",type:"success"}),e.$router.push({path:"/system"})):e.$message.error(t.data.message)})):this.$api.addAccount(t).then((function(t){0==t.data.code?(e.$message({message:"添加成功!",type:"success"}),e.$router.push({path:"/system"})):e.$message.error(t.data.message)}))}},created:function(){var e=this;this.$api.getPerList().then((function(t){e.permissions=t.data.data})),this.$route.query.id&&(this.form.id=this.$route.query.id,this.id=this.$route.query.id,this.getData())}}),i=s,o=(r("bdfe"),r("4023")),l=Object(o["a"])(i,n,a,!1,null,null,null);t["default"]=l.exports},aaba:function(e,t,r){"use strict";var n=r("8714");r("e46b")({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},bdfe:function(e,t,r){"use strict";var n=r("8e69"),a=r.n(n);a.a},e754:function(e,t,r){"use strict";var n=r("fc81")(!0);e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},f1fe:function(e,t,r){"use strict";var n=r("69b3");e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},fc81:function(e,t,r){var n=r("ee21"),a=r("f6b4");e.exports=function(e){return function(t,r){var s,i,o=String(a(t)),l=n(r),c=o.length;return l<0||l>=c?e?"":void 0:(s=o.charCodeAt(l),s<55296||s>56319||l+1===c||(i=o.charCodeAt(l+1))<56320||i>57343?e?o.charAt(l):s:e?o.slice(l,l+2):i-56320+(s-55296<<10)+65536)}}}}]);
- //# sourceMappingURL=chunk-f1c0a4f0.71a0a36b.js.map
|