From 1d9b97f1d03d11e349e2582e8f191293f62f7c23 Mon Sep 17 00:00:00 2001 From: helloDy <1615073571@qq.com> Date: Fri, 17 Nov 2023 10:24:53 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E4=BF=A1=E6=81=AFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/base/coreEquipment/index.vue | 2 ++ src/views/core/monitoring/data24/index.vue | 25 +++++++++++----------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/views/base/coreEquipment/index.vue b/src/views/base/coreEquipment/index.vue index 1e421925..e8914ba1 100644 --- a/src/views/base/coreEquipment/index.vue +++ b/src/views/base/coreEquipment/index.vue @@ -424,6 +424,7 @@ export default { // 表单参数 form: { id: null, + files: [] }, showUploadComponents: false, // 是否显示上传组件 }; @@ -506,6 +507,7 @@ export default { spec: undefined, description: undefined, remark: undefined, + files: [] }; this.resetForm('form'); }, diff --git a/src/views/core/monitoring/data24/index.vue b/src/views/core/monitoring/data24/index.vue index 3b5b1365..3f2c7e06 100644 --- a/src/views/core/monitoring/data24/index.vue +++ b/src/views/core/monitoring/data24/index.vue @@ -127,18 +127,19 @@ export default { lineData[it.recordTime + '_area'] = it.area }) console.log('你好', this.monitorList) - this.monitorList.forEach(m => { - console.log('455', m) - if (m.lineName === lineData.proLineName) { - m.data.forEach(bad => { - // 转成时间戳 - // console.log('233', Date.parse(bad.dynamicName)) - const stamp = Date.parse(bad.dynamicName) - lineData[stamp + '_bad'] = bad.dynamicValue - lineData[stamp + '_percent'] = (lineData[stamp + '_bad'] / lineData[stamp + '_down'] * 100).toFixed(2) + '%' - }) - } - }) + if (this.monitorList.length > 0) { + this.monitorList.forEach(m => { + if (m.lineName === lineData.proLineName) { + m.data.forEach(bad => { + // 转成时间戳 + // console.log('233', Date.parse(bad.dynamicName)) + const stamp = Date.parse(bad.dynamicName) + lineData[stamp + '_bad'] = bad.dynamicValue + lineData[stamp + '_percent'] = (lineData[stamp + '_bad'] / lineData[stamp + '_down'] * 100).toFixed(2) + '%' + }) + } + }) + } lineData['workOrderName'] = works.join(',') lineData['spec'] = specs.join(',') this.tableData.push(lineData) From 231e9227a5a878670ff925eb8613da4e7dcf460a Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Fri, 17 Nov 2023 14:04:53 +0800 Subject: [PATCH 2/4] 1 --- src/assets/icons/svg/home.svg | 12 ++++++++++++ src/layout/components/NavbarRight.vue | 19 ++++++++++++++----- src/views/choicePart/index.vue | 20 ++++++++++++++++---- 3 files changed, 42 insertions(+), 9 deletions(-) create mode 100644 src/assets/icons/svg/home.svg diff --git a/src/assets/icons/svg/home.svg b/src/assets/icons/svg/home.svg new file mode 100644 index 00000000..d299a79c --- /dev/null +++ b/src/assets/icons/svg/home.svg @@ -0,0 +1,12 @@ + + + 编组 + + + + + + + + + \ No newline at end of file diff --git a/src/layout/components/NavbarRight.vue b/src/layout/components/NavbarRight.vue index 66460aff..228cde89 100644 --- a/src/layout/components/NavbarRight.vue +++ b/src/layout/components/NavbarRight.vue @@ -1,5 +1,8 @@ @@ -244,7 +256,7 @@ export default { align-items: center; } .choicepart-box { - // border: 1px solid red; + // transition: all 0.3s linear; .choicepart-line1 { width: 100%; margin-bottom: 80px; From 75f59c3279b83cc58739c7ae9e7458908f91bfd0 Mon Sep 17 00:00:00 2001 From: zwq Date: Fri, 17 Nov 2023 15:48:17 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0-=E4=BB=93=E5=BA=93-2?= =?UTF-8?q?=E7=BA=A7bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/warehouse/end-material/warehouseLocationHis/index.vue | 2 +- src/views/warehouse/out-material/warehouseLocationHis/index.vue | 2 +- .../warehouse/package-material/warehouseLocationHis/index.vue | 2 +- .../warehouse/part-material/warehouseLocationHis/index.vue | 2 +- src/views/warehouse/raw-material/warehouseLocationHis/index.vue | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/warehouse/end-material/warehouseLocationHis/index.vue b/src/views/warehouse/end-material/warehouseLocationHis/index.vue index a958e289..a4f7805f 100644 --- a/src/views/warehouse/end-material/warehouseLocationHis/index.vue +++ b/src/views/warehouse/end-material/warehouseLocationHis/index.vue @@ -114,7 +114,7 @@ export default { tableData: [], tableProps, tableBtn: [ - this.$auth.hasPermi(`end-material:warehouse-realtime-location-his:query`) + this.$auth.hasPermi(`end-material:warehouse-location-his:query`) ? { type: 'info', btnName: '详情', diff --git a/src/views/warehouse/out-material/warehouseLocationHis/index.vue b/src/views/warehouse/out-material/warehouseLocationHis/index.vue index f9b2944f..12bcd7cf 100644 --- a/src/views/warehouse/out-material/warehouseLocationHis/index.vue +++ b/src/views/warehouse/out-material/warehouseLocationHis/index.vue @@ -114,7 +114,7 @@ export default { tableData: [], tableProps, tableBtn: [ - this.$auth.hasPermi(`out-material:warehouse-realtime-location-his:query`) + this.$auth.hasPermi(`out-material:warehouse-location-his:query`) ? { type: 'info', btnName: '详情', diff --git a/src/views/warehouse/package-material/warehouseLocationHis/index.vue b/src/views/warehouse/package-material/warehouseLocationHis/index.vue index 5c461c40..70b1efa8 100644 --- a/src/views/warehouse/package-material/warehouseLocationHis/index.vue +++ b/src/views/warehouse/package-material/warehouseLocationHis/index.vue @@ -114,7 +114,7 @@ export default { tableData: [], tableProps, tableBtn: [ - this.$auth.hasPermi(`pack-material:warehouse-realtime-location-his:query`) + this.$auth.hasPermi(`pack-material:warehouse-location-his:query`) ? { type: 'info', btnName: '详情', diff --git a/src/views/warehouse/part-material/warehouseLocationHis/index.vue b/src/views/warehouse/part-material/warehouseLocationHis/index.vue index d1518d03..5d1d7273 100644 --- a/src/views/warehouse/part-material/warehouseLocationHis/index.vue +++ b/src/views/warehouse/part-material/warehouseLocationHis/index.vue @@ -114,7 +114,7 @@ export default { tableData: [], tableProps, tableBtn: [ - this.$auth.hasPermi(`part-material:warehouse-realtime-location-his:query`) + this.$auth.hasPermi(`part-material:warehouse-location-his:query`) ? { type: 'info', btnName: '详情', diff --git a/src/views/warehouse/raw-material/warehouseLocationHis/index.vue b/src/views/warehouse/raw-material/warehouseLocationHis/index.vue index 642534cc..e41e654f 100644 --- a/src/views/warehouse/raw-material/warehouseLocationHis/index.vue +++ b/src/views/warehouse/raw-material/warehouseLocationHis/index.vue @@ -114,7 +114,7 @@ export default { tableData: [], tableProps, tableBtn: [ - this.$auth.hasPermi(`raw-material:warehouse-realtime-location-his:query`) + this.$auth.hasPermi(`raw-material:warehouse-location-his:query`) ? { type: 'info', btnName: '详情', From 685a3308dbe3c6140664b0b4afa66e5fc200f872 Mon Sep 17 00:00:00 2001 From: zwq Date: Mon, 20 Nov 2023 16:09:42 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=93=E5=BA=93bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../warehouseGoods/add-or-updata.vue | 24 +++++++++-------- .../end-material/warehouseGoods/index.vue | 12 ++++----- .../warehouseLocationHis/index.vue | 1 - .../warehouseRealtime/add-or-updata.vue | 18 +++---------- .../warehouseRealtimeLocation/attr-add.vue | 1 + .../warehouseGoods/add-or-updata.vue | 24 +++++++++-------- .../out-material/warehouseGoods/index.vue | 12 ++++----- .../warehouseLocationHis/index.vue | 1 - .../warehouseRealtime/add-or-updata.vue | 18 +++---------- .../warehouseRealtimeLocation/attr-add.vue | 1 + .../warehouseGoods/add-or-updata.vue | 24 +++++++++-------- .../package-material/warehouseGoods/index.vue | 12 ++++----- .../warehouseLocationHis/index.vue | 1 - .../warehouseRealtime/add-or-updata.vue | 18 +++---------- .../warehouseRealtimeLocation/attr-add.vue | 1 + .../warehouseGoods/add-or-updata.vue | 24 +++++++++-------- .../part-material/warehouseGoods/index.vue | 12 ++++----- .../warehouseLocationHis/index.vue | 1 - .../warehouseRealtime/add-or-updata.vue | 18 +++---------- .../warehouseRealtimeLocation/attr-add.vue | 1 + .../warehouseGoods/add-or-updata.vue | 24 +++++++++-------- .../raw-material/warehouseGoods/index.vue | 12 ++++----- .../warehouseLocationHis/index.vue | 1 - .../warehouseRealtime/add-or-updata.vue | 27 +++++++++---------- .../warehouseRealtimeLocation/attr-add.vue | 1 + src/views/warehouse/warehouse-info/index.vue | 4 +-- 26 files changed, 131 insertions(+), 162 deletions(-) diff --git a/src/views/warehouse/end-material/warehouseGoods/add-or-updata.vue b/src/views/warehouse/end-material/warehouseGoods/add-or-updata.vue index 059f10d3..8b2ee713 100644 --- a/src/views/warehouse/end-material/warehouseGoods/add-or-updata.vue +++ b/src/views/warehouse/end-material/warehouseGoods/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2023-08-01 13:52:10 * @LastEditors: zwq - * @LastEditTime: 2023-11-17 09:52:17 + * @LastEditTime: 2023-11-20 15:54:28 * @Description: -->