Commit c85aa7e3 by 蒋勇

d

parent f5c019ae
...@@ -248,12 +248,13 @@ export default { ...@@ -248,12 +248,13 @@ export default {
setTimeout(() => { setTimeout(() => {
this.$refs.edform.formModel = this.deepclone(row) this.$refs.edform.formModel = this.deepclone(row)
this.$refs.edform.activeChildTables() this.$refs.edform.activeChildTables(false)
}, 100); }, 100);
} }
if (key == "create") { if (key == "create") {
this.fm_status = "create"; this.fm_status = "create";
this.showedform = true; this.showedform = true;
this.$refs.edform.activeChildTables(true)
} }
if (key == "save") { if (key == "save") {
if (this.clickcount["save"] == 0) { if (this.clickcount["save"] == 0) {
......
...@@ -216,9 +216,9 @@ export default { ...@@ -216,9 +216,9 @@ export default {
} }
}, },
methods: { methods: {
activeChildTables(){ activeChildTables(vf){
Object.keys(this.tabDisabled).forEach(k=>{ Object.keys(this.tabDisabled).forEach(k=>{
this.tabDisabled[k]=false this.tabDisabled[k]=vf==false?vf:true
}) })
}, },
resetForm() { resetForm() {
......
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