第一步:编辑操作

   <template slot-scope="scope">
                        <el-button
                            type="text"
                            icon="el-icon-edit"
                            @click="handleEdit(scope.$index, scope.row)"
                        >编辑</el-button>
                  
                    </template>

第二步

进行编辑处理

    // 编辑操作
        handleEdit(index, row) {
            console.log(index)
            console.log(row)
            this.idx = index;
            this.form = row;
            this.editVisible = true;
        },

运行结果