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
90056617
Commit
90056617
authored
Sep 16, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改分配
parent
bd294695
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
customer-assign.vue
src/views/apps/customer-app/customer-assign.vue
+8
-8
No files found.
src/views/apps/customer-app/customer-assign.vue
View file @
90056617
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-09-1
4 09:20:59
* @LastEditTime: 2020-09-1
6 15:03:33
-->
<
template
>
<div
class=
"customer-assign-wrap"
>
...
...
@@ -281,9 +281,9 @@ export default {
async
setParent
(
obj
,
copyData
)
{
const
that
=
this
;
for
(
let
i
=
0
;
i
<
copyData
.
length
;
i
++
)
{
if
(
obj
.
parentGroupId
==
copyData
[
i
].
storeGroupId
)
{
if
(
obj
.
parent
Store
GroupId
==
copyData
[
i
].
storeGroupId
)
{
copyData
[
i
].
expand
=
true
;
if
(
copyData
[
i
].
parentGroupId
!=
0
)
{
if
(
copyData
[
i
].
parent
Store
GroupId
!=
0
)
{
await
that
.
setParent
(
copyData
[
i
],
copyData
);
}
}
...
...
@@ -304,9 +304,9 @@ export default {
// 重新组装树形部门
let
copyData
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
gicDataCopy
));
for
(
let
i
=
0
;
i
<
copyData
.
length
;
i
++
)
{
if
(
that
.
departObj
.
parentGroupId
==
copyData
[
i
].
storeGroupId
)
{
if
(
that
.
departObj
.
parent
Store
GroupId
==
copyData
[
i
].
storeGroupId
)
{
copyData
[
i
].
expand
=
true
;
if
(
copyData
[
i
].
parentGroupId
!=
0
)
{
if
(
copyData
[
i
].
parent
Store
GroupId
!=
0
)
{
await
that
.
setParent
(
copyData
[
i
],
copyData
);
}
}
...
...
@@ -501,7 +501,7 @@ export default {
let
tree
=
data
.
filter
(
father
=>
{
// 循环所有项
let
branchArr
=
data
.
filter
(
child
=>
{
return
father
.
storeGroupId
==
child
.
parentGroupId
;
// 返回每一项的子级数组
return
father
.
storeGroupId
==
child
.
parent
Store
GroupId
;
// 返回每一项的子级数组
});
if
(
branchArr
.
length
>
0
)
{
father
.
hasSonNode
=
true
;
...
...
@@ -510,7 +510,7 @@ export default {
father
.
hasSonNode
=
false
;
father
.
children
=
[];
}
return
father
.
parentGroupId
==
0
;
// 返回第一层
return
father
.
parent
Store
GroupId
==
0
;
// 返回第一层
});
return
tree
;
},
...
...
@@ -532,7 +532,7 @@ export default {
ele
.
expand
=
false
;
ele
.
children
=
[];
ele
.
label
=
ele
.
storeGroupName
;
if
(
ele
.
parentGroupId
==
0
)
{
if
(
ele
.
parent
Store
GroupId
==
0
)
{
ele
.
expand
=
true
;
that
.
departObj
=
ele
;
}
...
...
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