AuthColumn.7d1eea45.js 3.6 KB

1
  1. import{B as s}from"./TableImg.9ce43c8c.js";import{T as d}from"./index.db9b952c.js";import{u as c}from"./useTable.79d7c35e.js";import{d as F}from"./table.999fe072.js";import{aw as h,a as b,w as a,o as r,h as f,n as B,z as A,j as C,k as w}from"./index.7e08ba81.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";const T=[{title:"\u7F16\u53F7",dataIndex:"no",width:100},{title:"\u59D3\u540D",dataIndex:"name",width:200,auth:"test"},{title:"\u72B6\u6001",dataIndex:"status"},{title:"\u72B6\u60011",dataIndex:"status1"},{title:"\u72B6\u60012",dataIndex:"status2"},{title:"\u72B6\u60013",dataIndex:"status3"},{title:"\u72B6\u60014",dataIndex:"status4"},{title:"\u72B6\u60015",dataIndex:"status5"},{title:"\u5730\u5740",dataIndex:"address",auth:"super",ifShow:t=>!0},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"beginTime"},{title:"\u7ED3\u675F\u65F6\u95F4",dataIndex:"endTime",width:200}],I=b({components:{BasicTable:s,TableAction:d},setup(){const[t]=c({title:"TableAction\u7EC4\u4EF6\u53CA\u56FA\u5B9A\u5217\u793A\u4F8B",api:F,columns:T,bordered:!0,rowKey:"id",rowSelection:{type:"checkbox"},actionColumn:{width:250,title:"Action",dataIndex:"action"}});function i(e){}function u(e){}function n(e){}return{registerTable:t,handleEdit:i,handleDelete:u,handleOpen:n}}}),x={class:"p-4"};function _(t,i,u,n,e,E){const p=a("TableAction"),l=a("BasicTable");return r(),f("div",x,[B(l,{onRegister:t.registerTable},{bodyCell:A(({column:m,record:o})=>[m.key==="action"?(r(),C(p,{key:0,actions:[{label:"\u7F16\u8F91",onClick:t.handleEdit.bind(null,o),auth:"other"},{label:"\u5220\u9664",icon:"ic:outline-delete-outline",onClick:t.handleDelete.bind(null,o),auth:"super"}],dropDownActions:[{label:"\u542F\u7528",popConfirm:{title:"\u662F\u5426\u542F\u7528\uFF1F",confirm:t.handleOpen.bind(null,o)},ifShow:k=>o.status!=="enable"},{label:"\u7981\u7528",popConfirm:{title:"\u662F\u5426\u7981\u7528\uFF1F",confirm:t.handleOpen.bind(null,o)},ifShow:()=>o.status==="enable"},{label:"\u540C\u65F6\u63A7\u5236",popConfirm:{title:"\u662F\u5426\u52A8\u6001\u663E\u793A\uFF1F",confirm:t.handleOpen.bind(null,o)},auth:"super",ifShow:()=>!0}]},null,8,["actions","dropDownActions"])):w("",!0)]),_:1},8,["onRegister"])])}var Dt=h(I,[["render",_]]);export{Dt as default};