</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应该的打开这个对话框之前,通过列表传过来的,应该保存在变量里面的呀。
您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!