|
- var P=Object.defineProperty,O=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var V=(o,e,t)=>e in o?P(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,v=(o,e)=>{for(var t in e||(e={}))U.call(e,t)&&V(o,t,e[t]);if(x)for(var t of x(e))z.call(e,t)&&V(o,t,e[t]);return o},Y=(o,e)=>O(o,q(e));var D=(o,e,t)=>new Promise((p,u)=>{var _=s=>{try{m(t.next(s))}catch(r){u(r)}},i=s=>{try{m(t.throw(s))}catch(r){u(r)}},m=s=>s.done?p(s.value):Promise.resolve(s.value).then(_,i);m((t=t.apply(o,e)).next())});import{N as R,d as S,a as I,r as w,O as j,o as E,f as n,g as F,c as G,e as a,w as l,b as h,t as y,h as k}from"./index.063c96f2.js";const W=o=>R.post("/optLog/page",o),$={class:"systemLog"},A=k("\u67E5\u8BE2"),H=k("\u91CD\u7F6E"),J=k("\u65E5\u5FD7\u5217\u8868"),K={class:"px-50 text-info"},Q=S({name:"systemLog"}),ee=Object.assign(Q,{setup(o){const e=I({userName:void 0,times:void 0}),t=w(),p=w(0),u=I([{type:"expand"},{label:"\u7528\u6237\u59D3\u540D",key:"userName",prop:"userName",minWidth:"180",showOverflowTooltip:!0},{label:"IP",key:"requestIp",prop:"requestIp",width:"180"},{label:"IP\u6765\u6E90",key:"regionByIp",prop:"regionByIp",width:"180"},{label:"\u63CF\u8FF0",key:"description",prop:"description",width:"180",showOverflowTooltip:!0},{label:"\u8BF7\u6C42\u8017\u65F6",key:"consumingTime",render:r=>j("span",`${r.consumingTime}ms`),width:"100"},{label:"\u64CD\u4F5C\u65F6\u95F4",key:"startTime",prop:"startTime",width:"180",fixed:"right"}]),_=w([]),i=(...c)=>D(this,[...c],function*(r=t.value.pageParams){const f=yield W(Y(v(v({},r),e),{startTime:e.times&&e.times.length?e.times[0]:void 0,finishTime:e.times&&e.times.length?e.times[1]:void 0}));p.value=f.data.total,_.value=f.data.records}),m=()=>{i()},s=()=>{e.userName=void 0,e.times=void 0,t.value.pageParams.pageNumber=1,t.value.pageParams.pageSize=10,i()};return E(()=>{i()}),(r,c)=>{const f=n("el-input"),b=n("el-form-item"),g=n("el-col"),M=n("el-date-picker"),N=n("el-button"),B=n("el-row"),C=n("el-form"),T=n("el-card"),L=n("table-list");return F(),G("div",$,[a(T,{shadow:"never",class:"search mb-16"},{default:l(()=>[a(C,{"label-suffix":":",model:e,size:"small"},{default:l(()=>[a(B,{gutter:16},{default:l(()=>[a(g,{span:6},{default:l(()=>[a(b,{label:"\u7528\u6237\u59D3\u540D"},{default:l(()=>[a(f,{modelValue:e.userName,"onUpdate:modelValue":c[0]||(c[0]=d=>e.userName=d),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(g,{span:10},{default:l(()=>[a(b,{label:"\u64CD\u4F5C\u65F6\u95F4"},{default:l(()=>[a(M,{modelValue:e.times,"onUpdate:modelValue":c[1]||(c[1]=d=>e.times=d),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}),a(g,{span:8},{default:l(()=>[a(b,{class:"btn"},{default:l(()=>[a(N,{type:"primary",onClick:m},{default:l(()=>[A]),_:1}),a(N,{type:"info",onClick:s},{default:l(()=>[H]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(T,{shadow:"never"},{header:l(()=>[J]),default:l(()=>[a(L,{ref_key:"tableListRef",ref:t,column:u,data:_.value,total:p.value,onGetTableData:i},{expand:l(({scope:d})=>[h("div",K,[h("div",null,"\u8BF7\u6C42\u5730\u5740\uFF1A"+y(d.row.requestUri),1),h("div",null,"\u8BF7\u6C42\u65B9\u6CD5\uFF1A"+y(d.row.httpMethod),1),h("div",null,"\u8BF7\u6C42\u53C2\u6570\uFF1A"+y(d.row.params),1)])]),_:1},8,["column","data","total"])]),_:1})])}}});export{ee as default};
|