1,给el-table-column添加一个事件<el-table-column label="参数值"> <template slot-scope="scope"> <i class="el-icon-edit-outline" @click="editParam(scope.$index, userParamData)"></i> <span style="margin-left: 2px">{{ scope.row.Value }}</span> </template> </el-table-column> 2,实现事件 editParam(index,data){//index是数组userParamData的序号,data是userParamData数组 data[index]['Value']="200";//目的是动态的修改数组中的值 },
|