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
e4083d1b
Commit
e4083d1b
authored
Mar 11, 2020
by
李志鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fea(报工点查询): 功能联调(100%)
parent
41310379
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
1 deletion
+34
-1
list.vue
src/views/DutyStation/list.vue
+34
-1
No files found.
src/views/DutyStation/list.vue
View file @
e4083d1b
...
...
@@ -137,7 +137,31 @@
}
},
// 点击刷新按钮
doRefreshClick
()
{},
async
doRefreshClick
()
{
try
{
let
params
=
{
searchCode
:
this
.
searchList
.
searchCode
||
'PASS_INFO'
,
filters
:
this
.
searchList
.
filters
||
[],
pageSize
:
this
.
tableConfig
.
paginationConfig
.
pageSize
,
pageNum
:
this
.
tableConfig
.
paginationConfig
.
currentPage
};
if
(
this
.
searchList
.
filters
)
{
for
(
let
i
=
0
,
item
=
this
.
searchList
.
filters
;
i
<
item
.
length
;
i
++
)
{
if
(
item
[
i
].
fieldCode
===
'scanType'
)
{
params
.
scanType
=
item
[
i
].
value
;
params
.
filters
.
splice
(
i
,
1
);
break
;
}
}
}
let
response
=
await
this
.
$service
(
'POST'
,
'/pass/findPassInfoBySearchCode'
,
params
);
this
.
tableConfig
.
data
=
_
.
cloneDeep
(
response
.
list
);
this
.
tableConfig
.
paginationConfig
.
total
=
_
.
cloneDeep
(
response
.
total
);
this
.
$message
.
success
(
'刷新成功'
);
}
catch
(
error
)
{
throw
error
;
}
},
// 点击搜索按钮
doSearchClick
(
searchValue
)
{
this
.
searchList
=
searchValue
;
...
...
@@ -175,6 +199,15 @@
pageSize
:
this
.
tableConfig
.
paginationConfig
.
pageSize
,
pageNum
:
this
.
tableConfig
.
paginationConfig
.
currentPage
};
if
(
this
.
searchList
.
filters
)
{
for
(
let
i
=
0
,
item
=
this
.
searchList
.
filters
;
i
<
item
.
length
;
i
++
)
{
if
(
item
[
i
].
fieldCode
===
'scanType'
)
{
params
.
scanType
=
item
[
i
].
value
;
params
.
filters
.
splice
(
i
,
1
);
break
;
}
}
}
let
response
=
await
this
.
$service
(
'POST'
,
'/pass/findPassInfoBySearchCode'
,
params
);
this
.
tableConfig
.
data
=
_
.
cloneDeep
(
response
.
list
);
this
.
tableConfig
.
paginationConfig
.
total
=
_
.
cloneDeep
(
response
.
total
);
...
...
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