Compare commits
No commits in common. "829de474a912cdc59c79c385aa9c9427d5a8636f" and "c68b14203183c16f1bfe61cfb286b58b02adc36a" have entirely different histories.
829de474a9
...
c68b142031
|
|
@ -236,7 +236,7 @@ export async function loadMenu(): Promise<MenuItem[]> {
|
||||||
id: id(), title: '管理体系', redirect: '/mgr/sz/gltx/zzjgck',
|
id: id(), title: '管理体系', redirect: '/mgr/sz/gltx/zzjgck',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
id: id(), title: '组织机构查看', path: '/mgr/sz/gltx/zzjgck',
|
id: id(), title: '管理体系', path: '/mgr/sz/gltx/zzjgck',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: id(), title: '责任人管理', path: '/mgr/sz/gltx/zrrgl',
|
id: id(), title: '责任人管理', path: '/mgr/sz/gltx/zrrgl',
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ import moment from "moment"
|
||||||
import ToolBar from './toolbar';
|
import ToolBar from './toolbar';
|
||||||
import TableData from './TableData'
|
import TableData from './TableData'
|
||||||
import drpOption from './drpOption';
|
import drpOption from './drpOption';
|
||||||
import '../TangYanBa.less'
|
|
||||||
|
|
||||||
function ShenYa({ id, data, dispatch, onCancel }) {
|
function ShenYa({ id, data, dispatch, onCancel }) {
|
||||||
console.log('SY',data);
|
console.log('SY',data);
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,6 @@
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row-reverse;
|
flex-direction: row-reverse;
|
||||||
// float: right;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -112,13 +111,3 @@
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.homeModal2{
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
.homeModal2_content{
|
|
||||||
height: 504px;
|
|
||||||
display: flex;
|
|
||||||
padding: 5px 20px 20px 20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -164,20 +164,14 @@ const Page = ({mySetTms}) => {
|
||||||
onRow={
|
onRow={
|
||||||
(data)=>({
|
(data)=>({
|
||||||
onClick:()=>{
|
onClick:()=>{
|
||||||
// data.data = {
|
data.data = {
|
||||||
// "type":"MultiLineString",
|
"type":"MultiLineString",
|
||||||
// "coordinates":[
|
"coordinates":[[
|
||||||
// [
|
[114.746, 31.479],
|
||||||
// [114.746, 31.479],
|
[114.776, 31.509]
|
||||||
// [114.776, 31.509]
|
]]
|
||||||
// ]
|
|
||||||
// ]
|
|
||||||
// }
|
|
||||||
if(!data.data){
|
|
||||||
message.error('无轨迹信息')
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
addHlLayer(data?.data,'HlItem_'+data.id,'#00FFFF',data)
|
addHlLayer(data.data,'HlItem_'+data.id,'#00FFFF',data)
|
||||||
const center = geometryCenter({type:"LineString",coordinates:data.data.coordinates[0]});
|
const center = geometryCenter({type:"LineString",coordinates:data.data.coordinates[0]});
|
||||||
dispatch.runtime.setFeaturePop({
|
dispatch.runtime.setFeaturePop({
|
||||||
id: data.id,
|
id: data.id,
|
||||||
|
|
|
||||||
|
|
@ -28,16 +28,9 @@ const Page = ({record}) => {
|
||||||
return [
|
return [
|
||||||
{ title: '序号', key: 'inx', dataIndex: 'inx', align:"center",render: (text, rec, index) => index + 1 },
|
{ title: '序号', key: 'inx', dataIndex: 'inx', align:"center",render: (text, rec, index) => index + 1 },
|
||||||
{ title: '时间', key: 'tm', dataIndex: 'tm', align:"center", width:180,render:v=>v.slice(0, 16)},
|
{ title: '时间', key: 'tm', dataIndex: 'tm', align:"center", width:180,render:v=>v.slice(0, 16)},
|
||||||
{ title: '实测水位(m)', key: 'realSwHValue', dataIndex: 'realSwHValue', align:"center",render:(v)=>v===null?'-':Number(v).toFixed(2)},
|
{ title: '预测水位', key: 'ycSwHValue', dataIndex: 'ycSwHValue', align:"center",render:(v)=>v===null?'-':Number(v).toFixed(2)},
|
||||||
{ title: '预测水位(m)', key: 'ycSwHValue', dataIndex: 'ycSwHValue', align:"center",render:(v)=>v===null?'-':Number(v).toFixed(2)},
|
|
||||||
{ title: '预测入库流量', key: 'ycRkQValue', dataIndex: 'ycRkQValue', align:"center",render:(v)=>v===null?'-':Number(v).toFixed(2)},
|
{ title: '预测入库流量', key: 'ycRkQValue', dataIndex: 'ycRkQValue', align:"center",render:(v)=>v===null?'-':Number(v).toFixed(2)},
|
||||||
{ title: '预测出库流量', key: 'ycCkQValue', dataIndex: 'ycCkQValue', align:"center",render:(v)=>v===null?'-':Number(v).toFixed(2)},
|
{ title: '预测出库流量', key: 'ycCkQValue', dataIndex: 'ycCkQValue', align:"center",render:(v)=>v===null?'-':Number(v).toFixed(2)},
|
||||||
{ title: '库容(万 ㎡)', key: 'nowCap', dataIndex: 'nowCap', align:"center",
|
|
||||||
render:(v,row)=>{
|
|
||||||
const val = v===null?'-':Number(v).toFixed(2)
|
|
||||||
return <div style={{display:'flex',alignItems:'center',justifyContent:'center'}}>{val}{row.realSwHValue===null?<div style={{marginLeft:'5px',width:'20px',height:'20px',borderRadius:"10px",border:'1px solid rgb(245, 154, 35)',color:'rgb(245, 154, 35)',display:'flex',alignItems:'center',justifyContent:'center',fontSize:'12px'}}>预</div>:null}</div>
|
|
||||||
}
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
},[record])
|
},[record])
|
||||||
|
|
|
||||||
|
|
@ -317,13 +317,13 @@ export default function Xmzlmb() {
|
||||||
columns={columns1}
|
columns={columns1}
|
||||||
key="inx"
|
key="inx"
|
||||||
dataSource={dataSources}
|
dataSource={dataSources}
|
||||||
pagination={{pageSize:5}}
|
|
||||||
scroll={{ x: width, y: 250, scrollToFirstRowOnChange: true }}
|
scroll={{ x: width, y: 250, scrollToFirstRowOnChange: true }}
|
||||||
onRow={record => {
|
onRow={record => {
|
||||||
return {
|
return {
|
||||||
onClick:() => {echartsRef.current.getEchartsInstance().setOption(jrxOption(record,dbType))}
|
onClick:() => {echartsRef.current.getEchartsInstance().setOption(jrxOption(record,dbType))}
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
pagination={false}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ const Page = () => {
|
||||||
>
|
>
|
||||||
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', width:'72%',height:'98%',}}>
|
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', width:'72%',height:'98%',}}>
|
||||||
|
|
||||||
<Image src={url} id="img" style={{margin:'auto',margin:'20px',height:'750px'}} preview={false} />
|
<Image src={url} id="img" preview={false} />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</Rnd>
|
</Rnd>
|
||||||
|
|
|
||||||
|
|
@ -232,6 +232,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
||||||
</p>
|
</p>
|
||||||
</Dragger>
|
</Dragger>
|
||||||
}
|
}
|
||||||
|
{JSON.stringify(fileList)}
|
||||||
<Row gutter={[16]}>
|
<Row gutter={[16]}>
|
||||||
{
|
{
|
||||||
fileList.length > 0 && fileList.map(file => {
|
fileList.length > 0 && fileList.map(file => {
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ const Page = ({ title = '标题' }) => {
|
||||||
const [inspectordata, setInspectorData] = useState([{}])
|
const [inspectordata, setInspectorData] = useState([{}])
|
||||||
const [plandata, setPlanData] = useState([])
|
const [plandata, setPlanData] = useState([])
|
||||||
const [problemdata, setProblemData] = useState(Object())
|
const [problemdata, setProblemData] = useState(Object())
|
||||||
const [MaxMin, setMaxMin] = useState({max:0,min:0})
|
const [sumTotal, setSum] = useState(0)
|
||||||
|
|
||||||
const getPlanOption = useMemo((name, data) => {
|
const getPlanOption = useMemo((name, data) => {
|
||||||
return {
|
return {
|
||||||
|
|
@ -40,20 +40,20 @@ const Page = ({ title = '标题' }) => {
|
||||||
},
|
},
|
||||||
radiusAxis: {
|
radiusAxis: {
|
||||||
min: 0,
|
min: 0,
|
||||||
max:MaxMin.max,
|
max: 20,
|
||||||
interval: 1,
|
interval: 2,
|
||||||
// // 刻度
|
// 刻度
|
||||||
axisTick:{
|
axisTick:{
|
||||||
show:false
|
show:false
|
||||||
},
|
},
|
||||||
// //刻度数值
|
//刻度数值
|
||||||
axisLabel:{
|
axisLabel:{
|
||||||
show:false
|
show:false
|
||||||
},
|
},
|
||||||
// // 线
|
// 线
|
||||||
// axisLine:{
|
axisLine:{
|
||||||
// show:false
|
show:false
|
||||||
// },
|
},
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
|
|
@ -115,10 +115,10 @@ const Page = ({ title = '标题' }) => {
|
||||||
setPlanData([])
|
setPlanData([])
|
||||||
}else{
|
}else{
|
||||||
setPlanData(arr)
|
setPlanData(arr)
|
||||||
setMaxMin({max:Math.max.apply(Math,res.data.map(item => { return item.count })),min:Math.min.apply(Math,res.data.map(item => { return item.count }))})
|
|
||||||
console.log({max:Math.max.apply(Math,res.data.map(item => { return item.count })),min:Math.min.apply(Math,res.data.map(item => { return item.count }))});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setSum(sum)
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue