更新代码库
This commit is contained in:
1
dist/static/js/hook-C9PUzCTc.js
vendored
Normal file
1
dist/static/js/hook-C9PUzCTc.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
var j=Object.defineProperty,E=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var k=(s,a,i)=>a in s?j(s,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):s[a]=i,d=(s,a)=>{for(var i in a||(a={}))H.call(a,i)&&k(s,i,a[i]);if(B)for(var i of B(a))J.call(a,i)&&k(s,i,a[i]);return s},I=(s,a)=>E(s,G(a));var c=(s,a,i)=>new Promise((C,o)=>{var n=p=>{try{_(i.next(p))}catch(v){o(v)}},r=p=>{try{_(i.throw(p))}catch(v){o(v)}},_=p=>p.done?C(p.value):Promise.resolve(p.value).then(n,r);_((i=i.apply(s,a)).next())});import{b as Q}from"./blindBox-BqHhL4EW.js";import{m as U,n as W,o as X,p as Y,r as Z,t as D}from"./activities-UkTzwAkp.js";import{_ as w}from"./form.vue_vue_type_script_setup_true_lang-BSrb17y8.js";import{_ as ee}from"./settingRule.vue_vue_type_script_setup_true_lang-CJeQQ0t4.js";import{n as l,b as te,r as ae,aA as f,aK as q,ag as P}from"./index-CRmU-Qpi.js";import"./index.vue_vue_type_script_setup_true_lang-8Iz1Oohf.js";function fe(){const s=l(),a=l(!0),i=l([]),C=l(!1),o=l({total:0,pageSize:10,pageSizes:[10,20,50,100],currentPage:1,background:!0}),n=l({user_id:""}),r=l(0),_=l([]),p=l([{label:"抽奖人数总计",prop:"total_count"},{label:"抽奖价格总计",prop:"total_price"},{label:"今日抽奖价格",prop:"today_total_price"},{label:"今日抽奖次数",prop:"today_total_count"}]),v=l({}),F=l([{label:"用户ID",prop:"user_id",type:"input"}]),M=l([{label:"礼盒ID",prop:"id"},{label:"礼盒类型",prop:"box_name"},{label:"礼物类型",prop:"gift_type_str"},{label:"礼物ID",prop:"gift_id"},{label:"礼物名称",prop:"gift_name"},{label:"封面图",prop:"base_image",cellRenderer:({row:t})=>te(ae("el-image"),{fit:"cover","preview-teleported":!0,src:t.base_image,"preview-src-list":Array.of(t.base_image),class:"w-[50px] h-[50px] align-middle"},null)},{label:"数量",prop:"quantity_str"},{label:"金币价格",prop:"gift_price"},{label:"添加时间",prop:"createtime"},{label:"操作",fixed:"right",width:210,slot:"operation"}]),g=t=>c(this,null,function*(){a.value=!0,n.value=d({},t);const{data:e,code:u}=yield U(I(d({},t),{gift_bag_id:r.value,page:o.value.currentPage,page_limit:o.value.pageSize}));u&&(i.value=e.lists.map(m=>d(d({},m),e.total)),v.value=e.total_data,o.value.total=e.count,o.value.currentPage=e.page),a.value=!1}),N=t=>{o.value.pageSize=t,g(n.value)},O=t=>{o.value.currentPage=t,g(n.value)},T=()=>c(this,null,function*(){const{code:t,data:e}=yield Q({activities_id:2});_.value=t?e.map(u=>({label:u.name,value:u.id})):[],t&&z(e[0].id)}),z=t=>{r.value=t,g(n.value)};return{searchForm:n,searchLabel:F,onSearch:g,isShow:C,tableList:i,tableLabel:M,pagination:o,handleSizeChange:N,handleCurrentChange:O,loading:a,getType:T,activeName:r,typeList:_,statisticsList:p,statisticsData:v,handleClick:z,openDialog:(t="新增",e)=>c(this,null,function*(){var u,m,S,b;q({title:`${t}礼盒`,props:{formInline:{type:(u=e==null?void 0:e.gift_type)!=null?u:"",num:(m=e==null?void 0:e.quantity)!=null?m:"",gift_id:(S=e==null?void 0:e.gift_id)!=null?S:"",gift_bag_id:(b=e==null?void 0:e.gift_bag_id)!=null?b:""}},width:"40%",closeOnClickModal:!1,contentRenderer:()=>P(w,{ref:s,formInline:null}),beforeSure:(x,{options:y})=>{const R=s.value.getRef(),A=y.props.formInline,$=h=>c(this,null,function*(){const{code:L}=yield Y(I(d({},h),{gift_bag_id:r.value}));L?(f("新增成功",{type:"success"}),g(n.value),x()):f("新增失败",{type:"error"})}),K=h=>c(this,null,function*(){const{code:L,msg:V}=yield Z(I(d({},h),{gift_bag_id:r.value,id:e.id}));L?(f("修改成功",{type:"success"}),g(n.value),x()):f(V,{type:"error"})});R.validate(h=>{h&&(t==="新增"?$(A):K(A))})}})}),resetSetting:()=>c(this,null,function*(){}),handleDelete:t=>c(this,null,function*(){const{code:e}=yield W({id:t.id});e&&(f("您删除了这条数据",{type:"success"}),g(n.value))}),setting:()=>c(this,null,function*(){const{data:t,code:e}=yield X({gift_bag_id:r.value});q({title:"设置礼盒规则",props:{formInline:d({},t)},width:"40%",closeOnClickModal:!1,contentRenderer:()=>P(ee,{ref:s,formInline:null}),beforeSure:(u,{options:m})=>{const S=s.value.getRef(),b=m.props.formInline,x=y=>c(this,null,function*(){const{code:R}=yield D(d({},y));R?(f("设置成功",{type:"success"}),g(n.value),u()):f("设置失败",{type:"error"})});S.validate(y=>{y&&(b.gift_bag_id=r.value,x(b))})}})})}}export{fe as useData};
|
||||
Reference in New Issue
Block a user