Commit 6c5afabb authored by 涂伟's avatar 涂伟
parents 23623161 4b373d3e
Pipeline #92547 failed with stages
...@@ -95,8 +95,8 @@ ...@@ -95,8 +95,8 @@
"@wisdom-cesium/cesium": "1.1.12", "@wisdom-cesium/cesium": "1.1.12",
"@wisdom-cesium/krpano": "^1.0.29-60", "@wisdom-cesium/krpano": "^1.0.29-60",
"@wisdom-map/amap":"^2.0.15", "@wisdom-map/amap":"^2.0.15",
"@wisdom-map/arcgismap":"^2.0.58", "@wisdom-map/arcgismap":"^2.0.63",
"@wisdom-map/basemap":"^2.0.2", "@wisdom-map/basemap":"^2.0.3",
"@wisdom-utils/components": "0.1.337", "@wisdom-utils/components": "0.1.337",
"@wisdom-utils/utils": "0.1.377", "@wisdom-utils/utils": "0.1.377",
"ace-builds": "^1.4.12", "ace-builds": "^1.4.12",
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
"jszip": "^3.10.1", "jszip": "^3.10.1",
"lodash": "4.17.11", "lodash": "4.17.11",
"minimist": "1.2.0", "minimist": "1.2.0",
"panda-xform": "6.9.25", "panda-xform": "6.10.0",
"parseForm": "^2.3.8", "parseForm": "^2.3.8",
"prop-types": "15.7.2", "prop-types": "15.7.2",
"qrcode.react": "^3.1.0", "qrcode.react": "^3.1.0",
......
...@@ -121,7 +121,6 @@ const QRCodeDesign = (props, ref) => { ...@@ -121,7 +121,6 @@ const QRCodeDesign = (props, ref) => {
}} }}
> >
<QRCodeView <QRCodeView
id={row.DeviceCode}
values={{ values={{
CorporateName: row.CorporateName || '熊猫水务', CorporateName: row.CorporateName || '熊猫水务',
Title: row.Title || '设备二维码', Title: row.Title || '设备二维码',
...@@ -229,7 +228,8 @@ const QRCodeDesign = (props, ref) => { ...@@ -229,7 +228,8 @@ const QRCodeDesign = (props, ref) => {
allowTaint: false, allowTaint: false,
useCORS: true, useCORS: true,
width: 610, width: 610,
scale: 6, height: 980,
scale: 1,
}) })
let a = document.createElement('a'); let a = document.createElement('a');
a.setAttribute('href', can.toDataURL()); //toDataUrl:将canvas画布信息转化为base64格式图片 a.setAttribute('href', can.toDataURL()); //toDataUrl:将canvas画布信息转化为base64格式图片
...@@ -510,6 +510,29 @@ const QRCodeDesign = (props, ref) => { ...@@ -510,6 +510,29 @@ const QRCodeDesign = (props, ref) => {
isBatch={false} isBatch={false}
/> />
</Modal> </Modal>
<div id={'QRCodeBoxs'} style={{ position: 'fixed', left: '-1200px', top: '-1200px', background: '#fff' }}>
{
dataSource.map(row => {
return (
<QRCodeView
id={row.DeviceCode}
values={{
CorporateName: row.CorporateName || '熊猫水务',
Title: row.Title || '设备二维码',
IsSystemLogo: Boolean(row.IsSystemLogo) ? '系统LOGO' : '自定义LOGO',
IsPandaLogo: Boolean(row.IsPandaLogo),
LabelLogoUrl: row.LabelLogoUrl,
DeviceName: row.DeviceName,
DeviceCode: row.DeviceCode,
AccountName: row.AccountName,
}}
isBatch={false}
style={{ width: '610px', height: '980px', margin: '0 auto' }}
/>
)
})
}
</div>
</Modal> </Modal>
) )
} }
......
...@@ -437,10 +437,12 @@ const AddModal = (props) => { ...@@ -437,10 +437,12 @@ const AddModal = (props) => {
const [reportIsShow, setReportIsShow] = useState('none'); // 上报字段外部字段是否显示 const [reportIsShow, setReportIsShow] = useState('none'); // 上报字段外部字段是否显示
const [displayIsShow, setDisplayIsShow] = useState('none'); // 显示字段外部字段是否显示 const [displayIsShow, setDisplayIsShow] = useState('none'); // 显示字段外部字段是否显示
const [transitIsShow, setTransitIsShow] = useState('none'); // 转单字段外部字段是否显示 const [transitIsShow, setTransitIsShow] = useState('none'); // 转单字段外部字段是否显示
const [copyIsShow, setCopyIsShow] = useState('none'); // 抄送字段外部字段是否显示
const [summaryValue, setSummaryValue] = useState(); // 保存摘要字段外部字段 const [summaryValue, setSummaryValue] = useState(); // 保存摘要字段外部字段
const [reportValue, setReportValue] = useState(); // 保存上报字段外部字段 const [reportValue, setReportValue] = useState(); // 保存上报字段外部字段
const [displayValue, setDisplayValue] = useState(); // 保存显示字段外部字段 const [displayValue, setDisplayValue] = useState(); // 保存显示字段外部字段
const [displayColumns, setDisplayColumns] = useState(); // 保存显示列字段外部字段 const [displayColumns, setDisplayColumns] = useState(); // 保存显示列字段外部字段
const [copyValue, setCopyValue] = useState(); //保存抄送字段外部字段
const [question, setQuestion] = useState({ outSearchFields: 0, outOrderByFieldConfig: 0 }) const [question, setQuestion] = useState({ outSearchFields: 0, outOrderByFieldConfig: 0 })
const [keepFiled, setKeepFiled] = useState([]); const [keepFiled, setKeepFiled] = useState([]);
const [imageUrl, setImageUrl] = useState(); const [imageUrl, setImageUrl] = useState();
...@@ -595,6 +597,12 @@ const AddModal = (props) => { ...@@ -595,6 +597,12 @@ const AddModal = (props) => {
} else { } else {
setTransitIsShow('none'); setTransitIsShow('none');
} }
setCopyValue(res.data.root.outCopyField)
if (res.data.root.outCopyField != 0) {
setCopyIsShow('inline')
} else {
setCopyIsShow('none')
}
setQuestion({ setQuestion({
outSearchFields, outSearchFields,
outOrderByFieldConfig outOrderByFieldConfig
...@@ -1556,6 +1564,38 @@ const AddModal = (props) => { ...@@ -1556,6 +1564,38 @@ const AddModal = (props) => {
</div> </div>
</Item> </Item>
</Col> </Col>
<Col span={24}>
<Item
label={
<div style={{ display: 'flex', alignItems: 'center' }}>
<Tooltip title={`存在${copyValue}个外部字段`}>
<InfoCircleOutlined
style={{
color: 'red',
marginRight: '2px',
display: copyIsShow,
}}
/>
</Tooltip>
<span>抄送字段</span>
</div>
}
name="CopyField"
labelCol={{ span: 5 }}
>
<div style={{ display: 'flex' }}>
<Form.Item name="CopyField" style={{ marginBottom: 0, width: '100%' }}>
<Input placeholder="请选择抄送字段" allowClear />
</Form.Item>
<Button
type="dashed"
onClick={() => pickFiled('CopyField')}
icon={<PlusOutlined style={{ marginTop: '5px' }} />}
style={{ marginLeft: '10px', width: '70px' }}
/>
</div>
</Item>
</Col>
<Col span={24}> <Col span={24}>
<Item <Item
name="Reportable" name="Reportable"
......
...@@ -372,7 +372,7 @@ const FlowChart = props => { ...@@ -372,7 +372,7 @@ const FlowChart = props => {
ExtendPageList: [], ExtendPageList: [],
FlowNodeBackfillConfigs: [], FlowNodeBackfillConfigs: [],
FlowTimerList: [], FlowTimerList: [],
TurnOnCc: 1, TurnOnCc: 0,
NodeAliasName: '', NodeAliasName: '',
Handover: '移交选择人', Handover: '移交选择人',
TableName: '', TableName: '',
...@@ -381,7 +381,7 @@ const FlowChart = props => { ...@@ -381,7 +381,7 @@ const FlowChart = props => {
FeedbackName: '', FeedbackName: '',
Transferable: 0, Transferable: 0,
EventsInformation: 0, EventsInformation: 0,
IsSendMessage: 1, IsSendMessage: 0,
IsSave: 0, IsSave: 0,
AutoClose: '否', AutoClose: '否',
HalfwayClose: 0, HalfwayClose: 0,
......
...@@ -172,16 +172,7 @@ const NodeModal = props => { ...@@ -172,16 +172,7 @@ const NodeModal = props => {
</div> </div>
</div> </div>
<div <div
style={{ style={{ display: activeConfig !== '高级配置' || ['20', '21', '22', '30'].includes(editMsg.NodeType) ? 'none' : 'block' }}
display:
activeConfig !== '高级配置' ||
editMsg.NodeType === '20' ||
editMsg.NodeType === '21' ||
editMsg.NodeType === '22' ||
editMsg.NodeType === '30'
? 'none'
: 'block',
}}
> >
{/* 时限配置 */} {/* 时限配置 */}
<ConfigTimeLimit <ConfigTimeLimit
...@@ -271,12 +262,20 @@ const NodeModal = props => { ...@@ -271,12 +262,20 @@ const NodeModal = props => {
</div> </div>
{/* 子流程配置 */} {/* 子流程配置 */}
{editMsg.NodeType === '30' && ( {editMsg.NodeType === '30' && (
<ConfigSubprocess <>
ref={refConfigSubprocess} <ConfigSubprocess
editMsg={editMsg} ref={refConfigSubprocess}
flowID={flowID} editMsg={editMsg}
nodeChage={nodeChage} flowID={flowID}
/> nodeChage={nodeChage}
/>
<ConfigAccount
ref={refConfigAccount}
nodeChage={nodeChage}
editMsg={editMsg}
flowID={flowID}
/>
</>
)} )}
{/* 网关规则配置 */} {/* 网关规则配置 */}
<div <div
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* eslint-disable no-case-declarations */ /* eslint-disable no-case-declarations */
/* eslint-disable import/no-duplicates */ /* eslint-disable import/no-duplicates */
/* eslint-disable no-new */ /* eslint-disable no-new */
import React, { useEffect, useState, useRef } from 'react'; import React, { useEffect, useState, useRef, useMemo } from 'react';
import { SketchPicker } from 'react-color'; import { SketchPicker } from 'react-color';
import { import {
ArcGISMap, ArcGISMap,
...@@ -18,6 +18,7 @@ import { ...@@ -18,6 +18,7 @@ import {
SimpleFillSymbol, SimpleFillSymbol,
Graphic, Graphic,
EditAndDrawPanel, EditAndDrawPanel,
Handles
} from '@wisdom-map/arcgismap'; } from '@wisdom-map/arcgismap';
import { checkInternalNetwork } from '@/utils/utils'; import { checkInternalNetwork } from '@/utils/utils';
import { getPipenetLayer } from '@wisdom-map/basemap'; import { getPipenetLayer } from '@wisdom-map/basemap';
...@@ -200,6 +201,7 @@ const Map = props => { ...@@ -200,6 +201,7 @@ const Map = props => {
const [hide, setHide] = useState(false); const [hide, setHide] = useState(false);
const [hideChange, setHideChange] = useState(null); const [hideChange, setHideChange] = useState(null);
const [keepNameCustomPointExtent, setKeepNameCustomPointExtent] = useState(''); // 保存方案初始自定义区域 const [keepNameCustomPointExtent, setKeepNameCustomPointExtent] = useState(''); // 保存方案初始自定义区域
const mapHandles = useRef(new Handles())
useEffect(() => { useEffect(() => {
GetWebSiteConfig({ client: 'sandbox' }) GetWebSiteConfig({ client: 'sandbox' })
...@@ -495,14 +497,6 @@ const Map = props => { ...@@ -495,14 +497,6 @@ const Map = props => {
} }
}); });
setMap(viewObject); setMap(viewObject);
watchUtils.watch(viewObject, ['zoom'], newzoom => {
// 鼠标滚动隐藏管网图
viewObject.map.layers.find(layer => {
if (layer.layerType == 'PipenetLayer') {
layer.visible = false;
}
});
});
mapInfo.current = viewObject; mapInfo.current = viewObject;
if (form.getFieldsValue().exportScheme == 'pandagis') { if (form.getFieldsValue().exportScheme == 'pandagis') {
let data = mapInfo.current.map.layers.find( let data = mapInfo.current.map.layers.find(
...@@ -521,6 +515,7 @@ const Map = props => { ...@@ -521,6 +515,7 @@ const Map = props => {
url: `/PandaGIS/MapServer/${aa}`, url: `/PandaGIS/MapServer/${aa}`,
layerType: 'PipenetLayertest', layerType: 'PipenetLayertest',
title: aa, title: aa,
customParameters : {}
}); });
viewObject.map.add(pandagis1); viewObject.map.add(pandagis1);
} }
...@@ -720,7 +715,14 @@ const Map = props => { ...@@ -720,7 +715,14 @@ const Map = props => {
setColorList(setttings.boundColor || '#86C8F8'); setColorList(setttings.boundColor || '#86C8F8');
setKeepColor(setttings.boundColor || '#86C8F8'); setKeepColor(setttings.boundColor || '#86C8F8');
setColor(setttings.backgroundColor || '#000000'); setColor(setttings.backgroundColor || '#000000');
setRadio(setttings.exportScheme || 'pandagis'); if(radio == "arcgis" && setttings.exportScheme == "arcgis") {
setRadio()
setTimeout(() => {
setRadio("arcgis")
}, 50)
} else {
setRadio(setttings.exportScheme || 'pandagis');
}
setRadio1(setttings.customFlag); setRadio1(setttings.customFlag);
mapRef.current.mapchange(obj); mapRef.current.mapchange(obj);
...@@ -760,6 +762,25 @@ const Map = props => { ...@@ -760,6 +762,25 @@ const Map = props => {
}, 0); }, 0);
}; };
useEffect(() => {
if(!map) return
const viewObject = map
if(mapHandles.current) {
mapHandles.current.removeAll()
mapHandles.current.add(watchUtils.watch(viewObject, ['zoom'], newzoom => {
// 鼠标滚动隐藏管网图
viewObject.map.layers.find(layer => {
if (layer.layerType == 'PipenetLayer') {
layer.visible = false;
}
});
}))
}
return () => {
mapHandles.current && mapHandles.current.removeAll()
}
}, [map])
useEffect(() => { useEffect(() => {
if (name && !hide) { if (name && !hide) {
setHideChange(false); setHideChange(false);
...@@ -939,12 +960,13 @@ const Map = props => { ...@@ -939,12 +960,13 @@ const Map = props => {
}); });
}; };
const pandagis = new MapImageLayer({ const pandagis = useMemo(() => new MapImageLayer({
id: keep.id, id: keep.id,
url: `/PandaGIS/MapServer/${keep.id}`, url: `/PandaGIS/MapServer/${keep.id}`,
layerType: 'PipenetLayertest', layerType: 'PipenetLayertest',
title: keep.id, title: keep.id,
}); customParameters : {}
}), [keep])
const onChange = e => { const onChange = e => {
const { layer } = getPipenetLayer(mapInfo.current?.map); const { layer } = getPipenetLayer(mapInfo.current?.map);
...@@ -1339,7 +1361,7 @@ const Map = props => { ...@@ -1339,7 +1361,7 @@ const Map = props => {
client="sandbox" client="sandbox"
/> />
)} )}
{radio == 'arcgis' ? ( {radio == 'arcgis' && map && name && Schemename? (
<PipenetStylesCenter <PipenetStylesCenter
schemeName={Schemename.schemename} schemeName={Schemename.schemename}
mapServerName={name} mapServerName={name}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment