|
@@ -21,62 +21,7 @@
|
|
|
货车
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="bg-white pl50 pt30">
|
|
|
-
|
|
|
- <div class="flex items-center">
|
|
|
- <div class="vertical-line mr10"></div>
|
|
|
- <span class="font20 font-bold mr15">技巧练习</span>
|
|
|
- <!-- <div class="lh34 select-border1 round4 pr15 pl15">试听</div> -->
|
|
|
- </div>
|
|
|
-
|
|
|
-
|
|
|
- <div class="">
|
|
|
- <div class="flex justify-normal flex-wrap w-11/12">
|
|
|
- <div v-for="(item, index) in list" :key="index" class="flex radius4 pt15">
|
|
|
- <div class="lh34 w185 text-left font18">
|
|
|
- {{ index + 1 }}. {{ item.title }}
|
|
|
- </div>
|
|
|
- <div class="flex">
|
|
|
- <!-- <div
|
|
|
- class="w64 lh34 mr15 round4 overflow-hidden select-border3 bg-gray-100 text-gray-500 cursor-not-allowed"
|
|
|
- >
|
|
|
- 视频
|
|
|
- </div> -->
|
|
|
- <router-link :to="
|
|
|
- '/studySkill?subject=' +
|
|
|
- ($route.query.subject || 4) +
|
|
|
- '&columnAll=' +
|
|
|
- (item.columnId || '')
|
|
|
- ">
|
|
|
- <div class="w64 lh34 mr15 round4 overflow-hidden select-border2 ">
|
|
|
- 练习
|
|
|
- </div>
|
|
|
- </router-link>
|
|
|
-
|
|
|
- <div @click="checkLocalWrongList()" class="w64 lh34 mr15 round4 overflow-hidden select-border2">
|
|
|
- 回顾
|
|
|
- </div>
|
|
|
-
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="flex items-center pt30 pb30">
|
|
|
- <div class="vertical-line mr10"></div>
|
|
|
- <span class="font20 font-bold mr15">全部错误题回顾</span>
|
|
|
-
|
|
|
- <div @click="checkLocalWrongList()" class="lh34 round4 pr15 pl15 select-border1 mr15">
|
|
|
- 错误回顾
|
|
|
- </div>
|
|
|
- <div @click="
|
|
|
- () => {
|
|
|
- dialogVisible = true;
|
|
|
- }
|
|
|
- " class="lh34 round4 pr15 pl15 select-border1">
|
|
|
- 清空全部错题
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <mSkillList :model="model"></mSkillList>
|
|
|
<mProblemAlert v-model:visible="alertVisible" title="开启" content="禁止重复"></mProblemAlert>
|
|
|
<mProblemDialog @confirm="deleteAllWrong()" v-model:visible="dialogVisible" title="提示" content="是否要清空全部错题">
|
|
|
</mProblemDialog>
|
|
@@ -84,11 +29,12 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { computed, defineComponent, ref } from "vue";
|
|
|
+import { computed, defineComponent, onMounted, ref } from "vue";
|
|
|
import api from "@/api";
|
|
|
import { useRoute } from "vue-router";
|
|
|
import mProblemDialog from "@/components/mProblemDialog/index.vue";
|
|
|
import mProblemAlert from "@/components/mProblemAlert/index.vue";
|
|
|
+import mSkillList from "@/components/mSkillList/index.vue"
|
|
|
import { message } from "ant-design-vue";
|
|
|
import router from "@/router";
|
|
|
import store from "@/store";
|
|
@@ -102,18 +48,18 @@ export default defineComponent({
|
|
|
const model = computed(() => {
|
|
|
return store.state.model
|
|
|
})
|
|
|
- let list = ref<
|
|
|
- {
|
|
|
- "createTime": string,
|
|
|
- "updateTime": null,
|
|
|
- "id": number,
|
|
|
- "columnId": number,
|
|
|
- "sort": number,
|
|
|
- "model": string,
|
|
|
- "subject": string,
|
|
|
- "title": string
|
|
|
- }[]
|
|
|
- >([]);
|
|
|
+ // let list = ref<
|
|
|
+ // {
|
|
|
+ // "createTime": string,
|
|
|
+ // "updateTime": null,
|
|
|
+ // "id": number,
|
|
|
+ // "columnId": number,
|
|
|
+ // "sort": number,
|
|
|
+ // "model": string,
|
|
|
+ // "subject": string,
|
|
|
+ // "title": string
|
|
|
+ // }[]
|
|
|
+ // >([]);
|
|
|
const deleteAllWrong = () => {
|
|
|
store.dispatch('ClearDriver' + subject + 'WrongList')
|
|
|
dialogVisible.value = false;
|
|
@@ -138,21 +84,21 @@ export default defineComponent({
|
|
|
|
|
|
|
|
|
}
|
|
|
-
|
|
|
- api.open
|
|
|
- .question2InfoGetQuestionColumn({
|
|
|
- subject: 'k'+(route.query.subject||'1')+'_3',
|
|
|
- model: model.value
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
-
|
|
|
- list.value = res.data;
|
|
|
- });
|
|
|
+
|
|
|
+ // api.open
|
|
|
+ // .question2InfoGetQuestionColumn({
|
|
|
+ // subject: 'k'+(route.query.subject||'1')+'_3',
|
|
|
+ // model: model.value
|
|
|
+ // })
|
|
|
+ // .then((res) => {
|
|
|
+
|
|
|
+ // list.value = res.data;
|
|
|
+ // });
|
|
|
+
|
|
|
|
|
|
return {
|
|
|
dialogVisible,
|
|
|
alertVisible: ref(false),
|
|
|
- list: list,
|
|
|
model,
|
|
|
deleteAllWrong,
|
|
|
checkLocalWrongList
|
|
@@ -162,40 +108,30 @@ export default defineComponent({
|
|
|
changeCarModel(model: string) {
|
|
|
store.commit('SET_MODEL', model)
|
|
|
|
|
|
- api.open
|
|
|
- .question2InfoGetQuestionColumn({
|
|
|
- subject: 'k'+(this.$route.query.subject||'1')+'_3',
|
|
|
- model: this.model
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
-
|
|
|
- this.list = res.data;
|
|
|
- message.success({
|
|
|
- content: '切换成功'
|
|
|
- })
|
|
|
- });
|
|
|
- },
|
|
|
- },
|
|
|
- watch: {
|
|
|
- "$route.query"(nowVal, oldVal) {
|
|
|
- if (JSON.stringify(nowVal) == "{}") {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- api.open
|
|
|
- .question2InfoGetQuestionColumn({
|
|
|
- subject: 'k1_3',
|
|
|
- model: this.model
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- res.data.shift();
|
|
|
- this.list = res.data;
|
|
|
- });
|
|
|
+
|
|
|
},
|
|
|
},
|
|
|
+ // watch: {
|
|
|
+ // "$route.query"(nowVal, oldVal) {
|
|
|
+ // if (JSON.stringify(nowVal) == "{}") {
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // api.open
|
|
|
+ // .question2InfoGetQuestionColumn({
|
|
|
+ // subject: 'k1_3',
|
|
|
+ // model: this.model
|
|
|
+ // })
|
|
|
+ // .then((res) => {
|
|
|
+ // res.data.shift();
|
|
|
+ // this.list = res.data;
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // },
|
|
|
components: {
|
|
|
mProblemDialog,
|
|
|
mProblemAlert,
|
|
|
+ mSkillList
|
|
|
},
|
|
|
});
|
|
|
</script>
|