|
@@ -112,7 +112,7 @@ export default {
|
|
|
return {
|
|
|
MusicIcon,
|
|
|
levelId: 0,
|
|
|
- tempSubjectId: 0,
|
|
|
+ subjectId: 0,
|
|
|
levelOptions: [
|
|
|
// { text: '全部等级', value: 0 },
|
|
|
],
|
|
@@ -131,14 +131,12 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- subjectId() {
|
|
|
- return this.tempSubjectId || Number(this.searchSubjectId);
|
|
|
- },
|
|
|
parentId() {
|
|
|
return this.id || 1;
|
|
|
},
|
|
|
},
|
|
|
async mounted() {
|
|
|
+ this.subjectId = Number(this.searchSubjectId)
|
|
|
await this.FetchLevel();
|
|
|
await this.FetchList();
|
|
|
},
|
|
@@ -177,8 +175,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- console.log(this.levelOptions, 'levelOptions')
|
|
|
- console.log(this.typeOptions, 'typeOptions')
|
|
|
+ // console.log(this.levelOptions, 'levelOptions')
|
|
|
+ // console.log(this.typeOptions, 'typeOptions')
|
|
|
} catch (error) {}
|
|
|
},
|
|
|
async FetchCats() {
|
|
@@ -201,7 +199,6 @@ export default {
|
|
|
try {
|
|
|
let params = this.params;
|
|
|
let categoriesId = ((this.levelId || this.typeId) === 0 ? undefined : this.typeId || this.levelId) || this.parentId
|
|
|
- console.log(categoriesId, 'categoriesId')
|
|
|
const res = await queryPageLimit({
|
|
|
...params,
|
|
|
clientType: "SMART_PRACTICE",
|
|
@@ -245,7 +242,7 @@ export default {
|
|
|
this.onSearch();
|
|
|
},
|
|
|
subjectChange(val) {
|
|
|
- this.tempSubjectId = val;
|
|
|
+ this.subjectId = val;
|
|
|
this.onSearch();
|
|
|
},
|
|
|
typeChange(val) {
|