2 lines
15 KiB
JavaScript
2 lines
15 KiB
JavaScript
|
import{aF as e,a$ as a,r as t,ag as o,b4 as l,d8 as s,c as r,e as i,N as n,O as p,w as u,t as c,l as d,d9 as _,an as w,bb as h,a7 as m,a8 as g,g as y,c8 as f,aO as v,a_ as D}from"./index.BCsAGz1S.js";import{_ as b}from"./index.Dj-ryU36.js";/* empty css */import{E as C}from"./el-text.yIx0cutb.js";import F from"./modify_deposit.CcCQ9R05.js";import k from"./modify_deposit_log.DzUehnqR.js";import R from"./single_channel_set.7I225jJP.js";import S from"./single_fee_set.CzkEWLOA.js";import j from"./modify_password.Cpx8a5Qz.js";import x from"./clear_account.Dgb3tA3a.js";import U from"./aircraft.DEmQYFuk.js";import A from"./user_gorup.BzvGNbIS.js";import T from"./detail.C73jZNvt.js";import z from"./account_total.BoibtFOd.js";import{d as B,g as M,f as I,h as P,i as L,j as G,k as V,l as E}from"./payee-user.Dej1b2Nt.js";import{b as O}from"./payee-order.CnPXpHLo.js";import{s as W}from"./staticData.8wZxkmL4.js";import{g as Z,a as $}from"./payee-channel.CrTv-SV9.js";/* empty css */import"./el-col.Cyplxb9t.js";import"./el-card.BjOkmLiM.js";import"./settlement_log.jM0tnW3D.js";import"./payee-count.BXDzZa0t.js";import"./select_channel.D-VjbC0G.js";import"./handle_balance.PLlVlT5o.js";import"./freeze_balance.5Ztmx6LL.js";import"./freeze_money_management.JqRYEAa3.js";import"./freeze_balance_management.DLgP7In-.js";const N=e("payee",()=>({getUserInfo:async function(){let e=await B({saiType:"all"}),a=[];return Object.keys(e).forEach(t=>{var o;(null==(o=e[t])?void 0:o.username)&&a.push({label:e[t].username,value:e[t].username})}),a},getProductList:async function(){return(await $({saiType:"all"})).map(e=>({label:e.name,value:e.name}))},getChannelList:async function(){return(await Z({saiType:"all"})).map(e=>({label:e.name,value:e.name}))}})),Q={class:"statistics-box"},X={style:{"font-size":"10px"}},Y={style:{"font-size":"10px"}},q=["onClick"],H={style:{"margin-top":"4px"}},J={style:{"margin-top":"4px"}},K={__name:"user-info",setup(e,{expose:Z}){N();const $=a(),K=W.userType,ee=t([]),ae=t("日切清账,关闭通道"),te=t("warning"),oe=t("0"),le=o({columns:[{prop:"shop_id",label:"商户号",align:"center",width:"100"},{prop:"username",label:"用户名",align:"center",slot:"username_slot",width:"100"},{prop:"group",label:"分组",align:"center",width:"100px",slot:"group_slot"},{prop:"",label:"预付操作",align:"center",slot:"modify_deposit_slot",width:"120"},{prop:"",label:"预付",align:"center",slot:"modify_deposit_log_slot"},{prop:"",label:"账号总额",align:"center",slot:"account_total_slot"},{prop:"",label:"通道",align:"center",slot:"channel_slot",width:"100px"},{prop:"",label:"费率",align:"center",slot:"fee_slot",width:"100px"},{prop:"",label:"状态",align:"center",slot:"status_slot"},{prop:"created_at",label:"回调IP",align:"center"},{prop:"",label:"操作",align:"center",slot:"operate_slot",width:"240"},{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:"用户定制类型",prop:"user_type",type:"select",value:"",options:K},{label:"用户分组",type:"select",prop:"user_group",value:"",options:ee}],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:"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,show
|