natasha преди 1 година
родител
ревизия
cfb18abd81
променени са 1 файла, в които са добавени 11 реда и са изтрити 8 реда
  1. 11 8
      public/ciyun/ciyunindex.html

+ 11 - 8
public/ciyun/ciyunindex.html

@@ -817,7 +817,7 @@
                 stopWordList = JSON.parse(JSON.stringify(oldstopWordList));
             }
             $("#stop_word_table").empty()
-
+            $("#allwordnumber").text(stopWordList.length)
             // < span style = "margin-right: 24px" id = "edit${i}" @click="edit(item)" > 编辑</span >
             for (let i = 0; i < stopWordList.length; i++) {
                 let node = ` <div class="one">
@@ -860,13 +860,14 @@
                 dataType: "json",
                 type: "post",
                 success: function(data) {
-                    let val = $("#wordContent").val()
-                    if (val != "") {
-                        $("#seekWordBtn").click()
-                    } else {
-                        changeWordData("msg")
-
-                    }
+                    // let val = $("#wordContent").val()
+                    // if (val != "") {
+                    //     $("#seekWordBtn").click()
+                    // } else {
+                    //     changeWordData("msg")
+                        
+                    // }
+                    changeWordData("msg")
                 },
                 error: function(jqXHR, textStatus, errorThrown) {
                     if (jqXHR.status == 401) {
@@ -901,6 +902,7 @@
             })
             // 清空
         $("#emptyWord").click(function() {
+                $("#allwordnumber").text(0)
                 oldstopWordList = []
                 updatawordData()
             })
@@ -937,6 +939,7 @@
                     $("#wordTable").show()
                     $("#addwordDom").hide()
                     updatawordData()
+                    $("#addwordContent").val("")
                 }
             })
             // 确定修改