index-01f3e1e1.js 6.1 KB

1
  1. import{d as L,B as X,r as d,f as A,z as Q,S as W,o as p,c as D,i as e,w as t,a as l,F as R,C as Z,j as m,T as V,m as u,D as y,G as $,H as ee,I as ae,X as le,p as te,_ as re,q as oe,J as se,K as pe,L as ne,M as ce,__tla as ie}from"./index-1e808f2e.js";import{_ as de,__tla as me}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{_ as ue,__tla as _e}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import{_ as fe,__tla as ye}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{a as he,D as U,__tla as ge}from"./dict-a31cb4ba.js";import{d as we,__tla as be}from"./formatTime-a348c3be.js";import{d as ve}from"./download-20922b56.js";import{_ as xe,g as Ve,d as Ce,e as ke,__tla as Se}from"./ErrorCodeForm.vue_vue_type_script_setup_true_lang-c1accad7.js";import{u as Te,__tla as Ee}from"./useMessage-5f9e8917.js";import{__tla as Ne}from"./index-73afebcf.js";import"./color-6e929987.js";import{__tla as De}from"./el-card-03b3588b.js";import{__tla as Re}from"./Dialog-f44f9d78.js";import"./_plugin-vue_export-helper-1b428a4d.js";let Y,Ue=Promise.all([(()=>{try{return ie}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return Re}catch{}})()]).then(async()=>{Y=L({name:"SystemErrorCode",__name:"index",setup(Ye){const w=Te(),{t:P}=X(),b=d(!0),v=d(!1),C=d(0),k=d([]),r=A({pageNo:1,pageSize:10,type:void 0,applicationName:void 0,code:void 0,message:void 0,createTime:[]}),S=d(),_=async()=>{b.value=!0;try{const n=await Ve(r);k.value=n.list,C.value=n.total}finally{b.value=!1}},f=()=>{r.pageNo=1,_()},z=()=>{S.value.resetFields(),f()},T=d(),E=(n,o)=>{T.value.open(n,o)},K=async()=>{try{await w.exportConfirm(),v.value=!0;const n=await ke(r);ve.excel(n,"\u9519\u8BEF\u7801.xls")}catch{}finally{v.value=!1}};return Q(()=>{_()}),(n,o)=>{const M=$,O=ee,c=ae,x=le,F=te,h=re,i=oe,H=se,N=fe,s=pe,q=ue,j=ne,B=de,g=W("hasPermi"),G=ce;return p(),D(R,null,[e(N,null,{default:t(()=>[e(H,{class:"-mb-15px",model:l(r),ref_key:"queryFormRef",ref:S,inline:!0,"label-width":"90px"},{default:t(()=>[e(c,{label:"\u9519\u8BEF\u7801\u7C7B\u578B",prop:"type"},{default:t(()=>[e(O,{modelValue:l(r).type,"onUpdate:modelValue":o[0]||(o[0]=a=>l(r).type=a),placeholder:"\u8BF7\u9009\u62E9\u9519\u8BEF\u7801\u7C7B\u578B",clearable:""},{default:t(()=>[(p(!0),D(R,null,Z(l(he)(l(U).SYSTEM_ERROR_CODE_TYPE),a=>(p(),m(M,{key:a.value,label:a.label,value:a.value,class:"!w-240px"},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(c,{label:"\u5E94\u7528\u540D",prop:"applicationName"},{default:t(()=>[e(x,{modelValue:l(r).applicationName,"onUpdate:modelValue":o[1]||(o[1]=a=>l(r).applicationName=a),placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",clearable:"",onKeyup:V(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u9519\u8BEF\u7801\u7F16\u7801",prop:"code"},{default:t(()=>[e(x,{modelValue:l(r).code,"onUpdate:modelValue":o[2]||(o[2]=a=>l(r).code=a),placeholder:"\u8BF7\u8F93\u5165\u9519\u8BEF\u7801\u7F16\u7801",clearable:"",onKeyup:V(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u9519\u8BEF\u7801\u63D0\u793A",prop:"message"},{default:t(()=>[e(x,{modelValue:l(r).message,"onUpdate:modelValue":o[3]||(o[3]=a=>l(r).message=a),placeholder:"\u8BF7\u8F93\u5165\u9519\u8BEF\u7801\u63D0\u793A",clearable:"",onKeyup:V(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[e(F,{modelValue:l(r).createTime,"onUpdate:modelValue":o[4]||(o[4]=a=>l(r).createTime=a),"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-240px"},null,8,["modelValue","default-time"])]),_:1}),e(c,null,{default:t(()=>[e(i,{onClick:f},{default:t(()=>[e(h,{icon:"ep:search",class:"mr-5px"}),u(" \u641C\u7D22")]),_:1}),e(i,{onClick:z},{default:t(()=>[e(h,{icon:"ep:refresh",class:"mr-5px"}),u(" \u91CD\u7F6E")]),_:1}),y((p(),m(i,{type:"primary",plain:"",onClick:o[5]||(o[5]=a=>E("create"))},{default:t(()=>[e(h,{icon:"ep:plus",class:"mr-5px"}),u(" \u65B0\u589E ")]),_:1})),[[g,["system:error-code:create"]]]),y((p(),m(i,{type:"success",plain:"",onClick:K,loading:l(v)},{default:t(()=>[e(h,{icon:"ep:download",class:"mr-5px"}),u(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[g,["system:error-code:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(N,null,{default:t(()=>[y((p(),m(j,{data:l(k)},{default:t(()=>[e(s,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(s,{label:"\u7C7B\u578B",align:"center",prop:"type",width:"80"},{default:t(a=>[e(q,{type:l(U).SYSTEM_ERROR_CODE_TYPE,value:a.row.type},null,8,["type","value"])]),_:1}),e(s,{label:"\u5E94\u7528\u540D",align:"center",prop:"applicationName",width:"200"}),e(s,{label:"\u9519\u8BEF\u7801\u7F16\u7801",align:"center",prop:"code",width:"120"}),e(s,{label:"\u9519\u8BEF\u7801\u63D0\u793A",align:"center",prop:"message",width:"300"}),e(s,{label:"\u5907\u6CE8",align:"center",prop:"memo",width:"200"}),e(s,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:l(we)},null,8,["formatter"]),e(s,{label:"\u64CD\u4F5C",align:"center","class-name":"small-paddingfixed-width"},{default:t(a=>[y((p(),m(i,{link:"",type:"primary",onClick:I=>E("update",a.row.id)},{default:t(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["system:error-code:update"]]]),y((p(),m(i,{link:"",type:"danger",onClick:I=>(async J=>{try{await w.delConfirm(),await Ce(J),w.success(P("common.delSuccess")),await _()}catch{}})(a.row.id)},{default:t(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["system:error-code:delete"]]])]),_:1})]),_:1},8,["data"])),[[G,l(b)]]),e(B,{total:l(C),page:l(r).pageNo,"onUpdate:page":o[6]||(o[6]=a=>l(r).pageNo=a),limit:l(r).pageSize,"onUpdate:limit":o[7]||(o[7]=a=>l(r).pageSize=a),onPagination:_},null,8,["total","page","limit"])]),_:1}),e(xe,{ref_key:"formRef",ref:T,onSuccess:_},null,512)],64)}}})});export{Ue as __tla,Y as default};