export default {
  id: 'file',
  title: '资料上传',
  showProgress: true,
  progress: 0,
  get: {
    action: '/zws/v1/enrollment/attachments?project_id=1001',
    callback(data) {
      data.date_of_starting_to_work = data.date_of_starting_to_work + ''
      return data
    }
  },
  update: {
    action: '/zws/v1/enrollment/profiles',
    data: { project_id: 1001 },
    callback(data) {
      return data
    }
  },
  form: {
    options: {
      labelWidth: '160px'
    },
    items: [
      {
        type: 'input-form',
        label: '姓名',
        model: 'real_name_cn',
        placeholder: '123123',
        rules: [
          {
            required: true,
            message: '请输入活动名称',
            trigger: 'blur'
          },
          {
            min: 3,
            max: 5,
            message: '长度在 3 到 5 个字符',
            trigger: 'blur'
          }
        ]
      }
    ]
  }
}
