Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
komatsu-lease-app
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
komatsu
komatsu-lease-app
Commits
7bdd091c
Commit
7bdd091c
authored
Feb 06, 2023
by
WangRui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feature]接口调整--项目查询列表根据用户输入进行查询
parent
5f88d622
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
index.vue
src/modules/projectList/views/index.vue
+10
-4
No files found.
src/modules/projectList/views/index.vue
View file @
7bdd091c
...
...
@@ -3,7 +3,7 @@
<NavBar
title=
"项目查询"
left-arrow
@
click-left=
"goBack"
/>
<section
class=
"list"
>
<Search
v-model=
"value"
placeholder=
"请输入项目编号/机型/代理店"
/>
<Search
v-model=
"value"
placeholder=
"请输入项目编号/机型/代理店"
@
search=
"onSearch"
/>
<Notice
detail=
"只对已关联的项目进行查询"
/>
<PullRefresh
v-model=
"refreshing"
@
refresh=
"getList"
class=
"scroll"
>
<List
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"loadApproval"
>
...
...
@@ -38,13 +38,19 @@ const formStore = useProjectList()
let
refreshing
=
$ref
(
true
);
const
finished
=
$ref
(
true
);
const
value
=
$ref
(
''
);
let
listValue
=
$ref
([]);
const
onSearch
=
(
value
)
=>
{
const
param
=
{
query
:
value
}
getList
(
param
)
}
const
getList
=
async
()
=>
{
const
getList
=
async
(
param
)
=>
{
// 下拉重置参数,重新加载
let
res
=
await
api
.
getProjectList
({
userId
:
window
.
localStorage
.
getItem
(
'userId'
)});
let
res
=
await
api
.
getProjectList
({
userId
:
window
.
localStorage
.
getItem
(
'userId'
)
,
...
param
});
let
list
=
[]
if
(
res
.
success
){
list
=
res
.
rows
.
map
(
item
=>
({
...
...
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