|
@@ -141,6 +141,7 @@
|
|
|
:cur-que="itemss.data"
|
|
|
:child-type="itemss.type"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'record_chs'">
|
|
@@ -150,6 +151,7 @@
|
|
|
<WordPhrase
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'NewWord_chs'">
|
|
@@ -157,16 +159,22 @@
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
:currentTreeID="currentTreeID"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'annotation_chs'">
|
|
|
<WordPhrase
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'notes_chs'">
|
|
|
- <Notes :cur-que="itemss.data" :theme-color="themeColor" />
|
|
|
+ <Notes
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
+ />
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'article_chs'">
|
|
|
<ArticleTemChs
|
|
@@ -176,12 +184,14 @@
|
|
|
:n-n-p-e-annotation-list="NNPEAnnotationList"
|
|
|
:theme-color="themeColor"
|
|
|
:currentTreeID="currentTreeID"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'sentence_segword_chs'">
|
|
|
<SentenceSegWordViewChs
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'dialogue_article_chs'">
|
|
@@ -192,6 +202,7 @@
|
|
|
:n-n-p-e-annotation-list="NNPEAnnotationList"
|
|
|
:color-box="colorBox"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'dialogue_answer_chs'">
|
|
@@ -199,18 +210,21 @@
|
|
|
:cur-que="itemss.data"
|
|
|
:color-box="colorBox"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'input_record_chs'">
|
|
|
<InputHasRecord
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'recordHZ_inputPY_chs'">
|
|
|
<TextInputRecord
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template
|
|
@@ -225,42 +239,56 @@
|
|
|
<SentenceInput
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'NumberCombination_chs'">
|
|
|
<NumberSelectHasRecord
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type === 'voice_matrix'">
|
|
|
<voice-matrix
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'toneSelect_chs'">
|
|
|
<SelectTone
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'sudoku_chs'">
|
|
|
- <Soduko :cur-que="itemss.data" :theme-color="themeColor" />
|
|
|
+ <Soduko
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
+ />
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'single_chs'">
|
|
|
- <Single :cur-que="itemss.data" :theme-color="themeColor" />
|
|
|
+ <Single
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
+ />
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'text_problem_chs'">
|
|
|
<TextProblem
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'newWord_preview_chs'">
|
|
|
<NewWordShow
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template
|
|
@@ -269,22 +297,29 @@
|
|
|
<SelectYinjie
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'sentence_listen_read_chs'">
|
|
|
<SentenceListenRead
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'sort_chs'">
|
|
|
<SentenceSortQP
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'checkbox_self_assessment_chs'">
|
|
|
- <Checkbox :cur-que="itemss.data" :theme-color="themeColor" />
|
|
|
+ <Checkbox
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
+ />
|
|
|
</template>
|
|
|
<template
|
|
|
v-if="
|
|
@@ -297,6 +332,7 @@
|
|
|
<RecordModule
|
|
|
:cur-que="itemss.data"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template
|
|
@@ -309,6 +345,7 @@
|
|
|
:cur-que="itemss.data"
|
|
|
:type="itemss.type"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'CourseStart_chs'">
|
|
@@ -316,16 +353,22 @@
|
|
|
:cur-que="itemss.data"
|
|
|
:handle-n-n-p-enext="handleNNPEnext"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'tinydemo_chs'">
|
|
|
- <Tinydemo :cur-que="itemss.data" :theme-color="themeColor" />
|
|
|
+ <Tinydemo
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
+ />
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'video_chs'">
|
|
|
<VideoControl
|
|
|
:cur-que="itemss.data"
|
|
|
:type="itemss.type"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-if="itemss.type == 'table_chs'">
|
|
@@ -333,6 +376,7 @@
|
|
|
:cur-que="itemss.data"
|
|
|
:type="itemss.type"
|
|
|
:theme-color="themeColor"
|
|
|
+ v-if="refresh"
|
|
|
/>
|
|
|
</template>
|
|
|
</template>
|
|
@@ -457,6 +501,7 @@ export default {
|
|
|
noFont: ["~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")"], // 对应不要拼音字体
|
|
|
idArr: [], //当前的pid
|
|
|
oldCurrentTreeID: "",
|
|
|
+ refresh: true,
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
@@ -464,9 +509,14 @@ export default {
|
|
|
context: {
|
|
|
handler(val, oldVal) {
|
|
|
const _this = this;
|
|
|
+ _this.refresh = false;
|
|
|
if (val) {
|
|
|
_this.initContextData();
|
|
|
_this.handleTitleData();
|
|
|
+ _this.$nextTick(() => {
|
|
|
+ // 重新渲染组件
|
|
|
+ _this.refresh = true;
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
// 深度观察监听
|
|
@@ -555,6 +605,7 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
+ this.$forceUpdate();
|
|
|
},
|
|
|
// 上一页
|
|
|
handleNNPEprev() {
|
|
@@ -572,7 +623,6 @@ export default {
|
|
|
});
|
|
|
} else {
|
|
|
_this.changeId(this.idArr[i - 1]);
|
|
|
- _this.$forceUpdate();
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -580,7 +630,6 @@ export default {
|
|
|
_this.queIndex -= 1;
|
|
|
_this.watchIndex = _this.queIndex + new Date().getTime();
|
|
|
_this.cur = _this.queList[_this.queIndex];
|
|
|
- _this.$forceUpdate();
|
|
|
}
|
|
|
},
|
|
|
// 递归寻找相同的目录并保存目录的pid
|
|
@@ -615,7 +664,6 @@ export default {
|
|
|
});
|
|
|
} else {
|
|
|
_this.changeId(this.idArr[i + 1]);
|
|
|
- _this.$forceUpdate();
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -623,7 +671,6 @@ export default {
|
|
|
_this.queIndex += 1;
|
|
|
_this.watchIndex = _this.queIndex + new Date().getTime();
|
|
|
_this.cur = _this.queList[_this.queIndex];
|
|
|
- _this.$forceUpdate();
|
|
|
}
|
|
|
},
|
|
|
}, // 如果页面有keep-alive缓存功能,这个函数会触发
|