|
@@ -26,9 +26,9 @@
|
|
|
<WalletAddress :address="row.address" />
|
|
<WalletAddress :address="row.address" />
|
|
|
</template>
|
|
</template>
|
|
|
</ElTableColumn>
|
|
</ElTableColumn>
|
|
|
- <ElTableColumn prop="ethBalance" label="ETH余额" min-width="160" show-overflow-tooltip />
|
|
|
|
|
- <ElTableColumn prop="zkBalance" label="ETH余额(ZK)" min-width="160" show-overflow-tooltip />
|
|
|
|
|
- <ElTableColumn prop="zkUsdcBalance" label="USDC余额(ZK)" min-width="160" show-overflow-tooltip />
|
|
|
|
|
|
|
+ <ElTableColumn prop="ethBalance" label="ETH余额" min-width="100" :formatter="numberFormatter(6)" />
|
|
|
|
|
+ <ElTableColumn prop="zkBalance" label="ETH余额(ZK)" min-width="100" :formatter="numberFormatter(6)" />
|
|
|
|
|
+ <ElTableColumn prop="zkUsdcBalance" label="USDC余额" min-width="100" :formatter="numberFormatter(6)"/>
|
|
|
<ElTableColumn prop="offBridgeNum" label="官方跨链" width="100" sortable></ElTableColumn>
|
|
<ElTableColumn prop="offBridgeNum" label="官方跨链" width="100" sortable></ElTableColumn>
|
|
|
<ElTableColumn
|
|
<ElTableColumn
|
|
|
prop="lastOffBridge"
|
|
prop="lastOffBridge"
|
|
@@ -146,6 +146,13 @@ function onRowClick(row, column, event) {
|
|
|
table.value.toggleRowSelection(row)
|
|
table.value.toggleRowSelection(row)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+function numberFormatter(num) {
|
|
|
|
|
+ return function (row, column, value, index) {
|
|
|
|
|
+ if (!value) return value
|
|
|
|
|
+ return Number(value).toFixed(num).replace(/\.0+$/, '')
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
function onAddAccount() {
|
|
function onAddAccount() {
|
|
|
if (addFormRef.value) {
|
|
if (addFormRef.value) {
|
|
|
addFormRef.value.clearValidate()
|
|
addFormRef.value.clearValidate()
|