webpackJsonp([35],{szBz:function(e,t){},ys9I:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3Xzz"),s=(r("Mk6G"),r("3E4D"),r("Ch4/"),r("PI0u")),n={name:"replaceAdmin",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"更换超级管理员",path:""}],subNavText:"更换超级管理员,需要先验证当前超级管理员身份",active:0,ruleForm:{name:"11",phone:1334444444,code:""},rules:{name:[{required:!0,message:"请输入当前绑定账号",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},disableBtn:!1,newFormLoad:!1,newRuleForm:{name:""},newRules:{name:[{required:!0,message:"请输入手机号/姓名",trigger:"blur"}]}}},computed:{},methods:{sendCode:Object(s.a)(function(e){this.disableBtn=!0},500),postSendCode:function(){},submitForm:Object(s.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.active++>2&&t.active})},500),newSubmitForm:Object(s.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.active++})},500),submitFormBack:function(){this.active&&this.active--},getCurrentUser:function(){var e=JSON.parse(localStorage.getItem("userInfo"));this.ruleForm.phone=e.phoneNumber}},mounted:function(){this.getCurrentUser()},components:{navCrumb:a.a}},l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"replaceAdmin-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("el-steps",{attrs:{active:e.active,"finish-status":"success","align-center":""}},[r("el-step",{attrs:{title:"获取验证码"}}),e._v(" "),r("el-step",{attrs:{title:"绑定新的超级管理员"}}),e._v(" "),r("el-step",{attrs:{title:"完成"}})],1),e._v(" "),r("div",{staticClass:"w-514 replaceAdmin-wrap-form m-t-45"},[0==e.active?r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"110px"}},[r("el-form-item",{attrs:{label:"当前绑定账号",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"phone"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.phone,callback:function(t){e.$set(e.ruleForm,"phone",t)},expression:"ruleForm.phone"}}),r("el-button",{staticClass:"m-l-20 v-align-b",attrs:{type:"primary",disabled:e.disableBtn},on:{click:function(t){e.sendCode(e.ruleForm.phone)}}},[e._v("获取验证码")])],1),e._v(" "),r("el-form-item",{attrs:{label:"验证码",prop:"code"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入验证码"},model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("下一步")])],1)],1):e._e(),e._v(" "),1==e.active?r("el-form",{ref:"newRuleForm",staticClass:"demo-ruleForm",attrs:{model:e.newRuleForm,rules:e.newRules,"label-width":"140px"}},[r("el-form-item",{attrs:{label:"新绑定超级管理员",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入手机号/姓名"},model:{value:e.newRuleForm.name,callback:function(t){e.$set(e.newRuleForm,"name",t)},expression:"newRuleForm.name"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",loading:e.newFormLoad},on:{click:function(t){e.newSubmitForm("newRuleForm")}}},[e._v("提交")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitFormBack}},[e._v("上一步")])],1)],1):e._e(),e._v(" "),2==e.active?r("div",{staticClass:"replaceAdmin-wrap-success"},[e._m(0),e._v(" "),r("p",[e._v("操作成功")])]):e._e()],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"icon-outer"},[t("i",{staticClass:"el-icon-success"})])}]};var o=r("VU/8")(n,l,!1,function(e){r("szBz")},"data-v-3ba906a9",null);t.default=o.exports}});
//# sourceMappingURL=35.a0ce471143b06f45c2d6.js.map