vue-pure-admin/dist/static/js/index-Dyzll_OB.js
2024-03-21 22:48:37 +08:00

2 lines
4.3 KiB
JavaScript

import{useRole as A}from"./hook-B6TaVaQu.js";import{g as E}from"./utils-NlcLu7mC.js";import{R as F,P as K}from"./refresh-hz8n9CjZ.js";import{u as c}from"./hooks-n2iC5q0_.js";import{d as M}from"./delete-Ce0TSdK5.js";import{d as G,r as h,k as n,v as H,e as C,x as b,m as o,j as t,u as e,l as i,z as J,g as k,t as O,K as Q,_ as W}from"./index-BAaep8yZ.js";import"./detail.vue_vue_type_script_setup_true_lang-0eBypr-E.js";import"./vue-json-pretty-pvNpy4mr.js";import"./system-C4sbqSKx.js";import"./epTheme-C6dkH2Du.js";import"./sortable.esm-6WsHlDA5.js";const X={width:1024,height:1024,body:'<path fill="currentColor" d="M512 160c320 0 512 352 512 352S832 864 512 864S0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288c52.608 79.872 211.456 288 436.8 288c225.28 0 384.128-208.064 436.8-288c-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448a224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160s-71.744-160-160-160z"/>'},Y=X,Z={class:"main"},ee={key:0,class:"bg-[var(--el-fill-color-light)] w-full h-[46px] mb-2 pl-4 flex items-center"},oe={class:"flex-auto"},te={style:{"font-size":"var(--el-font-size-base)"},class:"text-[rgba(42,46,54,0.5)] dark:text-[rgba(220,220,242,0.5)]"},le=G({name:"SystemLog",__name:"index",setup(ne){const d=h(),p=h(),{form:s,loading:u,columns:y,dataList:v,pagination:x,selectedNum:f,onSearch:_,onDetail:S,clearAll:V,resetForm:w,onbatchDel:z,handleSizeChange:R,onSelectionCancel:D,handleCellDblclick:P,handleCurrentChange:B,handleSelectionChange:N}=A(p);return(ae,a)=>{const T=n("el-input"),m=n("el-form-item"),q=n("el-date-picker"),r=n("el-button"),$=n("el-form"),g=n("el-popconfirm"),I=n("pure-table"),L=H("motion-fade");return C(),b("div",Z,[o($,{ref_key:"formRef",ref:d,inline:!0,model:e(s),class:"search-form bg-bg_color w-[99/100] pl-8 pt-[12px] overflow-auto"},{default:t(()=>[o(m,{label:"所属模块",prop:"module"},{default:t(()=>[o(T,{modelValue:e(s).module,"onUpdate:modelValue":a[0]||(a[0]=l=>e(s).module=l),placeholder:"请输入所属模块",clearable:"",class:"!w-[170px]"},null,8,["modelValue"])]),_:1}),o(m,{label:"请求时间",prop:"requestTime"},{default:t(()=>[o(q,{modelValue:e(s).requestTime,"onUpdate:modelValue":a[1]||(a[1]=l=>e(s).requestTime=l),shortcuts:e(E)(),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期时间","end-placeholder":"结束日期时间"},null,8,["modelValue","shortcuts"])]),_:1}),o(m,null,{default:t(()=>[o(r,{type:"primary",icon:e(c)("ri:search-line"),loading:e(u),onClick:e(_)},{default:t(()=>[i(" 搜索 ")]),_:1},8,["icon","loading","onClick"]),o(r,{icon:e(c)(e(F)),onClick:a[2]||(a[2]=l=>e(w)(d.value))},{default:t(()=>[i(" 重置 ")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"]),o(e(K),{title:"系统日志(仅演示,操作后不生效)",columns:e(y),onRefresh:e(_)},{buttons:t(()=>[o(g,{title:"确定要删除所有日志数据吗?",onConfirm:e(V)},{reference:t(()=>[o(r,{type:"danger",icon:e(c)(e(M))},{default:t(()=>[i(" 清空日志 ")]),_:1},8,["icon"])]),_:1},8,["onConfirm"])]),default:t(({size:l,dynamicColumns:U})=>[e(f)>0?J((C(),b("div",ee,[k("div",oe,[k("span",te," 已选 "+O(e(f))+" 项 ",1),o(r,{type:"primary",text:"",onClick:e(D)},{default:t(()=>[i(" 取消选择 ")]),_:1},8,["onClick"])]),o(g,{title:"是否确认删除?",onConfirm:e(z)},{reference:t(()=>[o(r,{type:"danger",text:"",class:"mr-1"},{default:t(()=>[i(" 批量删除 ")]),_:1})]),_:1},8,["onConfirm"])])),[[L]]):Q("",!0),o(I,{ref_key:"tableRef",ref:p,"row-key":"id","align-whole":"center","table-layout":"auto",loading:e(u),size:l,adaptive:"",adaptiveConfig:{offsetBottom:108},data:e(v),columns:U,pagination:e(x),paginationSmall:l==="small","header-cell-style":{background:"var(--el-fill-color-light)",color:"var(--el-text-color-primary)"},onSelectionChange:e(N),onPageSizeChange:e(R),onPageCurrentChange:e(B),onCellDblclick:e(P)},{operation:t(({row:j})=>[o(r,{class:"reset-margin !outline-none",link:"",type:"primary",size:l,icon:e(c)(e(Y)),onClick:re=>e(S)(j)},{default:t(()=>[i(" 详情 ")]),_:2},1032,["size","icon","onClick"])]),_:2},1032,["loading","size","data","columns","pagination","paginationSmall","header-cell-style","onSelectionChange","onPageSizeChange","onPageCurrentChange","onCellDblclick"])]),_:1},8,["columns","onRefresh"])])}}}),Ce=W(le,[["__scopeId","data-v-93c1a603"]]);export{Ce as default};