table2 ,tab增加数量展示
This commit is contained in:
parent
b5ce5fcaa6
commit
9f35f6c634
@ -20,7 +20,7 @@
|
||||
|
||||
<ContentWrap class="xtable">
|
||||
<el-tabs v-if="tabs && tabs.length > 0" v-model="search[tabskey]" @tab-change="tabChange" class="xtabletabs">
|
||||
<el-tab-pane v-for="item in tabs" :key="item.value" :label="item.label + (item.num ? '(' + item.num + ')' : '')" :name="item.value" />
|
||||
<el-tab-pane v-for="item in tabs" :key="item.value" :label="item.label + ((item.num || (search[tabskey] == item.value && !$refs.table.loading)) ? '(' + (search[tabskey] == item.value ? $refs.table.total : item.num) + ')' : '')" :name="item.value" />
|
||||
</el-tabs>
|
||||
<xTable :isselection="isselection" :batchoperation="batch" :defaultExpandAll="defaultExpandAll" height="auto" ref="table" :tableColumn="column" :name="tablename" :params="search" :api="api" :row-key="key" :remoteSort="true" :remoteFilter="true" stripe>
|
||||
<el-table-column type="expand" v-if="tableexpand">
|
||||
|
Loading…
Reference in New Issue
Block a user