(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21a075"],{ba88:function(e,t,i){"use strict";i.r(t),i.d(t,"crudOptions",(function(){return o}));i("99af");var a=i("22ce"),s=i("9668"),n=i("c276"),o=function(e){return n["a"].filterParams(e,["dept_name","role_info{name}"]),{pageOptions:{compact:!0},options:{height:"100%",tableType:"vxe-table",rowKey:!0,rowId:"id"},selectionRow:{align:"center",width:46},rowHandle:{width:240,fixed:"right",view:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Retrieve")}},edit:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Update")}},remove:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Delete")}},custom:[{thin:!0,text:"密码重置",size:"small",type:"warning",icon:"el-icon-refresh-left",show:function(){return e.hasPermissions("ResetPassword")},emit:"resetPassword"}]},viewOptions:{componentType:"form"},formOptions:{defaultSpan:12},indexRow:{title:"序号",align:"center",width:60},columns:[{title:"关键词",key:"search",show:!1,disabled:!0,search:{disabled:!1},form:{disabled:!0,component:{placeholder:"请输入关键词"}},view:{disabled:!0}},{title:"ID",key:"id",disabled:!0,form:{disabled:!0}},{title:"账号",key:"username",search:{disabled:!1},minWidth:100,type:"input",form:{rules:[{required:!0,message:"账号必填项"}],component:{placeholder:"请输入账号"},itemProps:{class:{yxtInput:!0}}}},{title:"密码",key:"password",minWidth:90,type:"input",form:{rules:[{required:!0,message:"密码必填项"}],component:{span:12,showPassword:!0,placeholder:"请输入密码"},value:e.systemConfig("base.default_password"),editDisabled:!0,itemProps:{class:{yxtInput:!0}}},disabled:!0,valueResolve:function(t,i){t.password&&(t.password=e.$md5(t.password))}},{title:"姓名",key:"name",minWidth:90,search:{disabled:!1},type:"input",form:{rules:[{required:!0,message:"姓名必填项"}],component:{span:12,placeholder:"请输入姓名"},itemProps:{class:{yxtInput:!0}}}},{title:"部门",key:"dept",search:{disabled:!0},minWidth:140,type:"tree-selector",dict:{cache:!1,isTree:!0,url:s["urlPrefix"],value:"id",label:"name"},form:{rules:[{required:!0,message:"必填项"}],itemProps:{class:{yxtInput:!0}},component:{span:12,pagination:!0,props:{multiple:!1}}},component:{name:"foreignKey",valueBinding:"dept_name"}},{title:"手机号码",key:"mobile",search:{disabled:!0},minWidth:110,type:"input",form:{rules:[{max:20,message:"请输入正确的手机号码",trigger:"blur"},{pattern:/^1[3-9]\d{9}$/,message:"请输入正确的手机号码"}],itemProps:{class:{yxtInput:!0}},component:{placeholder:"请输入手机号码"}}},{title:"邮箱",key:"email",minWidth:180,form:{rules:[{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}],component:{placeholder:"请输入邮箱"}}},{title:"性别",key:"gender",type:"radio",width:70,dict:{data:e.dictionary("gender")},form:{value:1,component:{span:12}},component:{props:{color:"auto"}}},{title:"用户类型",key:"user_type",search:{disabled:!1},width:145,type:"select",dict:{data:e.dictionary("user_type")},form:{show:!1,value:0,component:{span:12}}},{title:"状态",key:"is_active",search:{disabled:!1},width:70,type:"radio",dict:{data:e.dictionary("button_status_bool")},form:{value:!0,component:{span:12}}},{title:"头像",key:"avatar",type:"avatar-cropper",width:60,align:"left",form:{component:{props:{elProps:{multiple:!1,limit:1},sizeLimit:512e3},span:24},helper:"限制文件大小不能超过500k"}},{title:"角色",key:"role",search:{disabled:!0},minWidth:130,type:"table-selector",dict:{cache:!1,url:"/api/system/role/",value:"id",label:"name",getData:function(e,t,i){i.form;var s=i.component;return Object(a["c"])({url:e,params:{page:1,limit:10}}).then((function(e){return s._elProps.page=e.data.page,s._elProps.limit=e.data.limit,s._elProps.total=e.data.total,e.data.data}))}},form:{rules:[{required:!0,message:"必填项"}],itemProps:{class:{yxtInput:!0}},component:{span:12,pagination:!0,props:{multiple:!0},elProps:{columns:[{field:"name",title:"角色名称"},{field:"key",title:"权限标识"}]}}},component:{name:"manyToMany",valueBinding:"role_info",children:"name"}}].concat(e.commonEndColumns({create_datetime:{showTable:!1},update_datetime:{showTable:!1}}))}}}}]);