穿透内容添加时间筛选结果,异常上报显示修改
parent
d12b8a8a9f
commit
52463eae02
|
|
@ -38,19 +38,19 @@ export const getUserCountApi = (type: string, params) => {
|
||||||
return GetDealDetailData(params)
|
return GetDealDetailData(params)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export function GetPunchDetailData(params: { userid: string }) {
|
export function GetPunchDetailData(params: { userid: string, begindate?: string, enddate?: string }) {
|
||||||
return defHttp.get({
|
return defHttp.get({
|
||||||
url: Api.GetPunchDetailData,
|
url: Api.GetPunchDetailData,
|
||||||
params,
|
params,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
export function GetReportDetailData(params: { userid: string }) {
|
export function GetReportDetailData(params: { userid: string, begindate?: string, enddate?: string }) {
|
||||||
return defHttp.get({
|
return defHttp.get({
|
||||||
url: Api.GetReportDetailData,
|
url: Api.GetReportDetailData,
|
||||||
params,
|
params,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
export function GetDealDetailData(params: { userid: string }) {
|
export function GetDealDetailData(params: { userid: string, begindate?: string, enddate?: string }) {
|
||||||
return defHttp.get({
|
return defHttp.get({
|
||||||
url: Api.GetDealDetailData,
|
url: Api.GetDealDetailData,
|
||||||
params,
|
params,
|
||||||
|
|
@ -75,19 +75,19 @@ export function GetPointPunchStatistics(params) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GetPointPunchDetailData(params: { pointid: string }) {
|
export function GetPointPunchDetailData(params: { pointid: string, begindate?: string, enddate?: string }) {
|
||||||
return defHttp.get({
|
return defHttp.get({
|
||||||
url: Api.GetPointPunchDetailData,
|
url: Api.GetPointPunchDetailData,
|
||||||
params,
|
params,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
export function GetPointReportDetailData(params: { pointid: string }) {
|
export function GetPointReportDetailData(params: { pointid: string, begindate?: string, enddate?: string }) {
|
||||||
return defHttp.get({
|
return defHttp.get({
|
||||||
url: Api.GetPointReportDetailData,
|
url: Api.GetPointReportDetailData,
|
||||||
params,
|
params,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
export function GetPointDealDetailData(params: { pointid: string }) {
|
export function GetPointDealDetailData(params: { pointid: string, begindate?: string, enddate?: string }) {
|
||||||
return defHttp.get({
|
return defHttp.get({
|
||||||
url: Api.GetPointDealDetailData,
|
url: Api.GetPointDealDetailData,
|
||||||
params,
|
params,
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import { BasicTable, useTable, TableAction } from '@/components/Table';
|
||||||
import { getColums, searchFormSchema } from './utils';
|
import { getColums, searchFormSchema } from './utils';
|
||||||
import { getPointCountApi } from '@/api/illegalconstruction/statistical'
|
import { getPointCountApi } from '@/api/illegalconstruction/statistical'
|
||||||
|
|
||||||
const props = defineProps(['title','id','type'])
|
const props = defineProps(['title','id','type','timeParams'])
|
||||||
const [registerTable, { setTableData, reload, clearSelectedRowKeys, setPagination, setLoading }] =useTable({
|
const [registerTable, { setTableData, reload, clearSelectedRowKeys, setPagination, setLoading }] =useTable({
|
||||||
title: props.title,
|
title: props.title,
|
||||||
api: (params) => getPointCountApi(props.type, { ...params, pointid: props.id }),
|
api: (params) => getPointCountApi(props.type, { ...params, pointid: props.id }),
|
||||||
|
|
@ -26,6 +26,9 @@ const [registerTable, { setTableData, reload, clearSelectedRowKeys, setPaginatio
|
||||||
handleSearchInfoFn(info) {
|
handleSearchInfoFn(info) {
|
||||||
return info;
|
return info;
|
||||||
},
|
},
|
||||||
|
beforeFetch(params) {
|
||||||
|
return { ...params, ...props.timeParams };
|
||||||
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
export const punchCountColumns = [
|
export const punchCountColumns = [
|
||||||
{
|
{
|
||||||
title: '片区',
|
title: '片区',
|
||||||
dataIndex: 'CountyName',
|
dataIndex: 'CountyName',
|
||||||
},
|
},
|
||||||
|
|
@ -30,6 +30,36 @@ export const punchCountColumns = [
|
||||||
]
|
]
|
||||||
export const reportCountColumns = [
|
export const reportCountColumns = [
|
||||||
{
|
{
|
||||||
|
title: '片区',
|
||||||
|
dataIndex: 'CountyName',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '乡镇',
|
||||||
|
dataIndex: 'StreetName',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '村居',
|
||||||
|
dataIndex: 'CommunityName',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '点位名称',
|
||||||
|
dataIndex: 'PointName',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '巡查时间',
|
||||||
|
dataIndex: 'PunchTime',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '人员',
|
||||||
|
dataIndex: 'UserName',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '巡查结果',
|
||||||
|
dataIndex: 'StatusName',
|
||||||
|
},
|
||||||
|
]
|
||||||
|
export const dealCountColumns = [
|
||||||
|
{
|
||||||
title: '标题',
|
title: '标题',
|
||||||
dataIndex: 'Title',
|
dataIndex: 'Title',
|
||||||
},
|
},
|
||||||
|
|
@ -65,7 +95,7 @@ export const getColums = (type: string) => {
|
||||||
case "reportCount":
|
case "reportCount":
|
||||||
return reportCountColumns
|
return reportCountColumns
|
||||||
case "dealCount":
|
case "dealCount":
|
||||||
return reportCountColumns
|
return dealCountColumns
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export const searchFormSchema = [
|
export const searchFormSchema = [
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
title="列表信息"
|
title="列表信息"
|
||||||
:destroyOnClose="true"
|
:destroyOnClose="true"
|
||||||
>
|
>
|
||||||
<ShowListModal :title="showListModalTitle" :id="showListModalId" :type="showListModalType"/>
|
<ShowListModal :title="showListModalTitle" :id="showListModalId" :type="showListModalType" :timeParams="showListModalTimeParams"/>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -38,6 +38,7 @@ const showListModal = ref(false)
|
||||||
const showListModalTitle = ref('')
|
const showListModalTitle = ref('')
|
||||||
const showListModalId = ref('')
|
const showListModalId = ref('')
|
||||||
const showListModalType = ref('')
|
const showListModalType = ref('')
|
||||||
|
const showListModalTimeParams = ref({})
|
||||||
const [registerTable, { getForm }] =useTable({
|
const [registerTable, { getForm }] =useTable({
|
||||||
title: '巡查台账-点位',
|
title: '巡查台账-点位',
|
||||||
api: GetPointPunchStatistics,
|
api: GetPointPunchStatistics,
|
||||||
|
|
@ -108,6 +109,15 @@ const onBtnClicked = (domId) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const showRecordList = (record, type) => {
|
const showRecordList = (record, type) => {
|
||||||
|
const form = getForm();
|
||||||
|
const params = form.getFieldsValue();
|
||||||
|
if(params.begindate){
|
||||||
|
params.begindate = dayjs(params.begindate).startOf('day').format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
}
|
||||||
|
if(params.enddate){
|
||||||
|
params.enddate = dayjs(params.enddate).endOf('day').format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
}
|
||||||
|
showListModalTimeParams.value = params
|
||||||
showListModalTitle.value = record.name
|
showListModalTitle.value = record.name
|
||||||
showListModalId.value = record.pointId
|
showListModalId.value = record.pointId
|
||||||
showListModalType.value = type
|
showListModalType.value = type
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,15 @@ const onBtnClicked = (domId) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const showRecordList = (record, type) => {
|
const showRecordList = (record, type) => {
|
||||||
getUserCountApi(type, { userid: record.userId })?.then(res => {
|
const form = getForm();
|
||||||
|
const params = form.getFieldsValue();
|
||||||
|
if(params.begindate){
|
||||||
|
params.begindate = dayjs(params.begindate).startOf('day').format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
}
|
||||||
|
if(params.enddate){
|
||||||
|
params.enddate = dayjs(params.enddate).endOf('day').format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
}
|
||||||
|
getUserCountApi(type, { userid: record.userId, ...params })?.then(res => {
|
||||||
console.log(111,res)
|
console.log(111,res)
|
||||||
modalData.value = res
|
modalData.value = res
|
||||||
mapVisible.value = true
|
mapVisible.value = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue