提交loading

This commit is contained in:
hanchaobo
2024-02-27 18:04:27 +08:00
parent 836f26c1f0
commit 42806a93bf
2 changed files with 12 additions and 7 deletions
@@ -118,9 +118,10 @@
<el-button @click="cancel" class="endbutton1" round>
<span>取 消</span>
</el-button>
<el-button v-if="isSecretaryRole" @click="submitMediation" :disabled="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1'"
class="endbutton1" type="primary" round>
<span>提 交</span>
<el-button v-if="isSecretaryRole" :loading="loadingSubmit" @click="submitMediation"
:disabled="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1'" class="endbutton1"
type="primary" round>
提 交
</el-button>
</div>
</el-dialog>
@@ -169,6 +170,7 @@ export default {
fileList: [],
attachList: [],
isSecretaryRole: true,
loadingSubmit: false
};
},
watch: {
@@ -290,16 +292,19 @@ export default {
this.$modal.msgSuccess("成功");
this.$emit("cancelMediation");
this.$emit("getList", this.queryParams);
this.loadingSubmit = false;
});
},
cancel() {
this.$emit("cancelMediation");
},
submitMediation: _.debounce(function() {
submitMediation() {
if (this.fileList.length < 1 && !this.mediationType && this.mediationData.mediationMethod == "2") {
this.$modal.msgError("请上传调解书");
return
} else {
this.loadingSubmit = true;
}
let mediationVal = {}
if (this.codes == 200) {
@@ -318,7 +323,7 @@ export default {
}
}
this.mediationFn(mediationVal);
},5000),
},
resultsMediation() {
}