1.slice
let index = this.ruleForm.cybmList.findIndex(obj => obj.orgId == row.orgId)
this.ruleForm.cybmList = this.ruleForm.cybmList.slice(0, index).concat(this.ruleForm.cybmList.slice(index + 1))
2.去重
this.form.zjlist = this.form.zjlist.filter((item, index) =>
this.form.zjlist.findIndex(i => i.id === item.id) === index);
console.log(this.form.zjlist);
3.连接
this.bumenNumber = this.bumenNumber.concat(ret.data)





网友评论