1 |
- import{d as L,B as X,r as c,f as E,z as Q,S as W,o as s,c as D,i as a,w as t,a as l,T as M,F as N,C as Z,j as _,m as i,D as f,X as $,I as aa,G as ea,H as la,p as ta,_ as ra,q as oa,J as sa,K as na,L as pa,M as ua,__tla as ca}from"./index-1e808f2e.js";import{_ as _a,__tla as ia}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{_ as ma,__tla as da}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import{_ as fa,__tla as ya}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{a as ha,D as z,__tla as ga}from"./dict-a31cb4ba.js";import{d as wa,__tla as ba}from"./formatTime-a348c3be.js";import{d as ka}from"./download-20922b56.js";import{_ as xa,g as va,d as Ca,e as Va,__tla as Sa}from"./UReportDataForm.vue_vue_type_script_setup_true_lang-16065618.js";import{u as Ta,__tla as Ua}from"./useMessage-5f9e8917.js";import{__tla as Da}from"./index-73afebcf.js";import"./color-6e929987.js";import{__tla as Ma}from"./el-card-03b3588b.js";import{__tla as Na}from"./Dialog-f44f9d78.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as za}from"./style.css_vue_type_style_index_0_src_true_lang-507ff6a6.js";let O,Oa=Promise.all([(()=>{try{return ca}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return za}catch{}})()]).then(async()=>{O=L({name:"UReportData",__name:"index2",setup(Ha){const w=Ta(),{t:H}=X(),b=c(!0),x=c([]),v=c(0),r=E({pageNo:1,pageSize:10,name:null,status:null,remark:null,createTime:[]}),C=c(),k=c(!1),m=async()=>{b.value=!0;try{const n=await va(r);x.value=n.list,v.value=n.total}finally{b.value=!1}},y=()=>{r.pageNo=1,m()},K=()=>{C.value.resetFields(),y()},V=c(),S=(n,o)=>{V.value.open(n,o)},Y=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 Q(()=>{m()}),(n,o)=>{const T=$,d=aa,A=ea,F=la,P=ta,h=ra,u=oa,R=sa,U=fa,p=na,q=ma,I=pa,j=_a,g=W("hasPermi"),B=ua;return s(),D(N,null,[a(U,null,{default:t(()=>[a(R,{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(T,{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(F,{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(z).COMMON_STATUS),e=>(s(),_(A,{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(T,{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(P,{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"}),i(" \u641C\u7D22")]),_:1}),a(u,{onClick:K},{default:t(()=>[a(h,{icon:"ep:refresh",class:"mr-5px"}),i(" \u91CD\u7F6E")]),_:1}),f((s(),_(u,{type:"primary",plain:"",onClick:o[4]||(o[4]=e=>S("create"))},{default:t(()=>[a(h,{icon:"ep:plus",class:"mr-5px"}),i(" \u65B0\u589E ")]),_:1})),[[g,["report:ureport-data:create"]]]),f((s(),_(u,{type:"success",plain:"",onClick:Y,loading:l(k)},{default:t(()=>[a(h,{icon:"ep:download",class:"mr-5px"}),i(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[g,["report:ureport-data:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(U,null,{default:t(()=>[f((s(),_(I,{data:l(x),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(q,{type:l(z).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:G=>S("update",e.row.id)},{default:t(()=>[i(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["report:ureport-data:update"]]]),f((s(),_(u,{link:"",type:"danger",onClick:G=>(async J=>{try{await w.delConfirm(),await Ca(J),w.success(H("common.delSuccess")),await m()}catch{}})(e.row.id)},{default:t(()=>[i(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["report:ureport-data:delete"]]])]),_:1})]),_:1},8,["data"])),[[B,l(b)]]),a(j,{total:l(v),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:m},null,8,["total","page","limit"])]),_:1}),a(xa,{ref_key:"formRef",ref:V,onSuccess:m},null,512)],64)}}})});export{Oa as __tla,O as default};
|