chore: 修改杂项

catl
sqlnice 2024-05-23 09:56:03 +08:00
parent 18198466d6
commit 287d307e50
5 changed files with 1351 additions and 197 deletions

7
.prettierrc Normal file
View File

@ -0,0 +1,7 @@
{
"printWidth": 300,
"tabWidth": 2,
"singleQuote": true,
"semi": false,
"trailingComma": "none"
}

View File

@ -17,7 +17,7 @@
"@tweenjs/tween.js": "^18.6.4",
"@vue/composition-api": "^1.0.0-rc.9",
"axios": "^0.21.0",
"cmp-echarts": "2.0.1-5.6-release",
"cmp-echarts": "2.0.0-5.6-release",
"core-js": "^3.6.5",
"crypto-js": "^4.0.0",
"echarts": "^4.9.0",

File diff suppressed because it is too large Load Diff

View File

@ -1,48 +1,48 @@
export const overviewConfigs = [
{
title: "总体情况",
icon: "el-icon-tickets",
type: "COUNT",
title: '总体情况',
icon: 'el-icon-tickets',
type: 'COUNT',
data: [
{
title: "物理机",
className: "lgreen",
unit: "台",
value: 0,
title: '物理机',
className: 'lgreen',
unit: '台',
value: 0
},
{
title: "云主机",
className: "green",
unit: "台",
value: 0,
title: '云主机',
className: 'green',
unit: '台',
value: 0
},
{
title: "云主机在线",
className: "purple",
unit: "台",
value: 0,
},
],
title: '云主机在线',
className: 'purple',
unit: '台',
value: 0
}
]
},
{
title: "平台情况",
icon: "el-icon-monitor",
type: "COUNT",
title: '平台情况',
icon: 'el-icon-monitor',
type: 'COUNT',
data: [
{
title: "私有云",
className: "lgreen",
unit: "个",
value: 0,
},
title: '私有云',
className: 'lgreen',
unit: '个',
value: 0
}
// {
// title: "公有云",
// className: "green",
// unit: "个",
// value: 0,
// },
],
},
]
}
// {
// title: "私有云使用情况",
// icon: "el-icon-data-line",
@ -74,4 +74,4 @@ export const overviewConfigs = [
// },
// ],
// },
];
]

View File

@ -4,13 +4,14 @@
const path = require('path')
const webpack = require('webpack')
const CompressPlugin = require('compress-webpack-plugin')
function resolve (dir) {
function resolve(dir) {
return path.join(__dirname, dir)
}
const httpType = 'https://'
const proxyUrl = 'develop.cmp56.com:60006/' // 代理地址设置
const proxyUrl = '23.33.3.22:60006' // 代理地址设置
// const proxyUrl = '10.20.51.92:7001' // 代理地址设置
const publicPath = process.env.NODE_ENV === 'production' ? '/scr-web/' : '/';
const publicPath = process.env.NODE_ENV === 'production' ? '/scr-web/' : '/'
module.exports = {
publicPath,
assetsDir: 'static',
@ -74,7 +75,7 @@ module.exports = {
.set('services', resolve('src/services'))
.set('utils', resolve('src/utils'))
.set('components', resolve('src/components'))
.set('views', resolve('src/views'));
.set('views', resolve('src/views'))
config.module
.rule('fonts')
.use('url-loader')
@ -89,6 +90,6 @@ module.exports = {
}
}
})
.end();
.end()
}
}