1
This commit is contained in:
parent
478cbcb7b4
commit
e7d090d75d
@ -16,9 +16,8 @@
|
||||
<el-row :gutter="5">
|
||||
<el-col :span="6" v-for="(item, index) in 8">
|
||||
<div :class="boxSelectClass(index)">
|
||||
<div class="icon-box">
|
||||
</div>
|
||||
<span>{{ '7444269' }}</span>
|
||||
<div v-if="boxSelecExplain(index)" class="icon-box"></div>
|
||||
<span v-if="boxSelecExplain(index)">{{ '7444269' }}</span>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -68,6 +67,9 @@ function getStatusExplain(status) {
|
||||
function getStatusClass(status) {
|
||||
return status === 0 ? ' background-red' : '';
|
||||
}
|
||||
function boxSelecExplain(status) {
|
||||
return status % 2 !== 0;
|
||||
}
|
||||
function boxSelectClass(status) {
|
||||
return status % 2 === 0 ? ' box' : 'box-select';
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user