<template>
  <el-dialog v-model="props.modelValue" title="留言详情" width="900px" @closed="closeDialog"  @open="openDialog">
    <el-form ref="formRef" :model="formData" :disabled="true">
      <el-row>
        
        
                           <el-col :span="12">
                               <el-form-item :label-width="labelWidth" label="姓名" prop="leave_message_name">
                                  <el-input v-model='formData.leave_message_name' type="text" placeholder='请输入姓名'></el-input>
                               </el-form-item>
                           </el-col>
                           <el-col :span="12">
                               <el-form-item :label-width="labelWidth" label="电话" prop="leave_message_phone">
                                  <el-input v-model='formData.leave_message_phone' type="text" placeholder='请输入电话'></el-input>
                               </el-form-item>
                           </el-col>
                           <el-col :span="12">
                               <el-form-item :label-width="labelWidth" label="邮箱" prop="leave_message_email">
                                  <el-input v-model='formData.leave_message_email' type="text" placeholder='请输入邮箱'></el-input>
                               </el-form-item>
                           </el-col>
                           <el-col :span="24">
                               <el-form-item :label-width="labelWidth" label="信息" prop="leave_message_info">
                                  <el-input v-model='formData.leave_message_info' type="textarea" :rows="5" placeholder='请输入信息'></el-input>
                               </el-form-item>
                           </el-col>

      </el-row>
    </el-form>
  </el-dialog>
</template>

<script setup>
import { reactive, ref, watch } from "vue";
import { isEmptyObject } from "~/utils/index";


// --业务参数



// --业务方法




// --基础参数
const formRef = ref();
const labelWidth = 100;

const props = defineProps({
  modelValue: Boolean,
  data: Object,
  done: Function,
});
const emits = defineEmits(["update:modelValue"]);
const formData = ref({
  ...props.data,
});


// --基础方法
watch(props, (v) => {
  formData.value = v.data;
  
  
});

// 打开弹窗时执行
const openDialog = () => {
  
  
};

const closeDialog = () => {
  emits("update:modelValue", false);
};
</script>

<style lang="less" scoped>

</style>
