重点项目跟踪流程 - 调取(只增不减)

This commit is contained in:
yanyizhou
2021-11-19 10:47:22 +08:00
parent 852e440d81
commit af6498067e
@@ -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('请选择要带入的数据')