2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
|
import{ah as e,b4 as o,c as a,e as l,O as t,P as s,w as i,t as n,l as r,d8 as p,ao as d,bb as u,g as c,c8 as _,b0 as h,aO as m}from"./index.IG9Kr4U_.js";import{_ as w}from"./index.BPCdXHb1.js";/* empty css */import{E as g}from"./el-text.DGRzEcIQ.js";import y from"./modify_deposit.D0OpIckT.js";import f from"./modify_deposit_log.kS1lc9fN.js";import D from"./single_channel_set.DMkxnI14.js";import v from"./single_fee_set.D5dpieW7.js";import{g as b,M as C,c as F,e as k,a as S}from"./modify_password.B5yv4GyN.js";import U from"./clear_account.DrsJVg7R.js";import j from"./aircraft.C18FgOFB.js";import A from"./user_gorup.DBo_jKQE.js";import M from"./detail.4KsrXA8o.js";import x from"./account_total.DUUb4iv-.js";import{s as R}from"./staticData.Bf5zg7ho.js";/* empty css */import"./el-col.DRUiGYEu.js";import"./payee-order.Fj5omPoV.js";import"./el-card.POOwNuEg.js";import"./settlement_log.DXZN_NW-.js";import"./handle_balance.CDeavLe6.js";import"./freeze_balance.BAifNyeH.js";import"./freeze_money_management.DCXgXzlZ.js";import"./freeze_balance_management.DMngY7T-.js";const B={class:"statistics-box"},T=["onClick"],P={style:{"margin-top":"4px"}},z={__name:"user-info",setup(z){const G=R.userType,I=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: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:{}}),L=(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=()=>{I.searchFields.forEach(e=>{"datetimerange"==e.dateType?e.value=[]:e.value=""}),E()};o(()=>{E()});const E=()=>{I.loading=!0;let e={limit:I.per_page,page:I.page},o=function(e){const o={};return e.forEach(e=>{e.prop&&void 0!==e.value&&(o[e.prop]=e.value)}),o}(I.searchFields);b(Object.assign(e,o)).then(e=>{I.tableData=e.data,I.total=e.total,I.loading=!1}).catch(()=>{I.loading=!1})},O=e=>{I.selectData=e},W=()=>{let e={username:I.addForm.values.username,name:I.addForm.values.name,user_type:I.addForm.values.user_type,password:I.addForm.values.password,log
|