1.优化管理员提现记录审核为一个操作

This commit is contained in:
2026-05-30 18:40:27 +08:00
parent 75e91fee13
commit d336831fad
3 changed files with 32 additions and 11 deletions

View File

@@ -46,6 +46,7 @@
import { onMounted, provide, reactive, ref, useTemplateRef } from 'vue'
import { useI18n } from 'vue-i18n'
import { baTableApi } from '/@/api/common'
import { auth } from '/@/utils/common'
import TableHeader from '/@/components/table/header/index.vue'
import Table from '/@/components/table/index.vue'
import baTableClass from '/@/utils/baTable'
@@ -78,7 +79,15 @@ const optButtons: OptButton[] = [
text: '',
type: 'warning',
icon: 'fa fa-check-square-o',
display: (row: TableRow) => Number(row.status) === 0 && Number((row as anyObj).can_review ?? 0) === 1,
display: (row: TableRow) => {
if (Number(row.status) !== 0) {
return false
}
if (auth('review')) {
return true
}
return Number((row as anyObj).can_review ?? 0) === 1
},
click: (row: TableRow) => {
baTable.form.operate = 'Review'
baTable.form.operateIds = [String(row[baTable.table.pk!])]

View File

@@ -13,7 +13,10 @@
</template>
<el-scrollbar v-loading="loading" class="ba-table-form-scrollbar">
<div class="ba-operate-form ba-edit-form">
<div
class="ba-operate-form ba-edit-form"
:style="config.layout.shrink ? '' : 'width: calc(100% - ' + (baTable.form.labelWidth ?? 120) / 2 + 'px)'"
>
<el-form
v-if="!loading && step === 'review'"
:label-position="config.layout.shrink ? 'top' : 'right'"
@@ -280,6 +283,16 @@ function resolveRelationText(row: Record<string, unknown>, relationKey: string,
padding-top: 8px;
}
:deep(.el-form-item__content) {
flex: 1;
min-width: 0;
}
:deep(.el-input),
:deep(.el-textarea) {
width: 100%;
}
.review-reject-hint {
margin-bottom: 14px;
}