This commit is contained in:
qiuyuan 2025-08-06 20:15:28 +08:00
parent dbd9a06ee1
commit 99b938b9e0

View File

@ -7,22 +7,38 @@
<template #bodyCell="{ column, record }">
<template v-if="'startAt' === column.dataIndex">
<span>{{ dayjs(record.startAt).format('YYYY-MM-DD HH:mm:ss') + ' - ' +
dayjs(record.endAt).format('YYYY-MM-DD HH:mm:ss')}}</span>
dayjs(record.endAt).format('YYYY-MM-DD HH:mm:ss') }}</span>
</template>
<template v-if="'roomType' === column.dataIndex">
<span v-if="record.roomType === 1">个人</span>
<span v-else-if="record.roomType === 2">企业</span>
<span v-else>未知</span>
</template>
<template v-if="'applyTheme' === column.dataIndex">
<span>{{ applyThemeMap[record.applyTheme] || '未知' }}</span>
</template>
<template v-if="column.dataIndex === 'applySign'">
<a-image :width="60"
:src="record.applySign ? config('http.apiBasic') + record.applySign : errImg" />
</template>
<template v-if="column.dataIndex === 'rebackApplyPdf'">
<a
:href="record.rebackApplyPdf ? config('http.apiBasic') + record.rebackApplyPdf : ''" />
<template v-if="column.dataIndex === 'rebackApplyPdf'">
<a v-if="record.rebackApplyPdf" :href="config('http.apiBasic') + record.rebackApplyPdf"
target="_blank" rel="noopener noreferrer">
查看承诺报表
</a>
<span v-else></span>
</template>
<template v-if="column.dataIndex === 'rebackCovenantPdf'">
<a
:href="record.rebackCovenantPdf ? config('http.apiBasic') + record.rebackCovenantPdf : ''" />
<template v-if="column.dataIndex === 'rebackCovenantPdf'">
<a v-if="record.rebackCovenantPdf"
:href="config('http.apiBasic') + record.rebackCovenantPdf" target="_blank"
rel="noopener noreferrer">
查看申请报表
</a>
<span v-else></span>
</template>
<template v-if="'action' === column.key">
<x-action-button @click="auditHandleEdit(record)" v-if="record.status === 1">
<x-action-button @click="auditHandleEdit(record)" v-if="record.status === 1">
<a-tooltip>
<template #title>下载</template>
<DownloadOutlined />
@ -35,7 +51,7 @@
</a-card>
</a-col>
</a-row>
<a-modal :open="open" :title="'审核'" :width="640" title="审核" ok-text="确认" cancel-text="取消" @ok="handleAuditEdit"
<a-modal :open="open" :title="'审核'" :width="640" title="审核" ok-text="确认" cancel-text="取消" @ok="handleAuditEdit"
@cancel="open = false">
<a-card class="mb-8-2">
<a-form-item :label="'审核'" name="">
@ -66,6 +82,7 @@ defineOptions({
})
const { t } = useI18n() // t
const columns = [
{ title: '会议室名称', dataIndex: 'roomName' },
{ title: '负责人', dataIndex: 'concatName' },
{ title: '负责人手机号', dataIndex: 'concatPhone' },
{ title: '申请类型', dataIndex: 'roomType' },
@ -82,8 +99,8 @@ const columns = [
{ title: '结束时间', dataIndex: 'endTime' },
{ title: '申请签名', dataIndex: 'applySign' },
{ title: '备注', dataIndex: 'remark' },
{ title: '回执申请报表', dataIndex: 'rebackApplyPdf' },
{ title: '回执承诺报表', dataIndex: 'rebackCovenantPdf' },
{ title: '回执申请报表', dataIndex: 'rebackCovenantPdf' },
{ title: '回执承诺报表', dataIndex: 'rebackApplyPdf' },
// { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' },
]
const { listData, loading, showLoading, hideLoading, paginationState, resetPagination, searchFormData } = usePagination()
@ -93,6 +110,12 @@ const auditStatus = ref(2)
const editDialogRef = ref()
const open = ref(false)
const imgOpen = ref(false)
const applyThemeMap = {
1: '开会',
2: '学术报告',
3: '活动',
4: '其他',
}
getPageList()
/**
* 获取用户列表