CRMEB/crmeb/public/admin/js/chunk-3a2f4201.ca640dac.js
2022-05-09 09:23:53 +08:00

1 line
3.7 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3a2f4201"],{"265f":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"i-layout-page-header"},[a("div",{staticClass:"i-layout-page-header"},[a("span",{staticClass:"ivu-page-header-title"},[e._v(e._s(e.$route.meta.title))])])]),a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[a("Form",{ref:"formValidate",attrs:{model:e.formValidate,rules:e.ruleValidate,"label-width":120,"label-position":"right"}},[a("FormItem",{attrs:{label:"账号",prop:""}},[a("Input",{staticClass:"input",attrs:{type:"text",disabled:!0},model:{value:e.account,callback:function(t){e.account=t},expression:"account"}})],1),a("FormItem",{attrs:{label:"姓名",prop:"real_name"}},[a("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),a("FormItem",{attrs:{label:"原始密码",prop:"pwd"}},[a("Input",{staticClass:"input",attrs:{type:"password"},model:{value:e.formValidate.pwd,callback:function(t){e.$set(e.formValidate,"pwd",t)},expression:"formValidate.pwd"}})],1),a("FormItem",{attrs:{label:"新密码",prop:"new_pwd"}},[a("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),a("FormItem",{attrs:{label:"确认新密码",prop:"conf_pwd"}},[a("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),a("FormItem",[a("Button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSubmit("formValidate")}}},[e._v("提交")])],1)],1)],1)],1)},n=[],o=(a("8e6e"),a("ac6a"),a("456d"),a("7f7f"),a("bd86")),s=a("c24f"),i=a("2f62");function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach((function(t){Object(o["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var u={name:"setting_user",computed:c(c(c({},Object(i["e"])("media",["isMobile"])),Object(i["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},methods:{handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){e?Object(s["I"])(t.formValidate).then((function(e){t.$Message.success(e.msg)})).catch((function(e){t.$Message.error(e.msg)})):t.formValidate.new_pwd!==t.formValidate.conf_pwd&&t.$Message.error("您输入的新密码与旧密码不一致")}))}}},d=u,p=(a("d42e"),a("2877")),f=Object(p["a"])(d,r,n,!1,null,"8070b7bc",null);t["default"]=f.exports},"663c":function(e,t,a){},d42e:function(e,t,a){"use strict";var r=a("663c"),n=a.n(r);n.a}}]);