text: (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-79a1"],{"47Ez":function(e,t,a){"use strict";var l=a("6ZY3"),n=a.n(l),i={name:"template",filters:{dialogTitle:function(e){return e?"添加":"编辑"}},data:function(){return{filterForm:{enabled:1,pageNo:1,pageSize:10,searchKey:"",gameGoldReason:"",currentDates:new Date},list:null,listLoading:!1,listTotal:0,data:{userid:0,reason:"",roomid:"",tableid:"",seatid:"",beginGold:"",changeGold:"",taxGold:"",endGold:"",note:"",recordTime:""},dataRule:{reason:[{required:!0,message:"0.game; 1.flee?不能为空",trigger:"blur"}],roomid:[{required:!0,message:"不能为空",trigger:"blur"}],tableid:[{required:!0,message:"不能为空",trigger:"blur"}],seatid:[{required:!0,message:"不能为空",trigger:"blur"}],beginGold:[{required:!0,message:"金币变化前的值不能为空",trigger:"blur"}],changeGold:[{required:!0,message:"金币变化值不能为空",trigger:"blur"}],taxGold:[{required:!0,message:"不能为空",trigger:"blur"}],endGold:[{required:!0,message:"end = begin + change - tax不能为空",trigger:"blur"}],note:[{required:!0,message:"备注不能为空",trigger:"blur"}],recordTime:[{required:!0,message:"不能为空",trigger:"blur"}]},dialogNewOrEditVisible:!1,newFlag:!0,saveBtnLoading:!1}},methods:{query:function(){var e=this;this.listLoading=!0,this.$store.dispatch("Listtblgamegold",this.filterForm).then(function(t){e.list=t.data,e.listTotal=t.totalCount,e.listLoading=!1}).catch(function(){e.listLoading=!1})},showNewPage:function(){this.newFlag=!0,this.resetForm(),this.data={},this.dialogNewOrEditVisible=!0},showEditPage:function(e){this.newFlag=!1,this.data=n()({},e),this.dialogNewOrEditVisible=!0},savetblgamegold:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$confirm("是否确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(){e.saveBtnLoading=!0,e.$store.dispatch(e.newFlag?"Savetblgamegold":"Updatetblgamegold",e.data).then(function(t){e.saveBtnLoading=!1,e.dialogNewOrEditVisible=!1,e.$message({message:t.msg,type:"success"}),e.query()}).catch(function(){e.saveBtnLoading=!1})})})},removeData:function(e){var t=this;this.$confirm("是否确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(){t.$store.dispatch("Deletetblgamegold",e.id).then(function(e){t.$message({message:e.msg,type:"success"}),t.listLoading=!1,t.query()}).catch(function(){t.listLoading=!1})})},resetForm:function(){this.$refs.dataForm&&this.$refs.dataForm.clearValidate()},handleSizeChange:function(e){this.filterForm.pageSize=e,this.query()},handleCurrentChange:function(e){this.filterForm.pageNo=e,this.query()}}},r=(a("aOjh"),a("ZrdR")),o=Object(r.a)(i,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-form",{ref:"filterForm",attrs:{inline:!0,size:"mini"}},[a("el-form-item",[a("el-form-item",{attrs:{label:"日期"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.filterForm.currentDates,callback:function(t){e.$set(e.filterForm,"currentDates",t)},expression:"filterForm.currentDates"}})],1),e._v(" "),a("el-button",{staticClass:"btn-form",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.query}},[e._v("查询")])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,size:"mini",border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{align:"center",label:"领取日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n        "+e._s(t.row.recordTimeCurrentTime||"合计")+"\n      ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"用户id"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n        "+e._s(t.row.userid||"-")+"\n      ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n        "+e._s(t.row.reason||"-")+"\n      ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"金币"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n        "+e._s(t.row.changeGold||"-")+"\n      ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"之前金币"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n        "+e._s(t.row.beginGold||"-")+"\n      ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"之后金币"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n        "+e._s(t.row.endGold||"-")+"\n      ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"变动时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n        "+e._s(t.row.recordTime||"-")+"\n      ")]}}])})],1),e._v(" "),a("div",{staticClass:"pagination-container"},[a("el-pagination",{attrs:{"current-page":e.filterForm.pageNo,"page-sizes":[10,20,30,50],"page-size":e.filterForm.pageSize,total:e.listTotal,background:"",layout:"total, sizes, prev, pager, next, jumper"},on:{"update:currentPage":function(t){e.$set(e.filterForm,"pageNo",t)},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogNewOrEditVisible,title:e._f("dialogTitle")(e.newFlag),width:"600px"},on:{"update:visible":function(t){e.dialogNewOrEditVisible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.data,rules:e.dataRule,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"0.game; 1.flee?",prop:"reason"}},[a("el-input",{attrs:{placeholder:"0.game; 1.flee?"},model:{value:e.data.reason,callback:function(t){e.$set(e.data,"reason",t)},expression:"data.reason"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"roomid"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.data.roomid,callback:function(t){e.$set(e.data,"roomid",t)},expression:"data.roomid"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"tableid"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.data.tableid,callback:function(t){e.$set(e.data,"tableid",t)},expression:"data.tableid"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"seatid"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.data.seatid,callback:function(t){e.$set(e.data,"seatid",t)},expression:"data.seatid"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"金币变化前的值",prop:"beginGold"}},[a("el-input",{attrs:{placeholder:"金币变化前的值"},model:{value:e.data.beginGold,callback:function(t){e.$set(e.data,"beginGold",t)},expression:"data.beginGold"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"金币变化值",prop:"changeGold"}},[a("el-input",{attrs:{placeholder:"金币变化值"},model:{value:e.data.changeGold,callback:function(t){e.$set(e.data,"changeGold",t)},expression:"data.changeGold"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"taxGold"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.data.taxGold,callback:function(t){e.$set(e.data,"taxGold",t)},expression:"data.taxGold"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"end = begin + change - tax",prop:"endGold"}},[a("el-input",{attrs:{placeholder:"end = begin + change - tax"},model:{value:e.data.endGold,callback:function(t){e.$set(e.data,"endGold",t)},expression:"data.endGold"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注",prop:"note"}},[a("el-input",{attrs:{placeholder:"备注"},model:{value:e.data.note,callback:function(t){e.$set(e.data,"note",t)},expression:"data.note"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"recordTime"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.data.recordTime,callback:function(t){e.$set(e.data,"recordTime",t)},expression:"data.recordTime"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{icon:"el-icon-close"},on:{click:function(t){e.dialogNewOrEditVisible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{loading:e.saveBtnLoading,type:"primary"},on:{click:e.savetblgamegold}},[a("svg-icon",{staticStyle:{"margin-right":"5px"},attrs:{"icon-class":"save"}}),e._v("保存")],1)],1)],1)],1)},[],!1,null,"cb573d98",null);o.options.__file="index.vue";t.a=o.exports},Lryf:function(e,t,a){"use strict";a.r(t);var l={name:"tblgamegold",components:{tmp:a("47Ez").a},data:function(){return{}},mounted:function(){this.$refs.tmp.filterForm.gameGoldReason=5,this.$refs.tmp.query()}},n=(a("s4dq"),a("ZrdR")),i=Object(n.a)(l,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"app-container"},[t("tmp",{ref:"tmp"})],1)},[],!1,null,"be478ce2",null);i.options.__file="index.vue";t.default=i.exports},ZQyx:function(e,t,a){},aOjh:function(e,t,a){"use strict";var l=a("ZQyx");a.n(l).a},gEXr:function(e,t,a){},s4dq:function(e,t,a){"use strict";var l=a("gEXr");a.n(l).a}}]);