编辑如下

...
@click="handleEdit(scope.$index, scope.row)">编辑</el-button>
...

 使用 Object.assign 来传值,如果直接用

this.editForm=row
来传值,则编辑的时候会影响当行显示
//编辑
      handleEdit: function (index, row) {
        this.editFormVisible = true;//dialog对话窗口打开
        this.editForm = Object.assign({}, row);//将数据传入dialog页面
        this.editForm.index=index;//传递当前index
      }

 

参考;https://blog.csdn.net/weixin_42648692/article/details/103005916

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
  • 2021-12-11
  • 2022-12-23
  • 2021-11-10
猜你喜欢
  • 2021-04-08
  • 2021-04-25
  • 2022-12-23
  • 2021-05-23
  • 2021-10-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案