Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
6d4c5df2
Commit
6d4c5df2
authored
Jan 08, 2025
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 组态修复绑定数据干扰
parent
0a2f81f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
RealModel.js
...s/extend-components/EC_ConfigurationView/src/RealModel.js
+8
-2
configuration_custom.js
...mponents/EC_ConfigurationView/src/configuration_custom.js
+8
-2
No files found.
packages/extend-components/EC_ConfigurationView/src/RealModel.js
View file @
6d4c5df2
...
...
@@ -67,7 +67,6 @@ let modalWidth = 520;
let
historyInfoParams
=
[];
let
statisticalInfoParams
=
{};
let
nodeData
=
null
;
// 选中节点的数据
let
bindData
=
[];
let
twoID
=
''
;
const
waterFlow
=
new
WaterFlowControlView
();
...
...
@@ -79,6 +78,7 @@ const ConfigurationView = (props) => {
// 入场动画
let
entryAnim
=
''
;
const
guidAggre
=
{};
let
bindData
=
[];
const
stationList
=
[];
const
{
getPrefixCls
}
=
useContext
(
ConfigProvider
.
ConfigContext
);
const
prefixCls
=
getPrefixCls
(
'ec-configuration-view'
);
...
...
@@ -110,6 +110,7 @@ const ConfigurationView = (props) => {
const
DomRef
=
useRef
();
const
TwoRef
=
useRef
();
const
loginTimer
=
useRef
();
const
bindDatas
=
useRef
([]);
const
ConfigurationViewRef
=
useCallback
((
dom
)
=>
{
if
(
DomRef
)
DomRef
.
current
=
!!
dom
;
setDomFlag
(
!!
dom
);
...
...
@@ -167,6 +168,11 @@ const ConfigurationView = (props) => {
name
,
type
:
siteInfo
&&
siteInfo
[
name
]
?
siteInfo
[
name
].
Type
:
''
,
});
bindDatas
.
current
.
push
({
code
:
deviceList
,
name
,
type
:
siteInfo
&&
siteInfo
[
name
]
?
siteInfo
[
name
].
Type
:
''
,
});
devicesCode
.
push
(
deviceList
);
});
await
getPublicInfo
();
...
...
@@ -1653,7 +1659,7 @@ const ConfigurationView = (props) => {
// 控制日志内容渲染
const renderControlLogContent = () => {
const list = bindData.find((item) => {
const list = bindData
s.current
.find((item) => {
return item.name === nodeData.stationName;
});
return list ? (
...
...
packages/extend-components/EC_ConfigurationView/src/configuration_custom.js
View file @
6d4c5df2
...
...
@@ -66,7 +66,6 @@ let modalWidth = 520;
let
historyInfoParams
=
[];
let
statisticalInfoParams
=
{};
let
nodeData
=
null
;
// 选中节点的数据
let
bindData
=
[];
let
twoID
=
''
;
const
waterFlow
=
new
WaterFlowControlView
();
...
...
@@ -76,6 +75,7 @@ const ConfigurationView = (props) => {
let
editionArr
=
[];
let
globalControl
=
false
;
const
guidAggre
=
{};
let
bindData
=
[];
const
stationList
=
[];
const
{
getPrefixCls
}
=
useContext
(
ConfigProvider
.
ConfigContext
);
const
prefixCls
=
getPrefixCls
(
'ec-configuration-view'
);
...
...
@@ -107,6 +107,7 @@ const ConfigurationView = (props) => {
const
DomRef
=
useRef
();
const
TwoRef
=
useRef
();
const
loginTimer
=
useRef
();
const
bindDatas
=
useRef
([]);
const
ConfigurationViewRef
=
useCallback
((
dom
)
=>
{
if
(
DomRef
)
DomRef
.
current
=
!!
dom
;
setDomFlag
(
!!
dom
);
...
...
@@ -165,6 +166,11 @@ const ConfigurationView = (props) => {
name
,
type
:
siteInfo
&&
siteInfo
[
name
]
?
siteInfo
[
name
].
Type
:
''
,
});
bindDatas
.
current
.
push
({
code
:
deviceList
,
name
,
type
:
siteInfo
&&
siteInfo
[
name
]
?
siteInfo
[
name
].
Type
:
''
,
});
devicesCode
.
push
(
deviceList
);
});
await
getPublicInfo
();
...
...
@@ -1590,7 +1596,7 @@ const ConfigurationView = (props) => {
// 控制日志内容渲染
const renderControlLogContent = () => {
const list = bindData.find((item) => {
const list = bindData
s.current
.find((item) => {
return item.name === nodeData.stationName;
});
return list ? (
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment