Blame view

src/views/system/timedTask/data/index.js 931 Bytes
任超 committed
1 2 3 4 5
/*
 * @Description: 
 * @Autor: renchao
 * @LastEditTime: 2023-03-27 10:27:32
 */
任超 committed
6 7 8 9 10 11 12 13
import filter from '@/utils/filter.js'
class data extends filter {
  constructor() {
    super()
  }
  columns () {
    return [
      {
赵千 committed
14
        prop: "jobName",
任超 committed
15 16 17 18
        label: "任务名称",
        width: 130
      },
      {
赵千 committed
19
        prop: "remark",
任超 committed
20 21 22 23
        label: "任务描述",
        width: 300
      },
      {
赵千 committed
24
        prop: "cronExpression",
任超 committed
25 26
        label: "cron表达式",
        width: 160,
任超 committed
27 28
      },
      {
赵千 committed
29
        prop: "beanName",
任超 committed
30 31 32 33
        width: 260,
        label: "任务类"
      },
      {
赵千 committed
34 35
        prop: "methodName",
        label: "方法名称"
任超 committed
36 37 38
      },
      {
        label: "状态",
赵千 committed
39
        prop: "jobStatus",
任超 committed
40 41 42
        render: (h, scope) => {
          return (
            <div>
任超 committed
43
              {this.stateStatus(scope.row.jobStatus)}
任超 committed
44 45 46 47 48 49 50 51
            </div>
          )
        },
      }
    ]
  }
}
export default new data()