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 @@
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
+
+
-
+
-
+
-
+
-
-
+
-
-
+
+
+
搜索
重置
-
+ {{editName}}
-
-
-
@@ -224,8 +212,7 @@
-
-
+
@@ -258,7 +245,12 @@
-
+
+
+
+
操作![Image]()
+
+
-