|
|
@@ -76,7 +76,7 @@
|
|
|
<el-input type="textarea" v-model="agentReason" maxlength="200"></el-input>
|
|
|
<div style="display: flex; align-items: center; justify-content: flex-end; margin-top: 10px">
|
|
|
<el-button size="small" @click="scope.row.agentShow = false">取消</el-button>
|
|
|
- <el-button type="danger" size="small" @click="handleAgentConfirm(scope.row)">确定驳回</el-button>
|
|
|
+ <el-button type="danger" size="small" @click="handleAgentConfirm(scope.row)" :loading="auditLoading">确定驳回</el-button>
|
|
|
</div>
|
|
|
</el-popover>
|
|
|
</template>
|
|
|
@@ -269,7 +269,7 @@
|
|
|
</el-form>
|
|
|
<div class="footer">
|
|
|
<el-button class="border-[#0083FF] color-[#0083FF]" plain @click="show = false">取消</el-button>
|
|
|
- <el-button type="primary" @click="handleConfirmAudit">审核通过</el-button>
|
|
|
+ <el-button type="primary" @click="handleConfirmAudit" :loading="auditLoading">审核通过</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</PageMain>
|
|
|
@@ -287,7 +287,7 @@ const handleClick = (e) => {
|
|
|
firstForm.value = {}
|
|
|
initList(Number(activeName.value))
|
|
|
}
|
|
|
-
|
|
|
+ const auditLoading = ref(false)//审核loading
|
|
|
// 待审核
|
|
|
let firstForm = ref({})
|
|
|
let firstData = ref([])
|
|
|
@@ -373,6 +373,7 @@ let rules = ref({
|
|
|
|
|
|
// 通过
|
|
|
const handleConfirmAudit = () => {
|
|
|
+ auditLoading.value = true
|
|
|
api.financeApi.userBankCardAudit({
|
|
|
id: agentForm.value.id,
|
|
|
auditStatus: '1'
|
|
|
@@ -382,6 +383,7 @@ const handleConfirmAudit = () => {
|
|
|
message: res.msg,
|
|
|
type: 'success'
|
|
|
})
|
|
|
+ auditLoading.value = false
|
|
|
show.value = false
|
|
|
initList(0)
|
|
|
initList(1)
|
|
|
@@ -395,6 +397,7 @@ const handleAgentCancel = (row) => {
|
|
|
agentReason.value = ''
|
|
|
}
|
|
|
const handleAgentConfirm = (row) => {
|
|
|
+ auditLoading.value = true
|
|
|
row.agentShow = false
|
|
|
api.financeApi.userBankCardAudit({
|
|
|
id: row.id,
|
|
|
@@ -406,6 +409,7 @@ const handleAgentConfirm = (row) => {
|
|
|
message: res.msg,
|
|
|
type: 'success'
|
|
|
})
|
|
|
+ auditLoading.value = false
|
|
|
initList(0)
|
|
|
initList(2)
|
|
|
}
|