export default {
  id: 'declare',
  title: '申请声明',
  showProgress: true,
  progress: 0,
  get: {
    action: '/zws/v1/enrollment/profiles?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'
          }
        ]
      }
    ]
  }
}
