|
@@ -152,20 +152,20 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
submit() {
|
|
submit() {
|
|
|
- // let data = { ...this.formData };
|
|
|
|
|
- // this.saving = true;
|
|
|
|
|
- // this.$http
|
|
|
|
|
- // .post('/message/save', data, { body: 'json' })
|
|
|
|
|
- // .then(() => {
|
|
|
|
|
- // this.saving = false;
|
|
|
|
|
- // this.$message.success('成功');
|
|
|
|
|
- // this.showForm = false;
|
|
|
|
|
- // })
|
|
|
|
|
- // .catch(e => {
|
|
|
|
|
- // console.log(e);
|
|
|
|
|
- // this.saving = false;
|
|
|
|
|
- // this.$message.error(e.error);
|
|
|
|
|
- // });
|
|
|
|
|
|
|
+ let data = { ...this.formData };
|
|
|
|
|
+ this.saving = true;
|
|
|
|
|
+ this.$http
|
|
|
|
|
+ .post('/message/save', data, { body: 'json' })
|
|
|
|
|
+ .then(() => {
|
|
|
|
|
+ this.saving = false;
|
|
|
|
|
+ this.$message.success('成功');
|
|
|
|
|
+ this.showForm = false;
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(e => {
|
|
|
|
|
+ console.log(e);
|
|
|
|
|
+ this.saving = false;
|
|
|
|
|
+ this.$message.error(e.error);
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|