(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c51f8"],{"3e6f":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"new-app-container layout-vertical"},[a("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,"custom-style":{height:"calc(100vh - 80px)"}}}),a("Dialog",{ref:"dialog"},[a("template",{slot:"content"})],2)],1)},n=[],r=a("c14f"),i=a("1da1"),o=(a("e9f5"),a("7d54"),a("d3b7"),a("159b"),a("9039")),s=a("7e1e"),p={components:{Dialog:o["a"]},data:function(){return{loading:!1,visibleBasicDrawer:!1,renderContent:"",searchForm:[],columns:[{label:"管理员账号",prop:"username"},{label:"管理员名称",prop:"nickname"},{label:"角色",prop:"roles_names"},{label:"邮箱",prop:"email"},{label:"手机号",prop:"cellphone"},{label:"备注",prop:"remarks"}],rowsActions:[{key:"edit",label:"编辑"},{key:"delete",label:"删除",vIF:function(e){return 1!==e.id}}],apis:{list:{url:"index",dataParam:"data.data",resultParam:"data",init:!1},add:{url:"submit"},edit:{url:"submit"},delete:{url:"delete",method:"post"}},tableOptions:{add:{show:!0,initData:function(){return{}}}},editForm:[{body:[{label:"管理员账号",prop:"username",disabled:function(e){return 1===e.id},type:"input",required:!0,placeholder:"请输入"},{label:"管理员名称",prop:"nickname",type:"input",required:!0,placeholder:"请输入"},{label:"角色",prop:"roles_ids",type:"cascader",required:!1,disabled:function(e){return 1===e.id},checkStrictly:!0,options:[]},{label:"邮箱",prop:"email",type:"input",required:!0,placeholder:"请输入"},{label:"手机号",prop:"cellphone",type:"input",required:!0,placeholder:"请输入"},{label:"密码",prop:"password",type:"input",disabled:function(e){return 1===e.id},required:!1,placeholder:"请输入"},{label:"备注",prop:"remarks",type:"input",placeholder:"请输入"}]}],editConfig:{}}},created:function(){},mounted:function(){this.onSubmit(),this.getroleall()},methods:{getroleall:function(){var e=this;return Object(i["a"])(Object(r["a"])().m((function t(){var a,l;return Object(r["a"])().w((function(t){while(1)switch(t.n){case 0:return t.n=1,Object(s["eb"])();case 1:a=t.v,l=a.data,l.forEach((function(e){e.label=e.display_name,e.value=e.id})),e.editForm[0].body[2].options=l;case 2:return t.a(2)}}),t)})))()},onValueChange:function(e){},onSubmit:function(e){this.$refs.table.getList(e)}}},c=p,d=a("2877"),u=Object(d["a"])(c,l,n,!1,null,null,null);t["default"]=u.exports}}]);