2 lines
3.5 KiB
JavaScript
2 lines
3.5 KiB
JavaScript
var p=Object.defineProperty,d=Object.defineProperties;var s=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var i=(t,e,o)=>e in t?p(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,m=(t,e)=>{for(var o in e||(e={}))c.call(e,o)&&i(t,o,e[o]);if(a)for(var o of a(e))u.call(e,o)&&i(t,o,e[o]);return t},r=(t,e)=>d(t,s(e));import{g as f}from"./rangePickerProps-BPpM6dzr.js";import{C as b,b as h}from"./biz-system-enum-BAorzMA8.js";import{as as S,at as l}from"./bootstrap-CRjSNGHY.js";import{D as n}from"./dict-enum-CaHgMaDZ.js";function g(){return[{fieldName:"id",component:"Input",dependencies:{triggerFields:[""],show:()=>!1}},{fieldName:"name",label:"角色名称",component:"Input",componentProps:{placeholder:"请输入角色名称"},rules:"required"},{fieldName:"code",label:"角色标识",component:"Input",componentProps:{placeholder:"请输入角色标识"},rules:"required"},{fieldName:"sort",label:"显示顺序",component:"InputNumber",componentProps:{min:0,placeholder:"请输入显示顺序"},rules:"required"},{fieldName:"status",label:"角色状态",component:"RadioGroup",componentProps:{options:l(n.COMMON_STATUS,"number"),buttonStyle:"solid",optionType:"button"},rules:S().default(b.ENABLE)},{fieldName:"remark",label:"角色备注",component:"Textarea",componentProps:{placeholder:"请输入角色备注"}}]}function D(){return[{component:"Input",fieldName:"id",dependencies:{triggerFields:[""],show:()=>!1}},{fieldName:"name",label:"角色名称",component:"Input",componentProps:{disabled:!0}},{component:"Input",fieldName:"code",label:"角色标识",componentProps:{disabled:!0}},{component:"Select",fieldName:"dataScope",label:"权限范围",componentProps:{options:l(n.SYSTEM_DATA_SCOPE,"number")}},{fieldName:"dataScopeDeptIds",label:"部门范围",component:"Input",formItemClass:"items-start",dependencies:{triggerFields:["dataScope"],show:t=>t.dataScope===h.DEPT_CUSTOM}}]}function E(){return[{fieldName:"id",component:"Input",dependencies:{triggerFields:[""],show:()=>!1}},{fieldName:"name",label:"角色名称",component:"Input",componentProps:{disabled:!0}},{fieldName:"code",label:"角色标识",component:"Input",componentProps:{disabled:!0}},{fieldName:"menuIds",label:"菜单权限",component:"Input",formItemClass:"items-start"}]}function w(){return[{fieldName:"name",label:"角色名称",component:"Input",componentProps:{placeholder:"请输入角色名称",allowClear:!0}},{fieldName:"code",label:"角色标识",component:"Input",componentProps:{placeholder:"请输入角色标识",allowClear:!0}},{fieldName:"status",label:"角色状态",component:"Select",componentProps:{options:l(n.COMMON_STATUS,"number"),placeholder:"请选择角色状态",allowClear:!0}},{fieldName:"createTime",label:"创建时间",component:"RangePicker",componentProps:r(m({},f()),{allowClear:!0})}]}function M(){return[{type:"checkbox",width:40},{field:"id",title:"角色编号",minWidth:100},{field:"name",title:"角色名称",minWidth:200},{field:"type",title:"角色类型",minWidth:100,cellRender:{name:"CellDict",props:{type:n.SYSTEM_ROLE_TYPE}}},{field:"code",title:"角色标识",minWidth:200},{field:"sort",title:"显示顺序",minWidth:100},{field:"remark",title:"角色备注",minWidth:100},{field:"status",title:"角色状态",minWidth:100,cellRender:{name:"CellDict",props:{type:n.COMMON_STATUS}}},{field:"createTime",title:"创建时间",minWidth:180,formatter:"formatDateTime"},{title:"操作",width:240,fixed:"right",slots:{default:"actions"}}]}export{w as a,D as b,E as c,g as d,M as u};
|