import{B as b}from"./TableImg.9ce43c8c.js";import{T as h}from"./index.db9b952c.js";import{u as C}from"./useTable.79d7c35e.js";import{aw as B,a as T,s as w,aP as D,eI as _,w as i,o as F,h as k,n as r,z as a,B as g,t as A}from"./index.7e08ba81.js";import{d as E}from"./index.a814284d.js";import{u as S}from"./index.5a7c436a.js";import y from"./managerDrawer.9fbbb84b.js";import"./index.a9463ec3.js";import"./Checkbox.2b7c666a.js";import"./index.0d1117cf.js";import"./index.0e13704b.js";import"./eagerComputed.41f917f7.js";import"./FileOutlined.1ba59fec.js";import"./BasicForm.09fa6853.js";/* empty css *//* empty css */import"./index.0fba574f.js";import"./index.673e5955.js";import"./index.e102b091.js";import"./index.7e5abc0c.js";import"./get.06058cdc.js";import"./DeleteOutlined.12ba33eb.js";import"./transButton.38e068f8.js";import"./index.20008ed6.js";import"./index.51fe0c69.js";import"./Col.dccd6464.js";import"./useFlexGapSupport.ba88ba25.js";import"./index.7bbcc8f3.js";import"./Form.0777dffc.js";import"./_baseIteratee.cd40e9ab.js";import"./useSize.1210be5f.js";import"./uniqBy.e8d75d01.js";import"./index.aef1b210.js";import"./useWindowSizeFn.9cd1b73f.js";import"./FullscreenOutlined.3ea9a56b.js";import"./useForm.e12ea52c.js";import"./index.334036fa.js";import"./index.ea1692d3.js";import"./index.3132743a.js";import"./useContentViewHeight.eee5bfce.js";import"./ArrowLeftOutlined.8453d1a8.js";import"./index.492f2ae6.js";import"./FormOutlined.8ec71e0a.js";import"./index.756c7042.js";import"./index.1016abaf.js";import"./useRefs.9e0a4abb.js";import"./sortable.esm.7d5432c3.js";import"./RedoOutlined.2794d90f.js";import"./index.01b7ee47.js";import"./fromPairs.84aabb58.js";import"./scrollTo.f658bbdc.js";import"./index.828a2959.js";import"./Group.ea437422.js";import"./index.7fe36cdd.js";import"./index.821e0528.js";import"./download.ef0c06e3.js";import"./base64Conver.08b9f4ec.js";import"./index.92bb6ba8.js";const I=[{title:"\u6807\u9898",dataIndex:"title",width:150},{title:"\u8868\u540D",dataIndex:"schema"},{title:"\u5907\u6CE8",dataIndex:"remark",width:150},{title:"\u6DFB\u52A0\u65F6\u95F4",dataIndex:"created_at",width:150,sorter:!0,slots:{customRender:"date"}}],R={title:"\u96C6\u5408\u5217\u8868",titleHelpMessage:"\u6BD4\u5982:\u6570\u636E\u8868\u7684\u7BA1\u7406\u5217\u8868\uFF01",api:E,columns:I,bordered:!0,showTableSetting:!0,loading:!0,pagination:{defaultPageSize:20},actionColumn:{width:230,title:"\u64CD\u4F5C",dataIndex:"action",fixed:"right",slots:{customRender:"action"}}},x=T({components:{BasicTable:b,TableAction:h,ManagerDrawer:y},setup(){const[t,{openDrawer:n}]=S(),p=w(!1),[c,{reload:d}]=C(R),f=D();function s(o){n(!0,{record:o,isUpdate:!0})}function m(o){}function u(){d()}function l(){n(!0,{isUpdate:!1})}function e(o){f({name:"assemble_column",query:{mid:o.mid}})}return{loading:p,registerTable:c,registerDrawer:t,handleCreate:l,handleEdit:s,handleSuccess:u,handleDelete:m,formatToDateTime:_,goColumn:e}}}),M={class:"p-4"};function $(t,n,p,c,d,f){const s=i("a-button"),m=i("TableAction"),u=i("BasicTable"),l=i("ManagerDrawer");return F(),k("div",M,[r(u,{onRegister:t.registerTable},{toolbar:a(()=>[r(s,{type:"primary",onClick:t.handleCreate},{default:a(()=>[g(" \u65B0\u589E\u96C6\u5408 ")]),_:1},8,["onClick"])]),date:a(({text:e})=>[g(A(t.formatToDateTime(e*1e3)),1)]),action:a(({record:e})=>[r(m,{actions:[{label:"\u7F16\u8F91",icon:"clarity:note-edit-line",color:"success",onClick:t.handleEdit.bind(null,e)},{label:"\u5B57\u6BB5\u7BA1\u7406",icon:"clarity:note-edit-line",color:"warning",onClick:t.goColumn.bind(null,e)},{label:"\u5220\u9664",icon:"ic:outline-delete-outline",color:"error",onClick:t.handleDelete.bind(null,e)}]},null,8,["actions"])]),_:1},8,["onRegister"]),r(l,{onRegister:t.registerDrawer,onSuccess:t.handleSuccess},null,8,["onRegister","onSuccess"])])}var Ut=B(x,[["render",$]]);export{Ut as default};