fix 81128
This commit is contained in:
+4
-2
@@ -289,9 +289,11 @@ export default {
|
|||||||
return this.getNumParentNode(el.parentNode, n - 1)
|
return this.getNumParentNode(el.parentNode, n - 1)
|
||||||
},
|
},
|
||||||
handleAdd () {
|
handleAdd () {
|
||||||
this.$refs.extensionRequestTableModal.show({
|
const selectedIds = this.dataSource.map(item => item.inspectId)
|
||||||
|
const data = {
|
||||||
projectId: this.projectId
|
projectId: this.projectId
|
||||||
})
|
}
|
||||||
|
this.$refs.extensionRequestTableModal.show(data, selectedIds)
|
||||||
},
|
},
|
||||||
filterOption (input, option) {
|
filterOption (input, option) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
+8
-1
@@ -127,7 +127,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
show (record) {
|
show (record, selectedIds) {
|
||||||
|
// 已经选择的ids
|
||||||
|
this.selectedIds = selectedIds
|
||||||
this.filters.inspectStatus = '1,2,4'
|
this.filters.inspectStatus = '1,2,4'
|
||||||
this.filters.inspectUser = this.$store.getters.userInfo.id
|
this.filters.inspectUser = this.$store.getters.userInfo.id
|
||||||
this.loadData()
|
this.loadData()
|
||||||
@@ -140,6 +142,11 @@ export default {
|
|||||||
this.$message.warn(this.$t('selectLeastOne'))
|
this.$message.warn(this.$t('selectLeastOne'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// 验证不能重复选择
|
||||||
|
if (this.selectedRowKeys.some(item => this.selectedIds.includes(item))) {
|
||||||
|
this.$message.warn(this.$t('cannotAddAgain'))
|
||||||
|
return
|
||||||
|
}
|
||||||
const data = this.selectionRows.map(item => {
|
const data = this.selectionRows.map(item => {
|
||||||
item.inspectId = item.id
|
item.inspectId = item.id
|
||||||
delete item.id
|
delete item.id
|
||||||
|
|||||||
Reference in New Issue
Block a user