2025-09-15 18:17:11 +08:00
|
|
|
import{b2 as e,bt as a,ag as l,a9 as t,r as o,bm as n,cd as i,aZ as r,aV as s,c as m,e as d,N as u,bB as c,w as p,g as h,l as _,a7 as g,a8 as F,n as v,R as f,ce as b,t as w,E as y,S as I,bb as D,O as k,bp as C,m as L,bq as x,al as T,am as V,bX as U,bY as R,bZ as q,an as B,aX as $,c9 as A,bR as P,a_ as j,aO as E,ax as M,bT as z}from"./index.1757931278435C466bBJb.js";/* empty css */import{a as S,E as Y,b as G}from"./el-dropdown.1757931278435BKt1nC2O.js";import{_ as N}from"./index.1757931278435BX9Jx-J9.js";import{c as O,d as Z,f as H,t as X,r as K,h as J,i as Q,j as W,k as ee,o as ae,l as le,m as te,n as oe,p as ne,q as ie,s as re,u as se,v as me,x as de,y as ue,z as ce,A as pe,B as he}from"./agent.1757931278435wPREUCkw.js";import{a as _e}from"./config.1757931278435CHm3f-A1.js";import"./dropdown.17579312784358wuzWl-p.js";/* empty css */import"./el-col.1757931278435CDZukh-o.js";const ge={class:"none"},Fe={class:"none"},ve={class:"level-box"},fe=["onClick"],be=["onClick"],we={class:"operate"},ye=["onClick"],Ie=["onClick"],De=["onClick"],ke={class:"cell-btn cl-1"},Ce=["onClick"],Le={class:"cell-btn cl-1"},xe=["onClick"],Te={class:"cell-btn cl-2"},Ve={class:"dialog-footer"},Ue={class:"operate"},Re=["onClick"],qe=["onClick"],Be=["onClick"],$e={class:"tab-content"},Ae={class:"item"},Pe={class:"item"},je={class:"item"},Ee={class:"dialog-footer"},Me=e({__name:"agent",setup(e){const{copy:Me}=a({legacy:!0});const ze=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)},Se=l({columns:[{prop:"id",label:"编号",width:70},{prop:"ms_name",label:"代理账号",width:120,slot:"ms_name"},{prop:"child_count",label:"下级人数",width:100,slot:"child_count",align:"right"},{prop:"nick_name",label:"代理昵称",width:100},{prop:"order_total_amount",label:"今日跑量",width:85},{prop:"usable_amount",label:"可用余额",width:140,slot:"usable_amount",align:"right"},{prop:"frozen_amount",label:"冻结余额",width:100,align:"right",formatter:ze},{prop:"status",label:"账号状态",width:90,slot:"status"},{prop:"df_rate",label:"代付返点%",width:100},{prop:"handle_order_status",label:"接单状态",width:85,slot:"handle_order_status"},{prop:"allow_df",label:"代付状态",width:85,slot:"allow_df"},{prop:"is_sync_msg",label:"TG同步上级",width:105,slot:"is_sync_msg"},{prop:"single_device_login",label:"单一设备登录",width:120,slot:"single_device_login"},{prop:"google_check",label:"谷歌状态",width:90,slot:"google_check"},{prop:"token",label:"token"},{prop:"last_login_time",label:"最后登录时间",width:150,formatter:function(e){return P(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},{prop:"level",label:"代理等级",type:"input",value:""}],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:"金额类型",
|