|
|
@@ -118,9 +118,10 @@
|
|
118
|
118
|
<el-button @click="cancel" class="endbutton1" round>
|
|
119
|
119
|
<span>取 消</span>
|
|
120
|
120
|
</el-button>
|
|
121
|
|
- <el-button v-if="isSecretaryRole" @click="submitMediation" :disabled="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1'"
|
|
122
|
|
- class="endbutton1" type="primary" round>
|
|
123
|
|
- <span>提 交</span>
|
|
|
121
|
+ <el-button v-if="isSecretaryRole" :loading="loadingSubmit" @click="submitMediation"
|
|
|
122
|
+ :disabled="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1'" class="endbutton1"
|
|
|
123
|
+ type="primary" round>
|
|
|
124
|
+ 提 交
|
|
124
|
125
|
</el-button>
|
|
125
|
126
|
</div>
|
|
126
|
127
|
</el-dialog>
|
|
|
@@ -169,6 +170,7 @@ export default {
|
|
169
|
170
|
fileList: [],
|
|
170
|
171
|
attachList: [],
|
|
171
|
172
|
isSecretaryRole: true,
|
|
|
173
|
+ loadingSubmit: false
|
|
172
|
174
|
};
|
|
173
|
175
|
},
|
|
174
|
176
|
watch: {
|
|
|
@@ -290,16 +292,19 @@ export default {
|
|
290
|
292
|
this.$modal.msgSuccess("成功");
|
|
291
|
293
|
this.$emit("cancelMediation");
|
|
292
|
294
|
this.$emit("getList", this.queryParams);
|
|
|
295
|
+ this.loadingSubmit = false;
|
|
293
|
296
|
});
|
|
294
|
297
|
},
|
|
295
|
298
|
cancel() {
|
|
296
|
299
|
this.$emit("cancelMediation");
|
|
297
|
300
|
},
|
|
298
|
|
-
|
|
299
|
|
- submitMediation: _.debounce(function() {
|
|
|
301
|
+
|
|
|
302
|
+ submitMediation() {
|
|
300
|
303
|
if (this.fileList.length < 1 && !this.mediationType && this.mediationData.mediationMethod == "2") {
|
|
301
|
304
|
this.$modal.msgError("请上传调解书");
|
|
302
|
305
|
return
|
|
|
306
|
+ } else {
|
|
|
307
|
+ this.loadingSubmit = true;
|
|
303
|
308
|
}
|
|
304
|
309
|
let mediationVal = {}
|
|
305
|
310
|
if (this.codes == 200) {
|
|
|
@@ -318,7 +323,7 @@ export default {
|
|
318
|
323
|
}
|
|
319
|
324
|
}
|
|
320
|
325
|
this.mediationFn(mediationVal);
|
|
321
|
|
- },5000),
|
|
|
326
|
+ },
|
|
322
|
327
|
resultsMediation() {
|
|
323
|
328
|
|
|
324
|
329
|
}
|