moreShopAdmin/build/admin/assets/index.e0a07b32.js

2 lines
3.8 KiB
JavaScript

import{m as E,s as I,r as b,aT as L,p as d,q as U,t as e,v as u,u as l,a2 as F,L as N,y as w,x as B,i as P,A as R,aW as S,aX as $,ae as q,aY as j,b5 as W,b6 as X,b7 as Y,b8 as z}from"./.pnpm.1b0299fb.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.b077f234.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.67e6ad92.js";import{u as J}from"./usePaging.00aa976d.js";import{u as K}from"./useDictOptions.e9843f63.js";import{d as M}from"./log.970f1ec7.js";import"./lodash.c3b66c05.js";import"./index.689cfa31.js";import{_ as O}from"./edit.vue_vue_type_script_setup_true_name_logEdit_lang.7296f9cf.js";import"./@vueuse.72d44d91.js";import"./@vue.9d708d7c.js";import"./index.6c48d0ba.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.abac7546.js";const Q={class:"flex mt-4 justify-end"},Z=E({name:"logLists"}),fe=E({...Z,setup(ee){const v=I(),p=b(!1),a=L({admin_id:"",admin_name:"",url:"",create_time:"",start_time:"",end_time:""}),C=b([]),g=_=>{C.value=_.map(({id:o})=>o)},{dictData:D}=K(""),{pager:s,getLists:i,resetParams:V,resetPage:A}=J({fetchFun:M,params:a});return i(),(_,o)=>{const m=S,r=$,k=H,f=q,x=j,c=W,n=X,T=Y,h=G,y=z;return d(),U("div",null,[e(c,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[e(x,{class:"mb-[-16px]",model:l(a),inline:""},{default:u(()=>[e(r,{label:"\u7BA1\u7406\u5458ID",prop:"admin_id"},{default:u(()=>[e(m,{class:"w-[280px]",modelValue:l(a).admin_id,"onUpdate:modelValue":o[0]||(o[0]=t=>l(a).admin_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458ID"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u7BA1\u7406\u5458\u540D\u79F0",prop:"admin_name"},{default:u(()=>[e(m,{class:"w-[280px]",modelValue:l(a).admin_name,"onUpdate:modelValue":o[1]||(o[1]=t=>l(a).admin_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u8BBF\u95EE\u94FE\u63A5",prop:"url"},{default:u(()=>[e(m,{class:"w-[280px]",modelValue:l(a).url,"onUpdate:modelValue":o[2]||(o[2]=t=>l(a).url=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BBF\u95EE\u94FE\u63A5"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time"},{default:u(()=>[e(k,{startTime:l(a).start_time,"onUpdate:startTime":o[3]||(o[3]=t=>l(a).start_time=t),endTime:l(a).end_time,"onUpdate:endTime":o[4]||(o[4]=t=>l(a).end_time=t)},null,8,["startTime","endTime"])]),_:1}),e(r,null,{default:u(()=>[e(f,{type:"primary",onClick:l(A)},{default:u(()=>o[7]||(o[7]=[F("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(f,{onClick:l(V)},{default:u(()=>o[8]||(o[8]=[F("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),N((d(),w(c,{class:"!border-none",shadow:"never"},{default:u(()=>[B("div",null,[e(T,{data:l(s).lists,onSelectionChange:g},{default:u(()=>[e(n,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(n,{label:"\u7BA1\u7406\u5458ID",prop:"admin_id","show-overflow-tooltip":""}),e(n,{label:"\u7BA1\u7406\u5458\u540D\u79F0",prop:"admin_name","show-overflow-tooltip":""}),e(n,{label:"\u64CD\u4F5C\u540D\u79F0",prop:"action","show-overflow-tooltip":""}),e(n,{label:"\u8BF7\u6C42\u65B9\u5F0F",prop:"type","show-overflow-tooltip":""}),e(n,{label:"\u8BBF\u95EE\u94FE\u63A5",prop:"url","show-overflow-tooltip":""}),e(n,{label:"\u8BF7\u6C42\u6570\u636E",prop:"params","show-overflow-tooltip":""}),e(n,{label:"\u8BF7\u6C42\u7ED3\u679C",prop:"result","show-overflow-tooltip":""}),e(n,{label:"ip\u5730\u5740",prop:"ip","show-overflow-tooltip":""})]),_:1},8,["data"])]),B("div",Q,[e(h,{modelValue:l(s),"onUpdate:modelValue":o[5]||(o[5]=t=>P(s)?s.value=t:null),onChange:l(i)},null,8,["modelValue","onChange"])])]),_:1})),[[y,l(s).loading]]),l(p)?(d(),w(O,{key:0,ref_key:"editRef",ref:v,"dict-data":l(D),onSuccess:l(i),onClose:o[6]||(o[6]=t=>p.value=!1)},null,8,["dict-data","onSuccess"])):R("",!0)])}}});export{fe as default};