// 上移upData(text, record, index, column) {  if (index === 0) {    return;  } else {    // sort是排序 后端要的    this.tableData[index - 1].sort =      Number(this.tableData[index - 1].sort) + 1;    record.sort = Number(record.sort) - 1;  }  // 在上一项插入该项  this.tableData.splice(index - 1, 0, this.tableData[index]);  // 删除后一项  this.tableData.splice(index + 1, 1);  this.$message.success("上移胜利");}// 下移downData(text, record, index, column) {  if (index === this.tableData.length - 1) {    return;  } else {    // sort是排序 后端要的    this.tableData[index + 1].sort =      Number(this.tableData[index + 1].sort) - 1;    record.sort = Number(record.sort) + 1;  }  // 在下一项插入该项  this.tableData.splice(index + 2, 0, this.tableData[index]);  // 删除前一项  this.tableData.splice(index, 1);  this.$message.success("下移胜利");}// 删除this.tableData.splice(index, 1);