Commit 99e54afc authored by 仇晓婷's avatar 仇晓婷

55

parent 7655afa7
......@@ -36,7 +36,7 @@
:mask-closable="false"
:fullscreen="fullscreen"
>
<component :is="detail" :eid="curId" @on-close="cancel" @on-ok="ok" :parents="parents" />
<component :is="detail" :eid="curId" @on-close="cancel" @on-ok="ok" :parents="parents" @on-oks="oks"/>
</Modal>
</div>
</template>
......@@ -52,7 +52,7 @@ export default {
detail: null,
curId: 0,
fullscreen: false,
bomId:0,
bomId: 0,
entity: {
id: "",
levelId: 0,
......@@ -228,7 +228,7 @@ export default {
},
edit(row) {
console.log(row);
this.bomId=row.upId
this.bomId = row.upId;
this.curId = row.bomId;
this.parents.id = row.levelId;
this.parents.parentName = row.levelTitle;
......@@ -272,8 +272,15 @@ 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.parents.bomId=this.bomId
this.init();
// this.load(this.eid);
this.modal = false;
......
......@@ -106,7 +106,7 @@ export default {
this.disabled = false;
if (r.success) {
this.$Message.success("保存成功");
this.$emit("on-ok");
this.$emit("on-oks");
} 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