|
@@ -71,7 +71,7 @@ export default {
|
|
|
if (_.get(duplicate, '_id')) {
|
|
|
res = await this.update(duplicate);
|
|
|
} else {
|
|
|
- const { termid, batchid, classid, userid } = this.user;
|
|
|
+ const { termid, batchid, classid, userid, planid } = this.user;
|
|
|
if (!termid) {
|
|
|
this.$notify({ type: 'danger', message: '学生缺少期信息' });
|
|
|
return;
|
|
@@ -88,7 +88,7 @@ export default {
|
|
|
this.$notify({ type: 'danger', message: '缺少学生信息' });
|
|
|
return;
|
|
|
}
|
|
|
- duplicate = { ...duplicate, termid, batchid, classid, studentid: userid };
|
|
|
+ duplicate = { ...duplicate, termid, batchid, classid, studentid: userid, planid };
|
|
|
res = await this.create(duplicate);
|
|
|
}
|
|
|
msg.clear();
|