index.84a45c21.js 3.8 KB

1
  1. import{B as b}from"./TableImg.8fe3d61a.js";import{T as h}from"./index.a7ed205f.js";import{u as C}from"./useTable.37d2a279.js";import{av as B,a as T,s as D,aO as _,eI as w,a_ as i,o as F,h as k,n as r,y as a,z as f,t as S}from"./index.723c022d.js";import{d as y}from"./index.75694236.js";import{u as A}from"./index.58539c53.js";import E from"./managerDrawer.d3252beb.js";import"./index.672cb799.js";import"./Checkbox.c04f7b55.js";import"./index.fbbd1f1f.js";import"./index.11082491.js";import"./eagerComputed.c778769d.js";import"./FileOutlined.de22406c.js";import"./BasicForm.e6661e7b.js";/* empty css *//* empty css */import"./index.9a19a3f7.js";import"./index.8f225c1e.js";import"./index.8663089e.js";import"./index.3fb6ac38.js";import"./get.86e6b49d.js";import"./DeleteOutlined.6291cf54.js";import"./transButton.10f02921.js";import"./index.ed278b64.js";import"./index.c12b00dd.js";import"./Col.58b8a958.js";import"./useFlexGapSupport.4d92c09c.js";import"./index.e3c0dcb4.js";import"./Form.9dcaf6f8.js";import"./_baseIteratee.826d6655.js";import"./useSize.a1b385c4.js";import"./uniqBy.4b69f709.js";import"./index.1ca4cef4.js";import"./useWindowSizeFn.79f59aef.js";import"./FullscreenOutlined.3316925c.js";import"./useForm.07244cd7.js";import"./index.6bc64354.js";import"./index.d5e83f0f.js";import"./index.55dec4bb.js";import"./useContentViewHeight.eea93209.js";import"./ArrowLeftOutlined.09823751.js";import"./index.bab0934d.js";import"./FormOutlined.3bac65b1.js";import"./index.9141ffb0.js";import"./index.09b55302.js";import"./useRefs.c430f5ca.js";import"./sortable.esm.a0907b1f.js";import"./RedoOutlined.2d33fcab.js";import"./index.f60fc8fa.js";import"./fromPairs.84aabb58.js";import"./scrollTo.6ea53bed.js";import"./index.9e723d47.js";import"./Group.436b142a.js";import"./index.274a2934.js";import"./index.94ab951f.js";import"./download.6473a23c.js";import"./base64Conver.08b9f4ec.js";import"./index.3fb26d03.js";const I=[{title:"\u6807\u9898",dataIndex:"title",width:200},{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:y,columns:I,bordered:!0,showTableSetting:!0,loading:!0,pagination:{defaultPageSize:20,pageSize:15},actionColumn:{width:230,title:"\u64CD\u4F5C",dataIndex:"action",fixed:"right",slots:{customRender:"action"}}},v=T({components:{BasicTable:b,TableAction:h,ManagerDrawer:E},setup(){const[t,{openDrawer:n}]=A(),p=D(!1),[c,{reload:d}]=C(R),g=_();function s(o){n(!0,{record:o,isUpdate:!0})}function m(o){}function u(){d()}function l(){n(!0,{isUpdate:!1})}function e(o){g({name:"assemble_column",query:{mid:o.mid}})}return{loading:p,registerTable:c,registerDrawer:t,handleCreate:l,handleEdit:s,handleSuccess:u,handleDelete:m,formatToDateTime:w,goColumn:e}}}),x={class:"p-4"};function M(t,n,p,c,d,g){const s=i("a-button"),m=i("TableAction"),u=i("BasicTable"),l=i("ManagerDrawer");return F(),k("div",x,[r(u,{onRegister:t.registerTable},{toolbar:a(()=>[r(s,{type:"primary",onClick:t.handleCreate},{default:a(()=>[f(" \u65B0\u589E\u96C6\u5408 ")]),_:1},8,["onClick"])]),date:a(({text:e})=>[f(S(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(v,[["render",M]]);export{Ut as default};