(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-19adc8c2"],{"13d5":function(e,t,n){"use strict";var o=n("23e7"),a=n("d58f").left,r=n("a640"),i=n("1212"),l=n("9adc"),u=!l&&i>79&&i<83,s=u||!r("reduce");o({target:"Array",proto:!0,forced:s},{reduce:function(e){var t=arguments.length;return a(this,e,t,t>1?arguments[1]:void 0)}})},"3bea":function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"new-app-container layout-vertical"},[n("YMTableSearch",{attrs:{loading:e.loading,"search-form":e.searchForm},on:{onValueChange:e.onValueChange,submit:e.onSubmit}}),n("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,apis:e.apis,loading:e.loading,"custom-style":{height:"calc(100vh - 150px)"}}}),n("Dialog",{ref:"dialog",attrs:{dialogActions:{width:"480px"}},on:{confirm:e.confirm}},[n("template",{slot:"content"},[n("el-form",{attrs:{"label-width":"80px"}},[n("el-form-item",{attrs:{label:"预开奖",rules:[{required:!0,message:"请输入预开奖"}]}},[n("el-input",{staticStyle:{width:"280px"},attrs:{placeholder:"开奖号码取值范围：0-27",autocomplete:"off"},model:{value:e.form.he,callback:function(t){e.$set(e.form,"he",t)},expression:"form.he"}})],1)],1)],1)],2)],1)},a=[],r=(n("99af"),n("7db0"),n("a15b"),n("14d9"),n("13d5"),n("e9f5"),n("9485"),n("a9e3"),n("d3b7"),n("9039")),i=n("7e1e"),l=[{value:0,label:"草稿"},{value:1,label:"投注中"},{value:2,label:"封盘"},{value:3,label:"开奖"}],u={components:{Dialog:r["a"]},data:function(){var e=this;return{loading:!1,visibleBasicDrawer:!1,renderContent:"",queryData:{},form:{},searchForm:[{label:"期号",type:"input",prop:"issue_no",clearable:!1}],columns:[{label:"期号",prop:"issue_no",link:!0,click:function(t){e.$router.push({name:"order",query:{issue_no:t.issue_no}})}},{label:"状态",prop:"status",method:function(e){var t;return null===(t=l.find((function(t){return t.value===e.status})))||void 0===t?void 0:t.label}},{label:"组合",prop:"combo"},{label:"结果",method:function(e){var t,n,o=null!==(t=null===e||void 0===e||null===(n=e.winning_numbers)||void 0===n?void 0:n.split(","))&&void 0!==t?t:[];if(!o.length)return"--";var a=o.reduce((function(e,t){return Number(e)+Number(t)}),0),r=o.join("+");return"".concat(r,"=").concat(a)}},{label:"预开奖号码",prop:"advance_code",method:function(e){return 0===e.advance_code?"0":e.advance_code||"--"}},{label:"开奖时间",prop:"end_time"}],rowsActions:[{key:"open",label:"预开奖",vIF:function(e){return 1===e.status},method:function(t){e.form={issue_no:t.issue_no,he:""},e.$refs.dialog.open()}}],apis:{list:{url:"pcIssue",dataParam:"data.data",resultParam:"data",init:!1}},tableOptions:{add:{show:!1}},editForm:[{body:[]}],editConfig:{size:"small"}}},created:function(){},mounted:function(){this.onSubmit()},methods:{handleSubmit:function(e){console.log("提交数据:",e)},confirm:function(){var e=this;Object(i["ab"])(this.form).then((function(t){0===t.code&&(e.$message.success("设置成功"),e.onSubmit(e.queryData),e.$refs.dialog.close())})).catch((function(){e.$message.error("设置失败")}))},onValueChange:function(e){},onSubmit:function(e){this.queryData=e,this.$refs.table.getList(e)}}},s=u,c=n("2877"),d=Object(c["a"])(s,o,a,!1,null,null,null);t["default"]=d.exports},9485:function(e,t,n){"use strict";var o=n("23e7"),a=n("2266"),r=n("59ed"),i=n("825a"),l=n("46c4"),u=n("2a62"),s=n("f99f"),c=n("2ba4"),d=n("d039"),f=TypeError,h=d((function(){[].keys().reduce((function(){}),void 0)})),m=!h&&s("reduce",f);o({target:"Iterator",proto:!0,real:!0,forced:h||m},{reduce:function(e){i(this);try{r(e)}catch(d){u(this,"throw",d)}var t=arguments.length<2,n=t?void 0:arguments[1];if(m)return c(m,this,t?[e]:[e,n]);var o=l(this),s=0;if(a(o,(function(o){t?(t=!1,n=o):n=e(n,o,s),s++}),{IS_RECORD:!0}),t)throw new f("Reduce of empty iterator with no initial value");return n}})},d58f:function(e,t,n){"use strict";var o=n("59ed"),a=n("7b0b"),r=n("44ad"),i=n("07fa"),l=TypeError,u="Reduce of empty array with no initial value",s=function(e){return function(t,n,s,c){var d=a(t),f=r(d),h=i(d);if(o(n),0===h&&s<2)throw new l(u);var m=e?h-1:0,b=e?-1:1;if(s<2)while(1){if(m in f){c=f[m],m+=b;break}if(m+=b,e?m<0:h<=m)throw new l(u)}for(;e?m>=0:h>m;m+=b)m in f&&(c=n(c,f[m],m,d));return c}};e.exports={left:s(!1),right:s(!0)}}}]);