包含以下模块: - antdv-next-admin: Vue 3 + TypeScript + Ant Design Vue 管理后台 - 设备/许可证/配件/耗材 CRUD 管理页面 - 基础数据管理 (分类/位置/制造商/型号/供应商) - 业务管理 (故障报修/盘点/资产分配/资产申请/交易记录) - 下拉选项改造 (ID输入框 → 搜索下拉选择) - 资产状态字典化 (接入sys_dict系统) - 界面文案优化 (设备→资产, 在库/在用/维修中/已报废) - 修复 console 警告 (popupClassName, 重复组件注册) - our-itam: Java Spring Boot + magic-api 后端服务 - fantastic-admin: 前端底层框架 (pnpm monorepo) - ciyo-itasset: CIYO 资产模块 - magic-script-skill: Claude Code skill 定义 - .claude: 对话历史记录 Co-Authored-By: Claude Code <noreply@anthropic.com>
41 lines
993 B
TypeScript
41 lines
993 B
TypeScript
import type { Role } from '@/types/auth';
|
|
|
|
export const mockRoles: Role[] = [
|
|
{
|
|
id: '1',
|
|
name: 'Administrator',
|
|
code: 'admin',
|
|
description: 'System administrator with full access',
|
|
permissions: [],
|
|
createdAt: '2023-01-01T00:00:00.000Z',
|
|
updatedAt: '2023-01-01T00:00:00.000Z',
|
|
},
|
|
{
|
|
id: '2',
|
|
name: 'Manager',
|
|
code: 'manager',
|
|
description: 'Department manager with management permissions',
|
|
permissions: [],
|
|
createdAt: '2023-01-01T00:00:00.000Z',
|
|
updatedAt: '2023-01-01T00:00:00.000Z',
|
|
},
|
|
{
|
|
id: '3',
|
|
name: 'User',
|
|
code: 'user',
|
|
description: 'Regular user with basic permissions',
|
|
permissions: [],
|
|
createdAt: '2023-01-01T00:00:00.000Z',
|
|
updatedAt: '2023-01-01T00:00:00.000Z',
|
|
},
|
|
{
|
|
id: '4',
|
|
name: 'Guest',
|
|
code: 'guest',
|
|
description: 'Guest user with read-only access',
|
|
permissions: [],
|
|
createdAt: '2023-01-01T00:00:00.000Z',
|
|
updatedAt: '2023-01-01T00:00:00.000Z',
|
|
},
|
|
];
|