Your Name
2022-09-29 6f954f70f54e492157b97db314eaaaeb12192580
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-31ce","chunk-1c22"],{CZr3:function(t,e,r){"use strict";r.r(e);var n=r("cLjf"),o=r.n(n),a=r("hDQ3"),i=r.n(a),u=r("wk8/"),s=(r("8fCU"),{name:"register",data:function(){return{submitting:!1,pwdForm:{username:"",password:"",repassword:"",phone:""},rules:{username:[{required:!0,message:"请填写姓名",trigger:"blur"}],phone:[{required:!0,message:"请填写手机号",trigger:"blur"}],password:[{required:!0,message:"请填写密码",trigger:"blur"}],repassword:[{required:!0,message:"请填写确认密码",trigger:"blur"}]}}},watch:{},created:function(){},methods:{submit:function(){var t=this;return i()(o.a.mark(function e(){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.pwdForm.password===t.pwdForm.repassword){e.next=3;break}return t.$message({type:"warning",message:"两次密码输入不一致"}),e.abrupt("return");case 3:if(11===t.pwdForm.phone.length){e.next=6;break}return t.$message({type:"warning",message:"手机号长度不为11"}),e.abrupt("return");case 6:t.$refs.ruleForm.validate(function(e){e?t.register():t.$message({type:"warning",message:"请填写基本信息"})});case 7:case"end":return e.stop()}},e,t)}))()},register:function(){var t=this;this.submitting=!0,Object(u.l)(this.pwdForm).then(function(e){"200"===e.data.code?(t.$message({type:"success",message:"修改成功"}),setTimeout(function(){t.$router.push({path:"/login"})},1e3)):t.$message({type:"warning",message:e.data.message})}).catch(function(e){console.log(e),t.$message({type:"warning",message:"请求超时"})}).finally(function(){t.submitting=!1})}}}),c=(r("yAa+"),r("ZrdR")),h=Object(c.a)(s,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"register_main"},[t._m(0),t._v(" "),r("div",{staticClass:"register_main_form"},[r("el-form",{ref:"ruleForm",attrs:{model:t.pwdForm,rules:t.rules,"label-width":"150px"}},[r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"姓名",prop:"username"}},[r("el-input",{model:{value:t.pwdForm.username,callback:function(e){t.$set(t.pwdForm,"username",e)},expression:"pwdForm.username"}})],1)],1)],1),t._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"手机号(账户)",prop:"phone"}},[r("el-input",{ref:"tel",model:{value:t.pwdForm.phone,callback:function(e){t.$set(t.pwdForm,"phone",e)},expression:"pwdForm.phone"}})],1)],1)],1),t._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"密码",prop:"password"}},[r("el-input",{model:{value:t.pwdForm.password,callback:function(e){t.$set(t.pwdForm,"password",e)},expression:"pwdForm.password"}})],1)],1)],1),t._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"确认密码",prop:"repassword"}},[r("el-input",{model:{value:t.pwdForm.repassword,callback:function(e){t.$set(t.pwdForm,"repassword",e)},expression:"pwdForm.repassword"}})],1)],1)],1),t._v(" "),r("el-row")],1),t._v(" "),r("div",{staticStyle:{"padding-bottom":"30px"},attrs:{align:"center"}},[r("el-button",{attrs:{type:"primary",disabled:t.submitting},on:{click:function(e){t.submit()}}},[t._v("修改密码")])],1)],1)])},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"register_main_body"},[e("span",{staticClass:"register_main_body_span"},[this._v("密码重置")])])}],!1,null,null,null);h.options.__file="pwdChange.vue";e.default=h.exports},Lb1x:function(t,e,r){},cLjf:function(t,e,r){t.exports=r("xOJF")},hDQ3:function(t,e,r){"use strict";e.__esModule=!0;var n=function(t){return t&&t.__esModule?t:{default:t}}(r("Asgo"));e.default=function(t){return function(){var e=t.apply(this,arguments);return new n.default(function(t,r){return function o(a,i){try{var u=e[a](i),s=u.value}catch(t){return void r(t)}if(!u.done)return n.default.resolve(s).then(function(t){o("next",t)},function(t){o("throw",t)});t(s)}("next")})}}},k4Ii:function(t,e){!function(e){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag",c="object"==typeof t,h=e.regeneratorRuntime;if(h)c&&(t.exports=h);else{(h=e.regeneratorRuntime=c?t.exports:{}).wrap=b;var l="suspendedStart",f="suspendedYield",p="executing",d="completed",m={},g={};g[i]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v($([])));y&&y!==n&&o.call(y,i)&&(g=y);var w=_.prototype=j.prototype=Object.create(g);x.prototype=w.constructor=_,_.constructor=x,_[s]=x.displayName="GeneratorFunction",h.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},h.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(w),t},h.awrap=function(t){return{__await:t}},z(L.prototype),L.prototype[u]=function(){return this},h.AsyncIterator=L,h.async=function(t,e,r,n){var o=new L(b(t,e,r,n));return h.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},z(w),w[s]="Generator",w[i]=function(){return this},w.toString=function(){return"[object Generator]"},h.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},h.values=$,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return u.type="throw",u.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:$(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),m}}}function b(t,e,r,n){var o=e&&e.prototype instanceof j?e:j,a=Object.create(o.prototype),i=new A(n||[]);return a._invoke=function(t,e,r){var n=l;return function(o,a){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw a;return C()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=k(i,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var s=O(t,e,r);if("normal"===s.type){if(n=r.done?d:f,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,i),a}function O(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function j(){}function x(){}function _(){}function z(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function L(t){var e;this._invoke=function(r,n){function a(){return new Promise(function(e,a){!function e(r,n,a,i){var u=O(t[r],t,n);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&o.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,a,i)},function(t){e("throw",t,a,i)}):Promise.resolve(c).then(function(t){s.value=t,a(s)},i)}i(u.arg)}(r,n,e,a)})}return e=e?e.then(a,a):a()}}function k(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,k(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=O(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,m):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function F(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(F,this),this.reset(!0)}function $(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:C}}function C(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},"wk8/":function(t,e,r){"use strict";r.d(e,"q",function(){return a}),r.d(e,"d",function(){return i}),r.d(e,"e",function(){return u}),r.d(e,"n",function(){return s}),r.d(e,"o",function(){return c}),r.d(e,"j",function(){return h}),r.d(e,"k",function(){return l}),r.d(e,"g",function(){return f}),r.d(e,"h",function(){return p}),r.d(e,"c",function(){return d}),r.d(e,"i",function(){return m}),r.d(e,"a",function(){return g}),r.d(e,"p",function(){return v}),r.d(e,"f",function(){return y}),r.d(e,"m",function(){return w}),r.d(e,"b",function(){return b}),r.d(e,"l",function(){return O});var n=r("t3Un"),o=r("X4fA");function a(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/user",method:"get",params:t||{}})}function i(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/adduser",method:"post",data:t})}function u(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/deluser",method:"post",data:t})}function s(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/putuser",method:"post",data:t})}function c(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/userroles",method:"post",data:t})}function h(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/importUser",method:"post",data:t})}function l(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/importUserCode",method:"post",data:t})}function f(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/district",method:"get",params:t||{}})}function p(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/districtByName",method:"get",params:t||{}})}function d(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/userList",method:"get",params:t||{}})}function m(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/getWorkCert?mobile="+t,method:"get"})}function g(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/addWorkCert",method:"post",data:t})}function v(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/editWorkCert",method:"post",data:t})}function y(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/delWorkCert",method:"post",data:t})}function w(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/setInvalidDel",method:"post",data:t})}function b(t){return Object(n.a)({headers:{Authorization:Object(o.a)()},url:"http://222.92.213.22:8006/zhongtai/bindCard",method:"post",data:t})}function O(t){return Object(n.a)({url:"http://222.92.213.22:8006/zhongtai/pwd-change",method:"post",data:t})}},xOJF:function(t,e,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,a=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r("k4Ii"),o)n.regeneratorRuntime=a;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},"yAa+":function(t,e,r){"use strict";var n=r("Lb1x");r.n(n).a}}]);