(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-01b7d179","chunk-11d2b939","chunk-2969077f"],{"20ca":function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));const r=(e,t)=>{let a,r=t||300;return function(){let t=arguments;a&&clearTimeout(a);let s=!a;a=setTimeout(()=>{a=null},r),s&&e.apply(this,t)}}},4329:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.dataForm.id?"修改":"新增","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[a("el-input",{attrs:{placeholder:"角色名称"},model:{value:e.dataForm.roleName,callback:function(t){e.$set(e.dataForm,"roleName",t)},expression:"dataForm.roleName"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{placeholder:"备注"},model:{value:e.dataForm.remark,callback:function(t){e.$set(e.dataForm,"remark",t)},expression:"dataForm.remark"}})],1),a("el-form-item",{attrs:{size:"mini",label:"授权"}},[a("el-tree",{ref:"menuListTree",attrs:{data:e.menuList,props:e.menuListTreeProps,"node-key":"menuId","show-checkbox":""}})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},s=[],i=a("ed08"),l=a("20ca"),n={data(){return{visible:!1,menuList:[],menuListTreeProps:{label:"name",children:"children"},dataForm:{id:0,roleName:"",remark:""},dataRule:{roleName:[{required:!0,message:"角色名称不能为空",trigger:"blur"},{pattern:/\s\S+|S+\s|\S/,message:"请输入正确的角色名称",trigger:"blur"}],remark:[{required:!1,pattern:/\s\S+|S+\s|\S/,message:"输入格式有误",trigger:"blur"}]},tempKey:-666666}},methods:{init(e){this.dataForm.id=e||0,this.$http({url:this.$http.adornUrl("/sys/menu/table"),method:"get",params:this.$http.adornParams()}).then(({data:e})=>{this.menuList=Object(i["e"])(e,"menuId","parentId")}).then(()=>{this.visible=!0,this.$nextTick(()=>{this.$refs["dataForm"].resetFields(),this.$refs.menuListTree.setCheckedKeys([])})}).then(()=>{this.dataForm.id&&this.$http({url:this.$http.adornUrl("/sys/role/info/"+this.dataForm.id),method:"get",params:this.$http.adornParams()}).then(({data:e})=>{this.dataForm.roleName=e.roleName,this.dataForm.remark=e.remark;var t=e.menuIdList.indexOf(this.tempKey);-1!==t&&e.menuIdList.splice(t,e.menuIdList.length-t),this.$refs.menuListTree.setCheckedKeys(e.menuIdList)})})},dataFormSubmit:Object(l["a"])((function(){this.$refs["dataForm"].validate(e=>{e&&this.$http({url:this.$http.adornUrl("/sys/role"),method:this.dataForm.id?"put":"post",data:this.$http.adornData({roleId:this.dataForm.id||void 0,roleName:this.dataForm.roleName,remark:this.dataForm.remark,menuIdList:[].concat(this.$refs.menuListTree.getCheckedKeys(),[this.tempKey],this.$refs.menuListTree.getHalfCheckedKeys())})}).then(({data:e})=>{this.$message({message:"操作成功",type:"success",duration:1500,onClose:()=>{this.visible=!1,this.$emit("refreshDataList")}})})})}))}},o=n,d=a("2877"),p=Object(d["a"])(o,r,s,!1,null,null,null);t["default"]=p.exports},5621:function(e,t,a){},69521:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));const r={searchMenuSpan:6,columnBtn:!1,border:!0,selection:!0,selection:!1,index:!1,indexLabel:"序号",stripe:!0,menuAlign:"center",menuWidth:250,align:"center",refreshBtn:!0,searchSize:"mini",addBtn:!1,editBtn:!1,delBtn:!1,viewBtn:!1,menu:!1,props:{label:"label",value:"value"},column:[{label:"币种",prop:"wallettype"},{label:"可用金额",prop:"amount"},{label:"锁定金额",prop:"lock_amount"},{label:"冻结金额",prop:"freeze_amount"}]}},8552:function(e,t,a){"use strict";a("5621")},aafa:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mod-role"},[a("avue-crud",{ref:"crud",attrs:{page:e.page,data:e.dataList,option:e.tableOption,"cell-class-name":e.addClasscolor},on:{"update:page":function(t){e.page=t},"search-change":e.searchChange,"selection-change":e.selectionChange,"on-load":e.getDataList},scopedSlots:e._u([{key:"moneyslot",fn:function(t){return[a("span",{staticClass:"seachButton",on:{click:function(a){return e.moneyCheack(t.row.user_code)}}},[e._v(e._s(t.row.money))])]}},{key:"recoNum",fn:function(t){return[a("span",{staticClass:"seachButton",on:{click:function(a){return e.searchSumName(t.row.user_id)}}},[e._v(e._s(t.row.reco_num))])]}}])},[a("template",{slot:"menuLeft"})],2),e.addOrUpdateVisible?a("add-or-update",{ref:"addOrUpdate",on:{refreshDataList:e.getDataList}}):e._e(),e.moneyUpdateVisible?a("moneyUpdate",{ref:"moneyUpdat",on:{refreshDataList:e.getDataList}}):e._e()],1)},s=[];const i={searchMenuSpan:6,columnBtn:!1,border:!0,selection:!1,index:!1,indexLabel:"序号",stripe:!0,menuAlign:"center",menuWidth:200,align:"center",refreshBtn:!0,searchSize:"mini",addBtn:!1,editBtn:!1,delBtn:!1,viewBtn:!1,menu:!1,props:{label:"label",value:"value"},column:[{label:"用户",prop:"roleName",search:!0,children:[{label:"用户名",prop:"user_name",search:!0,placeholder:"用户名、UID"},{label:"UID",prop:"user_code",display:!1},{label:"账户类型",prop:"role_name",display:!1,type:"select",dicData:[{label:"正式账号",value:"MEMBER"},{label:"演示账号",value:"MEMBER1"}]},{label:"团队人数",prop:"recoNum",slot:!0},{label:"USDT",prop:"moneyslot",slot:!0}]},{label:"开始时间",prop:"startTime",type:"datetime",search:!0,viewDisplay:!1,hide:!0,format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"},{label:"结束时间",prop:"endTime",type:"datetime",format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss",hide:!0,searchClearble:!1,search:!0,viewDisplay:!1},{label:"充提",prop:"remark",children:[{label:"充值",prop:"age",display:!1,children:[{label:"USDT",prop:"recharge_usdt",display:!1},{label:"ETH",prop:"recharge_eth",display:!1},{label:"BTC",prop:"recharge_btc",display:!1}]},{label:"提现",prop:"phone",display:!1,children:[{label:"USDT",prop:"withdraw",display:!1},{label:"ETH",prop:"withdraw_eth",display:!1},{label:"BTC",prop:"withdraw_btc",display:!1}]}]},{label:"赠送(USDT)",prop:"gift_money"},{label:"充提差额(USDT)",prop:"difference"},{label:"交易盈亏",prop:"business_profit"},{label:"矿机盈亏",prop:"miner_income"},{label:"手续费",prop:"totle_fee"},{label:"总收益",prop:"totle_income"}]};var l=a("4329"),n=a("fa43"),o={data(){return{activeName:"1",checked:!0,dateRange:[],dataList:[],partyId:"",dataListLoading:!1,dataListSelections:[],addOrUpdateVisible:!1,moneyUpdateVisible:!1,tableOption:i,page:{total:0,currentPage:1,pageSize:10},dataForm:{},searchParams:{}}},components:{AddOrUpdate:l["default"],moneyUpdate:n["default"]},created(){this.dataListLoading=!0,this.$route.query.partyId?this.partyId=this.$route.query.partyId:this.partyId=""},watch:{$route(e,t){this.dataListLoading=!0,this.$route.query.partyId?this.partyId=this.$route.query.partyId:this.partyId="",this.getDataList(this.page)}},methods:{getDataList(e,t){const a={current:null==e?this.page.currentPage:e.currentPage,size:null==e?this.page.pageSize:e.pageSize,...this.searchParams};this.dataListLoading=!0,this.$http({url:this.$http.adornUrl("/statistics/userList"),method:"post",data:this.$http.adornData(Object.assign({userId:this.partyId,current:null==e?this.page.currentPage:e.currentPage,size:null==e?this.page.pageSize:e.pageSize},a))}).then(({data:e})=>{0==e.code&&(this.dataList=e.data.records,this.page.total=e.data.total),this.dataListLoading=!1,t&&t()})},addClasscolor({column:e,row:t}){return"role_name"===e.property&&"MEMBER"==t.role_name||"gift_money"===e.property&&1*t.gift_money>0||"difference"===e.property&&1*t.difference>0||"business_profit"===e.property&&1*t.business_profit>0||"miner_income"===e.property&&1*t.miner_income>0||"totle_fee"===e.property&&1*t.totle_fee>0||"totle_income"===e.property&&1*t.totle_income>0?"green":"business_profit"===e.property&&1*t.business_profit<0||"miner_income"===e.property&&1*t.miner_income<0||"totle_income"===e.property&&1*t.totle_income<0?"red":"role_name"===e.property&&"MEMBER1"==t.role_name?"yellow":""},searchSumName(e,t,a,r){this.dataListLoading=!0,this.$http({url:this.$http.adornUrl("/statistics/userList"),method:"post",data:this.$http.adornData(Object.assign({userId:e,current:null==t?this.page.currentPage:t.currentPage,size:null==t?this.page.pageSize:t.pageSize},a))}).then(({data:e})=>{0==e.code&&(this.dataList=e.data.records,this.page.total=e.data.total),this.dataListLoading=!1,r&&r()})},moneyCheack(e){this.moneyUpdateVisible=!0,this.$nextTick(()=>{this.$refs.moneyUpdat.init(e)})},searchChange(e,t){this.partyId="",this.page.currentPage=1,this.searchParams=e,this.getDataList(this.page,t)},selectionChange(e){this.dataListSelections=e},addOrUpdateHandle(e){this.addOrUpdateVisible=!0,this.$nextTick(()=>{this.$refs.addOrUpdate.init(e)})},deleteHandle(e){var t=e?[e]:this.dataListSelections.map(e=>e.roleId);this.$confirm(`确定进行[${e?"删除":"批量删除"}]操作?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$http({url:this.$http.adornUrl("/sys/role"),method:"delete",data:this.$http.adornData(t,!1)}).then(({data:e})=>{this.$message({message:"操作成功",type:"success",duration:1500,onClose:()=>{this.getDataList()}})})}).catch(()=>{})},handleClick(e,t){1==this.activeName?this.state="submitted":this.state="",this.getDataList()},handleClick2(e,t){this.dataForm.paraTime=this.getTag2(),this.getDataList()},getTag2(){let e={1:"day",2:"week",3:"month",4:"all"};return e[this.activeName2]}}},d=o,p=(a("8552"),a("2877")),h=Object(p["a"])(d,r,s,!1,null,"654d8776",null);t["default"]=h.exports},fa43:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"钱包","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.dataFormSubmit()}}},[a("avue-crud",{ref:"crud",attrs:{page:e.page,data:e.dataList,option:e.tableOption},on:{"update:page":function(t){e.page=t},"search-change":e.searchChange,"selection-change":e.selectionChange,"on-load":e.getDataList}},[a("template",{slot:"menuLeft"})],2)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visible=!1}}},[e._v("确定")])],1)],1)},s=[],i=a("69521"),l=(a("ed08"),a("20ca"),{data(){return{visible:!1,tableOption:i["a"],userId:"",dataList:[],menuList:[],menuListTreeProps:{label:"name",children:"children"},page:{total:0,currentPage:1,pageSize:10},dataForm:{id:0,roleName:"",remark:""},dataRule:{roleName:[{required:!0,message:"角色名称不能为空",trigger:"blur"},{pattern:/\s\S+|S+\s|\S/,message:"请输入正确的角色名称",trigger:"blur"}],remark:[{required:!1,pattern:/\s\S+|S+\s|\S/,message:"输入格式有误",trigger:"blur"}]},tempKey:-666666}},methods:{init(e){this.userId=e||"",this.visible=!0,this.getDataList(this.page)},getDataList(e,t,a){this.dataListLoading=!0,this.$http({url:this.$http.adornUrl("/statistics/walletExtendsAll"),method:"post",data:this.$http.adornData(Object.assign({userId:this.userId},t))}).then(({data:e})=>{if(0==e.code){this.dataList=e.data.wallet_data,this.page.total=e.data.total;let t=e.data.wallet_type_arr.split(",");this.usdtArr=t.map(e=>({value:e,label:e})),this.usdtArr.value=this.usdtArr[0].value,this.dataListLoading=!1}a&&a()})},searchChange(e,t){this.getDataList(this.page,e,t)},selectionChange(e){this.dataListSelections=e}}}),n=l,o=a("2877"),d=Object(o["a"])(n,r,s,!1,null,null,null);t["default"]=d.exports}}]);