|
@@ -9,12 +9,13 @@
|
|
|
</el-tabs>
|
|
|
<el-scrollbar style="height: calc(100% - 100px);" ref="scrollBarRef">
|
|
|
<el-skeleton :loading="state.loading" animated :rows="10" v-if="state.activeName === '0'">
|
|
|
- <p class="knowladgeDtosItem" v-for="(item) in state.trainPracticeKnowladgeDtos" @click="onClickKnowladge(item.id)">
|
|
|
+ <p class="knowladgeDtosItem" v-if="state.trainPracticeKnowladgeDtos.length > 0" v-for="(item) in state.trainPracticeKnowladgeDtos" @click="onClickKnowladge(item.id)">
|
|
|
<el-icon color="#409efc" class="el-input__icon">
|
|
|
<ele-Notebook />
|
|
|
</el-icon>
|
|
|
{{ item.title }}
|
|
|
</p>
|
|
|
+ <el-empty v-else description="暂无数据" />
|
|
|
</el-skeleton>
|
|
|
<el-skeleton :loading="state.loading" animated :rows="10" v-if="state.activeName === '1'">
|
|
|
<p class="knowladgeDtosItem" v-for="(item) in state.trainPracticeQuestionsDtos" @click="onSelQuestion(item.id)">
|
|
@@ -209,6 +210,8 @@ import { fileDownloadByUrl } from '@/api/public/file';
|
|
|
import { getTrainInfo, answerUserTrain, getTrainQuestion, submitUserTrain } from '@/api/examTrain/userTrain';
|
|
|
import { KnowledgeInfo} from '@/api/knowledge';
|
|
|
|
|
|
+const AnnexList = defineAsyncComponent(() => import('@/components/AnnexList/index.vue')); // 附件列表
|
|
|
+
|
|
|
const router = useRouter(); //路由
|
|
|
const route = useRoute(); // 获取路由参数
|
|
|
const horizontal = ref(false);
|