From a048f3627eb431546c666a51046e7797139e29cc Mon Sep 17 00:00:00 2001 From: zcxlsm Date: Wed, 6 Aug 2025 20:38:29 +0800 Subject: [PATCH] =?UTF-8?q?refactor(sis):=20-=20=E5=B0=86=E5=8E=9F?= =?UTF-8?q?=E6=9C=89=E7=9A=84=E5=8D=95=E4=B8=80=E5=A4=96=E9=83=A8=E9=80=9A?= =?UTF-8?q?=E9=81=93=E5=8F=B7=E6=8B=86=E5=88=86=E4=B8=BA=E4=B8=8A=E9=94=AE?= =?UTF-8?q?=E9=80=9A=E9=81=93=E5=8F=B7=E5=92=8C=E4=B8=8B=E9=94=AE=E9=80=9A?= =?UTF-8?q?=E9=81=93=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sis/elevatorInfo/elevatorInfo-modal.vue | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/apps/web-antd/src/views/sis/elevatorInfo/elevatorInfo-modal.vue b/apps/web-antd/src/views/sis/elevatorInfo/elevatorInfo-modal.vue index 34dabeef..616c6704 100644 --- a/apps/web-antd/src/views/sis/elevatorInfo/elevatorInfo-modal.vue +++ b/apps/web-antd/src/views/sis/elevatorInfo/elevatorInfo-modal.vue @@ -111,11 +111,12 @@ async function handleConfirm() { const data = cloneDeep(await formApi.getValues()) // 通道信息 const filteredChannels = dynamicValidateForm.floor - .filter(item => !(item.out.length === 0 && item.in.length === 0)) + .filter(item => !(item.outUp.length === 0 && item.outDown.length === 0 && item.in.length === 0)) .map(item => ({ floorId: item.id, inChannel: item.in, - outChannel: item.out + upChannel: item.outUp, + downChannel: item.outDown, })) data.channels = filteredChannels @@ -223,7 +224,8 @@ async function setupCommunitySelect() { } interface floor { - out: string + outUp: string + outDown: string in: string num: string | number id: string | number @@ -238,7 +240,8 @@ async function handleGetFloor(unitId: string | number) { floorList.value = [] res.forEach((item) => { floorList.value.push({ - out: '', + outUp: '', + outDown: '', in: '', num: item.floorNumber, id: item.id, @@ -268,10 +271,14 @@ async function handleClosed() {
- - + {{ "楼层"+floor.num }} + + - + + + +