From 8e35f5b81e830d9fc23fb97ccc2dab9f26d7e9bf Mon Sep 17 00:00:00 2001
From: liangping <18786721@qq.com>
Date: Sat, 3 Sep 2022 16:35:27 +0800
Subject: [PATCH] improve UI.
---
src/views/Governance.vue | 181 +-------------
.../governance/ProposalSummaryComponent.vue | 229 ++++++++++++++++++
2 files changed, 233 insertions(+), 177 deletions(-)
create mode 100644 src/views/components/governance/ProposalSummaryComponent.vue
diff --git a/src/views/Governance.vue b/src/views/Governance.vue
index 1a5909a5..ee230fdc 100644
--- a/src/views/Governance.vue
+++ b/src/views/Governance.vue
@@ -7,171 +7,7 @@
lg="6"
md="12"
>
-
-
- #{{ p.id }}.
-
- Deposit
-
-
- Voting
-
-
- Passed
-
-
- Rejected
-
-
- {{ p.title }}
-
-
-
-
-
- Type
-
-
- {{ formatType(p.contents['@type']) }}
-
-
-
-
- Start Date
-
-
- {{ formatDate(p.voting_start_time) }}
-
-
-
-
- End Date
-
-
- {{ formatDate(p.voting_end_time) }}
-
-
-
-
- Deposit
-
-
- {{ formatToken(p.total_deposit) || '-' }}
-
-
-
-
-
-
-
-
-
-
-
- {{ percent(p.tally.yes) }}% voted Yes
-
-
- {{ percent(p.tally.no) }}% voted No
-
-
- {{ percent(p.tally.veto) }}% voted No With Veto
-
-
- {{ percent(p.tally.abstain) }}% voted Abstain
-
-
-
-
- {{ $t('btn_detail') }}
-
-
-
- {{ $t('btn_deposit') }}
-
-
- {{ $t('btn_vote') }}
-
-
-
+
@@ -196,16 +32,14 @@
+
+