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

View File

@ -9,17 +9,33 @@
<span>{{ dayjs(record.startAt).format('YYYY-MM-DD HH:mm:ss') + ' - ' + <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>
<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'"> <template v-if="column.dataIndex === 'applySign'">
<a-image :width="60" <a-image :width="60"
:src="record.applySign ? config('http.apiBasic') + record.applySign : errImg" /> :src="record.applySign ? config('http.apiBasic') + record.applySign : errImg" />
</template> </template>
<template v-if="column.dataIndex === 'rebackApplyPdf'"> <template v-if="column.dataIndex === 'rebackApplyPdf'">
<a <a v-if="record.rebackApplyPdf" :href="config('http.apiBasic') + record.rebackApplyPdf"
:href="record.rebackApplyPdf ? config('http.apiBasic') + record.rebackApplyPdf : ''" /> target="_blank" rel="noopener noreferrer">
查看承诺报表
</a>
<span v-else></span>
</template> </template>
<template v-if="column.dataIndex === 'rebackCovenantPdf'"> <template v-if="column.dataIndex === 'rebackCovenantPdf'">
<a <a v-if="record.rebackCovenantPdf"
:href="record.rebackCovenantPdf ? config('http.apiBasic') + record.rebackCovenantPdf : ''" /> :href="config('http.apiBasic') + record.rebackCovenantPdf" target="_blank"
rel="noopener noreferrer">
查看申请报表
</a>
<span v-else></span>
</template> </template>
<template v-if="'action' === column.key"> <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">
@ -66,6 +82,7 @@ defineOptions({
}) })
const { t } = useI18n() // t const { t } = useI18n() // t
const columns = [ const columns = [
{ title: '会议室名称', dataIndex: 'roomName' },
{ title: '负责人', dataIndex: 'concatName' }, { title: '负责人', dataIndex: 'concatName' },
{ title: '负责人手机号', dataIndex: 'concatPhone' }, { title: '负责人手机号', dataIndex: 'concatPhone' },
{ title: '申请类型', dataIndex: 'roomType' }, { title: '申请类型', dataIndex: 'roomType' },
@ -82,8 +99,8 @@ const columns = [
{ title: '结束时间', dataIndex: 'endTime' }, { title: '结束时间', dataIndex: 'endTime' },
{ title: '申请签名', dataIndex: 'applySign' }, { title: '申请签名', dataIndex: 'applySign' },
{ title: '备注', dataIndex: 'remark' }, { 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' }, // { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' },
] ]
const { listData, loading, showLoading, hideLoading, paginationState, resetPagination, searchFormData } = usePagination() const { listData, loading, showLoading, hideLoading, paginationState, resetPagination, searchFormData } = usePagination()
@ -93,6 +110,12 @@ const auditStatus = ref(2)
const editDialogRef = ref() const editDialogRef = ref()
const open = ref(false) const open = ref(false)
const imgOpen = ref(false) const imgOpen = ref(false)
const applyThemeMap = {
1: '开会',
2: '学术报告',
3: '活动',
4: '其他',
}
getPageList() getPageList()
/** /**
* 获取用户列表 * 获取用户列表