新版交易所前段管理后台
1
jhzh
2025-08-18 1107fcd6f49bf9543b23e1b74160f2dc9162bb3d
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-40ef1812","chunk-a2af77c2"],{"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)}}},3037: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},on:{"update:page":function(t){e.page=t},"search-change":e.searchChange,"selection-change":e.selectionChange,"on-load":e.getDataList},scopedSlots:e._u([{key:"reco_member",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return a.stopPropagation(),e.quarePath(t.row.partyId)}}},[e._v(e._s(t.row.reco_member))])]}}])},[a("template",{slot:"menuLeft"})],2),e.addOrUpdateVisible?a("add-or-update",{ref:"addOrUpdate",on:{refreshDataList:e.getDataList}}):e._e()],1)},s=[];a("14d9");const i={searchMenuSpan:6,columnBtn:!1,border:!0,selection:!1,index:!1,indexLabel:"序号",stripe:!0,menuAlign:"center",menuWidth:350,align:"center",refreshBtn:!1,searchSize:"mini",addBtn:!1,editBtn:!1,delBtn:!1,viewBtn:!1,menu:!1,props:{label:"label",value:"value"},column:[{label:"用户",prop:"",children:[{label:"用户名",prop:"username",search:!0,placeholder:"用户名、UID"},{label:"UID",prop:"UID",display:!1},{label:"用户数",prop:"reco_member",slot:!0},{label:"代理数",prop:"reco_agent",display:!1}]},{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:"交易盈亏(ETF)",prop:"business_profit"},{label:"手续费(ETF)",prop:"totle_fee"},{label:"总收益(ETF)",prop:"totle_income"}]};var l=a("c2a8"),n={data(){return{dataList:[],activeName:"1",dataListLoading:!1,dateRange:"",dataListSelections:[],addOrUpdateVisible:!1,tableOption:i,searchParams:{},page:{total:0,currentPage:1,pageSize:10},dataForm:{}}},components:{AddOrUpdate:l["default"]},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/agentAllStatistics"),method:"post",data:this.$http.adornData(Object.assign({current:null==e?this.page.currentPage:e.currentPage,size:null==e?this.page.pageSize:e.pageSize},a))}).then(({data:e})=>{this.dataList=e.data.records,this.page.total=e.data.total,this.dataListLoading=!1,t&&t()})},searchChange(e,t){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)})},quarePath(e){this.$router.push({path:"/report-income",query:{partyId: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=""}}},o=n,d=a("2877"),p=Object(d["a"])(o,r,s,!1,null,null,null);t["default"]=p.exports},c2a8: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}}]);