Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

2 строки
3.0KB

  1. import{y as I,d as M,b as v,r as p,a0 as B,o as C,c as l,e as z,f as L,h as e,i as a,j as c,g as s,t as d,F as q}from"./index.d340e473.js";const F=_=>I.post("/optLog/page",_),O={class:"px-50 text-info"},P=M({name:"systemLog"}),j=Object.assign(P,{setup(_){const t=v({userName:void 0,times:void 0,finishTime:void 0,startTime:void 0}),f=p(),h=p(0),y=v([{type:"expand"},{label:"\u7528\u6237\u59D3\u540D",key:"userName",prop:"userName",width:"180"},{label:"IP",key:"requestIp",prop:"requestIp",width:"180"},{label:"IP\u6765\u6E90",key:"regionByIp",prop:"regionByIp",width:"150",showOverflowTooltip:!0},{label:"\u63CF\u8FF0",key:"description",prop:"description",minWidth:"200",showOverflowTooltip:!0},{label:"\u8BF7\u6C42\u8017\u65F6",key:"consumingTime",render:i=>B("span",`${i.consumingTime}ms`),width:"100"},{label:"\u64CD\u4F5C\u65F6\u95F4",key:"startTime",prop:"startTime",width:"180"}]),b=p([]),r=async(i=f.value.pageParams)=>{const n=await F({...i,...t,startTime:t.times&&t.times.length?t.times[0]:void 0,finishTime:t.times&&t.times.length?t.times[1]:void 0});h.value=n.data.total,b.value=n.data.records},k=()=>{r()},T=()=>{t.userName=void 0,t.times=void 0,r({pageNumber:1,pageSize:10})};return C(()=>{r()}),(i,n)=>{const N=l("el-input"),m=l("el-form-item"),u=l("el-col"),x=l("el-date-picker"),g=l("el-button"),V=l("el-row"),Y=l("el-form"),w=l("el-card"),D=l("table-list");return z(),L(q,null,[e(w,{shadow:"never",class:"search mb-16"},{default:a(()=>[e(Y,{"label-suffix":":",model:t,size:"small"},{default:a(()=>[e(V,{gutter:16},{default:a(()=>[e(u,{span:8},{default:a(()=>[e(m,{label:"\u7528\u6237\u59D3\u540D"},{default:a(()=>[e(N,{modelValue:t.userName,"onUpdate:modelValue":n[0]||(n[0]=o=>t.userName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:8},{default:a(()=>[e(m,{label:"\u64CD\u4F5C\u65F6\u95F4"},{default:a(()=>[e(x,{modelValue:t.times,"onUpdate:modelValue":n[1]||(n[1]=o=>t.times=o),editable:!1,format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",type:"daterange","unlink-panels":"","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:8},{default:a(()=>[e(m,{class:"btn"},{default:a(()=>[e(g,{type:"primary",size:"small",onClick:k},{default:a(()=>[c("\u67E5\u8BE2")]),_:1}),e(g,{size:"small",onClick:T},{default:a(()=>[c("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(w,{shadow:"never"},{header:a(()=>[c("\u65E5\u5FD7\u5217\u8868")]),default:a(()=>[e(D,{ref_key:"tableListRef",ref:f,column:y,data:b.value,total:h.value,onGetTableData:r},{expand:a(({scope:o})=>[s("div",O,[s("div",null,"\u8BF7\u6C42\u5730\u5740\uFF1A"+d(o.row.requestUri),1),s("div",null,"\u8BF7\u6C42\u65B9\u6CD5\uFF1A"+d(o.row.httpMethod),1),s("div",null,"\u8BF7\u6C42\u53C2\u6570\uFF1A"+d(o.row.params||"-"),1),s("div",null,"\u8BF7\u6C42\u7ED3\u679C\uFF1A"+d(o.row.result||"-"),1)])]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{j as default};