record.c1f61259.js 3.7 KB

1
  1. import{g as V,d as z}from"./record.2898e904.js";import{d as I,b as B,p as N,c as l,e as r,f as i,g as c,h as t,i as a,u as s,F,j as U,k as R,m as p,t as D,A as m,N as L,E as P,_ as T}from"./index.0308b213.js";const j={class:"filter-form"},M=p("\u5DF2\u4E2D\u5956"),$=p("\u672A\u4E2D\u5956"),q=p("\u67E5\u8BE2"),S={class:"data"},G={class:"table"},H={key:0},J={key:1},K={key:0},O={key:1},Q={key:0},W={key:1},X={class:"top"},Y=p("\u5220\u9664"),Z={class:"pagination"},ee=I({setup(te){const u=B({page:1,limit:10,drawId:"",is_draw:-1}),_=B({list:[],activitys:[],count:0}),f=()=>{V(u).then(d=>{_.count=d.count,_.list=d.list,_.activitys=d.activitys})},h=d=>{L.alert("\u786E\u5B9A\u9700\u8981\u5220\u9664\u62BD\u5956\u8BB0\u5F55\u5417?","\u63D0\u793A",{confirmButtonText:"\u786E\u8BA4",showCancelButton:!0,cancelButtonText:"\u53D6\u6D88"}).then(()=>{z(d).then(()=>{P.success("\u5220\u9664\u62BD\u5956\u8BB0\u5F55\u6210\u529F")})}).catch(()=>{})};return f(),N(()=>[u.page,u.limit,u.drawId,u.is_draw],()=>{f()}),(d,n)=>{const v=l("el-option"),y=l("el-select"),b=l("el-form-item"),g=l("el-radio"),k=l("el-radio-group"),w=l("el-button"),A=l("el-form"),o=l("el-table-column"),E=l("el-image"),x=l("el-table"),C=l("el-pagination");return r(),i(F,null,[c("div",j,[t(A,{"label-width":"80px"},{default:a(()=>[t(b,{prop:"title",label:"\u62BD\u5956\u6D3B\u52A8",class:"tn-el-form-item"},{default:a(()=>[t(y,{modelValue:s(u).drawId,"onUpdate:modelValue":n[0]||(n[0]=e=>s(u).drawId=e),placeholder:"\u8BF7\u9009\u62E9\u62BD\u5956\u6D3B\u52A8",filterable:"",clearable:""},{default:a(()=>[(r(!0),i(F,null,U(s(_).activitys,e=>(r(),R(v,{key:e.id,label:e.name,value:e.id},{default:a(()=>[p(D(e.name),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(b,{class:"tn-el-form-item",label:"\u4E2D\u5956\u72B6\u6001"},{default:a(()=>[t(k,{modelValue:s(u).is_draw,"onUpdate:modelValue":n[1]||(n[1]=e=>s(u).is_draw=e)},{default:a(()=>[t(g,{border:!0,label:1},{default:a(()=>[M]),_:1}),t(g,{border:!0,label:0},{default:a(()=>[$]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(b,{width:"100"},{default:a(()=>[t(w,{type:"primary",onClick:n[2]||(n[2]=e=>f())},{default:a(()=>[q]),_:1})]),_:1})]),_:1})]),c("div",S,[c("div",G,[t(x,{data:s(_).list},{default:a(()=>[t(o,{label:"ID",prop:"id"}),t(o,{label:"UID",prop:"uid"}),t(o,{label:"\u7528\u6237\u5934\u50CF"},{default:a(e=>[t(E,{style:{width:"50px",height:"50px"},src:e.row.avatar},null,8,["src"])]),_:1}),t(o,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"}),t(o,{label:"\u6D3B\u52A8\u540D\u79F0",prop:"draw_name"}),t(o,{label:"\u5956\u54C1"},{default:a(e=>[e.row.prize_id>0?(r(),i("span",H,D(e.row.prize_name),1)):(r(),i("span",J,"\u6682\u672A\u4E2D\u5956"))]),_:1}),t(o,{label:"\u5F00\u5956\u72B6\u6001"},{default:a(e=>[e.row.open_status==0?(r(),i("span",K,"\u672A\u5F00\u5956")):m("",!0),e.row.open_status==1?(r(),i("span",O,"\u5DF2\u5F00\u5956")):m("",!0)]),_:1}),t(o,{label:"\u9886\u53D6\u72B6\u6001"},{default:a(e=>[e.row.receive_status==0?(r(),i("span",Q,"\u672A\u9886\u53D6")):m("",!0),e.row.receive_status==1?(r(),i("span",W,"\u5DF2\u9886\u53D6")):m("",!0)]),_:1}),t(o,{label:"\u5F00\u5956\u65F6\u95F4",prop:"opentime"}),t(o,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:a(e=>[c("span",null,D(e.row.createtime),1)]),_:1}),t(o,{label:"\u64CD\u4F5C",width:"auto"},{default:a(e=>[c("div",X,[t(w,{type:"danger",onClick:ae=>h(e.row.id)},{default:a(()=>[Y]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data"])])]),c("div",Z,[t(C,{currentPage:s(u).page,"onUpdate:currentPage":n[3]||(n[3]=e=>s(u).page=e),"page-size":s(u).limit,"onUpdate:page-size":n[4]||(n[4]=e=>s(u).limit=e),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:s(_).count},null,8,["currentPage","page-size","total"])])],64)}}});const le=T(ee,[["__scopeId","data-v-1085e372"]]);export{le as default};