sf_web_dist/js/user-info.DaEqwZCc.js

2 lines
12 KiB
JavaScript
Raw Normal View History

2025-08-06 17:52:35 +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 r,l as n,d8 as p,an as d,bb as u,g as c,c8 as _,a_ as w,aO as h}from"./index.CcfFPdCK.js";import{_ as m}from"./index.CYCFCxoG.js";/* empty css */import{E as g}from"./el-text.BEzJXwYl.js";import y from"./modify_deposit.uBjatHW7.js";import f from"./modify_deposit_log.B4DOTSD9.js";import D from"./single_channel_set.CJoM273Z.js";import v from"./single_fee_set.NaLvohUU.js";import{g as C,M as b,c as F,e as k,a as S}from"./modify_password.D4Oy6Y3f.js";import R from"./clear_account.CqrwXOdO.js";import j from"./aircraft.CCXswiUL.js";import U from"./user_gorup.0I6btwda.js";import M from"./detail.CbccaPso.js";import A from"./account_total.X0qGLgd1.js";import{s as x}from"./staticData.b8Nd3Dnh.js";/* empty css */import"./el-col.eZKfrsN2.js";import"./payee-order.Ds93OGPM.js";import"./el-card.Dipn3Mna.js";import"./settlement_log.nFotg3Nr.js";import"./payee-channel.CAQf2Ee5.js";import"./handle_balance.Bc1m2RmB.js";import"./freeze_balance.CMD7KPPO.js";import"./freeze_money_management.BKQBRTs0.js";import"./freeze_balance_management.CxIRAVjc.js";const B={class:"statistics-box"},T=["onClick"],P={style:{"margin-top":"4px"}},z={__name:"user-info",setup(z){const G=x.userType,L=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:G}],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=()=>{L.searchFields.forEach(e=>{"datetimerange"==e.dateType?e.value=[]:e.value=""}),O()};o(()=>{O()});const O=()=>{L.loading=!0;let e={limit:L.per_page,page:L.page},o=function(e){const o={};return e.forEach(e=>{e.prop&&void 0!==e.value&&(o[e.prop]=e.value)}),o}(L.searchFields);C(Object.assign(e,o)).then(e=>{L.tableData=e.data,L.total=e.total,L.loading=!1}).catch(()=>{L.loading=!1})},E=e=>{L.selectData=e},N=()=>{let e={username:L.addForm.values.username,name:L.addForm.values.name,user_type:L.addForm.values.user_type,pa