2 lines
4.5 KiB
JavaScript
2 lines
4.5 KiB
JavaScript
import{L,M as U,N as I,O as N,B as R,C as P,w as S,D as $}from"./element-plus.2acb577d.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.a280d02d.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.f0ebc68a.js";import{u as q}from"./usePaging.23706826.js";import{u as K}from"./useDictOptions.4fbfb4d7.js";import{d as O}from"./log.3be37062.js";import"./lodash.6bfd3540.js";import"./index.81df6f20.js";import{_ as Q}from"./edit.vue_vue_type_script_setup_true_name_logEdit_lang.5ba59aaf.js";import{d as E,s as Z,r as F,Z as z,o as p,c as G,U as o,L as u,u as t,R as w,M as H,K as B,a as b,i as J,Q as W}from"./@vue.821a47ec.js";import"./lodash-es.df44a280.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.81e2759c.js";import"./@element-plus.dabbc398.js";import"./dayjs.d2a77ee0.js";import"./axios.9e996410.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.4c04f9b6.js";import"./pinia.fefed778.js";import"./css-color-function.8ff67959.js";import"./color.bfa08e9a.js";import"./clone.660f80c4.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.dcb32030.js";import"./vue-clipboard3.e681583f.js";import"./clipboard.3ad9b20b.js";import"./echarts.42bea269.js";import"./tslib.60310f1a.js";import"./zrender.2cb48b70.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8864a4be.js";import"./index.f292cd50.js";const X={class:"flex mt-4 justify-end"},Y=E({name:"logLists"}),Mo=E({...Y,setup(oo){const v=Z(),d=F(!1),l=z({admin_id:"",admin_name:"",url:"",create_time:"",start_time:"",end_time:""}),C=F([]),D=_=>{C.value=_.map(({id:e})=>e)},{dictData:g}=K(""),{pager:n,getLists:m,resetParams:V,resetPage:k}=q({fetchFun:O,params:l});return m(),(_,e)=>{const s=R,i=P,A=j,f=S,x=$,c=L,r=U,T=I,h=M,y=N;return p(),G("div",null,[o(c,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[o(x,{class:"mb-[-16px]",model:t(l),inline:""},{default:u(()=>[o(i,{label:"\u7BA1\u7406\u5458ID",prop:"admin_id"},{default:u(()=>[o(s,{class:"w-[280px]",modelValue:t(l).admin_id,"onUpdate:modelValue":e[0]||(e[0]=a=>t(l).admin_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458ID"},null,8,["modelValue"])]),_:1}),o(i,{label:"\u7BA1\u7406\u5458\u540D\u79F0",prop:"admin_name"},{default:u(()=>[o(s,{class:"w-[280px]",modelValue:t(l).admin_name,"onUpdate:modelValue":e[1]||(e[1]=a=>t(l).admin_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(i,{label:"\u8BBF\u95EE\u94FE\u63A5",prop:"url"},{default:u(()=>[o(s,{class:"w-[280px]",modelValue:t(l).url,"onUpdate:modelValue":e[2]||(e[2]=a=>t(l).url=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BBF\u95EE\u94FE\u63A5"},null,8,["modelValue"])]),_:1}),o(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time"},{default:u(()=>[o(A,{startTime:t(l).start_time,"onUpdate:startTime":e[3]||(e[3]=a=>t(l).start_time=a),endTime:t(l).end_time,"onUpdate:endTime":e[4]||(e[4]=a=>t(l).end_time=a)},null,8,["startTime","endTime"])]),_:1}),o(i,null,{default:u(()=>[o(f,{type:"primary",onClick:t(k)},{default:u(()=>e[7]||(e[7]=[w("\u67E5\u8BE2")])),_:1},8,["onClick"]),o(f,{onClick:t(V)},{default:u(()=>e[8]||(e[8]=[w("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),H((p(),B(c,{class:"!border-none",shadow:"never"},{default:u(()=>[b("div",null,[o(T,{data:t(n).lists,onSelectionChange:D},{default:u(()=>[o(r,{label:"ID",prop:"id","show-overflow-tooltip":""}),o(r,{label:"\u7BA1\u7406\u5458ID",prop:"admin_id","show-overflow-tooltip":""}),o(r,{label:"\u7BA1\u7406\u5458\u540D\u79F0",prop:"admin_name","show-overflow-tooltip":""}),o(r,{label:"\u64CD\u4F5C\u540D\u79F0",prop:"action","show-overflow-tooltip":""}),o(r,{label:"\u8BF7\u6C42\u65B9\u5F0F",prop:"type","show-overflow-tooltip":""}),o(r,{label:"\u8BBF\u95EE\u94FE\u63A5",prop:"url","show-overflow-tooltip":""}),o(r,{label:"\u8BF7\u6C42\u6570\u636E",prop:"params","show-overflow-tooltip":""}),o(r,{label:"\u8BF7\u6C42\u7ED3\u679C",prop:"result","show-overflow-tooltip":""}),o(r,{label:"ip\u5730\u5740",prop:"ip","show-overflow-tooltip":""})]),_:1},8,["data"])]),b("div",X,[o(h,{modelValue:t(n),"onUpdate:modelValue":e[5]||(e[5]=a=>J(n)?n.value=a:null),onChange:t(m)},null,8,["modelValue","onChange"])])]),_:1})),[[y,t(n).loading]]),t(d)?(p(),B(Q,{key:0,ref_key:"editRef",ref:v,"dict-data":t(g),onSuccess:t(m),onClose:e[6]||(e[6]=a=>d.value=!1)},null,8,["dict-data","onSuccess"])):W("",!0)])}}});export{Mo as default};
|