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

bom

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