From 212af00ee9502517697e4b4c41f8b71c7d8d8b73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Wed, 24 Jan 2024 15:40:05 +0800 Subject: [PATCH] =?UTF-8?q?statistics=20=E9=A1=B5=E9=9D=A2=E4=B8=ADecharts?= =?UTF-8?q?=20=E5=9B=BE=E8=A1=A8=E9=85=8D=E7=BD=AE=E9=A1=B9=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Statistics/statistics/index.vue | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/views/statistics/Statistics/statistics/index.vue b/src/views/statistics/Statistics/statistics/index.vue index 0c060bb..c79bbc8 100644 --- a/src/views/statistics/Statistics/statistics/index.vue +++ b/src/views/statistics/Statistics/statistics/index.vue @@ -201,14 +201,14 @@ const commonOptions = { let str = arr[0] return str } - // if (index === xDataLength - 1) { - // let arr = value.split(' ') - // arr[0] = arr[0] + ' ' - // // arr[1] = arr[1] + ' ' - // // let str = arr.join('\n') - // let str = arr[0] - // return str - // } + if (index === xDataLength - 1) { + let arr = value.split(' ') + arr[0] = arr[0] + ' ' + // arr[1] = arr[1] + ' ' + // let str = arr.join('\n') + let str = arr[0] + return str + } return val }, }, @@ -397,6 +397,7 @@ export default { ...params, }) if (success) { + // let result = jsonData.result this.spinning = false this.$set(this.itemTitle, id, result.STATION_NAME) if (result.CollectStart.length < 1) { @@ -425,13 +426,10 @@ export default { type: 'line', name: key, smooth: true, + showSymbol: true, + symbolSize: 6, symbol: this.symbolList[num_symbol], animation: false, - lineStyle: { - normal: { - width: 2, - }, - }, data: element, } series.push(param)