<template>
  <el-dialog
    title="确认说明"
    :close-on-click-modal="false"
    :visible.sync="visible"
    width="600px">
    <el-form 
      :model="dataForm" 
      ref="dataForm" 
      label-width="80px" 
      size="mini"
      style="margin-left: 20px;width: 500px">
      <el-form-item label="操作人员" prop="verifyUser">
        <!-- <el-input v-model="dataForm.verifyUser" disabled> -->
          {{dataForm.verifyUser}}
        <!-- </el-input> -->
      </el-form-item>
      <el-form-item label="确认时间" prop="verifyTime">
        <!-- <el-input v-model="dataForm.verifyTime" disabled></el-input> -->
        {{dataForm.verifyTime}}
      </el-form-item>
      <el-form-item label="确认描述" prop="verifyDescription">
        <el-input
          type="textarea"
          :rows="8"
          v-model="dataForm.verifyDescription"
          disabled>
        </el-input>
      </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button size="mini" @click="visible = false">关闭</el-button>
      <!-- <el-button size="mini" type="primary" @click="dataFormSubmit()">确定</el-button> -->
    </span>
  </el-dialog>
</template>

<script>
  export default {
    // props: ["thresholdTypes"],
    data () {
      return {
        visible: false,
        dataForm: {
          // id: '',
          verifyDescription: '',
          verifyTime: '',
          verifyUser: ''
        }
      }
    },
    methods: {
      // 在ealarm.vue调用该方法
      init (row) {
        this.visible = true
        this.$nextTick(() => {
          this.$refs['dataForm'].resetFields()
          this.dataForm.verifyDescription = row.verifyDescription
          this.dataForm.verifyTime = row.verifyTime
          this.dataForm.verifyUser = row.verifyUser
        })
      }
    }
  }
</script>
