diff --git a/src/views/mtm/routepack_form.vue b/src/views/mtm/routepack_form.vue index da4ac074..8d270754 100644 --- a/src/views/mtm/routepack_form.vue +++ b/src/views/mtm/routepack_form.vue @@ -244,6 +244,7 @@ export default { let form = {}; form.name = that.form.name; form.material = that.form.material; + console.log("that.form",that.form) if (that.form.id) { that.$API.mtm.routepack.update .req(that.form.id, that.form) @@ -258,7 +259,9 @@ export default { } else { that.$API.mtm.routepack.create.req(form).then((res) => { this.active = 1; + that.form.id = res.id; that.routepack = res.id; + console.log("that.form",that.form) }); } },