冻干炸鸡 2022-06-23 16:34 采纳率: 50%
浏览 67
已结题

vue通过两个字段查找修改怎么写

vue修改 通过两个字段查找修改,前端怎么写?
ahandleUpdate(row) {
this.reseta();
const name = row.name || this.ids
getPreconfiguration(name).then(response => {
this.aform = response.data;
this.a1open = true;
this.title = "修改信息表";
});
},
现在是这么写的
除了根据name还想加一个railPointCode
后端已经这么写了,前端不知道怎么加
where name = #{name} AND rail_point_code = #{railPointCode}

谢谢大家!

  • 写回答

3条回答 默认 最新

  • 关注

    ahandleUpdate(row) {
    this.reseta();
    const form = {
    name: row.name || this.ids
    railPointCode: railPointCode
    }
    getPreconfiguration(form).then(response => {
    this.aform = response.data;
    this.a1open = true;
    this.title = "修改信息表";
    });
    },

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 7月2日
  • 已采纳回答 6月24日
  • 创建了问题 6月23日