<!-- 分页 -->
|
85
|
|
<t-pager :total="total" :current="page" show-elevator class="pager" @on-change="onChange"></t-pager>
|
|
85
|
<t-pager :total="total" :current="page" :page-size="limit" show-elevator class="pager" @on-change="onChange"></t-pager>
|
86
|
86
|
|
87
|
87
|
<!-- 模态框-->
|
88
|
88
|
<t-modal :visibled.sync="details_modal" :title="clickdetail==0?'报警详情':'报警处理'" width="732px">
|
|
@ -390,8 +390,9 @@ export default {
|
390
|
390
|
this.data = res.data.data.data
|
391
|
391
|
this.data = this.data.map((item) => { item.aiIdenTime = formatDateTime(item.aiIdenTime); return item })
|
392
|
392
|
console.log(this.data)
|
393
|
|
|
394
|
|
this.total = Math.ceil(res.data.data.total / res.data.data.size) * 5
|
|
393
|
console.log('数据是', res)
|
|
394
|
// this.total = Math.ceil(res.data.data.total / res.data.data.size) * 5
|
|
395
|
this.total = res.data.data.total
|
395
|
396
|
} else {
|
396
|
397
|
this.$Message.danger('数据获取失败')
|
397
|
398
|
}
|