|
|
@@ -20,8 +20,8 @@
|
|
|
<el-descriptions title="签约信息" :column="2" style="padding:20px" v-if="accountInfo">
|
|
|
<el-descriptions-item label="资金账号">{{ accountInfo.accountid }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="余额">{{ accountInfo.balance }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="冻结资金">{{ accountInfo.freezemargin }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="可用资金">{{ accountInfo.usedmargin }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="冻结资金">{{ freezeMargin.toFixed(2) }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="可用资金">{{ avaiableMoney.toFixed(2) }}</el-descriptions-item>
|
|
|
<template v-if="bankInfo">
|
|
|
<el-descriptions-item label="托管银行">{{ bankInfo.cusbankname }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="开户银行">{{ bankInfo.bankname }}</el-descriptions-item>
|
|
|
@@ -48,9 +48,11 @@ import { decryptAES } from '@/utils/websocket/crypto'
|
|
|
import { handleNoneValue } from '@/filters'
|
|
|
import { getCertificateTypeName } from '@/constants/certificate'
|
|
|
import { SignStatus, getSignStatusName } from '@/constants/bank'
|
|
|
+import { useAccountStore } from '@/stores'
|
|
|
import AppAuthOperation from '@pc/components/modules/auth-operation/index.vue'
|
|
|
|
|
|
-const { loading, loginInfo, userInfo, accountInfo, bankInfo, getBankAccountSign } = useAccount()
|
|
|
+const { accountInfo, avaiableMoney, freezeMargin } = useAccountStore()
|
|
|
+const { loading, loginInfo, userInfo, bankInfo, getBankAccountSign } = useAccount()
|
|
|
|
|
|
const handleTableButtons = computed(() => {
|
|
|
const buttons = ['loginPassword', 'accountPassword']
|