vue
<el-input
v-model="scope.row.discount"
type="number"
@input="updateTotal($event)"
@change="getprice"
/>
无法在el-input中修改
getdata1(e) {
var that = this
var data = e
data.discount = 10
data.num = 1
data.remark = ''
that.tableData.push(data)
},
可以在el-input中修改
getdata1(e) {
var that = this
var data = {
...e,
discount: 10,
num: 1,
remark: '',
}
that.tableData.push(data)
},