소스 검색

修改反馈bug及词云问题解决

qinpeng 2 년 전
부모
커밋
509a3c7fa5
3개의 변경된 파일26개의 추가작업 그리고 8개의 파일을 삭제
  1. 4 2
      public/ciyun/ciyunindex.html
  2. 1 0
      src/views/Textanalysis/WordTable.vue
  3. 21 6
      src/views/Textanalysis/index.vue

+ 4 - 2
public/ciyun/ciyunindex.html

@@ -13,7 +13,7 @@
     <script type="text/javascript" src="./layui/layui.js"></script>
     <link rel="stylesheet" href="./css/common.css">
     <link rel="stylesheet" href="./css/jiaocai.css">
-    <link rel="stylesheet" href="./css//font/font.css">
+    <link rel="stylesheet" href="./css/font/font.css">
     <script src="../config.js"></script>
     <style type="text/css">
         #stop:hover {
@@ -428,13 +428,15 @@
                 success: function (res) {
                     let str = ''
                     res.data.result.forEach(item => {
+                        if (item.word.indexOf(" ") != -1) {
+                            item.word = item.word.replace(" ", "")
+                        }
                         str += item.word + " "
                     })
                     ciyunData = res.data.result
                     text = str
                     $("#text").val(text);
                     $("#go").trigger("click");
-
                 }
             })
         }

+ 1 - 0
src/views/Textanalysis/WordTable.vue

@@ -556,6 +556,7 @@ export default {
       }
       data.remarks = JSON.stringify(arr);
       data.color = color;
+      data.leftNavIndex = this.typeIndex;
       sessionStorage.setItem("tablehighlight", true);
 
       window.open(

+ 21 - 6
src/views/Textanalysis/index.vue

@@ -134,7 +134,8 @@
               <template v-if="chartIndex != 3">
                 <el-switch
                   v-model="ratioShow"
-                  :inactive-text="ratioShow ? '比例' : '数量'"
+                  inactive-text="数量"
+                  active-text="比例"
                   :width="26"
                   style="margin-left: 24px"
                   @change="changeratioShow"
@@ -266,6 +267,10 @@
                 <span class="line"></span>
                 <span>{{ base.pinyinCount }} / {{ base.pinyinTextCount }}</span>
               </div>
+              <div class="twoline">
+                <span class="line"></span>
+                <span class="line"></span>
+              </div>
               <div>
                 <span
                   >汉字难度
@@ -274,6 +279,10 @@
                 <span class="line"></span>
                 <span>{{ base.wordCount }} / {{ base.wordTextCount }}</span>
               </div>
+              <div class="twoline">
+                <span class="line"></span>
+                <span class="line"></span>
+              </div>
               <div>
                 <span>词汇难度{{ difficulty.vocabularyDifficulty }}</span>
                 <span class="line"></span>
@@ -468,7 +477,7 @@ export default {
       wordsMargin: 3,
       fenci: false,
       pinyinShow: false,
-      leftNavIndex: 0,
+      leftNavIndex: 2,
       leftList: null,
       colorValue: "#FF3737",
       colorIndex: 0,
@@ -554,7 +563,7 @@ export default {
         html = this.$(".articel").html();
         this.$("br").remove();
         newhtml = this.$(".articel").html();
-        this.$(".articel").html(html);
+        // this.$(".articel").html(html);
       }
       let dv = document.createElement("div");
       dv.id = "html_dv";
@@ -593,7 +602,6 @@ export default {
   </div>
   </body>
   </html>`;
-      console.log(cxzcxz);
       let converted = htmlDocx.asBlob(content);
       FileSaver.saveAs(converted, "文章.docx");
     },
@@ -1312,6 +1320,7 @@ export default {
           this.textContent = str;
           let flag = sessionStorage.getItem("tablehighlight");
           if (this.$route.query.remarks && flag == "true") {
+            this.cutNav(this.$route.query.leftNavIndex * 1);
             this.wordTablehighlight(
               JSON.parse(this.$route.query.remarks),
               this.$route.query.color
@@ -1762,9 +1771,15 @@ export default {
             font-size: 14px;
             line-height: 22px;
             color: #a6a6a6;
-            > div {
-              margin-left: 24px;
+            .twoline {
+              margin: 0 20px;
+              span {
+                margin: 0 2px;
+              }
             }
+            // > div {
+            //   margin-left: 24px;
+            // }
             .line {
               display: inline-block;
               height: 12px;