fix issue

This commit is contained in:
liangping 2022-09-11 14:56:18 +08:00
parent 5d6c0ace74
commit 0df6b095d6

View File

@ -271,10 +271,10 @@
{{ formatDate(data.item.completion_time) }} {{ formatDate(data.item.completion_time) }}
</template> </template>
<template #cell(initial_balance)="data"> <template #cell(initial_balance)="data">
{{ data.item.initial_balance }}{{ stakingParameters.bond_denom }} {{ data.item.initial_balance }}
</template> </template>
<template #cell(balance)="data"> <template #cell(balance)="data">
{{ data.item.balance }}{{ stakingParameters.bond_denom }} {{ data.item.balance }}
</template> </template>
</b-table> </b-table>
</b-col> </b-col>
@ -339,6 +339,7 @@ import {
} from '@/libs/utils' } from '@/libs/utils'
import OperationModal from '@/views/components/OperationModal/index.vue' import OperationModal from '@/views/components/OperationModal/index.vue'
import Ripple from 'vue-ripple-directive' import Ripple from 'vue-ripple-directive'
import dayjs from 'dayjs'
import ParametersModuleComponent from './components/parameters/ParametersModuleComponent.vue' import ParametersModuleComponent from './components/parameters/ParametersModuleComponent.vue'
import DashboardCardHorizontal from './components/dashboard/DashboardCardHorizontal.vue' import DashboardCardHorizontal from './components/dashboard/DashboardCardHorizontal.vue'
import DashboardCardVertical from './components/dashboard/DashboardCardVertical.vue' import DashboardCardVertical from './components/dashboard/DashboardCardVertical.vue'
@ -592,6 +593,7 @@ export default {
return { title: this.convert(data[k]), subtitle: k } return { title: this.convert(data[k]), subtitle: k }
}) })
}, },
formatDate: v => dayjs(v).format('YYYY-MM-DD HH:mm:ss'),
convert(v) { convert(v) {
if (typeof v === 'object') { if (typeof v === 'object') {
const v2 = {} const v2 = {}