From e13509367ff6bd97fcdd67ed0fdcefbf400554fa Mon Sep 17 00:00:00 2001
From: lau572 <1010031226@qq.com>
Date: Tue, 21 May 2024 14:52:43 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E4=BC=97=E6=9C=8D=E5=8A=A1=E7=BB=9F?=
=?UTF-8?q?=E8=AE=A1=E7=9B=B8=E5=85=B3bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../nucleusThrough/assets/charts3.js | 54 ++++++++++---------
.../components/nucleusThrough/index.vue | 19 ++++---
.../components/postTrendsDay/assets/charts.js | 2 +-
.../postTrendsMonth/assets/charts.js | 2 +-
.../components/postTrendsMonth/index.vue | 2 +-
.../publicService/components/record/index.vue | 13 ++---
6 files changed, 51 insertions(+), 41 deletions(-)
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/nucleusThrough/assets/charts3.js b/ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/nucleusThrough/assets/charts3.js
index cd2e240c..f7f7718d 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/nucleusThrough/assets/charts3.js
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/nucleusThrough/assets/charts3.js
@@ -36,7 +36,7 @@ const series = event_channel.map((name, sid) => {
} else {
return Math.round(params.value * 1000) / 10 + '%'
}
-
+
}
},
data: []
@@ -68,7 +68,11 @@ var options = {
containLabel: true,
},
yAxis: {
- type: 'value'
+ type: 'value',
+ axisLabel: {
+ fontSize: 10,
+ color: "#fff",
+ },
},
@@ -84,30 +88,30 @@ var options = {
fontSize: 10,
color: "#fff",
},
- formatter:function(value)
- {
- var ret = "";//拼接加\n返回的类目项
- var maxLength = 2;//每项显示文字个数
- var valLength = value.length;//X轴类目项的文字个数
- var rowN = Math.ceil(valLength / maxLength); //类目项需要换行的行数
- if (rowN > 1)//如果类目项的文字大于3,
- {
- for (var i = 0; i < rowN; i++) {
- var temp = "";//每次截取的字符串
- var start = i * maxLength;//开始截取的位置
- var end = start + maxLength;//结束截取的位置
- //这里也可以加一个是否是最后一行的判断,但是不加也没有影响,那就不加吧
- temp = value.substring(start, end) + "\n";
- ret += temp; //凭借最终的字符串
- }
- return ret;
- }
- else {
- return value;
- }
- }
+ formatter:function(value)
+ {
+ var ret = "";//拼接加\n返回的类目项
+ var maxLength = 2;//每项显示文字个数
+ var valLength = value.length;//X轴类目项的文字个数
+ var rowN = Math.ceil(valLength / maxLength); //类目项需要换行的行数
+ if (rowN > 1)//如果类目项的文字大于3,
+ {
+ for (var i = 0; i < rowN; i++) {
+ var temp = "";//每次截取的字符串
+ var start = i * maxLength;//开始截取的位置
+ var end = start + maxLength;//结束截取的位置
+ //这里也可以加一个是否是最后一行的判断,但是不加也没有影响,那就不加吧
+ temp = value.substring(start, end) + "\n";
+ ret += temp; //凭借最终的字符串
+ }
+ return ret;
+ }
+ else {
+ return value;
+ }
+ }
},
},
series
};
-export default options;
\ No newline at end of file
+export default options;
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/nucleusThrough/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/nucleusThrough/index.vue
index 8fa4f6ef..aa9aef5c 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/nucleusThrough/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/nucleusThrough/index.vue
@@ -25,13 +25,15 @@
size="mini"
class="btnSearch"
icon="el-icon-search"
+ @click="bindEventTypePublishManageMonth"
>查询