<template>
  <div>
    <el-form :model="courseTypeForm"
    label-width="120px"
      label-position="right"
      ref="visitForm">
      <el-form-item v-for="(item,index) in this.conrseTypeList" :key='index' :label="item.typeName" :prop="'conrseTypeList.'+index+'.price'" :rules="[{
      required: true, message: '补缴金额不能为空', trigger: 'blur'
    },{
      required: true, message: '请输入正确的金额', trigger: 'blur', pattern: /^(\+)?\d+(\.\d+)?$/,
    }]">
        <el-input v-model="item.price" placeholder="请输入补缴金额"></el-input>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
export default {
  props:['conrseTypeList'],
  data(){
    return{
      courseTypeForm:{
        conrseTypeList:this.conrseTypeList
      }
    }
  },
  mounted(){

  }
}
</script>
<style lang="scss">

</style>
