Compare commits

...

5 Commits

Author SHA1 Message Date
时启龙 c4286682b0 docs: update README.md to specify pnpm version as 7+ 2024-12-17 16:30:58 +08:00
时启龙 eedde19492 docs: 更新 README.md,添加环境准备和快速开始指南,修改项目配置说明 2024-12-17 15:06:19 +08:00
时启龙 16b4496100 chore: 项目 -> 应用系统 2024-10-21 17:12:33 +08:00
时启龙 76e15dbf08 chore: 项目 -> 应用系统 2024-10-21 16:56:26 +08:00
时启龙 947199f6e4 chore: 增加忽略文件 2024-09-23 17:05:47 +08:00
3 changed files with 40 additions and 19 deletions

2
.gitignore vendored
View File

@ -1,6 +1,6 @@
.DS_Store .DS_Store
node_modules node_modules
/screen-web /scr-web
# local env files # local env files

View File

@ -1,24 +1,45 @@
# cmp-screen # 博云 CMP Web 前端项目
## Project setup ## 环境准备
```
yarn install - Node.js 16+
- pnpm 7+
## 快速开始
1. 配置私有 NPM 源
```bash
# 设置 registry
npm config set registry http://58.210.154.140:13011/repository/bocloud-npm/
npm config set _auth Ym9jbG91ZDpjbXBAdjU4Nw==
# npm 相关配置
npm config set auto-install-peers=true
npm config set strict-peer-dependencies=false
npm config set shamefully-hoist=true
npm config set always-auth true
``` ```
### Compiles and hot-reloads for development 2. 安装依赖
```
yarn serve ```bash
pnpm install
``` ```
### Compiles and minifies for production 3. 本地开发
```
yarn build ```bash
pnpm run serve # 推荐:使用 vue-cli-service
``` ```
### Lints and fixes files 4. 项目构建
```
yarn lint ```bash
pnpm run build
``` ```
### Customize configuration ## 注意事项
See [Configuration Reference](https://cli.vuejs.org/config/).
- 不推荐使用 vite 进行开发,存在兼容性问题
- 建议使用 vue-cli-service serve 进行本地开发

View File

@ -60,9 +60,9 @@
</div> </div>
</div> </div>
<div class="card"> <div class="card">
<div class="card-title">项目云资源统计</div> <div class="card-title">应用系统云资源统计</div>
<div class="card-body"> <div class="card-body">
<scroll-table :data="projectCount" :column-width="['80px']" :columns="['项目', 'CPU(核)' , '内存(GB)' , '存储(GB)']" :options="{singleHeight: 40}"> <scroll-table :data="projectCount" :column-width="['80px']" :columns="['应用系统', 'CPU(核)' , '内存(GB)' , '存储(GB)']" :options="{singleHeight: 40}">
<template v-slot="scope"> <template v-slot="scope">
<scroll-table-column :value="scope.row.name" width="80px"> <scroll-table-column :value="scope.row.name" width="80px">
</scroll-table-column> </scroll-table-column>
@ -154,7 +154,7 @@ export default {
state.tenantCount = res.data state.tenantCount = res.data
} }
} }
// //
const getProjectCount = async () => { const getProjectCount = async () => {
const res = await getProjectResource(dcId) const res = await getProjectResource(dcId)
if (res.success) { if (res.success) {