diff --git a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/index.vue b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/index.vue
index a4c0d1c8..a76a3fbb 100644
--- a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/index.vue
+++ b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/index.vue
@@ -20,192 +20,204 @@
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
- {{ trigger.title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
{{ index + 1 }}. {{ item.title }}
-
-
-
-
-
- {{ task.title }}
-
-
-
+
+
+ 手动触发
-
-
-
-
-
-
+
+
-
-
-
- 并行任务
-
-
+
+
+ {{ trigger.title }}
+
-
-
-
-
-
-
-
-
-
-
-
-
+
- 添加通知
-
+
+
+
-
-
-
-
-
- 【通知】 {{ item.type }}
-
-
+
+
+
+
+
+
+
+
+
+
+
+
{{ index + 1 }}. {{ item.title }}
+
+
+
+
+
+ {{ task.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
-
-
-
+
+
+
+
+
- 【通知】 {{ item.type }}
-
+ 添加通知
+
+
+
+
+
+
+
+
+ 【通知】 {{ item.type }}
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 【通知】 {{ item.type }}
+
+
-
+
-
-
+
+
@@ -715,39 +727,39 @@ export default defineComponent({
.title {
padding: 20px;
color: gray;
- }
- &.first-stage {
- .line {
- width: 50% !important;
- .flow-line {
- border-left: 0;
- }
+ display: flex;
+ .stage-move-handle {
+ cursor: move;
+ margin-left: 4px;
}
}
- &.last-stage {
- .line {
- width: 50% !important;
- left: 0;
- right: auto;
- .flow-line {
- border-right: 0;
- }
- .add-stage-btn {
- visibility: hidden;
- }
- }
- }
-
+ //.sortable-ghost {
+ // .line {
+ // visibility: hidden;
+ // }
+ //}
.line {
height: 50px;
position: absolute;
top: -25px;
- right: 0;
- width: 100%;
+ width: 25px;
+
+ &.line-left {
+ left: 25px;
+ .flow-line {
+ border-right: 0;
+ }
+ }
+
+ &.line-right {
+ right: 25px;
+ .flow-line {
+ border-left: 0;
+ }
+ }
+
.flow-line {
height: 100%;
- margin-left: 28px;
- margin-right: 28px;
border: 1px solid #c7c7c7;
border-top: 0;
}
@@ -766,6 +778,52 @@ export default defineComponent({
}
}
+ .task-container:first-child {
+ .line {
+ width: 50px;
+
+ &.line-left {
+ left: 0;
+ .flow-line {
+ border-right: 0;
+ border-left: 0;
+ }
+ }
+
+ &.line-right {
+ right: 0;
+ .flow-line {
+ border-left: 0;
+ border-right: 0;
+ }
+ }
+
+ .add-stage-btn {
+ visibility: visible;
+ }
+ }
+ }
+
+ &.first-stage {
+ .line {
+ .flow-line {
+ border-left: 0;
+ }
+ }
+ }
+ &.last-stage {
+ .line {
+ width: 50% !important;
+ right: auto;
+ .flow-line {
+ border-right: 0;
+ }
+ .add-stage-btn {
+ visibility: hidden;
+ }
+ }
+ }
+
.tasks {
.task-container {
width: 100%;
@@ -775,18 +833,6 @@ export default defineComponent({
justify-content: center;
align-items: center;
position: relative;
- &.first-task {
- .line {
- .flow-line {
- margin: 0;
- border-left: 0;
- border-right: 0;
- }
- .add-stage-btn {
- visibility: visible;
- }
- }
- }
.task {
display: flex;
flex-direction: column;
@@ -816,6 +862,7 @@ export default defineComponent({
}
&.drag {
right: 60px;
+ cursor: move;
}
}