Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-trialrun
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 763ba376
authored
Apr 19, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复分页
1 parent
ddd6e66e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
6 deletions
src/components/glsx-table/index.vue
src/views/alarmCenter/shutdown.vue
src/views/fence/index.vue
src/views/reportManage/mileageGeneral.vue
src/components/glsx-table/index.vue
View file @
763ba37
...
@@ -93,9 +93,13 @@ export default {
...
@@ -93,9 +93,13 @@ export default {
},
},
// 重置
// 重置
rest
()
{
rest
(
id
,
e
)
{
this
.
currentPage
=
1
;
if
(
id
)
{
this
.
pageSizeNum
=
10
;
this
[
id
]
=
e
;
}
else
{
this
.
currentPage
=
1
;
this
.
pageSizeNum
=
10
;
}
},
},
},
},
};
};
...
...
src/views/alarmCenter/shutdown.vue
View file @
763ba37
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
</el-popover>
</el-popover>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-search"
type=
"primary"
@
click=
"getList()"
>
搜索
</el-button>
<el-button
icon=
"el-icon-search"
type=
"primary"
@
click=
"getList(
1
)"
>
搜索
</el-button>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-refresh"
type=
"default"
@
click=
"rest()"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
type=
"default"
@
click=
"rest()"
>
重置
</el-button>
...
@@ -157,6 +157,9 @@ export default {
...
@@ -157,6 +157,9 @@ export default {
oParams
.
pageSize
=
this
.
pageSize
;
oParams
.
pageSize
=
this
.
pageSize
;
oParams
.
pageNumber
=
current
||
this
.
currentPage
;
oParams
.
pageNumber
=
current
||
this
.
currentPage
;
this
.
tloading
=
true
;
this
.
tloading
=
true
;
if
(
current
){
this
.
currentPage
=
current
}
GET_ALARM_SHUTDOWN
(
oParams
).
then
((
res
)
=>
{
GET_ALARM_SHUTDOWN
(
oParams
).
then
((
res
)
=>
{
this
.
tloading
=
false
;
this
.
tloading
=
false
;
let
obj
=
res
.
data
||
{};
let
obj
=
res
.
data
||
{};
...
...
src/views/fence/index.vue
View file @
763ba37
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"getList()"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"getList()"
>
搜索
</el-button>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-refresh"
@
click=
"rest()"
>
重置
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-refresh"
@
click=
"rest()"
>
重置
</el-button>
...
@@ -153,6 +153,9 @@ export default {
...
@@ -153,6 +153,9 @@ export default {
oParams
.
pageSize
=
this
.
pageSize
;
oParams
.
pageSize
=
this
.
pageSize
;
oParams
.
pageNumber
=
current
||
1
;
oParams
.
pageNumber
=
current
||
1
;
this
.
loading
=
true
;
this
.
loading
=
true
;
if
(
current
){
this
.
pageNumber
=
current
}
GET_FENCE_LIST
(
oParams
)
GET_FENCE_LIST
(
oParams
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
...
...
src/views/reportManage/mileageGeneral.vue
View file @
763ba37
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</el-popover>
</el-popover>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"
getList
"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"
searchEvent()
"
>
搜索
</el-button>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"rest()"
>
重置
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"rest()"
>
重置
</el-button>
...
@@ -190,6 +190,12 @@ export default {
...
@@ -190,6 +190,12 @@ export default {
return
oParams
;
return
oParams
;
},
},
// 搜索
searchEvent
(){
this
.
$refs
.
glsxTable
.
rest
(
'currentPage'
,
1
);
this
.
getList
()
},
// 获取列表
// 获取列表
getList
(
options
)
{
getList
(
options
)
{
let
oParams
=
this
.
getParams
();
let
oParams
=
this
.
getParams
();
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment