index2-eec26595.js 5.7 KB

1
  1. import{d as E,h as J,r as c,e as L,k as W,P as X,o as s,c as D,f as a,w as t,a as l,Q as M,F as N,n as Z,q as _,m,v as f,U as $,z as aa,x as ea,y as la,A as ta,_ as ra,B as oa,C as sa,D as na,G as pa,H as ua,__tla as ca}from"./index-2eab2d23.js";import{_ as _a,__tla as ma}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as ia,__tla as da}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{_ as fa,__tla as ya}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{a as ha,D as P,__tla as ga}from"./dict-1ad71b6f.js";import{d as wa,__tla as ba}from"./formatTime-41155543.js";import{d as ka}from"./download-20922b56.js";import{_ as va,g as xa,d as Ca,e as Va,__tla as Ua}from"./UReportDataForm.vue_vue_type_script_setup_true_lang-1a9ef00a.js";import{u as Sa,__tla as Ta}from"./useMessage-171aa63e.js";import{__tla as Da}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as Ma}from"./el-card-c558f0ec.js";import{__tla as Na}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Pa}from"./style.css_vue_type_style_index_0_src_true_lang-2706eaa9.js";let Y,Ya=Promise.all([(()=>{try{return ca}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Pa}catch{}})()]).then(async()=>{Y=E({name:"UReportData",__name:"index2",setup(za){const w=Sa(),{t:z}=J(),b=c(!0),v=c([]),x=c(0),r=L({pageNo:1,pageSize:10,name:null,status:null,remark:null,createTime:[]}),C=c(),k=c(!1),i=async()=>{b.value=!0;try{const n=await xa(r);v.value=n.list,x.value=n.total}finally{b.value=!1}},y=()=>{r.pageNo=1,i()},A=()=>{C.value.resetFields(),y()},V=c(),U=(n,o)=>{V.value.open(n,o)},F=async()=>{try{await w.exportConfirm(),k.value=!0;const n=await Va(r);ka.excel(n,"Ureport2\u62A5\u8868.xls")}catch{}finally{k.value=!1}};return W(()=>{i()}),(n,o)=>{const S=$,d=aa,H=ea,O=la,R=ta,h=ra,u=oa,q=sa,T=fa,p=na,K=ia,B=pa,G=_a,g=X("hasPermi"),I=ua;return s(),D(N,null,[a(T,null,{default:t(()=>[a(q,{class:"-mb-15px",model:l(r),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"68px"},{default:t(()=>[a(d,{label:"\u6587\u4EF6\u540D\u79F0",prop:"name"},{default:t(()=>[a(S,{modelValue:l(r).name,"onUpdate:modelValue":o[0]||(o[0]=e=>l(r).name=e),placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",clearable:"",onKeyup:M(y,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(d,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[a(O,{modelValue:l(r).status,"onUpdate:modelValue":o[1]||(o[1]=e=>l(r).status=e),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",clearable:"",class:"!w-240px"},{default:t(()=>[(s(!0),D(N,null,Z(l(ha)(l(P).COMMON_STATUS),e=>(s(),_(H,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(d,{label:"\u5907\u6CE8",prop:"remark"},{default:t(()=>[a(S,{modelValue:l(r).remark,"onUpdate:modelValue":o[2]||(o[2]=e=>l(r).remark=e),placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",clearable:"",onKeyup:M(y,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(d,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[a(R,{modelValue:l(r).createTime,"onUpdate:modelValue":o[3]||(o[3]=e=>l(r).createTime=e),"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}),a(d,null,{default:t(()=>[a(u,{onClick:y},{default:t(()=>[a(h,{icon:"ep:search",class:"mr-5px"}),m(" \u641C\u7D22")]),_:1}),a(u,{onClick:A},{default:t(()=>[a(h,{icon:"ep:refresh",class:"mr-5px"}),m(" \u91CD\u7F6E")]),_:1}),f((s(),_(u,{type:"primary",plain:"",onClick:o[4]||(o[4]=e=>U("create"))},{default:t(()=>[a(h,{icon:"ep:plus",class:"mr-5px"}),m(" \u65B0\u589E ")]),_:1})),[[g,["report:ureport-data:create"]]]),f((s(),_(u,{type:"success",plain:"",onClick:F,loading:l(k)},{default:t(()=>[a(h,{icon:"ep:download",class:"mr-5px"}),m(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[g,["report:ureport-data:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(T,null,{default:t(()=>[f((s(),_(B,{data:l(v),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[a(p,{label:"ID",align:"center",prop:"id"}),a(p,{label:"\u6587\u4EF6\u540D\u79F0",align:"center",prop:"name"}),a(p,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:t(e=>[a(K,{type:l(P).COMMON_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),a(p,{label:"\u6587\u4EF6\u5185\u5BB9",align:"center",prop:"content"}),a(p,{label:"\u5907\u6CE8",align:"center",prop:"remark"}),a(p,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:l(wa),width:"180px"},null,8,["formatter"]),a(p,{label:"\u64CD\u4F5C",align:"center"},{default:t(e=>[f((s(),_(u,{link:"",type:"primary",onClick:Q=>U("update",e.row.id)},{default:t(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["report:ureport-data:update"]]]),f((s(),_(u,{link:"",type:"danger",onClick:Q=>(async j=>{try{await w.delConfirm(),await Ca(j),w.success(z("common.delSuccess")),await i()}catch{}})(e.row.id)},{default:t(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["report:ureport-data:delete"]]])]),_:1})]),_:1},8,["data"])),[[I,l(b)]]),a(G,{total:l(x),page:l(r).pageNo,"onUpdate:page":o[5]||(o[5]=e=>l(r).pageNo=e),limit:l(r).pageSize,"onUpdate:limit":o[6]||(o[6]=e=>l(r).pageSize=e),onPagination:i},null,8,["total","page","limit"])]),_:1}),a(va,{ref_key:"formRef",ref:V,onSuccess:i},null,512)],64)}}})});export{Ya as __tla,Y as default};