(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e2665"],{"7f11":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"new-app-container layout-vertical"},[a("YMTableSearch",{attrs:{loading:t.loading,"search-form":t.searchForm},on:{onValueChange:t.onValueChange,submit:t.onSubmit}}),a("YMTable",{ref:"table",attrs:{"table-key":1,index:!0,selection:!1,"table-options":t.tableOptions,"edit-form":t.editForm,"edit-config":t.editConfig,columns:t.columns,"rows-actions":t.rowsActions,"show-summary":!1,apis:t.apis,"custom-style":{height:"calc(100vh - 150px)"}}}),a("Dialog",{ref:"dialog",attrs:{"dialog-actions":{width:"480px",title:"赠送金额"},loading:t.loading},on:{confirm:t.confirm}},[a("template",{slot:"content"},[a("el-form",{ref:"formDataref",attrs:{rules:t.rulesData,model:t.formData,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"赠送金额",prop:"amount"}},[a("el-input",{staticStyle:{width:"300px"},attrs:{type:"number"},model:{value:t.formData.amount,callback:function(e){t.$set(t.formData,"amount",e)},expression:"formData.amount"}})],1),a("el-form-item",{attrs:{label:"打码量",prop:"betting_amount"}},[a("el-input",{staticStyle:{width:"300px"},model:{value:t.formData.betting_amount,callback:function(e){t.$set(t.formData,"betting_amount",e)},expression:"formData.betting_amount"}})],1)],1)],1)],2)],1)},o=[],i=(a("99af"),a("9039")),r=a("7e1e"),l={components:{Dialog:i["a"]},data:function(){var t=this;return{loading:!1,listTypes:[],formData:{amount:"",id:"",betting_amount:""},rulesData:{amount:[{required:!0,message:"请输入",trigger:"blur"}],betting_amount:[{required:!0,message:"请输入",trigger:"blur"}]},searchForm:[{label:"活动名称",type:"input",prop:"title",clearable:!1},{label:"会员ID",type:"input",prop:"member_id",clearable:!1},{label:"会员昵称",type:"input",prop:"first_name",clearable:!0}],columns:[{label:"会员ID",prop:"member_id",width:120},{label:"会员昵称",popover:!0,width:140,props:["member.first_name"],tagType:function(t){return 1===(null===t||void 0===t?void 0:t.member.status)?"danger":""},options:[{label:"会员ID",value:["member.member_id"]},{label:"用户名称",value:["member.username"]},{label:"异常信息",vShow:function(t){return!(null===t||void 0===t||!t.member.admin_note)},value:["member.admin_note"]}]},{label:"活动名称",prop:"title"},{label:"赠送金额",prop:"gift_amount",method:function(t){return t.gift_amount||"0"}},{label:"打码量",prop:"betting_amount",method:function(t){return"".concat(t.effective_betting_amount," / ").concat(t.betting_amount," ")}},{label:"活动开始时间",prop:"start_time"},{label:"活动结束时间",prop:"end_time"},{label:"活动详情图片",image:!0,prop:"detail_image"},{label:"参与时间",prop:"part_in_time"},{label:"状态",prop:"status",method:function(t){return 0===t.status?"申请中":1===t.status?"进行中 ":"已完成"}},{label:"完成时间",prop:"finish_time"}],rowsActions:[{key:"wanjie",label:"完结",vIF:function(t){return 2!==t.status},method:function(e){t.$confirm("是否确定完结？, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(r["g"])({id:e.id}).then((function(e){t.onSubmit(),t.$message.success("操作成功")}))}))}},{key:"chongzhi",label:"赠送",vIF:function(t){return 0===t.status},method:function(e){t.formData.id=e.id,t.$refs.dialog.open()}}],apis:{list:{url:"ActivityUser",dataParam:"data.data",resultParam:"data",init:!1}},tableOptions:{},editForm:[],editConfig:{}}},created:function(){},mounted:function(){this.onSubmit()},methods:{confirm:function(){var t=this;this.$refs["formDataref"].validate((function(e){e&&Object(r["z"])(t.formData).then((function(e){t.$message.success("操作成功"),t.onSubmit()}))}))},handleSubmit:function(t){console.log("提交数据:",t)},handleClickDrawer:function(t){},onValueChange:function(t){},onSubmit:function(t){this.$refs.table.getList(t)}}},u=l,m=a("2877"),s=Object(m["a"])(u,n,o,!1,null,null,null);e["default"]=s.exports}}]);