|
@@ -59,6 +59,11 @@ export default {
|
|
|
if (this.$checkRes(res)) this.$set(this, `form`, res.data || {});
|
|
|
},
|
|
|
async onSubmit() {
|
|
|
+ let msg = this.$toast({
|
|
|
+ duration: 0,
|
|
|
+ message: '加载中...',
|
|
|
+ forbidClick: true,
|
|
|
+ });
|
|
|
let duplicate = _.cloneDeep(this.form);
|
|
|
let res;
|
|
|
if (_.get(duplicate, '_id')) {
|
|
@@ -84,6 +89,7 @@ export default {
|
|
|
duplicate = { ...duplicate, termid, batchid, classid, studentid: userid };
|
|
|
res = await this.create(duplicate);
|
|
|
}
|
|
|
+ msg.clear();
|
|
|
this.$checkRes(res, '培训心得保存成功', res.errmsg || '培训心得保存失败');
|
|
|
},
|
|
|
},
|