(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c17c1"],{"45f0":function(e,t,a){"use strict";a.r(t),a.d(t,"crudOptions",(function(){return r}));var n=a("22ce"),r=function(e){return{indexRow:{title:"序号",align:"center"},options:{height:"100%"},viewOptions:{},columns:[{title:"id",key:"id",width:100,form:{disabled:!0}},{title:"标题",key:"title",search:{disabled:!1},width:400,form:{rules:[{required:!0,message:"必填项"}],component:{span:24,placeholder:"请输入标题"}}},{title:"目标类型",key:"target_type",type:"radio",dict:{data:[{value:0,label:"按用户"},{value:1,label:"按角色"},{value:2,label:"按部门"}]},form:{rules:[{required:!0,message:"必选项",trigger:["blur","change"]}]}},{title:"目标用户",key:"target_user",search:{disabled:!0},minWidth:130,type:"table-selector",dict:{cache:!1,url:"/api/system/user/",value:"id",label:"name",getData:function(e,t,a){a.form;var r=a.component;return Object(n["c"])({url:e,params:{page:1,limit:10}}).then((function(e){return r._elProps.page=e.data.page,r._elProps.limit=e.data.limit,r._elProps.total=e.data.total,e.data.data}))}},form:{rules:[{required:!0,message:"必填项"}],itemProps:{class:{yxtInput:!0}},component:{span:24,show:function(e){return 0===e.form.target_type},pagination:!0,props:{multiple:!0},elProps:{columns:[{field:"name",title:"用户名称"},{field:"phone",title:"用户电话"}]}}},component:{name:"manyToMany",valueBinding:"user_info",children:"name"}},{title:"目标角色",key:"target_role",search:{disabled:!0},minWidth:130,type:"table-selector",dict:{cache:!1,url:"/api/system/role/",value:"id",label:"name",getData:function(e,t,a){a.form;var r=a.component;return Object(n["c"])({url:e,params:{page:1,limit:10}}).then((function(e){return r._elProps.page=e.data.page,r._elProps.limit=e.data.limit,r._elProps.total=e.data.total,e.data.data}))}},form:{rules:[{required:!0,message:"必填项"}],itemProps:{class:{yxtInput:!0}},component:{span:24,show:function(e){return 1===e.form.target_type},pagination:!0,props:{multiple:!0},elProps:{columns:[{field:"name",title:"角色名称"},{field:"key",title:"权限标识"}]}}},component:{name:"manyToMany",valueBinding:"role_info",children:"name"}},{title:"目标部门",key:"target_dept",search:{disabled:!0},minWidth:130,type:"table-selector",dict:{cache:!1,url:"/api/system/dept/",isTree:!0,value:"id",label:"name",children:"children",getData:function(e,t,a){a.form,a.component;return Object(n["c"])({url:e,params:{page:1,limit:999}}).then((function(e){return e.data.data}))}},form:{rules:[{required:!0,message:"必填项"}],itemProps:{class:{yxtInput:!0}},component:{span:24,show:function(e){return 2===e.form.target_type},props:{multiple:!0,elProps:{treeConfig:{transform:!0,rowField:"id",parentField:"parent",expandAll:!0},columns:[{field:"name",title:"部门名称",treeNode:!0},{field:"status_label",title:"状态"},{field:"parent_name",title:"父级部门"}]}}}},component:{name:"manyToMany",valueBinding:"dept_info",children:"name"}},{title:"内容",key:"content",width:300,type:"editor-quill",form:{rules:[{required:!0,message:"必填项"}],component:{disabled:function(){return e.getEditForm().disable},props:{uploader:{type:"form"}},events:{"text-change":function(e){console.log("text-change:",e)}}}}}]}}}}]);