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