import { FormConfig } from '@/types/basic-form';

/** 举一反三（部门侧）反馈表单配置 */
export const DRAW_LESSONS_FEEDBACK_FORM_CONFIG: FormConfig[] = [
  {
    prop: 'feedbackResult',
    label: '反馈结果：',
    component: 'ElInput',
    componentProps: {
      type: 'textarea',
      rows: 4,
      placeholder: '请详细说明完成情况',
    },
  },
  {
    prop: 'feedbackTime',
    label: '反馈时间：',
    component: 'ElDatePicker',
    componentProps: {
      type: 'datetime',
      placeholder: '选填，默认当前时间',
      valueFormat: 'YYYY-MM-DD HH:mm:ss',
      style: { width: '100%' },
    },
  },
  {
    prop: 'attachments',
    label: '附件URL：',
    component: 'ElInput',
    componentProps: {
      type: 'textarea',
      rows: 2,
      placeholder: '选填，多个用逗号分隔',
    },
  },
];

export const DRAW_LESSONS_FEEDBACK_FORM_DATA = {
  feedbackResult: '',
  feedbackTime: '',
  attachments: '',
};

export const DRAW_LESSONS_FEEDBACK_FORM_RULES = {
  feedbackResult: [{ required: true, message: '请输入反馈结果', trigger: 'blur' }],
};
