import{e as a}from"./vue-vendor-CxLCUzY4.js";const n=[{title:"启用",dataIndex:"switch",width:80,align:"center",slots:{customRender:"switch"}},{title:"字段名称",width:200,dataIndex:"code"},{title:"字段描述",dataIndex:"title"},{title:"列表控制",dataIndex:"list",width:120,slots:{customRender:"list"}},{title:"表单控制",dataIndex:"form",width:180,slots:{customRender:"form"}}],s=[{title:"启用",dataIndex:"switch",width:80,slots:{customRender:"switch"}},{title:"名称",dataIndex:"title"},{title:"编码",dataIndex:"code"},{title:"权限控制",dataIndex:"control",width:180,slots:{customRender:"control"}}],r=[{code:"add",title:"新增",status:0},{code:"update",title:"编辑",status:0},{code:"delete",title:"删除",status:0},{code:"batch_delete",title:"批量删除",status:0},{code:"export",title:"导出",status:0},{code:"import",title:"导入",status:0},{code:"bpm",title:"提交流程",status:0},{code:"super_query",title:"高级查询",status:0}],l="USE_SQL_RULES",u=[{title:"启用",dataIndex:"switch",width:80,slots:{customRender:"switch"}},{title:"规则名称",dataIndex:"ruleName",width:130},{title:"规则描述",dataIndex:"description",customRender({record:{ruleOperator:o,ruleValue:e,ruleColumn:t}}){return o==l?`自定义SQL: ${e}`:`${t} ${o} ${e}`}}];function i(o,e){return{formSchemas:a(()=>[{label:"规则名称",field:"ruleName",required:!0,component:"Input",componentProps:{onChange:e.onRuleNameChange}},{label:"规则字段",field:"ruleColumn",component:"JSearchSelect",componentProps:{dictOptions:o.authFields,getPopupContainer:()=>document.body,onChange:e.onRuleColumnChange},dynamicRules({model:t}){return[{required:t.ruleOperator!=l,message:"请输入规则字段"}]},show:({model:t})=>t.ruleOperator!=l},{label:"条件规则",field:"ruleOperator",required:!0,component:"JDictSelectTag",componentProps:{dictCode:"rule_conditions",onChange:e.onRuleOperatorChange,getPopupContainer:()=>document.body}},{label:"规则值",field:"ruleValue",required:!0,component:"JInputSelect",componentProps:{selectPlaceholder:"可选择系统变量",inputPlaceholder:"请输入",getPopupContainer:()=>document.body,options:[{label:"登录用户账号",value:"${sys_user_code}"},{label:"登录用户名称",value:"${sys_user_name}"},{label:"当前日期",value:"${sys_date}"},{label:"当前时间",value:"${sys_date}"},{label:"登录用户部门",value:"${sys_org_code}"},{label:"用户拥有的部门",value:"${sys_multi_org_code}"},{label:"登录用户租户",value:"${tenant_id}"}]}},{label:"状态",field:"status",required:!0,component:"RadioButtonGroup",componentProps:{options:[{label:"有效",value:1},{label:"无效",value:0}]},defaultValue:1}])}}export{l as a,i as c,n as d,r as i,u as r,s as u};
