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

bom

parent 426fa66f
......@@ -139,7 +139,8 @@ export default {
parents: {
id: Number,
parentName: String,
ids: String
ids: String,
bomId: Number
}
},
mounted() {
......@@ -150,9 +151,11 @@ export default {
},
methods: {
init() {
Api.alltree({ id: this.eid, levelId: this.parents.id }).then(r => {
this.treeData = r.result;
});
Api.alltree({ id: this.parents.bomId, levelId: this.parents.id }).then(
r => {
this.treeData = r.result;
}
);
},
add(row) {
this.curId = row.id;
......
......@@ -93,7 +93,8 @@ export default {
parent: {
id: Number,
parentName: String,
ids: String
ids: String,
bomId:Number,
}
},
data() {
......@@ -303,6 +304,7 @@ export default {
},
bom(row) {
this.curId = row.id;
this.parent.bomId = row.bomId;
this.parent.id = row.levelId;
this.parent.parentName = row.levelTitle;
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