text: import{_ as e}from"./TableImg.8375efce.js";import{f as o}from"./BasicForm.d46fdf93.js";import{u as t}from"./useTable.035abbde.js";import{_ as n,g as i,c as s,s as a,d as r}from"./SystemConfigModal.7c568d2c.js";import{b as d}from"./useModal.8b30048f.js";import{k as c,K as l,o as m,n as u,q as f,Q as p,Y as b}from"./vendor.9d9efc92.js";/* empty css              *//* empty css              */import"./useForm.02d3ecdf.js";import"./index.10276049.js";/* empty css              *//* empty css              *//* empty css              */import"./uuid.c53863e7.js";import"./useWindowSizeFn.0534066c.js";import"./onMountedOrActivated.b73559bc.js";/* empty css              */import"./useSortable.477f53a7.js";import"./useExpose.0886c4eb.js";/* empty css              *//* empty css              *//* empty css              */import"./CountdownInput.22be6abe.js";/* empty css              *//* empty css              */import"./download.ec87ce83.js";import"./StrengthMeter.a88f057e.js";var j=c({name:"SystemConfig",components:{BasicTable:e,TableAction:o,SystemConfigModal:n},setup(){const[e,{openModal:o}]=d(),[n,{reload:c}]=t({title:"列表",api:i,columns:s,formConfig:{labelWidth:120,schemas:a,showAdvancedButton:!1,showResetButton:!1,autoSubmitOnEnter:!0},canColDrag:!0,useSearchForm:!0,bordered:!0,showIndexColumn:!0,actionColumn:{width:100,title:"操作",dataIndex:"action",slots:{customRender:"action"},fixed:!1}});return{registerTable:n,registerModal:e,handleCreate:function(){o(!0,{isUpdate:!1})},handleEdit:function(e){o(!0,{record:e,isUpdate:!0})},handleCreateChild:function(e){e={pid:e.id},o(!0,{record:e,isUpdate:!0})},handleDelete:function(e){r([e.id]).then((()=>{c()}))},handleSuccess:function(){c()},doSearch:function(){c()}}}});const h=b(" 新增 ");j.render=function(e,o,t,n,i,s){const a=l("a-button"),r=l("TableAction"),d=l("BasicTable"),c=l("SystemConfigModal");return m(),u("div",null,[f(d,{onRegister:e.registerTable},{toolbar:p((()=>[f(a,{type:"primary",onClick:e.handleCreate},{default:p((()=>[h])),_:1},8,["onClick"])])),action:p((({record:o})=>[f(r,{actions:[{icon:"clarity:note-edit-line",onClick:e.handleEdit.bind(null,o)},{icon:"ant-design:delete-outlined",color:"error",popConfirm:{title:"是否确认删除",confirm:e.handleDelete.bind(null,o)}}]},null,8,["actions"])])),_:1},8,["onRegister"]),f(c,{onRegister:e.registerModal,onSuccess:e.handleSuccess},null,8,["onRegister","onSuccess"])])};export default j;
  