|
@@ -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;
|
|
|
}
|
|
|
|