|
|
@@ -429,11 +429,18 @@
|
|
|
text: '提交中',
|
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
|
});
|
|
|
- await processInstanceCreateAPI(this.form);
|
|
|
- this.$message('提交审核成功');
|
|
|
- this.loading.close();
|
|
|
- this.$emit('reload');
|
|
|
- this.cancel();
|
|
|
+ await processInstanceCreateAPI(this.form)
|
|
|
+ .then((res) => {
|
|
|
+ console.lof(res, 'res');
|
|
|
+ this.$message('提交审核成功');
|
|
|
+ this.loading.close();
|
|
|
+ this.$emit('reload');
|
|
|
+ this.cancel();
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ this.loading.close();
|
|
|
+ console.error(err, 'err');
|
|
|
+ });
|
|
|
},
|
|
|
async submit1() {
|
|
|
this.loading = this.$loading({
|
|
|
@@ -446,12 +453,24 @@
|
|
|
approvalStatus: this.approvalStatus,
|
|
|
...this.form
|
|
|
};
|
|
|
- await this[this.apiFunName](params);
|
|
|
+ await this[this.apiFunName](params)
|
|
|
+ .then((res) => {
|
|
|
+ console.lof(res, 'res');
|
|
|
+ this.$message('提交审核成功');
|
|
|
+ this.loading.close();
|
|
|
+ this.$emit('reload');
|
|
|
+ this.cancel();
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.error(err, 'err');
|
|
|
+ this.loading.close();
|
|
|
+ // this.$message.error(err.message || '提交审核失败');
|
|
|
+ });
|
|
|
//await processInstanceUpdateStatusAPI(params);
|
|
|
- this.$message('提交发布成功');
|
|
|
- this.loading.close();
|
|
|
- this.$emit('reload');
|
|
|
- this.cancel();
|
|
|
+ // this.$message('提交发布成功');
|
|
|
+ // this.loading.close();
|
|
|
+ // this.$emit('reload');
|
|
|
+ // this.cancel();
|
|
|
},
|
|
|
cancel() {
|
|
|
this.$emit('update:processSubmitDialogFlag', false);
|