From 11722ab3ba9e5453dc42ab86687992150692be27 Mon Sep 17 00:00:00 2001 From: K <1175047471@qq.com> Date: Tue, 12 Mar 2024 15:40:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=BE=E5=A4=87=E5=88=97=E8=A1=A8=20?= =?UTF-8?q?-=20=E6=8C=87=E4=BB=A4=E4=B8=8B=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../device/components/CloudCommand.vue | 13 +++++++---- .../device/components/SendCommandModal.vue | 23 +++++++++++-------- .../device-manage/device/components/index.ts | 1 + src/views/device-manage/device/index.vue | 18 ++++++++++++++- 4 files changed, 41 insertions(+), 14 deletions(-) diff --git a/src/views/device-manage/device/components/CloudCommand.vue b/src/views/device-manage/device/components/CloudCommand.vue index 7e2cc12c..2e1b69a8 100644 --- a/src/views/device-manage/device/components/CloudCommand.vue +++ b/src/views/device-manage/device/components/CloudCommand.vue @@ -12,7 +12,7 @@ import { CloudCommandType } from '@/api/device-manage/device/types' defineProps<{ device?: Device }>() -const [registerModal, { openModal }] = useModal() +const [registerModal, { openModal }] = useModal<{ type: CloudCommandType, productId: string, deviceId: string }>() const commandTypes = [ { @@ -71,7 +71,14 @@ const [register, { reload }] = useTable({
- + 下发 diff --git a/src/views/device-manage/device/components/SendCommandModal.vue b/src/views/device-manage/device/components/SendCommandModal.vue index 56bbe00d..7e4e764a 100644 --- a/src/views/device-manage/device/components/SendCommandModal.vue +++ b/src/views/device-manage/device/components/SendCommandModal.vue @@ -1,5 +1,4 @@