import{r as t,j as a}from"./app-eaa32a4a.js";import{I as e}from"./index-d0abb25c.js";import{c as s,d as i,e as n,i as c}from"./local-bd07797b.js";import"./index-de07cc7b.js";import"./index-58480b55.js";import"./auth-e5508dcf.js";import"./index-4abfb1b1.js";import"./formModel-91be7d5d.js";import"./Dialog-c56752ef.js";import"./index-f0b471ce.js";class o extends t.Component{constructor(t){super(t),this.state={list:[],loading:!1},this.columns=[{colKey:"ddd",title:"用户名",align:"center",cell:({rowIndex:t,row:a})=>a.exchange_users_id?s(a.exchange_users_id):"null"},{colKey:"exchange",title:"交易所",align:"center"},{colKey:"margin_balance",title:"保证金余额",align:"center"},{colKey:"available_balance",title:"可用余额",align:"center",cell:({rowIndex:t,row:e})=>a.jsx("span",{style:{color:"#12B981"},children:e.available_balance})}]}changeLoding(t){this.setState({loading:t})}async changeList(){try{this.changeLoding(!0);const t=await i();0==t.code&&this.setState({list:t.data.data}),this.changeLoding(!1)}catch(t){}}async componentDidMount(){await n(),this.changeList()}render(){return a.jsxs("div",{className:["contract-account-table",c()?"contract-account-table__mobile":""].join(" "),children:[a.jsx("div",{className:"contract-account-label",children:"合约账户"}),a.jsx("div",{className:"contract-account-table-box",children:a.jsx(e,{columns:this.columns,data:this.state.list,loading:this.state.loading})})]})}}export{o as default};
