云送数字化小工具应用及优化开发框招项目前端
Go to file
BianLzhaoMin 3c394a9c2e 优化 2025-12-18 18:11:59 +08:00
bin
html
mock
public
src
vite/plugins
.env.development
.env.production
.env.staging
.gitignore
.prettierrc.json
LICENSE
README.md
index.html
package.json
vite.config.js

README.md

运检站管理系统

基于若依框架和 Element Plus 组件库构建的企业级运检站管理系统。

环境要求

  • Node.js 18.0 或更高版本
  • npm 或 yarn

快速开始

1. 安装依赖

npm install

2. 启动开发服务器

npm run dev

项目将在 http://localhost:80 启动

项目说明

Mock 数据

项目已集成 Mock 数据模拟,无需后端即可进行开发和测试:

  • 登录接口:任意用户名密码即可登录(验证码输入任意 4 位数字)
  • 菜单数据:自动加载模拟菜单数据
  • Mock 数据位于 mock/ 目录

组件库

基于 Element Plus 进行二次封装,当前已封装:

  • ComButton:按钮组件(示例)
  • 更多组件持续封装中...

常用命令

# 开发环境
npm run dev

# 生产构建
npm run build:prod

# 预览构建结果
npm run preview

技术栈

  • Vue 3 + Vite
  • Element Plus
  • Pinia
  • Vue Router
  • Axios

项目结构

├── mock/              # Mock 数据
├── src/
│   ├── api/          # API 接口
│   ├── components/   # 公共组件
│   ├── views/        # 页面视图
│   ├── router/       # 路由配置
│   └── store/        # 状态管理
└── vite.config.js    # Vite 配置