import { ref } from 'vue';

// 定义并初始化题库分类数据
const categories = ref([
  { id: 1, name: '人员管理题库', updateTime: '2025-11-11', count: 199 },
  { id: 2, name: '运营管理题库', updateTime: '2025-11-11', count: 199 },
  { id: 3, name: '消防知识题库', updateTime: '2025-11-11', count: 199 },
  { id: 4, name: '日常操作题库', updateTime: '2025-11-11', count: 199 },
  { id: 5, name: '安全管理题库', updateTime: '2025-11-11', count: 199 },
  { id: 6, name: '质量管理题库', updateTime: '2025-11-11', count: 199 },
  { id: 7, name: '设备维护题库', updateTime: '2025-11-11', count: 199 },
  { id: 8, name: '环境管理题库', updateTime: '2025-11-11', count: 199 }
]);

// 选择题库分类
const selectCategory = (id) => {
  console.log('Selected category:', id);
};

// 获取题型标签
const getQuestionTypeLabel = (type) => {
  const typeMap = {
    'single_choice': '(单项选择题)',
    'multiple_choice': '(多项选择题)',
    'fill_blank': '(填空题)',
    'short_answer': '(简答题)'
  };
  return typeMap[type] || '';
};

console.log('Test completed successfully!');