sf_web_dist/js/user-info.DN8nbyE6.js

2 lines
12 KiB
JavaScript
Raw Normal View History

2025-07-31 13:39:20 +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 h,aO as m}from"./index.CmWiwu1s.js";import{_ as w}from"./index.DcSfC3ma.js";/* empty css */import{E as g}from"./el-text.BmYivTr3.js";import f from"./modify_deposit.DoBKMj89.js";import y from"./modify_deposit_log.BCGYJSFn.js";import D from"./single_channel_set.BS3D9CD1.js";import v from"./single_fee_set.BWQwgfXv.js";import{g as C,M as b,c as F,e as k,a as S}from"./modify_password.C_lazd7z.js";import U from"./clear_account.AsC0LFZl.js";import j from"./aircraft.fRUU4VOu.js";import M from"./user_gorup.hmXEPt2Z.js";import A from"./detail.DDrIKpIt.js";import x from"./account_total.Ssw9dtEn.js";import{s as R}from"./staticData.Bf5zg7ho.js";/* empty css */import"./el-col.Cp8aY472.js";import"./payee-order.BzAMK4F-.js";import"./el-card.BXVfIXN7.js";import"./settlement_log.DV4SGlC5.js";import"./handle_balance.DIUIcRpL.js";import"./freeze_balance.BH_kCQE6.js";import"./freeze_money_management.DVNVPaNh.js";import"./freeze_balance_management.PpENwzvI.js";const B={class:"statistics-box"},T=["onClick"],z={style:{"margin-top":"4px"}},P={__name:"user-info",setup(P){const L=R.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:R.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=""}),E()};o(()=>{E()});const E=()=>{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})},O=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