|
|
|
@ -36,11 +36,7 @@ |
|
|
|
|
<el-table-column type="index" width="70" label="序号" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="tableComment" label="数据表名称" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="showName" label="产品表名称" align="center"></el-table-column> |
|
|
|
|
<el-table-column label="起止日期" width="160" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.startTime.substr(0, 10) + ' ~ ' + scope.row.endTime.substr(0, 10)}} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="timeRange" label="起止日期" width="180" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="dataTotal" label="数据总量" width="100" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="dataSize" label="数据大小" width="100" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
@ -251,7 +247,19 @@ export default { |
|
|
|
|
}, |
|
|
|
|
getData(){ |
|
|
|
|
this.$post(`${this.api.getIdQueryTable}?categoryId=${this.categoryId}&showName=${this.keyword}&pageNum=${this.page}&pageSize=${this.pageSize}&updateTime=${this.updateTime ? this.updateTime : ''}`).then(res => { |
|
|
|
|
this.listData = res.pageList.records |
|
|
|
|
const list = res.pageList.records |
|
|
|
|
list.map(e => { |
|
|
|
|
const startTime = e.startTime ? e.startTime.slice(0, 10) : '' |
|
|
|
|
const endTime = e.endTime ? e.endTime.slice(0, 10) : '' |
|
|
|
|
if (startTime && endTime) { |
|
|
|
|
e.timeRange = startTime + ' ~ ' + endTime |
|
|
|
|
} else if (startTime) { |
|
|
|
|
e.timeRange = startTime |
|
|
|
|
} else if (endTime) { |
|
|
|
|
e.timeRange = e.endTime |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.listData = list |
|
|
|
|
this.total = res.pageList.total |
|
|
|
|
}).catch(res => {}) |
|
|
|
|
}, |
|
|
|
|