Commit 4a1f10c4 authored by yyh's avatar yyh

代码格式化

parent 13e96747
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
width="30px" width="30px"
height="30px" height="30px"
v-if="incrementProof.status !== ChainStatus.SUCCESS" v-if="incrementProof.status !== ChainStatus.SUCCESS"
@click.stop.native="editIncrementProof(incrementProof,index)" @click.stop="editIncrementProof(incrementProof,index)"
></common-svg> ></common-svg>
</div> </div>
</van-step> </van-step>
......
...@@ -105,6 +105,9 @@ export default class Index extends Mixins(MixinProof) { ...@@ -105,6 +105,9 @@ export default class Index extends Mixins(MixinProof) {
id: '', id: '',
name: '', name: '',
}; };
private get ChainStatus() {
return ChainStatus;
}
protected resetList() { protected resetList() {
this.total = 0; this.total = 0;
this.list = []; this.list = [];
...@@ -153,9 +156,6 @@ export default class Index extends Mixins(MixinProof) { ...@@ -153,9 +156,6 @@ export default class Index extends Mixins(MixinProof) {
}); });
this.showSelectTemplate = false; this.showSelectTemplate = false;
} }
get ChainStatus() {
return ChainStatus;
}
get actionList() { get actionList() {
const {blockChain, edit, del, del2, copy, blockquery , copyhash, zengliang, hide } = this.ActionList; const {blockChain, edit, del, del2, copy, blockquery , copyhash, zengliang, hide } = this.ActionList;
const obj: any = { const obj: any = {
...@@ -196,10 +196,14 @@ export default class Index extends Mixins(MixinProof) { ...@@ -196,10 +196,14 @@ export default class Index extends Mixins(MixinProof) {
} }
private editIncrementProof(data: any) { private editIncrementProof(data: any) {
const { incrementProof, preProof, baseProof } = data; const { incrementProof, preProof, baseProof } = data;
this.$router.push({name: 'ProofDetail', this.$router.push({
query: { proofId: incrementProof.id, name: 'ProofDetail',
preProof: JSON.stringify(preProof), query: {
baseProof: JSON.stringify(baseProof) }}); proofId: incrementProof.id,
preProof: JSON.stringify(preProof),
baseProof: JSON.stringify(baseProof),
},
});
} }
private showMoreAction(data: any) { private showMoreAction(data: any) {
this.show = true; this.show = true;
......
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