Commit f0982b31 authored by 仇晓婷's avatar 仇晓婷

bom

parent 426fa66f
...@@ -139,7 +139,8 @@ export default { ...@@ -139,7 +139,8 @@ export default {
parents: { parents: {
id: Number, id: Number,
parentName: String, parentName: String,
ids: String ids: String,
bomId: Number
} }
}, },
mounted() { mounted() {
...@@ -150,9 +151,11 @@ export default { ...@@ -150,9 +151,11 @@ export default {
}, },
methods: { methods: {
init() { init() {
Api.alltree({ id: this.eid, levelId: this.parents.id }).then(r => { Api.alltree({ id: this.parents.bomId, levelId: this.parents.id }).then(
this.treeData = r.result; r => {
}); this.treeData = r.result;
}
);
}, },
add(row) { add(row) {
this.curId = row.id; this.curId = row.id;
......
...@@ -93,7 +93,8 @@ export default { ...@@ -93,7 +93,8 @@ export default {
parent: { parent: {
id: Number, id: Number,
parentName: String, parentName: String,
ids: String ids: String,
bomId:Number,
} }
}, },
data() { data() {
...@@ -303,6 +304,7 @@ export default { ...@@ -303,6 +304,7 @@ export default {
}, },
bom(row) { bom(row) {
this.curId = row.id; this.curId = row.id;
this.parent.bomId = row.bomId;
this.parent.id = row.levelId; this.parent.id = row.levelId;
this.parent.parentName = row.levelTitle; this.parent.parentName = row.levelTitle;
this.title = "BOM"; this.title = "BOM";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment