feat:新增双重预防项目

master
吴延福 2023-06-07 11:49:19 +08:00
parent ee31d1fb1d
commit 3813275c4e
338 changed files with 7947 additions and 8 deletions

16
.env.development 100644
View File

@ -0,0 +1,16 @@
#开发环境
NODE_ENV:"development"
# 页面标题
VUE_APP_TITLE = 汉邦唐全真数字服务平台
# 网关地址
VUE_APP_GATEWAY_URL="/dev-api"
# 服务地址
VUE_APP_BASE_API_URL="http://119.45.158.12:8081"
# 服务前-- 请严格遵守格式 不允许换行
VUE_APP_SERVICE_PREFIX= '{"knowledge":"/knowledge","system":"/system"}'
# 是否显示全部菜单
VUE_APP_ALL_MENU = false
# 微前端地址
VUE_APP_REMOTES_URL="http://192.168.1.20:8090"
# 当前应用部署地址
VUE_APP_EXPOSES_URL=""

16
.env.production 100644
View File

@ -0,0 +1,16 @@
#生产环境
NODE_ENV:"production"
# 页面标题
VUE_APP_TITLE = 汉邦唐全真数字服务平台
# 网关地址
VUE_APP_GATEWAY_URL="/prod-api"
# 服务地址
VUE_APP_BASE_API_URL=""
# 服务前-- 请严格遵守格式 不允许换行
VUE_APP_SERVICE_PREFIX= '{"knowledge":"/knowledge","system":"/system"}'
# 是否显示全部菜单
VUE_APP_ALL_MENU = false
# 微前端地址
VUE_APP_REMOTES_URL="http://119.45.158.12/common/"
# 当前应用部署地址
VUE_APP_EXPOSES_URL=""

16
.env.test 100644
View File

@ -0,0 +1,16 @@
#测试环境
NODE_ENV:"development"
# 页面标题
VUE_APP_TITLE = 汉邦唐全真数字服务平台
# 网关地址
VUE_APP_GATEWAY_URL="/prod-api"
# 服务地址
VUE_APP_BASE_API_URL="http://192.168.2.3:8081"
# 服务前-- 请严格遵守格式 不允许换行
VUE_APP_SERVICE_PREFIX= '{"knowledge":"/knowledge","system":"/system"}'
# 是否显示全部菜单
VUE_APP_ALL_MENU = false
# 微前端地址
VUE_APP_REMOTES_URL="http://119.45.158.12/common/"
# 当前应用部署地址
VUE_APP_EXPOSES_URL=""

30
.gitignore vendored
View File

@ -1,11 +1,25 @@
# ---> Vue
# gitignore template for Vue.js projects
#
# Recommended template: Node.gitignore
.DS_Store
node_modules
/dist
package-lock.json
/src/assets/common
# TODO: where does this rule come from?
docs/_book
# TODO: where does this rule come from?
test/
# local env files
# .env.local
# .env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

36
README copy.md 100644
View File

@ -0,0 +1,36 @@
# hbt-template-ui
## 环境
1. 下载并安装nodeJS环境
2. 安装nrm, 使用nrm将npm仓库配置为公司仓库
3.1 使用npm install -g nrm 全局安装
3.2 使用nrm add hbt-npm http://81.70.119.104:8081/repository/npm-public-hbt/ 增加公司镜像地址
3.3 使用nrm use hbt-npm 切换到公司镜像
3.4 使用nrm ls 查看全部仓库源 *为当前使用源
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### 本框架采用ts与法 具体依赖vue-property-decorator
```
see vue-property-decorator用法详解 https://blog.csdn.net/weixin_44116302/article/details/111225763#PropSync_141
```
### 采用模块联邦
```
远程引用需要先在global.d.ts中注册
例:如需使用远程地图
1.在global.d.ts中注册 declare module 'common/map';
2.在页面中引用
@Component({
components:{MapComponent:()=>import("common/map") }
})
3.在html中应用 <MapComponent :id="'testID'" @onMapLoaded="getMap($event)"></MapComponent>
```

5
babel.config.js 100644
View File

@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}

76
package.json 100644
View File

@ -0,0 +1,76 @@
{
"name": "test",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --mode development",
"build": "vue-cli-service build --mode production",
"test": "vue-cli-service build --mode test",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@mapbox/mapbox-gl-draw": "^1.4.1",
"@types/webpack-env": "^1.18.0",
"axios": "^1.3.4",
"core-js": "^3.8.3",
"echarts": "^5.4.2",
"element-ui": "^2.15.13",
"file-saver": "^2.0.5",
"hbt-common": "0.0.7",
"mapbox-gl": "^2.15.0",
"mockjs": "^1.1.0",
"screenfull": "^6.0.2",
"vue": "^2.6.14",
"vue-class-component": "^7.2.3",
"vue-property-decorator": "^9.1.2",
"vue-router": "^3.5.1",
"vuex": "^3.6.2"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-plugin-router": "~5.0.0",
"@vue/cli-plugin-typescript": "~5.0.0",
"@vue/cli-plugin-vuex": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"@vue/eslint-config-typescript": "^9.1.0",
"compression-webpack-plugin": "^5.0.2",
"eslint": "^7.32.0",
"eslint-plugin-vue": "^8.0.3",
"html-loader": "^4.2.0",
"sass": "^1.32.7",
"sass-loader": "^12.0.0",
"svg-sprite-loader": "^6.0.11",
"typescript": "~4.5.5",
"vue-template-compiler": "^2.6.14"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended",
"@vue/typescript/recommended"
],
"parserOptions": {
"ecmaVersion": 2020
},
"rules": {
"@typescript-eslint/no-explicit-any": [
"off"
],
"vue/no-unused-components": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off"
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
]
}

Binary file not shown.

View File

@ -0,0 +1,3 @@
&
Microsoft YaHei Regular 10240-10495

View File

@ -0,0 +1,3 @@
&
Microsoft YaHei Regular 10496-10751

View File

@ -0,0 +1,3 @@
&
Microsoft YaHei Regular 10752-11007

View File

@ -0,0 +1,3 @@
&
Microsoft YaHei Regular 11008-11263

View File

@ -0,0 +1,3 @@
&
Microsoft YaHei Regular 11264-11519

View File

@ -0,0 +1,3 @@
&
Microsoft YaHei Regular 11520-11775

View File

@ -0,0 +1,3 @@
&
Microsoft YaHei Regular 12032-12287

View File

@ -0,0 +1,3 @@
$
Microsoft YaHei Regular 1280-1535

View File

@ -0,0 +1,3 @@
$
Microsoft YaHei Regular 1536-1791

View File

@ -0,0 +1,3 @@
$
Microsoft YaHei Regular 1792-2047

View File

@ -0,0 +1,3 @@
$
Microsoft YaHei Regular 2048-2303

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,3 @@
$
Microsoft YaHei Regular 2304-2559

View File

@ -0,0 +1,3 @@
$
Microsoft YaHei Regular 2560-2815

View File

@ -0,0 +1,3 @@
$
Microsoft YaHei Regular 2816-3071

View File

@ -0,0 +1,3 @@
$
Microsoft YaHei Regular 3072-3327

Some files were not shown because too many files have changed in this diff Show More