2025-08-05 17:08:50 +08:00
|
|
|
|
import{ag as e,b4 as o,c as a,e as l,N as t,O as s,w as i,t as n,l as r,d8 as p,an as d,bb as u,g as c,c8 as _,a_ as w,aO as h}from"./index.DkruV4sG.js";import{_ as m}from"./index.CNG9Avme.js";/* empty css */import{E as g}from"./el-text.C3qy4KBf.js";import f from"./modify_deposit.CZrQ3-D3.js";import y from"./modify_deposit_log.WxLu0uhJ.js";import D from"./single_channel_set.CBUP6Hfw.js";import v from"./single_fee_set.CH_qNh7Q.js";import{g as C,M as b,c as F,e as k,a as S}from"./modify_password.BZgdj34S.js";import U from"./clear_account.BTvKzqex.js";import j from"./aircraft.CAT9ITbI.js";import M from"./user_gorup.Bie77dDk.js";import R from"./detail.BYc0ngcs.js";import A from"./account_total.Dq9vIbbT.js";import{s as x}from"./staticData.pxPvJypV.js";/* empty css */import"./el-col.CmN0pZGy.js";import"./payee-order.Ch98PNDz.js";import"./el-card.D6uYYZjY.js";import"./settlement_log.BJYqYEud.js";import"./handle_balance.C2INCHSm.js";import"./freeze_balance.hXsfD5hP.js";import"./freeze_money_management.8WToRiPM.js";import"./freeze_balance_management.CLbgix09.js";const B={class:"statistics-box"},T=["onClick"],P={style:{"margin-top":"4px"}},z={__name:"user-info",setup(z){const L=x.userType,G=e({columns:[{prop:"shop_id",label:"商户号",align:"center"},{prop:"username",label:"用户名",align:"center",slot:"username_slot"},{prop:"",label:"预付操作",align:"center",slot:"modify_deposit_slot",width:"220"},{prop:"",label:"预付",align:"center"},{prop:"",label:"账号总额",align:"center",slot:"account_total_slot"},{prop:"",label:"通道",align:"center",slot:"channel_slot"},{prop:"",label:"费率",align:"center",slot:"fee_slot"},{prop:"",label:"状态",align:"center",slot:"status_slot"},{prop:"created_at",label:"回调IP",align:"center"},{prop:"",label:"操作",align:"center",slot:"operate_slot",width:"220"},{prop:"create_time",label:"注册时间",align:"center"},{prop:"login_time",label:"最后登录时间",align:"center",slot:"login_time_slot"}],tableData:[],searchFields:[{label:"商户号",prop:"shop_id",type:"input",value:""},{label:"用户名称",type:"input",prop:"username",value:""},{label:"用户类型",type:"select",prop:"status",value:"",options:L}],total:0,page:1,per_page:10,loading:!1,selectData:[],showAddDialog:!1,btnLoading:!1,addForm:{title:"新增用户",fields:[{label:"用户名称",prop:"username",type:"input",value:""},{label:"姓名",prop:"name",type:"input",value:""},{label:"用户类别",prop:"user_type",type:"select",options:x.userType,value:""},{label:"登录密码",prop:"password",type:"password"},{label:"登录IP白名单",prop:"login_white_ip",type:"textarea",value:""},{label:"回调IP白名单",prop:"callback_white_ip",type:"textarea",value:"",placeholder:"商户的回调IP,管理员有IP池,建议每个商户独立IP,若是包网,则改为批量,切记线下一定要记录每个商户的IP,若IP被打,则及时变更不影响其他商户用英文逗号隔开"}],rules:{},values:{username:"",name:"",user_type:"",password:"",login_white_ip:"",callback_white_ip:"",id:""}},showBatchChannel:!1,showBatchFee:!1,showWrongAccount:!1,showRepairRecord:!1,showModifyDeposit:!1,showModifyDepositLog:!1,showSingleChannelSet:!1,showSingleFeeSet:!1,showModifyPassword:!1,showClearAccount:!1,showBindAircraftDialog:!1,showUserGroupDialog:!1,showDetailDialog:!1,showTotalDetailDialog:!1,currentRow:{}}),I=(e,o)=>{let a="";return(0===o?type_options:pay_type_options).some(o=>{if(o.value===e)return a=o.label,!0}),a},V=()=>{G.searchFields.forEach(e=>{"datetimerange"==e.dateType?e.value=[]:e.value=""}),O()};o(()=>{O()});const O=()=>{G.loading=!0;let e={limit:G.per_page,page:G.page},o=function(e){const o={};return e.forEach(e=>{e.prop&&void 0!==e.value&&(o[e.prop]=e.value)}),o}(G.searchFields);C(Object.assign(e,o)).then(e=>{G.tableData=e.data,G.total=e.total,G.loading=!1}).catch(()=>{G.loading=!1})},E=e=>{G.selectData=e},N=()=>{let e={username:G.addForm.values.username,name:G.addForm.values.name,user_type:G.addForm.values.user_type,password:G.addForm.values.password,log
|