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
4bec0907
Commit
4bec0907
authored
Feb 06, 2023
by
WangRui
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feature]关联项目列表用户搜索查询调整
parent
e7cacde4
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 @
4bec0907
...
...
@@ -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
=>
({
...
...
WangRui
@13519535693
mentioned in commit
5f88d622
·
Feb 07, 2023
mentioned in commit
5f88d622
mentioned in commit 5f88d622bf699c7bb55d1a90683cb7e89c81ec51
Toggle commit list
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