fix 81128

This commit is contained in:
danshihao
2024-01-30 18:53:04 +08:00
parent c72d90f6fb
commit 66421af895
@@ -130,6 +130,7 @@ export default {
show (record, selectedIds) {
// 已经选择的ids
this.selectedIds = selectedIds
this.filters.filterIds = selectedIds.join(',')
this.filters.inspectStatus = '1,2,4'
this.filters.inspectUser = this.$store.getters.userInfo.id
this.loadData()
@@ -143,10 +144,10 @@ export default {
return
}
// 验证不能重复选择
if (this.selectedRowKeys.some(item => this.selectedIds.includes(item))) {
this.$message.warn(this.$t('cannotAddAgain'))
return
}
// if (this.selectedRowKeys.some(item => this.selectedIds.includes(item))) {
// this.$message.warn(this.$t('cannotAddAgain'))
// return
// }
const data = this.selectionRows.map(item => {
item.inspectId = item.id
delete item.id