Commit 7615f3f3 authored by wenglk's avatar wenglk

tab change

parent 8bdba73c
...@@ -7,7 +7,9 @@ import { ...@@ -7,7 +7,9 @@ import {
Select, Select,
Option, Option,
Message, Message,
MessageBox MessageBox,
RadioGroup,
RadioButton
} from 'element-ui' } from 'element-ui'
export default { export default {
...@@ -18,6 +20,8 @@ export default { ...@@ -18,6 +20,8 @@ export default {
V.use(Option) V.use(Option)
V.use(Table) V.use(Table)
V.use(TableColumn) V.use(TableColumn)
V.use(RadioGroup)
V.use(RadioButton)
V.use(Loading.directive) V.use(Loading.directive)
V.prototype.$notify = Notification V.prototype.$notify = Notification
V.prototype.$confirm = MessageBox.confirm V.prototype.$confirm = MessageBox.confirm
......
...@@ -70,7 +70,8 @@ export const lang = { ...@@ -70,7 +70,8 @@ export const lang = {
nextBlock: "Next Block", nextBlock: "Next Block",
no: "Nothing", no: "Nothing",
consensusAddress: "Consensus", consensusAddress: "Consensus",
txnsBlocks: "Block with more than {0} txns" txnsBlocks: "Block with more than {0} txns",
mtxnsBlocks: '>{0} txns'
}, },
txDetail: { txDetail: {
detail: "Transaction details", detail: "Transaction details",
......
...@@ -70,7 +70,8 @@ export const lang = { ...@@ -70,7 +70,8 @@ export const lang = {
nextBlock: "下个区块", nextBlock: "下个区块",
no: "无", no: "无",
consensusAddress: "共识地址", consensusAddress: "共识地址",
txnsBlocks: '> {0}交易数量的区块' txnsBlocks: '> {0}交易数量的区块',
mtxnsBlocks: '>{0}交易数'
}, },
txDetail: { txDetail: {
detail: "交易详情", detail: "交易详情",
......
...@@ -16,20 +16,17 @@ ...@@ -16,20 +16,17 @@
)})`" )})`"
></m-title> ></m-title>
<div class="search-container"> <div class="search-container">
<el-select <el-radio-group v-model="range" @change="filterBlocks" size="small">
v-model="range" <el-radio-button :label="0">{{
class="range-select" $t("lang.block.title")
size="small" }}</el-radio-button>
@change="filterBlocks" <el-radio-button :label="100">{{
> $t("lang.block.mtxnsBlocks", [100])
<el-option }}</el-radio-button>
v-for="item in selectOptions" <el-radio-button :label="1000">{{
:key="item.value" $t("lang.block.mtxnsBlocks", [1000])
:label="item.label" }}</el-radio-button>
:value="item.value" </el-radio-group>
>
</el-option>
</el-select>
</div> </div>
<m-block-item <m-block-item
v-for="(item, i) in Blocks" v-for="(item, i) in Blocks"
...@@ -77,9 +74,8 @@ export default VueTypedMixins(blockMixin).extend({ ...@@ -77,9 +74,8 @@ export default VueTypedMixins(blockMixin).extend({
align-items: flex-start; align-items: flex-start;
} }
.search-container { .search-container {
padding: 0 25px;
display: flex; display: flex;
justify-content: flex-end; justify-content: center;
align-items: center; align-items: center;
position: absolute; position: absolute;
top: 50px; top: 50px;
......
...@@ -25,20 +25,17 @@ ...@@ -25,20 +25,17 @@
<!-- 表格部分 --> <!-- 表格部分 -->
<div class="table-container"> <div class="table-container">
<div class="search-container"> <div class="search-container">
<el-select <el-radio-group v-model="range" @change="filterBlocks">
v-model="range" <el-radio-button :label="0">{{
class="range-select" $t("lang.block.title")
size="small" }}</el-radio-button>
@change="filterBlocks" <el-radio-button :label="100">{{
> $t("lang.block.txnsBlocks", [100])
<el-option }}</el-radio-button>
v-for="item in selectOptions" <el-radio-button :label="1000">{{
:key="item.value" $t("lang.block.txnsBlocks", [1000])
:label="item.label" }}</el-radio-button>
:value="item.value" </el-radio-group>
>
</el-option>
</el-select>
</div> </div>
<el-table <el-table
:data="Blocks" :data="Blocks"
...@@ -162,9 +159,6 @@ export default VueTypedMixins(blockMixin).extend({ ...@@ -162,9 +159,6 @@ export default VueTypedMixins(blockMixin).extend({
width: 100%; width: 100%;
background: #fafbfc; background: #fafbfc;
} }
.range-select {
width: 310px;
}
.title { .title {
margin-top: 30px; margin-top: 30px;
} }
...@@ -223,7 +217,4 @@ export default VueTypedMixins(blockMixin).extend({ ...@@ -223,7 +217,4 @@ export default VueTypedMixins(blockMixin).extend({
height: 150px; height: 150px;
vertical-align: baseline !important; vertical-align: baseline !important;
} }
.range-select input {
border-radius: 20px;
}
</style> </style>
\ No newline at end of file
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