(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a38bb"],{"0346":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"new-app-container layout-vertical"},[i("YMTable",{ref:"table",attrs:{"table-key":1,index:!0,selection:!1,"table-options":e.tableOptions,"edit-form":e.editForm,"edit-config":e.editConfig,columns:e.columns,"rows-actions":e.rowsActions,"show-summary":!1,apis:e.apis,"is-page":!1,"custom-style":{height:"calc(100vh - 100px)"}},on:{onValueChange:e.onValueChange}}),i("Dialog",{ref:"dialog"},[i("template",{slot:"content"})],2)],1)},n=[],o=(i("e9f5"),i("7d54"),i("d3b7"),i("159b"),i("9039")),l=i("7e1e"),r={components:{Dialog:o["a"]},data:function(){return{loading:!1,visibleBasicDrawer:!1,renderContent:"",searchForm:[],columns:[{label:"角色名称",prop:"display_name"},{label:"角色描述",prop:"description"},{label:"角色拥有的菜单",prop:"menus_ids",html:!0,method:function(e){var t="";return e.menus.forEach((function(e){t+="<div >《".concat(e.title,"》</div")})),t}}],rowsActions:[{key:"edit",label:"编辑"},{key:"delete",label:"删除"}],apis:{list:{url:"role/all",dataParam:"data",resultParam:"data",init:!1},add:{url:"role/submit"},edit:{url:"role/submit"},delete:{url:"role/delete",method:"post"}},tableOptions:{add:{show:!0,initData:function(){return{}}}},editForm:[{body:[{type:"input",label:"角色名称",prop:"display_name",rules:[{required:!0,message:"请输入角色名称",trigger:"blur"}]},{type:"input",label:"角色描述",prop:"description",rules:[{required:!0,message:"请输入角色描述",trigger:"blur"}]},{type:"tree",label:"角色拥有的菜单",showCheckbox:!0,prop:"menus_ids",defaultProps:{children:"children",label:"title",id:"id"},data:[],rules:[{required:!1,message:"请输入角色拥有的菜单",trigger:"blur"}]}]}],editConfig:{addTip:"注：备注",editTip:"注：备注"}}},mounted:function(){this.onSubmit(),this.getmenutree()},methods:{getmenutree:function(){var e=this;Object(l["Q"])().then((function(t){e.editForm[0].body[2].data=t.data}))},onValueChange:function(e){console.log(e)},onSubmit:function(e){this.$refs.table.getList(e)}}},s=r,d=i("2877"),u=Object(d["a"])(s,a,n,!1,null,null,null);t["default"]=u.exports}}]);