成组配套

This commit is contained in:
liushuai
2019-02-28 13:28:24 +08:00
parent 91a4bd99b4
commit a04e6c147b
3 changed files with 54 additions and 12 deletions

View File

@@ -565,8 +565,9 @@ export default {
}
}
if (this.err === 0) { // 传递成功后,清除该分组。当所有组都传递完成后,该项目下的机床和分组消失
const index = this.groupsNames.indexOf(this.groupValue)
this.groupsNames.splice(index, 1)
console.log(this.groupsNames.indexOf(this.groupValue), 22222)
// const index = this.groupsNames.indexOf(this.groupValue)
// this.groupsNames.splice(index, 1)
if (this.groupsNames.length === 0) {
const groupIndex = this.machineNames.indexOf(this.machineValue)
this.machineNames.splice(groupIndex, 1)