fix: 修复批量删除传参错误问题

This commit is contained in:
@changcode
2022-06-16 16:02:17 +08:00
parent daf35493bb
commit e845af787e

View File

@@ -213,7 +213,7 @@ export default {
} }
], ],
checkboxAll: false, checkboxAll: false,
checkboxIds: '', checkboxIds: {},
batchDow: false, batchDow: false,
builtinId: '', builtinId: '',
indeterminate: false, indeterminate: false,
@@ -274,7 +274,7 @@ export default {
}, },
selectionChange (objs) { selectionChange (objs) {
this.$emit('selectionChange', objs) this.$emit('selectionChange', objs)
this.checkboxIds = objs.map(item => { return item.id }).join(',') this.checkboxIds.id = objs.map(item => { return item.id }).join(',')
this.checkboxAll = objs.length > 0 || objs.length === this.tableData.length this.checkboxAll = objs.length > 0 || objs.length === this.tableData.length
this.batchDow = objs.length > 0 this.batchDow = objs.length > 0
}, },