From e2ac7e4ae546e7dd501f9f7c5f7086dd97217189 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Wed, 27 Mar 2024 12:14:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=BB=A7=E7=94=B5=E5=99=A8K=E5=8F=98?= =?UTF-8?q?=E5=A4=A7=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/RelayCabinetLayout/GeneraterCiCjConfig.ts | 2 +- src/layouts/RelayCabinetLayout/GeneraterCiQdConfig.ts | 2 +- src/layouts/RelayCabinetLayout/GeneraterRelayLayoutConfig.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layouts/RelayCabinetLayout/GeneraterCiCjConfig.ts b/src/layouts/RelayCabinetLayout/GeneraterCiCjConfig.ts index 51db77b..cb5224d 100644 --- a/src/layouts/RelayCabinetLayout/GeneraterCiCjConfig.ts +++ b/src/layouts/RelayCabinetLayout/GeneraterCiCjConfig.ts @@ -684,7 +684,7 @@ const garageDoorCjList = [ ], [ { - code: 'kMJ', + code: 'KMJ', position: PostionType.Q, }, ], diff --git a/src/layouts/RelayCabinetLayout/GeneraterCiQdConfig.ts b/src/layouts/RelayCabinetLayout/GeneraterCiQdConfig.ts index 087b2b0..0b60b11 100644 --- a/src/layouts/RelayCabinetLayout/GeneraterCiQdConfig.ts +++ b/src/layouts/RelayCabinetLayout/GeneraterCiQdConfig.ts @@ -99,7 +99,7 @@ upScreenDoorQdList.forEach((qdData) => { const garageDoorQdList = [ { code: 'CKM', - refDeviceCodes: [['kMJ'], ['GMJ']], + refDeviceCodes: [['KMJ'], ['GMJ']], }, ]; diff --git a/src/layouts/RelayCabinetLayout/GeneraterRelayLayoutConfig.ts b/src/layouts/RelayCabinetLayout/GeneraterRelayLayoutConfig.ts index 9a7904c..77cd90b 100644 --- a/src/layouts/RelayCabinetLayout/GeneraterRelayLayoutConfig.ts +++ b/src/layouts/RelayCabinetLayout/GeneraterRelayLayoutConfig.ts @@ -453,7 +453,7 @@ const garageDoorCombinations = [ model: RelayModelType.JWXC_1700, }, { - code: 'kMJ', + code: 'KMJ', model: RelayModelType.JWXC_1700, }, { From 0a2641c20fada35b21627c8b42eb1ba796666061 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Wed, 27 Mar 2024 13:43:00 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=B8=80=E9=94=AE=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=BB=A7=E7=94=B5=E5=99=A8=E4=BF=AE=E6=94=B9=EF=BC=9A=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=BE=B9=E7=95=8C=E6=9D=A1=E4=BB=B6=E7=9A=84=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/drawApp/relayCabinetLayoutApp.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/drawApp/relayCabinetLayoutApp.ts b/src/drawApp/relayCabinetLayoutApp.ts index 488d0ff..4ce2a6d 100644 --- a/src/drawApp/relayCabinetLayoutApp.ts +++ b/src/drawApp/relayCabinetLayoutApp.ts @@ -435,7 +435,11 @@ export function creatCiCjListByCombinationtype( ciCjList.cjList[i] = new relayCabinetGraphicData.CjDataSet(); ciCjList.cjList[i].name = 'D' + (i + 1); for (let j = 0; j < rows; j++) { - if (i < cols - 1 || (i == cols - 1 && j < allCjData.length % rows)) { + if ( + i < cols - 1 || + (i == cols - 1 && j < allCjData.length % rows) || + (i == cols - 1 && allCjData.length % rows == 0) + ) { ciCjList.cjList[i].bitList[j] = allCjData[i * rows + j]; } else { ciCjList.cjList[i].bitList[j] = new relayCabinetGraphicData.CjData();