fix(dialog): 修复当有搜索条件时禁用导出所有选项

Closes https://github.com/jumpserver/trello/issues/74
This commit is contained in:
OrangeM21 2020-07-20 19:46:13 +08:00 committed by 老广
parent e8e751668d
commit 2d3a43c202

View File

@ -67,6 +67,8 @@ export default {
const query = listTableRef.dataTable.getQuery()
delete query['limit']
delete query['offset']
delete query['date_from']
delete query['date_to']
return query
},
tableHasQuery() {
@ -77,7 +79,7 @@ export default {
{
label: this.$t('common.imExport.ExportAll'),
value: 'all',
can: this.canExportAll
can: this.canExportAll && !this.tableHasQuery
},
{
label: this.$t('common.imExport.ExportOnlySelectedItems'),