Browse Source

提示信息校验

1178232204@qq.com 3 years ago
parent
commit
24e39f3136
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/js/qcScore.js

+ 5 - 0
src/js/qcScore.js

@@ -645,6 +645,11 @@ $(function () {
         if ($(".edit-box .warning").is(":visible")) {
           return;
         }
+        if (!$("#qcMsg").val().trim()) {
+          $(".edit-box .warning .red").text("提示信息不能为空~");
+          $(".edit-box .warning").show();
+          return;
+        }
         const obj = Object.assign({}, info, { explainInfo: $("#delModal #qcInfo").val(), msg: $("#delModal #qcMsg").val(), score: $("#delModal #qcScore").val() });
         editScore(obj);
       });