export default ($this) => {
  return [
    {
      formType: 'div',
      name: '4.1 颈动脉',
      className: 'sec-title',
    },
    {
      formType: 'radio',
      className: 'obj-form-title',
      prop: 'stenting',
      model: 'stenting',
      label: '支架术（CAS）：',
      disabled: false,
      spanNum: 24,
      options: [
        {label: '否', value: '1', disabled: false},
        {label: '是', value: '2', disabled: false},
      ],
      rules: [{required: true, message: '请选择是否', trigger: 'change'}],
      changeFun(e){
        if(e == 2) {
          $this.addComponents.forEach((item,index)=>{
            if(item.formName == 'stroke_011'){
              $this.addComponents[index].formObject = {
                ...$this.addComponents[index].formObject,
                stentingPosition: []
              }
            }
          })
        }
      }
    },
    {
      formType: 'checkbox',
      className: 'obj-form-title2',
      prop: 'stentingPosition',
      model: 'stentingPosition',
      label: '支架术位置：',
      linkageRule: [{name: 'stenting', value: ['2']}],
      disabled: false,
      changeFun: (val) => {
        // console.log(val)
      },
      spanNum: 24,
      options: [
        {label: '左侧', value: '1', disabled: false},
        {label: '右侧', value: '2', disabled: false},
      ],
      rules: [{required: true, message: '请选择是否', trigger: 'change'}]
    },
    {
      formType: 'date-picker',
      className: 'obj-form-title3',
      prop: 'leftStentingOperativeTime',
      model: 'leftStentingOperativeTime',
      placeholder: '请选择',
      label: '支架左侧手术时间：',
      linkageRule: [{name: 'stentingPosition', value: ['1']}],
      format: 'yyyy',
      valueFormat: 'yyyy',
      dateType: 'year',
      type: 'date',
      rules: [{required: true, message: '请选择左侧手术时间', trigger: 'change'}],
      spanNum: 24,
    },
    {
      formType: 'date-picker',
      className: 'obj-form-title3',
      prop: 'rightStentingOperativeTime',
      model: 'rightStentingOperativeTime',
      placeholder: '请选择',
      label: '支架右侧手术时间：',
      linkageRule: [{name: 'stentingPosition', value: ['2']}],
      format: 'yyyy',
      valueFormat: 'yyyy',
      dateType: 'year',
      type: 'date',
      rules: [{required: true, message: '请选择右侧手术时间', trigger: 'change'}],
      spanNum: 24,
    },


    {
      formType: 'radio',
      className: 'obj-form-title',
      prop: 'endometriodenudation',
      model: 'endometriodenudation',
      label: '内膜剥脱术（CEA）：',
      disabled: false,
      spanNum: 24,
      options: [
        {label: '否', value: '1', disabled: false},
        {label: '是', value: '2', disabled: false},
      ],
      rules: [{required: true, message: '请选择是否', trigger: 'change'}],
      changeFun(e){
        if(e == 2) {
          $this.addComponents.forEach((item,index)=>{
            if(item.formName == 'stroke_011'){
              $this.addComponents[index].formObject = {
                ...$this.addComponents[index].formObject,
                endarterectomyPosition: []
              }
            }
          })
        }
      }
    },
    {
      formType: 'checkbox',
      className: 'obj-form-title2',
      prop: 'endarterectomyPosition',
      model: 'endarterectomyPosition',
      label: '内膜剥脱术位置：',
      linkageRule: [{name: 'endometriodenudation', value: ['2']}],
      disabled: false,
      changeFun: (val) => {
        // console.log(val)
      },
      spanNum: 24,
      options: [
        {label: '左侧', value: '1', disabled: false},
        {label: '右侧', value: '2', disabled: false},
      ],
      rules: [{required: true, message: '请选择是否', trigger: 'change'}]
    },
    {
      formType: 'date-picker',
      className: 'obj-form-title3',
      prop: 'leftEndarterectomyOperativeTime',
      model: 'leftEndarterectomyOperativeTime',
      placeholder: '请选择',
      label: '左侧内膜剥脱术手术时间：',
      linkageRule: [{name: 'endarterectomyPosition', value: ['1']}],
      format: 'yyyy',
      valueFormat: 'yyyy',
      dateType: 'year',
      type: 'date',
      rules: [{required: true, message: '左侧内膜剥脱术手术时间', trigger: 'change'}],
      spanNum: 24,
    },
    {
      formType: 'date-picker',
      className: 'obj-form-title3',
      prop: 'rightEndarterectomyOperativeTime',
      model: 'rightEndarterectomyOperativeTime',
      placeholder: '请选择',
      label: '右侧内膜剥脱术手术时间：',
      linkageRule: [{name: 'endarterectomyPosition', value: ['2']}],
      format: 'yyyy',
      valueFormat: 'yyyy',
      dateType: 'year',
      type: 'date',
      rules: [{required: true, message: '右侧内膜剥脱术手术时间', trigger: 'change'}],
      spanNum: 24,
    },

    {
      formType: 'radio',
      className: 'obj-form-title',
      prop: 'ecIcBypass',
      model: 'ecIcBypass',
      label: '颅内外血管搭桥术：',
      disabled: false,
      spanNum: 24,
      options: [
        {label: '否', value: '1', disabled: false},
        {label: '是', value: '2', disabled: false},
      ],
      rules: [{required: true, message: '请选择是否', trigger: 'change'}]
    },
    {
      formType: 'date-picker',
      className: 'obj-form-title2',
      prop: 'ecIcBypassTime',
      model: 'ecIcBypassTime',
      placeholder: '请选择',
      label: '颅内外血管搭桥术-手术时间：',
      linkageRule: [{name: 'ecIcBypass', value: ['2']}],
      format: 'yyyy',
      valueFormat: 'yyyy',
      dateType: 'year',
      type: 'date',
      rules: [{required: true, message: '手术时间', trigger: 'change'}],
      spanNum: 24,
    },


  ]
}
