From f2a03043abdc79625c2cafa0079d44e58bb5f519 Mon Sep 17 00:00:00 2001 From: opensnail <598092184@qq.com> Date: Tue, 30 Apr 2024 17:50:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(sj=5F1.0.0):=20=E5=AE=8C=E6=88=90=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../notify-recipient-detail-drawer.vue | 3 +- src/views/notify/scene/index.vue | 48 +++++++++++-- .../modules/notify-config-detail-drawer.vue | 69 +++++++++++++++++++ .../modules/notify-config-operate-drawer.vue | 4 +- 4 files changed, 117 insertions(+), 7 deletions(-) create mode 100644 src/views/notify/scene/modules/notify-config-detail-drawer.vue diff --git a/src/views/notify/recipient/modules/notify-recipient-detail-drawer.vue b/src/views/notify/recipient/modules/notify-recipient-detail-drawer.vue index 45ac9c8..bd798f6 100644 --- a/src/views/notify/recipient/modules/notify-recipient-detail-drawer.vue +++ b/src/views/notify/recipient/modules/notify-recipient-detail-drawer.vue @@ -25,8 +25,7 @@ const visible = defineModel('visible', { watch( () => props.rowData, () => { - console.log(props.rowData); - const rowData = props.rowData?.notifyAttribute; + const rowData = props.rowData?.notifyAttribute || null; notifyAttribute.value = JSON.parse(rowData!) || {}; }, { immediate: true } diff --git a/src/views/notify/scene/index.vue b/src/views/notify/scene/index.vue index 05bc1b0..7a71a4d 100644 --- a/src/views/notify/scene/index.vue +++ b/src/views/notify/scene/index.vue @@ -1,16 +1,22 @@ + + + + diff --git a/src/views/notify/scene/modules/notify-config-operate-drawer.vue b/src/views/notify/scene/modules/notify-config-operate-drawer.vue index 6c26918..a75bb89 100644 --- a/src/views/notify/scene/modules/notify-config-operate-drawer.vue +++ b/src/views/notify/scene/modules/notify-config-operate-drawer.vue @@ -97,7 +97,7 @@ function createDefaultModel(): Model { systemTaskType: 1, notifyStatus: 1, notifyScene: 1, - notifyThreshold: 0, + notifyThreshold: 16, rateLimiterStatus: 0, rateLimiterThreshold: 0, description: '' @@ -316,12 +316,14 @@ watch(visible, () => {