CN-1082 列表的edit、delete交互问题

This commit is contained in:
hyx
2023-06-12 11:13:26 +08:00
parent 08437a81f2
commit b43473c505
7 changed files with 16 additions and 16 deletions

View File

@@ -215,10 +215,10 @@ export default {
this.batchDeleteObjs.push(obj)
}
})
if (this.batchDeleteObjs.length > 1) {
this.disableEdit = true
} else {
if (this.batchDeleteObjs.length === 1) {
this.disableEdit = false
} else {
this.disableEdit = true
}
if (this.batchDeleteObjs.length >= 1) {
this.disableDelete = false
@@ -238,10 +238,10 @@ export default {
this.batchDeleteObjs.splice(cancleObjIndex, 1)
}
}
if (this.batchDeleteObjs.length > 1) {
this.disableEdit = true
} else {
if (this.batchDeleteObjs.length === 1) {
this.disableEdit = false
} else {
this.disableEdit = true
}
if (this.batchDeleteObjs.length >= 1) {
this.disableDelete = false