sf_web_dist/js/user-info.BY97p-E1.js

2 lines
12 KiB
JavaScript
Raw Normal View History

2025-08-05 14:53:04 +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.B4nP-7hR.js";import{_ as m}from"./index.Ct36SObr.js";/* empty css */import{E as g}from"./el-text.CAwkMebN.js";import f from"./modify_deposit.Cnj7osw3.js";import y from"./modify_deposit_log.C2VNrVX-.js";import D from"./single_channel_set.CppYfBpB.js";import v from"./single_fee_set.DL4A7d09.js";import{g as C,M as b,c as F,e as k,a as S}from"./modify_password.D4GqD7iS.js";import U from"./clear_account.F0NMZPCK.js";import j from"./aircraft.D0futXg6.js";import M from"./user_gorup.DQwCD8YS.js";import R from"./detail.BQBTH_Bh.js";import A from"./account_total.CkPt7U3D.js";import{s as x}from"./staticData.pxPvJypV.js";/* empty css */import"./el-col.BbPtes2w.js";import"./payee-order.CLOEzwzH.js";import"./el-card.Cerl8CEU.js";import"./settlement_log.B_s0vmh8.js";import"./handle_balance.NJ1wwYbJ.js";import"./freeze_balance.rhzVRArh.js";import"./freeze_money_management.m7vjhP2B.js";import"./freeze_balance_management.DfvHTg2J.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