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", "@tweenjs/tween.js": "^18.6.4",
"@vue/composition-api": "^1.0.0-rc.9", "@vue/composition-api": "^1.0.0-rc.9",
"axios": "^0.21.0", "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", "core-js": "^3.6.5",
"crypto-js": "^4.0.0", "crypto-js": "^4.0.0",
"echarts": "^4.9.0", "echarts": "^4.9.0",

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -8,9 +8,10 @@ function resolve (dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
const httpType = 'https://' const httpType = 'https://'
const proxyUrl = 'develop.cmp56.com:60006/' // 代理地址设置 const proxyUrl = '23.33.3.22:60006' // 代理地址设置
// const proxyUrl = '10.20.51.92:7001' // 代理地址设置 // 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 = { module.exports = {
publicPath, publicPath,
assetsDir: 'static', assetsDir: 'static',
@ -74,7 +75,7 @@ module.exports = {
.set('services', resolve('src/services')) .set('services', resolve('src/services'))
.set('utils', resolve('src/utils')) .set('utils', resolve('src/utils'))
.set('components', resolve('src/components')) .set('components', resolve('src/components'))
.set('views', resolve('src/views')); .set('views', resolve('src/views'))
config.module config.module
.rule('fonts') .rule('fonts')
.use('url-loader') .use('url-loader')
@ -89,6 +90,6 @@ module.exports = {
} }
} }
}) })
.end(); .end()
} }
} }