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");
          }
        });
    },
posted @ 2022-03-07 10:52  koo-  阅读(144)  评论(0)    收藏  举报