sf_web_dist/js/team.1759997569258DZgIUH22.js

2 lines
33 KiB
JavaScript
Raw Normal View History

2025-10-09 16:13:54 +08:00
import{b3 as e,bu as a,ag as l,a9 as t,bn as o,r as n,a_ as i,aV as r,c as m,e as s,N as d,bC as u,w as c,g as p,l as h,a7 as _,a8 as g,n as F,R as b,cf as v,t as w,E as f,S as I,bc as y,O as D,bq as k,m as C,br as L,al as x,am as V,bY as T,bZ as U,b_ as q,an as R,aX as $,ca as A,bS as B,a$ as j,aO as P,ax as M}from"./index.1759997569258Glu3NY1J.js";/* empty css */import{a as E,E as Y,b as N}from"./el-dropdown.1759997569258Co9vKI6a.js";import{_ as S}from"./index.1759997569258C9dmx5XX.js";import{c as z,d as G,f as O,r as Z,h as K,i as X,j as H,C as J,l as Q,m as W,n as ee,q as ae,s as le,u as te,v as oe,x as ne,z as ie,A as re,B as me}from"./agent.1759997569258D7lppCK1.js";import{a as se}from"./config.1759997569258CHm3f-A1.js";import"./dropdown.1759997569258CBiHOx2I.js";/* empty css */import"./el-col.1759997569258DGb2JBH3.js";const de={class:"none"},ue={class:"level-box"},ce=["onClick"],pe=["onClick"],he={class:"operate"},_e=["onClick"],ge=["onClick"],Fe=["onClick"],be={class:"cell-btn cl-1"},ve=["onClick"],we={class:"cell-btn cl-1"},fe=["onClick"],Ie={class:"cell-btn cl-2"},ye={class:"dialog-footer"},De={class:"operate"},ke=["onClick"],Ce=["onClick"],Le=["onClick"],xe={class:"tab-content"},Ve={class:"item"},Te={class:"item"},Ue={class:"item"},qe={class:"dialog-footer"},Re=e({__name:"team",setup(e){const{copy:Re}=a({legacy:!0});const $e=e=>{const a=Number(e).toFixed(4),l=a.split(".");return l[1]&&l[1].length>2?`${l[0]}.${l[1].slice(0,2)}`:a.slice(0,a.indexOf(".")+3)},Ae=l({columns:[{prop:"id",label:"编号",width:60},{prop:"ms_name",label:"代理账号",width:100,slot:"ms_name"},{prop:"child_count",label:"下级人数",width:100,slot:"child_count",align:"right"},{prop:"nick_name",label:"代理昵称",width:100},{prop:"team_amount",label:"团队余额",width:100,formatter:$e},{prop:"usable_amount",label:"余额",width:140,slot:"usable_amount",align:"right"},{prop:"status",label:"账号状态",width:85,slot:"status"},{prop:"df_rate",label:"代付返点%",width:100},{prop:"handle_order_status",label:"接单状态",width:85,slot:"handle_order_status"},{prop:"allow_df",label:"代付状态",width:90,slot:"allow_df"},{prop:"google_check",label:"谷歌状态",width:90,slot:"google_check"},{prop:"orderNo",label:"token"},{prop:"last_login_time",label:"最后登录时间",width:160,formatter:function(e){return B(1e3*e)}},{prop:"operate",label:"操作",width:300,slot:"operate",fixed:"right"}],tableData:[],searchFields:[{label:"代理ID",type:"input",prop:"id",value:""},{prop:"ms_name",label:"代理账号",type:"input",value:""},{prop:"status",label:"账号状态",type:"select",options:[{label:"启用",value:1},{label:"禁用",value:2}],value:null}],addForm:{title:"添加代理",fileds:[{label:"代理账号",prop:"ms_name",type:"input",value:""},{label:"代理昵称",prop:"nick_name",type:"input",value:""},{label:"代付返点%",prop:"df_rate",type:"input",value:""},{label:"允许开下级",prop:"allow_open_child",type:"switch",value:""},{label:"开启调整下级余额",prop:"open_adjust_child_amount",type:"switch",value:""},{label:"备注",prop:"remark",type:"input",value:""}],rules:{ms_name:[{required:!0,message:"请输入代理账号",trigger:"blur"}]},values:{ms_name:"",nick_name:"",df_rate:"",allow_open_child:2,open_adjust_child_amount:2,remark:""}},editForm:{},total:0,page:1,limit:10,amount:0,loading:!1,showAddDialog:!1,showEditDialog:!1,editIndex:-1,channelForm:{title:"一键新增通道",fields:[{label:"通道",prop:"channel_id",type:"select",options:[],value:null,placeholder:"请选择通道"},{label:"返点%",prop:"rate",type:"input",placeholder:"请输入返点"},{label:"备注",prop:"remark",type:"input",value:""}],rules:{channel_id:[{required:!0,message:"请选择通道",trigger:"change"}],rate:[{required:!0,message:"请输入返点",trigger:"blur"}]},values:{channel_id:"",rate:"",remark:""}},showChannelDialog:!1,rateForm:{title:"一键调整费率",fields:[{label:"通道",prop:"channel_ids",type:"select",options:[],value:[],placeholder:"请选择