diff --git a/src/views/audit/bean/beanAudit.vue b/src/views/audit/bean/beanAudit.vue index 687d448..4f01a24 100644 --- a/src/views/audit/bean/beanAudit.vue +++ b/src/views/audit/bean/beanAudit.vue @@ -101,12 +101,14 @@ - + - + + + - + @@ -156,7 +156,7 @@ const activeTimeRange = ref('') const sortField = ref('') const sortOrder = ref('') const checkTab = ref('pending') -const rejectVisible = ref(false) +const rejectDialogVisible = ref(false) const reason = ref('') const rejectRow = ref({ id: null @@ -380,7 +380,7 @@ const handleReject = async () => { } await API({ url: '/beanAudit/status2', data: params }) ElMessage.success('驳回成功') - rejectVisible.value = false + rejectDialogVisible.value = false await get() cancelClicked.value = false await getStats() @@ -389,6 +389,30 @@ const handleReject = async () => { ElMessage.error('操作失败') } } +// 处理驳回取消操作 +const handleRejectCancel = () => { + rejectDialogVisible.value = false +} +// 处理驳回关闭操作 +const handleRejectClose = () => { + rejectDialogVisible.value = false +} +// 这个防抖好像还不能放在定义之前(handleApproveConfirm) +const throttledHandleApprove = _.throttle(handleApproveConfirm, 5000, { + trailing: false +}) +// 显示驳回对话框 +const showRejectDialog = (row) => { + if (!hasbeanWaitReject) { + ElMessage.error('暂无权限') + return + } + rejectRow.value.id = row.id + reason.value = '' + rejectDialogVisible.value = true +} + + const getToday = async function () { const today = dayjs() const startTime = today.startOf('day').format('YYYY-MM-DD HH:mm:ss') @@ -507,19 +531,7 @@ const format3 = (num) => { // 每三位添加逗号 return num.toLocaleString('en-US') } -// 这个防抖好像还不能放在定义之前(handleApproveConfirm) -const throttledHandleApprove = _.throttle(handleApproveConfirm, 5000, { - trailing: false -}) -const showRejectDialog = (row) => { - if (!hasbeanWaitReject) { - ElMessage.error('暂无权限') - return - } - rejectRow.value.id = row.id - reason.value = '' - rejectVisible.value = true -} + // 获取地区,修改为级联下拉框 const getmarkets = async function () { try { @@ -570,6 +582,11 @@ onMounted(async () => {