<template>
  <div class="app-container under-development">
    <el-result icon="warning" title="功能开发中" sub-title="部门管理功能正在开发中，敬请期待！">
      <template #extra>
        <el-button type="primary" @click="goBack">返回首页</el-button>
      </template>
    </el-result>
    <div class="feature-info">
      <h3>功能说明</h3>
      <p>部门管理功能将包含：</p>
      <ul>
        <li>部门树查询</li>
        <li>新增/编辑/删除部门</li>
        <li>部门排序</li>
        <li>负责人设置</li>
      </ul>
    </div>
  </div>
</template>

<script setup>
/**
 * 部门管理页面（占位）
 * @author pangu
 */
import { useRouter } from 'vue-router'

const router = useRouter()

const goBack = () => {
  router.push('/dashboard')
}
</script>

<style scoped>
.under-development {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 40px;
}

.feature-info {
  margin-top: 40px;
  text-align: left;
  max-width: 600px;
  padding: 20px;
  background: #f5f7fa;
  border-radius: 4px;
}

.feature-info h3 {
  margin-bottom: 16px;
  color: #303133;
}

.feature-info ul {
  list-style: none;
  padding-left: 0;
}

.feature-info li {
  padding: 8px 0;
  color: #606266;
}

.feature-info li:before {
  content: "✓ ";
  color: #67c23a;
  font-weight: bold;
  margin-right: 8px;
}
</style>
