1. 添加了加载遮罩来提示用户正在获取工艺曲线数据 2. 将openQualityReport改为异步方法,并行获取多个接口数据 3. 统一处理异常情况并提示用户加载失败 4. 优化了数据获取和复用逻辑,减少不必要的接口请求
开发
# 克隆项目
git clone https://gitee.com/KonBAI-Q/klp-flowable-plus.git
# 进入项目目录
cd klp-ui
# 安装依赖
npm install
# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npmmirror.com
# 启动服务
npm run dev
浏览器访问 http://localhost:80
发布
# 构建测试环境
npm run build:stage
# 构建生产环境
npm run build:prod