1 |
- import{_}from"./BasicTable.vue_vue_type_script_setup_true_lang-LfIfgHfU.js";import"./TableImg.vue_vue_type_style_index_0_lang-Bw1yjZfI.js";import"./index-COaHNk09.js";import{u as f}from"./useTable-Ckkpwxcg.js";import{j as g}from"./index-BXL90VpN.js";import{f as x}from"./entry/index-C7JiT1GB.js";import{a4 as d}from"./antd-FjOLgRLC.js";import{l as e,d as I,al as b,Z as h,_ as R,k,u}from"./vue-ByATgq5d.js";import"./BasicForm.vue_vue_type_script_setup_true_lang-CNQgK2hZ.js";import"./FormItem.vue_vue_type_script_lang-DShPDeWl.js";import"./componentMap-Bl3zv6Ms.js";import"./useFormItem-DmfL7Ss_.js";import"./RadioButtonGroup.vue_vue_type_script_setup_true_lang-DXgKlWOB.js";import"./index-DdNcNAMt.js";import"./IconPicker.vue_vue_type_script_setup_true_lang-DORWVBs9.js";import"./copyTextToClipboard-D9zCzvi-.js";import"./index-3Ue_ZFSu.js";import"./index-DU88M1nq.js";import"./index-Cj7S-5xp.js";import"./useWindowSizeFn-JqODWlR_.js";import"./base64Conver-bBv-IO2K.js";import"./helper-Ba5FUquL.js";import"./BasicForm.vue_vue_type_style_index_0_lang-9WP9An_0.js";import"./useForm-BijxHkUB.js";import"./uuid-D0SLUWHI.js";import"./sortable.esm-CoO8jRpa.js";import"./onMountedOrActivated-BDlj7Upy.js";import"./useSortable-y7X8pv8d.js";import"./download-DGeKzh-1.js";const v=[{title:"产品",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:"用户",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:"平台",dataIndex:"os_platform"},{title:"系统信息",dataIndex:"from",width:300},{title:"类型",dataIndex:"type",customRender:({record:t})=>{let a="-";switch(t.type){case 0:a="下载";break;case 1:a="安装";break;case 2:a="卸载";break;case 3:a="启动";break;case 4:a="操作";break}return e("div",a)}},{title:"功能",dataIndex:"tag"},{title:"cpu",dataIndex:"cpu"},{title:"ip",dataIndex:"ip"},{title:"uuid",dataIndex:"windows_uuid"},{title:"代理商",dataIndex:"statistics_flag"},{title:"添加时间",dataIndex:"created_at",customRender:({record:t})=>e("div",t.created_at?x(t.created_at*1e3):"-")}],c={title:"日志列表",titleHelpMessage:"比如:后台管理模块,前台管理模块,命名空间必须与代码模块保持一致!",api:t=>g("use_log_list",t),columns:v,bordered:!0,showTableSetting:!0,loading:!0,pagination:{defaultPageSize:20,pageSize:50},actionColumn:void 0},w={class:"p-4"},et=I({__name:"index",setup(t){var n,m,p,l;const[a]=f(c),r=b(),o=(m=(n=r.query)==null?void 0:n.pmid)!=null?m:"",s=(l=(p=r.query)==null?void 0:p.uid)!=null?l:"";return c.beforeFetch=i=>{o&&(i.pmid=o),s&&(i.user_id=s)},(i,y)=>(h(),R("div",w,[k(u(_),{onRegister:u(a)},null,8,["onRegister"])]))}});export{et as default};
|