Commit dfac1057 by Sxy

build

parent f63e8f1a
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/ccc.png><title></title><link href=/css/chunk-14b9857b.0dc416de.css rel=prefetch><link href=/css/chunk-175acaff.d8eef113.css rel=prefetch><link href=/css/chunk-1b756945.9e7173ae.css rel=prefetch><link href=/css/chunk-21b5182a.6e6ae301.css rel=prefetch><link href=/css/chunk-2c359864.0dc416de.css rel=prefetch><link href=/css/chunk-3385141a.0dc416de.css rel=prefetch><link href=/css/chunk-3f4029e7.84fd9662.css rel=prefetch><link href=/css/chunk-5ccefbbb.9e7173ae.css rel=prefetch><link href=/css/chunk-61b0b1e5.9e7173ae.css rel=prefetch><link href=/css/chunk-738a8724.71e3d438.css rel=prefetch><link href=/css/chunk-8e32057a.e8e9a917.css rel=prefetch><link href=/css/chunk-e7e51fa0.9e7173ae.css rel=prefetch><link href=/css/chunk-ff3eaeb0.9e7173ae.css rel=prefetch><link href=/js/chunk-037694a5.7e50cc17.js rel=prefetch><link href=/js/chunk-0aa2a834.9028f9e8.js rel=prefetch><link href=/js/chunk-137dcf78.d8fcc61f.js rel=prefetch><link href=/js/chunk-14b9857b.35e42781.js rel=prefetch><link href=/js/chunk-15d6294e.911f90c4.js rel=prefetch><link href=/js/chunk-175acaff.ca3f7e65.js rel=prefetch><link href=/js/chunk-1792c498.c1554a3b.js rel=prefetch><link href=/js/chunk-1a0615f2.b051fd28.js rel=prefetch><link href=/js/chunk-1b756945.f2391a13.js rel=prefetch><link href=/js/chunk-21b5182a.64203a99.js rel=prefetch><link href=/js/chunk-22347577.172e21a4.js rel=prefetch><link href=/js/chunk-24a41303.88feac34.js rel=prefetch><link href=/js/chunk-25d9ab36.087a7b9f.js rel=prefetch><link href=/js/chunk-291faf05.c5999b66.js rel=prefetch><link href=/js/chunk-2aeda6fa.2bd11851.js rel=prefetch><link href=/js/chunk-2b3066fa.e9594f63.js rel=prefetch><link href=/js/chunk-2c359864.90a950b1.js rel=prefetch><link href=/js/chunk-2d0d61ef.a431f6b6.js rel=prefetch><link href=/js/chunk-2d0e68e0.1a313c84.js rel=prefetch><link href=/js/chunk-2d0efc5d.662e1339.js rel=prefetch><link href=/js/chunk-3385141a.a6e1a986.js rel=prefetch><link href=/js/chunk-3a0bcea0.192dd1cf.js rel=prefetch><link href=/js/chunk-3f4029e7.99f54f70.js rel=prefetch><link href=/js/chunk-477a8e91.c603527d.js rel=prefetch><link href=/js/chunk-4b58f216.e79a0ff7.js rel=prefetch><link href=/js/chunk-4fbb2454.6d97b621.js rel=prefetch><link href=/js/chunk-5ccefbbb.e0ae48f8.js rel=prefetch><link href=/js/chunk-5e7b929d.f3ce9ea9.js rel=prefetch><link href=/js/chunk-61b0b1e5.e4ead4e0.js rel=prefetch><link href=/js/chunk-65e97401.3b9c7780.js rel=prefetch><link href=/js/chunk-738a8724.0af49f4b.js rel=prefetch><link href=/js/chunk-75b126e3.7ed92c02.js rel=prefetch><link href=/js/chunk-8e32057a.9961faaf.js rel=prefetch><link href=/js/chunk-9947983a.7fd1c1d8.js rel=prefetch><link href=/js/chunk-e7e51fa0.2dc827c3.js rel=prefetch><link href=/js/chunk-ff3eaeb0.73991da8.js rel=prefetch><link href=/css/app.4f840f8a.css rel=preload as=style><link href=/css/chunk-vendors.1d90d08d.css rel=preload as=style><link href=/js/app.16ddfedb.js rel=preload as=script><link href=/js/chunk-vendors.d7971afc.js rel=preload as=script><link href=/css/chunk-vendors.1d90d08d.css rel=stylesheet><link href=/css/app.4f840f8a.css rel=stylesheet></head><body><noscript><strong>We're sorry but iview-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.d7971afc.js></script><script src=/js/app.16ddfedb.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/ccc.png><title></title><link href=/css/chunk-14b9857b.0dc416de.css rel=prefetch><link href=/css/chunk-175acaff.d8eef113.css rel=prefetch><link href=/css/chunk-1b756945.9e7173ae.css rel=prefetch><link href=/css/chunk-21b5182a.6e6ae301.css rel=prefetch><link href=/css/chunk-2c359864.0dc416de.css rel=prefetch><link href=/css/chunk-3385141a.0dc416de.css rel=prefetch><link href=/css/chunk-3f4029e7.84fd9662.css rel=prefetch><link href=/css/chunk-5ccefbbb.9e7173ae.css rel=prefetch><link href=/css/chunk-61b0b1e5.9e7173ae.css rel=prefetch><link href=/css/chunk-738a8724.71e3d438.css rel=prefetch><link href=/css/chunk-8e32057a.e8e9a917.css rel=prefetch><link href=/css/chunk-e7e51fa0.9e7173ae.css rel=prefetch><link href=/css/chunk-ff3eaeb0.9e7173ae.css rel=prefetch><link href=/js/chunk-037694a5.7e50cc17.js rel=prefetch><link href=/js/chunk-0aa2a834.9028f9e8.js rel=prefetch><link href=/js/chunk-137dcf78.d8fcc61f.js rel=prefetch><link href=/js/chunk-14b9857b.35e42781.js rel=prefetch><link href=/js/chunk-15d6294e.911f90c4.js rel=prefetch><link href=/js/chunk-175acaff.ca3f7e65.js rel=prefetch><link href=/js/chunk-1792c498.c1554a3b.js rel=prefetch><link href=/js/chunk-1a0615f2.b051fd28.js rel=prefetch><link href=/js/chunk-1b756945.f2391a13.js rel=prefetch><link href=/js/chunk-21b5182a.32c97099.js rel=prefetch><link href=/js/chunk-22347577.172e21a4.js rel=prefetch><link href=/js/chunk-24a41303.88feac34.js rel=prefetch><link href=/js/chunk-25d9ab36.087a7b9f.js rel=prefetch><link href=/js/chunk-291faf05.c5999b66.js rel=prefetch><link href=/js/chunk-2aeda6fa.2bd11851.js rel=prefetch><link href=/js/chunk-2b3066fa.e9594f63.js rel=prefetch><link href=/js/chunk-2c359864.90a950b1.js rel=prefetch><link href=/js/chunk-2d0d61ef.a431f6b6.js rel=prefetch><link href=/js/chunk-2d0e68e0.1a313c84.js rel=prefetch><link href=/js/chunk-2d0efc5d.662e1339.js rel=prefetch><link href=/js/chunk-3385141a.a6e1a986.js rel=prefetch><link href=/js/chunk-3a0bcea0.192dd1cf.js rel=prefetch><link href=/js/chunk-3f4029e7.53caf62c.js rel=prefetch><link href=/js/chunk-477a8e91.c603527d.js rel=prefetch><link href=/js/chunk-4b58f216.e79a0ff7.js rel=prefetch><link href=/js/chunk-4fbb2454.6d97b621.js rel=prefetch><link href=/js/chunk-5ccefbbb.e0ae48f8.js rel=prefetch><link href=/js/chunk-5e7b929d.f3ce9ea9.js rel=prefetch><link href=/js/chunk-61b0b1e5.e4ead4e0.js rel=prefetch><link href=/js/chunk-65e97401.9a1a9380.js rel=prefetch><link href=/js/chunk-738a8724.0af49f4b.js rel=prefetch><link href=/js/chunk-75b126e3.2bc9add9.js rel=prefetch><link href=/js/chunk-8e32057a.c091bd4e.js rel=prefetch><link href=/js/chunk-9947983a.7fd1c1d8.js rel=prefetch><link href=/js/chunk-e7e51fa0.2dc827c3.js rel=prefetch><link href=/js/chunk-ff3eaeb0.73991da8.js rel=prefetch><link href=/css/app.4f840f8a.css rel=preload as=style><link href=/css/chunk-vendors.1d90d08d.css rel=preload as=style><link href=/js/app.206a0d30.js rel=preload as=script><link href=/js/chunk-vendors.d7971afc.js rel=preload as=script><link href=/css/chunk-vendors.1d90d08d.css rel=stylesheet><link href=/css/app.4f840f8a.css rel=stylesheet></head><body><noscript><strong>We're sorry but iview-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.d7971afc.js></script><script src=/js/app.206a0d30.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-75b126e3"],{"391e":function(e,t,r){"use strict";var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},n=[],o=r("9ee1"),i=o["a"],a=r("9ca4"),l=Object(a["a"])(i,s,n,!1,null,null,null);t["a"]=l.exports},"9dd9":function(e,t,r){var s=r("e7ad"),n=r("1e5b"),o=r("064e").f,i=r("2ea2").f,a=r("2fd4"),l=r("f1fe"),u=s.RegExp,c=u,p=u.prototype,f=/a/g,d=/a/g,m=new u(f)!==f;if(r("149f")&&(!m||r("238a")((function(){return d[r("cb3d")("match")]=!1,u(f)!=f||u(d)==d||"/a/i"!=u(f,"i")})))){u=function(e,t){var r=this instanceof u,s=a(e),o=void 0===t;return!r&&s&&e.constructor===u&&o?e:n(m?new c(s&&!o?e.source:e,t):c((s=e instanceof u)?e.source:e,s&&o?l.call(e):t),r?this:p,u)};for(var g=function(e){e in u||o(u,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})},h=i(c),b=0;h.length>b;)g(h[b++]);p.constructor=u,u.prototype=p,r("bf16")(s,"RegExp",u)}r("1157")("RegExp")},"9ee1":function(e,t,r){"use strict";(function(e){r("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var r=e("#framediv"),s=r.get()[0],n=window.innerHeight-s.offsetTop-t.advalue;t.frameHeight=n,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,r("a336"))},d495:function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Row",{attrs:{type:"flex"}},[e.curuser.isAdmin?r("i-col",{attrs:{span:"24"}},[r("FormAccount",{ref:"entinfo",attrs:{fminfo:e.entforminfo,noExpandAuth:"",isNotFixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("Button",{on:{click:e.upentinfo}},[e._v("保存")])]}}],null,!1,3009153987)})],1):e._e(),r("i-col",{staticStyle:{"margin-top":"10px"},attrs:{span:"24"}},[r("FormAccount",{ref:"uinfo",attrs:{fminfo:e.forminfo,noExpandAuth:"",isNotFixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("Button",{on:{click:e.upuserinfo}},[e._v("保存")])]}}])})],1),r("i-col",{staticStyle:{"margin-top":"10px"},attrs:{span:"24"}},[r("FormAccount",{ref:"pwdinfo",attrs:{fminfo:e.pwdinfo,refvalidatemethod:e.validmethod,noExpandAuth:"",isNotFixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("Button",{on:{click:e.uppwdinfo}},[e._v("保存")])]}}])})],1)],1)},n=[],o=(r("9dd9"),r("0086")),i=r("391e"),a=r("7e1e"),l={name:"accountinfo_page",data:function(){return{forminfo:{name:"用户资料",main:[{title:"控制信息",key:"baseinfo",ctls:[{type:"switch",label:"是否接受分配任务",prop:"isAllocated",opentext:"是",closetext:"否",trurcolor:"",falsecolor:"",placeHolder:"",style:"",rules:[]}]},{title:"基本信息",key:"baseinfo",ctls:[{type:"input",label:"帐户名称",prop:"userName",placeHolder:"请输入帐户名",style:"",disabled:!0,rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"用户昵称",prop:"nickName",placeHolder:"请输入昵称",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"用户uin",prop:"tx_uin",placeHolder:"请输入uin",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"邮件地址",prop:"mail",placeHolder:"请输入邮件",style:"",rules:[{required:!0,message:" ",trigger:"blur"},{type:"email",message:"不正确的地址格式",trigger:"blur"}]},{type:"upload",label:"用户头像",prop:"headUrl",placeHolder:"请上传头像",style:"",rules:[]}]}],lists:[]},pwdinfo:{name:"密码设置",main:[{title:"密码修改",key:"baseinfo",cols:1,ctls:[{type:"password",label:"新设密码",prop:"onepassword",placeHolder:"请输入新密码",style:"",rules:[{required:!0,message:" ",trigger:"blur"},{validator:"validatex",trigger:"blur",iscustom:!0}]},{type:"password",label:"密码确认",prop:"repeatpassword",placeHolder:"请重新输入新密码",style:"",rules:[{required:!0,message:" ",trigger:"blur"},{validator:"validatex",trigger:"blur",iscustom:!0}]}]}],lists:[]},entforminfo:{name:"企业资料",main:[{title:"基本信息",key:"baseinfo",ctls:[{type:"input",label:"名称",prop:"name",placeHolder:"请输入企业名称",style:"",disabled:!0,rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"企业KEY",prop:"companykey",disabled:!0,placeHolder:"请输入昵称",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"电话",prop:"phone",placeHolder:"请输入昵称",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"企业邮件",prop:"mail",placeHolder:"请输入邮件",style:"",rules:[{required:!0,message:" ",trigger:"blur"},{type:"email",message:"不正确的地址格式",trigger:"blur"}]},{type:"input",label:"地址",prop:"address",placeHolder:"请输入邮件",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"upload",label:"营业执照",prop:"licenseUrl",placeHolder:"请上传头像",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]}]}],lists:[]}}},components:{FormAccount:o["a"],PageSpace:i["a"]},created:function(){},mounted:function(){this.userdata.isAdmin&&(this.$refs.entinfo.formModel=this.entdata),this.$refs.uinfo.formModel=this.userdata},computed:{curuser:function(){return this.deepclone(this.$store.state.user.userobj)},entdata:function(){return this.curuser.company},userdata:function(){return this.curuser}},methods:{complexVerification:function(e,t){var r={lW:"[a-z]",uW:"[A-Z]",nW:"[0-9]",sW:"[\\u0020-\\u002F\\u003A-\\u0040\\u005B-\\u0060\\u007B-\\u007E]"},s=function(e,t){var r=new RegExp(t);return!!r.test(e)};if(e.length<8)t(new Error("密码不得小于8位"));else{var n={l:s(e,r.lW),u:s(e,r.uW),n:s(e,r.nW),s:s(e,r.sW)};if(n.l&&n.u&&n.n||n.l&&n.u&&n.s||n.s&&n.u&&n.n||n.s&&n.l&&n.n)return!0;t(new Error("您的密码必须含有“小写字母”、“大写字母”、“数字”、“特殊符号”中的任意三种"))}},validmethod:function(e,t,r){var s=this.$refs.pwdinfo.formModel["repeatpassword"],n=this.$refs.pwdinfo.formModel["onepassword"];return console.log(s,n),s!=n?r(new Error("两次输入的密码不一致")):this.complexVerification(s,r)?r():void 0},deepclone:function(e){var t=JSON.stringify(e);return JSON.parse(t)},upuserinfo:function(){var e=this;this.$refs.uinfo.validate((function(t){if(t){var r=e.$refs.uinfo.formModel;Object(a["m"])("/web/auth/userCtl/update",r).then((function(t){var r=t.data;if(console.log(r),0==r.status){var s=r.data;console.log("........................................................................user.",s),e.$store.state.user.userobj=s,e.$Message.success("当前操作成功.")}else e.$Message.error("当前操作失败,请重试或联系管理员.")}))}}))},upentinfo:function(){var e=this;this.$refs.entinfo.validate((function(t){if(t){var r=e.$refs.entinfo.formModel;Object(a["m"])("/web/common/companyCtl/update",r).then((function(t){var r=t.data;if(0==r.status){var s=r.data;console.log("............................cmp",s),e.$store.state.user.userobj.company=s,e.$Message.success("当前操作成功.")}else e.$Message.error("当前操作失败,请重试或联系管理员.")}))}}))},uppwdinfo:function(){var e=this;this.$refs.pwdinfo.validate((function(t){if(t){var r=e.$refs.pwdinfo.formModel;Object(a["m"])("/web/auth/userCtl/resetPassword",r).then((function(t){var r=t.data;if(0==r.status){r.data;e.$Message.success("当前操作成功."),e.$refs.pwdinfo.resetForm()}else e.$Message.error(r.msg||"当前操作失败,请重试或联系管理员.")}))}}))}}},u=l,c=r("9ca4"),p=Object(c["a"])(u,s,n,!1,null,null,null);t["default"]=p.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-75b126e3"],{"391e":function(e,t,r){"use strict";var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},n=[],o=r("9ee1"),a=o["a"],i=r("9ca4"),l=Object(i["a"])(a,s,n,!1,null,null,null);t["a"]=l.exports},"9dd9":function(e,t,r){var s=r("e7ad"),n=r("1e5b"),o=r("064e").f,a=r("2ea2").f,i=r("2fd4"),l=r("f1fe"),u=s.RegExp,c=u,f=u.prototype,p=/a/g,d=/a/g,m=new u(p)!==p;if(r("149f")&&(!m||r("238a")((function(){return d[r("cb3d")("match")]=!1,u(p)!=p||u(d)==d||"/a/i"!=u(p,"i")})))){u=function(e,t){var r=this instanceof u,s=i(e),o=void 0===t;return!r&&s&&e.constructor===u&&o?e:n(m?new c(s&&!o?e.source:e,t):c((s=e instanceof u)?e.source:e,s&&o?l.call(e):t),r?this:f,u)};for(var g=function(e){e in u||o(u,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})},h=a(c),b=0;h.length>b;)g(h[b++]);f.constructor=u,u.prototype=f,r("bf16")(s,"RegExp",u)}r("1157")("RegExp")},"9ee1":function(e,t,r){"use strict";(function(e){r("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var r=e("#framediv"),s=r.get()[0],n=window.innerHeight-s.offsetTop-t.advalue;t.frameHeight=n,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,r("a336"))},d495:function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Row",{attrs:{type:"flex"}},[e.curuser.isAdmin?r("i-col",{attrs:{span:"24"}},[r("FormAccount",{ref:"entinfo",attrs:{fminfo:e.entforminfo,noExpandAuth:"",isNotFixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("Button",{on:{click:e.upentinfo}},[e._v("保存")])]}}],null,!1,3009153987)})],1):e._e(),r("i-col",{staticStyle:{"margin-top":"10px"},attrs:{span:"24"}},[r("FormAccount",{ref:"uinfo",attrs:{fminfo:e.forminfo,noExpandAuth:"",isNotFixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("Button",{on:{click:e.upuserinfo}},[e._v("保存")])]}}])})],1),r("i-col",{staticStyle:{"margin-top":"10px"},attrs:{span:"24"}},[r("FormAccount",{ref:"pwdinfo",attrs:{fminfo:e.pwdinfo,refvalidatemethod:e.validmethod,noExpandAuth:"",isNotFixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("Button",{on:{click:e.uppwdinfo}},[e._v("保存")])]}}])})],1)],1)},n=[],o=(r("9dd9"),r("0086")),a=r("391e"),i=r("7e1e"),l={name:"accountinfo_page",data:function(){return{forminfo:{name:"用户资料",main:[{title:"控制信息",key:"baseinfo",ctls:[{type:"switch",label:"是否接受分配任务",prop:"isAllocated",opentext:"是",closetext:"否",trurcolor:"",falsecolor:"",placeHolder:"",style:"",rules:[]}]},{title:"基本信息",key:"baseinfo",ctls:[{type:"input",label:"帐户名称",prop:"userName",placeHolder:"请输入帐户名",style:"",disabled:!0,rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"用户昵称",prop:"nickName",placeHolder:"请输入昵称",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"邮件地址",prop:"mail",placeHolder:"请输入邮件",style:"",rules:[{required:!0,message:" ",trigger:"blur"},{type:"email",message:"不正确的地址格式",trigger:"blur"}]},{type:"upload",label:"用户头像",prop:"headUrl",placeHolder:"请上传头像",style:"",rules:[]}]}],lists:[]},pwdinfo:{name:"密码设置",main:[{title:"密码修改",key:"baseinfo",cols:1,ctls:[{type:"password",label:"新设密码",prop:"onepassword",placeHolder:"请输入新密码",style:"",rules:[{required:!0,message:" ",trigger:"blur"},{validator:"validatex",trigger:"blur",iscustom:!0}]},{type:"password",label:"密码确认",prop:"repeatpassword",placeHolder:"请重新输入新密码",style:"",rules:[{required:!0,message:" ",trigger:"blur"},{validator:"validatex",trigger:"blur",iscustom:!0}]}]}],lists:[]},entforminfo:{name:"企业资料",main:[{title:"基本信息",key:"baseinfo",ctls:[{type:"input",label:"名称",prop:"name",placeHolder:"请输入企业名称",style:"",disabled:!0,rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"企业KEY",prop:"companykey",disabled:!0,placeHolder:"请输入昵称",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"电话",prop:"phone",placeHolder:"请输入昵称",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"企业邮件",prop:"mail",placeHolder:"请输入邮件",style:"",rules:[{required:!0,message:" ",trigger:"blur"},{type:"email",message:"不正确的地址格式",trigger:"blur"}]},{type:"input",label:"地址",prop:"address",placeHolder:"请输入邮件",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"upload",label:"营业执照",prop:"licenseUrl",placeHolder:"请上传头像",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]}]}],lists:[]}}},components:{FormAccount:o["a"],PageSpace:a["a"]},created:function(){},mounted:function(){this.userdata.isAdmin&&(this.$refs.entinfo.formModel=this.entdata),this.$refs.uinfo.formModel=this.userdata},computed:{curuser:function(){return this.deepclone(this.$store.state.user.userobj)},entdata:function(){return this.curuser.company},userdata:function(){return this.curuser}},methods:{complexVerification:function(e,t){var r={lW:"[a-z]",uW:"[A-Z]",nW:"[0-9]",sW:"[\\u0020-\\u002F\\u003A-\\u0040\\u005B-\\u0060\\u007B-\\u007E]"},s=function(e,t){var r=new RegExp(t);return!!r.test(e)};if(e.length<8)t(new Error("密码不得小于8位"));else{var n={l:s(e,r.lW),u:s(e,r.uW),n:s(e,r.nW),s:s(e,r.sW)};if(n.l&&n.u&&n.n||n.l&&n.u&&n.s||n.s&&n.u&&n.n||n.s&&n.l&&n.n)return!0;t(new Error("您的密码必须含有“小写字母”、“大写字母”、“数字”、“特殊符号”中的任意三种"))}},validmethod:function(e,t,r){var s=this.$refs.pwdinfo.formModel["repeatpassword"],n=this.$refs.pwdinfo.formModel["onepassword"];return console.log(s,n),s!=n?r(new Error("两次输入的密码不一致")):this.complexVerification(s,r)?r():void 0},deepclone:function(e){var t=JSON.stringify(e);return JSON.parse(t)},upuserinfo:function(){var e=this;this.$refs.uinfo.validate((function(t){if(t){var r=e.$refs.uinfo.formModel;Object(i["m"])("/web/auth/userCtl/update",r).then((function(t){var r=t.data;if(console.log(r),0==r.status){var s=r.data;console.log("........................................................................user.",s),e.$store.state.user.userobj=s,e.$Message.success("当前操作成功.")}else e.$Message.error("当前操作失败,请重试或联系管理员.")}))}}))},upentinfo:function(){var e=this;this.$refs.entinfo.validate((function(t){if(t){var r=e.$refs.entinfo.formModel;Object(i["m"])("/web/common/companyCtl/update",r).then((function(t){var r=t.data;if(0==r.status){var s=r.data;console.log("............................cmp",s),e.$store.state.user.userobj.company=s,e.$Message.success("当前操作成功.")}else e.$Message.error("当前操作失败,请重试或联系管理员.")}))}}))},uppwdinfo:function(){var e=this;this.$refs.pwdinfo.validate((function(t){if(t){var r=e.$refs.pwdinfo.formModel;Object(i["m"])("/web/auth/userCtl/resetPassword",r).then((function(t){var r=t.data;if(0==r.status){r.data;e.$Message.success("当前操作成功."),e.$refs.pwdinfo.resetForm()}else e.$Message.error(r.msg||"当前操作失败,请重试或联系管理员.")}))}}))}}},u=l,c=r("9ca4"),f=Object(c["a"])(u,s,n,!1,null,null,null);t["default"]=f.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8e32057a"],{"18d0":function(e,t,r){},"4b4f":function(e,t,r){"use strict";var o=r("18d0"),n=r.n(o);n.a},e49c:function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"login"},[r("div",{staticClass:"login-con"},[r("Card",{staticStyle:{"border-radius":"0px"},attrs:{icon:"log-in",bordered:!1}},[r("p",{attrs:{slot:"title"},on:{click:function(t){t.preventDefault(),e.ispasslogin=!0}},slot:"title"},[r("a",{attrs:{href:"#"}},[e._v("密码登录")])]),r("div",{staticClass:"form-con"},[e.ispasslogin?e._e():r("MobileForm",{on:{"on-success-valid":e.handleSubmit,onsendvcode:e.onsendvcode}}),e.ispasslogin?r("login-form",{on:{"on-success-valid":e.handleSubmit}}):e._e()],1)])],1)])},n=[],s=(r("5ab2"),r("6d57"),r("e10e"),r("13c1")),a=r("c24f"),i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Form",{ref:"loginForm",attrs:{model:e.form,rules:e.rules},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSubmit(t)}}},[r("FormItem",{attrs:{prop:"userName"}},[r("Input",{attrs:{placeholder:"请输入用户名"},model:{value:e.form.userName,callback:function(t){e.$set(e.form,"userName",t)},expression:"form.userName"}},[r("span",{attrs:{slot:"prepend"},slot:"prepend"},[r("Icon",{attrs:{size:16,type:"ios-person"}})],1)])],1),r("FormItem",{attrs:{prop:"password"}},[r("Input",{attrs:{type:"password",placeholder:"请输入密码"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}},[r("span",{attrs:{slot:"prepend"},slot:"prepend"},[r("Icon",{attrs:{size:14,type:"md-lock"}})],1)])],1),r("FormItem",[r("Button",{attrs:{type:"primary",long:""},on:{click:e.handleSubmit}},[e._v("登录")])],1)],1)},l=[],c={name:"LoginForm",props:{userNameRules:{type:Array,default:function(){return[{required:!0,message:" ",trigger:"blur"}]}},passwordRules:{type:Array,default:function(){return[{required:!0,message:" ",trigger:"blur"}]}}},data:function(){return{form:{userName:"",password:""}}},computed:{rules:function(){return{userName:this.userNameRules,password:this.passwordRules}}},methods:{handleSubmit:function(){var e=this;this.$refs.loginForm.validate((function(t){t&&e.$emit("on-success-valid",{userName:e.form.userName.trim(),password:e.form.password})}))}}},u=c,d=r("9ca4"),m=Object(d["a"])(u,i,l,!1,null,null,null),p=m.exports,f=p,b=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Form",{ref:"loginForm",attrs:{model:e.form,rules:e.rules},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSubmit(t)}}},[r("FormItem",{attrs:{prop:"mobile"}},[r("Input",{attrs:{placeholder:"请输入手机号"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}},[r("span",{attrs:{slot:"prepend"},slot:"prepend"},[r("Icon",{attrs:{size:16,type:"ios-person"}})],1)])],1),r("FormItem",{attrs:{prop:"vcode"}},[r("Input",{attrs:{placeholder:"请输入收到的验证码"},model:{value:e.form.vcode,callback:function(t){e.$set(e.form,"vcode",t)},expression:"form.vcode"}},[r("span",{attrs:{slot:"prepend"},slot:"prepend"},[r("Icon",{attrs:{size:14,type:"md-lock"}})],1),r("span",{attrs:{slot:"append"},slot:"append"},[e.isshowtime?e._e():r("Button",{attrs:{type:"primary"},on:{click:e.sendVCode}},[e._v("发送验证码")]),e.isshowtime?r("span",[e._v(e._s(e.leftseconds)+"秒")]):e._e()],1)])],1),r("FormItem",[r("Button",{attrs:{type:"primary",long:""},on:{click:e.handleSubmit}},[e._v("登录")])],1)],1)},h=[],v={name:"PhoneForm",props:{mobileRules:{type:Array,default:function(){return[{required:!0,message:"电话号码不能为空",trigger:"blur"}]}},vcodeRules:{type:Array,default:function(){return[{required:!0,message:"验证码不能为空",trigger:"blur"}]}}},data:function(){return{form:{mobile:"",vcode:""},isshowtime:!1,leftseconds:60}},computed:{rules:function(){return{mobile:this.mobileRules,vcode:this.vcodeRules}}},methods:{sendVCode:function(){var e=this;if(""!=this.form.mobile.trim()){var t=60;this.isshowtime=!0;var r=setInterval((function(){e.leftseconds=t--,0==t&&(clearInterval(r),e.isshowtime=!1)}),1e3);this.$emit("onsendvcode",{mobile:this.form.mobile})}},handleSubmit:function(){var e=this;this.$refs.loginForm.validate((function(t){t&&e.$emit("on-success-valid",{mobile:e.form.mobile,vcode:e.form.vcode})}))}}},g=v,y=Object(d["a"])(g,b,h,!1,null,null,null),w=y.exports,O=w,k=r("9f3a");function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){Object(s["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var F={data:function(){return{ispasslogin:!0}},components:{LoginForm:f,MobileForm:O},methods:j(j({},Object(k["b"])(["handleLogin","getUserInfo","handleLogOut"])),{},{onsendvcode:function(e){Object(a["q"])(e).then((function(e){e.data;console.log(e.data)}))},handleSubmit:function(e){var t=this;this.handleLogin(e).then((function(e){e.hint&&t.$Notice.warning({title:"系统通知",desc:e.hint}),e.user&&e.user.channel&&e.user.channel.code?Object(a["l"])({fromAppKey:"b3b104eb-864d-42f0-b2d7-b5567bc8e91c"}).then((function(e){var r=e.data;0==r.status&&t.handleLogOut().then((function(){window.open("".concat(r.data.homePage,"?code=").concat(r.data.code),"_self")}))})):t.$router.push({name:t.$config.homeName})})).catch((function(e){var r="账号或密码有误!";e&&e.msg&&(r=e.msg),t.$Notice.error({title:"系统通知",desc:r})}))}})},I=F,$=(r("4b4f"),Object(d["a"])(I,o,n,!1,null,null,null));t["default"]=$.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8e32057a"],{"18d0":function(e,t,o){},"4b4f":function(e,t,o){"use strict";var r=o("18d0"),n=o.n(r);n.a},e49c:function(e,t,o){"use strict";o.r(t);var r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"login"},[o("div",{staticClass:"login-con"},[o("Card",{staticStyle:{"border-radius":"0px"},attrs:{icon:"log-in",bordered:!1}},[o("p",{attrs:{slot:"title"},on:{click:function(t){t.preventDefault(),e.ispasslogin=!0}},slot:"title"},[o("a",{attrs:{href:"#"}},[e._v("密码登录")])]),o("div",{staticClass:"form-con"},[e.ispasslogin?e._e():o("MobileForm",{on:{"on-success-valid":e.handleSubmit,onsendvcode:e.onsendvcode}}),e.ispasslogin?o("login-form",{on:{"on-success-valid":e.handleSubmit}}):e._e()],1)])],1)])},n=[],s=(o("5ab2"),o("6d57"),o("e10e"),o("13c1")),a=o("c24f"),i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("Form",{ref:"loginForm",attrs:{model:e.form,rules:e.rules},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSubmit(t)}}},[o("FormItem",{attrs:{prop:"userName"}},[o("Input",{attrs:{placeholder:"请输入用户名"},model:{value:e.form.userName,callback:function(t){e.$set(e.form,"userName",t)},expression:"form.userName"}},[o("span",{attrs:{slot:"prepend"},slot:"prepend"},[o("Icon",{attrs:{size:16,type:"ios-person"}})],1)])],1),o("FormItem",{attrs:{prop:"password"}},[o("Input",{attrs:{type:"password",placeholder:"请输入密码"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}},[o("span",{attrs:{slot:"prepend"},slot:"prepend"},[o("Icon",{attrs:{size:14,type:"md-lock"}})],1)])],1),o("FormItem",{staticStyle:{width:"100%","margin-bottom":"5%"},attrs:{prop:"vcode"}},[o("Row",[o("Col",{attrs:{span:"14"}},[o("Input",{attrs:{placeholder:"请输入验证码"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}})],1),o("Col",{attrs:{span:"10"}},[o("div",{staticStyle:{"margin-left":"10%"},attrs:{id:"imgIdentifyingCode"},on:{click:e.getIdentifyingCode}})])],1)],1),o("FormItem",[o("Button",{attrs:{type:"primary",long:""},on:{click:e.handleSubmit}},[e._v("登录")])],1)],1)},l=[],c={name:"LoginForm",props:{userNameRules:{type:Array,default:function(){return[{required:!0,message:" ",trigger:"blur"}]}},passwordRules:{type:Array,default:function(){return[{required:!0,message:" ",trigger:"blur"}]}}},data:function(){return{form:{userName:"",password:"",key:"",code:""}}},computed:{rules:function(){return{userName:this.userNameRules,password:this.passwordRules}}},mounted:function(){this.getIdentifyingCode()},methods:{handleSubmit:function(){var e=this;this.$refs.loginForm.validate((function(t){t&&e.$emit("on-success-valid",{userName:e.form.userName.trim(),password:e.form.password,key:e.form.key,code:e.form.code})}))},getIdentifyingCode:function(){var e=this,t="";Object(a["j"])().then((function(o){t=o.data.data.data.captcha,e.form.key=o.data.data.data.key;var r=document.getElementById("imgIdentifyingCode");r.innerHTML=t}))}}},d=c,u=o("9ca4"),m=Object(u["a"])(d,i,l,!1,null,null,null),p=m.exports,f=p,b=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("Form",{ref:"loginForm",attrs:{model:e.form,rules:e.rules},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSubmit(t)}}},[o("FormItem",{attrs:{prop:"mobile"}},[o("Input",{attrs:{placeholder:"请输入手机号"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}},[o("span",{attrs:{slot:"prepend"},slot:"prepend"},[o("Icon",{attrs:{size:16,type:"ios-person"}})],1)])],1),o("FormItem",{attrs:{prop:"vcode"}},[o("Input",{attrs:{placeholder:"请输入收到的验证码"},model:{value:e.form.vcode,callback:function(t){e.$set(e.form,"vcode",t)},expression:"form.vcode"}},[o("span",{attrs:{slot:"prepend"},slot:"prepend"},[o("Icon",{attrs:{size:14,type:"md-lock"}})],1),o("span",{attrs:{slot:"append"},slot:"append"},[e.isshowtime?e._e():o("Button",{attrs:{type:"primary"},on:{click:e.sendVCode}},[e._v("发送验证码")]),e.isshowtime?o("span",[e._v(e._s(e.leftseconds)+"秒")]):e._e()],1)])],1),o("FormItem",[o("Button",{attrs:{type:"primary",long:""},on:{click:e.handleSubmit}},[e._v("登录")])],1)],1)},h=[],v={name:"PhoneForm",props:{mobileRules:{type:Array,default:function(){return[{required:!0,message:"电话号码不能为空",trigger:"blur"}]}},vcodeRules:{type:Array,default:function(){return[{required:!0,message:"验证码不能为空",trigger:"blur"}]}}},data:function(){return{form:{mobile:"",vcode:""},isshowtime:!1,leftseconds:60}},computed:{rules:function(){return{mobile:this.mobileRules,vcode:this.vcodeRules}}},methods:{sendVCode:function(){var e=this;if(""!=this.form.mobile.trim()){var t=60;this.isshowtime=!0;var o=setInterval((function(){e.leftseconds=t--,0==t&&(clearInterval(o),e.isshowtime=!1)}),1e3);this.$emit("onsendvcode",{mobile:this.form.mobile})}},handleSubmit:function(){var e=this;this.$refs.loginForm.validate((function(t){t&&e.$emit("on-success-valid",{mobile:e.form.mobile,vcode:e.form.vcode})}))}}},g=v,y=Object(u["a"])(g,b,h,!1,null,null,null),w=y.exports,k=w,O=o("9f3a");function I(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function j(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?I(Object(o),!0).forEach((function(t){Object(s["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):I(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var _={data:function(){return{ispasslogin:!0}},components:{LoginForm:f,MobileForm:k},methods:j(j({},Object(O["b"])(["handleLogin","getUserInfo","handleLogOut"])),{},{onsendvcode:function(e){Object(a["r"])(e).then((function(e){e.data;console.log(e.data)}))},handleSubmit:function(e){var t=this;this.handleLogin(e).then((function(e){e.hint&&t.$Notice.warning({title:"系统通知",desc:e.hint}),e.user&&e.user.channel&&e.user.channel.code?Object(a["m"])({fromAppKey:"b3b104eb-864d-42f0-b2d7-b5567bc8e91c"}).then((function(e){var o=e.data;0==o.status&&t.handleLogOut().then((function(){window.open("".concat(o.data.homePage,"?code=").concat(o.data.code),"_self")}))})):t.$router.push({name:t.$config.homeName})})).catch((function(e){var o="账号或密码有误!";e&&e.msg&&(o=e.msg),t.$Notice.error({title:"系统通知",desc:o})}))}})},F=_,$=(o("4b4f"),Object(u["a"])(F,r,n,!1,null,null,null));t["default"]=$.exports}}]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment