点击回首页
我的浏览记录 | | 帮助?
当前位置:
首页>> 行业软件>> 在线考试系统>> 源文件浏览
[免费版 Free] WebForm,下载次数:254 次 | 关键字: 考试 办公 高校 竞赛 企事业单位

源码截图

源码目录树

;
当前路径:public/static/control/p__personAffair__changePwd.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[20],{kHLT:function(e,t,a){"use strict";a.r(t);a("miYZ");var r=a("tsqr"),n=(a("IzEo"),a("bx4M")),c=a("0Owb"),s=(a("+L6B"),a("2/Rp")),i=(a("14J3"),a("BMrR")),l=(a("jCWc"),a("kPKH")),u=(a("5NDa"),a("5rEg")),o=a("WmNS"),p=a.n(o),d=(a("y8nQ"),a("Vl3Y")),m=a("tJVT"),w=a("9og8"),f=a("q1tI"),b=a.n(f),h=a("Hx5s"),v=a("pLYI"),j=a("BqDR"),E=a("63rs"),y=a("c+yx"),O=a("9kvl"),g=a("Qyje");function k(){return x.apply(this,arguments)}function x(){return x=Object(w["a"])(p.a.mark((function e(){var t,a;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(E["b"])();case 2:t=Object(y["a"])(),a=t.redirect,"/user/login"===window.location.pathname||a||O["b"].replace({pathname:"/user/login",search:Object(g["stringify"])({redirect:window.location.href})});case 4:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}var P={labelCol:{span:4},wrapperCol:{span:10}};function I(e){var t=d["a"].useForm(),a=Object(m["a"])(t,1),o=a[0],E=Object(f["useState"])(void 0),y=Object(m["a"])(E,2),O=y[0],g=y[1];function x(){return I.apply(this,arguments)}function I(){return I=Object(w["a"])(p.a.mark((function e(){return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o.validateFields().then(function(){var e=Object(w["a"])(p.a.mark((function e(t){var a;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(j["b"])(t);case 2:a=e.sent,0===a.errCode?(r["b"].success("\u4fee\u6539\u6210\u529f"),k()):r["b"].error(a.errMsg);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}return Object(f["useEffect"])((function(){function e(){return t.apply(this,arguments)}function t(){return t=Object(w["a"])(p.a.mark((function e(){var t,a;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(v["getInitialState"])();case 2:t=e.sent,a=t.currentUser,null===a||void 0===a||delete a.password,g(a);case 6:case"end":return e.stop()}}),e)}))),t.apply(this,arguments)}e()}),[]),o.setFieldsValue(O),b.a.createElement(h["c"],{title:"\u4fee\u6539\u5bc6\u7801"},b.a.createElement(n["a"],null,b.a.createElement(d["a"],Object(c["a"])({},P,{initialValues:O,form:o}),b.a.createElement(i["a"],{gutter:24},b.a.createElement(l["a"],{span:14,offset:7},b.a.createElement(d["a"].Item,{label:"\u8d26\u53f7",name:"uid",required:!0},b.a.createElement(u["a"],{disabled:!0})),b.a.createElement(d["a"].Item,{label:"\u65e7\u5bc6\u7801",name:"password",required:!0},b.a.createElement(u["a"],{type:"password"})),b.a.createElement(d["a"].Item,{label:"\u65b0\u5bc6\u7801",name:"newPass",required:!0,dependencies:["password"],rules:[function(e){var t=e.getFieldValue;return{validator:function(e,a){return a&&t("password")===a?Promise.reject("\u4e0d\u80fd\u548c\u65e7\u5bc6\u7801\u76f8\u540c"):Promise.resolve()}}}]},b.a.createElement(u["a"],{type:"password"})),b.a.createElement(d["a"].Item,{label:"\u65b0\u5bc6\u7801\u786e\u8ba4",dependencies:["newPass"],name:"confirmPwd",required:!0,rules:[function(e){var t=e.getFieldValue;return{validator:function(e,a){return a&&t("newPass")!==a?Promise.reject("\u4e24\u6b21\u5bc6\u7801\u4e0d\u540c"):Promise.resolve()}}}]},b.a.createElement(u["a"],{type:"password"})))),b.a.createElement(i["a"],{gutter:24,justify:"center"},b.a.createElement(l["a"],null,b.a.createElement(s["a"],{type:"primary",style:{marginRight:10},onClick:x},"\u63d0\u4ea4"))))))}t["default"]=I}}]);
关于我们 | 顾问团队 | 发展历程 | 联系我们 | 源码上传
联系电话(Tel):4008-010-151(免长途)
地址:北京市海淀区大恒科技大厦五层 邮编:100080
Floor 5th,Daheng Building,Zhongguancun,Beijing,China,100080
51Aspx.com 版权所有 CopyRight © 2006-2022. 京ICP备09089570号 | 京公网安备11010702000869号