Commit 749358b8 authored by 李纪文's avatar 李纪文

feat: 组态增加三维版本

parent b6823e28
......@@ -36,7 +36,6 @@ group:
| isZoom | 是否可缩放(手持上建议设置 true) | boolean | false |
| flowShow | 是否水流效果(无数据表现) | boolean | true |
| messaged | 传递信息给组态 | object | {} |
| params | Mqtt 订阅参数传递 | object | {} |
| customBack | 自定义交互的回调,返回点击的模型 | function(node){} | - |
### 工艺回放
......
......@@ -134,7 +134,6 @@ const ConfigurationView = (props) => {
imgUrl = online ? `${url}PandaMonitor/Monitor/` : `/PandaMonitor/Monitor/`;
// 获取画板信息
const drawInfo = await getSketchPadList({
...(props.params || {}),
name: props.name,
siteCode: siteCodeStr,
version: '全部',
......@@ -187,7 +186,6 @@ const ConfigurationView = (props) => {
// 获取点表信息
const pointInfo = devicesCode.length
? await getPointAddress({
...(props.params || {}),
code: devicesCode.join(','),
_site: siteCodeStr,
})
......@@ -196,7 +194,6 @@ const ConfigurationView = (props) => {
// 获取数据字典组态控制权限
const dictInfoRes = await getDictionaryInfo({
...(props.params || {}),
level: '组态控制权限',
_site: siteCodeStr,
});
......@@ -978,7 +975,6 @@ const ConfigurationView = (props) => {
/** ************************************获取画板JSON******************************* */
const getDiagramJson = async (list, siteInfo) => {
const response = await getSketchPadContent({
...(props.params || {}),
dimension: list.dimension,
siteCode: list.siteCode,
fileName: list.deployURL.split('\\').pop(),
......@@ -1004,7 +1000,6 @@ const ConfigurationView = (props) => {
mqttSsl: globalConfig.mqtt_IsSSL,
siteCode: globalConfig?.mqtt_mess?.site_code || '',
devices: devicesCode,
params: props.params || {},
callback: refreshData,
controlback: controlData,
})
......@@ -1046,7 +1041,7 @@ const ConfigurationView = (props) => {
equipmentCode: devicesCode.join(','),
accountFieldParams,
};
const results = await getDeviceRealInfo(params, props.params || {});
const results = await getDeviceRealInfo(params);
const realData = results && results.data && results.data.list ? results.data.list : [];
chartDataRender(flatten(realData));
} catch (err) {}
......@@ -1542,7 +1537,6 @@ const ConfigurationView = (props) => {
if (!vdCode) return setVideoData([]);
if (vdType && !vdList) return setVideoData([]);
const detail = await getVideoDetail({
...(props.params || {}),
UserID: 1,
DeviceCode: vdCode,
_site: siteCodeStr,
......@@ -3335,7 +3329,6 @@ ConfigurationView.defaultProps = {
isZoom: false,
flowShow: true,
messaged: {},
params: {},
customBack: () => {},
};
......@@ -3347,7 +3340,6 @@ ConfigurationView.propTypes = {
isZoom: PropTypes.bool,
flowShow: PropTypes.bool,
messaged: PropTypes.object,
params: PropTypes.object,
customBack: PropTypes.func,
};
......
This source diff could not be displayed because it is too large. You can view the blob instead.
import React from 'react';
import ConfigurationView from '../configuration_custom';
const ConfigurationDetail = (props) => {
return <ConfigurationView {...props} />;
};
export default ConfigurationDetail;
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