generated from Leo_Ding/web-template
修改
This commit is contained in:
parent
dbd9a06ee1
commit
99b938b9e0
@ -7,19 +7,35 @@
|
||||
<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 : ''" />
|
||||
<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 : ''" />
|
||||
<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">
|
||||
@ -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()
|
||||
/**
|
||||
* 获取用户列表
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user