feat(): 修改下载路径
parent
27911ed7da
commit
587e0e9aff
Binary file not shown.
|
After Width: | Height: | Size: 3.4 MiB |
|
|
@ -12,7 +12,7 @@ const { toString } = class2type;
|
|||
|
||||
export const fileDownload = (url,params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/${url}/${params?.fileId}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/${url}/${params?.fileId}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -83,12 +83,14 @@ function ShuikuPop({ id, data, dispatch }) {
|
|||
<div style={{paddingLeft:15}}>
|
||||
<Tabs defaultActiveKey="1">
|
||||
<Tabs.TabPane tab="实时监测" key="1">
|
||||
<Skssjc data={{...data,...tableData[0]}}/>
|
||||
{/* <Skssjc data={{ ...data, ...tableData[0] }} /> */}
|
||||
<Skssjc data={{ ...data }}/>
|
||||
|
||||
</Tabs.TabPane>
|
||||
<Tabs.TabPane tab="数据查询" key="2">
|
||||
<Sksjcx record={data}/>
|
||||
</Tabs.TabPane>
|
||||
{
|
||||
{/* {
|
||||
data.id!=="61610701"?
|
||||
<>
|
||||
<Tabs.TabPane tab="图像监测" key="3">
|
||||
|
|
@ -98,7 +100,7 @@ function ShuikuPop({ id, data, dispatch }) {
|
|||
<Spjc record={data}/>
|
||||
</Tabs.TabPane>
|
||||
</>:null
|
||||
}
|
||||
} */}
|
||||
</Tabs>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ import apiurl from '../../../../../service/apiurl';
|
|||
import { Image,Divider } from 'antd';
|
||||
|
||||
function Skssjc({data}) {
|
||||
|
||||
const [damGraph, setDamGraph] = useState();
|
||||
const [imgList, setImgList] = useState([])
|
||||
const [currentIndex, setCurrentIndex] = useState(0)
|
||||
|
|
|
|||
|
|
@ -13,11 +13,12 @@ const MyImg = ({ record }) => {
|
|||
const computerHeight = (h1, h2, h3) => {
|
||||
let height;
|
||||
let comHeight;
|
||||
if (h1 & h2 & h3) {
|
||||
if (h1 && h2 && h3) {
|
||||
comHeight = (h1 - h3) / (h2 - h3)
|
||||
|
||||
// height = comHeight * 100 < 80 ? `${comHeight}%` : "80%"
|
||||
height = `${comHeight * 80}%`
|
||||
return height
|
||||
return comHeight > 0 ? height : 10
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
|
|
@ -29,29 +30,29 @@ const MyImg = ({ record }) => {
|
|||
overflow: 'hidden',
|
||||
position: 'relative',
|
||||
backgroundColor: "#eff3f6",
|
||||
borderRadius:"2%"
|
||||
borderRadius: "2%"
|
||||
}}>
|
||||
<img
|
||||
src={`${process.env.PUBLIC_URL}/assets/images/waterz.png`}
|
||||
style={
|
||||
{
|
||||
position: 'absolute',
|
||||
bottom:computerHeight(record.rz,record.crestElev,record.deadLev),
|
||||
bottom: computerHeight(record.rz, record.crestElev, record.deadLev),
|
||||
// top: '50%'
|
||||
transform:"translateY(100%)"
|
||||
transform: "translateY(100%)"
|
||||
}}
|
||||
/>
|
||||
|
||||
<img src={`${process.env.PUBLIC_URL}/assets/images/dam.png`} style={{ position: 'absolute', bottom: 0, height: '100%', right: -20 }} />
|
||||
<img src={`${process.env.PUBLIC_URL}/assets/images/dam.png`} style={{ position: 'absolute', bottom: 0, height: '100%', right: -20 }} />
|
||||
|
||||
<img src={`${process.env.PUBLIC_URL}/assets/images/ruler.png`} style={{ position: 'absolute', bottom: 0, height: '100%', left: 20 }} />
|
||||
<img src={`${process.env.PUBLIC_URL}/assets/images/ruler.png`} style={{ position: 'absolute', bottom: 0, height: '100%', left: 20 }} />
|
||||
|
||||
<div style={
|
||||
{
|
||||
position: 'absolute',
|
||||
left: 40,
|
||||
// width: '65%',
|
||||
bottom:computerHeight(record.desFloodLev,record.crestElev,record.deadLev),
|
||||
bottom: computerHeight(record.desFloodLev, record.crestElev, record.deadLev),
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
gap: 8,
|
||||
|
|
@ -61,29 +62,29 @@ const MyImg = ({ record }) => {
|
|||
style={{
|
||||
width: 90,
|
||||
height: 15,
|
||||
}}
|
||||
}}
|
||||
/>
|
||||
<div style={{
|
||||
// width: "210px",
|
||||
// border: '2px solid #fff',
|
||||
// backgroundColor: '#0bcbeb',
|
||||
// padding: '2px 16px',
|
||||
color:'#ff0a0a',
|
||||
color: '#ff0a0a',
|
||||
fontSize: 16,
|
||||
justifyContent: 'space-between',
|
||||
display: 'flex',
|
||||
columnGap:10
|
||||
columnGap: 10
|
||||
}}>
|
||||
设计洪水位 <strong>{record.desFloodLev?record.desFloodLev.toFixed(2):"-"}m</strong>
|
||||
</div>
|
||||
设计洪水位 <strong>{record.desFloodLev ? record.desFloodLev.toFixed(2) : "-"}m</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style={
|
||||
{
|
||||
position: 'absolute',
|
||||
left: 40,
|
||||
// width: '65%',
|
||||
bottom:computerHeight(record.flLowLimLev,record.crestElev,record.deadLev),
|
||||
bottom: computerHeight(record.flLowLimLev, record.crestElev, record.deadLev),
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
gap: 8
|
||||
|
|
@ -91,31 +92,29 @@ const MyImg = ({ record }) => {
|
|||
<img src={`${process.env.PUBLIC_URL}/assets/images/orange.png`}
|
||||
style={{
|
||||
width: 90,
|
||||
height:15
|
||||
}}
|
||||
height: 15
|
||||
}}
|
||||
/>
|
||||
<div style={{
|
||||
// width: "210px",
|
||||
// border: '2px solid red',
|
||||
// backgroundColor: '#0008',
|
||||
// padding: '2px 16px',
|
||||
color:'#ff7200',
|
||||
color: '#ff7200',
|
||||
fontSize: 16,
|
||||
justifyContent: 'space-between',
|
||||
display: 'flex',
|
||||
columnGap:10
|
||||
columnGap: 10
|
||||
}}>
|
||||
汛限水位 <strong>{record.flLowLimLev?record.flLowLimLev.toFixed(2):"-"}m</strong>
|
||||
</div>
|
||||
汛限水位 <strong>{record.flLowLimLev ? record.flLowLimLev.toFixed(2) : "-"}m</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style={
|
||||
{
|
||||
position: 'absolute',
|
||||
// left: 150,
|
||||
// left:78,
|
||||
width: '82%',
|
||||
bottom:computerHeight(record.rz,record.crestElev,record.deadLev),
|
||||
bottom: computerHeight(record.rz, record.crestElev, record.deadLev),
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
gap: 8,
|
||||
|
|
@ -123,29 +122,17 @@ const MyImg = ({ record }) => {
|
|||
}}>
|
||||
<img src={`${process.env.PUBLIC_URL}/assets/images/blue2.png`}
|
||||
style={{
|
||||
flex:0.5,
|
||||
flex: 0.5,
|
||||
// width: 30,
|
||||
height:15
|
||||
}}
|
||||
height: 15
|
||||
}}
|
||||
/>
|
||||
<div style={{
|
||||
// flexGrow: 0.5,
|
||||
// border: '2px solid #fff',
|
||||
// color: "#fff",
|
||||
// backgroundColor:
|
||||
// '#0008',
|
||||
// padding: '2px 16px',
|
||||
color:'#06caff',
|
||||
fontSize: 16,
|
||||
}}>
|
||||
<div style={{
|
||||
// justifyContent: 'space-between',
|
||||
display: 'flex',
|
||||
columnGap:10
|
||||
}}> <span>实时水位</span> <strong>{record.rz?record.rz.toFixed(2):"-"}m</strong></div>
|
||||
{/* <div style={{ justifyContent: 'space-between', display: 'flex'}}> <span>库容</span> <strong>{record.totCap}m³</strong></div> */}
|
||||
<div style={{color: '#06caff',fontSize: 16}}>
|
||||
<div style={{ display: 'flex', columnGap: 10 }}>
|
||||
<span>实时水位</span> <strong>{record.rz ? record.rz.toFixed(2) : "-"}m</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style={{
|
||||
position: 'absolute', left: 40,
|
||||
|
|
@ -155,25 +142,20 @@ const MyImg = ({ record }) => {
|
|||
<img src={`${process.env.PUBLIC_URL}/assets/images/white1.png`}
|
||||
style={{
|
||||
width: 90,
|
||||
height:15
|
||||
}}
|
||||
height: 15
|
||||
}}
|
||||
/>
|
||||
<div style={{
|
||||
// width: "210px",
|
||||
// border: '2px solid #fff',
|
||||
// color: "#fff",
|
||||
// backgroundColor: '#0bcbeb',
|
||||
// padding: '2px 16px',
|
||||
color:'#fff',
|
||||
color: '#fff',
|
||||
fontSize: 16,
|
||||
justifyContent: 'space-between',
|
||||
display: 'flex',
|
||||
columnGap:10
|
||||
columnGap: 10
|
||||
}}>
|
||||
死水位 <strong>{record.deadLev?record.deadLev.toFixed(2):''}m</strong>
|
||||
</div>
|
||||
死水位 <strong>{record.deadLev ? record.deadLev.toFixed(2) : ''}m</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ const Page = ({showPanels}) => {
|
|||
setMyKey('1')
|
||||
}
|
||||
},[mapObj])
|
||||
|
||||
const [skList, setSkList] = useState([])
|
||||
const getData = async (params) => {
|
||||
SkRealPromiseWX.get().then((res) => {
|
||||
const list = res.map((i)=>{
|
||||
|
|
@ -51,6 +51,7 @@ const Page = ({showPanels}) => {
|
|||
...i
|
||||
}
|
||||
})
|
||||
setSkList(list)
|
||||
const data = list[0]
|
||||
setData(data)
|
||||
});
|
||||
|
|
@ -80,13 +81,13 @@ const Page = ({showPanels}) => {
|
|||
</Panel>
|
||||
<Panel
|
||||
key={'2'}
|
||||
header={<div className='homePage_Panel'><img src={`${process.env.PUBLIC_URL}/assets/panelTitle.png`} alt=""/>水库水位(近七日)
|
||||
{
|
||||
header={<div className='homePage_Panel'><img src={`${process.env.PUBLIC_URL}/assets/panelTitle.png`} alt=""/>水库水位
|
||||
{/* {
|
||||
data.resCode?<div onClick={getShuiKu} className='fxdd_fhxs_xq'>详情</div>:null
|
||||
}
|
||||
} */}
|
||||
</div>}
|
||||
>
|
||||
{ myKey==='2'?<Sksw data={data}/>:null }
|
||||
{myKey === '2' ? <Sksw data={data} list={skList} />:null }
|
||||
</Panel>
|
||||
</Collapse>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ const Page = ({showPanels,setTms2}) => {
|
|||
|
||||
const columns = [
|
||||
{ title: '站名', key: 'stnm', dataIndex: 'stnm',align: "center", ellipsis: true },
|
||||
{ title: '时段雨量', key: 'drp', dataIndex: 'drp',align: "center", render:(v)=>v===null?'-':v },
|
||||
{ title: '时段雨量(mm)', key: 'drp', dataIndex: 'drp',align: "center", render:(v)=>v===null?'-':v },
|
||||
];
|
||||
|
||||
const getData = (label,tms)=>{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import React, { useEffect, useState, useMemo } from 'react';
|
||||
import { Descriptions, Form, Button, Input, DatePicker } from 'antd';
|
||||
import {useDispatch, useSelector} from "react-redux";
|
||||
import { Descriptions, Form, Button, Input, DatePicker,Table } from 'antd';
|
||||
import {CloseOutlined} from '@ant-design/icons';
|
||||
import ReactEcharts from 'echarts-for-react';
|
||||
import { httppost2 } from '../../../utils/request';
|
||||
|
|
@ -7,34 +8,65 @@ import apiurl from '../../../service/apiurl';
|
|||
import moment from "moment"
|
||||
import drpOption from './drpOption';
|
||||
|
||||
const Page = ({data}) => {
|
||||
const [ tableData, setTableData ] = useState([])
|
||||
const [ xxsw, setXxsw ] = useState(null)
|
||||
const option = useMemo(() => drpOption(tableData,xxsw), [tableData])
|
||||
const Page = ({ data, list }) => {
|
||||
const dispatch = useDispatch();
|
||||
const columns = [
|
||||
{ title: '站名', key: 'stnm', dataIndex: 'stnm',align: "center", ellipsis: true },
|
||||
{ title: '水位(m)', key: 'rz', dataIndex: 'rz', align: "center", render: (v) => v === null ? '-' : v },
|
||||
{ title: '时间', key: 'tm', dataIndex: 'tm',align: "center", ellipsis: true },
|
||||
|
||||
];
|
||||
// const [ tableData, setTableData ] = useState([])
|
||||
// const [ xxsw, setXxsw ] = useState(null)
|
||||
// const option = useMemo(() => drpOption(tableData,xxsw), [tableData])
|
||||
|
||||
const getData = async(resCode)=>{
|
||||
const { code, data} = await httppost2(apiurl.fxdd_xyt.fhxs.getSk,{resCode:resCode})
|
||||
if(code!==200 ){
|
||||
return
|
||||
}
|
||||
const list = data.list.filter(o=>o.rz)
|
||||
setTableData(list)
|
||||
setXxsw(Number(data.flLowLimLev))
|
||||
}
|
||||
// const getData = async(resCode)=>{
|
||||
// const { code, data} = await httppost2(apiurl.fxdd_xyt.fhxs.getSk,{resCode:resCode})
|
||||
// if(code!==200 ){
|
||||
// return
|
||||
// }
|
||||
// const list = data.list.filter(o=>o.rz)
|
||||
// setTableData(list)
|
||||
// setXxsw(Number(data.flLowLimLev))
|
||||
// }
|
||||
|
||||
useEffect(()=>{
|
||||
if(data.resCode){
|
||||
getData(data.resCode)
|
||||
}
|
||||
},[data])
|
||||
// useEffect(()=>{
|
||||
// if(data.resCode){
|
||||
// getData(data.resCode)
|
||||
// }
|
||||
// },[data])
|
||||
|
||||
return (
|
||||
<>
|
||||
{
|
||||
<div className="ant-card-body" style={{padding:"10px"}}>
|
||||
<Table rowKey="adcd"
|
||||
sticky
|
||||
columns={columns}
|
||||
pagination={false}
|
||||
dataSource={list}
|
||||
scroll={{ y: "300px"}}
|
||||
onRow={
|
||||
(data)=>({
|
||||
onClick:()=>{
|
||||
// dispatch.map.setLayerVisible({"HdswLayer":true});
|
||||
dispatch.runtime.setFeaturePop({
|
||||
id: data.id,
|
||||
type: 'shuiku',
|
||||
data,
|
||||
lgtd: data.lgtd,
|
||||
lttd: data.lttd,
|
||||
elev: data.elev,
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
{/* {
|
||||
tableData.length>0?
|
||||
<ReactEcharts option={option} style={{width: "100%", height: '300px'}}/>
|
||||
:<div style={{textAlign: "center", padding: "5%"}}><img src={`${process.env.PUBLIC_URL}/assets/noData.png`} alt=""/></div>
|
||||
}
|
||||
} */}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ const HomePage = ({showPanels}) => {
|
|||
useEffect(()=>{
|
||||
dispatch.runtime.closeFeaturePopAll()
|
||||
if(checkedObj.label==='水库'||checkedObj.label==='大坝'||checkedObj.label==='溢洪道'||checkedObj.label==='视频点'){
|
||||
|
||||
dispatch.map.setLayerVisible({ PicStLayer: true })
|
||||
}else{
|
||||
dispatch.map.setLayerVisible({ PicStLayer: false })
|
||||
|
|
|
|||
|
|
@ -94,7 +94,8 @@ const Page = () => {
|
|||
setData(data1)
|
||||
}
|
||||
|
||||
const getShuiKu = ()=>{
|
||||
const getShuiKu = () => {
|
||||
|
||||
SkRealPromiseWX.get().then((res) => {
|
||||
const list = [...res,sj].map((i)=>{
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ const ModalForm = ({ mode, record, onEdit, onSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/xfEmerDispatchR/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/xfEmerDispatchR/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ export default function Page({ selectDiv1, detail }) {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/xfEmerRespR/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/xfEmerRespR/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ console.log("data",data);
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/xfEmerRespR/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/xfEmerRespR/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ const ModalForm = ({ mode, record, onEdit, onSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/bzFldPred/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/bzFldPred/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ const ModalForm = ({ mode, record, onEdit, onSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/bzFldPred/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/bzFldPred/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,onCrudSuccess }) => {
|
|||
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/resPlanB/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/resPlanB/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export default function Zrtx() {
|
|||
}
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/resPlanB/file/download/${params?.fileId}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/resPlanB/file/download/${params?.fileId}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,onCrudSuccess }) => {
|
|||
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/resPlanB/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/resPlanB/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export default function Zrtx() {
|
|||
}
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/resPlanB/file/download/${params?.fileId}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/resPlanB/file/download/${params?.fileId}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,onCrudSuccess }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/bzProjectManipulationRecord/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/bzProjectManipulationRecord/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ console.log("record",record);
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/bzProjectManipulationRecord/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/bzProjectManipulationRecord/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ const ModalForm = ({ mode, record, onEdit, onSave,onDeleteGet,onCrudSuccess }) =
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/bzProjectManipulationRecord/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/bzProjectManipulationRecord/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/rescue/team/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/rescue/team/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ const ToolBar = ({ setSearchVal, onSave, storeData, role = [] }) => {
|
|||
let dateSo;
|
||||
if (values.tm) {
|
||||
dateSo = {
|
||||
start: moment(values.tm[0]).format('YYYY-MM-DD HH:mm:ss'),
|
||||
end: moment(values.tm[1]).format('YYYY-MM-DD HH:mm:ss')
|
||||
start: moment(values.tm[0]).format('YYYY-MM-DD 00:00:00'),
|
||||
end: moment(values.tm[1]).format('YYYY-MM-DD 23:59:59')
|
||||
}
|
||||
}
|
||||
delete values.tm
|
||||
|
|
@ -35,7 +35,7 @@ const ToolBar = ({ setSearchVal, onSave, storeData, role = [] }) => {
|
|||
allowClear
|
||||
showTime
|
||||
style={{ width: "300px" }}
|
||||
format="YYYY-MM-DD HH:mm:ss"
|
||||
format="YYYY-MM-DD"
|
||||
/>
|
||||
</Form.Item>
|
||||
{searchBtn ? <Form.Item>
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/rescue/team/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/rescue/team/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/rescue/goods/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/rescue/goods/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/rescue/goods/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/rescue/goods/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onCrudSuccess }) => {
|
|||
*/
|
||||
const download = params => {
|
||||
let downloadLink = document.createElement('a')
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/xfIdeoHmB/file/download/${params}`
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/xfIdeoHmB/file/download/${params}`
|
||||
downloadLink.download = `${params.fileName}`
|
||||
downloadLink.style.display = 'none'
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,onCrudSuccess }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/xfIdeoFcB/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/xfIdeoFcB/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ const Page = ({data,fileList,isMeetData=false}) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/xfIdeoFcB/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/xfIdeoFcB/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ console.log(record);
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/xfIdeoTcB/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/xfIdeoTcB/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ const ModalForm = ({ mode, record,onEdit,onSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/xfIdeoImgB/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/xfIdeoImgB/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,onCrudSuccess }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/bzPredictionScheme/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/bzPredictionScheme/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ const ToolBar = ({ setSearchVal, onFileChange, onDelete, adcd, id }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/bzOrganizationFile/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/bzOrganizationFile/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -58,8 +58,8 @@ const ToolBar = ({ setSearchVal, setMode, exportFile,role }) => {
|
|||
let dateSo;
|
||||
if (values.tm) {
|
||||
dateSo = {
|
||||
startTime: moment(values.tm[0]).format('YYYY-MM-DD HH:mm:ss'),
|
||||
endTime: moment(values.tm[1]).format('YYYY-MM-DD HH:mm:ss')
|
||||
startTime: moment(values.tm[0]).format('YYYY-MM-DD 00:00:00'),
|
||||
endTime: moment(values.tm[1]).format('YYYY-MM-DD 23:59:59')
|
||||
}
|
||||
}
|
||||
delete values.tm
|
||||
|
|
@ -88,7 +88,7 @@ const ToolBar = ({ setSearchVal, setMode, exportFile,role }) => {
|
|||
<RangePicker
|
||||
allowClear
|
||||
style={{ width: "350px" }}
|
||||
format="YYYY-MM-DD HH:mm"
|
||||
format="YYYY-MM-DD"
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item label="常用时段" name="ranger">
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/safety/check/file/download/${params.fileId}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/safety/check/file/download/${params.fileId}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/safety/identify/file/download/${params.fileId}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/safety/identify/file/download/${params.fileId}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/safety/accident/reg/file/download/${params.fileId}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/safety/accident/reg/file/download/${params.fileId}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/safety/hazard/invest/file/download/${params.fileId}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/safety/hazard/invest/file/download/${params.fileId}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/safety/reinforcement/file/download/${params.fileId}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/safety/reinforcement/file/download/${params.fileId}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ const getResultList = async() => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/risk/info/file/download/${params.fileId}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/risk/info/file/download/${params.fileId}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ const Page = () => {
|
|||
}
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/termite/adver/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/termite/adver/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/projectEvents/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/projectEvents/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ const Page = () => {
|
|||
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/projectEvents/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/projectEvents/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/assessTask/file/download/${params.fileId}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/assessTask/file/download/${params.fileId}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ console.log("record",record);
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/assessTeamRating/file/download/${params.fileId}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/assessTeamRating/file/download/${params.fileId}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import { Image } from "antd"
|
||||
import zd from '../../../../assets/img/u0.png'
|
||||
import qys1 from '../../../../assets/img/qys1.png'
|
||||
// import qys1 from '../../../../assets/img/qys1.png'
|
||||
import qys1 from '../../../../assets/img/sk.jpg'
|
||||
import qys2 from '../../../../assets/img/qys2.jpg'
|
||||
import qys3 from '../../../../assets/img/qys3.jpg'
|
||||
import qys4 from '../../../../assets/img/qys4.png'
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/projectEvents/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/projectEvents/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ const Page = () => {
|
|||
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/projectEvents/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/projectEvents/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ const ToolBar = ({ setSearchVal, onSave, storeData,role }) => {
|
|||
let dateSo;
|
||||
if (values.tm) {
|
||||
dateSo = {
|
||||
start: moment(values.tm[0]).format('YYYY-MM-DD HH:mm:ss'),
|
||||
end: moment(values.tm[1]).format('YYYY-MM-DD HH:mm:ss')
|
||||
start: moment(values.tm[0]).format('YYYY-MM-DD'),
|
||||
end: moment(values.tm[1]).format('YYYY-MM-DD')
|
||||
}
|
||||
}
|
||||
delete values.tm
|
||||
|
|
@ -31,9 +31,9 @@ const ToolBar = ({ setSearchVal, onSave, storeData,role }) => {
|
|||
<Form.Item label="发生日期" name="tm">
|
||||
<RangePicker
|
||||
allowClear
|
||||
showTime
|
||||
showTime={false}
|
||||
style={{ width: "300px" }}
|
||||
format="YYYY-MM-DD HH:mm:ss"
|
||||
format="YYYY-MM-DD"
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ const Page = () => {
|
|||
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/projectEvents/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/projectEvents/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
@ -94,7 +94,7 @@ const onExport = () => {
|
|||
role={role}
|
||||
/>
|
||||
</Card>
|
||||
<div className="ant-card-body" style={{ padding: "20px 0 0 0",overflowY:"auto",height: 'calc(100vh - 68px)'}}>
|
||||
<div className="ant-card-body" style={{ padding: "20px 0 0 0",overflowY:"auto",height: 'calc(100vh - 200px)'}}>
|
||||
<div className='time-line' style={{width:'calc(100% - 140px)'}}>
|
||||
<Timeline >
|
||||
{tableProps.dataSource?.map((item, index) => (
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ const ToolBar = ({ setSearchVal, onExport, storeData, role }) => {
|
|||
let dateSo;
|
||||
if (values.tm) {
|
||||
dateSo = {
|
||||
start: moment(values.tm[0]).format('YYYY-MM-DD HH:mm:ss'),
|
||||
end: moment(values.tm[1]).format('YYYY-MM-DD HH:mm:ss')
|
||||
start: moment(values.tm[0]).format('YYYY-MM-DD'),
|
||||
end: moment(values.tm[1]).format('YYYY-MM-DD')
|
||||
}
|
||||
}
|
||||
delete values.tm
|
||||
|
|
@ -33,9 +33,9 @@ const ToolBar = ({ setSearchVal, onExport, storeData, role }) => {
|
|||
<Form.Item label="发生日期" name="tm">
|
||||
<RangePicker
|
||||
allowClear
|
||||
showTime
|
||||
showTime={false}
|
||||
style={{ width: "300px" }}
|
||||
format="YYYY-MM-DD HH:mm:ss"
|
||||
format="YYYY-MM-DD"
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item>
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/SzRuleByLaw/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/SzRuleByLaw/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/rescue/team/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/rescue/team/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/personnelPlan/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/personnelPlan/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/personnelPlanLog/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/personnelPlanLog/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
@ -115,7 +115,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
|
||||
const download1 = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/personnelPlanLog/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/personnelPlanLog/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -94,7 +94,8 @@ const Page = () => {
|
|||
* @description 处理成功的回调
|
||||
*/
|
||||
const successCallback = () => {
|
||||
refresh()
|
||||
refresh()
|
||||
getStaData(searchChartVal)
|
||||
}
|
||||
|
||||
// 获取统计数据
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/projectEvents/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/projectEvents/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -196,13 +196,13 @@ export default function Zzjgck() {
|
|||
}, [deptUserList, deptList])
|
||||
|
||||
const jgOptions = useMemo(() => {
|
||||
return jgOption(demoList)
|
||||
// if (treeList.length > 0) {
|
||||
// return jgOption(demoList)
|
||||
if (treeList.length > 0) {
|
||||
|
||||
// return jgOption(treeList);
|
||||
// } else {
|
||||
// return {}
|
||||
// }
|
||||
return jgOption(treeList);
|
||||
} else {
|
||||
return {}
|
||||
}
|
||||
}, [treeList])
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
*/
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/tsg/dispatchRecord/file/download/${params.fileId}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/tsg/dispatchRecord/file/download/${params.fileId}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ const ToolBar = ({ value, onChange, tm, callback,role }) => {
|
|||
|
||||
const download = (params) => {
|
||||
let downloadLink = document.createElement("a");
|
||||
downloadLink.href = `http://local.gunshiiot.com:18083/gunshiApp/xfflood/bzPredictionScheme/file/download/${params}`;
|
||||
downloadLink.href = `http://223.75.53.141:83/gunshiApp/xfflood/bzPredictionScheme/file/download/${params}`;
|
||||
downloadLink.download = `${params.fileName}`;
|
||||
downloadLink.style.display = "none";
|
||||
// 将链接添加到页面中
|
||||
|
|
|
|||
Loading…
Reference in New Issue