webpackJsonp([37],{cvs3:function(e,r,n){var t=n("y3it");"string"==typeof t&&(t=[[e.i,t,""]]),t.locals&&(e.exports=t.locals);n("Xatw")("42f8266a",t,!0)},dZFU:function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=n("s/F+"),l=n.n(t),a=n("yrbl"),o=n.n(a),i=n("DN9j"),s={mixins:[n("Z4qH").a],data:function(){return{dialogTitle:"编辑代理信息",rules:{},ruleForm:{},userArr:[]}},methods:{editCallback:function(e){var r=this;return o()(l.a.mark(function n(){var t;return l.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t=r,n.next=3,i.a.getCurrentAgent(e.id).then(function(e){t.userArr=e});case 3:case"end":return n.stop()}},n,r)}))()},updateCallback:function(){var e=this;return o()(l.a.mark(function r(){var n,t;return l.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return t={agentNote:(n=e).ruleForm.agentNote,changeUserId:n.ruleForm.directInviteid,countryCode:n.ruleForm.countryCode,email:n.ruleForm.email,idCard:n.ruleForm.idCard,mobile:n.ruleForm.mobile,status:n.ruleForm.reviewsStatus,userId:n.ruleForm.id,username:n.ruleForm.username},r.next=4,i.a.postAgentInfo(t);case 4:case"end":return r.stop()}},r,e)}))()}}},u={render:function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVisible,width:"50%"},on:{"update:visible":function(r){e.dialogVisible=r},close:e.closeDialog}},[n("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"ID",prop:"id"}},[n("el-input",{staticClass:"form-input",attrs:{disabled:""},model:{value:e.ruleForm.id,callback:function(r){e.$set(e.ruleForm,"id",r)},expression:"ruleForm.id"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"层级",prop:"level"}},[n("el-input",{staticClass:"form-input",attrs:{disabled:""},model:{value:e.ruleForm.level,callback:function(r){e.$set(e.ruleForm,"level",r)},expression:"ruleForm.level"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[n("el-input",{staticClass:"form-input",attrs:{disabled:""},model:{value:e.ruleForm.mobile,callback:function(r){e.$set(e.ruleForm,"mobile",r)},expression:"ruleForm.mobile"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[n("el-input",{staticClass:"form-input",attrs:{disabled:""},model:{value:e.ruleForm.email,callback:function(r){e.$set(e.ruleForm,"email",r)},expression:"ruleForm.email"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"姓名",prop:"username"}},[n("el-input",{staticClass:"form-input",attrs:{disabled:""},model:{value:e.ruleForm.username,callback:function(r){e.$set(e.ruleForm,"username",r)},expression:"ruleForm.username"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"身份证号",prop:"idCard"}},[n("el-input",{staticClass:"form-input",attrs:{disabled:""},model:{value:e.ruleForm.idCard,callback:function(r){e.$set(e.ruleForm,"idCard",r)},expression:"ruleForm.idCard"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"注册时间",prop:"created"}},[n("el-input",{staticClass:"form-input",attrs:{disabled:""},model:{value:e.ruleForm.created,callback:function(r){e.$set(e.ruleForm,"created",r)},expression:"ruleForm.created"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"审核备注",prop:"agentNote"}},[n("el-input",{staticClass:"form-input",attrs:{disabled:""},model:{value:e.ruleForm.agentNote,callback:function(r){e.$set(e.ruleForm,"agentNote",r)},expression:"ruleForm.agentNote"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"上级代理商"}},[n("el-select",{staticClass:"form-input",model:{value:e.ruleForm.directInviteid,callback:function(r){e.$set(e.ruleForm,"directInviteid",r)},expression:"ruleForm.directInviteid"}},e._l(e.userArr,function(e){return n("el-option",{key:e.id,attrs:{label:e.realName||e.username,value:e.id}})}))],1)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(r){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(r){e.submitForm("ruleForm")}}},[e._v("确 定")])],1)],1)},staticRenderFns:[]};var m=n("rCDr")(s,u,!1,function(e){n("cvs3")},"data-v-c727949c",null);r.default=m.exports},y3it:function(e,r,n){(e.exports=n("uszS")(!1)).push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])}});