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

产品优化

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