Commit bd9c5ddd by 无尘

fix: 更新loading

parent f6c32705
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘
* @LastEditTime: 2020-12-16 10:20:14
* @LastEditTime: 2020-12-22 17:25:50
-->
<template>
<div class="unreview-wrap common-set-wrap">
......@@ -113,17 +113,19 @@
</el-dialog>
<!-- 拒绝 -->
<el-dialog class="refuse-dialog" title="提示" :visible.sync="refuseVisible" :before-close="cancelRefuse" width="422px">
<div>
<div class="refuse-tip">请输入拒绝理由</div>
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" class="demo-ruleForm">
<el-form-item label="" prop="refuseReason">
<el-input class="font-14" v-model="ruleForm.refuseReason" type="textarea" placeholder="最多 50 个字" :rows="3"> </el-input>
</el-form-item>
</el-form>
</div>
<div slot="footer" class="approve-footer dialog-footer">
<el-button @click="cancelRefuse('ruleForm')">取 消</el-button>
<el-button type="primary" @click="sendRefuse('ruleForm')">确 定</el-button>
<div v-loading="loadingRefuse">
<div>
<div class="refuse-tip">请输入拒绝理由</div>
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" class="demo-ruleForm" @submit.native.prevent>
<el-form-item label="" prop="refuseReason">
<el-input class="font-14" v-model="ruleForm.refuseReason" type="textarea" placeholder="最多 50 个字" :rows="3"> </el-input>
</el-form-item>
</el-form>
</div>
<div slot="footer" class="approve-footer dialog-footer">
<el-button @click="cancelRefuse('ruleForm')">取 消</el-button>
<el-button type="primary" @click="sendRefuse('ruleForm')">确 定</el-button>
</div>
</div>
</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>
......@@ -229,7 +231,8 @@ export default {
dialogVisible: false,
loadBtn: false,
timeFlag: null,
loadingFull: ''
loadingFull: '',
loadingRefuse: false
};
},
mounted() {
......@@ -491,10 +494,11 @@ export default {
return false;
}
});
}, 500),
}, 300),
postRefuseData() {
const that = this;
that.loadingRefuse = true;
let para = {
auditName: that.auditName,
auditId: that.selectId,
......@@ -502,6 +506,7 @@ export default {
};
postRefuse(para)
.then(res => {
that.loadingRefuse = false;
if (res.code == '0000') {
showMsg.showmsg('操作成功', 'success');
that.refuseVisible = false;
......@@ -518,6 +523,7 @@ export default {
}
})
.catch(function(error) {
that.loadingRefuse = false;
that.$message.warning({
duration: 1000,
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