| 1 |
- import{d as z,i as f,l as S,r,o as m,b as W,w as n,e as o,y as w,s as v,c as e,f as k,F,S as H,t as b,H as U,B as j,_ as E}from"./index-3b8b93f4.js";import"./CusNavigation.vue_vue_type_style_index_0_scoped_5e63f475_lang-c9f54a72.js";import{C as J}from"./CusNavigation-0a2cb184.js";import{p as C}from"./index-519a55fb.js";import{R as L}from"./ReloadOutlined-79e30c0a.js";const M=o("div",null," 详情 ",-1),P=z({__name:"Detail",setup(B,{expose:h}){const d=f(!1),u=i=>{console.log(i),d.value=!1},g=()=>{d.value=!0},_=()=>{d.value=!1};return S(()=>{}),h({show:g,hidden:_}),(i,c)=>{const y=r("a-modal");return m(),W(y,{title:"产品功能",visible:d.value,"onUpdate:visible":c[0]||(c[0]=x=>d.value=x),maskClosable:!1,width:480,cancelText:"取消",okText:"确定",onOk:u},{default:n(()=>[M]),_:1},8,["visible"])}}}),Q={class:"cus-animation",style:{height:"100%",width:"100%",padding:"16px 20px",display:"flex","flex-direction":"column"}},q={style:{display:"flex","justify-content":"space-between","align-items":"flex-end"}},A={style:{display:"flex"}},G={style:{"font-weight":"bold"}},K={style:{"font-weight":"bold"}},X={key:0,style:{color:"green"}},Y={key:1,style:{color:"red"}},Z=["onClick"],ee={key:0,style:{"margin-left":"26px"}},te=z({__name:"Index",setup(B){const h=f(null),d=w({x:1600}),u=w({pageSize:20,current:1,size:"default",showSizeChanger:!0,showQuickJumper:!0,showTotal:function(t){return`共 ${t} 条数据`},onChange:function(t,a){console.log("111",t,a),this.current=t,this.pageSize=a,c()}}),g=f([]),_=f(!1),i=w({size:20,page:1,sort:"createtime",order:"desc",keyWord:""}),c=()=>{_.value=!0,i.size=u.pageSize,i.page=u.current,C({url:"/log/search",data:i},t=>{console.log(t),u.total=t.total,g.value=t.data,_.value=!1})},y=function(){u.current=1,c()},x=f(null),T=t=>{var a;console.log(t),(a=x.value)==null||a.show(t)},$=t=>{console.log(t);const a={id:t.id};C({url:"/user/delete",data:a},p=>{console.log(p),j.info(p.msg),c()})};return S(()=>{var t;d.y=((t=h.value)==null?void 0:t.clientHeight)-113,c()}),(t,a)=>{const p=r("a-tooltip"),I=r("a-input"),N=r("a-form-item"),O=r("a-form"),s=r("a-table-column"),R=r("a-popconfirm"),D=r("a-table");return m(),v(F,null,[o("div",Q,[e(k(J),{title:"操作日志"}),o("div",q,[o("div",A,[e(O,{layout:"inline",model:i},{default:n(()=>[e(N,null,{default:n(()=>[e(I,{allowClear:"",value:i.keyWord,"onUpdate:value":a[0]||(a[0]=l=>i.keyWord=l),placeholder:"请输入要查询的内容",style:{width:"280px"}},{suffix:n(()=>[e(p,{title:"点击搜索",onClick:y},{default:n(()=>[e(k(H),{style:{color:"rgba(0, 0, 0, 0.45)"}})]),_:1})]),_:1},8,["value"])]),_:1})]),_:1},8,["model"])]),o("div",null,[e(p,{onClick:c},{default:n(()=>[e(k(L),{style:{"font-size":"16px"}})]),_:1})])]),o("div",{ref_key:"table_container",ref:h,style:{"margin-top":"9px","border-top":"1px solid #eee",display:"flex","flex-direction":"column",overflow:"hidden",height:"0px","flex-grow":"1"}},[e(D,{"data-source":g.value,pagination:u,scroll:d,bordered:!0,loading:_.value,size:"middle"},{default:n(()=>[e(s,{title:"序号",width:60,fixed:"left",align:"center"},{default:n(({index:l})=>[o("div",null,b(l+1),1)]),_:1}),e(s,{title:"操作用户","data-index":"username",width:200,fixed:"left",align:"center"}),e(s,{title:"功能",width:180,fixed:"left",align:"left"},{default:n(({record:l})=>[o("div",G,[o("span",null,b(l.module),1),o("span",null,"/"+b(l.operation),1)])]),_:1}),e(s,{title:"接口","data-index":"url",width:200}),e(s,{title:"参数","data-index":"body",width:200,ellipsis:!0}),e(s,{title:"返回结果","data-index":"result","min-width":200,ellipsis:!0}),e(s,{title:"操作结果",width:150,align:"center"},{default:n(({record:l})=>[o("div",K,[l.result.includes("成功")?(m(),v("span",X,"成功")):(m(),v("span",Y,"失败"))])]),_:1}),e(s,{title:"创建时间","data-index":"createtime",width:200}),e(s,{title:"操作",width:200,fixed:"right"},{default:n(({record:l})=>[o("div",null,[o("a",{style:{"margin-left":"0px"},onClick:V=>T(l)},"查看",8,Z),e(R,{title:"确定删除?",okText:"确定",cancelText:"取消",onConfirm:V=>$(l)},{default:n(()=>[l.id!=1?(m(),v("a",ee,"删除")):U("",!0)]),_:2},1032,["onConfirm"])])]),_:1})]),_:1},8,["data-source","pagination","scroll","loading"])],512)]),e(P,{ref_key:"detailRef",ref:x},null,512)],64)}}});const se=E(te,[["__scopeId","data-v-9280ee8a"]]);export{se as default};
|