|
@@ -5,7 +5,7 @@
|
|
|
<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.label)">
|
|
|
|
|
|
|
+ <template v-if="showTable(item)">
|
|
|
<div class="tag_item" @click="selectItem(index, item.value, filterItem)"
|
|
<div class="tag_item" @click="selectItem(index, item.value, filterItem)"
|
|
|
:class="item.value == filterItem.value ? 'active' : ''">
|
|
:class="item.value == filterItem.value ? 'active' : ''">
|
|
|
{{ item.label }}
|
|
{{ item.label }}
|
|
@@ -40,11 +40,15 @@ export default {
|
|
|
this.$emit('selectItem', d, item)
|
|
this.$emit('selectItem', d, item)
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- showTable(tableName) {
|
|
|
|
|
|
|
+ showTable(item) {
|
|
|
const showTotalScore = this.$store.state.report.showTotalScore
|
|
const showTotalScore = this.$store.state.report.showTotalScore
|
|
|
- console.log('showTotalScore', showTotalScore)
|
|
|
|
|
|
|
|
|
|
- if (tableName === '总分' && !showTotalScore) {
|
|
|
|
|
|
|
+ // isTotal:是否总分 0-不是 1-是
|
|
|
|
|
+ // subjectGroupType:学科分组类型 0-不分组 1-分组
|
|
|
|
|
+ const { isTotal, subjectGroupType } = item
|
|
|
|
|
+
|
|
|
|
|
+ // 当 isTotal 为 1 或 subjectGroupType 为 1 且 showTotalScore 为 false 的时候隐藏总分
|
|
|
|
|
+ if ((isTotal === 1 || subjectGroupType === 1) && !showTotalScore) {
|
|
|
return false
|
|
return false
|
|
|
} else {
|
|
} else {
|
|
|
return true
|
|
return true
|