<template>
  <div class="infoDetail">
    <el-form ref="form" :model="dept" label-width="100px" class="dispatch-detial">
      <el-form-item label="组织名称">
        <p class="tip">{{ dept.name }}</p>
      </el-form-item>
      <el-form-item label="组织类型">
        <p class="tip">{{ deptTypeDesc[dept.deptType] }}</p>
      </el-form-item>
      <el-form-item label="上级组织">
        <p class="tip">{{ dept.parentName }}</p>
      </el-form-item>
      <el-form-item label="负责人">
        <p class="tip">{{ dept.leader }}</p>
      </el-form-item>
      <el-form-item label="联系电话">
        <p class="tip">{{ dept.phone }}</p>
      </el-form-item>
      <el-form-item label="备注">
        <p class="tip">{{ dept.remark }}</p>
      </el-form-item>
    </el-form>
  </div>
</template>
<script setup lang="ts">
import { deptTypeDesc } from "@/constant/organization";
import { Organization } from "@/store/organization";

const props = defineProps<{ dept: Organization }>();
</script>
