From 42c42abc08eb31e485fff537c273dc37e403faad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’>
Date: Tue, 23 Apr 2024 16:19:01 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8A=A5=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.dev | 6 +--
.../components/coldDoubleYChart.vue | 22 +++++++---
.../components/doubleYChart .vue | 25 +++++++----
src/views/report/ingredientReport/day.vue | 43 ++++++++++++++++---
4 files changed, 72 insertions(+), 24 deletions(-)
diff --git a/.env.dev b/.env.dev
index 17c0a14b..4b77c9d8 100644
--- a/.env.dev
+++ b/.env.dev
@@ -1,7 +1,7 @@
###
# @Author: zhp
# @Date: 2024-04-12 14:30:48
- # @LastEditTime: 2024-04-23 13:52:57
+ # @LastEditTime: 2024-04-23 15:43:31
# @LastEditors: zhp
# @Description:
###
@@ -13,9 +13,9 @@ VUE_APP_TITLE = MES系统
# 芋道管理系统/开发环境
VUE_APP_BASE_API = 'http://192.168.0.33:48082'
-# VUE_APP_BASE_API = 'http://192.168.1.104:48082'
+# VUE_APP_BASE_API = 'http://192.168.4.176:48082'
# 积木报表指向地址
-VUE_APP_JIMU_API = 'http://192.168.0.33:48082'
+VUE_APP_JIMU_API = 'http://192.168.1.101:48082'
# socket地址(现场)
# VUE_APP_Socket_API = 'ws://10.70.2.2:8080'
diff --git a/src/views/OperationalOverview/components/coldDoubleYChart.vue b/src/views/OperationalOverview/components/coldDoubleYChart.vue
index 71d469bc..e742f12d 100644
--- a/src/views/OperationalOverview/components/coldDoubleYChart.vue
+++ b/src/views/OperationalOverview/components/coldDoubleYChart.vue
@@ -2,7 +2,7 @@
@@ -83,6 +83,9 @@ export default {
this.chart = null
},
methods: {
+ // getNumLength(num) {
+ // return num.toString().length;
+ // },
initChart(nameList, passRateList, outputNumList) {
console.log(nameList, passRateList)
let series= [
@@ -218,11 +221,10 @@ export default {
// },
yAxis: [
{
- min: function() { // 取最小值向下取整为最小刻度
+ min: function () { // 取最小值向下取整为最小刻度
return 0
},
- max: function(value) { // 取最大值向上取整为最大刻度
- return Math.ceil(value.max)
+ max: function (value) { // 取最大值向上取整为最大刻度
},
scale: true,
type: 'value',
@@ -266,8 +268,16 @@ export default {
// },
},
{
- min: 0,
- max: 100000,
+ min: function () { // 取最小值向下取整为最小刻度
+ return 0
+ },
+ max: function (value) { // 取最大值向上取整为最大刻度
+
+ // console.log(value.max.toString().length)
+ // String(value.max)[0]
+ // for
+ // return String(value.max)[0] +
+ },
minInterval: 5,//间隔
scale: true,
type: 'value',
diff --git a/src/views/OperationalOverview/components/doubleYChart .vue b/src/views/OperationalOverview/components/doubleYChart .vue
index 658a6151..62b1e1c0 100644
--- a/src/views/OperationalOverview/components/doubleYChart .vue
+++ b/src/views/OperationalOverview/components/doubleYChart .vue
@@ -1,7 +1,7 @@
@@ -217,12 +217,11 @@ export default {
// },
yAxis: [
{
- // min: function() { // 取最小值向下取整为最小刻度
- // return 0
- // },
- // max: function(value) { // 取最大值向上取整为最大刻度
- // return Math.ceil(value.max)
- // },
+ min: function () { // 取最小值向下取整为最小刻度
+ return 0
+ },
+ max: function (value) { // 取最大值向上取整为最大刻度
+ },
scale: true,
type: 'value',
name: '良品率/%',
@@ -265,8 +264,16 @@ export default {
// },
},
{
- min: 0,
- max: 100000,
+ min: function () { // 取最小值向下取整为最小刻度
+ return 0
+ },
+ max: function (value) { // 取最大值向上取整为最大刻度
+
+ // console.log(value.max.toString().length)
+ // String(value.max)[0]
+ // for
+ // return String(value.max)[0] +
+ },
minInterval: 5,//间隔
scale: true,
type: 'value',
diff --git a/src/views/report/ingredientReport/day.vue b/src/views/report/ingredientReport/day.vue
index bd48be34..399495e6 100644
--- a/src/views/report/ingredientReport/day.vue
+++ b/src/views/report/ingredientReport/day.vue
@@ -1,7 +1,7 @@
@@ -35,7 +35,7 @@
-->
-
+