Commit 9b9cdbe0 authored by chenshouchao's avatar chenshouchao

Merge branch 'feat-20220705-customTemplate' of…

Merge branch 'feat-20220705-customTemplate' of http://120.77.149.83/sunyihao/bkunyun into feat-20220705-customTemplate
parents de4f0a6d 96cf9fc3
.batchNode { .batchNode {
background-color: #fff; background-color: #fff;
border-radius: 4px; border-radius: 4px;
/* padding: 12px 20px; */ /* padding: 12px 20px; */
border: 1px solid #e6e8eb; border: 1px solid #e6e8eb;
border-left: 4px solid #e6e8eb; border-left: 4px solid #e6e8eb;
display: flex; display: flex;
align-items: center; align-items: center;
} }
.selectBatchNode { .doneBatchNode {
border-left: 4px solid #1370ff; border-left: 4px solid #0dd09b;
}
.runBatchNode {
border-left: 4px solid #1370ff;
}
.errorBatchNode {
border-left: 4px solid #ff4e4e;
} }
.batchRotate { .batchRotate {
transform: translateX(-50%) rotate(-90deg); transform: translateX(-50%) rotate(-90deg);
} }
.flowNode { .flowNode {
background-color: #f5f6f7; background-color: #f5f6f7;
border-radius: 2px; border-radius: 2px;
padding: 6px 12px; padding: 6px 12px;
} }
.successDot { .successDot {
display: inline-block; display: inline-block;
line-height: 22px; line-height: 22px;
vertical-align: middle; vertical-align: middle;
width: 8px; width: 8px;
height: 8px; height: 8px;
background-color: #0dd09b; background-color: #0dd09b;
border-radius: 8px; border-radius: 8px;
margin-left: 8px; margin-left: 8px;
} }
.selectedBatchBox { .selectedBatchBox {
border: 1px solid #1370ff; border: 1px solid #1370ff;
border-left: 4px solid #1370ff; border-left: 4px solid #1370ff;
} }
...@@ -61,7 +61,9 @@ const BatchNode = (props: IBatchNode) => { ...@@ -61,7 +61,9 @@ const BatchNode = (props: IBatchNode) => {
className={classNames({ className={classNames({
[styles.batchNode]: true, [styles.batchNode]: true,
[styles.selectedBatchBox]: selectedStatus, [styles.selectedBatchBox]: selectedStatus,
[styles.selectBatchNode]: selectedStatus, [styles.runBatchNode]: data.executionStatus === "Running",
[styles.doneBatchNode]: data.executionStatus === "Done",
[styles.errorBatchNode]: data.executionStatus === "Failed",
})} })}
style={style} style={style}
> >
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com * @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-06-23 11:00:29 * @Date: 2022-06-23 11:00:29
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com * @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-04 14:26:18 * @LastEditTime: 2022-07-07 11:23:14
* @FilePath: /bkunyun/src/views/Project/components/Flow/interface.ts * @FilePath: /bkunyun/src/views/Project/components/Flow/interface.ts
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -38,6 +38,8 @@ export interface IBatchNodeData { ...@@ -38,6 +38,8 @@ export interface IBatchNodeData {
selectedStatus?: boolean; selectedStatus?: boolean;
/** 是否校验通过 */ /** 是否校验通过 */
isCheck?: boolean; isCheck?: boolean;
/** 运行状态 */
executionStatus: string
} }
export interface IBatchNode { export interface IBatchNode {
data: IBatchNodeData data: IBatchNodeData
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment