import{B as _}from"./TableImg.4c25b2e4.js";import"./index.2ceeb335.js";import{u as F}from"./useTable.6d62fd16.js";import{n as f}from"./index.83aaad54.js";import{bR as e,eI as g,a as x,aN as B,o as E,h as D,n as b,i as l}from"./index.97c70775.js";import{A as d}from"./index.e017a62f.js";import"./index.27bfa3fd.js";import"./Checkbox.7642e90f.js";import"./index.221d6122.js";import"./index.eb99b34d.js";import"./eagerComputed.a9afdf3f.js";import"./FileOutlined.06e352b5.js";import"./BasicForm.98ee0a61.js";/* empty css *//* empty css */import"./index.376f7d77.js";import"./index.74899dcd.js";import"./index.ee15e24a.js";import"./index.cef0d45a.js";import"./get.42ae1097.js";import"./DeleteOutlined.59fb3f3a.js";import"./transButton.231a8ef9.js";import"./index.f22ca87e.js";import"./index.0e29685c.js";import"./Col.2079ddbc.js";import"./useFlexGapSupport.07d6e900.js";import"./index.cae94db2.js";import"./Form.9361f89f.js";import"./_baseIteratee.3a1e7c2b.js";import"./useSize.888c6d90.js";import"./uniqBy.244093b2.js";import"./index.25a01433.js";import"./useWindowSizeFn.bb740ef7.js";import"./FullscreenOutlined.8e7a919a.js";import"./useForm.48550b19.js";import"./index.5d68b2d4.js";import"./index.ec8df927.js";import"./useContentViewHeight.4e0b2e8d.js";import"./ArrowLeftOutlined.5b8718d6.js";import"./index.1292065e.js";import"./FormOutlined.bae14c68.js";import"./index.a7d63c49.js";import"./index.85f4f083.js";import"./useRefs.dcf26156.js";import"./sortable.esm.a0907b1f.js";import"./RedoOutlined.560bd00b.js";import"./index.16ef16a0.js";import"./fromPairs.84aabb58.js";import"./scrollTo.c927ac62.js";import"./index.cea071a6.js";import"./Group.19df0dc0.js";import"./index.cb32f675.js";import"./index.e2c53397.js";import"./download.b0e6596f.js";import"./base64Conver.08b9f4ec.js";const I=[{title:"\u4EA7\u54C1",dataIndex:"title",width:150,customRender:({record:t})=>t.relate_1?e("span",[e(d,{src:t.relate_1.logo,style:{marginRight:"5px"}}),e("span",t.relate_1.title)]):e("div","-")},{title:"\u7528\u6237",dataIndex:"en_alias",customRender:({record:t})=>t.relate_0&&t.relate_0.username?e("span",[e(d,{src:t.relate_0.avatar,style:{marginRight:"5px"}}),e("span",t.relate_0.username)]):e("div","-")},{title:"\u5E73\u53F0",dataIndex:"os_platform"},{title:"\u7CFB\u7EDF\u4FE1\u606F",dataIndex:"from",width:300},{title:"\u7C7B\u578B",dataIndex:"type",customRender:({record:t})=>{let i="-";switch(t.type){case 0:i="\u4E0B\u8F7D";break;case 1:i="\u5B89\u88C5";break;case 2:i="\u5378\u8F7D";break;case 3:i="\u542F\u52A8";break;case 4:i="\u64CD\u4F5C";break}return e("div",i)}},{title:"\u529F\u80FD",dataIndex:"tag"},{title:"cpu",dataIndex:"cpu"},{title:"ip",dataIndex:"ip"},{title:"uuid",dataIndex:"windows_uuid"},{title:"\u4EE3\u7406\u5546",dataIndex:"statistics_flag"},{title:"\u6DFB\u52A0\u65F6\u95F4",dataIndex:"created_at",customRender:({record:t})=>e("div",t.created_at?g(t.created_at*1e3):"-")}],c={title:"\u65E5\u5FD7\u5217\u8868",titleHelpMessage:"\u6BD4\u5982:\u540E\u53F0\u7BA1\u7406\u6A21\u5757,\u524D\u53F0\u7BA1\u7406\u6A21\u5757\uFF0C\u547D\u540D\u7A7A\u95F4\u5FC5\u987B\u4E0E\u4EE3\u7801\u6A21\u5757\u4FDD\u6301\u4E00\u81F4\uFF01",api:t=>f("use_log_list",t),columns:I,bordered:!0,showTableSetting:!0,loading:!0,pagination:{defaultPageSize:20,pageSize:50},actionColumn:void 0},A={class:"p-4"},Rt=x({__name:"index",setup(t){var p,m,s,n;const[i]=F(c),u=B(),a=(m=(p=u.query)==null?void 0:p.pmid)!=null?m:"",o=(n=(s=u.query)==null?void 0:s.uid)!=null?n:"";return c.beforeFetch=r=>{a&&(r.pmid=a),o&&(r.user_id=o)},(r,h)=>(E(),D("div",A,[b(l(_),{onRegister:l(i)},null,8,["onRegister"])]))}});export{Rt as default};