Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
8d9738b9
Commit
8d9738b9
authored
Jul 02, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
youh
parent
fc247c82
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
productTree.vue
components/page/productTree.vue
+5
-2
index.vue
pages/mesPlan/index.vue
+1
-1
No files found.
components/page/productTree.vue
View file @
8d9738b9
...
...
@@ -91,23 +91,26 @@ export default {
change
(
v
,
b
)
{
// console.log(b);
let
ids
=
[];
let
productIds
=
[];
if
(
b
.
bomId
!==
0
)
{
ids
.
push
(
b
.
bomId
);
}
productIds
.
push
(
b
.
value
);
if
(
b
.
children
)
{
addId
(
b
.
children
);
addId
(
b
.
children
);
function
addId
(
data
)
{
data
.
map
(
u
=>
{
if
(
u
.
bomId
!==
0
)
{
ids
.
push
(
u
.
bomId
);
}
productIds
.
push
(
u
.
value
);
if
(
u
.
children
)
{
addId
(
u
.
children
);
}
});
}
}
this
.
$emit
(
"on-select"
,
b
.
bomId
,
b
,
ids
);
this
.
$emit
(
"on-select"
,
b
.
bomId
,
b
,
productIds
,
ids
);
},
hide
()
{
this
.
$emit
(
"on-hide"
);
...
...
pages/mesPlan/index.vue
View file @
8d9738b9
...
...
@@ -782,7 +782,7 @@ export default {
//this.$Message.info("展开左侧树")
this
.
showMenu
=
true
;
},
productSearch
(
id
,
item
,
ids
)
{
productSearch
(
id
,
item
,
productIds
,
ids
)
{
let
where
=
{
bomId
:
{
op
:
"In"
,
value
:
ids
}
};
this
.
$refs
.
grid
.
reload
(
where
);
},
...
...
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