el-table 拖拽移动之后 编号不变 - 解决方法

const listTemp = [..._this.tableList]
const oldValue = listTemp.splice(oldIndex, 1)[0]
listTemp.splice(newIndex, 0, oldValue)


_this.tableList = []  //先清空表格数据
_this.$nextTick(() => {
  _this.tableList = listTemp
})

你可能感兴趣的:(Vue,javascript,vue.js,html5)