Kaynağa Gözat

词云bug修改

qinpeng 2 yıl önce
ebeveyn
işleme
acb671d022

+ 6 - 7
public/ciyun/ciyunindex.html

@@ -347,7 +347,7 @@
     <script type="text/javascript">
 
         var stopWordList = null;
-        var oldstopWordList = null;
+        var oldstopWordList = [];
         $(function () {
             initStopWords();
             jiekouData();
@@ -365,7 +365,6 @@
             }
         });
         function getdata(stopWordStatus) {
-            console.log(123);
             let data = {
                 searchType: searchType,
                 partitionKey: partitionKey,
@@ -488,8 +487,8 @@
                 dataType: "json",
                 type: "post",
                 success: function (data) {
-                    oldstopWordList = JSON.parse(JSON.stringify(data.data.userStopVocab))
-                    stopWordList = JSON.parse(JSON.stringify(data.data.userStopVocab))
+                    oldstopWordList = JSON.parse(JSON.stringify(data.data.result))
+                    stopWordList = JSON.parse(JSON.stringify(data.data.result))
                     $("#allwordnumber").text(oldstopWordList.length)
                     changeWordData()
                 }, error: function (jqXHR, textStatus, errorThrown) {
@@ -623,10 +622,10 @@
                 isSelectCaseSensitive = false
             }
             if ($stop.hasClass("checkbox-active")) {
-                stopWordStatus = true
+                stopWordStatus = 1
             }
             else {
-                stopWordStatus = false
+                stopWordStatus = 0
             }
             var selvalue = $("#dataTypeSel").children('option:selected').val();
             if (selvalue == 'Lemma') {
@@ -634,7 +633,7 @@
             } else {
                 isSelectLemma = false;
             }
-            getdata(isSelectStopWords)
+            getdata(stopWordStatus)
         }
         function replaceStop(words, stopWordList) {
             var text = "";

+ 1 - 1
src/views/teacher-dev/TextAnalysis.vue

@@ -115,7 +115,7 @@ export default {
     anewSubmit(item) {
       this.loading = true;
       postapi({
-        url: "GCLSTCServer/tools/TS/reparse",
+        url: "/GCLSTCServer/tools/TS/reparse",
         data: {
           partitionKey: item.partitionKey,
         },