沙钢智慧能源系统前端代码
houzhongjian
2024-10-09 314507f8ddadd9c66e98d260c3b2a5dad1a04015
1
import{aV as N,d as B,r as d,Q as L,A as Q,b as W,a1 as X,o as u,c as S,k as e,B as r,a,F as Y,i as Z,g as f,a2 as b,O as g,P as v,$,R as j,S as E,a7 as G,T as J,U as ee,V as ae,W as le,X as te,Y as oe,Z as re}from"./index-BP6bNRoi.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang-sJUY8qtC.js";import{_ as ie}from"./ContentWrap.vue_vue_type_script_setup_true_lang-CR_2gECF.js";import{d as de}from"./formatTime-DwR9f7DP.js";import{d as ne}from"./download-e0EdwhTv.js";import{_ as se}from"./OperateLogDetail.vue_vue_type_script_setup_true_lang-mEyl2rgh.js";import{g as ue}from"./index-vFgEqmZu.js";import"./index-BZESAUPP.js";import"./el-card-bU92WWV4.js";import"./Dialog.vue_vue_type_style_index_0_lang-DFckl8Er.js";import"./el-descriptions-item-BuMEVwqR.js";const me=B({name:"SystemOperateLog",__name:"index",setup(ce){const V=d([]),K=L(),y=d(!0),x=d(0),k=d([]),o=Q({pageNo:1,pageSize:10,userId:void 0,type:void 0,subType:void 0,action:void 0,createTime:[],bizId:void 0}),I=d(),w=d(!1),_=async()=>{y.value=!0;try{const l=await(s=o,N.get({url:"/system/operate-log/page",params:s}));k.value=l.list,x.value=l.total}finally{y.value=!1}var s},n=()=>{o.pageNo=1,_()},D=()=>{I.value.resetFields(),n()},T=d(),P=async()=>{try{await K.exportConfirm(),w.value=!0;const l=await(s=o,N.download({url:"/system/operate-log/export",params:s}));ne.excel(l,"\u64CD\u4F5C\u65E5\u5FD7.xls")}catch{}finally{w.value=!1}var s};return W(async()=>{await _(),V.value=await ue()}),(s,l)=>{const F=$,R=j,i=E,m=G,q=J,h=ee,c=ae,H=le,U=ie,p=te,M=oe,O=pe,z=X("hasPermi"),A=re;return u(),S(Y,null,[e(U,null,{default:r(()=>[e(H,{class:"-mb-15px",model:a(o),ref_key:"queryFormRef",ref:I,inline:!0,"label-width":"68px"},{default:r(()=>[e(i,{label:"\u64CD\u4F5C\u4EBA",prop:"userId"},{default:r(()=>[e(R,{modelValue:a(o).userId,"onUpdate:modelValue":l[0]||(l[0]=t=>a(o).userId=t),clearable:"",filterable:"",placeholder:"\u8BF7\u8F93\u5165\u64CD\u4F5C\u4EBA\u5458",class:"!w-240px"},{default:r(()=>[(u(!0),S(Y,null,Z(a(V),t=>(u(),f(F,{key:t.id,label:t.nickname,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u64CD\u4F5C\u6A21\u5757",prop:"type"},{default:r(()=>[e(m,{modelValue:a(o).type,"onUpdate:modelValue":l[1]||(l[1]=t=>a(o).type=t),placeholder:"\u8BF7\u8F93\u5165\u64CD\u4F5C\u6A21\u5757",clearable:"",onKeyup:b(n,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u64CD\u4F5C\u540D",prop:"subType"},{default:r(()=>[e(m,{modelValue:a(o).subType,"onUpdate:modelValue":l[2]||(l[2]=t=>a(o).subType=t),placeholder:"\u8BF7\u8F93\u5165\u64CD\u4F5C\u540D",clearable:"",onKeyup:b(n,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u64CD\u4F5C\u5185\u5BB9",prop:"action"},{default:r(()=>[e(m,{modelValue:a(o).action,"onUpdate:modelValue":l[3]||(l[3]=t=>a(o).action=t),placeholder:"\u8BF7\u8F93\u5165\u64CD\u4F5C\u540D",clearable:"",onKeyup:b(n,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"createTime"},{default:r(()=>[e(q,{modelValue:a(o).createTime,"onUpdate:modelValue":l[4]||(l[4]=t=>a(o).createTime=t),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-220px"},null,8,["modelValue","default-time"])]),_:1}),e(i,{label:"\u4E1A\u52A1\u7F16\u53F7",prop:"bizId"},{default:r(()=>[e(m,{modelValue:a(o).bizId,"onUpdate:modelValue":l[5]||(l[5]=t=>a(o).bizId=t),placeholder:"\u8BF7\u8F93\u5165\u4E1A\u52A1\u7F16\u53F7",clearable:"",onKeyup:b(n,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(i,null,{default:r(()=>[e(c,{onClick:n},{default:r(()=>[e(h,{icon:"ep:search",class:"mr-5px"}),g(" \u641C\u7D22")]),_:1}),e(c,{onClick:D},{default:r(()=>[e(h,{icon:"ep:refresh",class:"mr-5px"}),g(" \u91CD\u7F6E")]),_:1}),v((u(),f(c,{type:"success",plain:"",onClick:P,loading:a(w)},{default:r(()=>[e(h,{icon:"ep:download",class:"mr-5px"}),g(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[z,["infra:operate-log:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(U,null,{default:r(()=>[v((u(),f(M,{data:a(k)},{default:r(()=>[e(p,{label:"\u65E5\u5FD7\u7F16\u53F7",align:"center",prop:"id",width:"100"}),e(p,{label:"\u64CD\u4F5C\u4EBA",align:"center",prop:"userName",width:"120"}),e(p,{label:"\u64CD\u4F5C\u6A21\u5757",align:"center",prop:"type",width:"120"}),e(p,{label:"\u64CD\u4F5C\u540D",align:"center",prop:"subType",width:"160"}),e(p,{label:"\u64CD\u4F5C\u5185\u5BB9",align:"center",prop:"action"}),e(p,{label:"\u64CD\u4F5C\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:a(de)},null,8,["formatter"]),e(p,{label:"\u4E1A\u52A1\u7F16\u53F7",align:"center",prop:"bizId",width:"120"}),e(p,{label:"\u64CD\u4F5C IP",align:"center",prop:"userIp",width:"120"}),e(p,{label:"\u64CD\u4F5C",align:"center",fixed:"right",width:"60"},{default:r(t=>[v((u(),f(c,{link:"",type:"primary",onClick:fe=>{return C=t.row,void T.value.open(C);var C}},{default:r(()=>[g(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[z,["infra:operate-log:query"]]])]),_:1})]),_:1},8,["data"])),[[A,a(y)]]),e(O,{total:a(x),page:a(o).pageNo,"onUpdate:page":l[6]||(l[6]=t=>a(o).pageNo=t),limit:a(o).pageSize,"onUpdate:limit":l[7]||(l[7]=t=>a(o).pageSize=t),onPagination:_},null,8,["total","page","limit"])]),_:1}),e(se,{ref_key:"detailRef",ref:T},null,512)],64)}}});export{me as default};