diff --git a/src/views/routine/dis/basic/index.vue b/src/views/routine/dis/basic/index.vue index 6b150a1..191cc41 100644 --- a/src/views/routine/dis/basic/index.vue +++ b/src/views/routine/dis/basic/index.vue @@ -352,11 +352,12 @@ export default { }); } else { addBasic(this.form).then(response => { - this.$modal.msgSuccess("新增成功"); - this.open = false; - this.getList(); - console.log(this.form.stId) - this.dataform = { + if (response.code === 200) { + this.$modal.msgSuccess("新增成功"); + this.open = false; + this.getList(); + console.log(this.form.stId) + this.dataform = { id: null, stId: this.form.stId, stName: this.form.stName, @@ -387,8 +388,7 @@ export default { path: '/routine/dis/disma', }) } - - + } }); } } diff --git a/src/views/routine/dis/formData.vue b/src/views/routine/dis/formData.vue index 04690b9..97316fa 100644 --- a/src/views/routine/dis/formData.vue +++ b/src/views/routine/dis/formData.vue @@ -15,8 +15,8 @@
是否申请转专业:()是 ()否
-原年级和专业_____________________________ - 申请转入年级和专业:_____________________________ +
原年级和专业:__ + {{ form.maList.length > 0 ? form.maList[0].oldgrade : '暂无数据' }} + __{{ form.maList.length > 0 ? form.maList[0].oldmajor : '暂无数据' }}__ + + + + 申请转入年级和专业:__ + {{ form.maList.length > 0 ? form.maList[0].newgrade : '暂无数据' }} + __ + {{ form.maList.length > 0 ? form.maList[0].newmajor : '暂无数据' }}__