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

dd

parent 99e54afc
......@@ -36,7 +36,7 @@
:mask-closable="false"
:fullscreen="fullscreen"
>
<component :is="detail" :eid="curId" @on-close="cancel" @on-ok="ok" :parents="parents" @on-oks="oks"/>
<component :is="detail" :eid="curId" @on-close="cancel" @on-ok="ok" :parents="parents" />
</Modal>
</div>
</template>
......@@ -186,7 +186,6 @@ export default {
if (this.eid > 0) {
this.load(this.eid);
}
this.init();
},
methods: {
details(row) {
......@@ -199,11 +198,9 @@ export default {
this.modal = true;
},
init() {
Api.alltree({ id: this.parents.bomId, levelId: this.parents.id }).then(
r => {
Api.alltree({ id: this.bomId, levelId: this.parents.id }).then(r => {
this.treeData = r.result;
}
);
});
},
add(row) {
this.curId = row.id;
......@@ -227,8 +224,6 @@ export default {
this.modal = true;
},
edit(row) {
console.log(row);
this.bomId = row.upId;
this.curId = row.bomId;
this.parents.id = row.levelId;
this.parents.parentName = row.levelTitle;
......@@ -259,6 +254,8 @@ export default {
this.entity.version = parseInt(r.result.version);
this.parms.eid = r.result.productUrlList;
this.$emit("on-load");
this.bomId = r.result.bomId;
this.init();
});
},
seeImg(url) {
......@@ -272,17 +269,9 @@ export default {
clickData(data) {
window.open(data, "_blank");
},
oks() {
this.parents.bomId = this.bomId;
this.init();
// this.load(this.eid);
this.modal = false;
this.curId = 0;
},
ok() {
// this.parents.bomId=this.bomId
this.init();
// this.load(this.eid);
this.modal = false;
this.curId = 0;
},
......@@ -299,7 +288,6 @@ export default {
eid(v) {
if (v != 0) {
this.load(v);
this.init();
}
}
}
......
......@@ -106,7 +106,7 @@ export default {
this.disabled = false;
if (r.success) {
this.$Message.success("保存成功");
this.$emit("on-oks");
this.$emit("on-ok");
} else {
this.$Message.error("保存失败");
}
......
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