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

55

parent 7655afa7
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
:mask-closable="false" :mask-closable="false"
:fullscreen="fullscreen" :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> </Modal>
</div> </div>
</template> </template>
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
detail: null, detail: null,
curId: 0, curId: 0,
fullscreen: false, fullscreen: false,
bomId:0, bomId: 0,
entity: { entity: {
id: "", id: "",
levelId: 0, levelId: 0,
...@@ -228,7 +228,7 @@ export default { ...@@ -228,7 +228,7 @@ export default {
}, },
edit(row) { edit(row) {
console.log(row); console.log(row);
this.bomId=row.upId this.bomId = row.upId;
this.curId = row.bomId; this.curId = row.bomId;
this.parents.id = row.levelId; this.parents.id = row.levelId;
this.parents.parentName = row.levelTitle; this.parents.parentName = row.levelTitle;
...@@ -272,8 +272,15 @@ export default { ...@@ -272,8 +272,15 @@ export default {
clickData(data) { clickData(data) {
window.open(data, "_blank"); window.open(data, "_blank");
}, },
oks() {
this.parents.bomId = this.bomId;
this.init();
// this.load(this.eid);
this.modal = false;
this.curId = 0;
},
ok() { ok() {
this.parents.bomId=this.bomId // this.parents.bomId=this.bomId
this.init(); this.init();
// this.load(this.eid); // this.load(this.eid);
this.modal = false; this.modal = false;
......
...@@ -106,7 +106,7 @@ export default { ...@@ -106,7 +106,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-oks");
} else { } else {
this.$Message.error("保存失败"); 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