webpackJsonp([63],{"8IQB":function(n,e,t){var r=t("WJMz");"string"==typeof r&&(r=[[n.i,r,""]]),r.locals&&(n.exports=r.locals);t("Xatw")("610f32be",r,!0)},WJMz:function(n,e,t){(n.exports=t("uszS")(!1)).push([n.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\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",""])},a3re:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t("vvmr"),l=t.n(r),o=(t("5aCZ"),t("21QB")),i=t("Z4qH"),s=t("xSh0"),a={mixins:[i.a],data:function(){return{topMenuOptions:"",topMenuProps:{value:"id",label:"title",children:"children"},dialogTitle:"新建功能权限",coinAll:"",rules:{name:[{required:!0,message:"请输入名称",trigger:"blur"}],description:[{required:!0,message:"请输入描述",trigger:"blur"}],topSelectedMenu:[{required:!0,message:"请选择菜单ID",trigger:"blur"}]},ruleForm:{name:"",description:"",topSelectedMenu:[]}}},computed:l()({},Object(s.b)(["topMenu"])),created:function(){this.recursionMenu(this.topMenu),this.topMenuOptions=this.topMenu},watch:{dialogType:function(n){this.dialogTitle=1===n?"新建功能权限":"编辑功能权限"}},methods:{recursionMenu:function(n){if(0!=n.length)for(var e=0;e<n.length;e++)n[e].title=n[e].meta.title,n[e].children&&this.recursionMenu(n[e].children)},getRequestData:function(){var n=this,e={};["id","name","description","menuId"].map(function(t){return n.ruleForm[t]?e[t]=n.ruleForm[t]:""});var t=this.ruleForm.topSelectedMenu?this.ruleForm.topSelectedMenu[this.ruleForm.topSelectedMenu.length-1]:"";return t&&(e.menuId=t),e},createCallback:function(){return o.a.createSysPrivileges(this.getRequestData())},updateCallback:function(){return o.a.editSysPrivileges(this.getRequestData())}}},u={render:function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("el-dialog",{attrs:{title:n.dialogTitle,visible:n.dialogVisible,width:"50%"},on:{"update:visible":function(e){n.dialogVisible=e},close:n.closeDialog}},[t("el-form",{ref:"ruleForm",attrs:{model:n.ruleForm,rules:n.rules,"label-width":"180px"}},[t("el-form-item",{attrs:{label:"名称",prop:"name"}},[t("el-input",{staticClass:"form-input",attrs:{disabled:2==n.dialogType},model:{value:n.ruleForm.name,callback:function(e){n.$set(n.ruleForm,"name",e)},expression:"ruleForm.name"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"描述",prop:"description"}},[t("el-input",{staticClass:"form-input",model:{value:n.ruleForm.description,callback:function(e){n.$set(n.ruleForm,"description",e)},expression:"ruleForm.description"}})],1),n._v(" "),1==n.dialogType?t("el-form-item",{attrs:{label:"菜单ID",prop:"topSelectedMenu"}},[t("el-cascader",{attrs:{options:n.topMenuOptions,"show-all-levels":!1,props:n.topMenuProps},model:{value:n.ruleForm.topSelectedMenu,callback:function(e){n.$set(n.ruleForm,"topSelectedMenu",e)},expression:"ruleForm.topSelectedMenu"}})],1):n._e()],1),n._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(e){n.dialogVisible=!1}}},[n._v("取 消")]),n._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:function(e){n.submitForm("ruleForm")}}},[n._v("确 定")])],1)],1)},staticRenderFns:[]};var c=t("rCDr")(a,u,!1,function(n){t("8IQB")},"data-v-3530fe1a",null);e.default=c.exports}});