|
|
@@ -3,6 +3,7 @@
|
|
|
custom-class="ele-dialog-form long-dialog-form"
|
|
|
:centered="true"
|
|
|
:visible="processSubmitDialogFlag"
|
|
|
+ v-if="processSubmitDialogFlag"
|
|
|
title="提交审核"
|
|
|
append-to-body
|
|
|
:close-on-click-modal="false"
|
|
|
@@ -230,7 +231,8 @@
|
|
|
userOptions: [],
|
|
|
userGroupOptions: [],
|
|
|
dictList: {},
|
|
|
- rules: {}
|
|
|
+ rules: {},
|
|
|
+ loading: null
|
|
|
};
|
|
|
},
|
|
|
async created() {
|
|
|
@@ -422,12 +424,23 @@
|
|
|
});
|
|
|
},
|
|
|
async submit() {
|
|
|
+ this.loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '提交中',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ });
|
|
|
await processInstanceCreateAPI(this.form);
|
|
|
this.$message('提交审核成功');
|
|
|
+ this.loading.close();
|
|
|
this.$emit('reload');
|
|
|
this.cancel();
|
|
|
},
|
|
|
async submit1() {
|
|
|
+ this.loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '提交中',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ });
|
|
|
let params = {
|
|
|
id: this.form.businessId,
|
|
|
approvalStatus: this.approvalStatus,
|
|
|
@@ -436,6 +449,7 @@
|
|
|
await this[this.apiFunName](params);
|
|
|
//await processInstanceUpdateStatusAPI(params);
|
|
|
this.$message('提交发布成功');
|
|
|
+ this.loading.close();
|
|
|
this.$emit('reload');
|
|
|
this.cancel();
|
|
|
},
|