import { ColItem } from '@/api/common'
import { elTableAlignLeft } from '@/utils/constant'

export const flawCols: ColItem[] = [
  { type: 'selection', width: '50px' },
  { type: 'index', label: '序号', width: '60px' },
  { prop: 'type', label: '排水类型', minWidth: '120px', ...elTableAlignLeft() },
  { prop: 'name', label: '缺陷名称', width: '170px', ...elTableAlignLeft() },
  { prop: 'description', label: '缺陷描述', width: '150px', ...elTableAlignLeft() },
  { prop: 'according', label: '分析依据', minWidth: '150px', ...elTableAlignLeft() },
  { prop: 'interfaceName', label: '接口名称', minWidth: '150px', ...elTableAlignLeft() }
]

export const flawPointParamCols: ColItem[] = [
  { type: 'index', label: '序号', width: '60px' },
  { prop: 'interfaceCode', label: '参数代码', minWidth: '80px' },
  { prop: 'paramValue', label: '参数值', minWidth: '120px', _slot: true },
  { prop: 'unit', label: '单位', minWidth: '80px' },
  { prop: 'paramNotes', label: '参数说明', minWidth: '150px', ...elTableAlignLeft() }
]
