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