Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
Overview
Details
Activity
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
office
haoban-4
Commits
576e342b
Commit
576e342b
authored
Sep 11, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改选择门店数据
parent
06e3fa74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
customer-store.vue
src/components/app/my-customer/customer-store.vue
+5
-6
No files found.
src/components/app/my-customer/customer-store.vue
View file @
576e342b
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-08-28 15:24:42
* @Date: 2020-08-28 15:24:42
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-09-11 15:
48:20
* @LastEditTime: 2020-09-11 15:
57:27
-->
-->
<!--
<!--
<customer-store :brand-id="brandId" :select-store="selectStore" @checkStoreIds="checkStoreIds"></customer-store>
<customer-store :brand-id="brandId" :select-store="selectStore" @checkStoreIds="checkStoreIds"></customer-store>
...
@@ -61,7 +61,7 @@ export default {
...
@@ -61,7 +61,7 @@ export default {
isIndeterminate
:
false
,
isIndeterminate
:
false
,
searchSelect
:
''
,
// 搜索字段
searchSelect
:
''
,
// 搜索字段
stores
:
[],
// 门店列表集合
stores
:
[],
// 门店列表集合
storesCopy
:
[],
storesCopy
:
[],
// 最后保存值用
dailyRuleForm
:
{
dailyRuleForm
:
{
stores
:
[],
// 已选门店id结果集
stores
:
[],
// 已选门店id结果集
},
},
...
@@ -93,12 +93,11 @@ export default {
...
@@ -93,12 +93,11 @@ export default {
handleStoresChange
(
value
)
{
handleStoresChange
(
value
)
{
const
that
=
this
;
const
that
=
this
;
let
arr
=
[];
let
arr
=
[];
that
.
stores
.
forEach
(
ele
=>
{
that
.
stores
Copy
.
forEach
(
ele
=>
{
if
(
value
.
includes
(
ele
.
storeInfoId
))
{
if
(
value
.
includes
(
ele
.
storeInfoId
))
{
arr
.
push
(
ele
);
arr
.
push
(
ele
);
}
}
});
});
localStorage
.
setItem
(
'stores'
,
value
);
that
.
$emit
(
'checkStoreIds'
,
JSON
.
parse
(
JSON
.
stringify
(
arr
)));
that
.
$emit
(
'checkStoreIds'
,
JSON
.
parse
(
JSON
.
stringify
(
arr
)));
},
},
/**
/**
...
@@ -145,11 +144,11 @@ export default {
...
@@ -145,11 +144,11 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
that
.
pageNum
==
1
)
{
if
(
that
.
pageNum
==
1
)
{
that
.
stores
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
result
.
result
))
||
[];
that
.
stores
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
result
.
result
))
||
[];
that
.
s
toresCopy
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
result
.
result
))
||
[]
;
that
.
s
earchSelect
===
''
?
that
.
storesCopy
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
result
.
result
))
||
[]
:
''
;
}
else
{
}
else
{
res
.
result
.
result
.
forEach
(
ele
=>
{
res
.
result
.
result
.
forEach
(
ele
=>
{
that
.
stores
.
push
(
ele
);
that
.
stores
.
push
(
ele
);
that
.
s
toresCopy
.
push
(
ele
)
;
that
.
s
earchSelect
===
''
?
that
.
storesCopy
.
push
(
ele
)
:
''
;
});
});
}
}
if
(
that
.
pageNum
*
that
.
pageSize
<
res
.
result
.
totalCount
)
{
if
(
that
.
pageNum
*
that
.
pageSize
<
res
.
result
.
totalCount
)
{
...
...
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