Ver código fonte

提示信息校验

1178232204@qq.com 3 anos atrás
pai
commit
24e39f3136
1 arquivos alterados com 5 adições e 0 exclusões
  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);
       });