From 5bfcdd2af12e30efea9b51edd56727b430c3b771 Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Thu, 2 Jul 2020 11:16:46 +0800 Subject: [PATCH] [bugfix]Replace favicon icon with png and Cancel the initial value of the node cache #3111 (#3107) * [bugfix]Replace favicon icon with png * Cancel the initial value of the node cache --- dolphinscheduler-ui/build/config.js | 2 +- .../{favicon.ico => favicon.png} | Bin .../js/conf/home/pages/dag/_source/dag.vue | 3 ++- .../pages/dag/_source/formModel/formModel.vue | 23 ++++++++++++++++-- .../pages/taskInstance/_source/list.vue | 4 +-- 5 files changed, 26 insertions(+), 6 deletions(-) rename dolphinscheduler-ui/{favicon.ico => favicon.png} (100%) diff --git a/dolphinscheduler-ui/build/config.js b/dolphinscheduler-ui/build/config.js index 91d59a06b4..53a421d9a0 100644 --- a/dolphinscheduler-ui/build/config.js +++ b/dolphinscheduler-ui/build/config.js @@ -109,7 +109,7 @@ const pages = glob.sync(['*/!(_*).html'], { cwd: viewDir }).map(p => { filename: newPagePath || path.join('view', p), template: `${path.join('src/view', p)}`, cache: true, - favicon:'./favicon.ico', + favicon:'./favicon.png', inject: true, hash: version, chunks: chunks, diff --git a/dolphinscheduler-ui/favicon.ico b/dolphinscheduler-ui/favicon.png similarity index 100% rename from dolphinscheduler-ui/favicon.ico rename to dolphinscheduler-ui/favicon.png diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue index cde94cd3c8..eb58da46f6 100755 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue @@ -563,7 +563,8 @@ cacheTaskInfo({item, fromThis}) { self.cacheTasks(item) }, - close ({ flag, fromThis }) { + close ({ item,flag, fromThis }) { + self.addTasks(item) // Edit status does not allow deletion of nodes if (flag) { jsPlumb.remove(id) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue index 8f9066ca21..54293272df 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue @@ -305,6 +305,7 @@ description: '', // Node echo data backfillItem: {}, + cacheBackfillItem: {}, // Resource(list) resourcesList: [], successNode: 'success', @@ -580,17 +581,34 @@ this.isContentBox = false // flag Whether to delete a node this.$destroy() this.$emit('close', { + item: { + type: this.cacheBackfillItem.type, + id: this.cacheBackfillItem.id, + name: this.cacheBackfillItem.name, + params: this.cacheBackfillItem.params, + description: this.cacheBackfillItem.description, + runFlag: this.cacheBackfillItem.runFlag, + conditionResult: this.cacheBackfillItem.conditionResult, + dependence: this.cacheBackfillItem.dependence, + maxRetryTimes: this.cacheBackfillItem.maxRetryTimes, + retryInterval: this.cacheBackfillItem.retryInterval, + timeout: this.cacheBackfillItem.timeout, + taskInstancePriority: this.cacheBackfillItem.taskInstancePriority, + workerGroup: this.cacheBackfillItem.workerGroup, + status: this.cacheBackfillItem.status, + branch: this.cacheBackfillItem.branch + }, flag: flag, fromThis: this }) } - }, + }, watch: { /** * Watch the item change, cache the value it changes **/ _item (val) { - this._cacheItem() + // this._cacheItem() } }, created () { @@ -653,6 +671,7 @@ } else { this.workerGroup = this.store.state.security.workerGroupsListAll[0].id } + this.cacheBackfillItem = o this.isContentBox = true }, mounted () { diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/_source/list.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/_source/list.vue index 189d59a0c8..cdcf0b0785 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/_source/list.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/_source/list.vue @@ -32,7 +32,7 @@ {{$t('Executor')}}