1 |
- import{_}from"./BasicTable.vue_vue_type_script_setup_true_lang-EzL_pcBM.js";import"./TableImg.vue_vue_type_style_index_0_lang-CyBq2Ika.js";import"./index-CoTqoxZ6.js";import{u as f}from"./useTable-D29xUPy9.js";import{j as g}from"./index-xe_Tq3wK.js";import{f as x}from"./entry/index-CfskT3Lu.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-DCqgSd2k.js";import"./FormItem.vue_vue_type_script_lang-ChYeqYOs.js";import"./componentMap-B_GNUX2i.js";import"./useFormItem-DmfL7Ss_.js";import"./RadioButtonGroup.vue_vue_type_script_setup_true_lang-BmbRH3oa.js";import"./index-BdOHQZDU.js";import"./IconPicker.vue_vue_type_script_setup_true_lang-D7cZ-Nzf.js";import"./copyTextToClipboard-D9zCzvi-.js";import"./index-9cQvflNm.js";import"./index-DsR1EPhy.js";import"./index-DbwKPLxP.js";import"./useWindowSizeFn-CoP3yonw.js";import"./base64Conver-bBv-IO2K.js";import"./helper-CqPmaJpC.js";import"./BasicForm.vue_vue_type_style_index_0_lang-D85GKCZL.js";import"./useForm-C8Bv3qKu.js";import"./uuid-D0SLUWHI.js";import"./sortable.esm-CoO8jRpa.js";import"./onMountedOrActivated-BDlj7Upy.js";import"./useSortable-mnPAo9jg.js";import"./download-BWuDWaOR.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};
|