Commit dc06cd09 authored by yyh's avatar yyh

代码调整

parent 8e5d9185
export const ActionList = { blockChain: {key: 'blockChain', icon: 'shanglian1', text: '上链'},
edit: {key: 'edit', icon: 'bianji1', text: '编辑'},
del: {key: 'del', icon: 'shanchu3', text: '删除'},
copy: {key: 'copy', icon: 'fuzhi1', text: '复制'},
blockquery: {key: 'blockquery', icon: 'qukuailianchaxun', text: '区块链查询'},
copyhash: {key: 'copyhash', icon: 'fuzhiHashdizhi', text: '复制hash地址'},
del2: {key: 'del2', icon: 'shanchu3', text: '删除'},
};
...@@ -67,20 +67,13 @@ import { Component, Prop, Vue } from 'vue-property-decorator'; ...@@ -67,20 +67,13 @@ import { Component, Prop, Vue } from 'vue-property-decorator';
import { List, Popup, Button, Image, Picker, Grid, GridItem, Empty } from 'vant'; import { List, Popup, Button, Image, Picker, Grid, GridItem, Empty } from 'vant';
import ProofItem from '@/components/ProofItem.vue'; import ProofItem from '@/components/ProofItem.vue';
import { ChainStatus } from '@/const/enum'; import { ChainStatus } from '@/const/enum';
import { ActionList } from '@/const/constants';
const ChainStatusStr: any = { const ChainStatusStr: any = {
[ChainStatus.NONE]: '未上链', [ChainStatus.NONE]: '未上链',
[ChainStatus.CHAINING]: '上链中', [ChainStatus.CHAINING]: '上链中',
[ChainStatus.SUCCESS]: '已上链', [ChainStatus.SUCCESS]: '已上链',
[ChainStatus.FAILURE]: '上链失败', [ChainStatus.FAILURE]: '上链失败',
}; };
const ActionList = { blockChain: {key: 'blockChain', icon: 'shanglian1', text: '上链'},
edit: {key: 'edit', icon: 'bianji1', text: '编辑'},
del: {key: 'del', icon: 'shanchu3', text: '删除'},
copy: {key: 'copy', icon: 'fuzhi1', text: '复制'},
blockquery: {key: 'blockquery', icon: 'qukuailianchaxun', text: '区块链查询'},
copyhash: {key: 'copyhash', icon: 'fuzhiHashdizhi', text: '复制hash地址'},
del2: {key: 'del2', icon: 'shanchu3', text: '删除'},
};
@Component({ @Component({
components: { components: {
ProofItem, ProofItem,
...@@ -131,7 +124,7 @@ export default class ProofList extends Vue { ...@@ -131,7 +124,7 @@ export default class ProofList extends Vue {
del: () => { this.delProof(this.currentProof.id); }, del: () => { this.delProof(this.currentProof.id); },
copy: () => { this.copyProof(this.currentProof); }, copy: () => { this.copyProof(this.currentProof); },
blockquery: () => { this.goToBROWSER(); }, blockquery: () => { this.goToBROWSER(); },
copyhash: () => { this.copyHash(this.currentProof) }, copyhash: () => { this.copyHash(this.currentProof); },
del2: () => { this.abandonProof(this.currentProof.id); }, del2: () => { this.abandonProof(this.currentProof.id); },
}; };
this.show = false; this.show = false;
......
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