generated from Leo_Ding/web-template
修改
This commit is contained in:
parent
dbd9a06ee1
commit
99b938b9e0
@ -7,22 +7,38 @@
|
|||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
<template v-if="'startAt' === column.dataIndex">
|
<template v-if="'startAt' === column.dataIndex">
|
||||||
<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">
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>下载</template>
|
<template #title>下载</template>
|
||||||
<DownloadOutlined />
|
<DownloadOutlined />
|
||||||
@ -35,7 +51,7 @@
|
|||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</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">
|
@cancel="open = false">
|
||||||
<a-card class="mb-8-2">
|
<a-card class="mb-8-2">
|
||||||
<a-form-item :label="'审核'" name="">
|
<a-form-item :label="'审核'" name="">
|
||||||
@ -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()
|
||||||
/**
|
/**
|
||||||
* 获取用户列表
|
* 获取用户列表
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user