vue remark重置 提交
2024-09-08 19:01:09
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");
}
});
},
最新文章
- 安卓端360度全景图的html5实现
- springboot Serving Web Content with Spring MVC
- 使用Servlet上传文件
- Gradify - 提取图片颜色,创建响应式的 CSS渐变
- sql server 警报管理,实时监听数据库动向,运筹帷幄之中
- BZOJ 4516: [Sdoi2016]生成魔咒
- Div中高度自适应增长方法
- jQuery提升性能技巧及个人总结
- [Environment Build] 如何实现Visual Studio中的区域语言环境切换
- ClassLoader和Reflect
- [python]百度语音rest api
- 基于WebForm和Bootstrap的权限框架解决方案 一.PQGRID的使用
- [转载]MySQL UUID() 函数
- MyISAM 存储引擎的特点及优化方法
- 数据库scheme设计(9.4 小结)
- 潭州课堂25班:Ph201805201 tornado 项目 第五课 增加用户系统-用户中心(课堂笔记)
- 做一个vue的todolist列表
- 使用git上传项目到github的最基础命令
- 通过创建临时表合并某一个库的hive小文件
- Angular 下的 directive (part 2)