webpackJsonp([29],{Haqo:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("4YfN"),l=o.n(a),r=o("vMJZ"),i={data:function(){return{dialogVisible:!1,dataForm:{roleId:""},rules:{roleId:[{required:!0,message:"请选择角色类型"}]}}},mounted:function(){},methods:{init:function(e,t){this.dialogVisible=!0,this.dataForm.roleId=t,this.dataForm.userId=e},submitForm:function(){var e=this;this.$refs.dataForm.validate(function(t){if(t){var o=l()({},e.dataForm);Object(r.e)(o).then(function(t){201===t.msg?(e.dialogVisible=!1,e.$message.success("配置成功"),e.$emit("subsucc")):e.$message.error(t.content)})}})},closedHandler:function(){this.$refs.dataForm.resetFields()}}},s={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"权限配置",visible:e.dialogVisible,width:"500px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t},closed:e.closedHandler}},[o("el-form",{ref:"dataForm",attrs:{model:e.dataForm,size:"small","label-width":"150px",rules:e.rules}},[o("el-form-item",{attrs:{label:"角色类型：",prop:"roleId"}},[o("el-radio-group",{staticClass:"radio-group-type1",model:{value:e.dataForm.roleId,callback:function(t){e.$set(e.dataForm,"roleId",t)},expression:"dataForm.roleId"}},[o("el-radio",{attrs:{label:1}},[e._v("管理员")]),e._v(" "),o("el-radio",{attrs:{label:2}},[e._v("机构用户")])],1)],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.submitForm()}}},[e._v("确 定")])],1)],1)},staticRenderFns:[]};var n=o("C7Lr")(i,s,!1,function(e){o("Iuav")},null,null);t.default=n.exports},Iuav:function(e,t){}});
//# sourceMappingURL=29.af65711d4fda204815a1.1631086156306.js.map