注:这里gradingMethodData是一个数组
使用splice新增数组元素
this.gradingMethodData.splice(1, 0, { col1: '', col2: '小于', col3: '', col4: '' })
使用splice删除数组元素
this.gradingMethodData.splice(scope.$index, 1)
最后注意使用setData提交数据
this.$nextTick(() => {
this.$refs.gradingMethodTable.setData(this.gradingMethodData)
})