|
@@ -62,10 +62,8 @@ export default {
|
|
|
}
|
|
|
} else if (this.mode == 'multiple') { // 多选
|
|
|
if (value.length > 0) {
|
|
|
- value.map(subItem => {
|
|
|
- const ind = _this.data.findIndex(item => item.productSn == subItem.key)
|
|
|
- subItem.row = ind != -1 ? _this.data[ind] : undefined
|
|
|
- })
|
|
|
+ const ind = _this.data.findIndex(item => item.productSn == value[value.length - 1].key)
|
|
|
+ value[value.length - 1].row = ind != -1 ? _this.data[ind] : undefined
|
|
|
}
|
|
|
}
|
|
|
Object.assign(this, {
|