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

3 месяцев назад
1
  1. import{s as I,d as M,b as v,r as p,Z as B,o as C,c as o,e as z,f as L,h as e,i as a,j as f,g as s,t as d,F as q}from"./index.a2494fc2.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}),c=p(),b=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"}]),g=p([]),r=async(i=c.value.pageParams)=>{const l=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});b.value=l.data.total,g.value=l.data.records},k=()=>{r()},T=()=>{t.userName=void 0,t.times=void 0,r({pageNumber:1,pageSize:10})};return C(()=>{r()}),(i,l)=>{const N=o("el-input"),m=o("el-form-item"),u=o("el-col"),x=o("el-date-picker"),h=o("el-button"),V=o("el-row"),Y=o("el-form"),w=o("el-card"),D=o("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":l[0]||(l[0]=n=>t.userName=n),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":l[1]||(l[1]=n=>t.times=n),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(h,{type:"primary",size:"small",onClick:k},{default:a(()=>l[2]||(l[2]=[f("\u67E5\u8BE2")])),_:1}),e(h,{size:"small",onClick:T},{default:a(()=>l[3]||(l[3]=[f("\u91CD\u7F6E")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(w,{shadow:"never"},{header:a(()=>l[4]||(l[4]=[f("\u65E5\u5FD7\u5217\u8868")])),default:a(()=>[e(D,{ref_key:"tableListRef",ref:c,column:y,data:g.value,total:b.value,onGetTableData:r},{expand:a(({scope:n})=>[s("div",O,[s("div",null,"\u8BF7\u6C42\u5730\u5740\uFF1A"+d(n.row.requestUri),1),s("div",null,"\u8BF7\u6C42\u65B9\u6CD5\uFF1A"+d(n.row.httpMethod),1),s("div",null,"\u8BF7\u6C42\u53C2\u6570\uFF1A"+d(n.row.params||"-"),1),s("div",null,"\u8BF7\u6C42\u7ED3\u679C\uFF1A"+d(n.row.result||"-"),1)])]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{j as default};