Commit 76b1eca8 authored by 涂伟's avatar 涂伟
parents 8a5d3601 fff79316
Pipeline #69583 passed with stages
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
"@wangeditor/editor": "^5.1.23", "@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-react": "^1.0.6", "@wangeditor/editor-for-react": "^1.0.6",
"@wisdom-cesium/cesium": "^1.0.78", "@wisdom-cesium/cesium": "^1.0.78",
"@wisdom-cesium/krpano": "^1.0.29-28", "@wisdom-cesium/krpano": "^1.0.29-30",
"@wisdom-map/amap": "1.1.0-beta.45", "@wisdom-map/amap": "1.1.0-beta.45",
"@wisdom-map/arcgismap": "1.4.0-138", "@wisdom-map/arcgismap": "1.4.0-138",
"@wisdom-map/basemap": "1.1.0-24", "@wisdom-map/basemap": "1.1.0-24",
......
...@@ -73,11 +73,6 @@ const ServiceLog = () => { ...@@ -73,11 +73,6 @@ const ServiceLog = () => {
const startYear = new Date(allTime[0]).getYear(); const startYear = new Date(allTime[0]).getYear();
const endYear = new Date(allTime[1]).getYear(); const endYear = new Date(allTime[1]).getYear();
if (minuteInterval <= 0) { if (minuteInterval <= 0) {
console.log(start);
console.log(end);
console.log(allTime[0]);
console.log(allTime[1]);
console.log(minuteInterval);
notification.error({ notification.error({
message: '时间设置有误', message: '时间设置有误',
description: '起始时间应该早于结束时间', description: '起始时间应该早于结束时间',
...@@ -469,7 +464,6 @@ const ServiceLog = () => { ...@@ -469,7 +464,6 @@ const ServiceLog = () => {
setEndTime(time); setEndTime(time);
}; };
const changeTime = time => { const changeTime = time => {
console.log(time);
setAllTime(time); setAllTime(time);
}; };
// 近1/6/12/24小时,同时设置对应的时间间隔 // 近1/6/12/24小时,同时设置对应的时间间隔
......
...@@ -167,7 +167,7 @@ const Map = props => { ...@@ -167,7 +167,7 @@ const Map = props => {
const [firstList, setFirstList] = useState({}); const [firstList, setFirstList] = useState({});
const [setttingsSave, setSetttingsSave] = useState({}); const [setttingsSave, setSetttingsSave] = useState({});
const [name, setName] = useState(''); const [name, setName] = useState('');
const [Schemename, setSchemename] = useState(''); const [Schemename, setSchemename] = useState({});
const [radio, setRadio] = useState(); const [radio, setRadio] = useState();
const mapRef = useRef(); const mapRef = useRef();
const styleRef = useRef(); const styleRef = useRef();
...@@ -225,6 +225,7 @@ const Map = props => { ...@@ -225,6 +225,7 @@ const Map = props => {
let list = {}; let list = {};
list.layers = dalist; list.layers = dalist;
console.log(list); console.log(list);
debugger;
setFirstList({ ...list }); setFirstList({ ...list });
setTimeout(() => { setTimeout(() => {
form.setFieldsValue({ form.setFieldsValue({
...@@ -281,7 +282,7 @@ const Map = props => { ...@@ -281,7 +282,7 @@ const Map = props => {
if (setttings.id) { if (setttings.id) {
setKeep(setttings); setKeep(setttings);
setName(setttings.id); setName(setttings.id);
setSchemename(setttings.schemename); setSchemename(setttings);
} else { } else {
setName(''); setName('');
} }
...@@ -391,7 +392,7 @@ const Map = props => { ...@@ -391,7 +392,7 @@ const Map = props => {
if (setttings.id) { if (setttings.id) {
setKeep(setttings); setKeep(setttings);
setName(setttings.id); setName(setttings.id);
setSchemename(setttings.schemename); setSchemename(setttings);
} else { } else {
setName(''); setName('');
} }
...@@ -436,6 +437,8 @@ const Map = props => { ...@@ -436,6 +437,8 @@ const Map = props => {
console.log(123); console.log(123);
setMap(viewObject); setMap(viewObject);
console.log(viewObject);
debugger;
watchUtils.watch(viewObject, ['zoom'], newzoom => { watchUtils.watch(viewObject, ['zoom'], newzoom => {
// 鼠标滚动隐藏管网图 // 鼠标滚动隐藏管网图
viewObject.map.layers.find(layer => { viewObject.map.layers.find(layer => {
...@@ -572,6 +575,7 @@ const Map = props => { ...@@ -572,6 +575,7 @@ const Map = props => {
let list = {}; let list = {};
list.layers = dalist; list.layers = dalist;
console.log(list); console.log(list);
debugger;
setFirstList({ ...list }); setFirstList({ ...list });
}); });
setArea(''); setArea('');
...@@ -586,7 +590,7 @@ const Map = props => { ...@@ -586,7 +590,7 @@ const Map = props => {
item.layerType = 'PipenetLayer'; item.layerType = 'PipenetLayer';
setttings = item; setttings = item;
console.log(item); console.log(item);
setSchemename(item.schemename); setSchemename(item);
setName(item.id); setName(item.id);
setKeep(item); setKeep(item);
} else { } else {
...@@ -1231,7 +1235,6 @@ const Map = props => { ...@@ -1231,7 +1235,6 @@ const Map = props => {
</div> </div>
</div> </div>
<div className={styles.mapBox}> <div className={styles.mapBox}>
{console.log(firstList)}
{canLoadMap && ( {canLoadMap && (
<ArcGISSceneMap <ArcGISSceneMap
ref={mapRef} ref={mapRef}
...@@ -1244,11 +1247,12 @@ const Map = props => { ...@@ -1244,11 +1247,12 @@ const Map = props => {
)} )}
{radio == 'arcgis' ? ( {radio == 'arcgis' ? (
<PipenetStylesCenter <PipenetStylesCenter
schemeName={Schemename} schemeName={Schemename.schemename}
mapServerName={name} mapServerName={name}
view={map} view={map}
savaCallback={onSave} savaCallback={onSave}
ref={styleRef} ref={styleRef}
pipenetLayer={Schemename}
/> />
) : ( ) : (
<></> <></>
......
...@@ -115,19 +115,21 @@ const IotConfig = props => { ...@@ -115,19 +115,21 @@ const IotConfig = props => {
setCurrentDataBase(res.data); setCurrentDataBase(res.data);
// 数据库是否已添加 // 数据库是否已添加
setLoading(true); setLoading(true);
CheckIsServiceAdd({ ip: res.data.ip }) CheckIsServiceAdd()
.then(resdata1 => { .then(resdata1 => {
setLoading(false); setLoading(false);
if (resdata1.code === 0) { if (resdata1.code === 0) {
setShow3('inline-block'); if (resdata1.data === true) {
setShow4('none'); setShow3('inline-block');
getStatus(res.data.ip, res.data.dbName); setShow4('none');
} else { getStatus(res.data.ip, res.data.dbName);
setDbStatus(resdata1.msg); } else {
setBuStatus('添加'); setDbStatus(resdata1.msg);
setSwitchStatus(true); setBuStatus('添加');
setShow3('none'); setSwitchStatus(true);
setShow4('inline-block'); setShow3('none');
setShow4('inline-block');
}
} }
}) })
.catch(err => { .catch(err => {
...@@ -140,7 +142,7 @@ const IotConfig = props => { ...@@ -140,7 +142,7 @@ const IotConfig = props => {
const getStatus = (x, y) => { const getStatus = (x, y) => {
// 查询是否禁用 // 查询是否禁用
GetServiceInfo({ ip: x }) GetServiceInfo()
.then(resdata => { .then(resdata => {
if (resdata.code === 0) { if (resdata.code === 0) {
setDbStatus(resdata.data.statusText); setDbStatus(resdata.data.statusText);
...@@ -341,9 +343,7 @@ const IotConfig = props => { ...@@ -341,9 +343,7 @@ const IotConfig = props => {
} else { } else {
// 数据库未添加 // 数据库未添加
setLoading(true); setLoading(true);
AddDB({ AddDB().then(res => {
ip: currentDataBase.ip,
}).then(res => {
setLoading(false); setLoading(false);
if (res.code === 0) { if (res.code === 0) {
setShow3('inline-block'); setShow3('inline-block');
...@@ -403,9 +403,7 @@ const IotConfig = props => { ...@@ -403,9 +403,7 @@ const IotConfig = props => {
if (checked) { if (checked) {
setSwitchStatus(true); setSwitchStatus(true);
setLoading(true); setLoading(true);
DepositServiceEnable({ DepositServiceEnable().then(res => {
ip: currentDataBase.ip,
}).then(res => {
setLoading(false); setLoading(false);
getStatus(currentDataBase.ip, currentDataBase.dbName); getStatus(currentDataBase.ip, currentDataBase.dbName);
if (res.code === 0) { if (res.code === 0) {
...@@ -417,9 +415,7 @@ const IotConfig = props => { ...@@ -417,9 +415,7 @@ const IotConfig = props => {
}); });
} else { } else {
setLoading(true); setLoading(true);
DepositServiceDisable({ DepositServiceDisable().then(res => {
ip: currentDataBase.ip,
}).then(res => {
setLoading(false); setLoading(false);
if (res.code === 0) { if (res.code === 0) {
setDbStatus('已禁用'); setDbStatus('已禁用');
......
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