fix: 报告批量删除,未选中删除项时不触发del方法

This commit is contained in:
@changcode
2022-06-29 14:41:31 +08:00
parent 44f828d0dd
commit ce57ce3b61
2 changed files with 5 additions and 5 deletions

View File

@@ -203,8 +203,7 @@
height: 24px;
background: #D7D7D7;
border-radius: 2px;
line-height: 21px;
cursor: pointer;
cursor: not-allowed;
span {
margin: 3px 8px;
font-size: 12px;
@@ -222,10 +221,11 @@
}
}
.table-operation-back-down.table-operation-all-checkbox {
background: #0091ff;
background: #0091ff;
cursor: pointer;
}
.table-operation-back-down.table-operation-all-loading {
background: #D7D7D7;
background: #D7D7D7;
}
}
}

View File

@@ -191,7 +191,7 @@
<el-checkbox v-model="checkboxAll" @change="selectAll(tableData)"></el-checkbox>
<div class="table-operation-all-span">
<span>{{ $t('overall.all') }}</span>
<div class="table-operation-back-down" :class="{'table-operation-all-checkbox': batchDow, 'table-operation-all-loading': loading}" @click="tableOperation(['delete', this.checkboxIds])">
<div class="table-operation-back-down" :class="{'table-operation-all-checkbox': batchDow, 'table-operation-all-loading': loading}" @click="checkboxIds.id ? tableOperation(['delete', checkboxIds]) : ''">
<loading :loading="loading"></loading>
<span>{{$t('report.batchDeletion')}}</span>
</div>