webpackJsonp([93],{"0nqH":function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l("s/F+"),o=l.n(r),i=l("yrbl"),a=l.n(i),n=l("EwHo"),c={mixins:[l("Z4qH").a],data:function(){return{dialogTitle:"配置角色权限",checkList:["选中且禁用","复选框 A"],configRule:[],rules:{name:[{required:!0,message:"请输入角色",trigger:"blur"}],code:[{required:!0,message:"请输入角色编码",trigger:"blur"}]},ruleForm:{}}},methods:{editCallback:function(e){var t=this;return a()(o.a.mark(function l(){var r;return o.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return r=t,l.next=3,n.a.getRolePrivileges(e.id).then(function(e){r.configRule=e});case 3:console.log(r.configRule);case 4:case"end":return l.stop()}},l,t)}))()},createCallback:function(){return n.a.createRole(this.ruleForm)},updateCallback:function(){}}},s={render:function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVisible,width:"50%"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.closeDialog}},[l("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},e._l(e.configRule,function(t){return l("el-form-item",{key:t.id,attrs:{label:t.name}},[l("el-checkbox-group",{model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[l("el-checkbox",{attrs:{label:"复选框 A"}}),e._v(" "),l("el-checkbox",{attrs:{label:"复选框 B"}}),e._v(" "),l("el-checkbox",{attrs:{label:"复选框 C"}}),e._v(" "),l("el-checkbox",{attrs:{label:"禁用",disabled:""}}),e._v(" "),l("el-checkbox",{attrs:{label:"选中且禁用",disabled:""}})],1)],1)})),e._v(" "),l("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),l("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确 定")])],1)],1)},staticRenderFns:[]},u=l("rCDr")(c,s,!1,null,null,null);t.default=u.exports}});