Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
|
c4286682b0 | |
|
eedde19492 | |
|
16b4496100 | |
|
76e15dbf08 | |
|
947199f6e4 |
|
@ -1,6 +1,6 @@
|
|||
.DS_Store
|
||||
node_modules
|
||||
/screen-web
|
||||
/scr-web
|
||||
|
||||
|
||||
# local env files
|
||||
|
|
51
README.md
51
README.md
|
@ -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
|
||||
```
|
||||
yarn serve
|
||||
2. 安装依赖
|
||||
|
||||
```bash
|
||||
pnpm install
|
||||
```
|
||||
|
||||
### Compiles and minifies for production
|
||||
```
|
||||
yarn build
|
||||
3. 本地开发
|
||||
|
||||
```bash
|
||||
pnpm run serve # 推荐:使用 vue-cli-service
|
||||
```
|
||||
|
||||
### Lints and fixes files
|
||||
```
|
||||
yarn lint
|
||||
4. 项目构建
|
||||
|
||||
```bash
|
||||
pnpm run build
|
||||
```
|
||||
|
||||
### Customize configuration
|
||||
See [Configuration Reference](https://cli.vuejs.org/config/).
|
||||
## 注意事项
|
||||
|
||||
- 不推荐使用 vite 进行开发,存在兼容性问题
|
||||
- 建议使用 vue-cli-service serve 进行本地开发
|
||||
|
|
|
@ -60,9 +60,9 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-title">项目云资源统计</div>
|
||||
<div class="card-title">应用系统云资源统计</div>
|
||||
<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">
|
||||
<scroll-table-column :value="scope.row.name" width="80px">
|
||||
</scroll-table-column>
|
||||
|
@ -154,7 +154,7 @@ export default {
|
|||
state.tenantCount = res.data
|
||||
}
|
||||
}
|
||||
// 项目资源统计
|
||||
// 应用系统资源统计
|
||||
const getProjectCount = async () => {
|
||||
const res = await getProjectResource(dcId)
|
||||
if (res.success) {
|
||||
|
|
Loading…
Reference in New Issue