<el-table-column prop="remark" width="120px" label="备注" align="center"><template slot-scope="scope"><span v-if="!scope.row.setingFlag" @click="handleEdit(scope.row)">{{scope.row.remark}}</span><div v-else><el-input v-model="scope.row.remark" @blur="handleBlur(scope.row)"></el-input></div></template> </el-table-column>
handleBlur(row) {row.setingFlag = false;// modify(param).then(res=>{// if(res.code == 200){// this.$message.success('修改数据成功!')// }else{// this.$message.error('获取数据失败!')// }// }) }, handleEdit(row) {this.$set(row, 'setingFlag', true) },