|
|
@@ -6,45 +6,47 @@
|
|
|
<span class="secondary_title" v-if="titleParts.knowledgeName">{{ titleParts.knowledgeName }} / </span>
|
|
|
<span class="main_title">薄弱知识点精准提升</span>
|
|
|
</div>
|
|
|
- <button class="export_btn">
|
|
|
+ <button class="export_btn" @click="$emit('export-knowledge-paps')">
|
|
|
<i class="iconfont icon_export"></i>
|
|
|
导出精准提升试题
|
|
|
</button>
|
|
|
</div>
|
|
|
|
|
|
- <div class="data_container" v-if="knowledgePapsData.length > 0">
|
|
|
- <div class="question_item" v-for="(item, index) in knowledgePapsData" :key="index">
|
|
|
+ <div class="data_container" v-if="knowledgData.length > 0">
|
|
|
+ <div class="question_item" v-for="(item, index) in knowledgData" :key="index">
|
|
|
+ <!-- 推题头部 -->
|
|
|
<div class="question_header">
|
|
|
<div class="question_meta">
|
|
|
<span class="question_num">{{ index + 1 }}</span>
|
|
|
<span class="question_type">题型类型:
|
|
|
- <i class="typeColor" style="color:#333333">{{ item.type }}</i>
|
|
|
+ <i class="typeColor" style="color:#333333">{{ item.questionType }}</i>
|
|
|
</span>
|
|
|
<span class="question_difficulty">难度:
|
|
|
- <i class="typeColor" style="color:#fac858">{{ item.difficulty }}</i>
|
|
|
+ <i class="typeColor" style="color:#fac858">{{ item.questionLevel }}</i>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="question_source">来源:
|
|
|
- <i class="typeColor" style="color:#333333">{{ item.source }}</i>
|
|
|
+ <i class="typeColor" style="color:#333333">{{ item.fromPaper }}</i>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- 推题内容 -->
|
|
|
<div class="question_content">
|
|
|
- <p>{{ item.question }}</p>
|
|
|
- <div class="options">
|
|
|
- <div v-for="(option, optIndex) in item.options" :key="optIndex" class="option_item">
|
|
|
- <span class="option_letter">{{ String.fromCharCode(65 + optIndex) }}.</span>
|
|
|
- <span class="option_text">{{ option }}</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <p v-html ='item.title || "" '></p>
|
|
|
</div>
|
|
|
+ <!-- 推题底部 -->
|
|
|
<div class="question_tags">
|
|
|
<span class="tags_label">知识点:</span>
|
|
|
- <span class="tag" v-for="(tag, tagIndex) in item.tags" :key="tagIndex">{{ tag }}</span>
|
|
|
+ <span class="tag" v-for="(knowledge, index) in (item.knowledge || '').split('、')" :key="index" v-if="knowledge">
|
|
|
+ {{ knowledge }}
|
|
|
+ </span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="map_content" v-else>
|
|
|
- <p>暂无数据</p>
|
|
|
+
|
|
|
+ <div
|
|
|
+ class="module_chart no_content_data no_data"
|
|
|
+ element-loading-background="#ffffff" v-else>
|
|
|
+ <span>暂无数据</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -56,6 +58,11 @@ export default {
|
|
|
knowledgeName: {
|
|
|
type: String,
|
|
|
default: ''
|
|
|
+ },
|
|
|
+ // 薄弱知识点精准提升数据
|
|
|
+ knowledgData: {
|
|
|
+ type: Array,
|
|
|
+ default: () => []
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -68,41 +75,21 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- // 薄弱知识点精准提升数据
|
|
|
- knowledgePapsData: []
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- // 加载薄弱知识点精准提升数据
|
|
|
- this.knowledgePapsData = [
|
|
|
- {
|
|
|
- type: "语言表达",
|
|
|
- difficulty: "较易",
|
|
|
- source: "大数据题库",
|
|
|
- question: "下列各组词语中书写无误的一组是",
|
|
|
- options: [
|
|
|
- "寻常巷陌 舞榭歌台 歌忱无忧 惊滔拍岸",
|
|
|
- "玉枕纱厨 故国神游 淡装浓抹 夜弦西边",
|
|
|
- "刎颈之交 玉簪螺髻 烟柳画桥 晓风残月",
|
|
|
- "良晨好景 吟赏烟霞 完璧归赵 神鸦社鼓"
|
|
|
- ],
|
|
|
- tags: ["古代诗歌阅读", "分析、鉴赏诗歌意境"]
|
|
|
- },
|
|
|
- {
|
|
|
- type: "阅读理解",
|
|
|
- difficulty: "中等",
|
|
|
- source: "大数据题库",
|
|
|
- question: "下列对文章内容的理解,不正确的一项是",
|
|
|
- options: [
|
|
|
- "作者认为,学习的目的是为了提升自身修养,而不是为了追求功名利禄",
|
|
|
- "文章通过对比古今学者的学习态度,强调了脚踏实地的重要性",
|
|
|
- "作者主张学习应该广泛涉猎,不必专注于某一领域",
|
|
|
- "文章最后提出了“学以致用”的观点,认为学习应该服务于实践"
|
|
|
- ],
|
|
|
- tags: ["现代文阅读", "分析文章结构,归纳内容要点"]
|
|
|
- }
|
|
|
- ];
|
|
|
- }
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ // knowledgData: {
|
|
|
+ // handler(newVal, oldVal) {
|
|
|
+ // console.log(newVal);
|
|
|
+ // },
|
|
|
+ // deep: true
|
|
|
+ // }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
<style scoped lang="scss">
|
|
|
@@ -169,6 +156,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
// 内容部分
|
|
|
.question_item {
|
|
|
background: #FFFFFF;
|
|
|
@@ -227,30 +215,7 @@ export default {
|
|
|
font-size: 14px;
|
|
|
color: #666666;
|
|
|
margin-bottom: 10px;
|
|
|
- line-height: 1.5;
|
|
|
- }
|
|
|
-
|
|
|
- .options {
|
|
|
- display: grid;
|
|
|
- grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
|
|
|
- gap: 10px;
|
|
|
-
|
|
|
- .option_item {
|
|
|
- display: flex;
|
|
|
- align-items: flex-start;
|
|
|
- gap: 8px;
|
|
|
- font-size: 14px;
|
|
|
- color: #666;
|
|
|
- line-height: 1.5;
|
|
|
-
|
|
|
- .option_letter {
|
|
|
- min-width: 20px;
|
|
|
- }
|
|
|
-
|
|
|
- .option_text {
|
|
|
- flex: 1;
|
|
|
- }
|
|
|
- }
|
|
|
+ line-height: 2;
|
|
|
}
|
|
|
}
|
|
|
// 试题底部
|
|
|
@@ -277,12 +242,17 @@ export default {
|
|
|
.question_item:last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
- .map_content {
|
|
|
- p {
|
|
|
- margin-bottom: 5px;
|
|
|
- text-align: center;
|
|
|
- color: #999;
|
|
|
- padding: 40px 0;
|
|
|
+
|
|
|
+ // 暂无数据
|
|
|
+ .no_data{
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ width: 100%;
|
|
|
+ height: 220px;
|
|
|
+ font-size: 14px;
|
|
|
+ span{
|
|
|
+ margin-top: 11%;
|
|
|
}
|
|
|
}
|
|
|
}
|