Commit 815ac416 authored by 仇晓婷's avatar 仇晓婷

bom

parent db9e2f50
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
name: "", name: "",
field: "" field: ""
}, },
treeData: [{ name: "112" }], treeData: [],
columns: [ columns: [
{ {
key: "name", key: "name",
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
}, },
props: { props: {
eid: Number, eid: Number,
parent: { parents: {
id: Number, id: Number,
parentName: String, parentName: String,
ids: String ids: String
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
}, },
methods: { methods: {
init() { init() {
Api.alltree({ id: this.eid, levelId: this.parent.id }).then(r => { Api.alltree({ id: this.eid, levelId: this.parents.id }).then(r => {
this.treeData = r.result; this.treeData = r.result;
}); });
}, },
...@@ -163,6 +163,7 @@ export default { ...@@ -163,6 +163,7 @@ export default {
}, },
ok() { ok() {
this.init(); this.init();
// this.load(this.eid);
this.modal = false; this.modal = false;
this.curId = 0; this.curId = 0;
}, },
...@@ -179,6 +180,7 @@ export default { ...@@ -179,6 +180,7 @@ export default {
eid(v) { eid(v) {
if (v != 0) { if (v != 0) {
this.load(v); this.load(v);
this.init();
} }
} }
} }
......
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