From 4035a349e5e7e11be0045c8f4471221b275e182c Mon Sep 17 00:00:00 2001 From: "471615499@qq.com" Date: Tue, 5 Nov 2024 18:21:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=9F=E8=AE=A1=E5=9B=BE?= =?UTF-8?q?=E9=A5=BC=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/views/admin/meeting/MeetingCount.vue | 28 ++++++++++++------------ vue.config.js | 4 ++-- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.env.development b/.env.development index 520dcf1..c786263 100644 --- a/.env.development +++ b/.env.development @@ -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 \ No newline at end of file +VUE_APP_MODEL_BASE_URL=https://jgsw.haxy.com.cn/shoot-hand \ No newline at end of file diff --git a/src/views/admin/meeting/MeetingCount.vue b/src/views/admin/meeting/MeetingCount.vue index d57cbc8..44326bd 100644 --- a/src/views/admin/meeting/MeetingCount.vue +++ b/src/views/admin/meeting/MeetingCount.vue @@ -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 } ] } diff --git a/vue.config.js b/vue.config.js index 093deea..7924cdd 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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