|
|
@@ -9,8 +9,8 @@
|
|
|
</el-row>
|
|
|
<el-row type="flex" class="row-bg" justify="end">
|
|
|
<el-form-item>
|
|
|
- <el-button v-if="form.auditStatus == 'WAITING_PLATFORM'" type="primary" @click="handleAgree">同意</el-button>
|
|
|
- <el-button v-if="form.auditStatus == 'WAITING_PLATFORM'" type="danger" @click="handleDisagree">驳回
|
|
|
+ <el-button v-if="form.auditStatus == 'WAITING_PLATFORM'" type="primary" @click="handleAgree" :loading="loading">同意</el-button>
|
|
|
+ <el-button v-if="form.auditStatus == 'WAITING_PLATFORM'" type="danger" @click="handleDisagree" :loading="loading">驳回
|
|
|
</el-button>
|
|
|
<el-button @click="handleCancel">关闭</el-button>
|
|
|
</el-form-item>
|
|
|
@@ -59,6 +59,7 @@ export default {
|
|
|
businessId: null,
|
|
|
form: {},
|
|
|
task: {},
|
|
|
+ loading: false,
|
|
|
option: {
|
|
|
emptyBtn: false,
|
|
|
submitBtn: false,
|
|
|
@@ -268,6 +269,7 @@ export default {
|
|
|
variables,
|
|
|
comment: this.form.comment,
|
|
|
};
|
|
|
+ this.loading = true;
|
|
|
completeTask(params).then(res => {
|
|
|
const data = res.data;
|
|
|
if (data.success) {
|
|
|
@@ -277,7 +279,9 @@ export default {
|
|
|
} else {
|
|
|
this.$message.error(data.msg || '提交失败');
|
|
|
}
|
|
|
- })
|
|
|
+ }).finally(()=>{
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
},
|
|
|
handleDisagree() {
|
|
|
if (!this.form.comment) {
|
|
|
@@ -292,6 +296,7 @@ export default {
|
|
|
processInstanceId: this.processInstanceId,
|
|
|
comment: this.form.comment,
|
|
|
};
|
|
|
+ this.loading = true;
|
|
|
completeTask(params).then(res => {
|
|
|
const data = res.data;
|
|
|
if (data.success) {
|
|
|
@@ -301,7 +306,9 @@ export default {
|
|
|
} else {
|
|
|
this.$message.error(data.msg || '提交失败');
|
|
|
}
|
|
|
- })
|
|
|
+ }).finally(()=>{
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
},
|
|
|
handleChange(name) {
|
|
|
this.activeNames = name;
|