1 |
- import{d as A,h as B,r as p,e as G,k as j,P as E,o as d,c as J,f as e,w as o,a,Q as x,m as _,v as f,q as g,F as L,U as O,z as W,A as X,_ as Z,B as $,C as ee,D as ae,G as le,H as te,__tla as re}from"./index-2eab2d23.js";import{_ as oe,__tla as ne}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as se,__tla as ue}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{d as ce,__tla as ie}from"./formatTime-41155543.js";import{d as pe}from"./download-20922b56.js";import{_ as de,I as V,__tla as _e}from"./IntegralForm.vue_vue_type_script_setup_true_lang-802f830c.js";import{u as me,__tla as fe}from"./useMessage-171aa63e.js";import{__tla as ge}from"./index-cc63c3c4.js";import{__tla as ye}from"./el-card-c558f0ec.js";import{__tla as he}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";let T,we=Promise.all([(()=>{try{return re}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return ie}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return fe}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return he}catch{}})()]).then(async()=>{T=A({name:"Integral",__name:"index",setup(xe){const b=me(),{t:P}=B(),I=p(!0),k=p([]),Q=p(0),l=G({pageNo:1,pageSize:10,userId:void 0,currentQuota:void 0,freezeQuota:void 0,categoryId:void 0,createTime:[]}),C=p(),v=p(!1),m=async()=>{I.value=!0;try{const n=await V.getIntegralPage(l);k.value=n.list,Q.value=n.total}finally{I.value=!1}},u=()=>{l.pageNo=1,m()},S=()=>{C.value.resetFields(),u()},z=p(),U=(n,t)=>{z.value.open(n,t)},K=async()=>{try{await b.exportConfirm(),v.value=!0;const n=await V.exportIntegral(l);pe.excel(n,"\u63A8\u8350\u7528\u6237\u79EF\u5206.xls")}catch{}finally{v.value=!1}};return j(()=>{m()}),(n,t)=>{const y=O,c=W,N=X,h=Z,i=$,Y=ee,D=se,s=ae,F=le,H=oe,w=E("hasPermi"),q=te;return d(),J(L,null,[e(D,null,{default:o(()=>[e(Y,{class:"-mb-15px",model:a(l),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"68px"},{default:o(()=>[e(c,{label:"\u7528\u6237ID",prop:"userId"},{default:o(()=>[e(y,{modelValue:a(l).userId,"onUpdate:modelValue":t[0]||(t[0]=r=>a(l).userId=r),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237ID",clearable:"",onKeyup:x(u,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u5F53\u524D\u79EF\u5206",prop:"currentQuota"},{default:o(()=>[e(y,{modelValue:a(l).currentQuota,"onUpdate:modelValue":t[1]||(t[1]=r=>a(l).currentQuota=r),placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u79EF\u5206",clearable:"",onKeyup:x(u,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u51BB\u7ED3\u79EF\u5206",prop:"freezeQuota"},{default:o(()=>[e(y,{modelValue:a(l).freezeQuota,"onUpdate:modelValue":t[2]||(t[2]=r=>a(l).freezeQuota=r),placeholder:"\u8BF7\u8F93\u5165\u51BB\u7ED3\u79EF\u5206",clearable:"",onKeyup:x(u,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u7528\u6237\u7C7B\u578B",prop:"categoryId"},{default:o(()=>[e(y,{modelValue:a(l).categoryId,"onUpdate:modelValue":t[3]||(t[3]=r=>a(l).categoryId=r),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7C7B\u578B",clearable:"",onKeyup:x(u,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[e(N,{modelValue:a(l).createTime,"onUpdate:modelValue":t[4]||(t[4]=r=>a(l).createTime=r),"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:o(()=>[e(i,{onClick:u},{default:o(()=>[e(h,{icon:"ep:search",class:"mr-5px"}),_(" \u641C\u7D22")]),_:1}),e(i,{onClick:S},{default:o(()=>[e(h,{icon:"ep:refresh",class:"mr-5px"}),_(" \u91CD\u7F6E")]),_:1}),f((d(),g(i,{type:"primary",plain:"",onClick:t[5]||(t[5]=r=>U("create"))},{default:o(()=>[e(h,{icon:"ep:plus",class:"mr-5px"}),_(" \u65B0\u589E ")]),_:1})),[[w,["distri:integral:create"]]]),f((d(),g(i,{type:"success",plain:"",onClick:K,loading:a(v)},{default:o(()=>[e(h,{icon:"ep:download",class:"mr-5px"}),_(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[w,["distri:integral:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(D,null,{default:o(()=>[f((d(),g(F,{data:a(k),stripe:!0,"show-overflow-tooltip":!0},{default:o(()=>[e(s,{label:"\u7528\u6237\u7F16\u53F7",align:"center",prop:"id"}),e(s,{label:"\u7528\u6237ID",align:"center",prop:"userId"}),e(s,{label:"\u5F53\u524D\u79EF\u5206",align:"center",prop:"currentQuota"}),e(s,{label:"\u51BB\u7ED3\u79EF\u5206",align:"center",prop:"freezeQuota"}),e(s,{label:"\u7528\u6237\u7C7B\u578B",align:"center",prop:"categoryId"}),e(s,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(ce),width:"180px"},null,8,["formatter"]),e(s,{label:"\u64CD\u4F5C",align:"center"},{default:o(r=>[f((d(),g(i,{link:"",type:"primary",onClick:M=>U("update",r.row.id)},{default:o(()=>[_(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["distri:integral:update"]]]),f((d(),g(i,{link:"",type:"danger",onClick:M=>(async R=>{try{await b.delConfirm(),await V.deleteIntegral(R),b.success(P("common.delSuccess")),await m()}catch{}})(r.row.id)},{default:o(()=>[_(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["distri:integral:delete"]]])]),_:1})]),_:1},8,["data"])),[[q,a(I)]]),e(H,{total:a(Q),page:a(l).pageNo,"onUpdate:page":t[6]||(t[6]=r=>a(l).pageNo=r),limit:a(l).pageSize,"onUpdate:limit":t[7]||(t[7]=r=>a(l).pageSize=r),onPagination:m},null,8,["total","page","limit"])]),_:1}),e(de,{ref_key:"formRef",ref:z,onSuccess:m},null,512)],64)}}})});export{we as __tla,T as default};
|