Commit 4b3130c2 authored by 李志鸣's avatar 李志鸣

fix(设备运行时间、设备故障/报警记录): bug修复

parent b8d852f4
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
this.searchList = searchValue this.searchList = searchValue
this.tableConfig.paginationConfig.currentPage = 1 this.tableConfig.paginationConfig.currentPage = 1
// 获取表格数据 // 获取表格数据
this.getTableLIst() this.getTableList()
}, },
// 点击搜索组件重置按钮 // 点击搜索组件重置按钮
doResetClick (searchValue) { doResetClick (searchValue) {
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
this.tableConfig.paginationConfig.currentPage = 1 this.tableConfig.paginationConfig.currentPage = 1
this.tableConfig.paginationConfig.pageSize = 20 this.tableConfig.paginationConfig.pageSize = 20
// 获取表格数据 // 获取表格数据
this.getTableLIst() this.getTableList()
}, },
// 获取表格数据 // 获取表格数据
getTableList () { getTableList () {
...@@ -136,13 +136,13 @@ ...@@ -136,13 +136,13 @@
this.tableConfig.paginationConfig.currentPage = 1 this.tableConfig.paginationConfig.currentPage = 1
this.tableConfig.paginationConfig.pageSize = pageSize this.tableConfig.paginationConfig.pageSize = pageSize
// 获取表格数据 // 获取表格数据
this.getTableLIst() this.getTableList()
}, },
// 当前分页页数发生了变化 // 当前分页页数发生了变化
onCurrentChange (currentPage) { onCurrentChange (currentPage) {
this.tableConfig.paginationConfig.currentPage = currentPage this.tableConfig.paginationConfig.currentPage = currentPage
// 获取表格数据 // 获取表格数据
this.getTableLIst() this.getTableList()
} }
}, },
mounted () { mounted () {
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
// 点击刷新按钮 // 点击刷新按钮
doRefreshClick () { doRefreshClick () {
// 获取表格数据 // 获取表格数据
this.getTableLIst().then(response => { this.getTableList().then(response => {
this.$message.success('刷新成功!') this.$message.success('刷新成功!')
}) })
}, },
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
this.searchList = searchValue this.searchList = searchValue
this.tableConfig.paginationConfig.currentPage = 1 this.tableConfig.paginationConfig.currentPage = 1
// 获取表格数据 // 获取表格数据
this.getTableLIst() this.getTableList()
}, },
// 点击搜索组件重置按钮 // 点击搜索组件重置按钮
doResetClick (searchValue) { doResetClick (searchValue) {
...@@ -85,10 +85,10 @@ ...@@ -85,10 +85,10 @@
this.tableConfig.paginationConfig.currentPage = 1 this.tableConfig.paginationConfig.currentPage = 1
this.tableConfig.paginationConfig.pageSize = 20 this.tableConfig.paginationConfig.pageSize = 20
// 获取表格数据 // 获取表格数据
this.getTableLIst() this.getTableList()
}, },
// 获取表格数据 // 获取表格数据
getTableLIst () { getTableList () {
let queryParams = { let queryParams = {
searchCode: this.searchList.searchCode || 'MACHINE_RUNTIME_RECORD', searchCode: this.searchList.searchCode || 'MACHINE_RUNTIME_RECORD',
filters: this.searchList.filters || [], filters: this.searchList.filters || [],
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
if (response.list.length === 0 && response.pageNum !== 1) { if (response.list.length === 0 && response.pageNum !== 1) {
this.tableConfig.paginationConfig.currentPage -= 1 this.tableConfig.paginationConfig.currentPage -= 1
// 获取表格数据 // 获取表格数据
this.getTableLIst() this.getTableList()
} else { } else {
this.tableConfig.data = _.cloneDeep(response.list) this.tableConfig.data = _.cloneDeep(response.list)
this.tableConfig.paginationConfig.total = _.cloneDeep(response.total) this.tableConfig.paginationConfig.total = _.cloneDeep(response.total)
...@@ -116,20 +116,20 @@ ...@@ -116,20 +116,20 @@
this.tableConfig.paginationConfig.currentPage = 1 this.tableConfig.paginationConfig.currentPage = 1
this.tableConfig.paginationConfig.pageSize = pageSize this.tableConfig.paginationConfig.pageSize = pageSize
// 获取表格数据 // 获取表格数据
this.getTableLIst() this.getTableList()
}, },
// 当前分页页数发生了变化 // 当前分页页数发生了变化
onCurrentChange (currentPage) { onCurrentChange (currentPage) {
this.tableConfig.paginationConfig.currentPage = currentPage this.tableConfig.paginationConfig.currentPage = currentPage
// 获取表格数据 // 获取表格数据
this.getTableLIst() this.getTableList()
} }
}, },
mounted () { mounted () {
setTimeout(() => { setTimeout(() => {
this.tableConfig.height = document.querySelector('.page-pack').offsetHeight - 180 this.tableConfig.height = document.querySelector('.page-pack').offsetHeight - 180
// 获取表格数据 // 获取表格数据
this.getTableLIst() this.getTableList()
}, 0) }, 0)
} }
} }
......
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