index2-5b3f4382.js 5.7 KB

1
  1. import{d as j,P as B,r as c,x as E,b as G,a3 as L,o as s,c as D,f as a,A as t,a as l,a4 as M,F as N,Q as Z,C as _,D as i,k as f,a8 as $,U as aa,R as ea,S as la,I as ta,_ as ra,J as oa,V as sa,W as na,X as pa,Y as ua,__tla as ca}from"./index-f65577b8.js";import{_ as _a,__tla as ia}from"./index.vue_vue_type_script_setup_true_lang-53598c8e.js";import{_ as ma,__tla as da}from"./DictTag.vue_vue_type_script_lang-48f8deb5.js";import{_ as fa,__tla as ya}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9fbbd655.js";import{a as ha,D as O,__tla as ga}from"./dict-fa3ffbd2.js";import{d as ba,__tla as wa}from"./formatTime-411ed1a1.js";import{d as ka}from"./download-20922b56.js";import{_ as xa,g as va,d as Ca,e as Va,__tla as Ua}from"./UReportDataForm.vue_vue_type_script_setup_true_lang-8b0f6c32.js";import{u as Sa,__tla as Ta}from"./useMessage-4dbf0ae4.js";import{__tla as Da}from"./index-1896261a.js";import"./color-6e929987.js";import{__tla as Ma}from"./el-card-ab53e6aa.js";import{__tla as Na}from"./Dialog-bd3317a7.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Oa}from"./style.css_vue_type_style_index_0_src_true_lang-a4e14d4d.js";let R,Ra=Promise.all([(()=>{try{return ca}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Oa}catch{}})()]).then(async()=>{R=j({name:"UReportData",__name:"index2",setup(Ya){const b=Sa(),{t:Y}=B(),w=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()=>{w.value=!0;try{const n=await va(r);x.value=n.list,v.value=n.total}finally{w.value=!1}},y=()=>{r.pageNo=1,m()},z=()=>{C.value.resetFields(),y()},V=c(),U=(n,o)=>{V.value.open(n,o)},A=async()=>{try{await b.exportConfirm(),k.value=!0;const n=await Va(r);ka.excel(n,"Ureport2\u62A5\u8868.xls")}catch{}finally{k.value=!1}};return G(()=>{m()}),(n,o)=>{const S=$,d=aa,P=ea,F=la,K=ta,h=ra,u=oa,H=sa,T=fa,p=na,I=ma,q=pa,J=_a,g=L("hasPermi"),Q=ua;return s(),D(N,null,[a(T,null,{default:t(()=>[a(H,{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(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(O).COMMON_STATUS),e=>(s(),_(P,{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(K,{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:z},{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=>U("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:A,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(T,null,{default:t(()=>[f((s(),_(q,{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(I,{type:l(O).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(ba),width:"180px"},null,8,["formatter"]),a(p,{label:"\u64CD\u4F5C",align:"center"},{default:t(e=>[f((s(),_(u,{link:"",type:"primary",onClick:W=>U("update",e.row.id)},{default:t(()=>[i(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["report:ureport-data:update"]]]),f((s(),_(u,{link:"",type:"danger",onClick:W=>(async X=>{try{await b.delConfirm(),await Ca(X),b.success(Y("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"])),[[Q,l(w)]]),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{Ra as __tla,R as default};