Commit bd9c5ddd by 无尘

fix: 更新loading

parent f6c32705
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2018-10-10 14:44:45 * @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-12-16 10:20:14 * @LastEditTime: 2020-12-22 17:25:50
--> -->
<template> <template>
<div class="unreview-wrap common-set-wrap"> <div class="unreview-wrap common-set-wrap">
...@@ -113,9 +113,10 @@ ...@@ -113,9 +113,10 @@
</el-dialog> </el-dialog>
<!-- 拒绝 --> <!-- 拒绝 -->
<el-dialog class="refuse-dialog" title="提示" :visible.sync="refuseVisible" :before-close="cancelRefuse" width="422px"> <el-dialog class="refuse-dialog" title="提示" :visible.sync="refuseVisible" :before-close="cancelRefuse" width="422px">
<div v-loading="loadingRefuse">
<div> <div>
<div class="refuse-tip">请输入拒绝理由</div> <div class="refuse-tip">请输入拒绝理由</div>
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" class="demo-ruleForm"> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" class="demo-ruleForm" @submit.native.prevent>
<el-form-item label="" prop="refuseReason"> <el-form-item label="" prop="refuseReason">
<el-input class="font-14" v-model="ruleForm.refuseReason" type="textarea" placeholder="最多 50 个字" :rows="3"> </el-input> <el-input class="font-14" v-model="ruleForm.refuseReason" type="textarea" placeholder="最多 50 个字" :rows="3"> </el-input>
</el-form-item> </el-form-item>
...@@ -125,6 +126,7 @@ ...@@ -125,6 +126,7 @@
<el-button @click="cancelRefuse('ruleForm')">取 消</el-button> <el-button @click="cancelRefuse('ruleForm')">取 消</el-button>
<el-button type="primary" @click="sendRefuse('ruleForm')">确 定</el-button> <el-button type="primary" @click="sendRefuse('ruleForm')">确 定</el-button>
</div> </div>
</div>
</el-dialog> </el-dialog>
<review-result-detail :audit-ids="auditIds" :success-count="successCount" :fail-count="failCount" :table-list-data="tableListData" :detail-show="detailShow" @hideDetailDialog="hideDetailDialog"> </review-result-detail> <review-result-detail :audit-ids="auditIds" :success-count="successCount" :fail-count="failCount" :table-list-data="tableListData" :detail-show="detailShow" @hideDetailDialog="hideDetailDialog"> </review-result-detail>
...@@ -229,7 +231,8 @@ export default { ...@@ -229,7 +231,8 @@ export default {
dialogVisible: false, dialogVisible: false,
loadBtn: false, loadBtn: false,
timeFlag: null, timeFlag: null,
loadingFull: '' loadingFull: '',
loadingRefuse: false
}; };
}, },
mounted() { mounted() {
...@@ -491,10 +494,11 @@ export default { ...@@ -491,10 +494,11 @@ export default {
return false; return false;
} }
}); });
}, 500), }, 300),
postRefuseData() { postRefuseData() {
const that = this; const that = this;
that.loadingRefuse = true;
let para = { let para = {
auditName: that.auditName, auditName: that.auditName,
auditId: that.selectId, auditId: that.selectId,
...@@ -502,6 +506,7 @@ export default { ...@@ -502,6 +506,7 @@ export default {
}; };
postRefuse(para) postRefuse(para)
.then(res => { .then(res => {
that.loadingRefuse = false;
if (res.code == '0000') { if (res.code == '0000') {
showMsg.showmsg('操作成功', 'success'); showMsg.showmsg('操作成功', 'success');
that.refuseVisible = false; that.refuseVisible = false;
...@@ -518,6 +523,7 @@ export default { ...@@ -518,6 +523,7 @@ export default {
} }
}) })
.catch(function(error) { .catch(function(error) {
that.loadingRefuse = false;
that.$message.warning({ that.$message.warning({
duration: 1000, duration: 1000,
message: error.message message: error.message
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment