Commit 277b4b19 by cwq0219

表格

1 parent 3ac3445a
......@@ -240,15 +240,15 @@ export default {
if (this.hasNum && evt.newIndex === 0) {
this.handleGet()
} else {
// var oldIndex = this.hasNum ? (evt.oldIndex - 1) : evt.oldIndex
// var newIndex = this.hasNum ? (evt.newIndex - 1) : evt.newIndex
const oldItem = this.tableParams.dropCol[evt.oldIndex]
this.tableParams.dropCol.splice(evt.oldIndex, 1)
this.tableParams.dropCol.splice(evt.newIndex, 0, oldItem)
var oldIndex = this.hasNum ? (evt.oldIndex - 1) : evt.oldIndex
var newIndex = this.hasNum ? (evt.newIndex - 1) : evt.newIndex
const oldItem = this.tableParams.dropCol[oldIndex]
this.tableParams.dropCol.splice(oldIndex, 1)
this.tableParams.dropCol.splice(newIndex, 0, oldItem)
this.isMove = false
this.timer = setTimeout(() => {
(!this.isMove) && this.handleSave()
}, 1000)
}, 400)
}
}
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!