Ver código fonte

修改页面参数

natasha 1 ano atrás
pai
commit
1d63e9850f
2 arquivos alterados com 35 adições e 24 exclusões
  1. 24 13
      src/views/Textanalysis/index.vue
  2. 11 11
      src/views/teacher-dev/TextAnalysis.vue

+ 24 - 13
src/views/Textanalysis/index.vue

@@ -71,14 +71,14 @@
               <div
                 v-for="(item, index) in leftList"
                 :key="'one' + index"
-                :class="[seleLevelMapList.indexOf(item.name) != -1 ? 'sele' : '']"
+                :class="[seleLevelMapList.indexOf(item.id) != -1 ? 'sele' : '']"
                 @click="levelMapListEvent(item)"
               >
                 <div class="leftType">
                   <span
                     class="color"
                     :style="{
-                      background: item.name && levelMap[item.name] ? levelMap[item.name].color : '',
+                      background: item.id && levelMap[item.id] ? levelMap[item.id].color : '',
                     }"
                   ></span>
                   <span class="type">{{ item.name }}</span>
@@ -470,17 +470,17 @@ export default {
   created() {
     this.routerData = this.$route.query;
     if (!this.routerData) return;
-    this.partitionKey = Number(this.routerData.partition_key);
-    this.subjectWords = JSON.parse(this.routerData.subject_words || '[]');
-    this.base.wordTextCount = Number(this.routerData.word_text_count);
-    this.base.wordCount = Number(this.routerData.word_count);
-    this.base.vocabularyTextCount = Number(this.routerData.vocabulary_text_count);
-    this.base.vocabularyCount = Number(this.routerData.vocabulary_count);
-    this.base.pinyinCount = Number(this.routerData.pinyin_count);
-    this.base.pinyinTextCount = Number(this.routerData.pinyin_text_count);
-    this.difficulty.pinyinDifficulty = this.routerData.pinyin_difficulty;
-    this.difficulty.vocabularyDifficulty = this.routerData.vocabulary_difficulty;
-    this.difficulty.wordDifficulty = this.routerData.word_difficulty;
+    // this.partitionKey = Number(this.routerData.partition_key);
+    // this.subjectWords = JSON.parse(this.routerData.subject_words || '[]');
+    // this.base.wordTextCount = Number(this.routerData.word_text_count);
+    // this.base.wordCount = Number(this.routerData.word_count);
+    // this.base.vocabularyTextCount = Number(this.routerData.vocabulary_text_count);
+    // this.base.vocabularyCount = Number(this.routerData.vocabulary_count);
+    // this.base.pinyinCount = Number(this.routerData.pinyin_count);
+    // this.base.pinyinTextCount = Number(this.routerData.pinyin_text_count);
+    // this.difficulty.pinyinDifficulty = this.routerData.pinyin_difficulty;
+    // this.difficulty.vocabularyDifficulty = this.routerData.vocabulary_difficulty;
+    // this.difficulty.wordDifficulty = this.routerData.word_difficulty;
     this.id = this.routerData.id
     this.getstatistics();
   },
@@ -1310,6 +1310,17 @@ export default {
                     this.cutNav(Number(this.$route.query.leftNavIndex));
                     this.wordTablehighlight(JSON.parse(this.$route.query.remarks), this.$route.query.color);
                 }
+                this.partitionKey = Number(res.record.partition_key);
+                this.subjectWords = JSON.parse(res.record.subject_words || '[]');
+                this.base.wordTextCount = Number(res.record.word_text_count);
+                this.base.wordCount = Number(res.record.word_count);
+                this.base.vocabularyTextCount = Number(res.record.vocabulary_text_count);
+                this.base.vocabularyCount = Number(res.record.vocabulary_count);
+                this.base.pinyinCount = Number(res.record.pinyin_count);
+                this.base.pinyinTextCount = Number(res.record.pinyin_text_count);
+                this.difficulty.pinyinDifficulty = res.record.pinyin_difficulty;
+                this.difficulty.vocabularyDifficulty = res.record.vocabulary_difficulty;
+                this.difficulty.wordDifficulty = res.record.word_difficulty;
                 this.loading = false;
             }
           

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

@@ -165,17 +165,17 @@ export default {
         this.$router.resolve({
           path: '/textanalysis/Result',
           query: {
-            partition_key: item.partition_key,
-            subject_words: item.subject_words,
-            word_text_count: item.word_text_count,
-            word_count: item.word_count,
-            vocabulary_text_count: item.vocabulary_text_count,
-            vocabulary_count: item.vocabulary_count,
-            pinyin_count: item.pinyin_count,
-            pinyin_text_count: item.pinyin_text_count,
-            pinyin_difficulty: item.pinyin_difficulty,
-            word_difficulty: item.word_difficulty,
-            vocabulary_difficulty: item.vocabulary_difficulty,
+            // partition_key: item.partition_key,
+            // subject_words: item.subject_words,
+            // word_text_count: item.word_text_count,
+            // word_count: item.word_count,
+            // vocabulary_text_count: item.vocabulary_text_count,
+            // vocabulary_count: item.vocabulary_count,
+            // pinyin_count: item.pinyin_count,
+            // pinyin_text_count: item.pinyin_text_count,
+            // pinyin_difficulty: item.pinyin_difficulty,
+            // word_difficulty: item.word_difficulty,
+            // vocabulary_difficulty: item.vocabulary_difficulty,
             type: '文本分析',
             id: item.id
           },