2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
|
import{a$ as e,r as o,ag as a,b4 as l,c as t,e as s,N as i,O as r,w as n,t as p,l as d,d8 as u,an as c,bb as _,g as h,c8 as w,a_ as m,aO as g}from"./index.Cf-jAOZU.js";import{_ as y}from"./index.Bg1VCFas.js";/* empty css */import{E as f}from"./el-text.nwqXyDtv.js";import D from"./modify_deposit.DN5HoL5U.js";import v from"./modify_deposit_log.Ni9i26KT.js";import b from"./single_channel_set.91KoKuK2.js";import C from"./single_fee_set.g_PqQZ1K.js";import F from"./modify_password.CZkRgBcv.js";import k from"./clear_account.CcHvi2KU.js";import R from"./aircraft.CqDW9JbC.js";import S from"./user_gorup.B-xx78Wd.js";import j from"./detail.BVB-fGfJ.js";import U from"./account_total.VRDgsBZc.js";import{a as A,c as M,b as x,d as T}from"./payee-user.D3C39I4M.js";import{s as B}from"./staticData.b8Nd3Dnh.js";/* empty css */import"./el-col.CQAFfm4Z.js";import"./payee-order.CSxBfFYn.js";import"./el-card.C6yDa8ld.js";import"./settlement_log.B2FrrGJm.js";import"./payee-channel.m5RMvef0.js";import"./select_channel.t2QwVqtN.js";import"./handle_balance.CCSNuzL3.js";import"./freeze_balance.CU4AqLnw.js";import"./freeze_money_management.BjXuVYyN.js";import"./freeze_balance_management.DLUmHv69.js";const z=["onClick"],P={style:{"margin-top":"4px"}},L={__name:"freeze-user",setup(L){const G=e(),I=B.userType,V=o([]),E=a({columns:[{prop:"shop_id",label:"商户号",align:"center",width:"120"},{prop:"username",label:"用户名",align:"center",slot:"username_slot"},{prop:"group",label:"分组",align:"center"},{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:"user_type",value:"",options:I},{label:"用户分组",type:"select",prop:"user_group",value:"",options:V}],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:B.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:{}}),O=(e,o)=>{let a="";return(0===o?type_options:pay_type_options).some(o=>{if(o.value===e)return a=o.label,!0}),a},W=()=>{E.searchFields.forEach(e=>{"datetimerange"==e.dateType?e.value=[]:e.value=""}),$()};l(()=>{$()});const $=()=>{E.loading=!0;let e={limit:E.per_page,page:E.page,status:2},o=function(e){const o={};return e.forEach(e=>{e.prop&&void 0!==e.value&&(o[e.prop]=e.value)}),o}(E.searchFields);A(Object.assign(e,o)).then(e
|