diff --git a/.env.dev b/.env.dev index ccbb05bc..2d9cb29e 100644 --- a/.env.dev +++ b/.env.dev @@ -1,8 +1,8 @@ ### # @Author: zhp # @Date: 2024-04-12 14:30:48 - # @LastEditTime: 2024-04-23 13:52:57 - # @LastEditors: zhp + # @LastEditTime: 2024-04-23 17:25:25 + # @LastEditors: DY # @Description: ### # 开发环境配置 @@ -12,10 +12,10 @@ ENV = 'development' VUE_APP_TITLE = MES系统 # 芋道管理系统/开发环境 -# VUE_APP_BASE_API = 'http://192.168.0.33:48082' -VUE_APP_BASE_API = 'http://10.70.2.2:8080' +VUE_APP_BASE_API = 'http://192.168.0.33: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/api/base/coreDepartment.js b/src/api/base/coreDepartment.js index 5e452bc2..97e17190 100644 --- a/src/api/base/coreDepartment.js +++ b/src/api/base/coreDepartment.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-10-21 11:50:46 - * @LastEditTime: 2023-10-30 14:37:28 + * @LastEditTime: 2024-04-19 17:13:24 * @LastEditors: DY * @Description: */ @@ -65,4 +65,13 @@ export function getCoreDepartmentList(query) { method: 'get', params: query }) -} \ No newline at end of file +} + +// 设备获得所有列表 +export function getDepartmentList(query) { + return request({ + url: '/system/dept/list-all-simple', + method: 'get', + params: query + }) +} 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/equipment/base/inspection/Confirm/add-or-updata.vue b/src/views/equipment/base/inspection/Confirm/add-or-updata.vue index f5b26dce..921f167b 100644 --- a/src/views/equipment/base/inspection/Confirm/add-or-updata.vue +++ b/src/views/equipment/base/inspection/Confirm/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2024-03-25 15:44:49 + * @LastEditTime: 2024-04-22 15:04:40 * @Description: -->