# 优化序号显示

This commit is contained in:
xianfuxing 2018-08-18 12:59:07 +08:00
parent 8f03176d42
commit a08b33d6d8
1 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,7 @@
:data="historyList" :data="historyList"
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
prop="oid" type="index"
label="序号" label="序号"
min-width="80"> min-width="80">
</el-table-column> </el-table-column>
@ -38,7 +38,6 @@ export default {
fetchLogStatisticHistory().then(response => { fetchLogStatisticHistory().then(response => {
this.historyList = response.data.results this.historyList = response.data.results
this.historyList.forEach((item, index) => { this.historyList.forEach((item, index) => {
item.oid = index + 1
}) })
this.listLoading = false this.listLoading = false
this.$emit('history', this.historyList) this.$emit('history', this.historyList)