Ben Lin
2024-10-27 92cb62d60d38be56312be20cfae8638a5a9aa57a
src/views/tigerprojects/tsk/tsk_job/trig.data.ts
@@ -1,4 +1,7 @@
import { Tag, Tooltip } from 'ant-design-vue';
import { BasicColumn, FormSchema } from '/@/components/Table';
import { h } from 'vue';
//界面列表显示
export const columns: BasicColumn[] = [
  {
@@ -17,6 +20,16 @@
    width: 180,
  },
  {
    title: '开始时间',
    dataIndex: 'StartTime',
    width: 180,
  },
  {
    title: '执行结果',
    dataIndex: 'Result',
    width: 180,
  },
  {
    title: '结束时间',
    dataIndex: 'EndTime',
    width: 180,
@@ -25,6 +38,25 @@
    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: '备注',