重点项目跟踪流程 - 调取(只增不减)
This commit is contained in:
@@ -540,7 +540,22 @@ export default {
|
|||||||
// 带入
|
// 带入
|
||||||
case 2:
|
case 2:
|
||||||
if (this.standardCheckedList && this.standardCheckedList.length >= 1) {
|
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
|
this.standardDrawer = false
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请选择要带入的数据')
|
this.$message.warning('请选择要带入的数据')
|
||||||
|
|||||||
Reference in New Issue
Block a user