Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
上
上药订单生命周期升级
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
sph
上药订单生命周期升级
Commits
5f3d62d9
Commit
5f3d62d9
authored
Mar 29, 2021
by
xiejb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
高级搜索 获取货主 全选逻辑
parent
717e2232
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
src/components/SearchInConsignor.vue
src/components/SearchInConsignor.vue
+18
-6
No files found.
src/components/SearchInConsignor.vue
View file @
5f3d62d9
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</van-search>
</van-search>
<div
class=
"search"
>
<div
class=
"search"
>
<search-result
:result-num=
"searchNum"
></search-result>
<search-result
:result-num=
"searchNum"
></search-result>
<van-checkbox
class=
""
@
click=
"allItemClick()"
v-model=
"
a
llChecked"
>
全选
</van-checkbox>
<van-checkbox
class=
""
@
click=
"allItemClick()"
v-model=
"
isA
llChecked"
>
全选
</van-checkbox>
</div>
</div>
<div
class=
"w100 listHeight"
ref=
"scrollRef"
>
<div
class=
"w100 listHeight"
ref=
"scrollRef"
>
<van-pull-refresh
<van-pull-refresh
...
@@ -86,12 +86,19 @@ export default {
...
@@ -86,12 +86,19 @@ export default {
checked
:
''
,
checked
:
''
,
checkedList
:
[],
checkedList
:
[],
choosedPost
:
[],
choosedPost
:
[],
a
llChecked
:
false
isA
llChecked
:
false
}
}
},
},
computed
:
{
computed
:
{
linkInfo
()
{
linkInfo
()
{
return
this
.
$store
.
state
.
linkInfo
return
this
.
$store
.
state
.
linkInfo
},
allChecked
()
{
if
(
this
.
choosedPost
.
length
===
this
.
postDataList
.
length
)
{
this
.
isAllChecked
=
true
}
else
{
this
.
isAllChecked
=
false
}
}
}
},
},
props
:
{
props
:
{
...
@@ -142,7 +149,7 @@ export default {
...
@@ -142,7 +149,7 @@ export default {
const
companyList
=
[]
const
companyList
=
[]
this
.
checkedList
=
[]
this
.
checkedList
=
[]
this
.
choosedPost
=
[]
this
.
choosedPost
=
[]
if
(
this
.
a
llChecked
)
{
if
(
this
.
isA
llChecked
)
{
this
.
postDataList
.
forEach
(
item
=>
{
this
.
postDataList
.
forEach
(
item
=>
{
// console.log(item)
// console.log(item)
const
model
=
item
const
model
=
item
...
@@ -199,7 +206,12 @@ export default {
...
@@ -199,7 +206,12 @@ export default {
}
else
{
}
else
{
this
.
checkedList
.
push
(
item
.
id
)
this
.
checkedList
.
push
(
item
.
id
)
this
.
choosedPost
.
push
(
item
)
this
.
choosedPost
.
push
(
item
)
}
}
if
(
this
.
choosedPost
.
length
===
this
.
postDataList
.
length
)
{
this
.
isAllChecked
=
true
}
else
{
this
.
isAllChecked
=
false
}
},
},
onRefresh
()
{
onRefresh
()
{
// 刷新接口
// 刷新接口
...
@@ -217,14 +229,14 @@ export default {
...
@@ -217,14 +229,14 @@ export default {
let
_this
=
this
let
_this
=
this
let
data
=
{
let
data
=
{
'
attr
'
:
{
'
attr
'
:
{
'
empid
'
:
this
.
linkInfo
.
userId
'
empid
'
:
_
this
.
linkInfo
.
userId
},
},
'
filters
'
:
[
'
filters
'
:
[
{
{
key
:
'
companyname
'
,
key
:
'
companyname
'
,
opt
:
'
LIKE
'
,
opt
:
'
LIKE
'
,
type
:
'
S
'
,
type
:
'
S
'
,
value
:
this
.
keywords
value
:
_
this
.
keywords
}
}
],
],
'
logic
'
:
'
or
'
,
'
logic
'
:
'
or
'
,
...
...
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