diff --git a/src/views/Governance.vue b/src/views/Governance.vue index ee230fdc..f52b72a9 100644 --- a/src/views/Governance.vue +++ b/src/views/Governance.vue @@ -70,11 +70,6 @@ export default { this.getList() }, methods: { - selectProposal(modal, pid, title) { - this.operationModalType = modal - this.selectedProposalId = Number(pid) - this.selectedTitle = title - }, getList() { this.loading = true this.$http.getGovernanceList(this.next).then(res => { diff --git a/src/views/components/governance/ProposalSummaryComponent.vue b/src/views/components/governance/ProposalSummaryComponent.vue index 00187420..5f3fcd43 100644 --- a/src/views/components/governance/ProposalSummaryComponent.vue +++ b/src/views/components/governance/ProposalSummaryComponent.vue @@ -189,6 +189,11 @@ export default { }, }, methods: { + selectProposal(modal, pid, title) { + this.$parent.operationModalType = modal + this.$parent.selectedProposalId = Number(pid) + this.$parent.selectedTitle = title + }, formatType(v) { const txt = String(v).replace('Proposal', '') const index = txt.lastIndexOf('.')