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

产品优化

parent c470c961
......@@ -104,7 +104,12 @@ export default {
};
},
props: {
eid: Number
eid: Number,
parent: {
id: Number,
parentName: String,
ids: String
}
},
mounted() {
if (this.eid > 0) {
......@@ -114,7 +119,7 @@ export default {
},
methods: {
init() {
Api.alltree({ id: this.eid }).then(r => {
Api.alltree({ id: this.eid, levelId: this.parent.id }).then(r => {
this.treeData = r.result;
});
},
......@@ -158,7 +163,6 @@ export default {
},
ok() {
this.init();
// this.load(this.eid);
this.modal = false;
this.curId = 0;
},
......
......@@ -112,7 +112,7 @@ export default {
this.disabled = false;
if (r.success) {
this.$Message.success("保存成功");
this.$emit("on-ok");
this.$emit("on-ok");
} else {
this.$Message.error("保存失败");
}
......
......@@ -292,6 +292,7 @@ export default {
},
bom(id) {
this.curId = id;
this.title = "BOM";
this.detail = () => import("./bom");
this.modal = true;
......
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