This commit is contained in:
liugq 2019-03-07 11:28:49 +08:00
parent 0f7f7be946
commit 38c20ec3be
1 changed files with 1 additions and 3 deletions
src/views/table/treeTable

View File

@ -134,15 +134,13 @@ export default {
const data = this.$refs.TreeTable.getData()
const { _id } = this.tempItem
let index
for (let i = 0; i < data.length; i++) {
if (data[i]._id === _id) {
index = i
data.splice(i, 1, Object.assign({}, this.tempItem))
break
}
}
data.splice(index, 1, Object.assign({}, this.tempItem))
this.dialogFormVisible = false
},
addMenuItem(row, type) {