vue remark重置 提交
作者:互联网
html:
<el-table-column prop="remark" label="">
<template slot-scope="scope">
<el-input v-model="scope.row.remark" type="text" />
</template>
</el-table-column>
<el-table-column prop="remark" label="">
<template slot-scope="scope">
<el-button
class="remark"
@click="Remark(scope.remark, scope.row)"
type="primary"
>提交</el-button
>
</template>
</el-table-column>
js:
//备注
Remark(remark, row) {
this.$axios
.get("url", {
params: {
id: row.id,
remark: row.remark,
},
})
.then((res) => {
if (res.data == 1) {
alert("Submit successfully");
}
});
},
标签:remark,vue,res,重置,axios,提交,id,row 来源: https://www.cnblogs.com/hanxue-chen/p/15974947.html