From 843493804d347e9732ddf7c7dd66e8d5ae0a9d77 Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Tue, 26 Jan 2021 10:12:03 +0800 Subject: [PATCH 1/8] [fixbug-4570][ui] When deleting a workflow connection, all connections disappear --- .../conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js index 0037af68b6..e3e6a1feeb 100755 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js @@ -627,6 +627,7 @@ JSP.prototype.saveStore = function () { tasks.push(tasksParam) } }) + console.log(store.state.dag.connects.length, this.JspInstance.getConnections().length) if (store.state.dag.connects.length === this.JspInstance.getConnections().length) { _.map(store.state.dag.connects, u => { connects.push({ @@ -658,6 +659,14 @@ JSP.prototype.saveStore = function () { label: v._jsPlumb.overlays.label.canvas.innerText }) }) + } else if (store.state.dag.connects.length > this.JspInstance.getConnections().length) { + _.map(this.JspInstance.getConnections(), v => { + connects.push({ + endPointSourceId: v.sourceId, + endPointTargetId: v.targetId, + label: v._jsPlumb.overlays.label.canvas.innerText + }) + }) } _.map(tasksAll(), v => { From b12e8a5390e913b57fce130d8f38de6af9082a36 Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Tue, 26 Jan 2021 10:13:02 +0800 Subject: [PATCH 2/8] fix --- .../src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js index e3e6a1feeb..b2772db913 100755 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js @@ -627,7 +627,7 @@ JSP.prototype.saveStore = function () { tasks.push(tasksParam) } }) - console.log(store.state.dag.connects.length, this.JspInstance.getConnections().length) + if (store.state.dag.connects.length === this.JspInstance.getConnections().length) { _.map(store.state.dag.connects, u => { connects.push({ From fdfc9ac21554be3697f1541237cc29d3311a12ed Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Tue, 26 Jan 2021 10:13:36 +0800 Subject: [PATCH 3/8] fix --- .../src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js index b2772db913..1977a92409 100755 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js @@ -627,7 +627,7 @@ JSP.prototype.saveStore = function () { tasks.push(tasksParam) } }) - + if (store.state.dag.connects.length === this.JspInstance.getConnections().length) { _.map(store.state.dag.connects, u => { connects.push({ From e9c0107faeb8fb2c23d989f114c6ede3c4ffa69e Mon Sep 17 00:00:00 2001 From: zhuangchong Date: Tue, 26 Jan 2021 14:08:41 +0800 Subject: [PATCH 4/8] imp ui dag button tooltip. --- .../js/conf/home/pages/dag/_source/dag.vue | 55 ++++++++++--------- 1 file changed, 30 insertions(+), 25 deletions(-) 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 a61d289d3d..492f41dd20 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 @@ -70,32 +70,38 @@ :id="item.code" :key="$index" @click="_ckOperation(item,$event)"> - + + + - - - - - - + + + + + + + + + + + + Date: Tue, 26 Jan 2021 16:59:49 +0800 Subject: [PATCH 5/8] [Improvement][ui] Front-end interface optimization --- .../home/pages/dag/_source/formModel/log.vue | 2 +- .../pages/dag/_source/plugIn/jsPlumbHandle.js | 2 +- .../pages/servers/_source/zookeeperList.vue | 2 +- .../definition/pages/list/_source/list.vue | 4 ++-- .../pages/index/_source/taskStatusCount.vue | 6 ------ .../pages/instance/pages/list/_source/list.vue | 18 +++--------------- .../pages/instance/pages/list/index.vue | 7 ++++++- .../components/secondaryMenu/_source/menu.js | 4 ++-- dolphinscheduler-ui/src/sass/common/index.scss | 3 +++ 9 files changed, 19 insertions(+), 29 deletions(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/log.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/log.vue index 502adc767f..5eb0a109a2 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/log.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/log.vue @@ -38,7 +38,7 @@ - + diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js index 1977a92409..226324d256 100755 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js @@ -573,7 +573,7 @@ JSP.prototype.copyNodes = function ($id) { JSP.prototype.handleEventScreen = function ({ item, is }) { let screenOpen = true if (is) { - item.icon = 'el-icon-minus' + item.icon = 'el-icon-aim' screenOpen = true } else { item.icon = 'el-icon-full-screen' diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/monitor/pages/servers/_source/zookeeperList.vue b/dolphinscheduler-ui/src/js/conf/home/pages/monitor/pages/servers/_source/zookeeperList.vue index df987908f9..46cde99551 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/monitor/pages/servers/_source/zookeeperList.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/monitor/pages/servers/_source/zookeeperList.vue @@ -24,7 +24,7 @@ - + diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/list.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/list.vue index b49fea2c2f..64c3f880b5 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/list.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/list.vue @@ -25,8 +25,8 @@

{{ scope.row.name }}

- - {{scope.row.name}} + + {{scope.row.name}}
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/taskStatusCount.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/taskStatusCount.vue index 9fd45418f9..9ebfcc6288 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/taskStatusCount.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/taskStatusCount.vue @@ -139,9 +139,3 @@ components: { mNoData } } - - diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/_source/list.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/_source/list.vue index 30309415b2..01b7574689 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/_source/list.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/_source/list.vue @@ -25,7 +25,7 @@

{{ scope.row.name }}

- {{scope.row.name}} + {{ scope.row.name }}
@@ -78,10 +78,10 @@ - + - + { - // if (item.isCheck) { - // arr.push(item.id) - // } - // }) - // this.strDelete = _.join(arr, ',') - // if (v === false) { - // this.checkAll = false - // } - // }, _arrDelChange (v) { let arr = [] arr = _.map(v, 'id') diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/index.vue index 05b905ac8b..c07eacbae9 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/index.vue @@ -18,7 +18,7 @@