mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 02:09:37 +08:00
修改统计图饼图
This commit is contained in:
parent
72d8a4352e
commit
4035a349e5
@ -1,4 +1,4 @@
|
||||
NODE_ENV=development
|
||||
VUE_APP_PREVIEW=true
|
||||
VUE_APP_API_BASE_URL=/api
|
||||
VUE_APP_MODEL_BASE_URL=https://company.haxy.com.cn:4443/shoot-hand
|
||||
VUE_APP_MODEL_BASE_URL=https://jgsw.haxy.com.cn/shoot-hand
|
@ -504,31 +504,30 @@ export default {
|
||||
// 服务情况
|
||||
let chartServe = echarts.init(document.getElementById('chartServe'))
|
||||
let serveData = data.serve
|
||||
let newServeData = []
|
||||
let serveNumAll = 0
|
||||
for (let key in serveData) {
|
||||
let eachNum = serveData[key].value
|
||||
let eachName = serveData[key].name
|
||||
eachName = eachName.replaceAll('(请在备注中说明视频会议保障运营商)', '')
|
||||
serveNumAll = serveNumAll + eachNum
|
||||
newServeData.push({
|
||||
name: eachName,
|
||||
value: eachNum
|
||||
})
|
||||
}
|
||||
let chartServeOp = {
|
||||
tooltip: {
|
||||
trigger: 'item'
|
||||
},
|
||||
legend: {
|
||||
orient: 'vertical', // 垂直排列
|
||||
right: 10, // 距离右侧 10px
|
||||
top: 'bottom' // 位于底部
|
||||
// orient: 'vertical', // 垂直排列
|
||||
bottom: 0, // 位于底部
|
||||
}, // 图例配置
|
||||
grid: {
|
||||
top: '0',
|
||||
left: '2%',
|
||||
right: '2%',
|
||||
bottom: '1%',
|
||||
containLabel: true
|
||||
},
|
||||
graphic: {
|
||||
type: 'text',
|
||||
left: 'center',
|
||||
top: 'center',
|
||||
top: '35%',
|
||||
style: {
|
||||
text: serveNumAll, // 这里填写总数
|
||||
textAlign: 'center',
|
||||
@ -542,17 +541,18 @@ export default {
|
||||
type: 'pie',
|
||||
radius: ['50%', '70%'],
|
||||
avoidLabelOverlap: false,
|
||||
center: ['50%', '40%'],
|
||||
label: {
|
||||
show: true
|
||||
show: false
|
||||
},
|
||||
emphasis: {
|
||||
label: {
|
||||
show: true,
|
||||
show: false,
|
||||
fontSize: 40,
|
||||
fontWeight: 'bold'
|
||||
}
|
||||
},
|
||||
data: serveData
|
||||
data: newServeData
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -110,8 +110,8 @@ const vueConfig = {
|
||||
port: 8000,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://127.0.0.1:9227',
|
||||
// target: 'https://baoxiu.jsgdha.com/shoot-hand',
|
||||
//target: 'http://127.0.0.1:9227',
|
||||
target: 'https://jgsw.haxy.com.cn/shoot-hand',
|
||||
pathRewrite: { '^/api': '' },
|
||||
ws: false,
|
||||
changeOrigin: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user