update:证件显示
This commit is contained in:
parent
47feb7005e
commit
302030b7ee
2
.env
2
.env
@ -8,4 +8,4 @@ VITE_OPEN = true
|
||||
VITE_OPEN_CDN = false
|
||||
|
||||
# public path 配置线上环境路径(打包)、本地通过 http-server 访问时,请置空即可
|
||||
VITE_PUBLIC_PATH = 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/event_web/202606181700/'
|
||||
VITE_PUBLIC_PATH = 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/event_web/202606230907/'
|
||||
@ -17,7 +17,7 @@
|
||||
</el-tag>
|
||||
</template>
|
||||
<template #idCardImageUrl="scope">
|
||||
<PreviewImage v-if="scope.row.idCardImageUrl" :src="scope.row.idCardImageUrl" width="100px" height="100px" fit="cover" radius="4px" :show-zoom-icon="true" />
|
||||
<PreviewImage v-if="getCertImageUrl(scope.row)" :src="getCertImageUrl(scope.row)" width="100px" height="100px" fit="cover" radius="4px" :show-zoom-icon="true" />
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #action="scope">
|
||||
@ -136,12 +136,27 @@ const getAuditStatusType = (status) => {
|
||||
}
|
||||
};
|
||||
|
||||
// 根据 AuthType 获取对应的证件照片URL
|
||||
// AuthType=1: 身份证 idCardImageUrl
|
||||
// AuthType=2: 护照 passportPhotoUrl
|
||||
// AuthType=3: 户口本 householdPhotoUrl
|
||||
const getCertImageUrl = (row) => {
|
||||
if (!row) return '';
|
||||
const authType = Number(row.authType) || 1;
|
||||
if (authType === 2) {
|
||||
return row.passportPhotoUrl || row.idCardImageUrl || '';
|
||||
} else if (authType === 3) {
|
||||
return row.householdPhotoUrl || row.idCardImageUrl || '';
|
||||
}
|
||||
return row.idCardImageUrl || '';
|
||||
};
|
||||
|
||||
const columns = ref([
|
||||
{ prop: 'ss', type: 'selection' },
|
||||
{ prop: 'index', label: '序号', align: 'center' },
|
||||
{ prop: 'name', label: '姓名', search: { el: 'input' } },
|
||||
{ prop: 'gender', label: '性别', search: { el: 'select' }, enum: [{ label: '全部', value: '' }, { label: '男', value: 0 }, { label: '女', value: 1 }] },
|
||||
{ prop: 'idCardImageUrl', label: '身份证', width: '130px' },
|
||||
{ prop: 'idCardImageUrl', label: '证件照片', width: '130px' },
|
||||
{ prop: 'auditStatus', label: '审核状态', search: { el: 'select' }, enum: [{ label: '全部', value: '' }, { label: '待提交', value: 0 }, { label: '待审核', value: 1 }, { label: '审核通过', value: 2 }] },
|
||||
{ prop: 'mobile', label: '联系电话', search: { el: 'input' } },
|
||||
{ prop: 'createdTime', label: '生成时间', search: { el: 'date-picker', props: { type: 'daterange' } } },
|
||||
|
||||
@ -30,7 +30,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
|
||||
hmr: true,
|
||||
proxy: {
|
||||
'/api': {
|
||||
// target: 'http://localhost:9996',
|
||||
// target: 'https://event.yuedongsports.com',
|
||||
target: 'http://8.153.108.90:9996',
|
||||
ws: true,
|
||||
changeOrigin: true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user