项目列表核查时间筛选问题修改

hedong
zhufu 2025-12-17 15:53:48 +08:00
parent f698d8c6dc
commit fb4bcccf27
1 changed files with 13 additions and 0 deletions

View File

@ -50,6 +50,7 @@ import { GetDronssnydList, GetDronssnydExport, ImportCaseInfoShpDataSsny } from
import ShowInfoModal from '@/components/EarlyWarning/InfoModal/index.vue'
import { uploadFile } from '@/api/formrender/index';
import { message } from "ant-design-vue";
import dayjs from 'dayjs';
const showInfoOpen = ref(false)
const showInfoData = ref();
@ -72,6 +73,18 @@ const [registerTable, { getForm, reload }] = useTable({
dataIndex: 'action',
fixed: 'right',
},
beforeFetch: (params) => {
let resultParams = {
...params
}
if(resultParams.hechatimebegin){
resultParams.hechatimebegin = dayjs(resultParams.hechatimebegin).startOf('day').format('YYYY-MM-DD HH:mm:ss');
}
if(resultParams.hechatimeend){
resultParams.hechatimeend = dayjs(resultParams.hechatimeend).endOf('day').format('YYYY-MM-DD HH:mm:ss');
}
return resultParams
},
});
function handleInfo(record) {
showInfoData.value = record