| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-60c84ea6"],{"275a":function(e,t,a){"use strict";var n=a("04c2"),r=a("42ee"),o=a("5635"),i=a("29fd"),l=a("bd47"),s=a("56ce"),c=r("".charAt),u=s((function(){return"\ud842"!=="𠮷".at(-2)}));n({target:"String",proto:!0,forced:u},{at:function(e){var t=l(o(this)),a=t.length,n=i(e),r=n>=0?n:a+n;return r<0||r>=a?void 0:c(t,r)}})},"6af2":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"new-app-container layout-vertical"},[a("YMTableSearch",{attrs:{loading:e.loading,"search-form":e.searchForm},on:{onValueChange:e.onValueChange,submit:e.onSubmit}}),a("YMTable",{ref:"table",attrs:{"table-key":1,index:!0,selection:!1,"table-options":e.tableOptions,"edit-form":e.editForm,"edit-config":e.editConfig,columns:e.columns,"rows-actions":e.rowsActions,"show-summary":!1,alertTip:e.alertTip,apis:e.apis,"custom-style":{height:"calc(100vh - 220px)"}},on:{onResponse:e.onResponse}}),a("Dialog",{ref:"dialog"},[a("template",{slot:"content"})],2)],1)},r=[],o=a("639f"),i=(a("a80b"),a("b15b"),a("17ee"),a("71e2"),a("c41f"),a("275a"),a("7acf"),a("9039")),l={components:{Dialog:i["a"]},data:function(){return{loading:!1,visibleBasicDrawer:!1,alertTip:"",searchForm:[{label:"会员ID",type:"input",prop:"member_id",clearable:!1},{label:"会员昵称",type:"input",prop:"first_name",clearable:!0},{label:"内容",type:"input",prop:"keywords",clearable:!1},{label:"期号",type:"input",prop:"issue_no",default:"",clearable:!1},{label:"用户账号",type:"input",prop:"username",clearable:!1},{label:"选择日期",type:"daterange",prop:"created_range",default:"",clearable:!0},{label:"状态",type:"select",prop:"status",options:[{label:"待结算",value:1},{label:"已结算",value:2},{label:"全部",value:""}]},{label:"是否有奖",type:"select",prop:"is_winner",options:[{label:"否",value:0},{label:"是",value:1},{label:"全部",value:""}]}],columns:[{label:"期号",prop:"issue_no"},{label:"会员ID",prop:"member_id",width:120},{label:"会员昵称",popover:!0,width:140,tagType:function(e){return 1===(null===e||void 0===e?void 0:e.user.status)?"danger":""},props:["user.first_name"],options:[{label:"会员ID",value:["user.member_id"]},{label:"用户名称",value:["user.username"]},{label:"异常信息",vShow:function(e){return!(null===e||void 0===e||!e.user.admin_note)},value:["user.admin_note"]}]},{label:"玩法",width:"50px",prop:"keywords"},{label:"金额",prop:"amount"},{width:"50px",label:"倍率",prop:"odds"},{label:"盈利",prop:"profit",html:!0,method:function(e){if(1===e.status)return"--";if(!e)return'<span style="color: #bfbfbf; font-style: italic;">--</span>';var t=parseFloat(e.profit)||0,a=parseFloat(e.amount)||0,n=t-a;return n>0?'<span style="color: #52c41a; font-weight: 500;">+'.concat(n.toFixed(2),"</span>"):n<0?'<span style="color: #ff4d4f; font-weight: 500;">'.concat(n.toFixed(2),"</span>"):'<span style="color: #8c8c8c;">'.concat(n.toFixed(2),"</span>")}},{label:"开奖号码",prop:"winning_array",method:function(e){var t=null===e||void 0===e?void 0:e.winning_array;return t&&t.length>0?"".concat(t.slice(0,3).join("+")," = ").concat(t.at(-1)):"--"}},{label:"状态",prop:"status",method:function(e){return 1===e.status?"待结算":2===e.status?"已结算":"--"}},{label:"投注时间",prop:"created_at"}],rowsActions:[],apis:{list:{url:"bet",dataParam:"data.data",resultParam:"data",init:!1}},tableOptions:{},editForm:[],editConfig:{addTip:"注:备注",editTip:"注:备注"},issue_no:""}},created:function(){this.issue_no=this.$route.query.issue_no,this.issue_no&&(this.searchForm[2]=Object.assign({},this.searchForm[2],{default:this.issue_no})),this.initDateRange()},methods:{onResponse:function(e){this.alertTip="统计数据:"+e.total_amount},initDateRange:function(){var e=this;this.$nextTick((function(){e.$refs.table.getList({issue_no:e.issue_no})}))},formatDate:function(e){var t=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(a,"-").concat(n)},handleSubmit:function(e){console.log("提交数据:",e)},handleClickDrawer:function(e){},onValueChange:function(e){},onSubmit:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null!==e&&void 0!==e&&e.created_range&&(null===e||void 0===e?void 0:e.created_range.length)>1?"".concat(e.created_range[0]):null,a=null!==e&&void 0!==e&&e.created_range&&(null===e||void 0===e?void 0:e.created_range.length)>1?"".concat(e.created_range[1]):null;delete e.created_range,this.$refs.table.getList(Object(o["a"])(Object(o["a"])({},e),{},{start_time:t,end_time:a}))}}},s=l,c=a("1805"),u=Object(c["a"])(s,n,r,!1,null,null,null);t["default"]=u.exports},a80b:function(e,t,a){"use strict";var n=a("04c2"),r=a("9bf4"),o=a("57ad"),i=a("29fd"),l=a("8b7d");n({target:"Array",proto:!0},{at:function(e){var t=r(this),a=o(t),n=i(e),l=n>=0?n:a+n;return l<0||l>=a?void 0:t[l]}}),l("at")},c41f:function(e,t,a){"use strict";var n=a("04c2"),r=a("42ee"),o=a("29fd"),i=a("13dd"),l=a("4054"),s=a("56ce"),c=RangeError,u=String,p=Math.floor,d=r(l),f=r("".slice),b=r(1.1.toFixed),h=function(e,t,a){return 0===t?a:t%2===1?h(e,t-1,a*e):h(e*e,t/2,a)},g=function(e){var t=0,a=e;while(a>=4096)t+=12,a/=4096;while(a>=2)t+=1,a/=2;return t},m=function(e,t,a){var n=-1,r=a;while(++n<6)r+=t*e[n],e[n]=r%1e7,r=p(r/1e7)},v=function(e,t){var a=6,n=0;while(--a>=0)n+=e[a],e[a]=p(n/t),n=n%t*1e7},w=function(e){var t=6,a="";while(--t>=0)if(""!==a||0===t||0!==e[t]){var n=u(e[t]);a=""===a?n:a+d("0",7-n.length)+n}return a},_=s((function(){return"0.000"!==b(8e-5,3)||"1"!==b(.9,0)||"1.25"!==b(1.255,2)||"1000000000000000128"!==b(0xde0b6b3a7640080,0)}))||!s((function(){b({})}));n({target:"Number",proto:!0,forced:_},{toFixed:function(e){var t,a,n,r,l=i(this),s=o(e),p=[0,0,0,0,0,0],b="",_="0";if(s<0||s>20)throw new c("Incorrect fraction digits");if(l!==l)return"NaN";if(l<=-1e21||l>=1e21)return u(l);if(l<0&&(b="-",l=-l),l>1e-21)if(t=g(l*h(2,69,1))-69,a=t<0?l*h(2,-t,1):l/h(2,t,1),a*=4503599627370496,t=52-t,t>0){m(p,0,a),n=s;while(n>=7)m(p,1e7,0),n-=7;m(p,h(10,n,1),0),n=t-1;while(n>=23)v(p,1<<23),n-=23;v(p,1<<n),m(p,1,1),v(p,2),_=w(p)}else m(p,0,a),m(p,1<<-t,0),_=w(p)+d("0",s);return s>0?(r=_.length,_=b+(r<=s?"0."+d("0",s-r)+_:f(_,0,r-s)+"."+f(_,r-s))):_=b+_,_}})}}]);
|