Commit 13e96747 authored by yyh's avatar yyh

代码调整

parent d1c7e6d2
...@@ -95,6 +95,7 @@ export default class Proof extends Vue { ...@@ -95,6 +95,7 @@ export default class Proof extends Vue {
}); });
} }
private goProofDetail(proof: any) { private goProofDetail(proof: any) {
const { id: proofId } = proof;
const toBlockStatuss: ChainStatus[] = [ const toBlockStatuss: ChainStatus[] = [
ChainStatus.SUCCESS, ChainStatus.SUCCESS,
ChainStatus.HIDED, ChainStatus.HIDED,
...@@ -104,7 +105,7 @@ export default class Proof extends Vue { ...@@ -104,7 +105,7 @@ export default class Proof extends Vue {
if (toBlockStatuss.includes(proof.status) ) { if (toBlockStatuss.includes(proof.status) ) {
this.goToBrowser(proof); this.goToBrowser(proof);
} else { } else {
this.$router.push({ name: 'ProofDetail', query: { proofId: proof.id }}); this.$router.push({ name: 'ProofDetail', query: { proofId }});
} }
} }
private async copyProof(proof: any) { private async copyProof(proof: any) {
...@@ -156,10 +157,9 @@ export default class Proof extends Vue { ...@@ -156,10 +157,9 @@ export default class Proof extends Vue {
this.showAddProof = true; this.showAddProof = true;
this.isZengliang = true; this.isZengliang = true;
} }
private hide(proofId: number) { private async hide(proof: any) {
this.$api.proof.deleteBlockChainProof(proofId).then(() => { await this.$api.proof.deleteBlockChainProof(proof.id);
this.$toast('隐藏成功'); this.$toast('隐藏成功');
this.resetList(); this.resetList();
});
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment