Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhongtong-avi-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
中通客车项目
zhongtong-avi-web
Commits
4b3130c2
Commit
4b3130c2
authored
Oct 12, 2019
by
李志鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(设备运行时间、设备故障/报警记录): bug修复
parent
b8d852f4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
list.vue
src/views/DeviceRunning/DeviceFaultRecord/list.vue
+4
-4
list.vue
src/views/DeviceRunning/DeviceRunningTime/list.vue
+8
-8
No files found.
src/views/DeviceRunning/DeviceFaultRecord/list.vue
View file @
4b3130c2
...
...
@@ -97,7 +97,7 @@
this
.
searchList
=
searchValue
this
.
tableConfig
.
paginationConfig
.
currentPage
=
1
// 获取表格数据
this
.
getTableL
I
st
()
this
.
getTableL
i
st
()
},
// 点击搜索组件重置按钮
doResetClick
(
searchValue
)
{
...
...
@@ -105,7 +105,7 @@
this
.
tableConfig
.
paginationConfig
.
currentPage
=
1
this
.
tableConfig
.
paginationConfig
.
pageSize
=
20
// 获取表格数据
this
.
getTableL
I
st
()
this
.
getTableL
i
st
()
},
// 获取表格数据
getTableList
()
{
...
...
@@ -136,13 +136,13 @@
this
.
tableConfig
.
paginationConfig
.
currentPage
=
1
this
.
tableConfig
.
paginationConfig
.
pageSize
=
pageSize
// 获取表格数据
this
.
getTableL
I
st
()
this
.
getTableL
i
st
()
},
// 当前分页页数发生了变化
onCurrentChange
(
currentPage
)
{
this
.
tableConfig
.
paginationConfig
.
currentPage
=
currentPage
// 获取表格数据
this
.
getTableL
I
st
()
this
.
getTableL
i
st
()
}
},
mounted
()
{
...
...
src/views/DeviceRunning/DeviceRunningTime/list.vue
View file @
4b3130c2
...
...
@@ -68,7 +68,7 @@
// 点击刷新按钮
doRefreshClick
()
{
// 获取表格数据
this
.
getTableL
I
st
().
then
(
response
=>
{
this
.
getTableL
i
st
().
then
(
response
=>
{
this
.
$message
.
success
(
'刷新成功!'
)
})
},
...
...
@@ -77,7 +77,7 @@
this
.
searchList
=
searchValue
this
.
tableConfig
.
paginationConfig
.
currentPage
=
1
// 获取表格数据
this
.
getTableL
I
st
()
this
.
getTableL
i
st
()
},
// 点击搜索组件重置按钮
doResetClick
(
searchValue
)
{
...
...
@@ -85,10 +85,10 @@
this
.
tableConfig
.
paginationConfig
.
currentPage
=
1
this
.
tableConfig
.
paginationConfig
.
pageSize
=
20
// 获取表格数据
this
.
getTableL
I
st
()
this
.
getTableL
i
st
()
},
// 获取表格数据
getTableL
I
st
()
{
getTableL
i
st
()
{
let
queryParams
=
{
searchCode
:
this
.
searchList
.
searchCode
||
'MACHINE_RUNTIME_RECORD'
,
filters
:
this
.
searchList
.
filters
||
[],
...
...
@@ -100,7 +100,7 @@
if
(
response
.
list
.
length
===
0
&&
response
.
pageNum
!==
1
)
{
this
.
tableConfig
.
paginationConfig
.
currentPage
-=
1
// 获取表格数据
this
.
getTableL
I
st
()
this
.
getTableL
i
st
()
}
else
{
this
.
tableConfig
.
data
=
_
.
cloneDeep
(
response
.
list
)
this
.
tableConfig
.
paginationConfig
.
total
=
_
.
cloneDeep
(
response
.
total
)
...
...
@@ -116,20 +116,20 @@
this
.
tableConfig
.
paginationConfig
.
currentPage
=
1
this
.
tableConfig
.
paginationConfig
.
pageSize
=
pageSize
// 获取表格数据
this
.
getTableL
I
st
()
this
.
getTableL
i
st
()
},
// 当前分页页数发生了变化
onCurrentChange
(
currentPage
)
{
this
.
tableConfig
.
paginationConfig
.
currentPage
=
currentPage
// 获取表格数据
this
.
getTableL
I
st
()
this
.
getTableL
i
st
()
}
},
mounted
()
{
setTimeout
(()
=>
{
this
.
tableConfig
.
height
=
document
.
querySelector
(
'.page-pack'
).
offsetHeight
-
180
// 获取表格数据
this
.
getTableL
I
st
()
this
.
getTableL
i
st
()
},
0
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment