|
@@ -125,7 +125,7 @@
|
|
|
<!-- {{ $t('global-btn.upload.test.report') }}-->
|
|
|
<!-- </a-button>-->
|
|
|
<!-- 批量编辑 -->
|
|
|
- <a-button class="mr12" type="primary" :disabled="isLook" @click='batchEdit' style="right: 6px">
|
|
|
+ <a-button class="mr12" type="primary" :disabled="isLook || batchEditButtonDisabled" @click='batchEdit' style="right: 6px">
|
|
|
{{ $t('global-btn.edit') }}
|
|
|
</a-button>
|
|
|
<!-- 导出 -->
|
|
@@ -673,6 +673,8 @@ export default {
|
|
|
/** 高度计算 */
|
|
|
tableHeight: window.innerHeight - 352 + 'px',
|
|
|
tableHeightValue: window.innerHeight - 380,
|
|
|
+ /** 批量编辑按钮是否disabled */
|
|
|
+ batchEditButtonDisabled: false
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -853,6 +855,11 @@ export default {
|
|
|
if (!res.flag) {
|
|
|
this.$notification.error({message: res.message});
|
|
|
}
|
|
|
+ // 若查询条件为:非等效试验 查询结果为:0
|
|
|
+ // 批量编辑按钮置灰
|
|
|
+ if (data.isEquivalent === '1' && res.data.total === 0) {
|
|
|
+ this.batchEditButtonDisabled = true;
|
|
|
+ }
|
|
|
_that.tableData = res.data.data || [];
|
|
|
_that.pagination.total = res.data.total || 0;
|
|
|
}).finally(() => {
|