|
@@ -64,6 +64,37 @@
|
|
|
@update:pageSize="handleSizeChange"
|
|
@update:pageSize="handleSizeChange"
|
|
|
@update:pageNumber="handleCurrentChange"
|
|
@update:pageNumber="handleCurrentChange"
|
|
|
>
|
|
>
|
|
|
|
|
+ <template #visitorName="scope">
|
|
|
|
|
+ <span>{{ scope.row.visitorName || '--' }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <template #identityInfor="scope">
|
|
|
|
|
+ <span>{{ managementPermission ? scope.row.identityInfor || '--' : '******' }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #mobile="scope">
|
|
|
|
|
+ <span>{{ managementPermission ? scope.row.mobile || '--' : '******' }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #isForeigner="scope">
|
|
|
|
|
+ <span>{{ IS_FOREIGNER_TYPE_LABEL[scope.row.isForeigner] || '--' }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #company="scope">
|
|
|
|
|
+ <span>{{ scope.row.company || '--' }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #visitReason="scope">
|
|
|
|
|
+ <span>{{ scope.row.visitReason || '--' }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #respondentName="scope">
|
|
|
|
|
+ <span>{{ scope.row.respondentName || '--' }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #visitState="scope">
|
|
|
|
|
+ <span>{{ VISIT_STATE_TYPE_LABEL[scope.row.visitState] || '--' }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #visitTime="scope">
|
|
|
|
|
+ <span>{{ scope.row.visitTime || '--' }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #leaveTime="scope">
|
|
|
|
|
+ <span>{{ scope.row.leaveTime || '--' }}</span>
|
|
|
|
|
+ </template>
|
|
|
</BasicTable>
|
|
</BasicTable>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -76,11 +107,25 @@
|
|
|
import { QueryPageRequest, QueryPageResponse } from '@/types/basic-query';
|
|
import { QueryPageRequest, QueryPageResponse } from '@/types/basic-query';
|
|
|
import { VisitorTableData, VisitorTableQuery } from '../types';
|
|
import { VisitorTableData, VisitorTableQuery } from '../types';
|
|
|
import { OUTER_PERSON_VISITOR_TABEL_COLUMNS, TABLE_OPTIONS } from '../configs/table';
|
|
import { OUTER_PERSON_VISITOR_TABEL_COLUMNS, TABLE_OPTIONS } from '../configs/table';
|
|
|
- import { VISITOR_TABLE_SEARCH_OPTIONS, IS_FOREIGNER_TYPE_OPTIONS, VISIT_STATE_TYPE_OPTIONS } from '../constants';
|
|
|
|
|
|
|
+ import {
|
|
|
|
|
+ VISITOR_TABLE_SEARCH_OPTIONS,
|
|
|
|
|
+ IS_FOREIGNER_TYPE_OPTIONS,
|
|
|
|
|
+ IS_FOREIGNER_TYPE_LABEL,
|
|
|
|
|
+ VISIT_STATE_TYPE_OPTIONS,
|
|
|
|
|
+ VISIT_STATE_TYPE_LABEL,
|
|
|
|
|
+ VISITOR_MANAGEMENT_PROMISSION_CODE,
|
|
|
|
|
+ } from '../constants';
|
|
|
import { exportVisitorList, getVisitorList } from '@/api/security-confidentiality-person/outer-person';
|
|
import { exportVisitorList, getVisitorList } from '@/api/security-confidentiality-person/outer-person';
|
|
|
import { ElMessage } from 'element-plus';
|
|
import { ElMessage } from 'element-plus';
|
|
|
import { downloadFile } from '@/views/disaster/utils';
|
|
import { downloadFile } from '@/views/disaster/utils';
|
|
|
|
|
|
|
|
|
|
+ import { useUserInfoHook } from '@/hooks/useUserInfoHook';
|
|
|
|
|
+
|
|
|
|
|
+ const { permissions } = useUserInfoHook();
|
|
|
|
|
+ const managementPermission = ref<Boolean>(
|
|
|
|
|
+ Boolean(permissions.find((item: { code: string }) => item.code === VISITOR_MANAGEMENT_PROMISSION_CODE)),
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
const searchData = reactive<VisitorTableQuery>({});
|
|
const searchData = reactive<VisitorTableQuery>({});
|
|
|
|
|
|
|
|
const { tableConfig, pagination } = useTableConfig(OUTER_PERSON_VISITOR_TABEL_COLUMNS, TABLE_OPTIONS);
|
|
const { tableConfig, pagination } = useTableConfig(OUTER_PERSON_VISITOR_TABEL_COLUMNS, TABLE_OPTIONS);
|