Browse Source

词云 停用词表数据结构修改

qinpeng 2 years ago
parent
commit
5ba5c260db
1 changed files with 5 additions and 5 deletions
  1. 5 5
      public/ciyun/ciyunindex.html

+ 5 - 5
public/ciyun/ciyunindex.html

@@ -366,8 +366,8 @@
         });
         function getdata(stopWordStatus) {
             let data = {
-                searchType: searchType,
-                partitionKey: partitionKey,
+                searchType: searchType * 1,
+                partitionKey: partitionKey * 1,
                 stopWordStatus: stopWordStatus,
             }
             $.ajax({
@@ -697,7 +697,7 @@
             $("#stop_word_table").empty()
             for (let i = 0; i < stopWordList.length; i++) {
                 let node = ` <div class="one">
-                        <div>${stopWordList[i].word}</div>
+                        <div>${stopWordList[i]}</div>
                         <div class="right">
                             <span style="margin-right: 24px" id="edit${i}" @click="edit(item)">编辑</span>
                             <span @click="deleteOne(item, i)" id="delete${i}">删除</span>
@@ -803,8 +803,8 @@
                     layer.msg("该词已经存在,请勿重复添加")
                     return
                 }
-                oldstopWordList.unshift({ word: val })
-                stopWordList.unshift({ word: val })
+                oldstopWordList.unshift(val)
+                stopWordList.unshift(val)
                 $("#wordTable").show()
                 $("#addwordDom").hide()
                 updatawordData()