| | |
| | | |
| | | import { Tag, Tooltip } from 'ant-design-vue'; |
| | | import { BasicColumn, FormSchema } from '/@/components/Table'; |
| | | import { h } from 'vue'; |
| | | //界面列表显示 |
| | | export const columns: BasicColumn[] = [ |
| | | { |
| | |
| | | width: 180, |
| | | }, |
| | | { |
| | | title: '开始时间', |
| | | dataIndex: 'StartTime', |
| | | width: 180, |
| | | }, |
| | | { |
| | | title: '执行结果', |
| | | dataIndex: 'Result', |
| | | width: 180, |
| | | }, |
| | | { |
| | | title: '结束时间', |
| | | dataIndex: 'EndTime', |
| | | width: 180, |
| | |
| | | title: '状态', |
| | | dataIndex: 'Status', |
| | | width: 180, |
| | | customRender: ({ record }) => { |
| | | let color = '';let text = ''; |
| | | switch (record.Status) { |
| | | case 2: |
| | | text = '正在运行'; |
| | | color = 'green'; |
| | | break; |
| | | case 1: |
| | | text = '就绪'; |
| | | color = '#bfbfbf'; |
| | | break; |
| | | case 13: |
| | | text = '停止'; |
| | | color = 'red'; |
| | | break; |
| | | default:break; |
| | | } |
| | | return h(Tooltip, { title: text }, () => h(Tag, { color: color }, () => text)); |
| | | }, |
| | | }, |
| | | { |
| | | title: '备注', |