index.js 669 Bytes
import filter from '@/utils/filter.js'
class data extends filter {
  constructor() {
    super()
  }
  columns () {
    return [
      {
        prop: "gzbm",
        label: "规则编码",
      },
      {
        prop: "gzmc",
        label: "规则名称",
      },
      {
        prop: 'isqy',
        label: '是否启用',
        render: (h, scope) => {
          return (
            <div>
              {
                scope.row.isqy
                  ? <el-tag type='success'>启用</el-tag>
                  : <el-tag type='success'>启用1</el-tag>
              }
            </div>
          )
        }
      },
    ]
  }
}
export default new data()