1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| new Sortable(el, { animation: 180, onEnd({ newIndex, oldIndex }) { const currRow = data.splice(oldIndex, 1)[0] data.splice(newIndex, 0, currRow) const test = data.slice() data = [] that.$nextTick(() => { that.form.interactiveProcessInit = test that.$forceUpdate() }) } })
|