import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '压力测试ID',
    align: "center",
    dataIndex: 'testId'
  },
  {
    title: '业务不可容忍的财务损失中断时长',
    align: "center",
    dataIndex: 'shuthhFina'
  },
  {
    title: '业务不可容忍的声誉损失中断时长',
    align: "center",
    dataIndex: 'shuthhRepu'
  },
  {
    title: '业务不可容忍的法律法规损失中断时长',
    align: "center",
    dataIndex: 'shuthhLaw'
  },
  {
    title: '业务不可容忍的客户损失中断时长',
    align: "center",
    dataIndex: 'shuthhBusi'
  },
  {
    title: '数据损毁率(%)',
    align: "center",
    dataIndex: 'rateDatabad'
  },
  {
    title: '系统修复时长(H)',
    align: "center",
    dataIndex: 'sysRepdhh'
  },
  {
    title: '不可容忍的非经济损失中断时长(H)',
    align: "center",
    dataIndex: 'shuthhNoeco'
  },
  {
    title: '不可容忍的经济损失中断时长(H)',
    align: "center",
    dataIndex: 'shuthhEco'
  },
  {
    title: '监管处罚风险',
    align: "center",
    dataIndex: 'riskReg'
  },
  {
    title: '商誉损失风险',
    align: "center",
    dataIndex: 'riskBusi'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '压力测试ID',
    field: 'testId',
    component: 'InputNumber',
  },
  {
    label: '业务不可容忍的财务损失中断时长',
    field: 'shuthhFina',
    component: 'InputNumber',
  },
  {
    label: '业务不可容忍的声誉损失中断时长',
    field: 'shuthhRepu',
    component: 'InputNumber',
  },
  {
    label: '业务不可容忍的法律法规损失中断时长',
    field: 'shuthhLaw',
    component: 'InputNumber',
  },
  {
    label: '业务不可容忍的客户损失中断时长',
    field: 'shuthhBusi',
    component: 'InputNumber',
  },
  {
    label: '数据损毁率(%)',
    field: 'rateDatabad',
    component: 'InputNumber',
  },
  {
    label: '系统修复时长(H)',
    field: 'sysRepdhh',
    component: 'InputNumber',
  },
  {
    label: '不可容忍的非经济损失中断时长(H)',
    field: 'shuthhNoeco',
    component: 'InputNumber',
  },
  {
    label: '不可容忍的经济损失中断时长(H)',
    field: 'shuthhEco',
    component: 'InputNumber',
  },
  {
    label: '监管处罚风险',
    field: 'riskReg',
    component: 'Input',
  },
  {
    label: '商誉损失风险',
    field: 'riskBusi',
    component: 'Input',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
