CRMEB/crmeb/public/admin/system_static/js/chunk-426aca71.0522bb7c.js
2023-04-06 18:14:33 +08:00

1 line
3.1 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-426aca71"],{"265f":function(e,t,a){"use strict";a.r(t);var r=a("f3f3"),s=a("c24f"),o=a("2f62");r={name:"setting_user",computed:Object(r.a)(Object(r.a)(Object(r.a)({},Object(o.e)("media",["isMobile"])),Object(o.e)("userLevel",["categoryId"])),{},{labelWidth:function(){return this.isMobile?void 0:75},labelPosition:function(){return this.isMobile?"top":"left"}}),data:function(){return{account:"",formValidate:{real_name:"",pwd:"",new_pwd:"",conf_pwd:""},ruleValidate:{real_name:[{required:!0,message:"您的姓名不能为空",trigger:"blur"}],pwd:[{required:!0,message:"请输入您的原始密码",trigger:"blur"}],new_pwd:[{required:!0,message:"请输入您的新密码",trigger:"blur"}],conf_pwd:[{required:!0,message:"请确认您的新密码",trigger:"blur"}]}}},mounted:function(){this.account=this.$store.state.userInfo.userInfo.account,this.formValidate.real_name=this.$store.state.userInfo.userInfo.real_name},methods:{handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){e?Object(s.I)(t.formValidate).then((function(e){t.$store.commit("userInfo/userRealName",t.formValidate.real_name),t.$Message.success(e.msg)})).catch((function(e){t.$Message.error(e.msg)})):t.formValidate.new_pwd!==t.formValidate.conf_pwd&&t.$Message.error("您输入的新密码与旧密码不一致")}))}}},a("9981"),o=a("2877"),a=Object(o.a)(r,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",[t("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[t("Form",{ref:"formValidate",attrs:{model:e.formValidate,rules:e.ruleValidate,"label-width":160,"label-position":"right"}},[t("FormItem",{attrs:{label:"账号",prop:""}},[t("Input",{staticClass:"input",attrs:{type:"text",disabled:!0},model:{value:e.account,callback:function(t){e.account=t},expression:"account"}})],1),t("FormItem",{attrs:{label:"姓名",prop:"real_name"}},[t("Input",{staticClass:"input",attrs:{type:"text"},model:{value:e.formValidate.real_name,callback:function(t){e.$set(e.formValidate,"real_name",t)},expression:"formValidate.real_name"}})],1),t("FormItem",{attrs:{label:"原始密码",prop:"pwd"}},[t("Input",{staticClass:"input",attrs:{type:"password"},model:{value:e.formValidate.pwd,callback:function(t){e.$set(e.formValidate,"pwd",t)},expression:"formValidate.pwd"}})],1),t("FormItem",{attrs:{label:"新密码",prop:"new_pwd"}},[t("Input",{staticClass:"input",attrs:{type:"password"},model:{value:e.formValidate.new_pwd,callback:function(t){e.$set(e.formValidate,"new_pwd",t)},expression:"formValidate.new_pwd"}})],1),t("FormItem",{attrs:{label:"确认新密码",prop:"conf_pwd"}},[t("Input",{staticClass:"input",attrs:{type:"password"},model:{value:e.formValidate.conf_pwd,callback:function(t){e.$set(e.formValidate,"conf_pwd",t)},expression:"formValidate.conf_pwd"}})],1),t("FormItem",[t("Button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSubmit("formValidate")}}},[e._v("提交")])],1)],1)],1)],1)}),[],!1,null,"27220f1a",null);t.default=a.exports},8471:function(e,t,a){},9981:function(e,t,a){"use strict";var r=a("8471");a.n(r).a}}]);