|
|
@@ -157,6 +157,10 @@ export default {
|
|
|
this.$refs.form
|
|
|
.validate()
|
|
|
.then(() => {
|
|
|
+ this.$toast.loading({
|
|
|
+ message: '加载中...',
|
|
|
+ forbidClick: true
|
|
|
+ });
|
|
|
let form = { ...this.form };
|
|
|
form.userId = this.userInfo.id;
|
|
|
form.status = 'PENDING';
|
|
|
@@ -166,7 +170,11 @@ export default {
|
|
|
...form
|
|
|
})
|
|
|
.then(() => {
|
|
|
+ this.$toast.clear();
|
|
|
this.$router.replace('/Waiting');
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$toast.clear();
|
|
|
});
|
|
|
})
|
|
|
.catch(() => {
|