From 1caa9fd272199600d04ed776ce865be71b0d9d17 Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Mon, 24 Aug 2020 16:36:48 +0800 Subject: [PATCH] fix --- .../js/conf/home/pages/dag/_source/plugIn/util.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/util.js b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/util.js index d0d31f29c4..4cb0a50706 100755 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/util.js +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/util.js @@ -101,7 +101,18 @@ const setSvgColor = (e, color) => { // Traverse clear all colors $('.jtk-connector').each((i, o) => { _.map($(o)[0].childNodes, v => { - $(v).attr('stroke', '#2d8cf0').attr('stroke-width', 2) + if($(v).attr('fill') ==='#ccc') { + $(v).attr('fill', '#2d8cf0') + } + if($(v).attr('fill') ==='#4caf50') { + $(v).attr('fill','#4caf50').attr('stroke', '#4caf50').attr('stroke-width', 2) + $(v).prev().attr('stroke', '#4caf50').attr('stroke-width', 2) + } else if($(v).attr('fill') ==='#252d39') { + $(v).attr('stroke', '#252d39').attr('stroke-width', 2) + $(v).prev().attr('stroke', '#252d39').attr('stroke-width', 2) + } else { + $(v).attr('stroke', '#2d8cf0').attr('stroke-width', 2) + } }) })