|
@@ -63,20 +63,30 @@
|
|
|
<div style="height: 10px"></div>
|
|
<div style="height: 10px"></div>
|
|
|
<!-- 课程类型和课件格式(联动单选) -->
|
|
<!-- 课程类型和课件格式(联动单选) -->
|
|
|
<div class="filter-group">
|
|
<div class="filter-group">
|
|
|
- <span class="filter-group-title">课程类型:</span>
|
|
|
|
|
|
|
+ <span class="filter-group-title">资源类型:</span>
|
|
|
<!-- <a-radio-group v-model:value="selectedType" @change="handleTypeChange">
|
|
<!-- <a-radio-group v-model:value="selectedType" @change="handleTypeChange">
|
|
|
<a-radio-button v-for="dept in selectedTypes" :key="dept" :value="dept">{{ dept }}</a-radio-button>
|
|
<a-radio-button v-for="dept in selectedTypes" :key="dept" :value="dept">{{ dept }}</a-radio-button>
|
|
|
</a-radio-group> -->
|
|
</a-radio-group> -->
|
|
|
-
|
|
|
|
|
- <MyRadioButtonGroup ref="Type" v-model="selectedType" @change="handleTypeChange">
|
|
|
|
|
- <MyRadioButton
|
|
|
|
|
- v-for="(item, index) in selectedTypes"
|
|
|
|
|
- :key="index"
|
|
|
|
|
- :value="item"
|
|
|
|
|
- :label="item"
|
|
|
|
|
- :index="index"
|
|
|
|
|
- ></MyRadioButton>
|
|
|
|
|
- </MyRadioButtonGroup>
|
|
|
|
|
|
|
+ <div style="display: flex; flex-direction: column">
|
|
|
|
|
+ <MyRadioButtonGroup ref="Type" v-model="selectedTypeBig" @change="handleTypeChange">
|
|
|
|
|
+ <MyRadioButton
|
|
|
|
|
+ v-for="(item, index) in selectedTypesBig"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ :value="item"
|
|
|
|
|
+ :label="item"
|
|
|
|
|
+ :index="index"
|
|
|
|
|
+ ></MyRadioButton>
|
|
|
|
|
+ </MyRadioButtonGroup>
|
|
|
|
|
+ <MyRadioButtonGroup ref="Type" v-model="selectedType" @change="handleTypeChange">
|
|
|
|
|
+ <MyRadioButton
|
|
|
|
|
+ v-for="(item, index) in selectedTypes"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ :value="item"
|
|
|
|
|
+ :label="item"
|
|
|
|
|
+ :index="index"
|
|
|
|
|
+ ></MyRadioButton>
|
|
|
|
|
+ </MyRadioButtonGroup>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<div style="height: 10px"></div>
|
|
<div style="height: 10px"></div>
|
|
|
<div class="line"></div>
|
|
<div class="line"></div>
|
|
@@ -131,6 +141,7 @@
|
|
|
const selectedDeptBig = ref('')
|
|
const selectedDeptBig = ref('')
|
|
|
const selectedDeptSmail = ref('')
|
|
const selectedDeptSmail = ref('')
|
|
|
const selectedCourse = ref('')
|
|
const selectedCourse = ref('')
|
|
|
|
|
+ const selectedTypeBig = ref('')
|
|
|
const selectedType = ref('')
|
|
const selectedType = ref('')
|
|
|
const selectedFormat = ref('')
|
|
const selectedFormat = ref('')
|
|
|
const Dept = ref(null)
|
|
const Dept = ref(null)
|
|
@@ -196,6 +207,7 @@
|
|
|
'机型改装训练',
|
|
'机型改装训练',
|
|
|
'应急程序训练'
|
|
'应急程序训练'
|
|
|
])
|
|
])
|
|
|
|
|
+ const selectedTypesBig = ref(['全部大', '热门资源大', '名师资源大', '必修大大', '选修大'])
|
|
|
const selectedTypes = ref(['全部', '热门资源', '名师资源', '必修', '选修'])
|
|
const selectedTypes = ref(['全部', '热门资源', '名师资源', '必修', '选修'])
|
|
|
const selectedFormats = ref(['全部', 'ppt', 'word', 'excel', 'pdf', 'mp4', 'zip', 'rar'])
|
|
const selectedFormats = ref(['全部', 'ppt', 'word', 'excel', 'pdf', 'mp4', 'zip', 'rar'])
|
|
|
|
|
|
|
@@ -240,6 +252,14 @@
|
|
|
selectedTags.value.push(...[selectedCourse.value])
|
|
selectedTags.value.push(...[selectedCourse.value])
|
|
|
selectedTagKeys.value.push('Course')
|
|
selectedTagKeys.value.push('Course')
|
|
|
}
|
|
}
|
|
|
|
|
+ if (selectedDeptBig.value !== '全部') {
|
|
|
|
|
+ selectedTags.value.push(...[selectedDeptBig.value])
|
|
|
|
|
+ selectedTagKeys.value.push('Course1')
|
|
|
|
|
+ }
|
|
|
|
|
+ if (selectedDeptSmail.value !== '全部') {
|
|
|
|
|
+ selectedTags.value.push(...[selectedDeptSmail.value])
|
|
|
|
|
+ selectedTagKeys.value.push('Course2')
|
|
|
|
|
+ }
|
|
|
if (selectedType.value !== '全部') {
|
|
if (selectedType.value !== '全部') {
|
|
|
selectedTags.value.push(...[selectedType.value])
|
|
selectedTags.value.push(...[selectedType.value])
|
|
|
selectedTagKeys.value.push('Type')
|
|
selectedTagKeys.value.push('Type')
|