编辑功能点击确定要给后端传id 但是该怎么获取到id 加上slot-scope内容就会丢失

问题遇到的现象和发生背景
</el-dialog>
    <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="isOk()">确 定</el-button>
   </span>
</el-dialog>
 isOk() {
      let qs = require("qs");
      let id = {
        bname: this.ruleForm.laborname,
        psnname: this.ruleForm.Project,
        vname: this.ruleForm.psnName,
      };
      console.log(id);
      this.$axios
        .post("/api/xxxxx/xxxxxxxxx", qs.stringify(id))
        .then((res) => {}

id应该的打开这个对话框之前,通过列表传过来的,应该保存在变量里面的呀。

您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!
PS:问答VIP年卡 【限时加赠:IT技术图书免费领】,了解详情>>> https://vip.csdn.net/askvip?utm_source=1146287632