fix 80047
This commit is contained in:
-1
@@ -970,7 +970,6 @@ export default {
|
|||||||
this.$message.warning(this.$t('addAtLeastOneRowOfData'))
|
this.$message.warning(this.$t('addAtLeastOneRowOfData'))
|
||||||
flag = false
|
flag = false
|
||||||
} else {
|
} else {
|
||||||
console.log(this.projectId, this.projectDataSource[0].id)
|
|
||||||
if (this.projectId !== this.projectDataSource[0].id) {
|
if (this.projectId !== this.projectDataSource[0].id) {
|
||||||
this.standardDataSource = []
|
this.standardDataSource = []
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -174,7 +174,10 @@ export default {
|
|||||||
this.selectedRowKeys = selectedRowKeys
|
this.selectedRowKeys = selectedRowKeys
|
||||||
},
|
},
|
||||||
handleOk (rows) {
|
handleOk (rows) {
|
||||||
this.dataSource = rows.map((item, index) => {
|
rows.forEach((item) => {
|
||||||
|
if (this.dataSource.findIndex(tt => tt.id === item.id) !== -1) {
|
||||||
|
return
|
||||||
|
}
|
||||||
// 默认选中不带入
|
// 默认选中不带入
|
||||||
if (!item.decompositionOrderSource) {
|
if (!item.decompositionOrderSource) {
|
||||||
item.decompositionOrderSource = '0'
|
item.decompositionOrderSource = '0'
|
||||||
@@ -188,9 +191,10 @@ export default {
|
|||||||
return dictItem
|
return dictItem
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
item.tableRowKey = index
|
item.tableRowKey = this.dataSource.length
|
||||||
return item
|
this.dataSource.push(item)
|
||||||
})
|
})
|
||||||
|
console.log(this.dataSource)
|
||||||
},
|
},
|
||||||
getData () {
|
getData () {
|
||||||
return this.dataSource
|
return this.dataSource
|
||||||
@@ -219,4 +223,4 @@ export default {
|
|||||||
.process-part-title:first-child {
|
.process-part-title:first-child {
|
||||||
margin-top: 32px;
|
margin-top: 32px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user