valentichu 1 год назад
Родитель
Сommit
e763930d01
3 измененных файлов с 0 добавлено и 5 удалено
  1. 0 0
      lib/index.js
  2. 0 3
      src/pages/Alarm/components/complex.jsx
  3. 0 2
      src/pages/Alarm/components/easy.jsx

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
lib/index.js


+ 0 - 3
src/pages/Alarm/components/complex.jsx

@@ -105,7 +105,6 @@ const Complex = (props, ref) => {
 
 
       const { state } = await API2.addRule(obj);
       const { state } = await API2.addRule(obj);
       if (state === 0) {
       if (state === 0) {
-        message.success("保存成功");
         props.onConfirm();
         props.onConfirm();
       }
       }
     } else {
     } else {
@@ -119,12 +118,10 @@ const Complex = (props, ref) => {
       };
       };
       const { state } = await API2.editRule(obj);
       const { state } = await API2.editRule(obj);
       if (state === 0) {
       if (state === 0) {
-        message.success("保存成功");
         props.onConfirm(data.id);
         props.onConfirm(data.id);
       }
       }
     }
     }
     form.resetFields();
     form.resetFields();
-    props.onConfirm();
   });
   });
 
 
   useImperativeHandle(ref, () => {
   useImperativeHandle(ref, () => {

+ 0 - 2
src/pages/Alarm/components/easy.jsx

@@ -140,7 +140,6 @@ const Easy = (props, ref) => {
       API2.addRule(obj)
       API2.addRule(obj)
         .then((res) => {
         .then((res) => {
           if (res?.state === 0) {
           if (res?.state === 0) {
-            message.success("保存成功");
             form.resetFields();
             form.resetFields();
             props.onConfirm();
             props.onConfirm();
           }
           }
@@ -230,7 +229,6 @@ const Easy = (props, ref) => {
       API2.editRule(obj)
       API2.editRule(obj)
         .then((res) => {
         .then((res) => {
           if (res?.state === 0) {
           if (res?.state === 0) {
-            message.success("保存成功");
             form.resetFields();
             form.resetFields();
             props.onConfirm();
             props.onConfirm();
           }
           }

Некоторые файлы не были показаны из-за большого количества измененных файлов