待处理问题

lsf-dev
秦子超 2024-09-30 10:27:05 +08:00
parent ba5077dcb2
commit 173772aa72
2 changed files with 24 additions and 12 deletions

View File

@ -3,6 +3,7 @@ import { Descriptions, Modal } from 'antd';
import {CloseOutlined} from '@ant-design/icons';
import { httpget2 } from '../../../../utils/request';
import apiurl from '../../../../service/apiurl';
import ModalForm from '../../../rcgl/xcxj/xjwtcl/form';
import moment from "moment"
function Wxq({ id, data, dispatch }) {
@ -39,7 +40,7 @@ function Wxq({ id, data, dispatch }) {
</div>
</div>
<div className='homeModal2_content'>
daichuli
<ModalForm/>
</div>
</div>
</>

View File

@ -1,4 +1,4 @@
import { useEffect, useState } from "react"
import { useEffect, useState, useRef } from "react"
import { Button, Modal, message, Table } from 'antd';
import {useDispatch, useSelector} from "react-redux";
@ -9,16 +9,18 @@ import VectorLayer from "ol/layer/Vector";
import Style from "ol/style/Style";
import StrokeStyle from "ol/style/Stroke";
import { Vector as VectorSource } from "ol/source";
import { httppost2 } from "../../../utils/request";
import apiurl from "../../../service/apiurl";
import { geometryCenter } from "../../../utils/tools";
import BasicCrudModal from "../../../components/crud/BasicCrudModal"
import ModalForm from "../../rcgl/xcxj/xjwtcl/form"
import moment from "moment";
const Page = ({mySetTms}) => {
const dispatch = useDispatch();
const refModal = useRef();
let mapObj = useSelector(s => s.map.map)
const [ dataObj, setDataObj ] = useState({})
const [ data, setData ] = useState([])
@ -34,8 +36,8 @@ const Page = ({mySetTms}) => {
];
const columns2 = [
{ title: '上报时间', key: 'handleTime', dataIndex: 'handleTime',align: "center", ellipsis: true },
{ title: '巡检问题描述', key: 'problemDesc', dataIndex: 'problemDesc',align: "center" },
{ title: '上报时间', key: 'finishTime', dataIndex: 'finishTime',align: "center", ellipsis: true },
{ title: '巡检问题描述', key: 'itemDesc', dataIndex: 'itemDesc',align: "center" },
];
useEffect(()=>{
@ -185,19 +187,28 @@ const Page = ({mySetTms}) => {
onRow={
(data)=>({
onClick:()=>{
refModal.current.showView(data);
// dispatch.map.setLayerVisible({"HdswLayer":true});
dispatch.runtime.setFeaturePop({
id: data.stnm,
data: data,
type: 'daichuli',
lgtd: data.lgtd,
lttd: data.lttd,
})
// dispatch.runtime.setFeaturePop({
// id: data.stnm,
// data: data,
// type: 'daichuli',
// lgtd: data.lgtd,
// lttd: data.lttd,
// })
}
})
}
/>
</div>
<BasicCrudModal
width={1000}
ref={refModal}
title=""
component={ModalForm}
title1="详情"
/>
</div>
)
}