<template>
  <el-row class="formContainer" style="width: 100%;height:700px;overflow-y:scroll;">
    <el-col :span="24">
      <el-form :model="formData" ref="ruleForm" label-width="110px" class="demo-ruleForm">
        <el-form-item label="案件名称" prop="caseName">
          <el-input v-model="formData.caseName" :disabled="true"></el-input>
        </el-form-item>
        <el-form-item label="案件编号" prop="caseNumber">
          <el-input v-model="formData.caseNumber" :disabled="true"></el-input>
        </el-form-item>
        <el-form-item label="案件状态" prop="caseStatus">
          <el-input v-model="formData.caseStatus" :disabled="true"></el-input>
        </el-form-item>
        <el-form-item label="案件地点" prop="caseLocation">
          <el-input v-model="formData.caseLocation" :disabled="true"></el-input>
        </el-form-item>
        <el-form-item label="上报人" prop="reportPerson">
          <el-input v-model="formData.reportPerson" :disabled="true"></el-input>
        </el-form-item>
        <el-form-item label="上报时间" prop="reportTime">
          <el-input v-model="formData.reportTime" :disabled="true"></el-input>
        </el-form-item>
        <el-form-item label="截止时间" prop="endTime">
          <el-input v-model="formData.endTime" :disabled="true"></el-input>
        </el-form-item>
        <el-form-item label="处理人" prop="caseHandler">
          <el-input v-model="formData.caseHandler" :disabled="true"></el-input>
        </el-form-item>
        <el-form-item label="备注" prop="remark">
          <el-input v-model="formData.remark" type="textarea" :autosize="{ minRows: 2, maxRows: 4}"></el-input>
        </el-form-item>

        <el-form-item>
          <el-button @click="resetForm('ruleForm')">取消</el-button>
          <el-button type="primary" @click="submitForm('ruleForm')">确定</el-button>
        </el-form-item> 
      </el-form>
    </el-col>
  </el-row>
</template>

<script>
export default {
  name: "form",
  props:["formData"],
  components:{
    
  },
  data() {
    return {
      
    }
  },
  created() {
    
  },
  methods: {
    resetForm(){
        this.close()
    },
    close(){
        this.$emit('close')
    }
  }
}
</script>

<style scoped>
.avatar-uploader .el-upload {
  border: 0px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.avatar-uploader .el-upload:hover {
  border-color: #409EFF;
}

.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 178px;
  height: 178px;
  line-height: 178px;
  text-align: center;
}

.avatar {
  width: 178px;
  height: 178px;
  display: block;
}
.formContainer{
  width:100%;
  height:400px;
 
}
.formContainer::-webkit-scrollbar {
  width: 10px;
  height: 10px;
 
}
.formContainer::-webkit-scrollbar-track {
  border-radius: 10px;
}
.formContainer::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: rgba(0,0,0,0.1);
}
</style>
