Files
pgserver3.0/pgweb/README.md
annnj-company 130c1026c4 first commit
2026-04-17 18:29:53 +08:00

113 lines
3.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 智能评估平台
## 安装依赖
```
### npm install
网络慢可以使用cnpm代替默认的 npm
npm install -g cnpm --registry=https://registry.npm.taobao.org
```
vue cli 安装
npm install -g @vue/cli
### 运行项目
### 安装加密组件
```
npm install crypto-js --save
```
npm run dev
```
### Run your tests
```
npm run test
```
### Lints and fixes files
```
npm run lint
```
### 代码规范
[JavaScript standard](https://github.com/standard/standard/blob/master/docs/RULES-zhcn.md#javascript-standard-style)
### vue cli3 常用配置
[vue cli3 常用配置](https://cli.vuejs.org/config/).
### 前端使用框架 Element UI
[element UI]([iview](https://www.eiviewui.com/)
### 文件结构
```
├── public // 打包所需静态资源
├── src //
│ ├── api // 接口请求
| └── assets // 项目静态资源
| └── images // 图片资源
│ ├── components // 全局公用组件
| | └── login-form // 登录
| | └── login-scan // 扫码登录
| | └── message // 消息
| | └── pagination // 分页
| | └── searche-form // 搜索条
| | └── upload // 文件上传
| | └── ztree // 权限配置树形控件
│ ├── config // 项目运行配置
│ ├── directive // 自定义指令
│ ├── libs // 封装工具函数
│ ├── router // 路由配置
│ ├── store // 全局 store管理
│ ├── styles // 全局样式
│ ├── views // 所有页面
| | └── components // 订单详情公用组件
| | └── communication.vue // 发起沟通
| | └── consult-info.vue // 查档信息
| | └── file-upload.vue // 文件上传
| | └── financial-info.vue // 银行账号信息
| | └── workflow-info.vue // 工作流信息
│ ├── App.vue // 入口页面
│ ├── main.js // 入口文件
├── .babelrc // babel-loader 配置
├── .eslintrc.js // eslint 配置项
├── package.json // 项目依赖和启动的配置文件
├── babel.config.js // Babel相关配置
└── vue.config.js // 项目运行打包配置
```
### 前端打包配置
修改.env.[]文件配置
### 打包生产环境
```
打包测试环境 npm run build:test
打包uat环境 npm run build:uat
打包生产环境 npm run build:prod
```
### 网络环境切换指南
1、113.98.62.215 路由器映射由x.65.2 改为 x.65.1,端口不变。
2、ngnix 端口 9902 的转发地址由 x.69 改为 x.232,端口不变。
3、业务服务器.env 文件 KEY_ENV 的值由TEST 改为 PROD。
### 构建一个新客户端和服务器
1、拉取svn代码
2、在.env.production 的修改:
2.1 http://81.71.93.226/【需要修改】/public/index.php/
2.2 VUE_APP_PUBLIC_PATH = /【需要修改】/dist/
3、服务器端
3.1 需要修改 database.php 的数据库指向。
3.2 .env 地址按需指向。
4、转发服务器
需要修改银行行方转发我司的指向目录或地址。