no message
parent
ce685ac774
commit
0267bff56c
|
|
@ -286,6 +286,30 @@ export const taskColumns: JVxeColumn[] = [
|
|||
defaultValue: '0',
|
||||
disabled: true,
|
||||
},
|
||||
{
|
||||
title: '任务状态',
|
||||
key: 'taskStatus',
|
||||
type: JVxeTypes.normal,
|
||||
width: '80px',
|
||||
defaultValue: '1',
|
||||
//task的状态 1表示 已创建,任务自动下发TES 当作是执行中
|
||||
formatter: ({ cellValue }) => {
|
||||
const statusMap = {
|
||||
1: '执行中',
|
||||
4: '已完成',
|
||||
5: '已关闭',
|
||||
};
|
||||
// 状态颜色映射
|
||||
const statusColorMap = {
|
||||
执行中: 'cyan',
|
||||
已完成: 'green',
|
||||
已关闭: 'green',
|
||||
};
|
||||
const text = statusMap[cellValue] || '未知状态';
|
||||
const color = statusColorMap[text] || 'red';
|
||||
return render.renderTag(text, color);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '整托/拆托',
|
||||
key: 'izAll',
|
||||
|
|
|
|||
Loading…
Reference in New Issue