重点项目跟踪流程 - 调取(只增不减)
This commit is contained in:
@@ -540,7 +540,22 @@ export default {
|
||||
// 带入
|
||||
case 2:
|
||||
if (this.standardCheckedList && this.standardCheckedList.length >= 1) {
|
||||
this.infoTableDatas = this.standardCheckedList
|
||||
let exits = [];
|
||||
this.standardCheckedList.map(item =>{
|
||||
let newStand = false;
|
||||
for (let itemKey of this.infoTableDatas) {
|
||||
if (item.id == itemKey.id){
|
||||
newStand = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (newStand){
|
||||
this.$message.warning("请勿重复添加数据");
|
||||
}else {
|
||||
this.infoTableDatas.push(item);
|
||||
exits.push(item.id);
|
||||
}
|
||||
})
|
||||
this.standardDrawer = false
|
||||
} else {
|
||||
this.$message.warning('请选择要带入的数据')
|
||||
|
||||
Reference in New Issue
Block a user