From 60f6c3a8fe571070b0bcd961795618f7e90904c3 Mon Sep 17 00:00:00 2001 From: zwq Date: Tue, 9 Apr 2024 11:05:37 +0800 Subject: [PATCH 01/11] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=88=90=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cost/energyCost/index.vue | 7 ++----- src/views/cost/energyCostHis/index.vue | 7 ++----- src/views/cost/rawMaterialConfig/index.vue | 15 ++++++++------- src/views/cost/rawMaterialCost/index.vue | 7 ++----- src/views/cost/rawMaterialCostHis/index.vue | 7 ++----- 5 files changed, 16 insertions(+), 27 deletions(-) diff --git a/src/views/cost/energyCost/index.vue b/src/views/cost/energyCost/index.vue index 75a4ac39..1b685d13 100644 --- a/src/views/cost/energyCost/index.vue +++ b/src/views/cost/energyCost/index.vue @@ -32,6 +32,7 @@ import { import { getEnergyTypeListAll } from '@/api/base/energyType'; import { publicFormatter } from '@/utils/dict'; import moment from 'moment'; +import tableHeightMixin from '@/mixins/lb/tableHeightMixin'; const tableProps = [ { @@ -61,7 +62,7 @@ const tableProps = [ ]; export default { - mixins: [basicPage], + mixins: [basicPage,tableHeightMixin], data() { return { urlOptions: { @@ -70,7 +71,6 @@ export default { }, tableData: [], tableProps, - tableH: this.tableHeight(260), drawerVisible: false, formConfig: [ { @@ -113,9 +113,6 @@ export default { }, components: {}, created() { - window.addEventListener('resize', () => { - this.tableH = this.tableHeight(260) - }) getEnergyTypeListAll().then((response) => { this.formConfig[0].selectOptions = response.data; }); diff --git a/src/views/cost/energyCostHis/index.vue b/src/views/cost/energyCostHis/index.vue index a09303c1..82947416 100644 --- a/src/views/cost/energyCostHis/index.vue +++ b/src/views/cost/energyCostHis/index.vue @@ -32,6 +32,7 @@ import { import { getEnergyTypeListAll } from '@/api/base/energyType'; import { publicFormatter } from '@/utils/dict'; import moment from 'moment'; +import tableHeightMixin from '@/mixins/lb/tableHeightMixin'; const tableProps = [ { @@ -71,7 +72,7 @@ const tableProps = [ ]; export default { - mixins: [basicPage], + mixins: [basicPage,tableHeightMixin], data() { return { urlOptions: { @@ -80,7 +81,6 @@ export default { }, tableData: [], tableProps, - tableH: this.tableHeight(260), drawerVisible: false, formConfig: [ { @@ -137,9 +137,6 @@ export default { }, components: {}, created() { - window.addEventListener('resize', () => { - this.tableH = this.tableHeight(260) - }) const end = new Date(); const start = new Date(); start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); diff --git a/src/views/cost/rawMaterialConfig/index.vue b/src/views/cost/rawMaterialConfig/index.vue index b7a6fa7e..ca800c14 100644 --- a/src/views/cost/rawMaterialConfig/index.vue +++ b/src/views/cost/rawMaterialConfig/index.vue @@ -12,7 +12,7 @@ :table-props="tableProps" :page="listQuery.pageNo" :limit="listQuery.pageSize" - :max-height="tableH" + :max-height="tableH" :table-data="tableData"> { - this.tableH = this.tableHeight(260) - }) getHotMaterialList().then((response) => { this.formConfig[0].selectOptions = response.data; }); diff --git a/src/views/cost/rawMaterialCost/index.vue b/src/views/cost/rawMaterialCost/index.vue index 3e75cd49..0acb7d76 100644 --- a/src/views/cost/rawMaterialCost/index.vue +++ b/src/views/cost/rawMaterialCost/index.vue @@ -32,6 +32,7 @@ import { import { getHotMaterialList } from '@/api/base/coreHotMaterial'; import { publicFormatter } from '@/utils/dict'; import moment from 'moment'; +import tableHeightMixin from '@/mixins/lb/tableHeightMixin'; const tableProps = [ { @@ -66,7 +67,7 @@ const tableProps = [ ]; export default { - mixins: [basicPage], + mixins: [basicPage,tableHeightMixin], data() { return { urlOptions: { @@ -75,7 +76,6 @@ export default { }, tableData: [], tableProps, - tableH: this.tableHeight(260), drawerVisible: false, formConfig: [ { @@ -118,9 +118,6 @@ export default { }, components: {}, created() { - window.addEventListener('resize', () => { - this.tableH = this.tableHeight(260) - }) getHotMaterialList().then((response) => { this.formConfig[0].selectOptions = response.data; }); diff --git a/src/views/cost/rawMaterialCostHis/index.vue b/src/views/cost/rawMaterialCostHis/index.vue index a0cd6f5d..bf005423 100644 --- a/src/views/cost/rawMaterialCostHis/index.vue +++ b/src/views/cost/rawMaterialCostHis/index.vue @@ -32,6 +32,7 @@ import { import { getHotMaterialList } from '@/api/base/coreHotMaterial'; import { publicFormatter } from '@/utils/dict'; import moment from 'moment'; +import tableHeightMixin from '@/mixins/lb/tableHeightMixin'; const tableProps = [ { @@ -70,7 +71,7 @@ const tableProps = [ ]; export default { - mixins: [basicPage], + mixins: [basicPage,tableHeightMixin], data() { return { urlOptions: { @@ -79,7 +80,6 @@ export default { }, tableData: [], tableProps, - tableH: this.tableHeight(260), drawerVisible: false, formConfig: [ { @@ -136,9 +136,6 @@ export default { }, components: {}, created() { - window.addEventListener('resize', () => { - this.tableH = this.tableHeight(260) - }) const end = new Date(); const start = new Date(); start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); From ea04d55fc1e35232c370143512ce2ed1bbdfb0af Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Tue, 9 Apr 2024 13:04:40 +0800 Subject: [PATCH 02/11] =?UTF-8?q?=E9=A9=BE=E9=A9=B6=E8=88=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 6 +- src/views/databoard/kiln/MaterialCost.vue | 71 +- src/views/system/menu/index.vue | 941 +++++++++++++--------- 3 files changed, 602 insertions(+), 416 deletions(-) diff --git a/.env.dev b/.env.dev index 75b4a12d..e9e1ad70 100644 --- a/.env.dev +++ b/.env.dev @@ -25,8 +25,10 @@ VUE_APP_BASE_API = 'http://192.168.0.33:48082' # VUE_APP_BASE_API = 'http://192.168.1.78:48082' # VUE_APP_BASE_API = 'http://192.168.1.47:48082' # socket地址 -VUE_APP_Socket_API = 'ws://10.70.2.2:8080' -VUE_APP_Socket_Dcs_API = 'ws://10.70.180.10:8081' +# VUE_APP_Socket_API = 'ws://10.70.2.2:8080' +# VUE_APP_Socket_Dcs_API = 'ws://10.70.180.10:8081' +VUE_APP_Socket_API = 'ws://192.168.0.33:48082' +VUE_APP_Socket_Dcs_API = 'ws://192.168.0.33:8080' # 积木报表指向地址 VUE_APP_JIMU_API = 'http://10.70.2.22:8080' diff --git a/src/views/databoard/kiln/MaterialCost.vue b/src/views/databoard/kiln/MaterialCost.vue index 3ce4ddde..0b7cbfc7 100644 --- a/src/views/databoard/kiln/MaterialCost.vue +++ b/src/views/databoard/kiln/MaterialCost.vue @@ -1,24 +1,23 @@ - - @@ -81,12 +61,9 @@ export default { return {}; }, computed: { - materialMsg1() { - return this.$store.state.websocket.material.slice(0,9) + materialMsg() { + return this.$store.state.websocket.material; }, - materialMsg2() { - return this.$store.state.websocket.material.slice(9) - } }, methods: {}, }; diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index 082db5a8..ae8c3610 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -1,82 +1,194 @@ From fef8824844a8c273c10eb11c08bab9c56ecfb1e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Tue, 9 Apr 2024 16:05:28 +0800 Subject: [PATCH 03/11] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 7 ++--- src/api/base/qualityHotMaterial.js | 2 +- src/api/base/qualityScrapLog.js | 2 +- src/api/monitoring/statisticalData.js | 6 ++--- .../components/coldDoubleYChart.vue | 5 +++- .../components/doubleYChart .vue | 5 +++- .../base/qualityScrapLog/add-or-updata.vue | 2 +- .../quality/base/qualityScrapLog/index.vue | 26 +++++++++---------- 8 files changed, 31 insertions(+), 24 deletions(-) diff --git a/.env.dev b/.env.dev index 75b4a12d..5f0b49b6 100644 --- a/.env.dev +++ b/.env.dev @@ -1,8 +1,8 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2024-04-03 11:22:19 - # @LastEditors: DY + # @LastEditTime: 2024-04-09 08:44:55 + # @LastEditors: zhp # @Description: ### # 开发环境配置 @@ -20,10 +20,11 @@ VUE_APP_TITLE = MES系统 # VUE_APP_BASE_API = 'http://192.168.1.8:48082' # VUE_APP_BASE_API = 'http://192.168.4.173:9001' # VUE_APP_BASE_API = 'http://192.168.1.104:48082' -VUE_APP_BASE_API = 'http://192.168.0.33:48082' +# VUE_APP_BASE_API = 'http://192.168.0.33:48082' # VUE_APP_BASE_API = 'http://192.168.1.62:48082' # VUE_APP_BASE_API = 'http://192.168.1.78:48082' # VUE_APP_BASE_API = 'http://192.168.1.47:48082' +VUE_APP_BASE_API = 'http://192.168.1.78:48082' # socket地址 VUE_APP_Socket_API = 'ws://10.70.2.2:8080' VUE_APP_Socket_Dcs_API = 'ws://10.70.180.10:8081' diff --git a/src/api/base/qualityHotMaterial.js b/src/api/base/qualityHotMaterial.js index b665f1dc..694baa5c 100644 --- a/src/api/base/qualityHotMaterial.js +++ b/src/api/base/qualityHotMaterial.js @@ -2,7 +2,7 @@ /* * @Author: zhp * @Date: 2023-11-06 15:38:12 - * @LastEditTime: 2023-12-15 15:29:16 + * @LastEditTime: 2024-04-09 15:14:40 * @LastEditors: zhp * @Description: */ diff --git a/src/api/base/qualityScrapLog.js b/src/api/base/qualityScrapLog.js index f0bdaa69..dfd51aaa 100644 --- a/src/api/base/qualityScrapLog.js +++ b/src/api/base/qualityScrapLog.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2023-11-07 15:02:37 - * @LastEditTime: 2023-11-07 18:32:07 + * @LastEditTime: 2024-04-09 15:14:42 * @LastEditors: zhp * @Description: */ diff --git a/src/api/monitoring/statisticalData.js b/src/api/monitoring/statisticalData.js index 2d0f19be..40011cfc 100644 --- a/src/api/monitoring/statisticalData.js +++ b/src/api/monitoring/statisticalData.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2023-11-07 14:10:18 - * @LastEditTime: 2023-11-16 17:49:52 + * @LastEditTime: 2024-04-09 09:17:02 * @LastEditors: zhp * @Description: */ @@ -18,14 +18,14 @@ export function getStatisticalDataPage(query) { export function getWorkOrderList(query) { return request({ - url: '/base/core-work-order/listbyfilter', + url: 'base/quality-inspection-record/listbyfilter', method: 'get', params: query, }) } export function getProductList(query) { return request({ - url: '/base/core-product/listAll', + url: 'base/statistical-data/listAll', method: 'get', params: query, }) diff --git a/src/views/OperationalOverview/components/coldDoubleYChart.vue b/src/views/OperationalOverview/components/coldDoubleYChart.vue index 39242365..57c58dec 100644 --- a/src/views/OperationalOverview/components/coldDoubleYChart.vue +++ b/src/views/OperationalOverview/components/coldDoubleYChart.vue @@ -2,7 +2,7 @@ @@ -225,6 +225,9 @@ export default { scale: true, type: 'value', name: '良品率/%', + max: 100,//最大值 + min: 0,//最小值 + interval: 20,//间隔 nameTextStyle: {// y轴上方单位的颜色 color: 'rgba(255,255,255,0.5)', // 坐标值得具体的颜色 align: "left", diff --git a/src/views/OperationalOverview/components/doubleYChart .vue b/src/views/OperationalOverview/components/doubleYChart .vue index 70a842dd..07c646a1 100644 --- a/src/views/OperationalOverview/components/doubleYChart .vue +++ b/src/views/OperationalOverview/components/doubleYChart .vue @@ -1,7 +1,7 @@ @@ -224,6 +224,9 @@ export default { scale: true, type: 'value', name: '良品率/%', + max: 100,//最大值 + min: 0,//最小值 + interval: 20,//间隔 nameTextStyle: {// y轴上方单位的颜色 color: 'rgba(255,255,255,0.5)', // 坐标值得具体的颜色 align: "left", diff --git a/src/views/quality/base/qualityScrapLog/add-or-updata.vue b/src/views/quality/base/qualityScrapLog/add-or-updata.vue index e713de4c..9e944998 100644 --- a/src/views/quality/base/qualityScrapLog/add-or-updata.vue +++ b/src/views/quality/base/qualityScrapLog/add-or-updata.vue @@ -1,7 +1,7 @@ diff --git a/src/views/quality/base/qualityScrapLog/index.vue b/src/views/quality/base/qualityScrapLog/index.vue index 5b83208d..39659cc8 100644 --- a/src/views/quality/base/qualityScrapLog/index.vue +++ b/src/views/quality/base/qualityScrapLog/index.vue @@ -26,7 +26,7 @@ import { getQualityScrapLogPage, deleteQualityScrapLog, getWorkOrderList, - getTeamList + // getTeamList } from '@/api/base/qualityScrapLog'; const tableProps = [ @@ -189,18 +189,18 @@ export default { // console.log(this.formConfig[0].selectOptions); // this.listQuery.total = response.data.total; }) - getTeamList().then((res) => { - console.log(res); - // console.log(response); - this.formConfig[1].selectOptions = res.data.map((item) => { - return { - name: item.name, - id: item.id - } - }) - // console.log(this.formConfig[0].selectOptions); - // this.listQuery.total = response.data.total; - }) + // getTeamList().then((res) => { + // console.log(res); + // // console.log(response); + // this.formConfig[1].selectOptions = res.data.map((item) => { + // return { + // name: item.name, + // id: item.id + // } + // }) + // // console.log(this.formConfig[0].selectOptions); + // // this.listQuery.total = response.data.total; + // }) }, getDataList() { this.dataListLoading = true; From 93236f9828fe591d0030f1619a6a36cfaa24c285 Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Wed, 10 Apr 2024 14:17:30 +0800 Subject: [PATCH 04/11] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E9=83=A8=E5=88=86?= =?UTF-8?q?=E7=9B=91=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/choicePart/index.vue | 698 +++++++++--------- src/views/databoard/deepProcessing/index.vue | 145 ++-- src/views/databoard/kiln/index.vue | 142 ++-- src/views/databoard/wholePlant/index.vue | 141 ++-- .../components/monitoringRingCharts.vue | 373 ++++++---- 5 files changed, 799 insertions(+), 700 deletions(-) diff --git a/src/views/choicePart/index.vue b/src/views/choicePart/index.vue index add8d8bd..7a27bbb4 100644 --- a/src/views/choicePart/index.vue +++ b/src/views/choicePart/index.vue @@ -1,348 +1,368 @@ \ No newline at end of file diff --git a/src/views/databoard/deepProcessing/index.vue b/src/views/databoard/deepProcessing/index.vue index f906b1ce..0de84a97 100644 --- a/src/views/databoard/deepProcessing/index.vue +++ b/src/views/databoard/deepProcessing/index.vue @@ -1,8 +1,11 @@