修改统计图饼图

This commit is contained in:
471615499@qq.com 2024-11-05 18:21:42 +08:00
parent 72d8a4352e
commit 4035a349e5
3 changed files with 17 additions and 17 deletions

View File

@ -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

View File

@ -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
}
]
}

View File

@ -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