From 3fbf0001666179380cb2044c36bb86ec33e67890 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Thu, 21 Sep 2023 10:15:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/self-defined.scss | 8 ++ src/views/model/alert/deviceparamalert.vue | 14 +- src/views/model/alert/method.vue | 53 ++++--- src/views/model/alert/model.vue | 47 +++--- src/views/model/device/index.vue | 160 ++++++++++++++------- 5 files changed, 184 insertions(+), 98 deletions(-) diff --git a/src/assets/styles/self-defined.scss b/src/assets/styles/self-defined.scss index ad26f99..694dba6 100644 --- a/src/assets/styles/self-defined.scss +++ b/src/assets/styles/self-defined.scss @@ -197,3 +197,11 @@ } } +.childTextAlignRight{ + display: block!important; + text-align: right!important; + div{ + display: block!important; + text-align: right!important; + } +} diff --git a/src/views/model/alert/deviceparamalert.vue b/src/views/model/alert/deviceparamalert.vue index 524c5c5..2977b1f 100644 --- a/src/views/model/alert/deviceparamalert.vue +++ b/src/views/model/alert/deviceparamalert.vue @@ -83,10 +83,10 @@ - + - + @@ -250,7 +250,7 @@ - + @@ -712,6 +712,14 @@ function submitFormPolicy() { }) return; }; + const policyTableRows = proxy.$refs.policyTable.getSelectionRows(); + if(!(policyTableRows?.length>0)){ + ElMessageBox.alert('请勾选需要告警的规则项', '提示', { + confirmButtonText: '确定', + center: true, + }); + return; + } mapFormTable(); addPolicyBatch(policyParams.value).then(response => { proxy.$modal.msgSuccess("新增成功"); diff --git a/src/views/model/alert/method.vue b/src/views/model/alert/method.vue index 42af865..19c8254 100644 --- a/src/views/model/alert/method.vue +++ b/src/views/model/alert/method.vue @@ -1,30 +1,37 @@