index.js 812 Bytes
import filter from '@/utils/filter.js'
class data extends filter {
  constructor() {
    super()
  }
  columns () {
    return [
      {
        prop: "job_name",
        label: "任务名称",
        width: 130
      },
      {
        prop: "description",
        label: "任务描述",
        width: 300
      },
      {
        prop: "cron_expression",
        label: "cron表达式"
      },
      {
        prop: "bean_class",
        width: 260,
        label: "任务类"
      },
      {
        prop: "job_group",
        label: "任务分组"
      },
      {
        label: "状态",
        render: (h, scope) => {
          return (
            <div>
              { this.stateStatus(scope.row.job_status) }
            </div>
          )
        },
      }
    ]
  }
}
export default new data()