|
@@ -5,12 +5,10 @@
|
|
|
<div class="tag_group_title">{{ filterItem.name }}:</div>
|
|
<div class="tag_group_title">{{ filterItem.name }}:</div>
|
|
|
<div class="tag_group_content">
|
|
<div class="tag_group_content">
|
|
|
<template v-for="item in filterItem.list">
|
|
<template v-for="item in filterItem.list">
|
|
|
- <template v-if="showTable(item)">
|
|
|
|
|
- <div class="tag_item" @click="selectItem(index, item.value, filterItem)"
|
|
|
|
|
- :class="item.value == filterItem.value ? 'active' : ''">
|
|
|
|
|
- {{ item.label }}
|
|
|
|
|
- </div>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <div class="tag_item" @click="selectItem(index, item.value, filterItem)"
|
|
|
|
|
+ :class="item.value == filterItem.value ? 'active' : ''">
|
|
|
|
|
+ {{ item.label }}
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -40,20 +38,20 @@ export default {
|
|
|
this.$emit('selectItem', d, item)
|
|
this.$emit('selectItem', d, item)
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- showTable(item) {
|
|
|
|
|
- const showTotalScore = this.$store.state.report.showTotalScore
|
|
|
|
|
|
|
+ // showTable(item) {
|
|
|
|
|
+ // const showTotalScore = this.$store.state.report.showTotalScore
|
|
|
|
|
|
|
|
- // isTotal:是否总分 0-不是 1-是
|
|
|
|
|
- // subjectGroupType:学科分组类型 0-不分组 1-分组
|
|
|
|
|
- const { isTotal, subjectGroupType } = item
|
|
|
|
|
|
|
+ // // isTotal:是否总分 0-不是 1-是
|
|
|
|
|
+ // // subjectGroupType:学科分组类型 0-不分组 1-分组
|
|
|
|
|
+ // const { isTotal, subjectGroupType } = item
|
|
|
|
|
|
|
|
- // 当 isTotal 为 1 或 subjectGroupType 为 1 且 showTotalScore 为 false 的时候隐藏总分
|
|
|
|
|
- if ((isTotal === 1 || subjectGroupType === 1) && !showTotalScore) {
|
|
|
|
|
- return false
|
|
|
|
|
- } else {
|
|
|
|
|
- return true
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // // 当 isTotal 为 1 或 subjectGroupType 为 1 且 showTotalScore 为 false 的时候隐藏总分
|
|
|
|
|
+ // if ((isTotal === 1 || subjectGroupType === 1) && !showTotalScore) {
|
|
|
|
|
+ // return false
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ // return true
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|