fix: 优化历史上访记录数据
This commit is contained in:
parent
90dd5d0658
commit
2db1cd874d
@ -13,11 +13,10 @@
|
||||
:data="tableData"
|
||||
v-loading="loading"
|
||||
>
|
||||
<el-table-column label="接待场所" prop="policeareaId" width="180"/>
|
||||
<el-table-column label="执勤法警" prop="adduserId" width="180"/>
|
||||
<el-table-column label="来访人" prop="name" width="180"/>
|
||||
<el-table-column label="来访日期" prop="checkintime" width="180"/>
|
||||
<el-table-column label="信访情况" prop="checkininfo" width="180"/>
|
||||
<el-table-column label="接待单位" prop="unit"/>
|
||||
<el-table-column label="来访人" prop="name"/>
|
||||
<el-table-column label="来访日期" prop="time"/>
|
||||
<el-table-column label="信访情况" prop="info"/>
|
||||
</el-table>
|
||||
|
||||
<template #footer>
|
||||
@ -27,7 +26,8 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {getHistoryList} from '@/api/RegistVisitApi/RegistVisitApi.js';
|
||||
import {getIdCardVisitHistory} from '@/api/RegistVisitApi/RegistVisitApi.js';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
defineOptions({
|
||||
name: 'VisitHistory'
|
||||
@ -50,7 +50,11 @@ const changeShowStatus = () => {
|
||||
const showVisitHistory = async (code) => {
|
||||
changeShowStatus()
|
||||
visitorCode.value = code;
|
||||
const res = await getHistoryList(code)
|
||||
// const res = await getHistoryList(code)
|
||||
const res = await getIdCardVisitHistory({
|
||||
idCard: code,
|
||||
end_time: dayjs().format('YYYY-MM-DD hh:mm:ss')
|
||||
})
|
||||
console.log(res)
|
||||
tableData.value = res.data
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user