<template>
  <div class="app-container">
    <!-- 对话框(添加 / 修改) -->
      <el-form ref="form" :model="form" label-width="100px">
        <el-form-item label="开始时间：" prop="startTime"> {{form.startTime}} </el-form-item>
        <el-form-item label="结束时间：" prop="endTime"> {{form.endTime}} </el-form-item>
        <el-form-item label="请假类型：" prop="type">
          <!-- <dict-tag :type="DICT_TYPE.BPM_OA_LEAVE_TYPE" :value="form.type"/> -->
        </el-form-item>
        <el-form-item label="原因：" prop="reason"> {{ form.reason }}</el-form-item>
      </el-form>
  </div>
</template>

<script>
// import { getLeave}  from "@/api/bpm/leave"
// import {getDictDatas, DICT_TYPE} from '@/utils/dict'
export default {
  name: "BpmOALeaveDetail",
  components: {
  },
  props: {
    id: {
      type: [String, Number],
      default: undefined
    },
  },
  data() {
    return {
      leaveId: undefined, // 请假编号
      // 表单参数
      form: {
        startTime: undefined,
        endTime: undefined,
        type: undefined,
        reason: undefined,
      },

      // typeDictData: getDictDatas(DICT_TYPE.BPM_OA_LEAVE_TYPE),
    };
  },
  created() {
 
    // this.getDetail();
  },
  methods: {
    /** 获得请假信息 */
    // getDetail() {
    //   getLeave(this.leaveId).then(response => {
    //     this.form = response.data;
    //   });
    // },
  }
};
</script>
