From 9bb699434d4e1de264284606499d8630dcc6cdf4 Mon Sep 17 00:00:00 2001 From: gongzijian Date: Thu, 23 May 2019 10:33:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=BE=E7=BD=AEdag=20udp?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E7=82=B9=E5=8F=96=E6=B6=88=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=9C=AA=E4=BF=9D=E5=AD=98=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/conf/home/pages/dag/_source/dag.vue | 4 ++-- .../conf/home/pages/dag/_source/udp/udp.vue | 20 +++++++++++++------ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/escheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue b/escheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue index 990b9bc0ab..989ec166dd 100644 --- a/escheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue +++ b/escheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue @@ -28,8 +28,8 @@ @click="_toggleView" icon="fa fa-code"> - {{name}} - + {{name}} +
diff --git a/escheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue b/escheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue index 999ea19e64..76aaccdd93 100644 --- a/escheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue +++ b/escheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue @@ -110,6 +110,13 @@ } return true }, + _accuStore(){ + this.store.commit('dag/setGlobalParams', _.cloneDeep(this.udpList)) + this.store.commit('dag/setName', _.cloneDeep(this.name)) + this.store.commit('dag/setTimeout', _.cloneDeep(this.timeout)) + this.store.commit('dag/setDesc', _.cloneDeep(this.desc)) + this.store.commit('dag/setSyncDefine', this.syncDefine) + }, /** * submit */ @@ -130,11 +137,8 @@ } // Storage global globalParams - this.store.commit('dag/setGlobalParams', _.cloneDeep(this.udpList)) - this.store.commit('dag/setName', _.cloneDeep(this.name)) - this.store.commit('dag/setTimeout', _.cloneDeep(this.timeout)) - this.store.commit('dag/setDesc', _.cloneDeep(this.desc)) - this.store.commit('dag/setSyncDefine', this.syncDefine) + this._accuStore() + Affirm.setIsPop(false) this.$emit('onUdp') } @@ -155,7 +159,11 @@ * Close the popup */ close () { - this.$emit('close') + // Storage global globalParams + this._accuStore() + setTimeout(() => { + this.$emit('close') + }) } }, watch: {