[update] 修改bug87486
This commit is contained in:
@@ -56,7 +56,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<a-table
|
<a-table
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:rowKey="record => {return isValueHaveName ? record.standardNumber + '|' + record.standardName : record.standardNumber}"
|
:rowKey="record => {return isValueHaveName ? record.standardNumber + '《' + record.standardName + '》' : record.standardNumber}"
|
||||||
:scroll="{x: 900}"
|
:scroll="{x: 900}"
|
||||||
:data-source="dataList"
|
:data-source="dataList"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
@@ -339,7 +339,7 @@ export default {
|
|||||||
if (this.isValueHaveName) {
|
if (this.isValueHaveName) {
|
||||||
// value里面要带标准名称
|
// value里面要带标准名称
|
||||||
for (const rowIndex in selectedRows) {
|
for (const rowIndex in selectedRows) {
|
||||||
if (!this.selectedRowList.find(item => (item.standardNumber + '|' + item.standardName) === (selectedRows[rowIndex].standardNumber + '|' + selectedRows[rowIndex].standardName))) {
|
if (!this.selectedRowList.find(item => (item.standardNumber + '《' + item.standardName + '》') === (selectedRows[rowIndex].standardNumber + '《' + selectedRows[rowIndex].standardName + '》'))) {
|
||||||
// 不存在,追加
|
// 不存在,追加
|
||||||
this.selectedRowList.push(selectedRows[rowIndex])
|
this.selectedRowList.push(selectedRows[rowIndex])
|
||||||
}
|
}
|
||||||
@@ -360,7 +360,7 @@ export default {
|
|||||||
if (this.isValueHaveName) {
|
if (this.isValueHaveName) {
|
||||||
// value里面要带标准名称
|
// value里面要带标准名称
|
||||||
for (let i = 0; i < this.selectedRowList.length; i++) {
|
for (let i = 0; i < this.selectedRowList.length; i++) {
|
||||||
if (!selectedRowKeys.find(item => item === this.selectedRowList[i].standardNumber + '|' + this.selectedRowList[i].standardName)) {
|
if (!selectedRowKeys.find(item => item === this.selectedRowList[i].standardNumber + '《' + this.selectedRowList[i].standardName + '》')) {
|
||||||
// 表格选中中没有找到这一条数据,说明已经被删了
|
// 表格选中中没有找到这一条数据,说明已经被删了
|
||||||
this.selectedRowList.splice(i, 1)
|
this.selectedRowList.splice(i, 1)
|
||||||
i--
|
i--
|
||||||
|
|||||||
Reference in New Issue
Block a user