2 lines
8.6 KiB
JavaScript
2 lines
8.6 KiB
JavaScript
|
import{K as I,C as ce,r as f,D as me,O as fe,d,N as j,o as i,c as k,G as h,H as z,f as t,e,w as l,i as E,P as A,Q as G,j as b,F as q,m as p,k as H,y as c,l as J,s as _e}from"./index.db81687b.js";function ge(C){return I({url:"/monitor/operlog/list",method:"get",params:C})}function be(C){return I({url:"/monitor/operlog/"+C,method:"delete"})}function ve(){return I({url:"/monitor/operlog/clean",method:"delete"})}const ye={class:"app-container"},he={key:0},we={key:1},Ve={class:"dialog-footer"},ke=ce({name:"Operlog"}),Se=Object.assign(ke,{setup(C){const{proxy:_}=_e(),{sys_oper_type:N,sys_common_status:P}=_.useDict("sys_oper_type","sys_common_status"),K=f([]),w=f(!1),T=f(!0),x=f(!0),B=f([]);f(!0);const L=f(!0),D=f(0);f("");const V=f([]),R=f({prop:"operTime",order:"descending"}),W=me({form:{},queryParams:{pageNum:1,pageSize:10,title:void 0,operName:void 0,businessType:void 0,status:void 0}}),{queryParams:n,form:r}=fe(W);function v(){T.value=!0,ge(_.addDateRange(n.value,V.value)).then(s=>{K.value=s.rows,D.value=s.total,T.value=!1})}function X(s,a){return _.selectDictLabel(N.value,s.businessType)}function U(){n.value.pageNum=1,v()}function Z(){V.value=[],_.resetForm("queryRef"),n.value.pageNum=1,_.$refs.operlogRef.sort(R.value.prop,R.value.order)}function ee(s){B.value=s.map(a=>a.operId),L.value=!s.length}function le(s,a,$){n.value.orderByColumn=s.prop,n.value.isAsc=s.order,v()}function te(s){w.value=!0,r.value=s}function oe(s){const a=s.operId||B.value;_.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u65E5\u5FD7\u7F16\u53F7\u4E3A"'+a+'"\u7684\u6570\u636E\u9879?').then(function(){return be(a)}).then(()=>{v(),_.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function ae(){_.$modal.confirm("\u662F\u5426\u786E\u8BA4\u6E05\u7A7A\u6240\u6709\u64CD\u4F5C\u65E5\u5FD7\u6570\u636E\u9879?").then(function(){return ve()}).then(()=>{v(),_.$modal.msgSuccess("\u6E05\u7A7A\u6210\u529F")}).catch(()=>{})}function ne(){_.download("monitor/operlog/export",{...n.value},`config_${new Date().getTime()}.xlsx`)}return v(),(s,a)=>{const $=d("el-input"),u=d("el-form-item"),M=d("el-option"),O=d("el-select"),re=d("el-date-picker"),y=d("el-button"),F=d("el-form"),m=d("el-col"),se=d("right-toolbar"),Q=d("el-row"),g=d("el-table-column"),Y=d("dict-tag"),ue=d("el-table"),pe=d("pagination"),de=d("el-dialog"),S=j("hasPermi"),ie=j("loading");return i(),k("div",ye,[h(e(F,{model:t(n),ref:"queryRef",inline:!0,"label-width":"68px"},{default:l(()=>[e(u,{label:"\u7CFB\u7EDF\u6A21\u5757",prop:"title"},{default:l(()=>[e($,{modelValue:t(n).title,"onUpdate:modelValue":a[0]||(a[0]=o=>t(n).title=o),placeholder:"\u8BF7\u8F93\u5165\u7CFB\u7EDF\u6A21\u5757",clearable:"",style:{width:"240px"},onKeyup:E(U,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(u,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"operName"},{default:l(()=>[e($,{modelValue:t(n).operName,"onUpdate:modelValue":a[1]||(a[1]=o=>t(n).operName=o),placeholder:"\u8BF7\u8F93\u5165\u64CD\u4F5C\u4EBA\u5458",clearable:"",style:{width:"240px"},onKeyup:E(U,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(u,{label:"\u7C7B\u578B",prop:"businessType"},{default:l(()=>[e(O,{modelValue:t(n).businessType,"onUpdate:modelValue":a[2]||(a[2]=o=>t(n).businessType=o),placeholder:"\u64CD\u4F5C\u7C7B\u578B",clearable:"",style:{width:"240px"}},{default:l(()=>[(i(!0),k(A,null,G(t(N),o=>(i(),b(M,{key:o.value,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(u,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(O,{modelValue:t(n).status,"onUpdate:modelValue":a[3]||(a[3]=o=>t(n).status=o),placeholder:"\u64CD\u4F5C\u72B6\u6001",clearable:"",style:{width:"240px"}},{default:l(()=>[(i(!0),k(A,null,G(t(P),o=>(i(),b(M,{key:o.value,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(u,{label:"\u64CD\u4F5C\u65F6\u95F4",style:{width:"308px"}},{default:l(()=>[e(re,{modelValue:t(V),"onUpdate:modelValue":a[4]||(a[4]=o=>q(V)?V.value=o:null),"value-format":"YYYY-MM-DD",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB
|