update governance

This commit is contained in:
liangping 2022-05-05 22:24:45 +08:00
parent 3b497b0f20
commit 91cda46e9a

View File

@ -8,9 +8,7 @@
md="12" md="12"
> >
<b-card> <b-card>
<b-card-title <b-card-title class="mb-0">
class="mb-0"
>
#{{ p.id }}. #{{ p.id }}.
<b-badge <b-badge
v-if="p.status == 1" v-if="p.status == 1"
@ -48,43 +46,42 @@
:to="`./gov/${p.id}`" :to="`./gov/${p.id}`"
> >
{{ p.title }} {{ p.title }}
</router-link></b-card-title> </router-link>
<b-card-body md="12"> </b-card-title>
<div class="gov-wrapper flex-wrap"> <div class="gov-wrapper flex-wrap my-1">
<div class="gov"> <div class="gov">
<p class="card-text mb-25"> <p class="card-text mb-25">
Type Type
</p> </p>
<h6 class="mb-0"> <h6 class="mb-0">
{{ formatType(p.contents['@type']) }} {{ formatType(p.contents['@type']) }}
</h6> </h6>
</div>
<div class="gov">
<p class="card-text mb-25">
Start Date
</p>
<h6 class="mb-0">
{{ formatDate(p.voting_start_time) }}
</h6>
</div>
<div class="gov">
<p class="card-text mb-25">
End Date
</p>
<h6 class="mb-0">
{{ formatDate(p.voting_end_time) }}
</h6>
</div>
<div class="gov">
<p class="card-text mb-25">
Deposit
</p>
<h6 class="mb-0">
{{ formatToken(p.total_deposit) || '-' }}
</h6>
</div>
</div> </div>
</b-card-body> <div class="gov">
<p class="card-text mb-25">
Start Date
</p>
<h6 class="mb-0">
{{ formatDate(p.voting_start_time) }}
</h6>
</div>
<div class="gov">
<p class="card-text mb-25">
End Date
</p>
<h6 class="mb-0">
{{ formatDate(p.voting_end_time) }}
</h6>
</div>
<div class="gov">
<p class="card-text mb-25">
Deposit
</p>
<h6 class="mb-0">
{{ formatToken(p.total_deposit) || '-' }}
</h6>
</div>
</div>
<b-progress <b-progress
:max="100" :max="100"
@ -199,7 +196,7 @@
<script> <script>
import { import {
BCard, BCardTitle, BCardBody, BCardFooter, BButton, BProgressBar, BProgress, BBadge, BTooltip, BRow, BCol, VBModal, BCard, BCardTitle, BCardFooter, BButton, BProgressBar, BProgress, BBadge, BTooltip, BRow, BCol, VBModal,
} from 'bootstrap-vue' } from 'bootstrap-vue'
import Ripple from 'vue-ripple-directive' import Ripple from 'vue-ripple-directive'
import { percent, tokenFormatter } from '@/libs/utils' import { percent, tokenFormatter } from '@/libs/utils'
@ -216,7 +213,6 @@ export default {
BBadge, BBadge,
BCardTitle, BCardTitle,
BTooltip, BTooltip,
BCardBody,
BRow, BRow,
BCol, BCol,
OperationModal, OperationModal,